PageSourceSearch

https://www.mixnpik.com/static/js/VendorPage.aa7cfe0b.chunk.js

js mixnpik.com collected 2026-10-02 16:03:08 UTC 29,609 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[984],{41370(e,o,r){r.r(o),r.d(o,{VendorPage:()=>Fe,VendorPageView:()=>De});var n=r(50016),t=r(33651),a=r(13403),i=r(8308),l=r(97350),s=r(27316),d=r(25694),u=r(61449),m=r(5532),c=r(306),p=r(13828),g=r(1948),v=r(38671),y=r(44296),C=r(31356),f=r(40068),b=r.n(f),h=r(96239),x=r(26444),L=r(29038),j=r(57218),S=r(57610),w=r(11750),A=r(66776),T=r(77429),M=r(95030),I=r(44277),U=r(7214),B=r(20219),P=r(81210),k=r(73514),E=r(71668),N=r(57417),R=r(82872),G=r(90076);const O=e=>{var o,r,n,t,a,i;const l=null!==(o=null===(r=e.prizes)||void 0===r||null===(n=r[0])||void 0===n?void 0:n.media)&&void 0!==o?o:e.media,s=null!==(t=e.prizes&&e.prizes.length>0)&&void 0!==t&&t,d=s?null===(a=e.prizes)||void 0===a||null===(i=a[0])||void 0===i?void 0:i.media.caption:"",u=z(s);return(0,G.jsx)(x.A,{style:u.container,children:(0,G.jsx)(I.A,{style:u.contentContainer,onPress:e.onPress,children:(0,G.jsxs)(R.d,{style:u.imageContainer,containerStyle:u.foregroundContainer,media:l,backgroundColor:e.backgroundColor,MediaComponent:e.MediaComponent,children:[(0,G.jsxs)(x.A,{style:u.header,children:[e.status?(0,G.jsx)(E.y,{...e.status,featured:!0,showDurationFromMs:6*B.MILLISECONDS_IN_DAY,compressedFormat:!0,showClock:!0,isLive:e.isLive}):(0,G.jsx)(x.A,{}),(0,G.jsx)(k.o,{withIcon:!0,count:e.players})]}),(0,G.jsxs)(x.A,{style:u.footer,children:[(0,G.jsx)(U.A,{style:u.title,numberOfLines:1,ellipsizeMode:"tail",children:e.title}),(0,G.jsx)(U.A,{style:u.subTitle,numberOfLines:1,ellipsizeMode:"tail",children:e.subTitle}),(0,G.jsx)(U.A,{style:u.caption,children:d})]})]})})})},z=e=>L.A.create({container:{flex:1,alignItems:"center",flexDirection:"column-reverse"},titleImage:{marginBottom:-20},contentContainer:{flex:1,width:"100%"},imageContainer:{position:"relative",alignItems:"center",height:e?224:128,aspectRatio:(0,P.V)(void 0,{web:1}),borderTopLeftRadius:16,borderTopRightRadius:16},foregroundContainer:{paddingHorizontal:16,paddingTop:16,paddingBottom:16,alignItems:"center",justifyContent:"space-between"},header:{width:"100%",flexDirection:"row",justifyContent:"space-between"},footer:{width:"100%",alignItems:"center"},title:{color:N.f_,fontFamily:N.UR,fontSize:N.Dh},subTitle:{color:N.HM,fontFamily:N.Ov,fontWeight:N.mT,marginTop:2,fontSize:N.Tr},caption:{marginTop:8,color:N.nj,fontFamily:N.kh,textAlign:"center",fontSize:N.WE}});var F=r(1841),D=r(23028);const V=e=>{var o,r;const n=Math.max(e.player.s,1),t=`${e.user.name} ${"\u2b50\ufe0f".repeat(n)}`,a=e.leaderboardConfig.levels[Math.max(e.leaderboardConfig.levels.length-(n+1),0)];return(0,G.jsxs)(x.A,{style:_.container,children:[(0,G.jsx)(F.e,{imageUrl:null===(o=e.user.media)||void 0===o||null===(r=o.image)||void 0===r?void 0:r.url,size:48}),(0,G.jsxs)(x.A,{style:_.copyContainer,children:[(0,G.jsx)(U.A,{style:_.title,children:t}),(0,G.jsx)(U.A,{style:_.description,children:H(a,e.miniLeageState)})]}),(0,G.jsx)(x.A,{style:_.scoreContainer,children:(0,G.jsx)(D.$,{score:e.player.t,size:"medium"})})]})},_=L.A.create({container:{display:"flex",flexDirection:"row",paddingVertical:8,paddingHorizontal:16},copyContainer:{display:"flex",flexDirection:"column",marginTop:4,marginLeft:16,flex:1,gap:4},title:{fontSize:14,fontFamily:N.UR,color:N.DO},description:{fontSize:12,fontFamily:N.kh,color:N.Z7},scoreContainer:{marginTop:8,marginLeft:"auto"}}),H=(e,o)=>{var r,n,t;return e?"string"===typeof e.details?e.details:"open"===o?null===(r=e.details)||void 0===r?void 0:r.open:"inplay"===o?null===(n=e.details)||void 0===n?void 0:n.inPlay:null===(t=e.details)||void 0===t?void 0:t.resulted:""};var $=r(82693);const W=e=>{var o;const{primaryColor:r,leaderboardComps:t,onGoToLeaderboard:a}=e,i=(0,A.getColorConfiguration)(r),l=(0,n.useMemo)((()=>t.some((e=>e.summary.status===w.CompStatus.INPLAY||e.summary.inPlayQuestions.length>0))?"inplay":t.some((e=>e.summary.status===w.CompStatus.OPEN))?"open":"verified"),[t]);return(0,G.jsxs)(x.A,{style:[K.container,e.style],children:[(0,G.jsx)(O,{vendorImageUrl:e.vend
1orImageUrl,backgroundColor:i.leaderboardSummaryHeaderBackground,title:e.leaderboardConfig.name,subTitle:null!==(o=e.leaderboardConfig.media.caption)&&void 0!==o?o:"",players:e.players.length,media:void 0,prizes:[],MediaComponent:e.MediaComponent,onPress:a}),e.currentPlayer&&e.currentUser&&(0,G.jsx)(V,{miniLeageState:l,leaderboardConfig:e.leaderboardConfig,player:e.currentPlayer,user:e.currentUser}),(0,G.jsxs)(x.A,{style:K.contentContainer,children:[e.leaderboardComps.map((o=>(0,G.jsx)(M.T,{colorConfig:i,comp:o,onPress:e.onGoToComp,children:(0,G.jsx)($.p,{comp:o})},o.summary.id))),(0,G.jsx)(x.A,{style:[K.footerContainer,{backgroundColor:i.leaderboardFooterBackground}],children:(0,G.jsx)(T.j,{style:K.actionButton,label:"All-stars leaderboard",onPress:a})})]})]})},K=L.A.create({container:{},contentContainer:{backgroundColor:N.hO,borderBottomLeftRadius:16,borderBottomRightRadius:16,overflow:"hidden"},footerContainer:{display:"flex",flexDirection:"column",justifyContent:"center",marginTop:2,padding:16,minHeight:64},actionButton:{width:"100%"}});var Q=r(21039),Y=r(9489),q=r(12503),Z=r(31661);const X=e=>{var o;const{style:r,safeAreaTopPadding:t}=e,a=(0,n.useMemo)((()=>J(e.appPlatform)),[e.appPlatform]),i=(0,n.useMemo)((()=>[a.container,r,{paddingTop:t+14}]),[r,a,t]);return(0,G.jsxs)(q.A,{style:i,colors:[e.color,null!==(o=e.fromColor)&&void 0!==o?o:N.bL],locations:[.33,1],children:[e.liveScore&&e.liveScore.homeName&&e.liveScore.awayName&&void 0!==e.liveScore.homeScore&&void 0!==e.liveScore.awayScore?(0,G.jsx)(Z.d,{liveScore:e.liveScore,style:a.liveScore}):e.title?(0,G.jsx)(x.A,{style:a.labelContainer,children:(0,G.jsx)(U.A,{style:a.label,numberOfLines:1,ellipsizeMode:"tail",children:e.title})}):null,e.children]})},J=e=>L.A.create({container:{minHeight:96,paddingHorizontal:16,paddingBottom:16,alignItems:"center"},labelContainer:{flex:1,width:"100%",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginTop:4,marginBottom:16,marginLeft:e===j.AppPlatform.ANDROID?96:72,paddingRight:e===j.AppPlatform.ANDROID?96:72},liveScore:{marginBottom:16,paddingLeft:e===j.AppPlatform.ANDROID?96:72,paddingRight:104+(e===j.AppPlatform.ANDROID?96:72)},label:{color:N.DO,fontFamily:N.Ov,fontSize:13}}),ee=e=>{var o,r;return(0,G.jsxs)(X,{style:e.style,safeAreaTopPadding:null!==(o=e.safeAreaTopPadding)&&void 0!==o?o:0,color:e.vendor.primaryColor,appPlatform:e.appPlatform,children:[(0,G.jsx)(F.e,{size:44,radius:8,imageUrl:null===(r=e.vendor.media.image)||void 0===r?void 0:r.url,highlightWidth:0}),(0,G.jsx)(U.A,{style:oe.name,children:e.vendor.name})]})},oe=L.A.create({name:{marginTop:8,marginBottom:24,fontFamily:N.t,fontSize:24,color:N.DO}}),re=e=>{var o,r,t;const{vendor:a,onGoToComp:i,onGoToLeaderboard:l,onUserSelected:s}=e,d=e.vendorMiniLeagueLeaderboardConfig,u=e.vendorMiniLeagueLeaderboard,m=null!==(o=null===u||void 0===u?void 0:u.leaders.find((o=>{var r;return o.u===(null===(r=e.user)||void 0===r?void 0:r.id)})))&&void 0!==o?o:null,c=(0,n.useMemo)((()=>(0,S.getUserByIdStream)(e.config.gameUrl)),[e.config.gameUrl]),p=(0,n.useCallback)((()=>{a&&d&&l(a,d)}),[l,a,d]),g=(0,n.useCallback)((e=>{s(e,a)}),[s,a]),v=(0,n.useCallback)((e=>{i(e.summary)}),[i]);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(ee,{vendor:a,appPlatform:(0,P.V)(j.AppPlatform.WEB,{ios:j.AppPlatform.IOS,android:j.AppPlatform.ANDROID}),safeAreaTopPadding:e.safeAreaTopPadding}),(0,G.jsxs)(x.A,{style:ne.contentContainer,children:[d&&(0,G.jsx)(W,{MediaComponent:e.MediaComponent,primaryColor:a.primaryColor,vendor:a.vendor,leaderboardComps:null!==(r=e.vendorMiniLeagueComps)&&void 0!==r?r:[],currentUser:e.user,currentPlayer:m,leaderboardConfig:d,players:null!==(t=null===u||void 0===u?void 0:u.leaders)&&void 0!==t?t:[],followingMap:e.followingMap,getUserById:c,onUserSelected:g,onGoToLeaderboard:p,onGoToComp:v}),e.vendorNews&&e.vendorNews.length>0&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Y.K,{title:"",subTitle:"Latest News"}),(0,G.jsx)(Q.e,{news:e.vendorNews,onSelected:e.onNewsSelected})]})]})]})},ne=L.A.create({contentContainer:{marginHorizontal:16},tempText:{color:"white",fontSize:16,fontFamily:N.kh}});var te=r(15670),ae=r(15308),ie=r(67284),le=r(94807),se=r(41499);const de=e=>{const{backgroundColor:o,winners:r,getUserById:t}
1=e,[a,i]=(0,n.useState)(void 0);(0,n.useEffect)((()=>{let e;return 1===r.length&&(e=t(r[0]).subscribe({next:e=>{i(e.name)}})),()=>{e&&e.unsubscribe()}}),[r,t]);const l=Math.ceil(Math.sqrt(r.length)),s=r.length>2,d=Math.min(80,190/l-16);return(0,G.jsx)(x.A,{style:ue.container,children:(0,G.jsxs)(x.A,{style:[ue.contentContainer,{backgroundColor:o}],children:[e.subTitle&&(0,G.jsx)(U.A,{style:ue.title,numberOfLines:1,ellipsizeMode:"tail",children:e.subTitle}),(0,G.jsx)(U.A,{style:ue.subTitle,children:e.title}),(0,G.jsx)(x.A,{style:ue.avatarsContainer,children:r.map((e=>(0,G.jsx)(se.A,{style:ue.avatar,userId:e,getUserById:t,size:d,radius:d/2,currentUser:null},e)))}),a&&(0,G.jsx)(U.A,{style:ue.subTitle,numberOfLines:1,ellipsizeMode:"tail",children:a}),!s&&(0,G.jsx)(U.A,{style:ue.footerTitle,numberOfLines:1,ellipsizeMode:"tail",children:1===r.length?"Winner":"Top Score"})]})})},ue=L.A.create({container:{flex:1,alignItems:"center",flexDirection:"column-reverse"},titleImage:{marginBottom:-16},contentContainer:{width:270,flex:1,display:"flex",aspectRatio:1,borderRadius:16,paddingHorizontal:16,paddingVertical:32,alignItems:"center"},title:{color:N.Ze,fontFamily:N.Ov,fontSize:16},subTitle:{color:N.DO,fontFamily:N.t,fontSize:21},avatarsContainer:{marginTop:(0,P.V)(16,{web:void 0}),flex:1,flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"center",aspectRatio:1.6,marginVertical:8,columnGap:16,rowGap:8},avatar:{},footerTitle:{color:N.Ze,fontFamily:N.Ov,fontSize:16}}),me=e=>{const{visible:o=!0,primaryColor:r,players:t}=e,a=(0,A.getColorConfiguration)(r),i=(0,n.useMemo)((()=>t.filter((e=>e.s>0&&e.s===t[0].s)).map((e=>e.u))),[t]);return o&&(0,G.jsx)(x.A,{style:ce.container,children:(0,G.jsx)(de,{winners:i,vendorImageUrl:e.vend
1orImageUrl,backgroundColor:a.leaderboardSummaryHeaderBackground,title:e.title,subTitle:e.subTitle,footerTitle:e.footerTitle,getUserById:e.getUserById})})},ce=L.A.create({container:{width:"100%"}}),pe=e=>{var o,r;const{leaders:t,filteredUsers:a,getLeaderboardSummaryById:i,onGoToLeaderboard:l}=e,s=(0,n.useMemo)((()=>e.comp.summary.leaderboards.find((e=>e.type===w.LeaderboardType.INGAME))),[e.comp.summary.leaderboards]),[d,u]=(0,n.useState)(null),m=(0,n.useCallback)((()=>{s&&l(s)}),[s,l]);return(0,n.useEffect)((()=>{let e;if(void 0!==s&&void 0!==t){const e=null!==t&&void 0!==t&&t.leaders?(0,ie.filter)(t.leaders,(e=>!a||a.includes(e.u))):[];u({...s,leaders:e,totalLeadersCount:e.length})}else void 0!==s&&void 0===t&&(e=i(s.id).subscribe({next:e=>{const o=(0,ie.filter)(e.leaders,(e=>!a||a.includes(e.u)));u((0,le.assertType)({...e,leaders:o,totalLeadersCount:o.length}))}}));return()=>{e&&e.unsubscribe()}}),[s,t,a,i]),e.comp.summary.status!==w.CompStatus.VERIFIED?null:d&&d.leaders&&d.leaders.length>0&&d.leaders[0].s>0&&(0,G.jsx)(I.A,{style:[ge.container,e.style],onPress:m,children:(0,G.jsx)(me,{title:e.title,vendorImageUrl:null===(o=e.comp.summary.logo.image)||void 0===o?void 0:o.url,primaryColor:e.comp.summary.primaryColor,subTitle:`${e.comp.summary.roundName}`,footerTitle:`${e.comp.summary.roundName}`,players:null!==(r=null===d||void 0===d?void 0:d.leaders)&&void 0!==r?r:[],followingMap:e.followingMap,getUserById:e.getUserById},d.id)})},ge=L.A.create({container:{marginBottom:16}});var ve=r(78200),ye=r(82880),Ce=r(31128),fe=r(96118),be=r(16168),he=r(43055);const xe=e=>{const{visible:o=!0,primaryColor:r,players:t,prizes:a,currentPlayer:i,currentUser:l,currentUserEntry:s,entryStatus:d,entriesCount:u,starts:m,status:c,vendor:p,compQuestions:g,leadersIfOverMax:v,maxLeaderboardLength:y=5,onGoToLeaderboard:C,onGoToGame:f}=e,b=(0,n.useMemo)((()=>t.some((e=>e.s>0))),[t]),h=(0,A.getColorConfiguration)(r),L=c===ye.ClientStatus.OPEN||c===ye.ClientStatus.PRE_START,S=(0,n.useMemo)((()=>null!==g&&g.some((e=>e.status===w.QuestionStatus.INPLAY))),[g]),M=c===ye.ClientStatus.OPEN||c===ye.ClientStatus.PRE_START||c===ye.ClientStatus.IN_PLAY,{sortedPlayers:I,currentPlayerWithIndex:B,showLeaderboardButton:P}=(0,n.useMemo)((()=>{const e=t.map(((e,o)=>({leader:e,index:o}))),o=e.find((e=>(null===l||void 0===l?void 0:l.id)===e.leader.u)),r=[...e];L&&!b&&r.reverse();const n=r.length>y||M&&null===s,a=r.length>y&&null!==v&&void 0!==v?v:y;return{sortedPlayers:r.slice(0,a),currentPlayerWithIndex:o,showLeaderboardButton:n}}),[L,b,t,y,M,v,l,s]),k=(0,n.useMemo)((()=>{if(!L&&null!==e.currentUserEntry&&null!==g)return je(g,e.currentUserEntry,L)}),[g,e.currentUserEntry,L]),E=(0,n.useMemo)((()=>I.length>0&&null!==i?I[0].leader.s-(null===i||void 0===i?void 0:i.s):0),[I,i]),N=(0,n.useCallback)((()=>{null===i&&d!==j.EnterCompStatus.ERROR&&d!==j.EnterCompStatus.PROCESSING&&M?f():C()}),[i,d,M,C,f]);return o&&(0,G.jsxs)(x.A,{style:[Le.container,e.style],children:[(0,G.jsx)(O,{vendorImageUrl:e.vend
1orImageUrl,backgroundColor:h.leaderboardSummaryHeaderBackground,title:e.title,subTitle:e.subTitle,players:e.entriesCount,status:{startTime:m,status:null!==c&&void 0!==c?c:ye.ClientStatus.OPEN,questionsInPlay:S},media:void 0,prizes:a,MediaComponent:e.MediaComponent,isLive:e.isLive,onPress:C}),(0,G.jsxs)(x.A,{style:Le.contentContainer,children:[I.map((r=>{const n=r.leader,t=(null===l||void 0===l?void 0:l.id)===n.u;return(0,G.jsx)(x.A,{style:t?L?Le.currentUserLatestLeaderContainer:Le.currentUserLeaderContainer:Le.leaderContainer,children:(0,G.jsx)(he.C,{position:r.index+1,colorConfig:h,visible:o,isCurrentUser:t,player:n,user:t?l:null,compVendor:p,compStatus:c,showScoreInPrelive:b,winner:!0===n.w&&c===ye.ClientStatus.VERIFIED,isFollowing:!0===e.followingMap[n.u],entryBreakdown:t?k:void 0,isSummary:!0,getUserById:e.getUserById,onPress:e.onUserSelected})},n.u)})),!I.find((e=>(null===l||void 0===l?void 0:l.id)===e.leader.u))&&B&&null!==i&&!L&&(0,G.jsxs)(x.A,{style:Le.currentUserContainer,children:[(0,G.jsxs)(U.A,{style:Le.currentUserCopy,numberOfLines:1,ellipsizeMode:"tail",children:["You",c===ye.ClientStatus.VERIFIED?" finished ":" are ",1===E?"1 point ":`${E} points `,"behind the leader."]}),(0,G.jsx)(x.A,{style:Le.currentUserLeaderContainer,children:(0,G.jsx)(he.C,{position:B.index+1,colorConfig:h,visible:o,isCurrentUser:!0,player:i,user:e.currentUser,compVendor:p,compStatus:c,showScoreInPrelive:b,winner:!1,isFollowing:!1,achievements:null===l||void 0===l?void 0:l.achievements,entryBreakdown:k,isSummary:!0,getUserById:e.getUserById,onPress:e.onUserSelected},null===l||void 0===l?void 0:l.id)})]}),(0,G.jsx)(x.A,{style:[Le.footerContainer,{backgroundColor:h.leaderboardFooterBackground}],children:P&&(0,G.jsx)(T.j,{style:Le.actionButton,label:null===i&&e.entryStatus!==j.EnterCompStatus.ERROR&&e.entryStatus!==j.EnterCompStatus.PROCESSING&&M?"Play now":u>I.length?`Show all ${(0,Ce.ZV)(u)} fans`:"Show Leaderboard",onPress:N})})]})]})},Le=L.A.create({container:{},contentContainer:{backgroundColor:N.hO,borderBottomLeftRadius:16,borderBottomRightRadius:16,overflow:"hidden"},leaderContainer:{},currentUserLeaderContainer:{},currentUserLatestLeaderContainer:{backgroundColor:N.bL},currentUserContainer:{backgroundColor:N.bL},currentUserCopy:{marginLeft:12,marginRight:40,color:N.Z7,fontFamily:N.Ov,fontSize:14,marginVertical:8},footerContainer:{display:"flex",flexDirection:"column",justifyContent:"center",marginTop:2,padding:16,minHeight:64},actionButton:{width:"100%"}}),je=(e,o,r)=>{const n={[fe.E.CORRECT]:0,[fe.E.WRONG]:0,[fe.E.OPEN]:0,[fe.E.CHANGEABLE]:0,[fe.E.IN_PLAY]:0};return e.forEach((e=>{var t;const a=null!==(t=e.resolved)&&void 0!==t?t:void 0;n[(0,be.O1)(e.status,(0,be.Ev)(e.status,r,!1,a,!0,o.answers[e.id],e.type),e.type,a,o.answers[e.id])]++})),n},Se=e=>{var o,r,t,a,i;const{user:l,comp:s,leaders:d,filteredUsers:u,getLeaderboardSummaryById:m,onUserSelected:c}=e,p=(0,n.useMemo)((()=>e.comp.summary.leaderboards.find((e=>e.type===w.LeaderboardType.INGAME))),[e.comp.summary.leaderboards]),[g,v]=(0,n.useState)(null),y=(0,n.useCallback)((e=>{c(e,s.summary.id)}),[s,c]);return(0,n.useEffect)((()=>{let e;if(void 0!==p&&void 0!==d){const e=null!==d&&void 0!==d&&d.leaders?(0,ie.filter)(d.leaders,(e=>!u||u.includes(e.u))):[];v({...p,leaders:e,totalLeadersCount:e.length})}else void 0!==p&&void 0===d&&(e=m(p.id).subscribe({next:e=>{const o=u?(0,ie.filter)(e.leaders,(e=>u.includes(e.u))):e.leaders;v((0,le.assertType)({...e,leaders:o,totalLeadersCount:o.length}))}}));return()=>{e&&e.unsubscribe()}}),[p,d,u,m]),(0,G.jsx)(G.Fragment,{children:p&&(0,G.jsxs)(G.Fragment,{children:[e.sectionTitle&&(0,G.jsx)(Y.K,{title:"",subTitle:e.sectionTitle}),(0,G.jsx)(x.A,{style:we.leaderboardContainer,children:(0,G.jsx)(xe,{leadersIfOverMax:3,maxLeaderboardLength:5,title:e.title,vendorImageUrl:null===(o=e.comp.summary.logo.image)||void 0===o?void 0:o.url,primaryColor:e.comp.summary.primaryColor,subTitle:`${e.comp.summary.roundName} \u2219 ${e.comp.summary.name}`,players:null!==(r=null===g||void 0===g?void 0:g.leaders)&&void 0!==r?r:[],currentPlayer:null!==(t=null===g||void 0===g?void 0:g.leaders.find((o=>{var r;return o.u===(null===(r=e.user)||void 0===r?void 0:r.id)})))&&void 0!==t?t:null,currentUser:l,currentUserEntry:e.comp.entry,entryStatus:null!==e.comp.entry?j.EnterCompStatus.COMPLETE:j.EnterCompStatus.NOT_ENTE
1RED,entriesCount:null!==(a=null===g||void 0===g?void 0:g.leaders.length)&&void 0!==a?a:0,starts:e.comp.summary.starts,status:(0,ve.getCompetitionClientStatus)(e.comp.summary.starts,e.comp.summary.status),vendor:e.comp.summary.vendor,compQuestions:e.questions,followingMap:e.followingMap,prizes:p.prizes,MediaComponent:e.MediaComponent,isLive:null===(i=e.comp.summary.liveScore)||void 0===i?void 0:i.isLive,getUserById:e.getUserById,onUserSelected:y,onGoToLeaderboard:()=>e.onGoToLeaderboard(p),onGoToGame:()=>e.onGoToGame(e.comp.summary)},p.id)})]})})},we=L.A.create({leaderboardContainer:{marginBottom:16}});var Ae=r(57440);const Te=e=>{var o,r,t;const{invalidationKey:a,visible:i=!0,privateMode:l=!1,leaderboardId:s,title:d,prizes:u,vendorImageUrl:m,currentUser:c,primaryColor:p,onGoToLeaderboard:g,getMultiGameLeaderboardSummaryById:v,users:y,leadersIfOverMax:C,minLeaderboardLength:f=3,maxLeaderboardLength:b=3}=e,h=(0,A.getColorConfiguration)(p),[L,j]=(0,n.useState)(null),[S,w]=(0,n.useState)(a),[M,I]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{const e=e=>{const o=e.leaders.length>b&&null!==C&&void 0!==C?C:b;I(e.leaders.length>b),j((0,le.assertType)({...e,leaders:e.leaders.sort((e=>e.w?-1:0)).slice(0,o)}))};null!==L&&a===S||(w(null!==a&&void 0!==a?a:""),void 0===y?v(s,a,b+1).subscribe({next:e}):v(s,a).subscribe({next:o=>{const r=(0,ie.filter)(o.leaders,(e=>y.includes(e.u)));e({...o,leaders:r,totalLeadersCount:r.length})}}))}),[v,a,S,L,b,C,s,y]),i&&L&&L.leaders.length>=f&&(0,G.jsxs)(x.A,{style:Me.container,children:[(0,G.jsx)(O,{vendorImageUrl:m,backgroundColor:h.leaderboardSummaryHeaderBackground,title:null!==d&&void 0!==d?d:L.shortName,subTitle:l?null!==(o=null!==(r=L.privateCaption)&&void 0!==r?r:L.media.caption)&&void 0!==o?o:"":null!==(t=L.media.caption)&&void 0!==t?t:"",players:L.totalLeadersCount,media:L.media,prizes:u,MediaComponent:e.MediaComponent,onPress:g}),(0,G.jsxs)(x.A,{style:Me.contentContainer,children:[L.leaders.map(((o,r)=>{const n=(null===c||void 0===c?void 0:c.id)===o.u;return(0,G.jsx)(x.A,{style:n?Me.currentUserLeaderContainer:Me.leaderContainer,children:(0,G.jsx)(Ae.z,{position:r+1,type:L.type,visible:i,player:o,currentUser:n?c:null,winner:!0===o.w,isFollowing:!0===e.followingMap[o.u],colorConfig:h,getUserById:e.getUserById,onPress:e.onUserSelected})},o.u)})),(0,G.jsx)(x.A,{style:[Me.footerContainer,{backgroundColor:h.leaderboardFooterBackground}],children:M&&(0,G.jsx)(T.j,{style:Me.button,label:"Show all fans",onPress:g})})]})]})},Me=L.A.create({container:{},leaderContainer:{},currentUserLeaderContainer:{},contentContainer:{backgroundColor:N.hO,borderBottomLeftRadius:16,borderBottomRightRadius:16,overflow:"hidden"},footerContainer:{display:"flex",flexDirection:"column",justifyContent:"center",marginTop:2,padding:16,minHeight:56},button:{width:"100%"}}),Ie=e=>{const{user:o}=e;return e.leaderboards.filter((e=>e.type!==w.LeaderboardType.INGAME)).map((r=>(0,G.jsxs)(n.Fragment,{children:[(0,G.jsx)(Y.K,{title:e.title,subTitle:r.name}),(0,G.jsx)(x.A,{style:Ue.leaderboardContainer,children:(0,G.jsx)(Te,{invalidationKey:e.lastVerifiedCompId,leaderboardId:r.id,privateMode:e.privateMode,users:e.filterUsers,minLeaderboardLength:0,vendorImageUrl:e.logoImageUrl,primaryColor:e.primaryColor,currentUser:o,followingMap:e.followingMap,maxLeaderboardLength:10,MediaComponent:e.MediaComponent,getUserById:e.getUserById,getMultiGameLeaderboardSummaryById:e.getLeaderboardSummaryById,onUserSelected:e.onUserSelected,onGoToLeaderboard:()=>e.onGoToLeaderboard(r)})})]},r.id)))},Ue=L.A.create({leaderboardContainer:{marginBottom:16}});var Be=r(97961),Pe=r(22513);const ke=e=>{var o,r,t,a,i,l,s,d,m;const{vendor:c,onGoToLeaderboard:p,onGoToComp:g,onUserSelected:y}=e,C=(0,v.getCompsForVendor)(e.upcomingComps,c.vendor),f=(0,v.getCompsForVendor)(e.resultedComps,c.vendor),b=(0,u.getFeaturedComp)(C,f),h=null===b||void 0===b?void 0:b.summary.leaderboards.find((e=>e.type===w.LeaderboardType.INGAME)),L=f[0],A=null!==(o=null===L||void 0===L?void 0:L.summary.id)&&void 0!==o?o:"",T=null===b||void 0===b?void 0:b.summary.leaderboards.find((e=>e.prizes&&e.prizes.length>0)),M=(0,n.useMemo)((()=>(0,S.getUserByIdStream)(e.config.gameUrl)),[e.config.gameUrl]),I=(0,n.useMemo)((()=>(0,ae.getLeaderboardSummaryAndLeadersByIdStream)(e.config.gameUrl)),[e.config.gameUrl]),U=(0,n.useCallback)((e=>{c&&e&&p(c,e)}),[c,p]),B=(0,n.useCallback)((e=>{g(e.summary)}),[g]),k=(0,n.useCallback)((e=>{y(e,c,null===b||void 0===b?void 0:b.summary)}),[y,c,b]),E=(0,n.useCallback)((e=>{g(e)}),[g]);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(ee,{vendor:c,appPlatform:(0,P.V)(j.AppPlatform.WEB,{ios:j.Ap
1pPlatform.IOS,android:j.AppPlatform.ANDROID}),safeAreaTopPadding:e.safeAreaTopPadding}),(0,G.jsxs)(x.A,{style:Ee.contentContainer,children:[b&&(0,G.jsx)(Se,{MediaComponent:e.MediaComponent,sectionTitle:T?void 0:"This Week",title:null!==(r=null===h||void 0===h?void 0:h.name)&&void 0!==r?r:b.summary.name,user:e.user,leaders:null===(t=e.vendorLiveLeaderboardsByComp)||void 0===t?void 0:t[b.summary.id],comp:b,questions:null!==(a=null===(i=e.vendorQuestionsByComp)||void 0===i?void 0:i[b.summary.id])&&void 0!==a?a:[],counts:null!==(l=null===(s=e.vendorCountsByComp)||void 0===s?void 0:s[b.summary.id])&&void 0!==l?l:null,followingMap:e.followingMap,getUserById:M,getLeaderboardSummaryById:I,onUserSelected:k,onGoToLeaderboard:U,onGoToGame:E}),e.vendorNews&&e.vendorNews.length>0&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Y.K,{title:"",subTitle:"Latest News"}),(0,G.jsx)(Q.e,{news:e.vendorNews,onSelected:e.onNewsSelected})]}),C.length>0&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Y.K,{title:"",subTitle:"Now & Next"}),(0,G.jsx)(Pe.O,{style:Ee.gamesList,competitions:C,enableHighlight:!1,onSelected:B})]}),b&&(0,G.jsx)(Ie,{MediaComponent:e.MediaComponent,lastVerifiedCompId:A,privateMode:!1,title:"",user:e.user,primaryColor:b.summary.primaryColor,logoImageUrl:null===(d=b.summary.logo.image)||void 0===d?void 0:d.url,leaderboards:b.summary.leaderboards.filter((e=>e.type!==w.LeaderboardType.CHANCER)),followingMap:e.followingMap,getUserById:M,getLeaderboardSummaryById:I,onUserSelected:k,onGoToLeaderboard:U}),(0,G.jsx)(Y.K,{title:"",subTitle:"Top Fans"}),(0,G.jsx)(te.A,{style:Ee.topFansContainer,horizontal:!0,data:f.slice(0,7),renderItem:o=>{var r,n,t,a,i;const l=o.item;return(0,G.jsx)(pe,{style:Ee.topFansSpacer,title:l.summary.shortName,user:e.user,leaders:null===(r=e.vendorLiveLeaderboardsByComp)||void 0===r?void 0:r[l.summary.id],comp:l,questions:null!==(n=null===(t=e.vend
1orQuestionsByComp)||void 0===t?void 0:t[l.summary.id])&&void 0!==n?n:[],counts:null!==(a=null===(i=e.vendorCountsByComp)||void 0===i?void 0:i[l.summary.id])&&void 0!==a?a:null,followingMap:e.followingMap,getUserById:M,getLeaderboardSummaryById:I,onGoToLeaderboard:e=>{E(l.summary)}},`${l.summary.id}-award`)}}),f.length>0&&b&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Y.K,{title:"",subTitle:"Previous Games"}),(0,G.jsx)(Be.k,{primaryColor:b.summary.primaryColor,title:c.name,competitions:f.slice(0,7),onSelectCompetition:B})]}),b&&(0,G.jsx)(Ie,{MediaComponent:e.MediaComponent,lastVerifiedCompId:A,privateMode:!1,title:"",user:e.user,primaryColor:b.summary.primaryColor,logoImageUrl:null===(m=b.summary.logo.image)||void 0===m?void 0:m.url,leaderboards:b.summary.leaderboards.filter((e=>e.type===w.LeaderboardType.CHANCER)),followingMap:e.followingMap,getUserById:M,getLeaderboardSummaryById:I,onUserSelected:k,onGoToLeaderboard:U})]})]})},Ee=L.A.create({contentContainer:{marginHorizontal:16},gamesList:{marginHorizontal:-8},topFansContainer:{display:"flex",flexDirection:"row",gap:16},topFansSpacer:{marginRight:16}});var Ne=r(97206),Re=r(76966),Ge=r(58665),Oe=r(47192),ze=r(1205);const Fe=e=>{const o=(0,t.wA)(),r=(0,t.d4)(c.getIsMute);return(0,G.jsx)(De,{...e,isAppReadyToDisplay:(0,t.d4)(p.q),mute:r,config:(0,t.d4)(Re.z),user:(0,t.d4)(g.getUser),vendors:(0,t.d4)(v.getVendors),upcomingComps:(0,t.d4)(u.getUpcomingCompetitions),resultedComps:(0,t.d4)(u.getResultedCompetitions),followingMap:(0,t.d4)(g.getUserIsFollowingAsMap),vendorCountsByComp:(0,t.d4)(v.getVendorCompCounts),vendorQuestionsByComp:(0,t.d4)(v.getVendorQuestions),vendorLiveLeaderboardsByComp:(0,t.d4)(v.getVendorLiveLeaderboards),vendorNews:(0,t.d4)(v.getVendorNews),vendorMiniLeagueLeaderboard:(0,t.d4)(v.getVendorMiniLeagueLeaderboard),vendorMiniLeagueLeaderboardConfig:(0,t.d4)(v.getVendorMiniLeagueLeaderboardConfig),miniLeagueCompsMap:(0,t.d4)(m.jy),dispatchAction:(0,n.useCallback)((e=>o(e)),[o]),onMute:(0,n.useCallback)((()=>o((0,s.setMute)(!r))),[r,o])})},De=n.memo((e=>{var o,r,t;const s=(0,a.Zp)();let{vendor:m}=(0,a.g)();const c=e.vendors.find((e=>e.vendor.toLocaleLowerCase()===(null===m||void 0===m?void 0:m.toLocaleLowerCase()))),{dispatchAction:p}=e;(0,n.useEffect)((()=>(c&&(c.isMiniLeague?p((0,l.fetchVendorMiniLeagueDetails)(c.vendor)):p((0,l.fetchVendorCompDetails)(c.vendor))),()=>{p((0,l.fetchCloseVendor)())})),[c,p]),(0,n.useEffect)((()=>{(0,Ne.X3)(`${m} vendor page`)}),[m]);const g=(0,n.useCallback)(((e,o)=>{s({pathname:`/leaderboard/${o.id}`,search:window.location.search},{state:{canGoBack:!0}})}),[s]),f=(0,n.useCallback)(((e,o)=>{s({pathname:`/${e}/${o}`,search:window.location.search},{state:{canGoBack:!0}})}),[s]),x=(0,n.useCallback)(((e,o,r)=>{p((0,d.addOverlay)((0,y.getPlayerProfileOverlay)(e,o.vendor,null===r||void 0===r?void 0:r.id)))}),[p]),L=(0,n.useCallback)((e=>{f(e.vendor,e.key)}),[f]),j=(0,n.useCallback)((()=>{s({pathname:"/",search:window.location.search},{state:{canGoBack:!1}})}),[s]),S=(0,n.useCallback)((e=>{e&&((0,Ne.d4)("vendor_page_news_url_press"),window.open(e,"_blank"))}),[]);if(!m||!c)return void(e.vendors.length>0&&(b().debug("Vendor not found","GOING HOME",m,c),j()));let w=(0,v.getCompsForVendor)(e.upcomingComps,m),A=(0,v.getCompsForVendor)(e.resultedComps,m);e.isAppReadyToDisplay||(w=[],A=[]);const T=(0,u.getFeaturedComp)(w,A);return(0,G.jsxs)(Oe.L,{children:[(0,G.jsx)(ze.s,{config:e.config,comp:null!==(o=null===T||void 0===T?void 0:T.summary)&&void 0!==o?o:null}),(0,G.jsxs)("div",{className:(0,C.kY)("vendor-page__container"),children:[c.isMiniLeague?(0,G.jsx)(re,{...e,MediaComponent:Ge.U,safeAreaTopPadding:0,vendor:c,vendorMiniLeagueComps:null!==(r=e.miniLeagueCompsMap.get(m))&&void 0!==r?r:[],onGoToComp:L,onGoToLeaderboard:g,onUserSelected:x,onNewsSelected:S}):(0,G.jsx)(ke,{...e,MediaComponent:Ge.U,safeAreaTopPadding:0,vendor:c,vendorMiniLeagueComps:null!==(t=e.miniLeagueCompsMap.get(m))&&void 0!==t?t:[],onGoToComp:L,onGoToLeaderboard:g,onUserSelected:x,onNewsSelected:S}),(0,G.jsx)("div",{className:"vendor-page__top-icons-container",children:(0,G.jsx)("div",{className:"vendor-page__back-container",children:(0,G.jsx)(i.N_,{to:{pathname:"/",search:window.location.search},children:(0,G.jsx)("div",{className:"vendor-page__back",onClick:j,children:(0,G.jsx)(h.mj,{})})})})})]})]})}))},15308(e,o,r){var n=this&&this.__importDefault||function(e){return e&&e.__esMo
1dule?e:{default:e}};Object.defineProperty(o,"__esModule",{value:!0}),o.getLeaderboardSummaryAndLeadersByIdStream=void 0;var t=r(15694),a=r(13933),i=r(11714),l=r(47002),s=r(11750),d=n(r(40068)),u=r(94807),m=new Map;o.getLeaderboardSummaryAndLeadersByIdStream=function(e){return function(o,r,n){var p=(0,a.of)(o).pipe((0,l.delay)(90),(0,l.mergeMap)((function(o){return(0,i.ajax)({url:"".concat(e,"/get_leaderboard_summary_and_leaders?id=").concat(o).concat(void 0!==r?"&ik=".concat(r):"").concat(void 0!==n?"&length=".concat(n):""),method:"GET"}).pipe((0,l.map)((function(e){return t.Value.Cast(s.TLeaderboardSummaryAndLeaders,e.response)})),(0,l.tap)((function(e){return m.set(c(o,r,n),e)})))})),(0,l.catchError)((function(e){return(0,a.of)(e).pipe((0,l.map)((function(){return(0,u.assertType)({name:"Unknown",media:{},id:"",type:s.LeaderboardType.INGAME,key:"",shortName:"",prizes:[],leaders:[],totalLeadersCount:0})})))}))),g=(0,a.of)(m.get(c(o,r,n))).pipe((0,l.filter)((function(e){return void 0!==e})),(0,l.delay)(50),(0,l.tap)((function(){return d.default.debug("Updating with stored summaries",o)})));return(0,a.merge)(g,p).pipe((0,l.take)(1))}};var c=function(e,o,r){return"".concat(e,"-").concat(null!==o&&void 0!==o?o:"","-").concat(null!==r&&void 0!==r?r:"")}}}]);

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.