1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6798],{29367:(e,l,a)=>{a.d(l,{A:()=>x});var t=a(95155);a(12115);var n=a(15239),s=a(43581),r=a(76771),d=a(24274),i=a(68138),o=a(7176),c=a(52619),m=a.n(c);let x=e=>{let{paginatedSocial:l=[],onClickRow:a}=e,{t:c}=(0,d.Bd)("screen");if((null==l?void 0:l.length)>0){let e=null==l?void 0:l.map((e,l)=>({...e,displayIndex:l+1}));return(0,t.jsxs)("div",{children:[(0,t.jsx)(s.A,{showNoDataMessage:!1,data:e,headerStyle:{background:"var(--card-gradient)"},rowStyle:e=>e.is_me?{background:"var(--isMe-gradient)"}:{background:"var(--card-gradient)"},columns:[{key:"rank",label:c("leaderboard.labels.rank"),render:e=>{let l=1===e.rank&&0===e.points?e.displayIndex:e.rank;return(0,t.jsx)("div",{children:l>=1&&l<=3?(0,t.jsx)("div",{className:"relative w-6 h-6 sm:w-8 sm:h-8 md:w-10 md:h-10 flex items-center justify-center",children:(0,t.jsx)(n.default,{src:"/images/home/trophy_pos_".concat(l,".png"),alt:"Position ".concat(l),fill:!0,className:"object-contain"})}):(0,t.jsxs)("div",{className:"text-xs sm:text-sm md:text-base font-semibold text-tertiary px-1 sm:px-2",children:["#",e.rank]})})}},{key:"player",label:c("leaderboard.labels.player"),render:e=>{var l,a;let s=1===e.rank&&0===e.points?e.displayIndex:e.rank;return(0,t.jsxs)("div",{className:"flex items-center gap-1.5 sm:gap-2 md:gap-3",children:[(0,t.jsx)("div",{className:"relative w-7 h-7 sm:w-9 sm:h-9 md:w-10 md:h-10 flex-shrink-0 rounded-full overflow-hidden",children:(0,t.jsx)(n.default,{src:null!=(l=e.avatar_url)?l:"/images/defaultUserAvatar.png",alt:e.name,fill:!0,className:"object-cover"})}),(0,t.jsxs)("div",{className:"flex flex-col min-w-0",children:[(0,t.jsx)(m(),{href:"/profile/".concat(null==e?void 0:e.user_id),children:(0,t.jsx)("span",{className:"text-xs sm:text-base md:text-xl lg:text-2xl font-bold capitalize text-tertiary truncate max-w-[80px] sm:max-w-[140px] md:max-w-[200px] lg:max-w-[300px]",children:e.name})}),(0,t.jsx)("span",{className:"text-[10px] sm:text-xs text-neutral-one font-semibold truncate",children:null!=(a=e.country)?a:"-"})]}),1===s?(0,t.jsx)(i.pw,{size:20,color:"transparent",className:"flex-shrink-0 sm:w-6 sm:h-6 md:w-8 md:h-8"}):2===s||3===s?(0,t.jsx)(i.Bf,{size:20,color:"transparent",stroke:"var(--tertiary)",className:"flex-shrink-0 sm:w-6 sm:h-6 md:w-8 md:h-8"}):null]})}},{key:"achievement",label:c("leaderboard.labels.achievement"),className:"hidden sm:table-cell",render:e=>(null==e?void 0:e.achievement)?(0,t.jsx)(r.CardChip,{label:null==e?void 0:e.achievement}):(0,t.jsx)("span",{className:"text-xs sm:text-sm text-neutral-one",children:"Coming Soon"})},{key:"equipment",label:c("leaderboard.labels.equipment"),className:"hidden md:table-cell",render:e=>{var l;return(0,t.jsx)("span",{className:"text-xs sm:text-sm text-tertiary",children:null!=(l=null==e?void 0:e.equipment)?l:"Coming Soon"})}},{key:"main_game",label:c("leaderboard.labels.mainGame"),className:"hidden md:table-cell",render:e=>{var l;return(0,t.jsx)("span",{className:"text-xs sm:text-sm text-tertiary",children:null!=(l=null==e?void 0:e.main_game)?l:"Coming Soon"})}},{key:"last_earned_points",label:"XP",render:e=>(0,t.jsx)("div",{className:"flex flex-col",children:(0,t.jsx)("h2",{className:"text-sm sm:text-lg md:text-2xl text-state-success font-bold font-rajdhani",children:null==e?void 0:e.points})})}]}),(null==e?void 0:e.length)&&(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2 sm:gap-4 mt-2",children:[(0,t.jsx)(o.Kp,{className:"h-5 w-5 sm:h-6 sm:w-6"}),(0,t.jsx)("h2",{className:"text-state-success sm:text-2xl font-normal font-nyxerin text-center",children:c("leaderboard.labels.promotionZoneTitle",{count:null==e?void 0:e.length})})]})]})}}},30760:(e,l,a)=>{a.d(l,{Q:()=>s});var t=a(68369),n=a(93118);function s(){let{userId:e,lang:l}=(0,t.K8)(),a=new Date().toISOString().split("T")[0];return(0,t.Sk)(["leaderboard","weekly",a,e,l],"api/v1/app/league/weekly/leaderboard",{mode:"auth",params:{week:a},staleTime:n.nC,gcTime:n.nC})}},43581:(e,l,a)=>{a.d(l,{A:()=>s});var t=a(95155),n=a(24274);function s(e){let{data:l=[],columns:a=[],onClickRow:s=null,showNoDataMessage:r=!0,showHeader:d=!0,headerStyle:i={background:"var(--promotional-gradient)"},rowStyle:o={background:"var(--promotional-gradient)"}}=e,{t:c}=(0,n.Bd)("common");return!l||0===l.length&&r?(0,t.jsx)("p",{className:"text-neutral-one",children:c("messages.noD
1ata")}):(0,t.jsx)("div",{className:"overflow-x-auto rounded-xl",children:(0,t.jsxs)("table",{className:"min-w-full overflow-hidden",children:[d&&(0,t.jsx)("thead",{style:i,children:(0,t.jsx)("tr",{children:a.map(e=>(0,t.jsx)("th",{className:"px-4 py-3 text-left text-sm [1600px]:text-base font-semibold text-white border-b-16 border-secondary ".concat(e.className||""),children:e.label},e.key))})}),(0,t.jsx)("tbody",{children:l.map((e,l)=>{var n,r;return(0,t.jsx)("tr",{className:"md:h-20 border-b-12 border-secondary ".concat(s&&"cursor-pointer"),onClick:()=>null==s?void 0:s(e),style:"function"==typeof o?o(e):o,children:a.map(l=>(0,t.jsx)("td",{className:"px-4 py-1 text-base font-semibold text-tertiary first:rounded-l-3xl last:rounded-r-3xl ".concat(l.className||""),children:l.render?l.render(e):e[l.key]},l.key))},null!=(r=null!=(n=null==e?void 0:e.id)?n:null==e?void 0:e.user_id)?r:"row-".concat(l))})})]})})}a(12115)},46798:(e,l,a)=>{a.r(l),a.d(l,{LeaguePreview:()=>C,MemberInfoModal:()=>_,Top3Leaderboard:()=>A,default:()=>I,getLargeLeagueIndex:()=>S});var t=a(95155),n=a(12115),s=a(15239),r=a(24274),d=a(7176),i=a(49730),o=a(76771),c=a(17398),m=a(29367),x=a(43581),u=a(52619),v=a.n(u);function h(e){let{data:l=[],onClickRow:a}=e,{t:n}=(0,r.Bd)("screen");return l&&0!==l.length?(0,t.jsx)("div",{className:"my-8",children:(0,t.jsx)(x.A,{rowStyle:e=>e.is_me?{background:"var(--isMe-gradient)"}:{background:"var(--card-gradient)"},showHeader:!1,showNoDataMessage:!1,data:l,columns:[{key:"rank",label:n("leaderboard.labels.rank"),render:e=>(0,t.jsxs)("div",{className:"text-base font-semibold text-tertiary px-2",children:["#",e.rank]})},{key:"player",label:n("leaderboard.labels.player"),render:e=>{var l;return(0,t.jsxs)("div",{className:"flex items-center gap-3 lg:min-w-[300px]",children:[(0,t.jsx)("div",{className:"relative w-10 h-10 rounded-full overflow-hidden",children:(0,t.jsx)(s.default,{src:null!=(l=e.avatar_url)?l:"/images/defaultUserAvatar.png",alt:e.name,fill:!0,className:"object-cover"})}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)(v(),{href:"/profile/".concat(null==e?void 0:e.user_id),children:(0,t.jsx)("span",{className:"sm:text-2xl font-bold capitalize text-tertiary truncate",children:e.name})}),(0,t.jsx)("span",{className:"sm:text-xs text-neutral-one font-semibold",children:e.country?e.country:"-"})]})]})}},{key:"achievement",label:n("leaderboard.labels.achievement"),className:"hidden sm:table-cell",render:e=>(null==e?void 0:e.achievement)?(0,t.jsx)(o.CardChip,{label:null==e?void 0:e.achievement}):"Coming Soon"},{key:"equipment",label:n("leaderboard.labels.equipment"),className:"hidden sm:table-cell",render:e=>{var l;return null!=(l=null==e?void 0:e.equipment)?l:"Coming Soon"}},{key:"main_game",label:n("leaderboard.labels.mainGame"),className:"hidden sm:table-cell",render:e=>{var l;return null!=(l=null==e?void 0:e.main_game)?l:"Coming Soon"}},{key:"last_earned_points",label:"XP",render:e=>(0,t.jsx)("div",{className:"flex flex-col",children:(0,t.jsx)("h2",{className:"text-xl md:text-2xl text-state-success font-bold font-rajdhani",children:null==e?void 0:e.points})})}]})}):null}function f(e){let{data:l=[],onClickRow:a}=e,{t:n}=(0,r.Bd)("screen");return l&&0!==l.length?(0,t.jsxs)("div",{children:[(null==l?void 0:l.length)&&(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2 sm:gap-4 mb-4",children:[(0,t.jsx)(d.ZL,{className:"h-5 w-5 sm:h-6 sm:w-6"}),(0,t.jsx)("h2",{className:"text-pill-gradient sm:text-2xl font-normal font-nyxerin text-center",children:n("leaderboard.labels.downfallZoneTitle",{count:null==l?void 0:l.length})})]}),(0,t.jsx)(x.A,{rowStyle:e=>e.is_me?{background:"var(--isMe-gradient)"}:{background:"var(--card-gradient)"},showHeader:!1,showNoDataMessage:!1,data:l,columns:[{key:"rank",label:n("leaderboard.labels.rank"),render:e=>(0,t.jsxs)("div",{className:"text-base font-semibold text-tertiary px-2",children:["#",e.rank]})},{key:"player",label:n("leaderboard.labels.player"),render:e=>{var l;return(0,t.jsxs)("div",{className:"flex items-center gap-3 lg:min-w-[300px]",children:[(0,t.jsx)("div",{className:"relative w-10 h-10 rounded-full overflow-hidden",children:(0,t.jsx)(s.default,{src:null!=(l=e.avatar_url)?l:"/images/defaultUserAvatar.png",alt:e.name,fill:!0,className:"object-cover"})}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)(v(),{href:"/profile/".concat(null==e?void 0:e.user_id),children:(0,t.jsx)("span",{className:"sm:text-2xl font-bold capitalize text-tertiary truncate",children:e.name})}),(0,t.jsx)("span",{className:"sm:text-xs text-neutral-one font-semibold",children:e.country?e.country:"-"})]})]})}},{key:"achievement",label:n("leaderboard.labels.achievement"),className:"hidden sm:table-cell",render:e=>(null==e?void 0:e.achievement)?(0,t.jsx)(o.CardChip,{label:null==e?void 0:e.achievement}):"Coming Soon"},{key:"equipment",label:n("leaderboard.labels.equipment"),className:"hidden sm:table-cell",render:e=>{var l;return null!=(l=null==e?void 0:e.equipment)?l:"Coming Soon"}},{key:"main_game",label:n("leaderboard.labels.mainGame"),className:"hidden sm:table-cell",render:e=>{var l;return null!=(l=null==e?void 0:e.main_game)?l:"Coming Soon"}},{key:"last_earned_points",label:"XP",render:e=>(0,t.jsx)("div",{className:"flex flex-col",children:(0,t.jsx)("h2",{className:"text-xl md:text-2xl text-state-success font-bold font-rajdhani",children:null==e?void 0:e.points})})}]})]}):null}var b=a(59400),p=a(30760),g=a(26983);let j=e=>{let{value:l,label:a}=e;return(0,t.jsxs)("div",{className:"flex flex-col items-center",children:[(0,t.jsx)("div",{className:"w-14 sm:w-16 h-14 sm:h-16 rounded-lg bg-[var(--surface-elevated)] border border-[var(--brandBorderOne)] flex items-center justify-center",children:(0,t.jsx)("span",{className:"font-heading text-xl sm:text-2xl font-bold text-accent",children:String(l).padStart(2,"0")})}),(0,t.jsx)("span",{className:"text-[10px] text-muted-foreground mt-1 uppercase tracking-wider font-medium",children:a})]})},y=e=>{let{weekStart:l,weekEnd:a,timeLeftSeconds:s}=e,{t:d}=(0,r.Bd)("screen"),i=(e=>{let l="number"==typeof e&&isFinite(e)&&e>
10?Math.floor(e):null,[a,t]=(0,n.useState)(l),s=(0,n.useRef)(null);return((0,n.useEffect)(()=>{null!==l&&t(l)},[l]),(0,n.useEffect)(()=>{if(null===a||a<=0){s.current&&clearInterval(s.current);return}return s.current=setInterval(()=>{t(e=>null===e||e<=1?(clearInterval(s.current),0):e-1)},1e3),()=>{s.current&&clearInterval(s.current)}},[null!==a&&a>0]),null===a)?null:{days:Math.floor(a/86400),hours:Math.floor(a%86400/3600),minutes:Math.floor(a%3600/60),seconds:Math.floor(a%60),ended:a<=0}})(s);if(!i)return null;let o=[{value:i.days,label:d("leaderboard.season.days")},{value:i.hours,label:d("leaderboard.season.hours")},{value:i.minutes,label:d("leaderboard.season.minutes")},{value:i.seconds,label:d("leaderboard.season.seconds")}],c=l&&a;return(0,t.jsxs)("div",{className:"glass my-4 rounded-xl p-4 sm:p-6 flex flex-col sm:flex-row items-center justify-between gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"w-10 h-10 rounded-full bg-[var(--surface-elevated)] flex items-center justify-center",children:(0,t.jsx)(g.A,{className:"w-6 h-6",style:{stroke:"url(#icon-gradient)"}})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"font-heading text-sm sm:text-base font-bold text-foreground uppercase tracking-wide",children:d("leaderboard.season.endsIn")}),c&&(0,t.jsxs)("p",{className:"text-[11px] text-muted-foreground",children:[l," â ",a]})]})]}),(0,t.jsx)("div",{className:"flex items-center gap-2 sm:gap-3",children:i.ended?(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:d("leaderboard.season.ended")}):o.map(e=>(0,t.jsx)(j,{value:e.value,label:e.label},e.label))})]})};var N=a(29588);function w(e){var l;let{memberInfo:a}=e,{t:n}=(0,r.Bd)("screen"),s=e=>{let{value:l,label:a,color:n="text-tertiary"}=e;return(0,t.jsxs)("div",{className:"flex flex-col justify-center items-center",children:[(0,t.jsx)("span",{className:"text-lg font-bold ".concat(n),children:null!=l?l:"N/A"}),(0,t.jsx)("span",{className:"text-sm text-neutral-one",children:a})]})};return(0,t.jsxs)("div",{className:"bg-primary rounded-lg p-4",children:[(0,t.jsx)("span",{className:"text-xl font-bold text-tertiary truncate",children:n("leaderboard.labels.playerStats")}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-2 py-2",children:[(0,t.jsx)(s,{value:null==a?void 0:a.total_points,label:n("leaderboard.labels.totalPoints"),color:"text-state-success"}),(0,t.jsx)(s,{value:null==a?void 0:a.game_played,label:n("leaderboard.labels.gamesPlayed")}),(0,t.jsx)(s,{value:null!=(l=null==a?void 0:a.win_ratio)?l:"0%",label:n("leaderboard.labels.winRate")}),(0,t.jsx)(s,{value:null==a?void 0:a.avg_score,label:n("leaderboard.labels.avgScore")})]})]})}function k(e){var l,a;let{memberInfo:n}=e,{t:s}=(0,r.Bd)("screen"),d=e=>{let{title:l,subTitle:a,value:n,color:s=""}=e;return(0,t.jsxs)("div",{className:"flex flex-row justify-between items-between bg-[var(--bgFive)] border-[1px] border-[var(--borderFive)] rounded-lg p-3 h-fit",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("span",{className:"text-md font-semibold text-tertiary",children:l}),(0,t.jsx)("span",{className:"text-sm text-neutral-one font-semibold",children:a})]}),(0,t.jsx)("span",{className:"text-md font-semibold ".concat(s),children:n})]})};return(0,t.jsxs)("div",{className:"bg-primary rounded-lg p-4",children:[(0,t.jsx)("p",{className:"text-xl font-bold text-tertiary truncate mb-2",children:s("leaderboard.labels.recentActivity")}),(null==n||null==(l=n.recent_activities)?void 0:l.length)>0?(0,t.jsx)("div",{className:"flex flex-col gap-2",children:null==n||null==(a=n.recent_activities)?void 0:a.map((e,l)=>(0,t.jsx)(d,{title:null==e?void 0:e.title,subTitle:null==e?void 0:e.date_time,value:null==e?void 0:e.points,color:"text-state-success"},"Activity-row-".concat((null==e?void 0:e.id)||l)))}):(0,t.jsx)("div",{className:"flex justify-center items-center py-6 text-neutral-one text-sm font-semibold italic opacity-80",children:s("leaderboard.labels.featureWillAvailableSoon")})]})}function _(e){var l;let{show:a,onClose:n,memberInfo:r}=e;return(0,t.jsx)(c.A,{open:a,onClose:n,closeOnBackdropClick:!1,contClass:"w-96 sm:w-[600px] max-w-2xl",children:(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("div",{className:"relative w-18 h-18 rounded-full overflow-hidden",children:(0,t.jsx)(s.default,{src:null!=(l=r.avatar_url)?l:"/images/defaultUserAvatar.png",alt:r.name,fill:!0,className:"object-cover"})}),(0,t.jsxs)("div",{className:"flex flex-col ",children:[(0,t.jsx)("span",{className:"text-xl font-bold text-tertiary truncate",children:r.name}),(0,t.jsxs)("div",{className:"flex gap-4",children:[(0,t.jsxs)("span",{className:"text-md font-semibold lg:text-lg text-neutral-one",children:["Rank #",r.rank]}),(0,t.jsx)("span",{className:"text-md font-semibold lg:text-lg text-neutral-one",children:null==r?void 0:r.country}),(0,t.jsx)(o.CardChip,{label:null==r?void 0:r.achievement})]})]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 mt-4",children:[(0,t.jsx)(w,{memberInfo:r}),(0,t.jsx)(k,{memberInfo:r})]})]})})}function C(e){let{cardData:l,size:a,shouldBlur:n=!1}=e,i="large"===a,{t:o}=(0,r.Bd)("screen");return(0,t.jsxs)("div",{className:"\n relative overflow-hidden custom-gradient transition-all duration-300\n w-full\n ".concat(i?"aspect-[4/5.2] max-w-[450px] rounded-2xl":"aspect-[4/5] max-w-[350px] rounded-xl","\n "),style:{background:"linear-gradient(\n 135deg,\n ".concat(null==l?void 0:l.icon_gradient_one," 0%,\n ").concat(null==l?void 0:l.icon_gradient_two," 100%\n )")},children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center ".concat(n?"opacity-60 blur-sm":""),children:(null==l?void 0:l.icon_url)&&(0,t.jsx)("div",{className:"relative w-[88%] h-[88%]",children:(0,t.jsx)(s.default,{src:l.icon_url,alt:null==l?void 0:l.name,fill:!0,className:"object-contain"})})}),(null==l?void 0:l.name)&&(0,t.jsx)("div",{className:"\n absolute bottom-[4%] left-1/2 -translate-x-1/2 text-tertiary text-center\n ".concat(i?"text-lg sm:text-2xl":"text-sm sm:text-lg","\n font-normal font-nyxerin whitespace-nowrap\n "),style:{fontSize:i?"clamp(0.85rem, 2.5vw, 1.5rem)":"clamp(0.7rem, 1.8vw, 1.1rem)"},children:l.name}),n&&(0,t.jsx)("div",{className:"absolute inset-0 flex flex-col items-center justify-center z-10 backdrop-blur-sm bg-black/10",children:(0,t.jsx)(d.XA,{className:"text-white",style:{width:"clamp(1.5rem, 5vw, 4rem)",height:"clamp(1.5rem, 5vw, 4rem)"}})})]})}let S=e=>{if(!e||0===e.length)return -1;let l=e.length,a=e.findIndex(e=>(null==e?void 0:e.type)==="Present");return 1===l?0:2===l?a>=0?a:0:a>=0?a:Math.floor(l/2)};function A(e){var l;let{meta:a,leagues:s}=e,{t:d}=(0,r.Bd)("auth"),{user:o,setLoginOpen:c}=(0,i.A)(),m=!a||(null==s?void 0:s.is_guest),x=(0,n.useMemo)(()=>
1{if(m){let e=((null==s?void 0:s.data)||[]).map(e=>({...e,isLocked:!1}));for(;e.length<3;)e.push(null);return e.slice(0,3)}if(a){let e=a.prev_league?{...a.prev_league,type:"Past"}:null,l={...a.current_league,type:"Present",last_points_earned:a.last_points_earned},t=a.next_league?{...a.next_league,type:"Future",isLocked:!0}:null;return!e&&t?[{id:crypto.randomUUID(),...t},l,t]:[e,l,t]}return[null,null,null]},[a,s,m]),u=(0,n.useMemo)(()=>S(x),[x]);return(0,t.jsxs)("div",{className:"mb-[8vw] sm:mb-[3vw]",children:[(0,t.jsx)("div",{className:"\n flex gap-4 md:gap-8\n justify-center\n w-full\n ".concat(x.length>3?"overflow-x-auto scrollbar-hide":"","\n "),children:x.map((e,l)=>{let a=l===u,n=null==e?void 0:e.isLocked;return(0,t.jsx)("div",{className:"\n flex-shrink-0 flex justify-center items-center\n ".concat(x.length<=3?"flex-1 max-w-[420px]":"","\n "),children:e?(0,t.jsx)(C,{cardData:e,size:a?"large":"small",shouldBlur:n}):(0,t.jsx)("div",{className:"\n w-full rounded-2xl opacity-40\n ".concat(a?"aspect-[4/5.2] max-w-[450px]":"aspect-[4/5] max-w-[350px]","\n ")})},(null==e?void 0:e.id)||l)})}),((null==o?void 0:o.auth_type)==="guest"||!o)&&(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 mt-10 text-center",children:[(0,t.jsx)("h2",{className:"text-tertiary text-2xl sm:text-[32px] font-semibold",children:null!=(l=null==s?void 0:s.message)?l:null==a?void 0:a.message}),(0,t.jsx)("button",{onClick:()=>c(!0),className:"px-10 py-3 rounded-full bg-brand-gradient text-[var(--surface-primary)] font-bold hover:opacity-90 transition",children:d("login")})]})]})}function I(){var e,l,a,s,r;let{user:d}=(0,i.A)(),[o,c]=(0,n.useState)(null),{data:x,isLoading:u}=(0,p.Q)(),v=(null==x?void 0:x.leaderboard)||[],g=v.filter(e=>"promotion"===e.zone),j=v.filter(e=>"safe"===e.zone),w=v.filter(e=>"demotion"===e.zone);return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"py-10 w-full min-w-[320px] sm:min-w-[512px] max-w-4xl mx-auto px-4",children:[(0,t.jsx)(_,{show:!!o,onClose:()=>c(null),memberInfo:{...o}}),u&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(N.Ay,{}),(0,t.jsx)(b.p,{})]}),(null==x?void 0:x.meta)?(0,t.jsx)(A,{meta:null==x?void 0:x.meta,user:d},(null==x||null==(l=x.meta)||null==(e=l.current_league)?void 0:e.id)||(null==d?void 0:d.id)):(0,t.jsx)(A,{leagues:x,user:d},null==d?void 0:d.id),(null==d?void 0:d.auth_type)!=="guest"&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(y,{weekStart:null==x||null==(a=x.meta)?void 0:a.week_start,weekEnd:null==x||null==(s=x.meta)?void 0:s.week_end,timeLeftSeconds:null==x||null==(r=x.meta)?void 0:r.time_left_seconds}),(0,t.jsx)(m.A,{paginatedSocial:g}),(0,t.jsx)(h,{data:j}),(0,t.jsx)(f,{data:w})]})]})})}}}]);
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.