PageSourceSearch

https://www.fancode.com/fc-web-app/1789129030736/build/mobile/clie…gs-segment.mobile.0dbda053d4baad04.chunk.js

js fancode.com collected 2026-09-24 09:34:06 UTC 12,722 bytes, 26 lines download raw bytes

1"use strict";(self.webpackChunk_fancode_web_app=self.webpackChunk_fancode_web_app||[]).push([["7584"],{37034:function(e,t,i){i.d(t,{Y:()=>o});var n=i(22706),a=i(15372);let o=e=>{switch(e){case n.H3K.DRIVERS:return(0,a.uU)(a.$x.driver);case n.H3K.CONSTRUCTORS:return(0,a.uU)(a.$x.constructor);case n.H3K.RIDERS:return(0,a.uU)(a.$x.rider);case n.H3K.TEAMS:return(0,a.uU)(a.$x.team);default:return""}}},42724:function(e,t,i){i.r(t),i.d(t,{default:()=>G});var n=i(56293),a=i(27029),o=i(50094),l=i(26022),r=i(2784),d=i(8837),s=i(23523),c=i(13827),p=i(35516),m=i(22706),f=i(15372),u=i(1038),y=i(18523),_=i(35091),g=i(16287),h=i(67765),b=i(37034),x=i(92208),w=i(78943);let P=w.ZP.div.withConfig({displayName:"f1-standings.styled__StandingsHeader",componentId:"sc-e9bf7c32-0"})(["display:flex;align-items:flex-end;padding:0 16px 8px;"]);w.ZP.div.withConfig({displayName:"f1-standings.styled__Standings",componentId:"sc-e9bf7c32-1"})([""]);let I=(0,w.ZP)(x.ZP).withConfig({displayName:"f1-standings.styled__ChevronRightIcon",componentId:"sc-e9bf7c32-2"})(["margin-bottom:1px;"]),C=w.ZP.div.withConfig({displayName:"f1-standings.styled__Seperator",componentId:"sc-e9bf7c32-3"})(["height:1px;background-color:",";"],e=>e.theme.palette.fc_colour_border_neutral_20);w.ZP.div.withConfig({displayName:"f1-standings.styled__FullStandingsCta",componentId:"sc-e9bf7c32-4"})(["display:flex;align-items:center;padding:24px 0px;cursor:pointer;background-color:",";"],e=>e.theme.palette.fc_colour_surface_elevation_01),w.ZP.div.withConfig({displayName:"f1-standings.styled__StandingsTable",componentId:"sc-e9bf7c32-5"})(["border-radius:2px;flex:1;"]),(0,w.ZP)(p.Z).withConfig({displayName:"f1-standings.styled__PlayerName",componentId:"sc-e9bf7c32-6"})(["margin-left:12px;z-index:1;"]),w.ZP.div.withConfig({displayName:"f1-standings.styled__SegmentIndicator",componentId:"sc-e9bf7c32-7"})(["width:4px;height:24px;background-color:",";"],e=>e.theme.palette.fc_colour_surface_brandMedium);let v=r.memo(e=>{var t,i,n;let o=(0,u.z)(),[,,l]=(0,a.tV)(_.Hz,a.Fu),d=null==(t=e.standings)?void 0:t.tabs[e.index],x=`${(0,b.Y)(null!=(n=null==d?void 0:d.tabType)?n:m.H3K.DRIVERS)} ${(0,f.uU)(f.$x.standings)}`,w=(0,r.useCallback)(()=>{l.openModal({modalName:g.t.F1_STANDINGS,componentProps:{standings:e.standings,index:e.index,trackEvent:e.trackEvent,screenName:h.q.superTourF1,sportsSlug:e.sportsSlug,tabType:e.tabType},uniqueModalKey:g.t.F1_STANDINGS})},[e.standings,e.index]);return r.createElement(r.Fragment,null,r.createElement(P,{onClick:w,role:"button"},r.createElement(p.Z,{labelColor:o.palette.fc_colour_text_neutralDark,use:c.Iy.fc_text_Saira_Subtitle1_Semibold16},x),r.createElement(I,{name:"chevron-right",size:20,color:o.palette.fc_colour_icon_neutralDark})),null==d||null==(i=d.tabData.values.slice(0,3))?void 0:i.map((t,i)=>{var n,a,o;return r.createElement(y.Z,{key:`player-point-info-${t.title}`,title:t.title,subTitle:null!=(a=t.subTitle)?a:"",pointsValue:t.pointsValue,itemIcon:t.itemIcon.src,itemBgIcon:null!=(o=null==(n=t.itemBgIcon)?void 0:n.src)?o:"",isFirst:0===i,rowIndex:i,selectedTabIndex:e.index,isMotoGp:e.sportsSlug===s.D.MOTOGP,tabType:e.tabType})}),r.createElement(C,null))});var N=i(70590),S=i(40511),Z=i(4830);let E="F1StandingsSegment",k=(0,a.zI)(E,{loaded:!1,hasError:!1,f1Standing:null}),T=(0,a.PU)(k,{response:(e,t)=>(e.loaded=!0,(0,Z.cN)(t)&&t.data.data?e.f1Standing=t.data.data.f1Standings:e.hasError=!0,e)});var F=i(6368),D=i(17579);let R=["formulaOneStandingV1"],M=`query F1StandingsSegment($input: StandingInput!) {
2  f1Standings: formulaOneStandingV1(input: $input) {
3    tabs {
4      tabName
5      tabType
6      tabData {
7        headers
8        values {
9          title
10          subTitle
11          itemIcon {
12            src
13          }
14          pointsValue
15          nationality
16          countryFlag {
17            src
18          }
19          driverNumber
20        }
21      }
22      footerText
23    }
24  }
25}
26        `,K=(e,t)=>(0,D.Uv)(t,(0,F._)({query:M,operationName:"F1StandingsSegment",operationType:"query",sha256Hash:"37b7d82cb621bc8e9a5b44f73ac66f0c27601bb293b0fc619f930a09c91b850d",queryFieldNames:R},e)),O=(0,a.Rl)(T,{mount:(e,t,i,n,a)=>i.siLeague?[{resultCallback:t.response,ioAction:K({variables:{input:{siLeague:i.siLeague}}},a)}]:[],track:(e,t,i,n,a)=>[{ioAction:(0,N.UI)({type:N.n7.TRACK,destinations:[N.D1.DATA_HIGHWAY],name:i.eventName,params:(0,S.P)(i.params,a)})}]});var $=i(69576);let H=w.ZP.div.withConfig({displayName:"f1-standings-segment.styled__Seperator",componentId:"sc-3417f9e-0"}
26)(["height:24px;width:100%;"]);w.ZP.div.withConfig({displayName:"f1-standings-segment.styled__F1StandingsContainer",componentId:"sc-3417f9e-1"})(["display:flex;gap:20px;flex-direction:column;flex:1;padding:0 16px;@media only screen and (min-width:","){width:100%;max-width:1280px;margin:0 auto;flex-direction:row;}"],$.nN.DESKTOP),w.ZP.div.withConfig({displayName:"f1-standings-segment.styled__FooterSeperator",componentId:"sc-3417f9e-2"})(["height:24px;width:100%;"]);let G=r.memo(e=>{let[t,i,s]=(0,a.cE)(a.qG.concat(e.source,E),O,a.zG);(0,d.n)(t,i,()=>{i.loaded||s.mount(e)},o.s$),(0,r.useEffect)(()=>{i.loaded&&i.hasError&&s.mount(e)},[i.loaded,i.hasError]);let c=(0,r.useCallback)(e=>{s.track(e)},[]),p=(0,r.useMemo)(()=>{var t,n;return(null!=(n=null==(t=i.f1Standing)?void 0:t.tabs)?n:[]).map((t,n)=>r.createElement(v,{standings:i.f1Standing,index:n,trackEvent:c,key:`standings-${t.tabName}`,sportsSlug:e.sportsSlug,tabType:t.tabType}))},[i.f1Standing,c]);return r.createElement(n.Z,{id:t},r.createElement(l.Z,{delimeter:r.createElement(H,null),list:p,keySuffix:"f1-segment"}))})},18523:function(e,t,i){i.d(t,{Z:()=>I});var n=i(2784),a=i(13827),o=i(35516),l=i(1038),r=i(69576),d=i(78943);let s=d.ZP.div.withConfig({displayName:"player-point-info.styled__PlayerPointInfoContainer",componentId:"sc-2c6a7116-0"})(["display:flex;align-items:center;justify-content:space-between;flex:1;"]),c=d.ZP.div.withConfig({displayName:"player-point-info.styled__DriverColumn",componentId:"sc-2c6a7116-1"})(["display:flex;align-items:center;justify-content:space-between;width:36px;"]),p=d.ZP.div.withConfig({displayName:"player-point-info.styled__PlayerNameContainer",componentId:"sc-2c6a7116-2"})([""]),m=d.ZP.div.withConfig({displayName:"player-point-info.styled__Container",componentId:"sc-2c6a7116-3"})(["display:flex;padding:0 16px 0 0;border-top:1px solid ",";background-color:",";overflow:hidden;"],e=>e.theme.palette.fc_colour_border_neutral_20,e=>e.theme.palette.fc_colour_surface_elevation_00),f=(0,d.ZP)(o.Z).withConfig({displayName:"player-point-info.styled__TitleContainer",componentId:"sc-2c6a7116-4"})(["display:block;margin-bottom:4px;"]),u=(0,d.ZP)(o.Z).withConfig({displayName:"player-point-info.styled__SubTitleContainer",componentId:"sc-2c6a7116-5"})(["display:block;"]);d.ZP.div.withConfig({displayName:"player-point-info.styled__RowItem",componentId:"sc-2c6a7116-6"})(["display:flex;align-items:center;flex:1;padding:0 16px 0 0;background-color:",";min-height:64px;@media (min-width:","){background-color:",";justify-content:space-between;}"],e=>e.isOddPosition?"transparent":e.theme.palette.fc_colour_surface_elevation_00,r.nN.DESKTOP,e=>e.isOddPosition?e.$isOpenedInModal?e.theme.palette.fc_colour_surface_elevation_02:e.theme.palette.fc_colour_surface_elevation_01:e.theme.palette.fc_colour_surface_elevation_00),(0,d.ZP)(o.Z).withConfig({displayName:"player-point-info.styled__PlayerPosition",componentId:"sc-2c6a7116-7"})(["display:block;min-width:12%;padding-left:4px;"]),d.ZP.div.withConfig({displayName:"player-point-info.styled__PlayerPositionContainer",componentId:"sc-2c6a7116-8"})(["min-width:12%;"]),(0,d.ZP)(o.Z).withConfig({displayName:"player-point-info.styled__PlayerDriverNo",componentId:"sc-2c6a7116-9"})(["display:block;width:6%;@media (min-width:","){text-wrap:nowrap;}"],r.nN.DESKTOP),d.ZP.div.withConfig({displayName:"player-point-info.styled__NationalityContainer",componentId:"sc-2c6a7116-10"})(["width:18%;display:flex;"]),d.ZP.img.withConfig({displayName:"player-point-info.styled__CountryIcon",componentId:"sc-2c6a7116-11"})(["width:20px;height:20px;margin-right:6px;"]),(0,d.ZP)(o.Z).withConfig({displayName:"player-point-info.styled__PlayerName",componentId:"sc-2c6a7116-12"})(["display:block;min-width:30%;@media (min-width:","){text-wrap:nowrap;width:5%;}"],r.nN.DESKTOP),(0,d.ZP)(o.Z).withConfig({displayName:"player-point-info.styled__PlayerPoints",componentId:"sc-2c6a7116-13"})(["display:block;min-width:5%;margin-right:8px;text-align:right;"]),(0,d.ZP)(o.Z).withConfig({displayName:"player-point-info.styled__PlayerCar",componentId:"sc-2c6a7116-14"})(["margin-right:4px;width:35%;margin-right:24px;"]),(0,d.ZP)(o.Z).withConfig({displayName:"player-point-info.styled__PlayerNationalityName",componentId:"sc-2c6a7116-15"})(["display:block;@media (min-width:","){text-wrap:nowrap;}"],r.nN.DESKTOP),(0,d.ZP)(o.Z).withConfig({displayName:"player-point-info.styled__PlayerTeamName",componentId:"sc-2c6a7116-16"})(["display:block;width:30%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;@media (min-width:","){text-wrap:nowrap;}"],r.nN.DESKTOP),d.ZP.div.withConfig({displayName:"player-point-info.styled__PlayerInfoContainer",componentId:"sc-2c6a7116-17"})(["display:flex;width:100%;align-items:center;"]);let y=d.ZP.div.withConfig({displayName:"player-point-info.styled__PlayerSlantIconContainer",componentId:"sc-2c6a7116-18"})(["width:80px;height:64px;position:relative;"]),_=d.ZP.div.withConfig({displayName:"player-point-info.styled__PlayerSlantIconMain",componentId:"sc-2c6a7116-19"})(["position:absolute;"]),g=d.ZP.img.withConfig({displayName:"player-point-info.styled__PlayerIconView",componentId:"sc-2c6a7116-20"})(["width:",";height:",";z-index:1;position:absolute;bottom:0;"],e=>e.isMotoGPRiderColumn?"64px":"80px",e=>(e.isMotoGPRiderColumn,"64px"));var h=i(22706),b=i(45797);d.ZP.div.withConfig({displayName:"player-icon-with-background.styled__PlayerIconContainer",componentId:"sc-81ad95d2-0"})(["position:relative;width:",";height:",";margin-right:",";"],e=>e.isFirst?"100px":"80px",e=>e.isFirst?"80px":"64px",e=>e.isFirst?"-20px":0),(0,d.ZP)(b.r).withConfig({displayName:"player-icon-with-background.styled__PlayerIcon",componentId:"sc-81ad95d2-1"})(["position:relative;bottom:",";"],e=>e.isDriver?e.isFirst?"-15px":"-11px":e.isFirst?"-35px":"-22px");let x=d.ZP.div.withConfig({displayName:"player-icon-with-background.styled__RankLabel",componentId:"sc-81ad95d2-2"})(["position:absolute;
26left:5px;top:5px;color:",";-webkit-text-stroke-color:",";-webkit-text-stroke-width:1px;font-family:Saira;font-size:",";font-style:italic;font-weight:700;line-height:24px;"],e=>e.isFirst?e.theme.palette.fc_colour_text_brandLighter:e.theme.palette.fc_colour_surface_neutral_40,e=>e.isFirst?e.theme.palette.fc_colour_border_brandLight:e.theme.palette.fc_colour_border_neutral_20,e=>e.isFirst?"36px":"28px");d.ZP.div.withConfig({displayName:"player-icon-with-background.styled__PositionCellContainer",componentId:"sc-81ad95d2-3"})(["position:relative;"]);var w=i(92208);let P=n.memo(e=>{let t=(0,l.z)(),i=e.isMotoGp&&e.tabType===h.H3K.RIDERS,r=e.tabType===h.H3K.DRIVERS,d=e.tabType===h.H3K.RIDERS,b=(0,n.useMemo)(()=>e.isMotoGp?{marginLeft:4*!!d,width:d?64:87,height:d?64:56}:{width:r?52:84,height:r?52:40,marginLeft:4*!!r},[e.tabType,e.isMotoGp,r,d]);return n.createElement(m,{largerHeight:e.isFirst},n.createElement(y,null,n.createElement(x,{isFirst:e.isFirst},e.rowIndex+1),n.createElement(_,null,n.createElement(w.ZP,{name:"playerStatsBackgroundSlant",width:80,height:64,color:e.isFirst?t.palette.fc_colour_icon_brandMedium:t.palette.fc_colour_icon_neutralMedium})),n.createElement(g,{src:e.itemIcon,style:b,isMotoGPRiderColumn:!!i})),i?n.createElement(c,null,n.createElement(o.Z,{children:e.driverNo,labelColor:t.palette.fc_colour_text_neutralMedium,use:a.Iy.fc_text_Saira_Subtitle2_Semibold14,numberOfLines:1})):null,n.createElement(s,null,n.createElement(p,null,n.createElement(f,{children:e.title,use:a.Iy.fc_text_Body2_Regular14,labelColor:t.palette.fc_colour_text_neutralMedium}),n.createElement(u,{children:e.subTitle,use:a.Iy.fc_text_Caption2_Regular12,labelColor:t.palette.fc_colour_text_neutralLight})),n.createElement(o.Z,{children:e.pointsValue,use:a.Iy.fc_text_Saira_Title2_Semibold18,labelColor:t.palette.fc_colour_text_neutralMedium})))});P.displayName="PlayerPointInfo";let I=P},26022:function(e,t,i){i.d(t,{Z:()=>o});var n=i(2784),a=i(6371);let o=n.memo(e=>{let t=(0,n.useMemo)(()=>{let t=e.list.filter(a.Pm);return 0!==t.length&&e.delimeter?[...Array(2*t.length-1)].map((i,n)=>n%2?e.delimeter:t[n/2]):[]},[e.list]);return n.createElement(n.Fragment,null,t.map((t,i)=>n.createElement(n.Fragment,{key:`${e.keySuffix}-${i}`},t)))})}}]);

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.