1"use strict";(self.webpackChunk_fancode_web_app=self.webpackChunk_fancode_web_app||[]).push([["4180"],{56603:function(e,t,a){a.d(t,{D9:()=>d,KI:()=>h,T7:()=>l,VJ:()=>c,WT:()=>u,Z0:()=>i,kP:()=>m,wO:()=>s});var n=a(30486),r=a(35516),o=a(78943);let i=o.ZP.div.withConfig({displayName:"schedule-header.styled__Separator",componentId:"sc-12745e96-0"})(["height:0px;background-color:transparent;",""],e=>e.isFixed&&` 2 position: fixed; 3 top: 152px; 4 z-index: 1; 5 `),l=(0,o.ZP)(r.Z).withConfig({displayName:"schedule-header.styled__DateLabel",componentId:"sc-12745e96-1"})(["padding:2px 0 0 4px;"]),c=o.ZP.div.withConfig({displayName:"schedule-header.styled__HeaderRow",componentId:"sc-12745e96-2"})(["display:flex;align-items:center;"]),s=o.ZP.div.withConfig({displayName:"schedule-header.styled__ScheduleHeaderContainer",componentId:"sc-12745e96-3"})(["padding-left:16px;display:flex;width:100%;align-items:center;justify-content:space-between;"," overflow-y:hidden;"],e=>e.isFixed?` 6 height: 48px; 7 background-color: ${e.theme.palette.fc_colour_surface_elevation_00}; 8 position: sticky; 9 top: 104px; 10 z-index: ${n.K.STANDARD}; 11 `:` 12 height: 56px; 13 background-color: ${e.theme.palette.fc_colour_surface_elevation_00}; 14 `),d=o.ZP.div.withConfig({displayName:"schedule-header.styled__HeaderFilter",componentId:"sc-12745e96-4"})(["padding-right:16px;display:flex;align-items:center;"]),u=o.ZP.button.withConfig({displayName:"schedule-header.styled__LiveNowFilter",componentId:"sc-12745e96-5"})(["width:73px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:12px;border:1px solid ",";background-color:",";"],e=>e.isLiveSelected?e.theme.palette.fc_colour_border_brandMedium:"transparent",e=>e.isLiveSelected?e.theme.palette.fc_colour_surface_brandLighter:e.theme.palette.fc_colour_surface_elevation_01),h=o.ZP.div.withConfig({displayName:"schedule-header.styled__CalenderFilter",componentId:"sc-12745e96-6"})(["display:flex;align-items:center;gap:4px;"]),m=o.ZP.div.withConfig({displayName:"schedule-header.styled__FilterSeparator",componentId:"sc-12745e96-7"})(["width:1px;height:24px;margin:0 8px;background-color:",";"],e=>e.theme.palette.fc_colour_border_neutral_20);o.ZP.div.withConfig({displayName:"schedule-header.styled__DateFilterCta",componentId:"sc-12745e96-8"})(["display:flex;align-items:center;cursor:pointer;"]),(0,o.ZP)(r.Z).withConfig({displayName:"schedule-header.styled__DateText",componentId:"sc-12745e96-9"})(["margin-left:8px;"]),o.ZP.div.withConfig({displayName:"schedule-header.styled__ScheduleDateHeader",componentId:"sc-12745e96-10"})(["margin-bottom:12px;margin-top:24px;display:flex;align-items:center;justify-content:space-between;"])},65720:function(e,t,a){a.r(t),a.d(t,{default:()=>K});var n=a(6368),r=a(65313),o=a(49685),i=a(70850),l=a(1038),c=a(56293),s=a(19191),d=a(27029),u=a(46894),h=a(2784),m=a(98541),p=a(56603),g=a(35516),f=a(13827),_=a(37988),y=a(78943);let x=y.ZP.div.withConfig({displayName:"tour-details-matches-content.style__HeaderRow",componentId:"sc-1cecac46-0"})(["display:flex;align-items:center;"]);(0,y.ZP)(g.Z).withConfig({displayName:"tour-details-matches-content.style__DateLabel",componentId:"sc-1cecac46-1"})(["padding:2px 0 0 4px;"]),y.ZP.div.withConfig({displayName:"tour-details-matches-content.style__Container",componentId:"sc-1cecac46-2"})(["margin:",";min-height:186px;@media only screen and (min-width:1025px){width:1248px;max-width:1248px;}"],({isMobile:e})=>e?"16px":"16px 0"),y.ZP.div.withConfig({displayName:"tour-details-matches-content.style__ShimmerContainer",componentId:"sc-1cecac46-3"})(["display:flex;gap:20px;margin-top:16px;margin-bottom:16px;min-height:186px;"]);let I=h.memo(e=>{let t=(0,l.z)();return h.createElement(h.Fragment,null,e.fetchingMatches?h.createElement(u.a,null):e.matchData.map((a,n)=>{let r=a.date;return h.createElement("div",{key:`tour-match-data-${a.date}`},h.createElement(x,{style:e.headerContainerStyle},h.createElement(g.Z,{use:f.Iy.fc_text_Saira_Title2_Semibold18,labelColor:t.palette.fc_colour_text_neutralMedium,children:(0,_.FK)(r)}),h.createElement(p.T7,{use:f.Iy.fc_text_Saira_Body1_Regular16,labelColor:t.palette.fc_colour_text_neutralMedium,children:(0,_.rJ)(r)})),a.matches.map((t,n)=>{let o={sectionTitle:r,isLastCard:n===a.matches.length-1};return h.createElement(m.default,{key:`tour-match-card-${t.id}`,source:e.source,match:t,keyExtractorKey:`tour-match-card-${t.id}`,sectionData:o,showCurrentDate:!(0,_.kj)(Date.now(),(0,_.jQ)(null==t?void 0:t.startTime)),showMatchNumber:!0})}))}))});var b=a(19721);let w=y.ZP.div.withConfig({displayName:"tour-details-matches-header.style__HeaderContainer",componentId:"sc-4f6775ae-0"})(["display:flex;justify-content:space-between;align-items:center;"]),M=(0,y.ZP)(b.Z).withConfig({displayName:"tour-details-matches-header.style__DrawDeeplink",componentId:"sc-4f6775ae-1"})(["padding:0;display:flex;align-items:center;text-decoration:none;background:none;border:none;cursor:pointer;"]),v=(0,y.ZP)(g.Z).attrs({use:f.Iy.fc_text_Button3_Semibold12}).withConfig({displayName:"tour-details-matches-header.style__DrawLabel",componentId:"sc-4f6775ae-2"})(["text-transform:uppercase;"]);var C=a(92208);let S=h.memo(e=>{let t=(0,i.d)(),a=(0,l.z)();return h.createElement(w,{className:"tour-details-matches-header",style:e.containerStyle}
14,h.createElement(g.Z,{use:f.Iy.fc_text_Saira_Subtitle1_Semibold16,labelColor:a.palette.fc_colour_text_neutralMedium},e.segmentTitle),e.drawButtonDeeplink&&e.drawButtonText&&h.createElement(M,{to:e.drawButtonDeeplink},h.createElement(v,{labelColor:a.palette.fc_colour_text_brandMedium},e.drawButtonText),h.createElement(C.ZP,{name:"chevron-right",size:t?16:20,color:a.palette.fc_colour_icon_brandMedium})))});var D=a(72469),k=a(4830),T=a(17579);let Z=["tourMatchesFilter"],F=`query TournamentDrawDetails($tourId: Int!) { 15 tourMatchesFilter(tourId: $tourId) { 16 tournamentDrawCTA { 17 deeplink 18 name 19 } 20 } 21} 22 `,N=(e,t)=>(0,T.Uv)(t,(0,n._)({query:F,operationName:"TournamentDrawDetails",operationType:"query",sha256Hash:"4da461d3883e7423d520fa1644f7715be24937e6968f14be06a55d64c50fd680",queryFieldNames:Z},e)),P="TourDetailsMatchSegment";var E=a(22706);let $=e=>{for(let t=0;t<e.length;t++){let a=e[t];if(!a)continue;let n=a.matches.findIndex(e=>e.status===E.GpV.LIVE||e.status===E.GpV.NOT_STARTED);if(-1!==n)return{edgeIndex:t,matchIndex:n}}return null},A=(e,t,a,n)=>{let r=[],o=n,i=t,l=a;for(;o>0&&i<e.length;){let t=e[i];if(!t){i++;continue}let a=Math.min(o,t.matches.length-l);a>0&&(r.push({date:t.date,matches:t.matches.slice(l,l+a)}),o-=a),i++,l=0}return r},L=(e,t)=>{let a=[],n=t,r=e.length-1;for(;n>0&&r>=0;){let t=e[r];if(!t){r--;continue}let o=Math.min(n,t.matches.length);o>0&&(a.unshift({date:t.date,matches:t.matches.slice(-o)}),n-=o),r--}return a},z=e=>{if(!e.length)return[];let t=$(e);if(t){let a=A(e,t.edgeIndex,t.matchIndex,5),n=a.reduce((e,t)=>e+t.matches.length,0);return a.every(e=>e.matches.every(e=>e.status===E.GpV.LIVE)),a}return L(e,5)},R=(e,t)=>{let a=new Map(e.map(e=>[e.date,e]));return t.forEach(e=>{if(!e)return;let t=a.get(e.date);t?t.matches=[...t.matches,...e.matches]:a.set(e.date,e)}),Array.from(a.values())},B=(0,d.zI)(P,{loaded:!1,tournamentDrawDetails:{deeplink:"",name:""},tourMatches:{edges:[],pageInfo:{previous:null,next:null}},displayMatches:[],shouldFetchMore:!1,fetchingMatches:!0}),q=(0,d.PU)(B,{mount:(e,t)=>(e.tourId=t.tourId,e.selectedFilter=t.selectedFilter,e.fetchingMatches=!0,e),tournamentDrawDetailsResponse:(e,t)=>{var a,n;return!(0,k.VZ)(t)&&(null==(n=t.data)||null==(a=n.data)?void 0:a.tourMatchesFilter.tournamentDrawCTA)&&(e.tournamentDrawDetails=t.data.data.tourMatchesFilter.tournamentDrawCTA),e},tourMatchesResponse:(e,t)=>{var a;return!(0,k.VZ)(t)&&(null==(a=t.data)?void 0:a.data)?(e.tourMatches=t.data.data.tourMatches,e.displayMatches=z(t.data.data.tourMatches.edges),5>e.displayMatches.reduce((e,t)=>e+t.matches.length,0)&&null!==e.tourMatches.pageInfo.next?(e.shouldFetchMore=!0,e.fetchingMatches=!0):(e.shouldFetchMore=!1,e.fetchingMatches=!1)):e.fetchingMatches=!1,e},appendTourMatchesResponse:(e,t)=>{var a;return!(0,k.VZ)(t)&&(null==(a=t.data)?void 0:a.data)&&(e.tourMatches.edges=R(e.tourMatches.edges,t.data.data.tourMatches.edges),e.tourMatches.pageInfo=t.data.data.tourMatches.pageInfo,e.displayMatches=z(e.tourMatches.edges),5>e.displayMatches.reduce((e,t)=>e+t.matches.length,0)&&null!==t.data.data.tourMatches.pageInfo.next?e.shouldFetchMore=!0:e.shouldFetchMore=!1),e.fetchingMatches=!1,e}}),V=(0,d.Rl)(q,{mount:(e,t,a,n,r)=>a.tourId&&a.selectedFilter?[{resultCallback:t.tourMatchesResponse,ioAction:(0,D.sz)({variables:{tourId:a.tourId,page:0,filter:{selectedCategory:a.selectedFilter}}},r)},{ioAction:N({variables:{tourId:a.tourId},enableAPQ:!0},r),resultCallback:t.tournamentDrawDetailsResponse}]:[],tourMatchesResponse:(e,t,a,n,r)=>!(0,k.VZ)(a)&&e.shouldFetchMore&&e.tourId&&"number"==typeof e.tourMatches.pageInfo.next?[{resultCallback:t.appendTourMatchesResponse,ioAction:(0,D.sz)({variables:{tourId:e.tourId,page:e.tourMatches.pageInfo.next,filter:{selectedCategory:e.selectedFilter}}},r)}]:[]}),H=y.ZP.div.withConfig({displayName:"tour-details-match-segment.style__MatchSegmentContainer",componentId:"sc-7707ae55-0"})(["width:100%;"]),j=y.ZP.div.withConfig({displayName:"tour-details-match-segment.style__MatchSegmentContent",componentId:"sc-7707ae55-1"})(["margin-top:20px;"]),G=h.memo(e=>{let[t,a,o]=(0,d.cE)(d.qG.concat(e.source,P),V,d.zG),u=(0,l.z)(),m=(0,i.d)();(0,h.useEffect)(()=>{o.mount(e)},[e]);let p=(0,h.useCallback)(t=>{o.mount((0,r._)((0,n._)({},e),{selectedFilter:t}))},[e]),g=(0,h.useMemo)(()=>({margin:m?"16px":"0",position:"sticky",top:"0"}),[]),f=(0,h.useMemo)(()=>({position:"sticky",top:"0",paddingLeft:m?"16px":"0",overflow:"auto",flexWrap:"nowrap"}),[]),_=(0,h.useMemo)(()=>({padding:m?"16px 16px 12px 16px":"16px 0",borderBottom:`2px solid ${u.palette.fc_colour_border_neutral_10}`}),[u.palette.fc_colour_border_neutral_10]);return h.createElement(c.Z,{id:t},h.createElement(H,{key:e.segmentId},h.createElement(S,{tourId:e.tourId,source:t,drawButtonDeeplink:a.tournamentDrawDetails.deeplink,drawButtonText:a.tournamentDrawDetails.name,segmentTitle:e.segmentTitle,containerStyle:g}),!!e.tourId&&h.createElement(j,null,h.createElement(s.Z,{tourId:e.tourId,tourCollectionId:e.tourCollectionId,source:t,containerStyle:f,onFilterChange:p}),h.createElement(I,{fetchingMatches:a.fetchingMatches,source:t,sectionPosition:e.sectionPosition,headerContainerStyle:_,matchData:a.displayMatches,segmentId:e.segmentId,segmentTitle:e.segmentTitle}
22))))}),K=(0,o.c)(G,h.createElement(u.a,null))},72469:function(e,t,a){a.d(t,{sz:()=>l});var n=a(6368),r=a(17579);let o=["tourMatches"],i=`query FetchTourMatchList($tourId: Int!, $page: Int!, $filter: TourMatchesFilterInput) { 23 tourMatches(tourId: $tourId, page: $page, filter: $filter) { 24 edges { 25 date 26 matches { 27 ...MatchDetailsFragment 28 } 29 } 30 pageInfo { 31 previous 32 next 33 } 34 } 35} 36 fragment MatchDetailsFragment on Match { 37 id 38 teamType 39 bgImage { 40 src 41 } 42 sport { 43 name 44 slug 45 collectionSlug 46 } 47 name 48 matchSlug 49 tour { 50 slug 51 collectionId 52 name 53 id 54 logo { 55 src 56 } 57 collectionSlug 58 } 59 status 60 startTime 61 streamingStatus 62 isPremium 63 isUserEntitled 64 streamAuthorization { 65 authorizationType 66 } 67 squads { 68 flag { 69 src 70 } 71 name 72 squadNo 73 squadId 74 color 75 shortName 76 isWinner 77 cricketScore { 78 runs 79 overs 80 balls 81 status 82 wickets 83 } 84 kabaddiScore { 85 points 86 onFieldPlayers 87 totalFieldPlayers 88 raiding 89 } 90 tennisScore { 91 setScores { 92 setNumber 93 setScore 94 isWinner 95 isCurrentSet 96 } 97 currentPoint { 98 point 99 } 100 isServing 101 } 102 footballScore { 103 points 104 } 105 basketBallScore { 106 points 107 } 108 status { 109 cricket { 110 isBatting 111 } 112 } 113 } 114 format 115 isScorecardAvailable 116 isLiveStreamingAvailable 117 venue 118 articleCount 119 scorecard { 120 cricketScore { 121 newDescription 122 description 123 } 124 kabaddiScore { 125 description 126 matchClock 127 } 128 footballScore { 129 matchClock 130 description 131 newDescription 132 matchState 133 } 134 basketballScore { 135 description 136 matchClock 137 } 138 hockeyScore { 139 description 140 newDescription 141 } 142 tennisScore { 143 description 144 matchDuration 145 } 146 } 147 videoId: videoStreamId 148 matchDesc 149 city 150 winner { 151 shortName 152 name 153 } 154 mediaId 155 notificationStatus { 156 enabledTypes { 157 notificationId 158 notificationName 159 } 160 } 161 notifications { 162 supportedTypes { 163 notificationId 164 } 165 } 166 bucketId 167}`,l=(e,t)=>(0,r.Uv)(t,(0,n._)({query:i,operationName:"FetchTourMatchList",operationType:"query",sha256Hash:"8f546a41b2fbb108527aeb495cbc432f5822e1ec12fceb8a809838bf7d9ed008",queryFieldNames: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.