1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="70426ab4-9d47-4fcf-94a8-4ad7212a6572",e._sentryDebugIdIdentifier="sentry-dbid-70426ab4-9d47-4fcf-94a8-4ad7212a6572")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[237],{13742:function(e,t,n){n.d(t,{Z:function(){return i}});var a=n(91373);/** 2 * @license lucide-react v0.454.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */let i=(0,a.Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},50868:function(e,t,n){n.d(t,{Z:function(){return i}});var a=n(91373);/** 7 * @license lucide-react v0.454.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */let i=(0,a.Z)("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]])},63231:function(e,t,n){n.d(t,{Z:function(){return i}});var a=n(91373);/** 12 * @license lucide-react v0.454.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */let i=(0,a.Z)("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]])},13025:function(e,t,n){n.d(t,{Z:function(){return i}});var a=n(91373);/** 17 * @license lucide-react v0.454.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */let i=(0,a.Z)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},12601:function(e,t,n){n.d(t,{Z:function(){return i}});var a=n(91373);/** 22 * @license lucide-react v0.454.0 - ISC 23 * 24 * This source code is licensed under the ISC license. 25 * See the LICENSE file in the root directory of this source tree. 26 */let i=(0,a.Z)("Swords",[["polyline",{points:"14.5 17.5 3 6 3 3 6 3 17.5 14.5",key:"1hfsw2"}],["line",{x1:"13",x2:"19",y1:"19",y2:"13",key:"1vrmhu"}],["line",{x1:"16",x2:"20",y1:"16",y2:"20",key:"1bron3"}],["line",{x1:"19",x2:"21",y1:"21",y2:"19",key:"13pww6"}],["polyline",{points:"14.5 6.5 18 3 21 3 21 6 17.5 9.5",key:"hbey2j"}],["line",{x1:"5",x2:"9",y1:"14",y2:"18",key:"1hf58s"}],["line",{x1:"7",x2:"4",y1:"17",y2:"20",key:"pidxm4"}],["line",{x1:"3",x2:"5",y1:"19",y2:"21",key:"1pehsh"}]])},53125:function(e,t,n){n.d(t,{Z:function(){return i}});var a=n(91373);/** 27 * @license lucide-react v0.454.0 - ISC 28 * 29 * This source code is licensed under the ISC license. 30 * See the LICENSE file in the root directory of this source tree. 31 */let i=(0,a.Z)("UsersRound",[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]])},46895:function(e,t,n){n.d(t,{$u:function(){return u},Db:function(){return h},Xg:function(){return c},sS:function(){return x}});var a=n(30137),i=n(97582),r=n(30396),s=n(52037),l=n(42576);function o(e){var t,n=null!==(t=null==e?void 0:e.data)&&void 0!==t?t:e;return Array.isArray(n)?n:Array.isArray(null==n?void 0:n.results)?n.results:[]}function c(){return d.apply(this,arguments)}function d(){return(d=(0,a._)(function(){var e;return(0,i.Jh)(this,function(t){switch(t.label){case 0:return[4,r.Z.makeRequest({method:"GET",url:"/v2/realm-trophies/",headers:{"Content-Type":"application/json"}},{context:"Fetching realm trophy catalog",feature:"Build Realm",endpoint:"/v2/realm-trophies/"})];case 1:return e=t.sent(),(0,s.q)(e,"Failed to load realm bounties"),[2,o(e)]}})})).apply(this,arguments)}function u(e){return m.apply(this,arguments)}function m(){return(m=(0,a._)(function(e){var t,n,a;return(0,i.Jh)(this,function(i){switch(i.label){case 0:if(!(t="string"==typeof e?e.trim():""))throw Error("User slug is required");return n="/v2/users/".concat(encodeURIComponent(t),"/realm-trophies/"),[4,r.Z.makeRequest
31({method:"GET",url:n,headers:{"Content-Type":"application/json"}},{context:"Fetching user realm trophies",feature:"Build Realm",endpoint:"/v2/users/[slug]/realm-trophies/",metadata:{userSlug:t}})];case 1:return a=i.sent(),(0,s.q)(a,"Failed to load your realm trophies"),[2,o(a)]}})})).apply(this,arguments)}function h(){return p.apply(this,arguments)}function p(){return(p=(0,a._)(function(){var e,t,n;return(0,i.Jh)(this,function(a){switch(a.label){case 0:return[4,r.Z.makeRequest({method:"GET",url:"/v2/competitions/?page_size=50",headers:{"Content-Type":"application/json"}},{context:"Fetching competitions for realm home",feature:"Build Realm",endpoint:"/v2/competitions/"})];case 1:if(e=a.sent(),(0,s.q)(e,"Failed to load competitions"),Array.isArray(n=null!==(t=null==e?void 0:e.data)&&void 0!==t?t:e))return[2,n];if(Array.isArray(null==n?void 0:n.results))return[2,n.results];return[2,[]]}})})).apply(this,arguments)}function x(e){return f.apply(this,arguments)}function f(){return(f=(0,a._)(function(e){var t,n,a;return(0,i.Jh)(this,function(i){switch(i.label){case 0:if(!(t="string"==typeof e?e.trim():"")||!(n=(0,l.JZ)(t)))return[2,null];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,r.Z.makeRequest({url:n,method:"GET",headers:{"Content-Type":"application/json"}},{context:"Fetching competition page for realm home",feature:"Build Realm",endpoint:n})];case 2:return a=i.sent(),[2,(0,l.g7)(a)];case 3:return i.sent(),[2,null];case 4:return[2]}})})).apply(this,arguments)}},36665:function(e,t,n){n.d(t,{Z:function(){return nP}});var a=n(93128),i=n(85893),r=n(67294),s=n(91373);/** 32 * @license lucide-react v0.454.0 - ISC 33 * 34 * This source code is licensed under the ISC license. 35 * See the LICENSE file in the root directory of this source tree. 36 */let l=(0,s.Z)("Beaker",[["path",{d:"M4.5 3h15",key:"c7n0jr"}],["path",{d:"M6 3v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V3",key:"m1uhx7"}],["path",{d:"M6 14h12",key:"4cwo0f"}]]),o=(0,s.Z)("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);var c=n(76341),d=n(67462),u=n(11698),m=n(99420);function h(e){var t=e.as,n=void 0===t?"h2":t,a=e.children,r=e.info,s=e.label,l=e.className,o=e.infoAlign;return(0,i.jsxs)("div",{className:"flex min-w-0 items-center gap-2 ".concat("end"===(void 0===o?"end":o)?"w-full justify-between":""),children:[(0,i.jsx)(n,{className:"min-w-0 ".concat(void 0===l?"":l),children:a}),(0,i.jsx)(m.Z,{label:s||("string"==typeof a?a:"section"),content:r})]})}var p=n(53353),x="var(--cc-rail-edge-fade, 6rem)";function f(e){var t=Math.min(100,Math.max(18,100*e.ratio)),n=e.max>0?e.left/e.max*(100-t):0;return{thumbWidth:t,thumbLeft:n,showLeft:e.canScroll&&e.left>6,showRight:e.canScroll&&e.left<e.max-6}}function v(e){var t=e.clientX,n=e.trackRect,a=e.thumbWidth,i=e.metrics,r=a/100*n.width,s=Math.min(Math.max(t-n.left-r/2,0),n.width-r);return(n.width-r<=0?0:s/(n.width-r))*i.max}function g(e){null==e||e.removeAttribute("data-cc-rail-scrolling")}var b=n(41664),w=n.n(b),j=n(98814),N=n(64998);function k(e){return e?"inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border border-[#6B7F24]/35 bg-[#121414] text-white/70 transition hover:border-[#6B7F24]/55 hover:text-[#8FA83C]":"inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border border-[#6B7F24]/20 bg-[#121414]/55 text-white/25"}function y(e){var t=e.href,n=e.linkLabel,a=e.mobileLinkLabel,r=e.canScroll,s=e.showLeft,l=e.showRight,o=e.onScrollLeft,c=e.onScrollRight,d=e.showNavOnMobile;return t||r?(0,i.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[t?(0,i.jsxs)(w(),{href:t,className:"inline-flex h-9 shrink-0 items-center justify-center rounded-lg px-3.5 text-[11px] font-bold uppercase leading-none tracking-wide md:px-4 md:text-[12px] ".concat(u.$U.outline),children:[(0,i.jsx)("span",{className:"sm:hidden",children:a}),(0,i.jsx)("span",{className:"hidden sm:inline",children:n})]}):null,r?(0,i.jsxs)("div",{className:"items-center gap-1.5 ".concat(void 0!==d&&d?"flex":"hidden md:flex"),children:[(0,i.jsx)("button",{type:"button","aria-label":"Scroll left",onClick:o,disabled:!s,className:k(s),children:(0,i.jsx)(j.Z,{className:"h-4 w-4",strokeWidth:2.5})}),(0,i.jsx)("button",{type:"button","aria-label":"Scroll right",onClick:c,disabled:!l,className:k(l),children:(0,i.jsx)(N.Z,{className:"h-4 w-4",strokeWidth:2.5})})]}):null]}):null}function _(e){var t=e.metrics,n=e.thumbWidth,a=e.thumbLeft,r=e.label,s=e.onTrackPointerDown,l=e.onTrackPointerMove,o=e.onTrackKeyDown,c=e.endDrag,d=e.controlsId,u=e.className;return t.canScroll?(0,i.jsx)("div",{className:"flex h-1.5 min-w-0 cursor-pointer items-center rounded-full bg-[#1A1C1C] ".concat(void 0===u?"":u),onPointerDown:s,onPointerMove:l,onPointerUp:c,onPointerCancel:c,onKeyDown:o,role:"scrollbar",tabIndex:0,"aria-orientation":"horizontal","aria-controls":d,"aria-valuemin":0,"aria-valuemax":Math.round(t.max),"aria-valuenow":Math.round(t.left),"aria-label":"Scroll ".concat(r),children:(0,i.jsx)("div",{className:"h-full rounded-full bg-white/35 transition-[width,margin] duration-75",style:{width:"".concat(n,"%"),marginLeft:"".concat(a,"%")}})}):null}function C(e){var t,n,s,l,o,m,b,w,j,N,k,C,S,A,E,L,P,M,R,F,T,I,z,D,Z,B,O,W,U,Y,K,q=e.children,H=e.className,G=e.label,V=e.title,J=void 0===V?null:V,$=e.info,X=e.href,Q=e.linkLabel,ee=e.mobileLinkLabel,et=e.headerExtra,en=e.headerBelow,ea=e.showScrollbar,ei=void 0===ea||ea,er=e.initialTargetSelector,es=e.initialAlignKey,el=e.initialScrollInset,eo=e.peekPrevious,ec=e.stepSelector,ed=e.stepInset,eu=e.showNavOnMobile,em=e.softMobileEdges,eh=(s=void 0===(n=(t={initialTargetSelector:void 0===er?null:er,initialAlignKey:void 0===es?null:es,initialScrollInset:void 0===el?0:el,peekPrevious:void 0!==eo&&eo,stepSelector:void 0===ec?null:ec,stepInset:void 0===ed?null:ed,syncThumb:ei}).initialTargetSelector)?null:n,o=void 0===(l=t.initialAlignKey)?null:l,b=void 0===(m=t.initialScrollInset)?0:m,j=void 0!==(w=t.peekPrevious)&&w,k=void 0===(N=t.stepSelector)?null:N,S=void 0===(C=t.stepInset)?null:C,E=void 0===(A=t.syncThumb)||A,L=(0,r.useId)(),P=(0,r.useRef)(null),M=(0,r.useRef)(null),R=(0,r.useRef)(null),F=(0,r.useRef)(null),T=(0,r.useRef)(null),I=(0,r.useRef)(null),D=(z=(0,a._)((0,r.useState)({canScroll:!1,max:0,left:0,ratio:1}),2))[0],Z=z[1],B=(0,r.useCallback)(function(){null==F.current&&(F.current=requestAnimationFrame(function(){F.current=null;var e=function(e){if(!e)return{canScroll:!1,max:0,left:0,ratio:1};var t=Math.max(0,e.scrollWidth-e.clientWidth);return{canScroll:t>8,max:t,left:e.scrollLeft,ratio:e.scrollWidth>0?e.clientWidth/e.scrollWidth:1}}(P.current);Z(function(t){return!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=n.thumb;if(e.canScroll!==t.canScroll||e.max!==t.max)return!1;var i=f(e),r=f(t);return i.showLeft===r.showLeft&&i.showRight===r.showRight&&(void 0!==a&&!a||Math.round(4*i.thumbWidth)===Math.round(4*r.thumbWidth)&&Math.round(4*i.thumbLeft)===Math.round(4*r.thumbLeft))}(t,e,{thumb:E})?e:t})}))},[E]),(0,r.useEffect)(function(){var e=P.current;if(e){var t=function(){s&&(R.current!==o||null==o)&&function(e,t){var n,a,i,r,s,l,o,c,d,u,m=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,h=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e.clientWidth)return!1;var p=e.querySelector(t);if(!p||!p.offsetWidth)return!1;var x=h?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=null==e?void 0:e.previousElementSibling;if(!(null==n?void 0:n.offsetWidth))return t;var a=null==e?void 0:e.parentElement,i=a&&parseFloat(getComputedStyle(a).gap||"0")||0;return n.offsetWidth+i}(p,m):m,f=e.getBoundingClientRect(),v=p.getBoundingClientRect(),g=e.scrollLeft+(v.left-f.left)-x,b=Math.max(0,e.scrollWidth-e.clientWidth);e.scrollTo({left:Math.min(b,Math.max(0,g)),behavior:"auto"});var w=e.getBoundingClientRect(),j=p.getBoundingClientRect();return a=(n={scrollerLeft:w.left,scrollerRight:w.right,targetLeft:j.left,targetRight:j.right,inset:x,max:b,scrollLeft:e.scrollLeft}).scrollerLeft,i=n.scrollerRight,r=n.targetLeft,s=n.targetRight,l=n.inset,o=n.max,c=n.scrollLeft,o<=(u=void 0===(d=n.epsilon)?8:d)?r>=a-u&&s<=i+u:c>=o-1||Math.abs(r-a-l)<=u}(e,s,b,j)&&(R.current=o)},n=function(){e&&e.setAttribute("data-cc-rail-scrolling",""),I.current&&clearTimeout(I.current),I.current=setTimeout(function(){g(e),I.current=null},120),B()};B(),t();var a=0,i=function(){T.current=null,t(),(a+=1)<10&&R.current!==o&&(T.current=requestAnimationFrame(i))};T.current=requestAnimationFrame(i),e.addEventListener("scroll",n,{passive:!0});var r=new ResizeObserver(function(){B(),t()});return r.observe(e),e.firstElementChild&&r.observe(e.firstElementChild),function(){e.removeEventListener("scroll",n),r.disconnect(),null!=F.current&&cancelAnimationFrame(F.current),null!=T.current&&cancelAnimationFrame(T.current),I.current&&clearTimeout(I.current),g(e)}}},[B,s,o,b,j]),W=(O=f(D)).thumbWidth,U=O.thumbLeft,Y=O.showLeft,K=O.showRight,{scrollerId:L,scrollerRef:P,metrics:D,thumbWidth:W,thumbLeft:U,showLeft:Y,showRight:K,edgeMaskImage:function(e,t){if(e||t){var n=e?"transparent 0, black ".concat(x):"black 0",a=t?"black calc(100% - ".concat(x,"), transparent 100%"):"black 100%";return"linear-gradient(to right, ".concat(n,", ").concat(a,")")}}(Y,K),scrollByCards:function(e){var t=P.current;if(t){var n=Math.max(0,t.scrollWidth-t.clientWidth);if(k){var a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(null==e?void 0:e.querySelectorAll))return[];var a=Math.max(0,e.scrollWidth-e.clientWidth),i=e.getBoundingClientRect();return(0,p._)(e.querySelectorAll(t)).map(function(t){var r=t.getBoundingClientRect();return Math.min(a,Math.max(0,e.scrollLeft+(r.left-i.left)-n))})}(t,k,null==S?b:S);if(a.length){var i=function(e){var t=e.positions,n=e.currentLeft,a=e.dir,i=e.max,r=e.epsilon,s=void 0===r?8:r,l=(0,p._)(new Set((t||[]).map(function(e){return Math.round(e)}))).filter(function(e){return Number.isFinite(e)}
36).sort(function(e,t){return e-t});if(!l.length)return a>0?i:0;var o=0,c=1/0;if(l.forEach(function(e,t){var a=Math.abs(e-n);a<c&&(c=a,o=t)}),c<=s){var d=Math.min(l.length-1,Math.max(0,o+a));return Math.min(i,Math.max(0,l[d]))}if(a>0){var u=l.find(function(e){return e>n+s});return null!=u?Math.min(i,u):i}var m=(0,p._)(l).reverse().find(function(e){return e<n-s});return null!=m?Math.max(0,m):0}({positions:a,currentLeft:t.scrollLeft,dir:e,max:n});t.scrollTo({left:i,behavior:"smooth"});return}}var r=Math.max(260,Math.round(.82*t.clientWidth));t.scrollBy({left:e*r,behavior:"smooth"})}},onTrackPointerDown:function(e){var t=P.current,n=e.currentTarget;if(t&&D.canScroll){var a=n.getBoundingClientRect(),i=W/100*a.width,r=U/100*a.width;e.clientX>=a.left+r&&e.clientX<=a.left+r+i||(t.scrollLeft=v({clientX:e.clientX,trackRect:a,thumbWidth:W,metrics:D})),M.current={track:n},n.setPointerCapture(e.pointerId)}},onTrackPointerMove:function(e){if(M.current){var t=P.current;t&&(t.scrollLeft=v({clientX:e.clientX,trackRect:e.currentTarget.getBoundingClientRect(),thumbWidth:W,metrics:D}))}},onTrackKeyDown:function(e){var t=P.current;if(t){var n={ArrowLeft:-40,ArrowRight:40,PageUp:-Math.round(.82*t.clientWidth),PageDown:Math.round(.82*t.clientWidth)};if("Home"===e.key||"End"===e.key){e.preventDefault(),t.scrollTo({left:"Home"===e.key?0:D.max,behavior:"smooth"});return}var a=n[e.key];null!=a&&(e.preventDefault(),t.scrollBy({left:a,behavior:"smooth"}))}},endDrag:function(){M.current=null}}),ep=eh.scrollerId,ex=eh.scrollerRef,ef=eh.metrics,ev=eh.thumbWidth,eg=eh.thumbLeft,eb=eh.showLeft,ew=eh.showRight,ej=eh.edgeMaskImage,eN=eh.scrollByCards,ek=eh.onTrackPointerDown,ey=eh.onTrackPointerMove,e_=eh.onTrackKeyDown,eC=eh.endDrag,eS=(0,i.jsx)(y,{href:void 0===X?null:X,linkLabel:void 0===Q?"View all":Q,mobileLinkLabel:void 0===ee?"View all":ee,canScroll:ef.canScroll,showLeft:eb,showRight:ew,onScrollLeft:function(){return eN(-1)},onScrollRight:function(){return eN(1)},showNavOnMobile:void 0!==eu&&eu});return(0,i.jsxs)("div",{className:"w-full min-w-0 max-w-full ".concat(void 0===H?"":H),children:[J?(0,i.jsxs)("div",{className:"flex flex-col gap-2 ".concat(u.Dj.titleToCards),children:[(0,i.jsxs)("div",{className:"".concat(u.PY.sectionHeader," mb-0 items-center md:mb-0"),children:[(0,i.jsxs)("div",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-2.5 sm:gap-3",children:[(0,i.jsx)(h,{label:J,info:void 0===$?null:$,infoAlign:"start",className:"".concat(u.PY.sectionTitle," md:text-3xl md:leading-tight"),children:J}),void 0===et?null:et]}),eS]}),void 0===en?null:en]}):null,(0,i.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,i.jsx)("div",{className:"w-full min-w-0 ".concat(void 0!==em&&em?"[--cc-rail-edge-fade:1.5rem] md:[--cc-rail-edge-fade:6rem]":""),style:ej?{WebkitMaskImage:ej,maskImage:ej,WebkitMaskSize:"100% 100%",maskSize:"100% 100%",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat"}:void 0,children:(0,i.jsx)("div",{id:ep,ref:ex,className:"w-full min-w-0 snap-x snap-proximity overflow-x-auto overflow-y-visible overscroll-x-contain pt-2.5 [-ms-overflow-style:none] [scrollbar-width:none] md:snap-none [&::-webkit-scrollbar]:hidden data-[cc-rail-scrolling]:[&_*]:pointer-events-none data-[cc-rail-scrolling]:[&_*]:!transition-none",children:(0,i.jsx)("div",{className:"flex w-max min-w-full items-start pr-4 md:pr-6",children:q})})}),ei?(0,i.jsx)(_,(0,d._)((0,c._)({},{metrics:ef,thumbWidth:ev,thumbLeft:eg,label:void 0===G?"cards":G,onTrackPointerDown:ek,onTrackPointerMove:ey,onTrackKeyDown:e_,endDrag:eC,controlsId:ep}),{className:"w-full"})):null]})]})}var S=n(17206),A=n(35073),E=n(27870),L=n(1470);function P(e){var t=e.prizeSplit,n=void 0===t?null:t,a=e.prizePool,r=e.active,s=void 0!==r&&r,l=s?"text-white/55":"text-white/30",o=s?"text-white/70":"text-white/40";if((null==n?void 0:n.hasBonus)&&n.frPlus&&n.standard)return(0,i.jsxs)("span",{className:"inline-flex items-center gap-2 text-[10px] font-semibold uppercase tracking-[0.08em] ".concat(l),children:[(0,i.jsx)(L.Z,{className:"h-3 w-3 shrink-0",strokeWidth:2.25,"aria-hidden":!0}),(0,i.jsxs)("span",{className:"inline-flex items-baseline gap-1",children:[(0,i.jsx)("span",{className:s?"text-main-green":"text-main-green/55",children:"FR+"}),(0,i.jsx)("span",{className:o,children:n.frPlus})]}),(0,i.jsxs)("span",{className:"inline-flex items-baseline gap-1",children:[(0,i.jsx)("span",{className:s?"text-white/45":"text-white/25",children:"Free"}),(0,i.jsx)("span",{className:o,children:n.standard})]})]});var c=(null==n?void 0:n.frPlus)||(null==n?void 0:n.standard)||(void 0===a?null:a)||null;return c?(0,i.jsxs)("span",{className:"inline-flex items-center gap-1 text-[10px] font-semibold uppercase tracking-[0.08em] ".concat(l),children:[(0,i.jsx)(L.Z,{className:"h-3 w-3 shrink-0",strokeWidth:2.25,"aria-hidden":!0}),c]}):null}function M(e){var t,n=e.active,a=e.accent,r=e.className,s=void 0===r?"":r,l=(t=void 0!==n&&n,"season"===(void 0===a?"monthly":a)?t?"h-3 w-3 border-[#8FA83C] bg-transparent shadow-[0_0_0_3px_rgba(143,168,60,0.12)]":"h-2.5 w-2.5 border-[#6
36B7F24]/35 bg-[#121414] group-hover/timeline:border-[#8FA83C] group-hover/timeline:shadow-[0_0_0_3px_rgba(143,168,60,0.12)]":t?"h-2.5 w-2.5 border-[#8FA83C] bg-[#8FA83C] shadow-[0_0_0_3px_rgba(143,168,60,0.14)]":"h-2.5 w-2.5 border-[#6B7F24]/40 bg-[#121414] group-hover/timeline:border-[#8FA83C] group-hover/timeline:bg-[#8FA83C] group-hover/timeline:shadow-[0_0_0_3px_rgba(143,168,60,0.14)]");return(0,i.jsx)("span",{"aria-hidden":!0,className:"relative z-[2] block shrink-0 rounded-full border transition duration-200 ".concat(l," ").concat(s)})}function R(){return(0,i.jsx)("span",{"aria-hidden":!0,className:"block w-full text-[11px] font-medium leading-normal",children:"â"})}function F(e){var t=e.name,n=e.kind,a=e.startDate,r=void 0===a?null:a,s=e.endDate,l=void 0===s?null:s,o=e.prizePool,c=e.prizeSplit,d=e.active,u=void 0!==d&&d,m=e.className,h=void 0===m?"":m,p=e.nowrap,x=void 0!==p&&p,f=e.compact,v=void 0!==f&&f,g=(0,A.hG)(t)||"Competition",b=(0,A.rN)({competitionKind:n,startDate:r,endDate:l}),w="season"===b,j=(0,A.ml)(b),N=(0,A.QS)(r),k=(0,A.QS)(l),y=u?"text-white/40":"text-white/25",_=w?u?"text-[#A8BC4A]":"text-[#8FA83C]/55":u?"text-[#6B7F24]/90":"text-[#6B7F24]/45",C=w?u?"bg-[#A8BC4A]/50":"bg-[#8FA83C]/20":u?"bg-[#6B7F24]/40":"bg-[#6B7F24]/20",L=N&&k?"".concat(N," â ").concat(k):N?"From ".concat(N):k?"Until ".concat(k):"",R=[N?"Starts ".concat(N):"",k?"Ends ".concat(k):""].filter(Boolean).join(" \xb7 ");return(0,i.jsxs)("div",{className:"flex items-center ".concat(v?"gap-1.5":"gap-2"," ").concat(x?"w-max whitespace-nowrap":"w-full min-w-0"," ").concat(h),title:t||g,children:[(0,i.jsx)(M,{active:u,accent:w?"season":"monthly"}),(0,i.jsx)(E.Z,{content:w?S.K.quarterKind:S.K.monthlyKind,children:(0,i.jsx)("span",{className:"shrink-0 cursor-help text-[9px] font-bold uppercase tracking-[0.14em] ".concat(_),children:j})}),(0,i.jsx)("span",{className:"h-2.5 w-px shrink-0 ".concat(C),"aria-hidden":!0}),(0,i.jsx)("span",{className:"".concat(x?"shrink-0":"min-w-0 flex-1 truncate"," text-[11px] font-medium ").concat(v?"tracking-normal":"tracking-wide"," ").concat(u?"text-white/70":"text-white/40"),children:g}),!v&&N?(0,i.jsxs)("span",{className:"shrink-0 text-[10px] font-medium uppercase tracking-[0.08em] ".concat(y),children:["Starts ",N]}):null,(0,i.jsxs)("div",{className:"ml-auto flex shrink-0 items-center ".concat(v?"gap-2":"gap-2.5"),children:[(0,i.jsx)(P,{prizeSplit:void 0===c?null:c,prizePool:void 0===o?null:o,active:u}),v?(0,i.jsx)("span",{title:R,className:"whitespace-nowrap text-[10px] font-medium uppercase tracking-[0.08em] ".concat(y),children:L}):null,!v&&k?(0,i.jsxs)("span",{className:"text-[10px] font-medium uppercase tracking-[0.08em] ".concat(y),children:["Ends ",k]}):null]})]})}var T=n(11786),I="w-[251px] shrink-0 sm:w-[273px]",z="left-[125px] right-[125px] sm:left-[136px] sm:right-[136px]";function D(e){var t,n,a=e.events,r=e.currentSlug,s=e.competitions,l=void 0===s?[]:s,o=e.competitionId,c=void 0===o?null:o,d=e.accent,u=void 0===d?"monthly":d,m=e.dimmed,h=e.fill,p=void 0===h?"none":h,x=(t=void 0!==m&&m,"season"===u?t?"top-[5px] h-[1.5px] bg-[#6B7F24]/28":"top-[5px] h-[1.5px] bg-[#8FA83C]/50":t?"top-[5px] h-px bg-[#6B7F24]/20":"top-[5px] h-px bg-[#8FA83C]/40"),f=3===(n=a.length)?"gap-3 md:gap-8":n>3?"gap-3 md:gap-3.5":"gap-2.5 md:gap-3";return(0,i.jsxs)("div",{className:"relative flex items-stretch ".concat("solo"===p?"w-full":"wide"===p?"w-max min-[1920px]:w-full":"fixed"===p?"w-max":""," ").concat(f),children:[(0,i.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute ".concat(x," ").concat("solo"===p?"left-0 right-0":"wide"===p?"".concat(z," min-[1920px]:left-0 min-[1920px]:right-0"):z)}),a.map(function(e){var t=e.slug||e.event_name,n=!!(r&&e.slug===r),a=(0,A.ZC)(e,l,c);return(0,i.jsxs)("div",{"data-cc-current":n?"true":void 0,"data-cc-event-tile":!0,className:"group/timeline relative flex snap-start flex-col ".concat("solo"===p?"w-full min-w-0":"wide"===p?"".concat(I," min-[1920px]:w-auto min-[1920px]:min-w-0 min-[1920px]:flex-1 min-[1920px]:snap-align-none"):I),children:[(0,i.jsx)("div",{className:"relative z-[2] mb-2.5 flex h-2.5 items-center justify-center",children:(0,i.jsx)("span",{className:"absolute -inset-x-4 -inset-y-2 flex cursor-pointer items-center justify-center",children:(0,i.jsx)(M,{active:n||a,accent:u})})}),(0,i.jsx)(T.Z,{event:e,isCurrent:n,picksOpen:a,fillWidth:"none"!==p,soloFill:"solo"===p})]},t)})]})}function Z(e){var t,n,a,r,s,l=e.monthly,o=e.currentSlug,c=e.competitions,d=void 0===c?[]:c,u=e.fitBarWidth,m=void 0!==u&&u,h=l.events||[],p=(0,A.rN)({competitionKind:l.competitionKind,startDate:l.startDate,endD
36ate:l.endDate}),x=!!l.isUnlinked,f=!x&&"monthly"===p,v=!x&&("monthly"===l.competitionKind||l.isSeasonResidual||f),g=h.some(function(e){return(null==e?void 0:e.slug)===o})||h.some(function(e){return(0,A.ZC)(e,d,l.competitionId)}),b=h.length,w=m&&f&&2===b,j=m&&f&&1===b,N=m&&f&&3===b,k=(0,i.jsx)(D,{events:h,currentSlug:o,competitions:d,competitionId:l.competitionId,accent:x||f?"monthly":"season",dimmed:!g,fill:j?"solo":N?"wide":w?"fixed":"none"});return v?(0,i.jsxs)("div",{"data-cc-comp-start":!0,className:"flex flex-col gap-2 ".concat((n=(t={stretchTrio:N,stretchPair:w,stretchOne:j,packMany:m&&f&&b>=4}).stretchTrio,a=t.stretchPair,r=t.stretchOne,s=t.packMany,n?"w-max shrink-0 min-[1920px]:w-full min-[1920px]:min-w-0":a?"w-max min-w-[230px] max-w-[36rem] shrink-0":r?"w-[330px] shrink-0 sm:w-[360px]":s?"w-max shrink-0":"shrink-0")),children:[(0,i.jsx)(F,{name:l.competitionName,kind:f?"monthly":"season",startDate:l.startDate,endDate:l.endDate,prizePool:l.prizePool,prizeSplit:l.prizeSplit,active:g,nowrap:w,compact:!0}),k]}):(0,i.jsxs)("div",{"data-cc-comp-start":!0,className:"flex shrink-0 flex-col gap-2",children:[x?(0,i.jsx)(R,{}):null,k]})}function B(e){return(null==e?void 0:e.season)&&"season"===(0,A.rN)({competitionKind:"season",startDate:e.season.startDate,endDate:e.season.endDate})?e.season:null}function O(e){var t=e.events,n=e.competitions,a=void 0===n?[]:n,s=e.title,l=void 0===s?null:s,o=e.href,m=e.linkLabel,p=e.mobileLinkLabel,x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,r.useMemo)(function(){return(0,A.Jr)(e,t)},[e,t]),a=(0,r.useMemo)(function(){var e,t;return(null===(e=(0,A.lf)((t=new Set,(n||[]).flatMap(function(e){return(e.monthlies||[]).flatMap(function(e){return(e.events||[]).filter(function(e){var n=e.slug||"".concat(e.event_name||"","-").concat(e.event_time_start||"");return!t.has(n)&&(t.add(n),!0)})})}))))||void 0===e?void 0:e.slug)||null},[n]);return{blocks:n,currentSlug:a}}(t,a),f=x.blocks,v=x.currentSlug,g=f.some(function(e){return B(e)});return 0===f.length?(0,i.jsxs)("div",{children:[l?(0,i.jsx)(h,{label:l,info:S.K.events,className:"".concat(u.PY.sectionTitle," ").concat(u.Dj.titleToCards," md:text-3xl md:leading-tight"),children:l}):null,(0,i.jsx)("p",{className:"text-sm text-white/50",children:"No events to show."})]}):(0,i.jsx)(C,{label:"events",title:l,info:S.K.events,href:void 0===o?null:o,linkLabel:void 0===m?"View all":m,mobileLinkLabel:void 0===p?"View all":p,showScrollbar:!1,showNavOnMobile:!0,initialTargetSelector:'[data-cc-current="true"]',initialAlignKey:v,initialScrollInset:0,stepSelector:"[data-cc-event-tile]",stepInset:0,children:(0,i.jsx)("div",{className:"flex min-w-full items-stretch gap-8 pr-4 md:pr-1",children:f.map(function(e,t){var n,r,s,l,o=B(e),u=(n=e.monthlies||[],o||!e.season?n:n.map(function(t){var n,a,i,r,s;return(0,d._)((0,c._)({},t),{competitionKind:"monthly",isSeasonResidual:!1,competitionName:t.isSeasonResidual?null===(n=e.season)||void 0===n?void 0:n.competitionName:t.competitionName,startDate:t.isSeasonResidual?null===(a=e.season)||void 0===a?void 0:a.startDate:t.startDate,endDate:t.isSeasonResidual?null===(i=e.season)||void 0===i?void 0:i.endDate:t.endD
36ate,prizePool:t.isSeasonResidual?null===(r=e.season)||void 0===r?void 0:r.prizePool:t.prizePool,prizeSplit:t.isSeasonResidual?null===(s=e.season)||void 0===s?void 0:s.prizeSplit:t.prizeSplit})})),m=!!(o&&u.some(function(e){return!!v&&null!=e&&!!e.events&&e.events.some(function(e){return(null==e?void 0:e.slug)===v})})),h=!o,p=(null===(r=u[0])||void 0===r?void 0:null===(s=r.events)||void 0===s?void 0:s.length)||0,x=1===f.length&&h&&1===u.length&&p<=3&&p>=1;return(0,i.jsx)("div",{className:"flex flex-col gap-2.5 ".concat(x?"shrink-0 min-[1920px]:min-w-0 min-[1920px]:flex-1":"shrink-0"),children:o?(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsx)(F,{name:o.competitionName,kind:"season",startDate:o.startDate,endDate:o.endDate,prizePool:o.prizePool,prizeSplit:o.prizeSplit,active:m}),(0,i.jsx)("div",{className:"border-t pt-2.5 ".concat(m?"border-[#8FA83C]/35":"border-[#2A2E2E]"),children:(0,i.jsx)("div",{className:"flex items-stretch gap-4",children:u.map(function(e){return(0,i.jsx)(Z,{monthly:e,currentSlug:v,competitions:a},e.competitionId)})})})]}):(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[g?(0,i.jsx)("div",{className:"invisible","aria-hidden":"true",children:(0,i.jsx)(F,{name:"",kind:"season"})}):null,(0,i.jsx)("div",{className:g?"border-t border-transparent pt-2.5":"",children:(0,i.jsx)("div",{className:"flex items-stretch gap-4 ".concat(x?"min-[1920px]:w-full":""),children:u.map(function(e){return(0,i.jsx)(Z,{monthly:e,currentSlug:v,competitions:a,fitBarWidth:h},e.competitionId)})})})]})},(null===(l=e.season)||void 0===l?void 0:l.competitionId)!=null?"season-".concat(e.season.competitionId):"block-".concat(t))})})})}var W=n(50868);/** 37 * @license lucide-react v0.454.0 - ISC 38 * 39 * This source code is licensed under the ISC license. 40 * See the LICENSE file in the root directory of this source tree. 41 */let U=(0,s.Z)("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);var Y=n(49525);/** 42 * @license lucide-react v0.454.0 - ISC 43 * 44 * This source code is licensed under the ISC license. 45 * See the LICENSE file in the root directory of this source tree. 46 */let K=(0,s.Z)("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);var q=n(82701),H=n(85838);function G(e){var t,n,a;return!!Array.isArray(e)&&!(e.length<2)&&!!e.every(function(e){return 1===Number(null==e?void 0:e.rank)})&&e.every(function(e){return 0===Number(null!==(a=null!==(n=null!==(t=null==e?void 0:e.total_score)&&void 0!==t?t:null==e?void 0:e.totalScore)&&void 0!==n?n:null==e?void 0:e.score)&&void 0!==a?a:0)})}var V="#your-actions";function J(e){null==e||null===(n=e.preventDefault)||void 0===n||n.call(e);var t,n,a,i=(t=document.querySelectorAll("[data-cc-your-actions]"),(0,p._)(t).find(function(e){var t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&e.getClientRects().length>0})||t[0]||null);i&&(i.scrollIntoView({behavior:"smooth",block:"start"}),(null===(a=window.history)||void 0===a?void 0:a.replaceState)&&window.history.replaceState(null,"",V))}function $(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(null==e||""===e)return t;var n=Number(e);return Number.isFinite(n)?n:t}var X=n(55301),Q=n(30137),ee=n(97582),et=n(93904),en=n(13886),ea=n(46895),ei={RIVALRY:"rivalry",SNAPSHOT:"snapshot"};function er(e){var t=Number(e);return Number.isFinite(t)?t.toLocaleString():"â"}function es(e){var t,n=Number(null!==(t=null==e?void 0:e.totalScore)&&void 0!==t?t:null==e?void 0:e.query_season_points);return Number.isFinite(n)?n:null}function el(e){var t=e.featured,n=e.yourCompetitions,a=e.competitions,i=new Map,r=function(e){if(e&&null!=(0,A.LT)(e.competition_id)){var t=e.competition_kind||"season";if("season"===t||"monthly"===t){var n=(0,A.LT)(e.competition_id),a=i.get(n);if(!a){i.set(n,e);return}i.set(n,(0,d._)((0,c._)({},a,e),{competition_name:e.competition_name||a.competition_name,url:e.url||a.url,competition_kind:e.competition_kind||a.competition_kind}))}}};
46return(t||[]).forEach(r),(n||[]).forEach(r),(a||[]).forEach(function(e){((null==e?void 0:e.pinned)||(null==e?void 0:e.entered))&&r(e)}),(0,A.I)(Array.from(i.values()))}function eo(e){return ec.apply(this,arguments)}function ec(){return(ec=(0,Q._)(function(e){var t,n,a,i;return(0,ee.Jh)(this,function(r){switch(r.label){case 0:if(!e)return[2,null];if(e.pickset)return[2,String(e.pickset)];if(!(n="string"==typeof e.url&&e.url.trim()?e.url.trim():(null===(t=(0,A.Bl)(e))||void 0===t?void 0:t.replace(/^\/competition/,""))||""))return[2,null];return[4,(0,ea.sS)(n)];case 1:return[2,(i=null==(a=r.sent())?void 0:a.pickset)?String(i):null]}})})).apply(this,arguments)}function ed(e){return e?(0,A.hG)((0,A.Lf)(e.competition_name||"Competition")):"Competition"}function eu(e){var t,n,a,i,r,s=(null==e?void 0:e.user)&&"object"==typeof e.user?e.user:null,l=(null==e?void 0:e.username)||("string"==typeof(null==e?void 0:e.user)?e.user:null==s?void 0:s.username)||"",o=(null==e?void 0:e.user_slug)||(null==e?void 0:e.slug)||(null==e?void 0:e.userSlug)||(null==s?void 0:s.slug)||l,c="string"==typeof o&&o.trim()?o.trim():null;if(!c)return null;var d=null!==(t=null==e?void 0:e.flair)&&void 0!==t?t:null;return{slug:c,username:l||c,avatar:(0,et.Vh)(e),badgeTier:null!==(a=null!==(n=null==e?void 0:e.badge_tier)&&void 0!==n?n:null==e?void 0:e.badgeTier)&&void 0!==a?a:null,flair:d,isFoundingMember:null!==(r=null!==(i=null==e?void 0:e.is_founding_member)&&void 0!==i?i:null==e?void 0:e.isFoundingMember)&&void 0!==r?r:null}}function em(e){var t,n,a,i,r,s,l,o,u,m,h,p,x,f=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return null;var v="object"==typeof e.user?e.user:null;return(0,d._)((0,c._)({},e),{rank:null!==(t=e.rank)&&void 0!==t?t:0,username:e.username||(null==v?void 0:v.username)||"Competitor",user_slug:e.user_slug||e.slug||(null==v?void 0:v.slug)||null,profile_image:(0,et.Vh)(e),total_score:null!==(i=null!==(a=null!==(n=e.total_score)&&void 0!==n?n:e.score)&&void 0!==a?a:e.query_season_points)&&void 0!==i?i:0,rank_change:null!==(r=e.rank_change)&&void 0!==r?r:0,badge_tier:null!==(o=null!==(l=null!==(s=e.badge_tier)&&void 0!==s?s:e.badgeTier)&&void 0!==l?l:null==v?void 0:v.badge_tier)&&void 0!==o?o:null,flair:null!==(m=null!==(u=e.flair)&&void 0!==u?u:null==v?void 0:v.flair)&&void 0!==m?m:null,is_founding_member:null!==(x=null!==(p=null!==(h=e.is_founding_member)&&void 0!==h?h:e.isFoundingMember)&&void 0!==p?p:null==v?void 0:v.is_founding_member)&&void 0!==x?x:null,is_you:!!(f||e.is_you)})}function eh(e){var t=e.scoreboardRows,n=e.hubRows,a=e.useHub;return Array.isArray(t)&&t.length>0?t:a&&Array.isArray(n)&&n.length>0?n:Array.isArray(t)?t:[]}function ep(){return(ep=(0,Q._)(function(e){var t,n,a,i,r;return(0,ee.Jh)(this,function(s){switch(s.label){case 0:return t=e.featured,n=e.username,a=e.userId,[4,eo(t)];case 1:if(!(i=s.sent()))return[2,[]];if(!n)return[3,3];return[4,(0,en.sh)({seasonId:i,username:n,userId:a,before:3,after:2,perPage:50})];case 2:if((r=s.sent()).rows.length>0)return[2,r.rows.map(function(e){var t;return em(e,(null===(t=r.target)||void 0===t?void 0:t.user_id)!=null&&String(e.user_id)===String(r.target.user_id))}).filter(Boolean)];s.label=3;case 3:return[4,(0,en.gU)(i,{page:1,per_page:6})];case 4:return[2,(s.sent().leaderboard||[]).slice(0,6).map(function(e){return em(e)}).filter(Boolean)]}})})).apply(this,arguments)}var ex=n(78551),ef=n(21142);function ev(e){var t,n,a,i,r,s=(0,ef.Z)(function(e){var t;return(null===(t=e.user)||void 0===t?void 0:t.username)||""}),l=(0,ef.Z)(function(e){var i,r,s;return null!==(a=null!==(n=null!==(t=null===(i=e.user)||void 0===i?void 0:i.id)&&void 0!==t?t:null===(r=e.user)||void 0===r?void 0:r.pk)&&void 0!==n?n:null===(s=e.user)||void 0===s?void 0:s.user_id)&&void 0!==a?a:null}),o=null!==(r=null!==(i=null==e?void 0:e.competition_id)&&void 0!==i?i:null==e?void 0:e.id)&&void 0!==r?r:null,c=(0,ex.a)({queryKey:[H.lP.SEASON_AROUND_USER,"competition-centre",(0,A.LT)(o)||o,s,l],enabled:!!e,queryFn:function(){return function(e){return ep.apply(this,arguments)}({featured:e,username:s,userId:l})},staleTime:6e4,retry:1});return{rows:c.data,isLoading:c.isLoading,isFetching:c.isFetching,error:c.error}}function eg(){(0,X.RO)({cta:"sign_in",surface:X.hq.SUMMARY_TILES,label:"Sign in"}),window.dispatchEvent(new Event("auth:required"))}function eb(){(0,X.RO)({cta:"sign_up",surface:X.hq.SUMMARY_TILES,label:"Sign up"}),window.dispatchEvent(new Event("auth:signup"))}function ew(){return(0,i.jsxs)("div",{className:"rounded-xl border border-[#2A2E2E] bg-[#121414] shadow-[0_8px_24px_rgba(0,0,0,0.35)] ".concat(u.Dj.panelPad),children:[(0,i.jsx)("p",{className:"text-[11px] font-bold uppercase tracking-[0.12em] text-white/50",children:"Competition Centre"}),(0,i.jsx)("p",{className:"mt-1.5 text-sm leading-snug text-white/70",children:"Sign in to see your featured rank, groups, and picks."}),(0,i.jsxs)("div",{className:"mt-3.5 grid grid-cols-2 gap-2",children:[(0,i.jsx)("button",{type:"button",onClick:eg,className:"inline-flex items-center justify-center rounded-lg px-3 py-2.5 text-[11px] font-bold uppercase tracking-wide transition ".concat(u.$U.outline),children:"Sign in"}),(0,i.jsx)("button",{type:"button",onClick:eb,className:"inline-flex items-center justify-center rounded-lg px-3 py-2.5 text-[11px] font-bold uppercase tracking-wide transition hover:brightness-110 ".concat(u.$U.primary),children:"Sign up"})]})]})}/** 47 * @license lucide-react v0.454.0 - ISC 48 * 49 * This source code is licensed under the ISC license. 50 * See the LICENSE file in the root directory of this source tree. 51 */let ej=(0,s.Z)("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);function eN(e){var t=e.value;if(null==t||0===t)return null;var n=t>0;return(0,i.jsx)(E.Z,{content:n?"Places gained this week on the all-time board.":"Places dropped this week on the all-time board.",children:(0,i.jsxs)("span",{className:"inline-flex cursor-help items-center gap-0.5 rounded-full px-1.5 py-0.5 text-[10px] font-bold",style:n?{backgroundColor:u.CC.muted.green,color:u.CC.greenDark}:{backgroundColor:u.CC.muted.red,color:u.CC.redDark},children:[n?(0,i.jsx)(ej,{className:"h-3 w-3",strokeWidth:3}):(0,i.jsx)(K,{className:"h-3 w-3",strokeWidth:3}),Math.abs(t)]})})}function ek(e){var t=e.Icon,n=e.accent,a=e.label,r=e.value,s=e.detail,l=e.detailExtra,o=e.href,c=e.onClick,d=e.ctaLabel,m=e.ctaClass,h=e.surfaceClass,p=e.featured,x=void 0!==p&&p,f=e.animateArrow,v=e.ctaArrow,g=void 0===v?"right":v,b=e.info,j="down"===g?K:q.Z,N=void 0!==f&&f&&"down"!==g?"arrow-nudge":x?"down"===g?"transition group-hover/cta:translate-y-0.5":"transition group-hover/cta:translate-x-0.5":"";return(0,i.jsxs)("div",{className:"flex items-center gap-3.5 rounded-xl ".concat(u.Dj.panelPad," transition duration-300 ").concat(h," ").concat(x?"":"hover:border-[#3A3E3E] hover:shadow-[0_10px_28px_rgba(92,110,30,0.16)]"),children:[(0,i.jsx)("div",{className:"flex h-14 w-14 shrink-0 items-center justify-center rounded-full",style:{color:n,backgroundColor:"".concat(n,"1F"),boxShadow:"inset 0 0 0 1.5px ".concat(n,"55")},children:(0,i.jsx)(t,{className:"h-7 w-7",strokeWidth:1.75,"aria-hidden":!0})}),(0,i.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,i.jsx)(E.Z,{content:void 0===b?null:b,children:(0,i.jsx)("p",{className:"cursor-help truncate text-[13px] leading-none text-white/70",children:a})}),(0,i.jsxs)("div",{className:"mt-1 flex items-end gap-1.5",children:[(0,i.jsx)("p",{className:"font-basement text-2xl leading-none text-white",children:r}),void 0===l?null:l]}),(0,i.jsx)("p",{className:"mt-0.5 truncate text-[10px] leading-tight text-white/50",children:s})]}),(0,i.jsxs)(w(),{href:o,onClick:c,scroll:!(null==o?void 0:o.startsWith("#")),className:"group/cta inline-flex shrink-0 items-center justify-center gap-1 rounded-md px-2.5 py-2 text-[10px] font-bold uppercase tracking-wide transition ".concat(m),children:[d,(0,i.jsx)(j,{className:"h-3.5 w-3.5 ".concat(N),strokeWidth:2.75})]})]})}function ey(e){var t=e.rankValue,n=e.rankChange,a=e.ranksUnset,r=e.groups,s=e.leaderboardHref,l=e.picksHref;return(0,i.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,i.jsxs)(w(),{href:s,onClick:function(){return(0,X.RO)({cta:"view_leaderboard",surface:X.hq.SUMMARY_TILES,href:s,label:"Leaderboard"})},className:"flex w-full items-center justify-between gap-3 ".concat(u.PY.card," ").concat(u.PY.cardPad),children:[(0,i.jsxs)("span",{className:"min-w-0 text-left",children:[(0,i.jsx)("span",{className:"block ".concat(u.PY.microLabel),children:(0,i.jsx)(E.Z,{content:S.K.leaderboardTile,children:(0,i.jsx)("span",{className:"cursor-help",children:"Featured rank"})})}),(0,i.jsxs)("span",{className:"mt-1 flex items-end gap-2",children:[(0,i.jsx)("span",{className:"font-basement text-[22px] leading-none text-white",children:t}),a?null:(0,i.jsx)(eN,{value:n})]})]}),(0,i.jsxs)("span",{className:"shrink-0 ".concat(u.PY.sectionLink),children:["Leaderboard",(0,i.jsx)(q.Z,{className:"ml-0.5 inline h-3.5 w-3.5",
51strokeWidth:2.75})]})]}),(0,i.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,i.jsxs)(w(),{href:H.ln.GROUPS,onClick:function(){return(0,X.RO)({cta:"view_groups",surface:X.hq.SUMMARY_TILES,href:H.ln.GROUPS,label:"Groups"})},className:"group flex items-end justify-between gap-2 ".concat(u.PY.card," ").concat(u.PY.cardPadCompact),children:[(0,i.jsxs)("span",{className:"min-w-0",children:[(0,i.jsx)("p",{className:u.PY.microLabel,children:(0,i.jsx)(E.Z,{content:S.K.groupsTile,children:(0,i.jsx)("span",{className:"cursor-help",children:"Groups"})})}),(0,i.jsx)("p",{className:"mt-0.5 font-basement text-xl leading-none text-white",children:r})]}),(0,i.jsx)(q.Z,{className:"mb-0.5 h-3.5 w-3.5 shrink-0 text-white/35 transition group-hover:translate-x-0.5 group-hover:text-[#8FA83C]",strokeWidth:2.5,"aria-hidden":!0})]}),(0,i.jsxs)("a",{href:l,onClick:function(e){(0,X.RO)({cta:"make_picks",surface:X.hq.SUMMARY_TILES,href:l,label:"Picks"}),J(e)},className:"group flex items-end justify-between gap-2 ".concat(u.PY.card," ").concat(u.PY.cardPadCompact),children:[(0,i.jsxs)("span",{className:"min-w-0",children:[(0,i.jsx)("p",{className:u.PY.microLabel,children:(0,i.jsx)(E.Z,{content:S.K.picksTile,children:(0,i.jsx)("span",{className:"cursor-help",children:"Picks"})})}),(0,i.jsx)("p",{className:"mt-0.5 font-basement text-xl leading-none text-white",children:"Caught up"})]}),(0,i.jsx)(K,{className:"mb-0.5 h-3.5 w-3.5 shrink-0 text-white/35 transition group-hover:translate-y-0.5 group-hover:text-[#8FA83C]",strokeWidth:2.5,"aria-hidden":!0})]})]})]})}var e_={picks:W.Z,leaderboard:U,groups:Y.Z};function eC(e){return{ctaClass:"border border-[#6B7F24]/50 bg-transparent text-white hover:border-[#8FA83C] hover:text-[#8FA83C]",surfaceClass:e?"border-[1px] border-[#2A2E2E] bg-[#121414] shadow-[0_8px_24px_rgba(0,0,0,0.35)]":"border-[0.5px] border-[#2A2E2E] bg-[#121414]/80 shadow-[0_8px_22px_rgba(0,0,0,0.3)]"}}function eS(e){var t=e.summary,n=e.leaderboardPreview,a=e.featured,s=(0,ef.Z)(function(e){return!!e.user}),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=(0,r.useMemo)(function(){return(0,A.Jt)(n)},[n]),i=(0,r.useMemo)(function(){return(Array.isArray(t)?t:[]).map(function(e){return em(e,!!(null==e?void 0:e.is_you))}).filter(Boolean)},[t]),s=ev(a),l=(0,r.useMemo)(function(){return eh({scoreboardRows:s.rows,hubRows:i,useHub:i.length>0})},[s.rows,i]);return(0,r.useMemo)(function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.boardRows,a=t.featured,i=$(null==e?void 0:e.competitions_needing_picks),r=(0,A.Jt)(void 0===a?null:a),s=G(void 0===n?[]:n);return{needing:i,rank:s?null:null==e?void 0:e.featured_rank,rankChange:s?0:$(null==e?void 0:e.featured_rank_change,0),ranksUnset:s,rankDetail:"Featured Rank",groups:$(null==e?void 0:e.group_count),owePicks:i>0,picksHref:V,leaderboardHref:(0,A.LG)(r)||A.e9}}(e,{boardRows:l,featured:a})},[e,l,a])}(t,void 0===n?[]:n,void 0===a?null:a),o=l.needing,d=l.rank,m=l.rankChange,h=l.ranksUnset,p=l.rankDetail,x=l.groups,f=l.owePicks,v=l.picksHref,g=l.leaderboardHref;if(!s)return(0,i.jsx)(ew,{});var b=h?"N/A":null!=d?"#".concat(d):"â",j=(0,c._)({key:"picks",featured:f,Icon:e_.picks,accent:u.CC.green,label:"Make Picks",value:o,detail:f?"competition".concat(1===o?"":"s"," need picks"):"you're all caught up",href:v,onClick:function(e){(0,X.RO)({cta:"make_picks",surface:X.hq.SUMMARY_TILES,href:v,label:"Make Picks"}),J(e)},ctaLabel:"Make Picks",ctaArrow:"down",animateArrow:!0,detailExtra:null,info:S.K.picksTile},eC(f)),N=(0,c._)({key:"leaderboard",featured:!f,Icon:e_.leaderboard,accent:u.CC.green,label:"Leaderboard",value:b,detail:p,detailExtra:h?null:(0,i.jsx)(eN,{value:m}),href:g,onClick:function(){return(0,X.RO)({cta:"view_leaderboard",surface:X.hq.SUMMARY_TILES,href:g,label:"Leaderboard"})},ctaLabel:"Leaderboard",ctaArrow:"right",animateArrow:!1,info:S.K.leaderboardTile},eC(!f)),k=(0,c._)({key:"groups",featured:!1,Icon:e_.groups,accent:u.CC.green,label:"Groups",value:x,detail:"group".concat(1===x?"":"s"," you're in"),href:H.ln.GROUPS,onClick:function(){return(0,X.RO)({cta:"view_groups",surface:X.hq.SUMMARY_TILES,href:H.ln.GROUPS,label:"Groups"})},ctaLabel:"Groups",ctaArrow:"right",animateArrow:!1,detailExtra:null,info:S.K.groupsTile},eC(!1));return(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsx)("div",{className:"md:hidden",children:f?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("button",{type:"button",onClick:function(e){(0,X.RO)({cta:"make_picks",surface:X.hq.SUMMARY_TILES,href:V,label:"Make Picks"}),J(e)},className:"group flex w-full items-center justify-between gap-3 rounded-xl border border-main-green/70 bg-main-green ".concat(u.PY.cardPad," text-left text-black"),children:[(0,i.jsxs)("span",{className:"flex min-w-0 flex-col items-start text-left",children:[(0,i.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-[0.12em] text-black/70",children:"Needs attention"}),(0,i.jsxs)("span",{className:"mt-0.5 font-basement text-[22px] leading-none",children:[o," pick",1===o?"":"s"," waiting"]})]}),(0,i.jsxs)("span",{className:"inline-flex shrink-0 items-center gap-1 text-[11px] font-bold uppercase tracking-wide",children:["Make Picks",(0,i.jsx)(K,{className:"h-3.5 w-3.5 transition group-hover:translate-y-0.5",strokeWidth:2.75})]})]}),(0,i.jsxs)("div",{className:"mt-3 grid grid-cols-2 gap-2",children:[(0,i.jsxs)(w(),{href:g,onClick:function(){return(0,X.RO)({cta:"view_leaderboard",surface:X.hq.SUMMARY_TILES,href:g,label:"Rank"})},className:"group flex items-end justify-between gap-2 ".concat(u.PY.card," ").concat(u.PY.cardPadCompact),children:[(0,i.jsxs)("span",{className:"min-w-0",children:[(0,i.jsx)("p",{className:u.PY.microLabel,children:"Rank"}),(0,i.jsx)("p",{className:"mt-0.5 font-basement text-xl leading-none text-white",children:b})]}),(0,i.jsx)(q.Z,{className:"mb-0.5 h-3.5 w-3.5 shrink-0 text-white/35 transition group-hover:translate-x-0.5 group-hover:text-[#8FA83C]",strokeWidth:2.5,"aria-hidden":!0})]}),(0,i.jsxs)(w(),{href:H.ln.GROUPS,onClick:function(){return(0,X.RO)({cta:"view_groups",surface:X.hq.SUMMARY_TILES,href:H.ln.GROUPS,label:"Groups"})},className:"group flex items-end justify-between gap-2 ".concat(u.PY.card," ").concat(u.PY.cardPadCompact),children:[(0,i.jsxs)("span",{className:"min-w-0",children:[(0,i.jsx)("p",{className:u.PY.microLabel,children:(0,i.jsx)(E.Z,{content:S.K.groupsTile,children:(0,i.jsx)("span",{className:"cursor-help",children:"Groups"})})}),(0,i.jsx)("p",{className:"mt-0.5 font-basement text-xl leading-none text-white",children:x})]}),(0,i.jsx)(q.Z,{className:"mb-0.5 h-3.5 w-3.5 shrink-0 text-white/35 transition group-hover:translate-x-0.5 group-hover:text-[#8FA83C]",strokeWidth:2.5,"aria-hidden":!0})]})]})]}):(0,i.jsx)(ey,{rankValue:b,rankChange:m,ranksUnset:h,groups:x,leaderboardHref:g,picksHref:v})}),(0,i.jsx)("div",{className:"hidden gap-2 md:grid md:grid-cols-3",children:[j,N,k].map(function(e){return(0,i.jsx)(ek,{featured:e.featured,Icon:e.Icon,accent:e.accent,label:e.label,value:e.value,detail
51:e.detail,detailExtra:e.detailExtra,href:e.href,onClick:e.onClick,ctaLabel:e.ctaLabel,ctaClass:e.ctaClass,surfaceClass:e.surfaceClass,animateArrow:e.animateArrow,ctaArrow:e.ctaArrow,info:e.info},e.key)})})]})}var eA=[{id:"event",title:"Monthly",shortLabel:"Monthly",body:"One fight card, one deadline. Lock picks before that event starts."},{id:"season",title:"Season",shortLabel:"Season",body:"Several fight cards in one window. Scores stack as the cards play out."},{id:"realm",title:"Realm",shortLabel:"Realm",body:"Points and trophies from activity across the period, alongside fantasy."},{id:"feature",title:"Featured",shortLabel:"Featured",body:"The pinned spotlight. Usually one monthly and one season at the top."}],eE={intro:"How this hub works, what a competition is, and how monthly and season windows differ.",sections:[{id:"centre",title:"Competition Centre",body:"Your hub for fight cards, fantasy competitions, picks, groups, and ranks. Use the snapshot tiles, then work through events and the competitions you are in."},{id:"competitions",title:"Competitions",body:"A competition is a date window with a prize pool. Make picks on fight cards that fall in that window and you are on the board. There is no separate entry ticket. Fantasy picks score the leaderboard. Realm points and trophies can score alongside them."},{id:"monthly",title:"Monthly",body:"One fight card, one deadline. Lock your picks before that event starts. When the card is final, the monthly is scored."},{id:"season",title:"Season",body:"A longer window that covers several fight cards. Scores stack across every event in the season, so you climb a rolling board as the cards play out."},{id:"realm",title:"Realm",body:"Realm points and trophies score from activity across the period, not from a single pick. They run alongside fantasy. They are not a separate competition you join."},{id:"feature",title:"Featured",body:"The pinned spotlight at the top of this page. We usually pin one monthly and one season so the current windows are easy to jump into."}]},eL="h-7 w-7 shrink-0 text-[#B8D44A]",eP={event:(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",className:eL,"aria-hidden":!0,stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,i.jsx)("rect",{x:"3.5",y:"5",width:"17",height:"15.5",rx:"2.2"}),(0,i.jsx)("path",{d:"M3.5 9.5h17M8 3.5v3.2M16 3.5v3.2"}),(0,i.jsx)("circle",{cx:"8",cy:"13",r:"0.85",fill:"currentColor",stroke:"none"}),(0,i.jsx)("circle",{cx:"12",cy:"13",r:"0.85",fill:"currentColor",stroke:"none"}),(0,i.jsx)("circle",{cx:"16",cy:"13",r:"0.85",fill:"currentColor",stroke:"none"}),(0,i.jsx)("circle",{cx:"8",cy:"16.5",r:"0.85",fill:"currentColor",stroke:"none"}),(0,i.jsx)("circle",{cx:"12",cy:"16.5",r:"0.85",fill:"currentColor",stroke:"none"})]}),season:(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",className:eL,"aria-hidden":!0,stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,i.jsx)("path",{d:"M8 20h8M9.5 20v-2.2c0-1.4.6-2.7 1.6-3.6l.9-.8M14.5 20v-2.2c0-1.4-.6-2.7-1.6-3.6l-.9-.8"}),(0,i.jsx)("path",{d:"M7.2 8.2c0 2.9 2.1 4.6 4.8 5.3 2.7-.7 4.8-2.4 4.8-5.3V5.8c-1.6.5-3.2.4-4.8 0-1.6.4-3.2.5-4.8 0v2.4z"}),(0,i.jsx)("path",{d:"M12 4.6c.7-.8 1.8-1.3 3-.1"})]}),realm:(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",className:eL,"aria-hidden":!0,stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,i.jsx)("circle",{cx:"12",cy:"12",r:"2.1"}),(0,i.jsx)("circle",{cx:"12",cy:"4.6",r:"1.55"}),(0,i.jsx)("circle",{cx:"19.2",cy:"12",r:"1.55"}),(0,i.jsx)("circle",{cx:"12",cy:"19.4",r:"1.55"}),(0,i.jsx)("circle",{cx:"4.8",cy:"12",r:"1.55"}),(0,i.jsx)("path",{d:"M12 9.9V6.2M14.1 12h3.5M12 14.1v3.2M9.9 12H6.4"})]}),feature:(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",className:eL,"aria-hidden":!0,stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:(0,i.jsx)("path",{d:"M12 3.4l2.15 4.55 5 .7-3.65 3.45.9 4.95L12 14.7 7.6 17.05l.9-4.95L4.85 8.65l5-.7L12 3.4z"})})};function eM(){return(0,i.jsxs)("section",{"aria-label":"Competition types",children:[(0,i.jsx)("div",{className:"".concat(u.PY.sectionHeader),children:(0,i.jsx)(h,{label:"Competition Types",info:S.K.types,className:"".concat(u.PY.sectionTitle," md:text-3xl md:leading-tight"),children:"Competition Types"})}),(0,i.jsx)("div",{className:"grid grid-cols-2 overflow-hidden min-[1920px]:grid-cols-4 min-[1920px]:divide-x min-[1920px]:divide-[#2A2E2E] ".concat(u.PY.card),children:eA.map(function(e){return(0,i.jsxs)("div",{className:"flex min-w-0 flex-col gap-2 border-[#2A2E2E] px-3 py-3.5 odd:border-r sm:flex-row sm:items-start sm:gap-3 sm:px-4 sm:py-4 min-[1920px]:items-center min-[1920px]:border-b-0 min-[1920px]:border-r-0 min-[1920px]:px-5 [&:nth-child(-n+2)]:border-b",children:[eP[e.i
51d],(0,i.jsxs)("div",{className:"min-w-0",children:[(0,i.jsx)("p",{className:"font-basement text-[15px] leading-none tracking-wide text-white sm:text-[16px]",children:e.shortLabel}),(0,i.jsx)("p",{className:"mt-1.5 text-[11px] leading-snug text-white/50 sm:text-[12px]",children:e.body})]})]},e.id)})})]})}var eR=n(73292),eF=[{id:"current",label:"Current"},{id:"future",label:"Future"},{id:"past",label:"Past"}];function eT(e){var t=e.value,n=e.onChange,a=e.counts,r=void 0===a?{}:a;return(0,i.jsx)("div",{role:"group","aria-label":"Event status",className:"flex w-full rounded-lg border border-[#2A2E2E] bg-[#0C0E0E] p-1 md:inline-flex md:w-auto md:shrink-0",children:eF.map(function(e){var a,s=t===e.id,l=null!==(a=r[e.id])&&void 0!==a?a:0;return(0,i.jsxs)("button",{type:"button","aria-pressed":s,onClick:function(){return n(e.id)},className:"inline-flex flex-1 items-baseline justify-center gap-1.5 rounded-md px-2.5 py-2.5 text-[13px] font-bold uppercase tracking-wide transition md:flex-none md:gap-1.5 md:px-2.5 md:py-1.5 md:text-[12px] ".concat(s?"bg-main-green text-black":"text-white/55 hover:bg-white/[0.04] hover:text-white"),children:[(0,i.jsx)("span",{className:"font-semibold tabular-nums tracking-normal ".concat(s?"text-black/45":"text-white/30"),children:l}),e.label]},e.id)})})}function eI(e){var t=e.className,n=e.phase,a=e.onPhaseChange,r=e.showFilters,s=e.counts;return(0,i.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-start md:justify-between ".concat(void 0===t?"":t),children:[(0,i.jsxs)("div",{className:"w-full min-w-0 md:w-auto md:flex-1 md:pr-4",children:[(0,i.jsx)(h,{label:"Your Actions",info:S.K.yourCompetitions,className:"".concat(u.PY.sectionTitle," md:text-3xl md:leading-tight"),children:"Your Actions"}),(0,i.jsx)("p",{className:"mt-1.5 hidden text-[11px] font-medium uppercase tracking-wide text-white/50 md:block",children:"Current cards you can pick, plus future and past"})]}),r?(0,i.jsx)("div",{className:"w-full md:w-auto md:shrink-0 md:self-start md:pt-1",children:(0,i.jsx)(eT,{value:n,onChange:a,counts:s})}):null]})}function ez(e){var t=e.src,n=e.sizeClass;return(0,i.jsx)("span",{className:"".concat(void 0===n?"h-9 w-9":n," flex-shrink-0 overflow-hidden rounded-lg bg-black/40 ring-1 ring-[#6B7F24]/30"),children:t?(0,i.jsx)("img",{src:t,alt:"",className:"h-full w-full object-cover"}):(0,i.jsx)("span",{className:"block h-full w-full bg-black"})})}var eD=n(13742);/** 52 * @license lucide-react v0.454.0 - ISC 53 * 54 * This source code is licensed under the ISC license. 55 * See the LICENSE file in the root directory of this source tree. 56 */let eZ=(0,s.Z)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);function eB(e){var t=e.needsAttention;return e.isDone?(0,i.jsx)("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-[#8FA83C]/20 text-[#8FA83C]",children:(0,i.jsx)(eD.Z,{className:"h-3 w-3",strokeWidth:3})}):(0,i.jsx)(eZ,{className:"h-4 w-4 shrink-0 ".concat(t?"text-[#F0595E]":"text-white/25"),strokeWidth:2.25})}function eO(e){var t=e.cta,n=e.showArrow;return(0,i.jsxs)(i.Fragment,{children:[(null==t?void 0:t.label)||"-",n?(0,i.jsx)(q.Z,{className:"arrow-nudge h-3.5 w-3.5",strokeWidth:2.75}):null]})}var eW={green:"border border-transparent bg-main-green text-black hover:brightness-110",amber:u.$U.caution,muted:u.$U.outline};function eU(e){var t=e.cta,n=e.showArrow,a=e.fullWidth,r=e.className,s="".concat(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fullWidth,a=eW[(null==e?void 0:e.tone)||"green"]||eW.green;return"inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-lg text-[11px] font-bold uppercase tracking-wide transition ".concat(void 0!==n&&n?"h-8 w-full px-3":"h-7 shrink-0 px-2.5"," ").concat(a)}(t,{fullWidth:void 0!==a&&a})," ").concat(void 0===r?"":r);return(null==t?void 0:t.href)?(0,i.jsx)("span",{className:"".concat(s," pointer-events-none group-hover:brightness-110"),children:(0,i.jsx)(eO,{cta:t,showArrow:n})}):(0,i.jsx)("span",{className:"".concat(s," cursor-default opacity-60"),children:(0,i.jsx)(eO,{cta:t,showArrow:!1}
56)})}function eY(e){var t=e.href,n=e.className,a=e.children,r=e.onNavigate;return t?(0,i.jsx)(w(),{href:t,onClick:r,className:"group no-underline ".concat(n),children:a}):(0,i.jsx)("div",{className:n,children:a})}function eK(e){var t=e.label,n=e.kind,a=e.className,r=void 0===a?"":a;return t?(0,i.jsx)("span",{className:"truncate text-[11px] font-bold uppercase leading-none tracking-[0.1em] ".concat("season"===n?"text-[#A8BC4A]":"text-[#6B7F24]"," ").concat(r),title:t,children:t}):(0,i.jsx)("span",{className:"truncate text-[11px] text-white/25 ".concat(r),children:"-"})}var eq={picks_incomplete:"Picks Incomplete",picks_complete:"Picks Complete",registered:"Registered",make_picks:"Needs Picks",get_ready:"Get Ready"},eH={picks_incomplete:u.cB.red,picks_complete:u.cB.green,registered:u.cB.gray,make_picks:u.cB.red,get_ready:u.cB.red},eG="px-5 md:px-6",eV={current:"No events to pick right now.",future:"No future events yet.",past:"No past events yet."};function eJ(e){if(null==e?void 0:null===(t=e.cta)||void 0===t?void 0:t.href){var t,n,a,i,r,s=e.cta.kind,l="open_event";"picks"===s?l="make_picks":"results"===s&&(l="see_results"),(0,X.RO)({cta:l,surface:X.hq.YOUR_ACTIONS,href:e.cta.href,label:e.cta.label,competitionId:null!==(a=null!==(n=e.competitionId)&&void 0!==n?n:e.competition_id)&&void 0!==a?a:null,eventId:null!==(r=null!==(i=e.eventId)&&void 0!==i?i:e.event_id)&&void 0!==r?r:null})}}function e$(e){var t,n,s,l,o,m,h,p,x,f,v,g,b=e.rows,w=e.events,j=e.competitions,N=(n=(t={rows:b,events:void 0===w?[]:w,competitions:void 0===j?[]:j}).rows,l=void 0===(s=t.events)?[]:s,m=void 0===(o=t.competitions)?[]:o,p=(h=(0,a._)((0,r.useState)("current"),2))[0],x=h[1],f=(0,r.useMemo)(function(){return(0,A.sI)({yourCompetitions:Array.isArray(n)?n:[],events:l,competitions:m})},[n,l,m]),v=(0,r.useMemo)(function(){return f.filter(function(e){return e.phase===p})},[f,p]),g=(0,r.useMemo)(function(){return f.reduce(function(e,t){if(!(t.phase in e))return e;var n=t.phase;return(0,d._)((0,c._)({},e),(0,eR._)({},n,e[n]+1))},{current:0,future:0,past:0})},[f]),{list:f,visible:v,counts:g,phase:p,setPhase:x}),k=N.list,y=N.visible,_=N.counts,C=N.phase,L=N.setPhase,P=(0,i.jsx)(eI,{className:u.Dj.titleToCards,phase:C,onPhaseChange:L,showFilters:k.length>0,counts:_}),M=(0,i.jsx)("p",{className:"rounded-xl py-8 text-sm text-white/50 ".concat(u.Dj.panelX," ").concat(u.SK.cardQuiet),children:eV[C]||eV.current});return(0,i.jsx)("section",{id:"your-actions","data-cc-your-actions":!0,className:"min-h-0 scroll-mt-24 md:scroll-mt-20",children:0===k.length?(0,i.jsxs)(i.Fragment,{children:[P,(0,i.jsx)("p",{className:"rounded-xl py-8 text-sm text-white/50 ".concat(u.Dj.panelX," ").concat(u.SK.cardQuiet),children:"Sign in to track picks, or make picks on the current events below."})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"min-[1920px]:hidden",children:[(0,i.jsx)(eI,{className:"mb-3",phase:C,onPhaseChange:L,showFilters:!0,counts:_}),0===y.length?M:(0,i.jsx)("ul",{className:"overflow-hidden ".concat(u.PY.card),children:y.map(function(e,t){var n="picks"===e.cta.kind||"results"===e.cta.kind;return(0,i.jsx)("li",{className:t>0?"border-t border-[#2A2E2E]":"",children:(0,i.jsxs)(eY,{href:e.cta.href,onNavigate:function(){return eJ(e)},className:"flex items-center gap-3.5 py-3.5 ".concat(eG),children:[(0,i.jsx)(eB,{needsAttention:e.needsAttention,isDone:e.isDone}),(0,i.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,i.jsx)("p",{className:"truncate text-[13px] font-semibold leading-none tracking-wide ".concat(e.isDone?"text-white/55":"text-white"),title:e.fullName,children:e.name}),(0,i.jsx)("p",{className:"mt-1.5 truncate text-[11px] leading-none text-white/40",children:e.seasonName||e.monthlyName?(0,i.jsxs)(i.Fragment,{children:[e.seasonName?(0,i.jsx)("span",{className:"text-[#A8BC4A]/90",children:e.seasonName}):null,e.seasonName&&e.monthlyName?(0,i.jsx)("span",{className:"text-white/25",children:" \xb7 "}):null,e.monthlyName?(0,i.jsx)("span",{className:"text-[#6B7F24]/90",children:e.monthlyName}):null]}):(0,i.jsx)("span",{className:e.needsAttention?"text-[#F0595E]/90":"text-white/40",children:eq[e.status]||e.status})})]}),(0,i.jsx)(eU,{cta:e.cta,showArrow:n})]})},e.key)})})]}),(0,i.jsxs)("div",{className:"hidden min-[1920px]:block",children:[(0,i.jsx)(eI,{className:u.Dj.titleToCards,phase:C,onPhaseChange:L,showFilters:!0,counts:_}),0===y.length?M:(0,i.jsxs)("div",{className:"grid grid-cols-[minmax(13rem,1.65fr)_minmax(8.75rem,1.05fr)_minmax(5.75rem,0.7fr)_8.5rem_minmax(9.25rem,0.95fr)_8.75rem] items-center gap-x-6 gap-y-2.5 pr-1 md:gap-x-8",children:[(0,i.jsxs)("div",{className:"sticky top-0 z-10 col-span-6 grid grid-cols-subgrid items-center rounded-lg border border-[#2A2E2E]/70 bg-[#0C0E0E]/95 py-2.5 text-[10px] font-semibold uppercase tracking-[0.14em] text-white/45 backdrop-blur-md ".concat(eG),children:[(0,i.jsx)("span",{className:"text-white/55",children:"Event"}),(0,i.jsx)(E.Z,{content:S.K.quarterKind,children:(0,i.jsx)("span",{className:"w-fit cursor-help",children:"Season"})}),(0,i.jsx)(E.Z,{content:S.K.monthlyKind,children:(0,i.jsx)("span",{className:"w-fit cursor-help",children:"Monthly"})}),(0,i.jsx)(E.Z,{content:S.K.yourStatus,children:(0,i.jsx)("span",{className:"w-fit cursor-help",children:"Status"})}),(0,i.jsx)(E.Z,{content:S.K.yourDeadline,children:(0,i.jsx)("span",{className:"w-fit cursor-help",children:"Deadline"})}),(0,i.jsx)("span",{className:"text-right text-white/55",children:"Action"})]}),y.map(function(e){var t="picks"===e.cta.kind||"results"===e.cta.kind;return(0,i.jsxs)(eY,{href:e.cta.href,onNavigate:function(){return eJ(e)},className:"col-span-6 grid grid-cols-subgrid items-center rounded-xl border bg-[#121414] py-4 shadow-[0_6px_18px_rgba(0,0,0,0.28)] transition duration-300 hover:border-[#3A3E3E] hover:bg-[#161818] hover:shadow-[0_8px_22px_rgba(0,0,0,0.36)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-main-green/50 ".concat(eG," ").concat(e.needsAttention?"border-[#C44549]/40":"border-[#6
56B7F24]/30"),children:[(0,i.jsxs)("div",{className:"flex min-w-0 items-center gap-3 pr-2",children:[(0,i.jsx)(ez,{src:e.thumb}),(0,i.jsxs)("div",{className:"min-w-0",children:[(0,i.jsx)("span",{className:"block min-w-0 truncate font-basement text-[13px] leading-[1.1] tracking-wide text-white md:text-[14px]",title:e.fullName,children:e.name}),e.picksLabel?(0,i.jsxs)("span",{className:"mt-1.5 block text-[10px] font-semibold uppercase leading-none tracking-wide text-white/40",children:["Picks ",e.picksLabel]}):null]})]}),(0,i.jsx)(eK,{label:e.seasonName,kind:"season",className:"pr-2"}),(0,i.jsx)(eK,{label:e.monthlyName,kind:"monthly",className:"pr-2"}),(0,i.jsx)("div",{className:"flex min-w-0 items-center",children:(0,i.jsx)("span",{className:"inline-flex max-w-full truncate rounded-md px-2 py-0.5 text-[10px] font-bold uppercase leading-none tracking-wide ".concat(eH[e.status]||"bg-white/15 text-white/70"),children:eq[e.status]||e.status})}),(0,i.jsx)("p",{className:"truncate pr-2 text-[12px] leading-none text-white/55 md:text-[13px]",children:e.deadline}),(0,i.jsx)("div",{className:"flex w-full items-center justify-end",children:(0,i.jsx)(eU,{cta:e.cta,showArrow:t})})]},e.key)})]})]})]})})}var eX=n(89838);function eQ(){return(0,i.jsxs)("div",{className:"relative overflow-hidden ".concat(u.PY.card),children:[(0,i.jsx)("img",{src:"/img/groups/fr-groups-create-join-bg.webp",alt:"",className:"absolute inset-0 h-full w-full object-cover object-right"}),(0,i.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-black via-black/70 to-black/20"}),(0,i.jsxs)("div",{className:"relative z-10 ".concat(u.Dj.panelPad),children:[(0,i.jsx)("p",{className:u.PY.eyebrow,children:"Compete Together"}),(0,i.jsx)("h3",{className:"mt-1.5 font-basement text-[22px] leading-[1.1] tracking-wide text-white md:text-2xl",children:"Create or Join a Group"}),(0,i.jsx)("p",{className:"mt-2 max-w-[18rem] text-[13px] leading-snug text-white/60 md:text-sm md:text-white/70",children:"Compete with your mates, climb the group leaderboard, and win together."}),(0,i.jsxs)("div",{className:"mt-4 flex flex-col gap-2",children:[(0,i.jsx)(w(),{href:"".concat(H.ln.GROUPS,"?openCreateGroup=1"),onClick:function(){return(0,X.RO)({cta:"create_group",surface:X.hq.GROUPS_PROMO,href:"".concat(H.ln.GROUPS,"?openCreateGroup=1"),label:"Create Group"})},className:u.PY.ctaFill,children:"Create Group"}),(0,i.jsx)(w(),{href:H.ln.GROUPS,onClick:function(){return(0,X.RO)({cta:"browse_groups",surface:X.hq.GROUPS_PROMO,href:H.ln.GROUPS,label:"Browse Groups"})},className:u.PY.ctaOutline,children:"Browse Groups"})]})]})]})}/** 57 * @license lucide-react v0.454.0 - ISC 58 * 59 * This source code is licensed under the ISC license. 60 * See the LICENSE file in the root directory of this source tree. 61 */let e0=(0,s.Z)("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);var e1=n(31165),e2=n(8971);function e5(e){return(0,A.ml)((0,A.z$)(e))}function e3(e){var t=e.options,n=void 0===t?[]:t,a=e.value,r=e.onChange,s=e.id,l=e.compact,o=void 0!==l&&l,c=n.find(function(e){return(0,A.LT)(e.competition_id)===a})||n[0]||null;if(!n.length||!c)return null;var d=e5(c),u="season"===(0,A.z$)(c);return(0,i.jsx)(e1.Ri,{value:c,by:function(e,t){return(0,A.LT)(null==e?void 0:e.competition_id)===(0,A.LT)(null==t?void 0:t.competition_id)},onChange:function(e){var t=(0,A.LT)(null==e?void 0:e.competition_id);t&&r(t)},children:(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsxs)(e1.Y4,{id:void 0===s?"cc-mobile-competition-select":s,className:o?"group flex w-full items-center gap-2 rounded-lg border border-[#2A2E2E] bg-black/30 px-2.5 py-1.5 text-left outline-none transition hover:border-[#3A3E3E] focus:border-[#8FA83C]/50 data-[open]:border-[#8FA83C]/45":"group flex w-full items-center gap-2.5 rounded-xl border border-[#2A2E2E] bg-[rgba(8,9,9,0.55)] px-3 py-2.5 text-left outline-none transition hover:border-[#3A3E3E] focus:border-[#8FA83C]/50 data-[open]:border-[#8FA83C]/45",children:[(0,i.jsx)("span",{className:"shrink-0 rounded-md px-1.5 py-0.5 text-[9px] font-bold uppercase tracking-[0.12em] ".concat(u?"bg-[rgba(143,168,60,0.18)] text-[#A8BC4A]":"bg-[rgba(107,127,36,0.16)] text-[#6B7F24]"),children:d}),(0,i.jsx)("span",{className:o?"min-w-0 flex-1 truncate text-[11px] font-semibold text-white/75":"min-w-0 flex-1 truncate text-sm font-medium text-white",children:ed(c)}),(0,i.jsx)(e2.Z,{className:o?"h-3.5 w-3.5 shrink-0 text-white/40 transition group-data-[open]:rotate-180 group-data-[open]:text-[#8FA83C]":"h-4 w-4 shrink-0 text-white/45 transition group-data-[open]:rotate-180 group-data-[open]:text-[#8FA83C]",strokeWidth:2.5,"aria-hidden":!0})]}),(0,i.jsx)(e1.O_,{anchor:"bottom start",transition:!0,className:"z-[220] mt-1.5 max-h-64 w-[var(--button-width)] overflow-auto rounded-xl border border-[#2A2E2E] bg-[#121414] py-1.5
61shadow-[0_16px_40px_rgba(0,0,0,0.55)] outline-none transition duration-100 ease-out [--anchor-gap:6px] data-[closed]:scale-95 data-[closed]:opacity-0",children:n.map(function(e){var t=e5(e),n="season"===(0,A.z$)(e);return(0,i.jsx)(e1.wt,{value:e,className:"group relative cursor-pointer select-none px-3 py-2.5 outline-none data-[focus]:bg-[rgba(143,168,60,0.08)] data-[selected]:bg-[rgba(143,168,60,0.1)]",children:function(a){var r=a.selected;return(0,i.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,i.jsx)("span",{className:"shrink-0 rounded-md px-1.5 py-0.5 text-[9px] font-bold uppercase tracking-[0.12em] ".concat(n?"bg-[rgba(143,168,60,0.18)] text-[#A8BC4A]":"bg-[rgba(107,127,36,0.16)] text-[#6B7F24]"),children:t}),(0,i.jsx)("span",{className:"min-w-0 flex-1 truncate text-sm ".concat(r?"font-medium text-[#8FA83C]":"text-white/80 group-data-[focus]:text-white"),children:ed(e)}),r?(0,i.jsx)(eD.Z,{className:"h-3.5 w-3.5 shrink-0 text-[#8FA83C]",strokeWidth:2.75,"aria-hidden":!0}):null]})}},(0,A.LT)(e.competition_id))})})]})})}function e4(e){var t=e.icon,n=e.title,a=e.body,r=e.children;return(0,i.jsx)("div",{className:"rounded-xl border border-dashed border-[#2A2E2E] bg-black/20 ".concat(u.Dj.panelPad),children:(0,i.jsxs)("div",{className:"flex items-start gap-3",children:[(0,i.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border border-[#2A2E2E] bg-white/[0.04]",children:(0,i.jsx)(t,{className:"h-4 w-4 text-[#8FA83C]",strokeWidth:2,"aria-hidden":!0})}),(0,i.jsxs)("div",{className:"min-w-0",children:[(0,i.jsx)("p",{className:"text-[13px] font-semibold leading-snug text-white",children:n}),a?(0,i.jsx)("p",{className:"mt-1 text-[12px] leading-snug text-white/50",children:a}):null,r]})]})})}var e8="grid grid-cols-[1.5rem_minmax(0,1fr)_2.75rem_1.75rem] items-center gap-x-2",e6="grid grid-cols-[minmax(0,1fr)_2.75rem_1.75rem] items-center gap-x-2";function e9(){return(0,i.jsxs)("div",{className:"mt-2.5 overflow-hidden rounded-xl border border-[#2A2E2E] bg-black/25","aria-hidden":!0,children:[(0,i.jsx)("div",{className:"border-b border-[#2A2E2E] px-3 py-2 ".concat(e8),children:(0,i.jsx)("span",{className:"col-span-4 h-2.5 w-28 animate-pulse rounded bg-white/10"})}),(0,i.jsx)("ul",{className:"divide-y divide-[#2A2E2E]/80",children:[0,1,2,3].map(function(e){return(0,i.jsxs)("li",{className:"px-3 py-2 ".concat(e8),children:[(0,i.jsx)("span",{className:"h-3 w-full animate-pulse rounded bg-white/10"}),(0,i.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[(0,i.jsx)("span",{className:"h-5 w-5 shrink-0 animate-pulse rounded-full bg-white/10"}),(0,i.jsx)("span",{className:"h-3 w-full animate-pulse rounded bg-white/10"})]}),(0,i.jsx)("span",{className:"h-3 w-full animate-pulse rounded bg-white/10"}),(0,i.jsx)("span",{className:"h-3 w-full animate-pulse rounded bg-white/10"})]},e)})})]})}var e7=n(48522),te=n(97724),tt=n(64791),tn=n(71127),ta=n(14522),ti=n(78221),tr="/img/pf.jpg";function ts(e){var t=e.row,n=(0,ta.Z)().profilePageVisible,a=(0,ti.Z)(function(e){return e.openUserProfile}),r=eu(t),s=(0,tt.uR)(null==r?void 0:r.avatar,tr),l="boolean"==typeof(null==r?void 0:r.isFoundingMember)?r.isFoundingMember:(0,tn.Oy)(null==r?void 0:r.flair),o=(0,i.jsx)(te.Z,{avatarSize:20,flair:null==r?void 0:r.flair,badgeTier:null==r?void 0:r.badgeTier,isFoundingMember:l,className:"flex-shrink-0",children:(0,i.jsx)("img",{src:s,alt:(null==r?void 0:r.username)||"User",width:20,height:20,className:"h-full w-full rounded-full object-cover",onError:function(e){var t=e.currentTarget;t.src.endsWith(tr)||(t.src=tr)}})});return n&&r?(0,i.jsx)("button",{type:"button",onClick:function(){return a(r)},className:"flex-shrink-0 rounded-full outline-none transition hover:opacity-90 focus-visible:ring-2 focus-visible:ring-white/30","aria-label":"Open ".concat(r.username,"'s profile"),children:o}):o}function tl(e){var t=e.value;if(null==t||0===t)return(0,i.jsx)("span",{className:"inline-flex items-center text-white/30",title:"No change",children:(0,i.jsx)(e0,{className:"h-3 w-3",strokeWidth:2.75})});var n=t>0;return(0,i.jsxs)("span",{className:"inline-flex items-center gap-0.5 tabular-nums ".concat(n?"text-[#8FA83C]":u.U2.red),children:[n?(0,i.jsx)(ej,{className:"h-3 w-3",strokeWidth:2.75}):(0,i.jsx)(K,{className:"h-3 w-3",strokeWidth:2.75}),Math.abs(t)]})}function to(e){var t=e.preview,n=e.ranksUnset;return(0,i.jsxs)("div",{className:"mt-2.5 overflow-hidden rounded-xl border border-[#2A2E2E] bg-black/25",children:[(0,i.jsxs)("div",{className:"border-b border-[#2A2E2E] px-3 py-1.5 text-[10px] font-bold uppercase tracking-[0.12em] text-white/40 ".concat(n?e6:e8),children:[n?null:(0,i.jsx)("span",{className:"text-right",children:"#"}),(0,i.jsx)("span",{children:"Player"}),(0,i.jsx)("span",{className:"text-right",children:"Pts"}),(0,i.jsx)("span",{className:"text-right",children:"Î"})]}),(0,i.jsx)("ul",{className:"divide-y divide-[#2A2E2E]/80",children:t.map(function(e){var t=!!e.is_you,a=e.username||(t?"You":"Competitor"),r=eu(e),s=t?"text-[#A8BC4A]":"text-white/90",l=t?"text-[#8FA83C]":"text-white/55";return(0,i.jsxs)("li",{className:"px-3 py-2 text-[12px] leading-tight ".concat(n?e6:e8," ").concat(t?"bg-[rgba(143,168,60,0.1)]":"bg-transparent"),children:[n?null:(0,i.jsx)("span",{className:"text-right tabular-nums ".concat(t?"font-semibold text-[#A8BC4A]":"text-white/45"),children:e.rank}),(0,i.jsxs)("div",{className:"flex min-w-0 items-center gap-1.5",children:[(0,i.jsx)(ts,{row:e}),r?(0,i.jsx)(e7.Z,{userSlug:r.slug,username:r.username,avatar:r.avatar,badgeTier:r.badgeTier,flair:r.flair,isFoundingMember:r.isFoundingMember,className:"min-w-0 truncate font-medium ".concat(s),children:a}):(0,i.jsx)("span",{className:"min-w-0 truncate font-medium ".concat(s),children:a})]}),(0,i.jsx)("span",{className:"text-right tabular-nums ".concat(l),children:Math.round(Number(e.total_score||0)).toLocaleStr
61ing()}),(0,i.jsx)("span",{className:"flex justify-end",children:(0,i.jsx)(tl,{value:Number(e.rank_change)})})]},"".concat(e.rank,"-").concat(a,"-").concat(e.user_id||""))})})]})}function tc(e){var t,n=e.options,a=e.selectedId,r=e.setSelectedId,s=e.selectedComp,l=e.leaderboardLoading,o=e.isLoggedIn,c=e.leaderboardHref,d=e.preview,h=e.rank,p=e.rankChange,x=e.ranksUnset,f=e.topPct,v=e.isUnranked,g=e.hasMovement,b=e.movedUp,j=e.movementCopy,N=e.showUnifiedEmpty,k=e.emptyTitle,y=e.emptyBody;return(0,i.jsxs)("div",{className:"hidden rounded-2xl md:block ".concat(u.Dj.panelPad," ").concat(u.SK.cardQuiet),children:[(0,i.jsxs)("div",{className:"space-y-2",children:[(0,i.jsxs)("p",{className:"inline-flex items-center gap-1.5 text-[11px] font-bold uppercase leading-none tracking-[0.14em] text-white/70",children:["Leaderboard Movement",(0,i.jsx)(m.Z,{label:"Leaderboard Movement",content:S.K.movement,compact:!0})]}),n.length?(0,i.jsx)(e3,{id:"cc-sidebar-competition-select",options:n,value:a,onChange:r,compact:!0}):(0,i.jsx)("span",{className:"inline-flex w-full items-center rounded-lg border border-[#2A2E2E] bg-black/30 px-2.5 py-1.5 text-[11px] font-semibold text-white/55",children:"No competitions yet"})]}),N?(0,i.jsx)("div",{className:"mt-3.5",children:(0,i.jsx)(e4,{icon:L.Z,title:k,body:y,children:o&&s?(0,i.jsx)("a",{href:V,onClick:function(e){var t;(0,X.RO)({cta:"make_picks",surface:X.hq.SIDEBAR,href:V,label:"Make Picks",competitionId:null!==(t=null==s?void 0:s.competition_id)&&void 0!==t?t:null}),J(e)},className:"mt-3 ".concat(u.PY.ctaFill),children:"Make Picks"}):null})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"mt-3.5 grid grid-cols-2 items-start gap-0",children:[(0,i.jsx)("div",{className:"min-w-0 border-r border-[#2A2E2E] pr-3.5",children:v?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{className:"text-[10px] font-semibold uppercase tracking-[0.12em] text-white/40",children:"This week"}),(0,i.jsx)("div",{className:"mt-1.5 flex h-8 w-8 items-center justify-center rounded-md border border-[#2A2E2E] bg-white/[0.04]",children:(0,i.jsx)(L.Z,{className:"h-3.5 w-3.5 text-white/40",strokeWidth:2,"aria-hidden":!0})}),(0,i.jsx)("p",{className:"mt-1.5 text-[11px] leading-snug text-white/55",children:"Unranked this season"})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{className:"text-[10px] font-semibold uppercase tracking-[0.12em] text-white/40",children:"This week"}),(0,i.jsxs)("div",{className:"mt-1.5 flex items-baseline gap-1 font-basement text-[26px] leading-none tracking-wide ".concat(g?b?"text-[#8FA83C]":u.U2.red:"text-white/55"),children:[g?b?(0,i.jsx)(ej,{className:"relative top-px h-4 w-4 shrink-0",strokeWidth:2.75}):(0,i.jsx)(K,{className:"relative top-px h-4 w-4 shrink-0",strokeWidth:2.75}):(0,i.jsx)(e0,{className:"relative top-px h-4 w-4 shrink-0 text-white/40",strokeWidth:2.75}),(0,i.jsx)("span",{children:g?Math.abs(Number(p)):"0"})]}),(0,i.jsx)("p",{className:"mt-1.5 text-[11px] leading-snug text-white/55",children:j})]})}),(0,i.jsxs)("div",{className:"min-w-0 pl-3.5",children:[(0,i.jsx)(E.Z,{content:S.K.currentRank,children:(0,i.jsx)("p",{className:"w-fit cursor-help text-[10px] font-semibold uppercase tracking-[0.12em] text-white/40",children:"Current Rank"})}),null!=h?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("p",{className:"mt-1.5 font-basement text-[26px] leading-none tracking-wide text-white",children:["#",h]}),null!=f?(0,i.jsxs)("p",{className:"mt-1.5 text-[11px] text-white/50",children:["Top ",f,"%"]}):null]}):(0,i.jsx)("p",{className:"mt-1.5 ".concat(x?"font-basement text-[26px] leading-none tracking-wide text-white/45":"text-[13px] font-semibold leading-snug text-white/45"),children:x?"N/A":"Unranked"})]})]}),(0,i.jsxs)("div",{className:"mt-4",children:[(0,i.jsxs)("p",{className:"inline-flex items-center gap-1.5 text-[11px] font-bold uppercase leading-none tracking-[0.14em] text-white/50",children:["Your Leaderboard",(0,i.jsx)(m.Z,{label:"Your Leaderboard",content:S.K.yourLeaderboard,compact:!0})]}),l?(0,i.jsx)(e9,{}):0===d.length?(0,i.jsx)("div",{className:"mt-2.5",children:(0,i.jsx)(e4,{icon:L.Z,title:"No scores posted yet",body:"Nearby ranks appear once this competition is scored."})}):(0,i.jsx)(to,{preview:d,ranksUnset:x})]})]}),c?(0,i.jsx)(w(),{href:c,onClick:function(){return(0,X.RO)({cta:"view_leaderboard",surface:X.hq.SIDEBAR,href:c,label:"View Leaderboard",competitionId:null!==(t=null==s?void 0:s.competition_id)&&void 0!==t?t:null})},className:"mt-3.5 ".concat(u.PY.ctaFill),children:"View Leaderboard"}):null]})}/** 62 * @license lucide-react v0.454.0 - ISC 63 * 64 * This source code is licensed under the ISC license. 65 * See the LICENSE file in the root directory of this source tree. 66 */let td=(0,s.Z)("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);var tu=n(53125),tm=n(12601),th=n(63231),tp=[{name:"Users",description:"Open individual prizes for every account",Icon:L.Z},{name:"Subscribers",description:"Exclusive subscriber rewards",Icon:td},{name:"Groups",description:"Win together with your crew",Icon:tu.Z}
66,{name:"Fantasy",description:"Awarded from your picks ranking",Icon:tm.Z},{name:"Realm",description:"Realm-wide leaderboard prizes",Icon:th.Z}];function tx(){return(0,i.jsxs)("div",{className:"rounded-2xl ".concat(u.Dj.panelPad," ").concat(u.SK.cardQuiet),children:[(0,i.jsxs)("p",{className:"inline-flex items-center gap-1.5 text-[11px] font-bold uppercase leading-none tracking-[0.14em] text-white/70",children:["Prize Categories",(0,i.jsx)(m.Z,{label:"Prize Categories",content:S.K.prizes,compact:!0})]}),(0,i.jsx)("ul",{className:"mt-3.5 divide-y divide-[#2A2E2E]",children:tp.map(function(e){var t=e.Icon;return(0,i.jsxs)("li",{className:"flex items-center gap-3 py-3 first:pt-0 last:pb-0",children:[(0,i.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border border-[#2A2E2E] bg-white/[0.04]",children:(0,i.jsx)(t,{className:"h-4 w-4 text-white/70",strokeWidth:2,"aria-hidden":!0})}),(0,i.jsxs)("div",{className:"min-w-0",children:[(0,i.jsx)("p",{className:"text-sm font-semibold leading-tight text-white",children:e.name}),(0,i.jsx)("p",{className:"mt-0.5 text-[11px] leading-snug text-white/45",children:e.description})]})]},e.name)})})]})}function tf(e){var t,n,s,l,o,u,m,h,p,x,f,v,g,b,w,j,N,k,y,_,C,S=e.summary,E=e.featured,L=e.yourCompetitions,P=e.competitions,M=e.leaderboardPreview,R=(0,ef.Z)(function(e){return!!e.user}),F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.featured,n=e.hubPreview,i=void 0===n?[]:n,s=e.yourCompetitions,l=void 0===s?[]:s,o=e.competitions,c=void 0===o?[]:o,d=(0,r.useMemo)(function(){return(0,A.S5)(t)},[t]),u=(0,r.useMemo)(function(){return el({featured:d,yourCompetitions:l,competitions:c})},[d,l,c]),m=(0,r.useMemo)(function(){return(0,A.TI)(d)},[d]),h=(0,A.LT)(null==m?void 0:m.competition_id),p=(0,a._)((0,r.useState)(h||""),2),x=p[0],f=p[1];(0,r.useEffect)(function(){u.length&&!u.some(function(e){return(0,A.LT)(e.competition_id)===x})&&f((0,A.LT)(u[0].competition_id)||h||"")},[u,x,h]);var v=u.find(function(e){return(0,A.LT)(e.competition_id)===x})||u[0]||null,g=Array.isArray(i)?i.map(function(e){return em(e,!!(null==e?void 0:e.is_you))}).filter(Boolean):[],b=function(e){var t=e.selectedComp,n=e.primary,a=e.hubRows;if(!Array.isArray(a)||0===a.length)return!1;var i=(0,A.LT)(null==t?void 0:t.competition_id),r=(0,A.LT)(null==n?void 0:n.competition_id);return null!=i&&i===r}({selectedComp:v,primary:m,hubRows:g}),w=ev(v),j=eh({scoreboardRows:w.rows,hubRows:g,useHub:b});return{options:u,selectedId:(0,A.LT)(null==v?void 0:v.competition_id)||"",setSelectedId:f,selectedComp:v,selectedIsPrimary:(0,A.LT)(null==v?void 0:v.competition_id)===h&&null!=h,data:j,isLoading:!!w.isLoading&&0===j.length}}({featured:E,hubPreview:void 0===M?[]:M,yourCompetitions:void 0===L?[]:L,competitions:void 0===P?[]:P}),T=F.options,I=F.selectedId,z=F.setSelectedId,D=F.selectedComp,Z=F.selectedIsPrimary,B=F.data,O=F.isLoading,W=(l=(t={summary:Z?S:null,featured:D,preview:Array.isArray(B)?B:[],isLoggedIn:R,isLoading:O}).summary,o=t.featured,u=t.preview,m=t.isLoggedIn,h=t.isLoading,p=(0,A.Bl)(o),f=null!==(n=null==(x=u.find(function(e){return e.is_you})||null)?void 0:x.rank)&&void 0!==n?n:null==l?void 0:l.featured_rank,g=(v=G(u))?null:f,b=v?0:null!==(s=null==x?void 0:x.rank_change)&&void 0!==s?s:null==l?void 0:l.featured_rank_change,w=o?(0,A.Lf)(o.competition_name||"Season"):"Season",j=null==g&&!v,k=(N=!v&&null!=g&&null!=b&&0!==Number(b))&&Number(b)>0,y="No movement this week",v?y="Ranks open once scores post":k?y="You moved up this week":N&&(y="You moved down this week"),_="Not on the board yet",C="Make picks in ".concat(w," to start climbing."),o?m||(_="Sign in to track your rank",C="Weekly movement and nearby competitors will appear here."):(_="No featured competition",C="Movement and nearby ranks show up when a season is pinned."),{featuredHref:p,leaderboardHref:(0,A.LG)(o),preview:u,rank:g,rankChange:b,ranksUnset:v,topPct:v?null:null==l?void 0:l.featured_rank_percentile,seasonLabel:w,isUnranked:j,hasMovement:N,movedUp:k,movementCopy:y,showUnifiedEmpty:j&&!h&&0===u.length,emptyTitle:_,emptyBody:C});return(0,i.jsxs)("aside",{className:"hidden min-w-0 flex-col gap-[15px] md:flex",children:[(0,i.jsx)(tc,(0,d._)((0,c._)({}
66,W),{options:T,selectedId:I,setSelectedId:z,selectedComp:D,leaderboardLoading:O,isLoggedIn:R})),(0,i.jsx)(eQ,{}),(0,i.jsx)(tx,{}),(0,i.jsx)(eX.Z,{})]})}var tv="/img/pf.jpg";function tg(e){var t,n,a,r,s,l=e.row,o=e.profileImage,c=e.username,d=e.flair,u=e.badgeTier,m=e.isFoundingMember,h=e.size,p=(0,ta.Z)().profilePageVisible,x=(0,ti.Z)(function(e){return e.openUserProfile}),f=(s="string"==typeof(r=(null==l?void 0:l.userSlug)||(null==l?void 0:l.user_slug)||(null==l?void 0:l.slug)||c)&&r.trim()?r.trim():null,l&&s?{slug:s,username:c||s,avatar:(0,et.Vh)(l),badgeTier:null!==(n=null!==(t=l.badgeTier)&&void 0!==t?t:l.badge_tier)&&void 0!==n?n:null,flair:null!==(a=l.flair)&&void 0!==a?a:null,isFoundingMember:"boolean"==typeof l.isFoundingMember?l.isFoundingMember:null}:null),v=(0,tt.uR)((0,et.Vh)(l)||o,tv),g="boolean"==typeof m?m:(0,tn.Oy)(d),b=(0,i.jsx)(te.Z,{avatarSize:h,flair:d,badgeTier:u,isFoundingMember:g,className:"flex-shrink-0",children:(0,i.jsx)("img",{src:v,alt:c||"User",width:h,height:h,className:"rounded-full object-cover",style:{width:h,height:h},onError:function(e){var t=e.currentTarget;t.src.endsWith(tv)||(t.src=tv)}})});return p&&f?(0,i.jsx)("button",{type:"button",onClick:function(){return x(f)},className:"flex-shrink-0 rounded-full outline-none transition hover:opacity-90 focus-visible:ring-2 focus-visible:ring-white/30","aria-label":"Open ".concat(f.username,"'s profile"),children:b}):b}function tb(e){var t,n,a=e.row,r=e.role,s=e.gapPts,l=e.emptyLabel,o="you"===r,c="ahead"===r;if(!a)return(0,i.jsx)("div",{className:"flex min-w-0 flex-1 flex-col items-center justify-center px-1.5 py-3",children:(0,i.jsx)("p",{className:"px-0.5 text-center font-basement text-[9px] uppercase leading-snug tracking-[0.14em] text-white/30",children:l})});var d=a.user||"Unknown",u=null!==(t=a.rank)&&void 0!==t?t:a.query_rank,m=er(null!==(n=a.totalScore)&&void 0!==n?n:a.query_season_points),h="border-white/15",p="",x="Chasing",f="text-white/45";return o?(h="border-[#8FA83C]/60",p="shadow-[0_0_16px_rgba(143,168,60,0.18)] ring-1 ring-[#8FA83C]/25",x="You",f="text-[#8FA83C]"):c&&(h="border-main-red/50",p="shadow-[0_0_14px_rgba(220,38,38,0.16)]",x="Target",f="text-main-red/80"),(0,i.jsxs)("div",{className:"relative flex min-w-0 flex-1 flex-col items-center px-0.5 py-1.5 text-center",children:[(0,i.jsx)("p",{className:"mb-1.5 font-basement text-[8px] uppercase tracking-[0.18em] ".concat(f),children:x}),(0,i.jsxs)("div",{className:"relative rounded-full border-2 bg-[#0C0D0E] p-0.5 ".concat(h," ").concat(p),children:[(0,i.jsx)(tg,{row:a,profileImage:a.pf,username:d,flair:a.flair,badgeTier:a.badgeTier,isFoundingMember:a.isFoundingMember,size:48}),null!=u?(0,i.jsxs)("span",{className:"absolute -bottom-1 left-1/2 z-30 -translate-x-1/2 whitespace-nowrap rounded-md border border-[#1C1F23] bg-[#0C0D0E] px-1 py-0.5 font-basement text-[8px] uppercase tracking-wide text-white shadow-md ".concat(o?"text-[#8FA83C]":""),children:["#",u]}):null]}),(0,i.jsx)("div",{className:"mt-2.5 w-full min-w-0",children:(0,i.jsx)(e7.Z,{userSlug:a.userSlug||d,username:d,avatar:a.pf,badgeTier:a.badgeTier,flair:a.flair,isFoundingMember:a.isFoundingMember,className:"line-clamp-2 font-basement text-[11px] uppercase tracking-wide transition hover:text-[#8FA83C] ".concat(o?"text-[#8FA83C]":"text-white")})}),(0,i.jsx)("p",{className:"mt-1 font-basement text-sm tabular-nums leading-none ".concat(o?"text-[#8FA83C]":"text-white"),children:m}),null==s||o?null:(0,i.jsx)("p",{className:"mt-1 font-inter text-[9px] tabular-nums leading-tight ".concat(c?"text-main-red/70":"text-white/40"),children:c?"".concat(er(s)," ahead"):"".concat(er(s)," behind")})]})}function tw(){return(0,i.jsx)("div",{className:"flex shrink-0 items-center self-center px-0.5 pt-5",children:(0,i.jsx)("span",{className:"font-basement text-[9px] uppercase tracking-[0.12em] text-main-red",children:"vs"})})}function tj(e){var t=function(e){var t=e.findIndex(function(e){return e.isTarget});if(t<0)return{ahead:null,you:null,behind:null,gapAhead:null,gapBehind:null};var n=e[t],a=t>0?e[t-1]:null,i=t<e.length-1?e[t+1]:null,r=es(n),s=es(a),l=es(i);return{ahead:a,you:n,behind:i,gapAhead:null!=r&&null!=s?Math.max(0,s-r):null,gapBehind:null!=r&&null!=l?Math.max(0,r-l):null}}(e.rows),n=t.ahead,a=t.you,r=t.behind,s=t.gapAhead,l=t.gapBehind;return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:"border-b border-[#2A2E2E] pb-2.5 text-center",children:[(0,i.jsx)("p",{className:u.PY.microLabel,children:"Fight card"}),(0,i.jsxs)("p",{className:"mt-0.5 font-basement text-[11px] uppercase tracking-[0.08em] text-white",children:["Chaser ",(0,i.jsx)("span",{className:"text-main-red",children:"vs"})," You"," ",(0,i.jsx)("span",{className:"text-main-red",children:"vs"})," Target"]})]}),(0,i.jsxs)("div",{className:"flex items-stretch justify-between gap-0.5 pt-3",children:[(0,i.jsx)(tb,{row:r,role:"behind",gapPts:l,emptyLabel:"No one behind"}),(0,i.jsx)(tw,{}
66),(0,i.jsx)(tb,{row:a,role:"you",gapPts:null,emptyLabel:"You"}),(0,i.jsx)(tw,{}),(0,i.jsx)(tb,{row:n,role:"ahead",gapPts:s,emptyLabel:"Top of board"})]})]})}function tN(e){var t=e.rows;if(!t.length)return null;var n=G(t),a=n?"grid grid-cols-[minmax(0,1fr)_3.25rem] items-center gap-x-3":"grid grid-cols-[2rem_minmax(0,1fr)_3.25rem] items-center gap-x-2.5";return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:"border-t border-[#2A2E2E] py-2 text-[10px] font-bold uppercase tracking-[0.12em] text-white/40 ".concat(a),children:[n?null:(0,i.jsx)("span",{className:"text-right",children:"#"}),(0,i.jsx)("span",{children:"Player"}),(0,i.jsx)("span",{className:"text-right",children:"Pts"})]}),(0,i.jsx)("ul",{children:t.map(function(e){var t=!!e.isTarget;return(0,i.jsxs)("li",{className:"border-b border-[#2A2E2E] py-3 ".concat(a," ").concat(t?"bg-[rgba(143,168,60,0.06)]":""),children:[n?null:(0,i.jsxs)("span",{className:"text-right font-basement text-xs tabular-nums ".concat(t?"text-[#8FA83C]":"text-white/50"),children:["#",e.rank]}),(0,i.jsxs)("div",{className:"flex min-w-0 items-center gap-2.5",children:[(0,i.jsx)(tg,{row:e,profileImage:e.pf,username:e.user,flair:e.flair,badgeTier:e.badgeTier,isFoundingMember:e.isFoundingMember,size:28}),(0,i.jsx)(e7.Z,{userSlug:e.userSlug||e.user,username:e.user,avatar:e.pf,badgeTier:e.badgeTier,flair:e.flair,isFoundingMember:e.isFoundingMember,className:"min-w-0 truncate text-sm font-medium ".concat(t?"text-[#8FA83C]":"text-white"),children:t?"".concat(e.user," (You)"):e.user})]}),(0,i.jsx)("span",{className:"text-right font-basement text-sm tabular-nums ".concat(t?"text-[#8FA83C]":"text-white/80"),children:er(e.totalScore)})]},"".concat(e.rank,"-").concat(e.user))})})]})}function tk(){(0,X.RO)({cta:"sign_in",surface:X.hq.RIVALRY,label:"Sign in"}),window.dispatchEvent(new Event("auth:required"))}function ty(e){var t,n,s,l,o,h,p,x,f,v,g,b,j,N,k,y,_,C,E,L,P,M,R,F,T,I,z,D,Z,B,O,W,U,Y,K,q,G=(l=e.featured,o=e.yourCompetitions,h=e.competitions,p=(0,ef.Z)(function(e){var t,n=null===(t=e.user)||void 0===t?void 0:t.username;return"string"==typeof n?n.trim():""}),x=(0,ef.Z)(function(e){var a,i,r;return null!==(s=null!==(n=null!==(t=null===(a=e.user)||void 0===a?void 0:a.id)&&void 0!==t?t:null===(i=e.user)||void 0===i?void 0:i.pk)&&void 0!==n?n:null===(r=e.user)||void 0===r?void 0:r.user_id)&&void 0!==s?s:null}),f=(0,r.useMemo)(function(){return(0,A.S5)(l)},[l]),v=(0,r.useMemo)(function(){return el({featured:f,yourCompetitions:o,competitions:h})},[f,o,h]),g=(0,r.useMemo)(function(){return(0,A.TI)(f)},[f]),b=(0,A.LT)(null==g?void 0:g.competition_id),N=(j=(0,a._)((0,r.useState)(b||""),2))[0],k=j[1],_=(y=(0,a._)((0,r.useState)(ei.RIVALRY),2))[0],C=y[1],(0,r.useEffect)(function(){v.length&&!v.some(function(e){return(0,A.LT)(e.competition_id)===N})&&k((0,A.LT)(v[0].competition_id)||b||"")},[v,N,b]),E=v.find(function(e){return(0,A.LT)(e.competition_id)===N})||v[0]||null,P=(L=(0,ex.a)({enabled:!!(E&&p),queryKey:[H.lP.SEASON_AROUND_USER,N,p,x],queryFn:(0,Q._)(function(){var e,t,n;return(0,ee.Jh)(this,function(a){switch(a.label){case 0:return[4,eo(E)];case 1:if(!(t=a.sent()))return[2,{target:null,rows:[],picksetMissing:!0}];return[4,(0,en.sh)({seasonId:t,realm:!1,username:p,before:3,after:3,perPage:50,userId:x})];case 2:var i,r;return[2,{target:(n=a.sent()).target,rows:(i=n.rows,r=null===(e=n.target)||void 0===e?void 0:e.user_id,(i||[]).map(function(e){var t=(0,et.Tb)(e,!1);return t?(0,d._)((0,c._)({},t),{user_id:e.user_id,isTarget:null!=r&&String(e.user_id)===String(r)}):null}).filter(Boolean)),picksetMissing:!1}]}})}),staleTime:6e4,retry:!1})).data,M=L.isLoading,R=L.isError,T=(F=(null==P?void 0:P.rows)||[]).length>0,I=!!(v.length&&!p),D=(z={optionsLength:v.length,username:p,showLoading:M,usePreview:!1,data:P,isError:R,hasRows:T}).optionsLength,Z=z.username,B=z.showLoading,O=z.usePreview,W=z.data,U=z.isError,Y=z.hasRows,K=D?Z?B?null:!O&&(null==W?void 0:W.picksetMissing)?"Leaderboard isnât available for this competition yet.":!O&&U?"Unable to load rankings right now.":(O||!W||W.target)&&(Y||B)?null:"You're not on this board yet. Make picks to get a rank.":"Sign in to see nearby rankings.":"Join a competition to see your rivalry card.",q=_===ei.RIVALRY?"Your immediate fight: chaser behind, target ahead":"Nearby ranks on this competition board",{options:v,selectedId:N,setSelectedId:k,activeView:_,setActiveView:C,rows:F,showLoading:M,statusMessage:K,needsSignIn:I,subtitle:q,leaderboardHref:(0,A.LG)(E),selectLabel:ed(E),views:ei}),V=G.options,J=G.selectedId,$=G.setSelectedId,ea=G.activeView,er=G.setActiveView,es=G.rows,ec=G.showLoading,eu=G.statusMessage,em=G.needsSignIn,eh=G.subtitle,ep=G.leaderboardHref,ev=G.selectLabel,eg=G.views,eb=null;return eb=ec?(0,i.jsx)("div",{className:"flex h-[140px] items-center justify-center",children:(0,i.jsx)("div",{className:"h-6 w-6 animate-spin rounded-full border-2 border-white/15 border-t-[#8FA83C]"})}):em?(0,i.jsxs)("div",{className:"flex flex-col items-center gap-3 px-3 py-8",children:[(0,i.jsx)("p",{className:"text-center text-sm text-white/45",children:eu}),(0,i.jsx)("button",{type:"button",onClick:tk,className:u.PY.ctaFill,children:"Sign in"})]}):eu?(0,i.jsx)("p",{className:"py-8 text-center text-sm text-white/45",children:eu}):ea===eg.RIVALRY?(0,i.jsx)("div",{className:"py-3",children:(0,i.jsx)(tj,{rows:es})}):(0,i.jsx)(tN,{rows:es}),(0,i.jsxs)("section",{children:[(0,i.jsx)("div",{className:u.PY.sectionHeader,children:(0,i.jsxs)("div",{className:"flex w-full min-w-0 items-start justify-between gap-3",children:[(0,i.jsxs)("div",{className:"min-w-0",children:[(0,i.jsx)("h2",{className:u.PY.sectionTitle,children:"The Competition"}),(0,i.jsx)("p",{className:u.PY.sectionSubtitle,children:eh})]}),(0,i.jsx)(m.Z,{label:"The Competition",content:S.K.rivalry})]})}),(0,i.jsxs)("div",{className:"rounded-xl border border-[#2A2E2E]/80 bg-[rgba(18,20,20,0.45)] backdrop-blur-[2px]",children:[V.length>0?(0,i.jsx)("div",{className:"border-b border-[#2A2E2E]/70 px-2 py-3",children:(0,i.jsx)(e3,{options:V,value:J,onChange:$})}):null,(0,i.jsxs)("div",{className:"grid grid-cols-2 gap-1.5 border-b border-[#2A2E2E]/70 p-2",children:[(0,i.jsx)("button",{type:"button",onClick:function(){return er(eg.SNAPSHOT)},className:"rounded-lg px-2 py-2 text-center text-[10px] font-bold uppercase tracking-[0.1em] transition ".concat(ea===eg.SNAPSHOT?"bg-main-green text-black":"text-white/40 hover:bg-white/[0.04] hover:text-white/70"),children:"Leaderboard Snapshot"}),(0,i.jsx)("button",{type:"button",onClick:function(){return er(eg.RIVALRY)},className:"rounded-lg px-2 py-2 text-center text-[10px] font-bold uppercase tracking-[0.1em] transition ".concat(ea===eg.RIVALRY?"bg-main-green text-black":"text-white/40 hover:bg-white/[0.04] hover:text-white/70"),children:"Rivalry"})]}),(0,i.jsx)("div",{className:"px-2",children:eb}),ep?(0,i.jsx)(w(),{href:ep,onClick:function(){return(0,X.RO)({cta:"view_leaderboard",surface:X.hq.RIVALRY,href:ep,label:"View full leaderboard"})},className:"w-full justify-center border-t border-[#2A2E2E]/70 py-3 ".concat(u.PY.ctaText),children:"View full leaderboard â"}):(0,i.jsx)("p",{className:"border-t border-[#2A2E2E]/70 py-3 text-center text-[11px] text-white/35",children:ev})]})]})}var t_=n(47555),tC=n(31121);function tS(e){return Array.isArray(null==e?void 0:e.prizes)&&e.prizes.length?e.prizes.length:Array.isArray(null==e?void 0:e.prizes_preview)&&e.prizes_preview.length?e.prizes_preview.length:0}var tA=n(74873),tE=n(81916),tL=n(54976),tP=n(78459),tM=n(97572);function tR(e){var t=e.value,n=e.half,a=e.textClass,r=e.fill,s="top"===n;return(0,i.jsx)("div",{className:"absolute overflow-hidden ".concat(void 0!==r&&r?"inset-0":"inset-x-0 ".concat(s?"top-0 h-1/2":"bottom-0 h-1/2")),children:(0,i.jsx)("span",{className:"absolute inset-x-0 flex justify-center font-basement tabular-nums leading-none ".concat(a," ").concat(s?"top-0 h-[200%] items-start":"bottom-0 h-[200%] items-end"),children:t})})}var tF={xs:{digitSize:"text-[19px]",labelSize:"text-[6px]",boxSize:"h-6 w-[30px]"},sm:{digitSize:"text-[22px]",labelSize:"text-[7px]",boxSize:"h-7 w-[34px]"},md:{digitSize:"text-[26px] sm:text-[30px]",labelSize:"text-[8px]",boxSize:"h-8 w-[40px] sm:h-9 sm:w-[44px]"}};function tT(e){var t,n=e.value,s=e.label,l=e.size,o=e.reducedMotion,c=void 0!==o&&o,d=String(Math.max(0,null!=n?n:0)).padStart(2,"0"),u=(0,a._)((0,r.useState)(d),2),m=u[0],h=u[1],p=(0,a._)((0,r.useState)(d),2),x=p[0],f=p[1],v=(0,a._)((0,r.useState)(!1),2),g=v[0],b=v[1],w=null!==(t=tF[void 0===l?"md":l])&&void 0!==t?t:tF.md,j=w.digitSize,N=w.labelSize,k=w.boxSize,y="".concat(j," ").concat("text-white [text-shadow:0_1px_8px_rgba(0,0,0,0.45),0_0_18px_rgba(0,0,0,0.28)]");return(0,r.useEffect)(function(){if(d!==m){if(c){h(d),f(d),b(!1);return}f(m),b(!0);var e=setTimeout(function(){h(d),b(!1)},640);return function(){return clearTimeout(e)}}},[d,m,c]),(0,i.jsxs)("div",{className:"relative flex min-w-0 flex-col items-center",children:[(0,i.jsx)("div",{className:"relative overflow-hidden [perspective:280px] ".concat(k),children:g?(0,i.jsxs)("div",{className:"relative h-full w-full [transform-style:preserve-3d]",children:[(0,i.jsx)(tR,{value:d,half:"top",textClass:y}),(0,i.jsx)(tR,{value:x,half:"bottom",textClass:y}),(0,i.jsx)("div",{className:"absolute inset-x-0 top-0 z-[3] h-1/2 origin-bottom animate-cc-flip-top overflow-hidden [backface-visibility:hidden]",children:(0,i.jsx)(tR,{value:x,half:"top",textClass:y,fill:!0})}),(0,i.jsx)("div",{className:"absolute inset-x-0 bottom-0 z-[2] h-1/2 origin-top animate-cc-flip-bottom overflow-hidden [backface-visibility:hidden]",children:(0,i.jsx)(tR,{value:d,half:"bottom",textClass:y,fill:!0})}
66),(0,i.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-2 top-1/2 z-[4] h-px -translate-y-1/2 bg-white/15"})]}):(0,i.jsx)("div",{className:"flex h-full items-center justify-center",children:(0,i.jsx)("span",{className:"font-basement tabular-nums leading-none ".concat(y),children:m})})}),(0,i.jsx)("span",{className:"mt-0.5 font-semibold uppercase tracking-[0.06em] ".concat(N," ").concat("text-white/70 [text-shadow:0_1px_8px_rgba(0,0,0,0.4)]"),children:s})]})}var tI={xs:"h-4",sm:"h-5",md:"h-6 sm:h-7"};function tz(e){var t,n=e.size,a=null!==(t=tI[void 0===n?"md":n])&&void 0!==t?t:tI.md;return(0,i.jsx)("span",{"aria-hidden":!0,className:"mb-2 inline-block w-px bg-gradient-to-b from-transparent via-white/20 to-transparent ".concat(a)})}function tD(e){var t=e.children,n=e.className;return(0,i.jsxs)("div",{className:"relative isolate min-w-0 ".concat(void 0===n?"":n),children:[(0,i.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute -inset-x-10 -inset-y-6 rounded-full bg-[radial-gradient(ellipse_at_center,rgba(0,0,0,0.42)_0%,rgba(0,0,0,0.16)_38%,transparent_70%)] blur-2xl"}),(0,i.jsx)("div",{className:"relative",children:t})]})}function tZ(e){if(!e)return null;var t=tP.ou.fromISO(String(e));if(!t.isValid)return null;var n=tP.ou.now();if(t<=n)return{days:0,hours:0,minutes:0};var a=t.diff(n,["days","hours","minutes"]).toObject();return{days:Math.max(0,Math.floor(a.days||0)),hours:Math.max(0,Math.floor(a.hours||0)),minutes:Math.max(0,Math.floor(a.minutes||0))}}function tB(e){var t=e.toIso,n=e.size,s=void 0===n?"md":n,l=e.className,o=void 0===l?"":l,c=(0,tM.Z)(),d=(0,a._)((0,r.useState)(function(){return tZ(t)}),2),u=d[0],m=d[1];if((0,r.useEffect)(function(){if(!t){m(null);return}var e=function(){return m(tZ(t))};e();var n=setInterval(e,15e3);return function(){return clearInterval(n)}},[t]),!u)return null;var h=[{key:"days",value:u.days,label:"Days"},{key:"hours",value:u.hours,label:"Hrs"},{key:"minutes",value:u.minutes,label:"Min"}];return(0,i.jsx)("div",{className:"flex items-end gap-1 ".concat("sm"===s?"sm:gap-1.5":"sm:gap-2"," ").concat(o),"aria-label":"".concat(u.days," days ").concat(u.hours," hours ").concat(u.minutes," minutes remaining"),"aria-live":"polite",children:h.map(function(e,t){return(0,i.jsxs)("span",{className:"contents",children:[t>0?(0,i.jsx)(tz,{size:s}):null,(0,i.jsx)(tT,{value:e.value,label:e.label,size:s,reducedMotion:c})]},e.key)})})}function tO(e){var t=String(null!=e?e:"").trim();return t?t.endsWith("+")?{amount:t.slice(0,-1),plus:"+"}:{amount:t,plus:""}:{amount:"",plus:""}}function tW(e){var t=e.href,n=void 0===t?null:t,a=e.standard,r=void 0===a?null:a,s=e.frPlus,l=void 0===s?null:s,o=e.hasBonus,c=e.prizeCountLabel,d=void 0===c?null:c,u=e.compact,m=void 0!==u&&u,h=e.competitionId,p=void 0===h?null:h,x=e.competitionKind,f=void 0===x?null:x,v="font-basement leading-none tracking-wide tabular-nums drop-shadow-[0_1px_2px_rgba(0,0,0,0.85)] ".concat(m?"text-[14px] md:text-[16px]":"text-[18px] md:text-[20px]"),g="".concat(v," text-main-green"),b="mt-1 font-basement leading-none tracking-wide text-white drop-shadow-[0_1px_2px_rgba(0,0,0,0.85)] ".concat(m?"text-[16px] md:text-[18px]":"text-[22px] md:text-[24px]"),j="text-left text-[9px] font-bold uppercase leading-none tracking-[0.08em]",N=tO(l),k=tO(r),y="grid grid-cols-[auto_max-content_auto] items-center gap-x-1",_=m?"px-1.5":"px-2",C=m?"py-1":"py-1.5",S=(0,i.jsxs)(i.Fragment,{children:[void 0!==o&&o&&l&&r?(0,i.jsxs)("div",{className:"ml-auto inline-flex flex-col items-stretch ".concat(m?"mt-1.5 gap-1.5":"mt-2 gap-2"),children:[(0,i.jsxs)("div",{className:"".concat(y," rounded-md border border-main-green/30 bg-main-green/[0.08] ").concat(_," ").concat(C," ").concat(m?"":"md:border-main-green/25 md:bg-main-green/[0.07]"),children:[(0,i.jsx)("span",{className:"".concat(j," text-main-green"),children:"FR+"}),(0,i.jsx)("span",{className:"".concat(g," text-right"),children:N.amount}),(0,i.jsx)("span",{className:g,children:N.plus})]}),(0,i.jsxs)("div",{className:"".concat(y," ").concat(_),children:[(0,i.jsx)("span",{className:"".concat(j," text-white/40"),children:"Free"}),(0,i.jsx)("span",{className:"".concat(v," text-right text-white/70"),children:k.amount}),(0,i.jsx)("span",{className:"".concat(v," text-white/70"),children:k.plus})]})]}):l||r?(0,i.jsx)("p",{className:b,children:l||r}):null,d&&!m?(0,i.jsx)("p",{className:l||r?"mt-1.5 text-[11px] font-semibold uppercase tracking-wide text-white/70":b,children:d}):null]});return(0,i.jsx)("div",{className:"relative z-20 shrink-0 px-0.5 py-0.5 text-right sm:px-1",children:n?(0,i.jsx)(w(),{href:n,onClick:function(){return(0,X.RO)({cta:"view_prizes",surface:X.hq.FEATURED_HERO,href:n,label:"Prizes",competitionId:p,c
66ompetitionKind:f})},className:"block transition hover:opacity-90",children:S}):(0,i.jsx)("div",{className:"text-right",children:S})})}function tU(e){var t,n,a,r,s,l,o,c,d=e.fighters,u=e.compact,m=void 0!==u&&u,h=e.wide,p=void 0!==h&&h,x=e.paired,f=void 0!==x&&x,v=e.season,g=void 0!==v&&v,b=e.flankMark;return d?(void 0!==b&&b||g?(t="w-[48%] sm:w-[44%] md:w-[42%]",n="max-w-[44%] md:max-w-[42%]",a="",r="",s="h-[88%] sm:h-[90%]",l=g?"left-1/2 -translate-x-1/2 md:left-[55%] md:-translate-x-1/2":"left-1/2 -translate-x-1/2",o="justify-between",c="",p&&!g?(t="w-[46%] sm:w-[42%] md:w-[36%] max-w-[540px]",n="max-w-[44%] md:max-w-[42%]",s="h-[86%] sm:h-[90%] md:h-[94%]",r="translate-x-2 sm:translate-x-3 md:translate-x-4"):p?(t="w-[38%] max-w-[380px]",n="max-w-[42%]",s="h-[72%] sm:h-[76%]",r="translate-x-2 sm:translate-x-3"):f&&m?(t="w-[68%] sm:w-[64%]",n="max-w-[46%]",s="h-[84%] sm:h-[88%] md:h-[90%]"):f?(t="w-[52%] sm:w-[48%] md:w-[46%]",n="max-w-[40%] md:max-w-[38%]",s="h-[78%] sm:h-[82%] md:h-[86%]"):m&&(t="w-[52%] sm:w-[48%] max-w-[300px]",n="max-w-[40%]",s="h-[72%] sm:h-[76%]")):(t="w-[42%] sm:w-[40%] md:w-[48%]",n="max-w-[50%] md:max-w-[54%]",a="-ml-4 sm:-ml-5 md:-ml-6",r="",s="h-[78%] sm:h-[82%] md:h-[90%]",l="left-0",o="justify-start",c="[mask-image:linear-gradient(to_right,black_0%,black_62%,transparent_100%)]",p?(t="w-[34%] max-w-[360px]",n="max-w-[46%]",a="-ml-3 sm:-ml-4",r="translate-x-2 sm:translate-x-3",s="h-[72%] sm:h-[76%]"):f&&m?(t="w-[40%] sm:w-[38%]",n="max-w-[48%]",a="-ml-2 sm:-ml-3",s="h-[78%] sm:h-[82%]"):f?(t="w-[40%] sm:w-[38%]",n="max-w-[48%]",a="-ml-4 sm:-ml-5",s="h-[70%] sm:h-[74%]"):m&&(t="w-[44%] sm:w-[42%]",n="max-w-[48%]",a="-ml-3 sm:-ml-4",s="h-[70%] sm:h-[74%]")),(0,i.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute bottom-0 z-[3] overflow-hidden ".concat(c," ").concat(l," ").concat(s," ").concat(t),children:(0,i.jsxs)("div",{className:"absolute inset-x-0 bottom-0 flex h-full w-full origin-bottom scale-[0.9] items-end ".concat(o),children:[d.leftSrc?(0,i.jsx)("img",{src:d.leftSrc,alt:d.leftAlt,className:"relative z-10 h-full w-auto ".concat(n," object-contain object-bottom drop-shadow-[0_8px_24px_rgba(0,0,0,0.55)]")}):null,d.rightSrc?(0,i.jsx)("img",{src:d.rightSrc,alt:d.rightAlt,className:"relative z-[5] h-full w-auto ".concat(n," origin-bottom -scale-x-100 object-contain object-bottom drop-shadow-[0_8px_24px_rgba(0,0,0,0.55)] ").concat(a," ").concat(r||"")}):null]})})):null}function tY(e){var t=e.src,n=e.isSeason,a=e.compact,r=void 0!==a&&a,s=e.withFighters,l=void 0!==s&&s,o=e.centerStage,c="justify-center";return(n||void 0!==o&&o)&&l?c=n?"justify-center md:translate-x-[5%]":"justify-center":n&&(c="justify-end pl-[40%] pr-[6%] md:pl-[44%] md:pr-[8%]"),(0,i.jsx)("div",{className:"pointer-events-none absolute inset-0 z-0 flex items-center overflow-hidden ".concat(c),children:(0,i.jsx)("img",{src:t,alt:"",className:"w-auto object-contain mix-blend-screen [mask-image:radial-gradient(ellipse_at_center,black_48%,transparent_76%)] ".concat(l?r?"h-[38%] max-h-[112px] md:h-[42%] md:max-h-[128px]":"h-[52%] max-h-[180px] md:h-[56%] md:max-h-[190px]":r?"h-[62%] max-h-[200px]":"h-[68%] max-h-[230px]"," ").concat(l?"opacity-62":"opacity-48")})})}function tK(e){var t=e.label,n=e.value,a=e.hint,r=e.size,s=void 0===r?"md":r,l=e.align;if(null==n||""===n)return null;var o="hero"===s||"hero-sm"===s,c="end"===(void 0===l?"start":l);return(0,i.jsxs)("div",{className:"min-w-0 ".concat(o?"flex shrink-0 flex-col":""," ").concat(c?"text-right":""),children:[(0,i.jsx)(E.Z,{content:void 0===a?null:a,children:(0,i.jsx)("p",{className:"mb-1 cursor-help text-[10px] font-semibold uppercase tracking-[0.14em] text-white/40 ".concat(c?"ml-auto w-fit":"w-fit"),children:t})}),(0,i.jsx)("p",{className:"font-basement tabular-nums leading-none tracking-wide text-white ".concat(o?"hero-sm"===s?"text-[22px]":"text-[26px] sm:text-[30px]":"text-[18px] sm:text-[20px]"),children:n})]})}function tq(e){var t=e.finished,n=e.needsPicks,a=e.actionHref,r=e.actionLabel,s=e.isSeason,l=e.heroTheme,o=e.compact,c=e.className,d=void 0===c?"":c,u=e.competitionId,m=void 0===u?null:u;if(!a&&!(n&&!t))return null;var h="group/season-cta relative inline-flex shrink-0 items-center justify-center gap-1.5 overflow-hidden rounded-lg text-[12px] font-bold uppercase tracking-wide transition hover:brightness-110 ".concat(void 0!==o&&o?"px-3 py-2.5 text-[11px]":"px-4 py-3"," ").concat(s?"".concat(l.cta," animate-season-pulse"):"".concat(l.cta," ").concat(!t&&n?"animate-picks-pulse":"")," ").concat(d),p=s?(0,i.jsx)("span",{"aria-hidden":!0,
66className:"pointer-events-none absolute inset-0 overflow-hidden",children:(0,i.jsx)("span",{className:"absolute inset-y-0 left-0 w-1/2 animate-season-cta-shine bg-gradient-to-r from-transparent via-white/50 to-transparent"})}):null,x=s?"season":"monthly",f=function(e,t){return(0,X.RO)({cta:e,surface:X.hq.FEATURED_HERO,href:t,label:r,competitionId:m,competitionKind:x})};return!t&&n?(0,i.jsxs)("a",{href:V,onClick:function(e){f("make_picks",V),J(e)},className:h,children:[p,(0,i.jsxs)("span",{className:"relative z-[1] inline-flex items-center gap-1.5",children:[r,(0,i.jsx)(K,{className:"h-3.5 w-3.5 transition group-hover/season-cta:translate-y-0.5",strokeWidth:2.75})]})]}):a?(0,i.jsxs)(w(),{href:a,onClick:function(){return f(t?"see_results":"open_competition",a)},className:h,children:[p,(0,i.jsxs)("span",{className:"relative z-[1] inline-flex items-center gap-1.5",children:[r,(0,i.jsx)(q.Z,{className:"h-3.5 w-3.5",strokeWidth:2.75})]})]}):null}function tH(e){var t=e.label,n=e.needsPicks,a=e.compact,r=void 0!==a&&a,s=e.align,l=e.className,o=void 0===l?"":l,c=e.accentClass,d=void 0===c?"text-main-green":c;if(!t)return null;var u="end"===(void 0===s?"end":s);return(0,i.jsxs)("div",{className:"shrink-0 ".concat(u?"text-right":"text-left"," ").concat(o),children:[(0,i.jsx)(E.Z,{content:S.K.yourStatus,children:(0,i.jsx)("p",{className:"w-fit cursor-help text-[10px] font-bold uppercase tracking-[0.14em] ".concat(u?"ml-auto":""," ").concat(n?d:"text-white/75"),children:"Picks"})}),(0,i.jsx)("p",{className:"mt-0.5 font-basement tabular-nums leading-none drop-shadow-[0_1px_2px_rgba(0,0,0,0.85)] ".concat(d," ").concat(r?"text-[18px] md:text-[20px]":"text-[20px] md:text-[22px]"),children:t})]})}function tG(e){var t=e.model,n=e.compact,a=e.wide,r=e.wideMonthly,s=e.centerStage,l=e.showFighterArt,o=e.showMonthlyRank,c=t.isSeason,d=t.heroTheme,u=t.rank,m=t.picksLabel,h=t.needsPicks,p=t.closesAt,x=t.actionHref,f=t.actionLabel,v=t.fieldLabel,g=t.eventCount,b=t.finished,w=t.competitionId;return(0,i.jsxs)("div",{className:"relative z-20 mt-auto flex items-end justify-between gap-3 md:gap-4 ".concat(n?"flex-nowrap":"flex-wrap"),children:[(0,i.jsxs)("div",{className:"flex min-w-0 flex-1 items-end gap-y-3 ".concat(!s&&l?"pl-[38%] sm:pl-[36%] md:pl-[34%]":""," ").concat(n?"gap-x-3 sm:gap-x-4":"flex-wrap gap-x-6 md:gap-x-8"),children:[s&&p?(0,i.jsxs)(tD,{children:[(0,i.jsx)(E.Z,{content:S.K.closes,children:(0,i.jsx)("p",{className:"mb-1.5 w-fit cursor-help font-semibold uppercase tracking-[0.14em] text-white/60 [text-shadow:0_1px_8px_rgba(0,0,0,0.4)] ".concat(n?"mb-1 text-[9px]":"text-[10px]"),children:"Closes"})}),(0,i.jsx)("div",{className:"flex items-end ".concat(n?"gap-1":"gap-1 sm:gap-2"),children:(0,i.jsx)(tB,{toIso:p,size:n?"sm":"md"})})]}):null,o&&!s?(0,i.jsx)(tK,{label:"Rank",hint:S.K.rank,value:"#".concat(u),size:r?n?"hero-sm":"hero":"md"}):null]}),r&&(g>0||v)||x||m||s&&!n&&o?(0,i.jsxs)("div",{className:"inline-flex shrink-0 flex-col items-end gap-2",children:[r&&(g>0||v)?(0,i.jsxs)("div",{className:"flex items-end justify-between gap-5 px-0.5",children:[g>0?(0,i.jsx)(tK,{label:"Events",hint:S.K.eventsCount,value:String(g),size:n?"hero-sm":"hero",align:"end"}):null,v?(0,i.jsx)(tK,{label:"Players",hint:S.K.players,value:v,size:n?"hero-sm":"hero",align:"end"}):null]}):null,a?(0,i.jsxs)("div",{className:"flex items-end justify-end gap-3",children:[o?(0,i.jsx)(tK,{label:"Rank",hint:S.K.rank,value:"#".concat(u),size:"md",align:"end"}):null,m?(0,i.jsx)(tH,{label:m,needsPicks:h,compact:n,accentClass:d.picks}):null,x||!b&&h?(0,i.jsx)(tq,{finished:b,needsPicks:h,actionHref:x,actionLabel:f,isSeason:c,heroTheme:d,compact:n,competitionId:w,className:"min-w-[9.75rem]"}):null]}):(0,i.jsxs)(i.Fragment,{children:[!n&&(m||s&&o)?(0,i.jsxs)("div",{className:"flex items-end justify-end gap-3",children:[s&&o?(0,i.jsx)(tK,{label:"Rank",hint:S.K.rank,value:"#".concat(u),size:"md",align:"end"}):null,m?(0,i.jsx)(tH,{label:m,needsPicks:h,compact:n,accentClass:d.picks}):null]}):null,x||!b&&h?(0,i.jsx)(tq,{finished:b,needsPicks:h,actionHref:x,actionLabel:f,isSeason:c,heroTheme:d,compact:n,competitionId:w,className:n?"min-w-0 px-2.5 py-2 text-[10px]":"w-full min-w-[9.75rem]"}):null]})]}):null]})}function tV(e){var t=e.model,n=e.pinnedFighters,a=e.compact,r=e.wide,s=e.pairedLayout,l=e.kindColor,o=e.competitionKind,c=e.showFighterArt,d=e.wideMonthly,m=e.centerStage,h=e.showMonthlyRank,p=t.isSeason,x=t.heroTheme,f=t.kindLabel,v=t.kindTooltipKey,g=t.markSr
66c,b=t.image,w=t.prizeSplit,j=t.prizeCountLabel,N=t.hasPrizes,k=t.closesAt,y=t.title,_=t.currentEventName,C=t.currentEventLocation,A=t.prizesHref,L=t.startsLabel,P=t.endsLabel,M=t.competitionId;return(0,i.jsxs)("section",{className:"group relative flex h-full w-full flex-col overflow-hidden rounded-2xl border bg-[#080909] shadow-none transition duration-300 ".concat(s?"min-h-[290px] md:min-h-[330px]":a?"min-h-[250px] md:min-h-[291px]":r?"min-h-[291px] md:min-h-[354px]":"min-h-[275px] md:min-h-[320px]"," ").concat(x.border),children:[(0,i.jsx)("div",{className:"absolute inset-0 bg-[#080909]"}),(0,i.jsx)("img",{src:tC.Qm,alt:"",className:"opacity-38 absolute inset-0 h-full w-full object-cover object-center"}),(0,i.jsx)("div",{className:"pointer-events-none absolute inset-0 ".concat(m?"bg-[radial-gradient(ellipse_at_48%_44%,rgba(168,188,74,0.18)_0%,transparent_58%)]":"bg-[radial-gradient(ellipse_at_48%_44%,rgba(107,127,36,0.05)_0%,transparent_58%)]")}),(0,i.jsx)(tY,{src:g,isSeason:p,compact:a,withFighters:c,centerStage:m}),b&&!c?(0,i.jsx)("img",{src:b,alt:"",className:"opacity-28 group-hover:opacity-36 absolute inset-0 h-full w-full object-cover object-center mix-blend-lighten transition duration-700 group-hover:scale-[1.03]"}):null,c?(0,i.jsx)(tU,{fighters:n,compact:a,wide:r,paired:s,season:p,flankMark:m}):null,m?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"pointer-events-none absolute inset-0 z-[2] bg-[linear-gradient(90deg,rgba(8,9,9,0.9)_0%,rgba(8,9,9,0.4)_16%,rgba(8,9,9,0.08)_26%,transparent_34%,transparent_66%,rgba(8,9,9,0.1)_80%,rgba(8,9,9,0.42)_100%)]"}),(0,i.jsx)("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 z-[2] bg-gradient-to-t to-transparent ".concat(a?"h-[46%] from-[#080909] via-[#080909]/60":"from-[#080909]/78 via-[#080909]/22 h-[38%]")}),(0,i.jsx)("div",{className:"pointer-events-none absolute inset-x-0 top-0 z-[2] h-[22%] bg-gradient-to-b from-[#080909]/40 to-transparent"})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"absolute inset-0 z-[2] bg-[linear-gradient(100deg,rgba(8,9,9,0.55)_0%,rgba(8,9,9,0.28)_28%,rgba(8,9,9,0.12)_52%,rgba(8,9,9,0.55)_78%,rgba(8,9,9,0.82)_100%)]"}),(0,i.jsx)("div",{className:"to-[#080909]/42 absolute inset-0 z-[2] bg-gradient-to-t via-transparent ".concat(a?"from-[#080909]/88 via-[#080909]/35":"from-[#080909]/72")})]}),(0,i.jsxs)("div",{className:"relative z-10 flex min-h-0 flex-1 flex-col justify-between ".concat(a?"gap-3 ".concat(u.Dj.panelPad):"gap-5 ".concat(u.Dj.panelPad)),children:[(0,i.jsxs)("div",{className:"flex items-start justify-between gap-3 md:gap-4",children:[(0,i.jsxs)("div",{className:"relative z-20 min-w-0 flex-1 pr-2 ".concat(c?m?r?"md:max-w-[48%]":a?"max-w-[78%] md:max-w-[72%]":"md:max-w-[52%]":a?"max-w-[62%] md:max-w-[58%]":r?"md:max-w-[55%]":"md:max-w-[58%]":""),children:[(0,i.jsx)(E.Z,{content:S.K[v],children:(0,i.jsxs)("p",{className:"inline-flex cursor-help items-center gap-1.5 font-bold uppercase tracking-[0.16em] ".concat(a?"text-[11px] md:text-[12px]":"text-[13px] md:text-[14px]"," ").concat(l),children:[(0,i.jsx)(tE.Z,{className:a?"h-3.5 w-3.5 shrink-0":"h-4 w-4 shrink-0",strokeWidth:2.4}),f]})}),(0,i.jsx)("h2",{className:"mt-1.5 break-words font-basement leading-[1.08] tracking-wide text-white ".concat(a?"line-clamp-2 text-[18px] md:text-[22px]":"text-[28px] md:text-[34px] xl:text-[38px]"),title:y,children:y}),c&&_?(0,i.jsx)("p",{className:"mt-1.5 break-words font-semibold uppercase tracking-[0.12em] text-white/45 ".concat(a?"text-[10px] leading-snug":"mt-2 text-[11px] leading-snug"),children:_}):null,d?(0,i.jsxs)("div",{className:"mt-3 space-y-2",children:[C?(0,i.jsxs)("p",{className:"flex items-start gap-1.5 text-[12px] leading-snug text-white/55",children:[(0,i.jsx)(tL.Z,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-white/35",strokeWidth:2.25}),(0,i.jsx)("span",{children:C})]}):null,L||P?(0,i.jsxs)("p",{className:"text-[10px] font-medium uppercase tracking-[0.12em] text-white/40",children:[L?"Starts ".concat(L):null,L&&P?(0,i.jsx)("span",{className:"px-1.5 text-white/20",children:"\xb7"}):null,P?"Closes ".concat(P):null]}):null]}):null]}),(0,i.jsxs)("div",{className:"relative z-20 flex shrink-0 flex-col items-end gap-2.5",children:[N?(0,i.jsx)(tW,{href:A,standard:w.standard,frPlus:w.frPlus,hasBonus:w.hasBonus,prizeCountLabel:j,compact:a,competitionId:M,competitionKind:o}):null,!m&&k?(0,i.jsxs)(tD,{className:"text-right",children:[(0,i.jsx)(E.Z,{content:S.K.closes,children:(0,i.jsx)("p",{className:"mb-1.5 ml-auto w-fit cursor-help text-[10px] font-semibold uppercase tracking-[0.14em] text-white/60 [text-shadow:0_1px_8px_rgba(0,0,0,0.4)]",children:"Closes"})}),(0,i.jsx)(tB,{toIso:k,size:a?"sm":"md"})]}):null]})]}),(0,i.jsx)(tG,{model:t,pinnedFighters:n,compact:a,wide:r,pairedLayout:s,kindColor:l,competitionKind:o,showFighterArt:c,wideMonthly:d,centerStage:m,showMonthlyRank:h})]})]})}function tJ(e){var t=e.model,n=e.pinnedFighters,a=e.wide,r=e.pairedLayout,s=e.kindColor,l=e.competitionKind,o=e.showFighterArt,c=e.centerStage,d=t.isSeason,m=t.heroTheme,h=t.kindLabel,p=t.kindTooltipKey,x=t.markSr
66c,f=t.image,v=t.prizeSplit,g=t.prizeCountLabel,b=t.hasPrizes,w=t.picksLabel,j=t.needsPicks,N=t.closesAt,k=t.title,y=t.currentEventName,_=t.actionHref,C=t.actionLabel,A=t.prizesHref,L=t.finished,P=t.competitionId;return(0,i.jsxs)("section",{className:"relative overflow-hidden ".concat(u.PY.cardDeep),children:[(0,i.jsx)("div",{className:"absolute inset-0 bg-[#080909]"}),(0,i.jsx)("img",{src:tC.Qm,alt:"",className:"absolute inset-0 h-full w-full object-cover object-center opacity-35"}),(0,i.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 ".concat(c?"bg-[radial-gradient(ellipse_at_50%_42%,rgba(168,188,74,0.16)_0%,transparent_58%)]":"bg-[radial-gradient(ellipse_at_50%_42%,rgba(107,127,36,0.05)_0%,transparent_58%)]")}),(0,i.jsx)(tY,{src:x,isSeason:d,compact:!0,withFighters:o,centerStage:c}),o?(0,i.jsx)(tU,{fighters:n,compact:!0,wide:a,paired:r,season:d,flankMark:c}):f?(0,i.jsx)("img",{src:f,alt:"",className:"absolute inset-0 h-full w-full object-cover object-center opacity-30 mix-blend-lighten"}):null,c?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"pointer-events-none absolute inset-0 z-[2] bg-[linear-gradient(90deg,rgba(8,9,9,0.9)_0%,rgba(8,9,9,0.4)_16%,rgba(8,9,9,0.08)_26%,transparent_34%,transparent_66%,rgba(8,9,9,0.1)_80%,rgba(8,9,9,0.42)_100%)]"}),(0,i.jsx)("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 z-[2] h-[36%] bg-gradient-to-t from-[#080909]/75 via-[#080909]/20 to-transparent"}),(0,i.jsx)("div",{className:"pointer-events-none absolute inset-x-0 top-0 z-[2] h-[20%] bg-gradient-to-b from-[#080909]/35 to-transparent"})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"absolute inset-0 z-[2] bg-[linear-gradient(100deg,rgba(8,9,9,0.55)_0%,rgba(8,9,9,0.28)_32%,rgba(8,9,9,0.18)_58%,rgba(8,9,9,0.55)_82%,rgba(8,9,9,0.78)_100%)]"}),(0,i.jsx)("div",{className:"absolute inset-0 z-[2] bg-gradient-to-t from-[#080909]/70 via-transparent to-[#080909]/40"})]}),(0,i.jsxs)("div",{className:"relative z-10 flex min-h-[229px] flex-col justify-between gap-4 ".concat(u.PY.cardPad),children:[(0,i.jsxs)("div",{className:"min-w-0",children:[(0,i.jsx)(E.Z,{content:S.K[p],children:(0,i.jsx)("p",{className:"w-fit cursor-help text-[12px] font-bold uppercase tracking-[0.14em] ".concat(s),children:h})}),(0,i.jsx)("h2",{className:"mt-1.5 font-basement text-[19px] leading-[1.05] tracking-wide text-white",title:k,children:k}),y?(0,i.jsx)("p",{className:"mt-1.5 line-clamp-2 text-[11px] font-semibold uppercase tracking-[0.1em] text-white/45",children:y}):null]}),(0,i.jsxs)("div",{className:"flex items-end gap-3 ".concat(c||N?"justify-between":"justify-end"),children:[N?(0,i.jsxs)(tD,{children:[(0,i.jsx)("p",{className:"mb-1 ".concat(u.PY.microLabel," text-white/70"),children:"Closes"}),(0,i.jsx)(tB,{toIso:N,size:"xs"})]}):c?(0,i.jsx)("span",{}):null,_||w||!d&&b?(0,i.jsxs)("div",{className:"flex shrink-0 flex-col items-end gap-2",children:[!d&&b?(0,i.jsx)(tW,{href:A,standard:v.standard,frPlus:v.frPlus,hasBonus:v.hasBonus,prizeCountLabel:g,compact:!0,competitionId:P,competitionKind:l}):null,_||w?(0,i.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,i.jsx)(tH,{label:w,needsPicks:j,compact:!0,accentClass:m.picks}),_||!L&&j?(0,i.jsx)(tq,{finished:L,needsPicks:j,actionHref:_,actionLabel:C,isSeason:d,heroTheme:m,compact:!0,competitionId:P}):null]}):null]}):null]})]})]})}function t$(e){var t,n,a,s,l,o,d,m,h,p=e.featured,x=e.yourRow,f=e.compact,v=void 0!==f&&f,g=e.wide,b=void 0!==g&&g,w=e.pairedLayout,j=e.upcomingEvents,N=e.mobileLayout,k=(n=(t={featured:p,yourRow:void 0===x?null:x,upcomingEvents:void 0===j?[]:j}).featured,s=void 0===(a=t.yourRow)?null:a,o=void 0===(l=t.upcomingEvents)?[]:l,d=(0,r.useMemo)(function(){return(0,A.NY)(n,o)},[n,o]),m=(0,r.useMemo)(function(){return(0,A.lf)(d)},[d]),h=(0,t_.Z)(m),{model:(0,r.useMemo)(function(){return function(e){var t,n,a,i,r=e.featured,s=e.yourRow,l=void 0===s?null:s,o=e.currentEvent,c=void 0===o?null:o,d=e.events,m=void 0===d?[]:d;if(!r)return null;var h="season"===(0,A.z$)(r),p=(0,A.JA)(r),x=(0,A.JA)(l),f=p.standard||p.frPlus||p.count>0?p:x,v=f.frPlus||f.standard||(0,A.Zv)(r)||(0,A.Zv)(l),g=f.count>0?f.count:tS(r)||tS(l),b=g>0?"".concat(g," prize").concat(1===g?"":"s"):null,w=(0,A.Cn)(m),j=(0,A.IY)(r),N=(0,A.Bl)(r),k=(0,A.nk)(c),y=(0,A.vc)(r)||k||null,_=Number(null==r?void 0:r.participant_count);return{isSeason:h,heroTheme:h?u.Aq.season:u.Aq.monthly,kindLabel:h?"Season":"Monthly",kindTooltipKey:h?"quarterKind":"monthlyKind",markSr
66c:(0,tC.d3)(r,h),image:(0,tC.uf)(r),prizeSplit:f,prizePool:v,prizeCountLabel:b,hasPrizes:!!(v||b),rank:null!==(a=null!==(n=null!==(t=null==l?void 0:l.rank)&&void 0!==t?t:null==r?void 0:r.user_rank)&&void 0!==n?n:null==r?void 0:r.rank)&&void 0!==a?a:null,picks:w,picksLabel:w.total>0?"".concat(w.completed,"/").concat(w.total):null,needsPicks:w.total>0&&w.completed<w.total,closesAt:(null==r?void 0:r.next_deadline)||null,closesLabel:(0,A.Lz)(null==r?void 0:r.next_deadline)||null,title:(0,A.hG)(r.competition_name||(null==l?void 0:l.competition_name)||"Competition"),currentEventName:(null==c?void 0:c.event_name)||null,currentEventLocation:(null==c?void 0:c.event_location)||null,actionHref:y,actionLabel:(0,A.kF)(j),finished:j,prizesHref:N?"".concat(N,"?tab=prizes"):null,startsLabel:(0,A.QS)(null==r?void 0:r.start_date),endsLabel:(0,A.QS)(null==r?void 0:r.end_date),fieldLabel:Number.isFinite(_)&&_>0?(0,A.Dn)(_):null,eventCount:m.length,competitionId:null!==(i=null==r?void 0:r.competition_id)&&void 0!==i?i:null}}({featured:n,yourRow:s,currentEvent:m,events:d})},[n,s,m,d]),currentEvent:m,pinnedFighters:h}),y=k.model,_=k.pinnedFighters,C=(0,tA.Z)(),S=C.isReady,E=C.sidebarCollapsed;if(!y)return null;var L=y.isSeason,P=y.heroTheme,M=y.rank,R=!!_,F=L||b||R,T={model:y,pinnedFighters:_,compact:v,wide:b,pairedLayout:void 0!==w&&w,kindColor:P.kind,competitionKind:L?"season":"monthly",showFighterArt:R,wideMonthly:b&&!L,centerStage:F,showMonthlyRank:null!=M&&!(v&&!L)&&(L||!S||!E)};return void 0!==N&&N?(0,i.jsx)(tJ,(0,c._)({},T)):(0,i.jsx)(tV,(0,c._)({},T))}function tX(e,t,n){var a=0,i=1/0;return e.forEach(function(e,r){if(e){var s=e.getBoundingClientRect(),l=Math.pow(t-(s.left+s.width/2),2)+Math.pow(n-(s.top+s.height/2),2);l<i&&(i=l,a=r)}}),a}function tQ(e){var t=e.items,n=e.getKey,s=e.onReorder,l=e.disabled,o=e.className,c=void 0===o?"":o,d=e.itemClassName,u=e.children,m=(0,r.useRef)(null),h=(0,r.useRef)([]),p=(0,r.useRef)(null),x=(0,r.useRef)(t),f=(0,r.useRef)(s),v=(0,a._)((0,r.useState)(null),2),g=v[0],b=v[1],w=(0,a._)((0,r.useState)(null),2),j=w[0],N=w[1];x.current=t,f.current=s;var k=function(e,t){return"function"==typeof d?d(e,t)||"":d||""},y=(0,r.useCallback)(function(e,t){if(e!==t&&null!=e&&null!=t){var n=x.current.slice(),i=(0,a._)(n.splice(e,1),1)[0];n.splice(t,0,i),f.current(n)}},[]),_=(0,r.useCallback)(function(){p.current=null,b(null),N(null)},[]),C=(0,r.useCallback)(function(e){null!=p.current&&(e.preventDefault(),N(tX(h.current,e.clientX,e.clientY)))},[]),S=(0,r.useCallback)(function(e){if(null!=p.current){var t=p.current,n=tX(h.current,e.clientX,e.clientY);window.removeEventListener("pointermove",C),window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",S),_(),y(t,n)}},[_,C,y]),A=(0,r.useCallback)(function(){window.removeEventListener("pointermove",C),window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",S)},[S,C]);(0,r.useEffect)(function(){return function(){A(),p.current=null}},[A]);var E=function(e,t){null==p.current&&(t.preventDefault(),t.stopPropagation(),p.current=e,b(e),N(e),window.addEventListener("pointermove",C,{passive:!1}),window.addEventListener("pointerup",S),window.addEventListener("pointercancel",S))};return l?(0,i.jsx)("div",{className:c,children:t.map(function(e,t){return(0,i.jsx)("div",{className:k(e,t),children:u(e,{index:t,dragging:!1})},n(e))})}):(0,i.jsx)("div",{className:c,children:t.map(function(e,t){var a=g===t||m.current===t,r=j===t&&g!==t;return(0,i.jsxs)("div",{ref:function(e){h.current[t]=e},draggable:!0,onDragStart:function(e){m.current=t,b(t);var n=e.dataTransfer;if(n){n.effectAllowed="move";try{n.setData("text/plain",String(t))}catch(e){}}},onDragEnd:function(){m.current=null,_()},onDragOver:function(e){e.preventDefault();var n=e.dataTransfer;n&&(n.dropEffect="move"),j!==t&&N(t)},onDragLeave:function(){j===t&&N(null)},onDrop:function(e){e.preventDefault();var n=m.current;m.current=null,N(null),b(null),y(n,t)},className:"relative ".concat(k(e,t)," ").concat(r?"ring-2 ring-white/30":""," ").concat(a?"opacity-80":""),children:[(0,i.jsx)("button",{type:"button","aria-label":"Drag to reorder item ".concat(t+1),className:"absolute left-2 top-9 z
66-20 cursor-grab touch-none rounded bg-black/70 px-1.5 py-0.5 text-[10px] font-bold uppercase tracking-wide text-white/70 active:cursor-grabbing md:top-2",onPointerDown:function(e){return E(t,e)},children:"Drag"}),u(e,{index:t,dragging:a})]},n(e))})})}var t0=n(14772);function t1(e){var t=e.items,n=e.yourById,a=e.events,r=e.canReorder,s=void 0!==r&&r,l=e.saving,o=e.mobileLayout,c=void 0!==o&&o,d=e.onReorder;return(null==t?void 0:t.length)?(0,i.jsxs)("section",{children:[c?(0,i.jsx)("div",{className:u.PY.sectionHeader,children:(0,i.jsx)("h2",{className:u.PY.sectionTitle,children:"Featured"})}):null,s?(0,i.jsxs)("p",{className:"mb-3 text-[11px] font-medium uppercase tracking-wide text-white/50",children:[(0,i.jsx)("span",{className:"md:hidden",children:"Press and drag the handle to reorder"}),(0,i.jsx)("span",{className:"hidden md:inline",children:"Drag cards to reorder"})]}):null,(0,i.jsx)(tQ,{items:t,getKey:function(e){return(0,A.LT)(e.competition_id)},disabled:!s||void 0!==l&&l,className:(0,t0.bX)(t.length),itemClassName:function(e){return(0,t0._o)(t,e)},onReorder:d,children:function(e){return(0,i.jsx)(t$,{featured:e,yourRow:n.get((0,A.LT)(e.competition_id)),upcomingEvents:a,compact:t.length>1&&"season"!==(0,A.z$)(e),wide:1===t.length,pairedLayout:t.length>1,mobileLayout:c})}})]}):null}var t2=n(73474),t5=n(74244);function t3(e){var t=e.isSeason;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"bg-[#080909]/28 pointer-events-none absolute inset-0"}),(0,i.jsx)("img",{src:"/img/fr-fist.png",alt:"",className:"absolute bottom-2 right-2 h-9 w-9 object-contain mix-blend-screen [mask-image:radial-gradient(ellipse_at_center,black_55%,transparent_85%)] ".concat(void 0!==t&&t?"opacity-30 [filter:brightness(0.55)_sepia(0.7)_hue-rotate(45deg)_saturate(2)]":"opacity-18 [filter:brightness(0.4)_sepia(0.5)_hue-rotate(40deg)_saturate(1.3)]")})]})}function t4(e){var t=e.className,n=void 0===t?"":t;return(0,i.jsx)("article",{className:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return["group/soon relative flex h-full min-h-0 w-[min(260px,calc(100vw-4.5rem))] flex-shrink-0 flex-col overflow-hidden rounded-xl border border-[#6B7F24]/45 bg-[#080909] transition duration-300 hover:border-[#6B7F24]/60 md:w-[260px]","border-dashed border-[#6B7F24]/55",e].filter(
66Boolean).join(" ")}(n),"aria-label":"Coming soon",children:(0,i.jsxs)("div",{className:"flex h-full min-h-0 w-full flex-col text-left",children:[(0,i.jsx)(t5.Z,{competition:null,isSeason:!1,hoverGroup:"group-hover/soon",forceAtmosphere:!0,children:(0,i.jsx)(t3,{})}),(0,i.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-2 md:gap-3 ".concat(u.Dj.panelPad),children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("h3",{className:"font-basement text-[18px] leading-[1.2] tracking-wide text-white md:text-[22px] md:leading-[1.15]",children:"Coming Soon"}),(0,i.jsxs)("span",{className:"mt-2 inline-flex items-center gap-1.5 rounded-md border px-2 py-1 text-[10px] font-bold uppercase tracking-[0.14em] ".concat("border-[#6B7F24]/30 bg-[#080909]/90 text-[#8FA83C]/85"),children:[(0,i.jsx)("img",{src:"/img/fr-fist.png",alt:"",className:"h-3 w-3 object-contain opacity-80"}),"Coming Soon"]})]}),(0,i.jsx)("p",{className:"mt-auto text-[11px] leading-snug tracking-wide text-white/35",children:"New competitions are getting built â check back soon."})]})]})})}var t8=n(30913);function t6(e){var t,n=e.competition,a=e.yourRow,r=e.upcomingEvents,s=void 0===r?[]:r,l=e.className,o=void 0===l?"":l,c=e.placeholder;if(void 0!==c&&c||(0,A._H)(n))return(0,i.jsx)(t4,{className:o});var d=(0,A.J4)(n,a).isSeason,m=(0,A.IY)(n),h=(0,A.lf)((0,A.NY)(n,s)),p=!!(0,t8.b_)(h),x=(0,A.vc)(n)||(0,A.vc)(a)||(m?(0,A.XF)(n,s):null),f=(null==n?void 0:n.start_date)?(0,A.iS)(n.start_date):null,v=(null==n?void 0:n.end_date)?(0,A.iS)(n.end_date):null,g=(0,A.hG)(n.competition_name||(null==a?void 0:a.competition_name)||"Competition"),b=(0,A.Zv)(n),j=Number(null==n?void 0:n.participant_count),N=Number.isFinite(j)&&j>0?(0,A.Dn)(j):null,k=!m&&!!b,y=null;f&&v?y="".concat(f," â ").concat(v):m&&v?y="Closed ".concat(v):f?y="Starts ".concat(f):v?y="Closes ".concat(v):b&&!k?y="Prize ".concat(b):N&&(y="".concat(N," players"));var _=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t5.Z,{competition:n,isSeason:d,hoverGroup:"group-hover/soon",event:h,upcomingEvents:s,forceAtmosphere:!p,children:p?null:(0,i.jsx)(t3,{isSeason:d})}),(0,i.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-2.5 ".concat(u.Dj.panelPad),children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("h3",{className:"line-clamp-2 font-basement text-[18px] leading-[1.2] tracking-wide text-white md:line-clamp-3 md:text-[22px] md:leading-[1.15]",title:n.competition_name||g,children:g}),(0,i.jsxs)("span",{className:"mt-2 inline-flex items-center gap-1.5 rounded-md border px-2 py-1 text-[10px] font-bold uppercase tracking-[0.14em] ".concat(m?"border-white/10 bg-black/55 text-white/55":d?"border-[#8FA83C]/35 bg-[#080909]/90 text-[#A8BC4A]":"border-[#6B7F24]/30 bg-[#080909]/90 text-[#8FA83C]/85"),children:[(0,i.jsx)("img",{src:"/img/fr-fist.png",alt:"",className:"h-3 w-3 object-contain opacity-80"}),m?"Completed":"Coming Soon"]})]}),(0,i.jsxs)("div",{className:"mt-auto flex flex-col gap-2",children:[k?(0,i.jsxs)("div",{className:"flex items-baseline justify-between gap-2 rounded-lg border border-[#6B7F24]/35 bg-[#CFFF3F]/[0.04] px-3 py-2",children:[(0,i.jsx)("span",{className:"text-[10px] font-semibold uppercase tracking-[0.14em] text-white/60",children:"Prize Pool"}),(0,i.jsx)("span",{className:"font-basement text-[18px] leading-none tracking-wide text-[#CFFF3F]",children:b})]}):null,y?(0,i.jsx)("p",{className:"text-[10px] font-medium uppercase tracking-[0.1em] text-white/50",children:y}):null,x&&m?(0,i.jsxs)("span",{className:"inline-flex items-center gap-1 text-[11px] font-bold uppercase tracking-[0.12em] text-[#A8BC4A] transition group-hover/soon:text-[#C4D85A]",children:["View Results",(0,i.jsx)(q.Z,{className:"h-3 w-3",strokeWidth:2.5})]}):null]})]})]});return(0,i.jsx)("article",{className:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.dashed;return["group/soon relative flex h-full min-h-0 w-[min(260px,calc(100vw-4.5rem))] flex-shrink-0 flex-col overflow-hidden rounded-xl border border-[#6B7F24]/45 bg-[#080909] transition duration-300 hover:border-[#6
66B7F24]/60 md:w-[260px]",void 0!==n&&n?"border-dashed border-[#6B7F24]/55":"",e].filter(Boolean).join(" ")}(o),children:x?(0,i.jsx)(w(),{href:x,onClick:function(){return(0,X.RO)({cta:m?"see_results":"open_competition",surface:X.hq.COMING_SOON_CARD,href:x,label:m?"View Results":g,competitionId:null!==(t=null==n?void 0:n.competition_id)&&void 0!==t?t:null,competitionKind:d?"season":"monthly"})},className:"flex h-full min-h-0 w-full flex-col text-left outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-white/30",children:_}):(0,i.jsx)("div",{className:"flex h-full min-h-0 w-full flex-col text-left",children:_})})}function t9(e){var t=e.competition,n=e.yourRow,a=e.isCurrentComp,r=e.upcomingEvents,s=void 0===r?[]:r;return(0,A._H)(t)?(0,i.jsx)(t6,{placeholder:!0}):(0,A.V0)(t)||(0,A.IY)(t)?(0,i.jsx)(t6,{competition:t,yourRow:n,upcomingEvents:s}):(0,i.jsx)(t2.Z,{competition:t,yourRow:n,upcomingEvents:s,compact:!0,isCurrentComp:void 0!==a&&a,className:"w-[min(260px,calc(100vw-4.5rem))] flex-shrink-0 overflow-hidden md:min-h-0 md:w-[260px]"})}var t7=n(20160),ne=[{id:"all",label:"All"},{id:"monthly",label:"Monthly"},{id:"season",label:"Season"}];function nt(e){var t=e.value,n=e.onChange,a=e.label,r=e.fullWidth,s=void 0!==r&&r,l=ne.map(function(e){return(0,d._)((0,c._)({},e),{active:t===e.id,onClick:function(){return n(e.id)}})});return(0,i.jsx)(t7.Z,{filters:l,size:"sm",fullWidth:s,className:s?"w-full":"min-w-0","aria-label":void 0===a?"filters":a})}var nn=n(5334);function na(e){var t=e.upcomingComps,n=e.yourById,s=e.upcomingEvents,l=void 0===s?[]:s,o=e.title,c=(0,a._)((0,r.useState)("all"),2),d=c[0],u=c[1],m=(0,r.useMemo)(function(){var e=[];return(null==t?void 0:t.length)&&(e="all"===d?t:t.filter(function(e){return(0,A.z$)(e)===d})),(0,t0.KQ)(e)},[t,d]),h=(0,r.useMemo)(function(){var e=(0,A.aA)(m);return e?(0,A.LT)(e.competition_id):null},[m]);return(0,i.jsx)("section",{className:"min-w-0",children:(0,i.jsx)(C,{label:"competitions",title:void 0===o?"Competitions":o,info:S.K.upcomingComps,href:(0,nn._v)(H.ln.COMPETITIONS_INDEX),linkLabel:"View All Competitions",mobileLinkLabel:"View all",headerExtra:(0,i.jsx)("div",{className:"hidden md:block",children:(0,i.jsx)(nt,{value:d,onChange:u,label:"Competition type filters"})}),headerBelow:(0,i.jsx)("div",{className:"md:hidden",children:(0,i.jsx)(nt,{value:d,onChange:u,label:"Competition type filters",fullWidth:!0})}),showScrollbar:!1,softMobileEdges:!0,initialTargetSelector:h?'[data-cc-current="true"]':null,initialAlignKey:h?"".concat(d,":").concat(h,":").concat(m.length):"kind:".concat(d,":").concat(m.length),initialScrollInset:h?48:0,peekPrevious:!!h,stepSelector:"[data-cc-competition-tile]",stepInset:48,children:0===m.length?(0,i.jsx)("p",{className:"py-8 text-sm text-white/50",children:"No competitions match this filter."}):(0,i.jsx)("div",{className:"flex items-stretch gap-3 pr-6 md:gap-4 md:pr-6",children:m.map(function(e){var t=n.get((0,A.LT)(e.competition_id)),a=(0,A.LT)(e.competition_id),r=null!=a&&a===h;return(0,i.jsx)("div",{"data-cc-current":r?"true":void 0,"data-cc-competition-tile":!0,className:"flex shrink-0 snap-start self-stretch",children:(0,i.jsx)(t9,{competition:e,yourRow:t,isCurrentComp:r,upcomingEvents:l})},(0,A.Bi)(e))})})},"comps-".concat(d))})}var ni=n(13145);/** 67 * @license lucide-react v0.454.0 - ISC 68 * 69 * This source code is licensed under the ISC license. 70 * See the LICENSE file in the root directory of this source tree. 71 */let nr=(0,s.Z)("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),ns=(0,s.Z)("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]),nl=(0,s.Z)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]),no=(0,s.Z)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);var nc=n(41352),nd={centre:nr,competitions:L.Z,monthly:tE.Z,season:ns,realm:nl,feature:no};function nu(e){var t=e.open,n=e.onClose;return(0,i.jsxs)(ni.Vq,{open:t,onClose:n,className:"relative z-[150]",children:[(0,i.jsx)(ni.ZR,{className:"fixed inset-0 bg-black/75 backdrop-blur-[2px]"}),(0,i.jsx)("div",{className:"fixed inset-0 z-10 w-screen overflow-y-auto p-3 sm:p-4",children:(0,i.jsx)("div",{className:"flex min-h-full items-end justify-center sm:items-center sm:py-8",children:(0,i.jsxs)(ni.EM,{className:"relative flex max-h-[min(92vh,860px)] w-full max-w-2xl flex-col overflow-hidden rounded-2xl border border-[#2A2E2E] bg-[#080909] shadow-2xl",children:[(0,i.jsxs)("div",{className:"shrink-0 border-b border-[#2A2E2E] px-5 pb-4 pt-5 sm:px-6 sm:pt-6",children:[(0,i.jsx)("button",{type:"button",onClick:n,className:"absolute right-4 top-4 roun
71ded-full p-1.5 text-white/40 transition hover:bg-white/5 hover:text-white","aria-label":"Close guide",children:(0,i.jsx)(nc.Z,{className:"h-4 w-4",strokeWidth:2.5,"aria-hidden":!0})}),(0,i.jsx)(ni.$N,{className:"pr-10 font-basement text-lg uppercase tracking-[0.08em] text-white sm:text-xl",children:"How it works"}),(0,i.jsx)("p",{className:"mt-2 max-w-xl font-inter text-sm leading-relaxed text-white/50",children:eE.intro})]}),(0,i.jsx)("div",{className:"fr-green-scrollbar-always min-h-0 flex-1 px-5 py-4 pr-3 sm:px-6 sm:py-5 sm:pr-4",children:(0,i.jsx)("ul",{className:"space-y-3",children:eE.sections.map(function(e){var t=nd[e.id]||L.Z;return(0,i.jsx)("li",{className:"rounded-xl border border-[#2A2E2E] bg-[#121414] p-3.5 sm:p-4",children:(0,i.jsxs)("div",{className:"flex items-start gap-3",children:[(0,i.jsx)("span",{className:"inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border border-[#6B7F24]/30 bg-[rgba(107,127,36,0.12)] text-[#8FA83C]",children:(0,i.jsx)(t,{className:"h-4 w-4",strokeWidth:2.25})}),(0,i.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,i.jsx)("h3",{className:"font-basement text-sm uppercase tracking-wide text-white",children:e.title}),(0,i.jsx)("p",{className:"mt-1.5 font-inter text-xs leading-relaxed text-white/55 sm:text-[13px] sm:leading-5",children:e.body})]})]})},e.id)})})}),(0,i.jsx)("div",{className:"shrink-0 border-t border-[#2A2E2E] px-5 py-3.5 sm:px-6",children:(0,i.jsx)("button",{type:"button",onClick:n,className:"w-full rounded-lg px-4 py-2.5 text-xs font-bold uppercase tracking-wide transition sm:w-auto sm:px-5 ".concat(u.$U.primary),children:"Got it"})})]})})})]})}var nm=n(13025);/** 72 * @license lucide-react v0.454.0 - ISC 73 * 74 * This source code is licensed under the ISC license. 75 * See the LICENSE file in the root directory of this source tree. 76 */let nh=(0,s.Z)("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);function np(e){var t,n,s,o,c,d=e.open,m=e.onClose,h=e.enabled,p=void 0!==h&&h,x=e.hasPack,f=void 0!==x&&x,v=e.meta,g=void 0===v?null:v,b=e.onGenerate,w=e.onSetEnabled,j=e.onClear,N=e.onExport,k=e.onImport,y=(0,r.useRef)(null),_=(0,a._)((0,r.useState)(null),2),C=_[0],S=_[1],A=(0,a._)((0,r.useState)(null),2),E=A[0],L=A[1],P=function(){S(null),L(null)},M=p?"Lab data active":f?"Pack saved â live API showing":"No lab pack yet",R=(t=(0,Q._)(function(e){var t,n;return(0,ee.Jh)(this,function(a){switch(a.label){case 0:if(!e)return[2];P(),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,e.text()];case 2:if(t=a.sent(),!(null==(n=null==k?void 0:k(t))?void 0:n.ok))return S("error"in n?n.error:"Import failed."),[2];return null==m||m(),[3,4];case 3:return a.sent(),S("Could not read that file."),[3,4];case 4:return[2]}})}),function(e){return t.apply(this,arguments)});return(0,i.jsxs)(ni.Vq,{open:d,onClose:function(){P(),m()},className:"relative z-[150]",children:[(0,i.jsx)(ni.ZR,{className:"fixed inset-0 bg-black/75 backdrop-blur-[2px]"}),(0,i.jsx)("div",{className:"fixed inset-0 z-10 w-screen overflow-y-auto p-3 sm:p-4",children:(0,i.jsx)("div",{className:"flex min-h-full items-end justify-center sm:items-center sm:py-8",children:(0,i.jsxs)(ni.EM,{className:"relative flex w-full max-w-md flex-col overflow-hidden rounded-2xl border border-[#2A2E2E] bg-[#080909] shadow-2xl",children:[(0,i.jsxs)("div",{className:"shrink-0 border-b border-[#2A2E2E] px-5 pb-4 pt-5 sm:px-6",children:[(0,i.jsx)("button",{type:"button",onClick:function(){P(),m()}
76,className:"absolute right-4 top-4 rounded-full p-1.5 text-white/40 transition hover:bg-white/5 hover:text-white","aria-label":"Close test lab",children:(0,i.jsx)(nc.Z,{className:"h-4 w-4",strokeWidth:2.5,"aria-hidden":!0})}),(0,i.jsxs)(ni.$N,{className:"flex items-center gap-2 pr-10 font-basement text-lg uppercase tracking-[0.08em] text-white",children:[(0,i.jsx)(l,{className:"h-4 w-4 text-[#8FA83C]",strokeWidth:2.25}),"Test Lab"]}),(0,i.jsx)("p",{className:"mt-2 font-inter text-sm leading-relaxed text-white/50",children:"Frontend-only fake season pack for Competition Centre. No API writes â when enabled, live hub data is hidden."})]}),(0,i.jsxs)("div",{className:"space-y-4 px-5 py-4 sm:px-6",children:[(0,i.jsxs)("div",{className:"rounded-xl border border-[#2A2E2E] bg-[#121414] px-3.5 py-3",children:[(0,i.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-[0.14em] text-white/40",children:"Status"}),(0,i.jsx)("p",{className:"mt-1 text-sm font-semibold text-white",children:M}),g?(0,i.jsxs)("p",{className:"mt-1.5 text-[12px] text-white/45",children:[null!==(s=g.seasonCount)&&void 0!==s?s:"â"," seasons \xb7"," ",null!==(o=g.monthlyCount)&&void 0!==o?o:"â"," monthlies \xb7"," ",null!==(c=g.eventCount)&&void 0!==c?c:"â"," events"]}):(0,i.jsx)("p",{className:"mt-1.5 text-[12px] text-white/35",children:"Generate a pack, or import a JSON export. Each quarter is 3 monthlies \xd7 4 events with lab fighter art."})]}),(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsx)("button",{type:"button",onClick:function(){P(),null==b||b(),L("Pack generated and lab data enabled.")},className:"rounded-lg px-3.5 py-2.5 text-[11px] font-bold uppercase tracking-wide transition ".concat(u.$U.primary),children:f?"Regenerate pack":"Generate pack"}),f?(0,i.jsx)("button",{type:"button",onClick:function(){P(),null==w||w(!p)},className:"rounded-lg px-3.5 py-2.5 text-[11px] font-bold uppercase tracking-wide transition ".concat(u.$U.outline),children:p?"Use live API":"Use lab data"}):null]}),(0,i.jsxs)("div",{className:"rounded-xl border border-[#2A2E2E] bg-[#121414] px-3.5 py-3",children:[(0,i.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-[0.14em] text-white/40",children:"JSON"}),(0,i.jsx)("p",{className:"mt-1.5 text-[12px] leading-snug text-white/40",children:"Export the current pack to share or back up. Import replaces the saved pack and turns lab mode on."}),(0,i.jsxs)("div",{className:"mt-3 flex flex-col gap-2",children:[(0,i.jsxs)("button",{type:"button",disabled:!f,onClick:function(){P(),(null==N?void 0:N())?L("JSON downloaded."):S("Nothing to export yet.")},className:"inline-flex items-center justify-center gap-1.5 rounded-lg px-3.5 py-2.5 text-[11px] font-bold uppercase tracking-wide transition ".concat(f?u.$U.outline:u.$U.disabled),children:[(0,i.jsx)(nm.Z,{className:"h-3.5 w-3.5",strokeWidth:2.5}),"Export JSON"]}),(0,i.jsxs)("button",{type:"button",onClick:function(){var e;P(),null===(e=y.current)||void 0===e||e.click()},className:"inline-flex items-center justify-center gap-1.5 rounded-lg px-3.5 py-2.5 text-[11px] font-bold uppercase tracking-wide transition ".concat(u.$U.outline),children:[(0,i.jsx)(nh,{className:"h-3.5 w-3.5",strokeWidth:2.5}),"Import JSON"]}),(0,i.jsx)("input",{ref:y,type:"file",accept:"application/json,.json",className:"hidden",onChange:(n=(0,Q._)(function(e){var t;return(0,ee.Jh)(this,function(n){switch(n.label){case 0:return[4,R(null===(t=e.target.files)||void 0===t?void 0:t[0])];case 1:return n.sent(),y.current&&(y.current.value=""),[2]}})}),function(e){return n.apply(this,arguments)})})]}),C?(0,i.jsx)("p",{className:"mt-2 text-[12px] text-[#F0595E]",children:C}):null,E?(0,i.jsx)("p",{className:"mt-2 text-[12px] text-main-green",children:E}):null]}),f?(0,i.jsx)("button",{type:"button",onClick:function(){P(),null==j||j(),L("Lab data cleared.")},className:"rounded-lg px-3.5 py-2.5 text-[11px] font-bold uppercase tracking-wide transition ".concat(u.$U.danger),children:"Clear lab data"}):null]})]})})})]})}function nx(e){var t=e.onRetry;return(0,i.jsxs)("div",{className:"rounded-2xl border border-[#C44549]/40 bg-[#121414] p-8 text-center shadow-[0_8px_24px_rgba(196,69,73,0.11)]",children:[(0,i.jsx)("p",{className:"text-white",children:"Couldnât load Competition Centre."}),t?(0,i.jsx)("button",{type:"button",onClick:t,className:"mt-4 rounded-xl px-4 py-2 text-sm font-bold uppercase ".concat(u.$U.primary),children:"Retry"}):null]})}function nf(e){var t=e.className;return(0,i.jsx)("div",{className:"animate-pulse rounded bg-white/10 ".concat(void 0===t?"":t),"aria-hidden":!0})}function nv(e){var t=e.wide;return(0,i.jsxs)("div",{className:"".concat(u.PY.sectionHeader," md:mb-4"),children:[(0,i.jsx)(nf,{className:"h-7 ".concat(void 0!==t&&t?"w-56":"w-44"," md:h-9")}),(0,i.jsx)(nf,{className:"hidden h-4 w-28 md:block"})]})}function ng(){return(0,i.jsxs)("section",{children:[(0,i.jsx)(nv,{wide:!0}),(0,i.jsx)("div",{className:"grid grid-cols-1 overflow-hidden sm:grid-cols-2 min-[1920px]:grid-cols-4 min-[1920px]:divide-x min-[1920px]:divide-[#2A2E2E] ".concat(u.PY.card),children:[0,1,2,3].map(function(e){return(0,i.jsxs)("div",{className:"flex items-center gap-3.5 border-b border-[#2A2E2E] last:border-b-0 min-[1920px]:border-b-0 sm:[&:nth-last-child(-n+2)]:border-b-0 ".concat(u.Dj.panelPad),children:[(0,i.jsx)(nf,{className:"h-7 w-7 shrink-0 rounded-lg"}),(0,i.jsxs)("div",{className:"min-w-0 flex-1 space-y-2",children:[(0,i.jsx)(nf,{className:"h-3.5 w-24"}),(0,i.jsx)(nf,{className:"h-3 w-full max-w-[12rem]"})]})]},e)})})]})}function nb(e){var t=e.mobile;return(0,i.jsx)("div",{className:"overflow-hidden rounded-xl border border-[#2A2E2E] bg-[#121414] ".concat(void 0!==t&&t?"min-h-[229px]":"min-h-[291px] md:min-
76h-[333px]"),children:(0,i.jsx)(nf,{className:"h-full min-h-[inherit] w-full rounded-none bg-white/[0.06]"})})}function nw(e){var t=e.cards,n=e.cardWidth,a=void 0===n?"w-[210px]":n;return(0,i.jsxs)("section",{children:[(0,i.jsx)(nv,{}),(0,i.jsx)("div",{className:"flex gap-3 overflow-hidden md:gap-4",children:Array.from({length:void 0===t?4:t}).map(function(e,t){return(0,i.jsxs)("div",{className:"shrink-0 overflow-hidden rounded-xl border border-[#2A2E2E] bg-[#121414] ".concat(a),children:[(0,i.jsx)(nf,{className:"h-28 w-full rounded-none bg-white/[0.06] md:h-36"}),(0,i.jsxs)("div",{className:"space-y-2 ".concat(u.Dj.panelPad),children:[(0,i.jsx)(nf,{className:"h-2.5 w-16"}),(0,i.jsx)(nf,{className:"h-5 w-[85%]"}),(0,i.jsx)(nf,{className:"h-3 w-24"})]})]},t)})})]})}function nj(){return(0,i.jsxs)("section",{className:"md:hidden",children:[(0,i.jsx)(nv,{wide:!0}),(0,i.jsxs)("div",{className:"overflow-hidden rounded-xl border border-[#2A2E2E]/80 bg-[rgba(18,20,20,0.45)]",children:[(0,i.jsx)("div",{className:"border-b border-[#2A2E2E]/70 py-3 ".concat(u.Dj.panelX),children:(0,i.jsx)(nf,{className:"h-10 w-full rounded-xl"})}),(0,i.jsxs)("div",{className:"grid grid-cols-2 gap-1.5 border-b border-[#2A2E2E]/70 p-2",children:[(0,i.jsx)(nf,{className:"h-9 rounded-lg"}),(0,i.jsx)(nf,{className:"h-9 rounded-lg"})]}),(0,i.jsx)("div",{className:"py-8 ".concat(u.Dj.panelX),children:(0,i.jsx)("div",{className:"flex items-stretch justify-between gap-2",children:[0,1,2].map(function(e){return(0,i.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col items-center gap-2",children:[(0,i.jsx)(nf,{className:"h-12 w-12 rounded-full"}),(0,i.jsx)(nf,{className:"h-3 w-14"}),(0,i.jsx)(nf,{className:"h-4 w-10"})]},e)})})})]})]})}function nN(){return(0,i.jsxs)("aside",{className:"hidden min-w-0 flex-col gap-[15px] md:flex",children:[(0,i.jsxs)("div",{className:"rounded-2xl ".concat(u.Dj.panelPad," ").concat(u.SK.cardQuiet),children:[(0,i.jsxs)("div",{className:"space-y-2.5",children:[(0,i.jsx)(nf,{className:"h-3 w-40"}),(0,i.jsx)(nf,{className:"h-8 w-full rounded-lg"})]}),(0,i.jsxs)("div",{className:"mt-4 grid grid-cols-2 gap-3",children:[(0,i.jsxs)("div",{className:"space-y-2 border-r border-[#2A2E2E] pr-3",children:[(0,i.jsx)(nf,{className:"h-10 w-16"}),(0,i.jsx)(nf,{className:"h-3 w-full"}),(0,i.jsx)(nf,{className:"h-3 w-[80%]"})]}),(0,i.jsxs)("div",{className:"space-y-2 pl-1",children:[(0,i.jsx)(nf,{className:"h-3 w-20"}),(0,i.jsx)(nf,{className:"h-10 w-14"}),(0,i.jsx)(nf,{className:"h-3 w-16"})]})]}),(0,i.jsxs)("div",{className:"mt-5",children:[(0,i.jsx)(nf,{className:"h-3 w-28"}),(0,i.jsx)("ul",{className:"mt-2.5 space-y-1.5",children:[0,1,2,3].map(function(e){return(0,i.jsxs)("li",{className:"flex items-center gap-2 px-2 py-1.5",children:[(0,i.jsx)(nf,{className:"h-3 w-6"}),(0,i.jsx)(nf,{className:"h-7 w-7 rounded-full"}),(0,i.jsx)(nf,{className:"h-3 flex-1"}),(0,i.jsx)(nf,{className:"h-3 w-8"})]},e)})}),(0,i.jsx)(nf,{className:"mt-4 h-10 w-full rounded-lg"})]})]}),(0,i.jsxs)("div",{className:"overflow-hidden rounded-xl border border-[#2A2E2E] bg-[#121414] ".concat(u.Dj.panelPad),children:[(0,i.jsx)(nf,{className:"h-3 w-28"}),(0,i.jsx)(nf,{className:"mt-3 h-7 w-[75%]"}),(0,i.jsx)(nf,{className:"mt-2 h-4 w-full max-w-[16rem]"}),(0,i.jsxs)("div",{className:"mt-4 space-y-2",children:[(0,i.jsx)(nf,{className:"h-10 w-full rounded-lg"}),(0,i.jsx)(nf,{className:"h-10 w-full rounded-lg"})]})]}),(0,i.jsxs)("div",{className:"rounded-2xl ".concat(u.Dj.panelPad," ").concat(u.SK.cardQuiet),children:[(0,i.jsx)(nf,{className:"h-3 w-32"}),[0,1,2,3,4].map(function(e){return(0,i.jsxs)("div",{className:"flex items-center gap-3 py-3 first:pt-4",children:[(0,i.jsx)(nf,{className:"h-9 w-9 shrink-0 rounded-lg"}),(0,i.jsxs)("div",{className:"min-w-0 flex-1 space-y-1.5",children:[(0,i.jsx)(nf,{className:"h-3.5 w-20"}),(0,i.jsx)(nf,{className:"h-3 w-full max-w-[10rem]"})]})]},e)})]}),(0,i.jsxs)("div",{className:"overflow-hidden rounded-2xl border border-[#6B7F24]/40 bg-[#121414] ".concat(u.Dj.panelPad),children:[(0,i.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,i.jsx)(nf,{className:"h-8 w-8 rounded-full"}),(0,i.jsx)(nf,{className:"h-3 w-28"})]}),(0,i.jsx)(nf,{className:"mt-3 h-7 w-[85%]"}),(0,i.jsx)(nf,{className:"mt-2 h-4 w-full"}),(0,i.jsx)(nf,{className:"mt-4 h-10 w-full rounded-lg"})]})]})}function nk(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"hidden gap-2 md:grid md:grid-cols-3",children:[0,1,2].map(function(e){return(0,i.jsxs)("div",{className:"flex items-center gap-3.5 rounded-xl border border-[#2A2E2E] bg-[#121414] ".concat(u.Dj.panelPad),children:[(0,i.jsx)(nf,{className:"h-14 w-14 shrink-0 rounded-full"}),(0,i.jsxs)("div",{className:"min-w-0 flex-1 space-y-2",children:[(0,i.jsx)(nf,{className:"h-3 w-20"}),(0,i.jsx)(nf,{className:"h-8 w-16"}),(0,i.jsx)(nf,{className:"h-2.5 w-28"})]}),(0,i.jsx)(nf,{className:"h-8 w-20 shrink-0 rounded-md"})]},e)})}),(0,i.jsxs)("div",{className:"space-y-3 md:hidden",children:[(0,i.jsxs)("div",{className:"".concat(u.PY.card," ").concat(u.PY.cardPad),children:[(0,i.jsx)(nf,{className:"h-3 w-24"}),(0,i.jsx)(nf,{className:"mt-2 h-8 w-20"})]}),(0,i.jsx)("div",{className:"grid grid-cols-2 gap-2",children:[0,1].map(function(e){return(0,i.jsxs)("div",{className:"".concat(u.PY.card," ").concat(u.PY.cardPadCompact),children:[(0,i.jsx)(nf,{className:"h-2.5 w-16"}),(0,i.jsx)(nf,{className:"mt-2 h-7 w-12"})]},e)})})]})]})}function ny(){return(0,i.jsxs)("section",{children:[(0,i.jsx)(nv,{wide:!0}),(0,i.jsxs)("div",{className:"hidden rounded-xl border border-[#2A2E2E] bg-[#121414] min-[1920px]:block ".concat(u.SK.cardQuiet),children:[(0,i.jsx)("div",{className:"grid grid-cols-6 gap-3 border-b border-[#2A2E2E] py-3 ".concat(u.Dj.panelX),children:[0,1,2,3,4,5].map(function(e){return(0,i.jsx)(nf,{className:"h-2.5 w-full max-w-[4.5rem]"},e)})}),[0,1,2,3].map(function(e){return(0,i.jsxs)("div",{className:"grid grid-cols-[minmax(0,1.45fr)_minmax(7.5rem,0.95fr)_minmax(7.5rem,0.95fr)_7.75rem_minmax(8.5rem,1fr)_9.5rem] items-center gap-3 border-b border-[#2A2E2E] py-3 last:border-b-0 ".concat(u.Dj.panelX),children:[(0,i.jsxs)("div",{className:"flex items-center gap-3",children:[(0,i.jsx)(nf,{className:"h-9 w-9 shrink-0 rounded-lg"}),(0,i.jsx)(nf,{className:"h-5 w-[70%]"})]}),(0,i.jsx)(nf,{className:"h-3 w-16"}),(0,i.jsx)(nf,{className:"h-3 w-16"}),(0,i.jsx)(nf,{className:"h-6 w-20 rounded-md"}),(0,i.jsx)(nf,{className:"h-3 w-24"}),(0,i.jsx)(nf,{className:"ml-auto h-8 w-24 rounded-lg"})]},e)})]}),(0,i.jsx)("div",{className:"overflow-hidden rounded-xl border border-[#2A2E2E] bg-[#121414] min-[1920px]:hidden",children:[0,1,2,3].map(function(e){return(0,i.jsxs)("div",{className:"flex items-center gap-3 py-3 ".concat(u.Dj.panelX," ").concat(e>0?"border-t border-[#2A2E2E]":""),children:[(0,i.jsx)(nf,{className:"h-4 w-4 shrink-0 rounded-full"}),(0,i.jsxs)("div",{className:"min-w-0 flex-1 space-y-1.5",children:[(0,i.jsx)(nf,{className:"h-4 w-[72%]"}),(0,i.jsx)(nf,{className:"h-3 w-[48%]"})]}),(0,i.jsx)(nf,{className:"h-7 w-16 rounded-lg"})]},e)})})]})}function n_(){return(0,i.jsxs)("div",{className:"".concat(u.Dj.sectionStack," pb-16 font-inter"),"aria-busy":"true","aria-label":"Loading Competition Centre",children:[(0,i.jsxs)("div",{className:"space-y-2",children:[(0,i.jsx)(nf,{className:"h-8 w-52 md:h-12 md:w-72"}),(0,i.jsx)(nf,{className:"h-4 w-full max-w-xl"})]}),(0,i.jsxs)("div",{className:u.Dj.split,children:[(0,i.jsxs)("div",{className:"min-w-0 ".concat(u.Dj.sectionStack),children:[(0,i.jsxs)("div",{className:"".concat(u.Dj.sectionStack," md:hidden"),children:[(0,i.jsx)(nk,{}),(0,i.jsx)(nb,{mobile:!0}),(0,i.jsx)(nw,{cards:3,cardWidth:"w-[248px]"}),(0,i.jsx)(nw,{cards:3,cardWidth:"w-[260px]"}),(0,i.jsx)(ny,{}),(0,i.jsx)(nj,{}),(0,i.jsxs)("div",{className:"overflow-hidden rounded-xl border border-[#2A2E2E] bg-[#121414] ".concat(u.Dj.panelPad),children:[(0,i.jsx)(nf,{className:"h-3 w-28"}),(0,i.jsx)(nf,{className:"mt-3 h-7 w-[75%]"}),(0,i.jsx)(nf,{className:"mt-2 h-4 w-full max-w-[16rem]"}),(0,i.jsxs)("div",{className:"mt-4 space-y-2",children:[(0,i.jsx)(nf,{className:"h-10 w-full rounded-lg"}),(0,i.jsx)(nf,{className:"h-10 w-full rounded-lg"})]})]}),(0,i.jsx)(ng,{}),(0,i.jsxs)("div",{className:"overflow-hidden rounded-2xl border border-[#6
76B7F24]/40 bg-[#121414] ".concat(u.Dj.panelPad),children:[(0,i.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,i.jsx)(nf,{className:"h-8 w-8 rounded-full"}),(0,i.jsx)(nf,{className:"h-3 w-28"})]}),(0,i.jsx)(nf,{className:"mt-3 h-7 w-[85%]"}),(0,i.jsx)(nf,{className:"mt-2 h-4 w-full"}),(0,i.jsx)(nf,{className:"mt-4 h-10 w-full rounded-lg"})]})]}),(0,i.jsxs)("div",{className:"hidden ".concat(u.Dj.sectionStack," md:flex"),children:[(0,i.jsx)(nk,{}),(0,i.jsx)(nb,{}),(0,i.jsx)(nw,{cards:5,cardWidth:"w-[210px]"}),(0,i.jsx)(nw,{cards:4,cardWidth:"w-[260px]"}),(0,i.jsx)(ny,{}),(0,i.jsx)(ng,{})]})]}),(0,i.jsx)(nN,{})]})]})}function nC(){return(0,i.jsx)(n_,{})}var nS=n(86501),nA=n(18031),nE=n(55859),nL=n(96645);function nP(e){var t,n,s,c,d,m,h,x,f,v,g,b,w,j,N,k,y,_,C,S,E,L,P,M,R,F,T,I,z,D,Z,B,W,U,Y,K,q,G,V,J,$,et,en,ea,ei=e.summary,er=e.featured,es=e.competitions,el=e.upcomingEvents,eo=e.yourCompetitions,ec=e.leaderboardPreview,ed=void 0===ec?[]:ec,eu=e.isLoading,em=e.error,eh=e.onRetry,ep=e.canReorder,ef=void 0!==ep&&ep,ev=e.isStaff,eg=void 0!==ev&&ev,eb=e.labMode,ew=void 0!==eb&&eb,ej=e.lab,eN=void 0===ej?null:ej,ek=e.onOrderSaved,ey=e.onLabFeaturedReorder,e_=(0,a._)((0,r.useState)(!1),2),eC=e_[0],eA=e_[1],eE=(0,a._)((0,r.useState)(!1),2),eL=eE[0],eP=eE[1],eR=(0,nL.A)(),eF=eR.showMobile,eT=eR.showDesktop,eI=(n=(t={featured:er,competitions:es,upcomingEvents:el,yourCompetitions:eo,canReorder:ef,onOrderSaved:ek,labMode:ew,onLabFeaturedReorder:void 0===ey?null:ey}).featured,s=t.competitions,c=t.upcomingEvents,d=t.yourCompetitions,h=void 0!==(m=t.canReorder)&&m,x=t.onOrderSaved,v=void 0!==(f=t.labMode)&&f,b=void 0===(g=t.onLabFeaturedReorder)?null:g,w=(0,nE.Z)().authKey,j=(0,r.useMemo)(function(){return(0,t0.yp)(d)},[d]),k=(N=(0,r.useMemo)(function(){return(0,t0.Jl)({featured:n,competitions:s})},[n,s])).highlighted,y=N.primary,_=N.upcoming,C=N.residualActive,S=N.past,E=(0,t0.d2)({residualActive:C,upcoming:_,highlighted:k}),P=(L=(0,a._)((0,r.useState)(k),2))[0],M=L[1],F=(R=(0,a._)((0,r.useState)(_),2))[0],T=R[1],z=(I=(0,a._)((0,r.useState)(!1),2))[0],D=I[1],Z=(0,r.useRef)(null),B=(0,r.useRef)(!1),(0,r.useEffect)(function(){return M(k)},[k]),(0,r.useEffect)(function(){return T(_)},[_]),U=0===(W=(0,r.useMemo)(function(){var e=(c||[]).filter(function(e){return!(0,A.QP)(e)}),t=(0,A.Xp)((0,p._)(n||[]).concat((0,p._)(s||[]))),a=new Set,i=(0,p._)(e).concat((0,p._)(t)).filter(function(e){var t=(null==e?void 0:e.slug)||"".concat((null==e?void 0:e.event_name)||"","-").concat((null==e?void 0:e.event_time_start)||"");return!(!t||a.has(t))&&(a.add(t),!0)});return(0,A.yf)(i)},[c,n,s])).length,Y=(0,ex.a)({queryKey:[H.lP.COMPETITION_CENTRE_EVENTS,"hub-past-fallback",w],queryFn:function(){return(0,nA.gw)({page:1,page_size:24,include_empty:!0})},enabled:U&&!v,staleTime:6e4}),K=(0,r.useMemo)(function(){if(W.length>0)return(0,A.yf)(W);var e,t=(c||[]).filter(A.QP);return t.length>0?(0,A.T1)(t):v?[]:(0,A.T1)((null===(e=Y.data)||void 0===e?void 0:e.results)||[])},[W,c,Y.data,v]),q=U&&K.length>0,G=(0,ex.a)({queryKey:[H.lP.COMPETITION_CENTRE_COMPETITIONS,"hub-past-rail",24,w],queryFn:function(){return(0,nA.xu)({page:1,page_size:24,past:!0})},enabled:!v&&E,staleTime:6e4}),V=(0,r.useMemo)(function(){var e,t=S||[];if(v)return t.slice(0,12);var n=((null===(e=G.data)||void 0===e?void 0:e.results)||[]).filter(A.IY),a=new Set,i=(0,p._)(t).concat((0,p._)(n)).filter(function(e){var t=(0,A.LT)(null==e?void 0:e.competition_id);return!(null==t||a.has(t))&&(a.add(t),!0)});return i.sort(function(e,t){var n=String((null==e?void 0:e.end_date)||(null==e?void 0:e.start_date)||"").slice(0,10);return String((null==t?void 0:t.end_date)||(null==t?void 0:t.start_date)||"").slice(0,10).localeCompare(n)}),i.slice(0,12)},[S,G.data,v]),$=(J=(0,r.useMemo)(function(){var e,t=(0,t0.Ex)(C,F,P,V);return t.length>0?t:v?[]:(0,A.I)((null===(e=G.data)||void 0===e?void 0:e.results)||[])},[C,F,P,V,G.data,v])).length>0&&J.every(A.IY),et=(0,r.useMemo)(function(){return(0,t0.$Y)({competitions:s,heroes:P,upcomingComps:J})},[s,P,J]),en=(0,Q._)(function(){var e,t,n,a,i,r,s,l=arguments;return(0,ee.Jh)(this,function(o){switch(o.label){case 0:if(n=void 0===(t=(e=l.length>0&&void 0!==l[0]?l[0]:{}).nextHeroes)?P:t,i=void 0===(a=e.nextUpcoming)?F:a,!h)return[2];if(v){if(!1===(null==b?void 0:b(n)))return nS.ZP.error("Couldnât save lab pin order"),M(k),[2];return nS.ZP.success("Lab pin order updated"),[2]}if(B.current)return Z.current={nextHeroes:n,nextUpcoming:i},[2];B.current=!0,D(!0),o.label=1;case 1:o.trys.push([1,6,7,8]),r={nextHeroes:n,nextUpcoming:i},o.label=2;case 2:return Z.current=null,[4,(0,nA.af)({competition_ids:(0,t0.re)({nextHeroes:r.nextHeroes,nextUpcoming:r.nextUpcoming,residualActive:C})})];case 3:o.sent(),Z.current&&(r=Z.current),o.label=4;case 4:if(Z.current)return[3,2];o.label=5;case 5:return nS.ZP.success("Order saved"),null==x||x(),[3,8];case 6:return s=o.sent(),Z.current=null,nS.ZP.error(s instanceof Error?s.message:"Couldnât save order"),M(k),T(_),[3,8];case 7:return B.current=!1,D(!1),[7];case 8:return[2]}})}),{yourById:j,primary:y,heroes:P,upcomingComps:J,showingPastComps:$,events:K,showingPastEvents:q,tickerCompetitions:et,saving:z,reorderHeroes:function(e){var t=(0,t0.Kr)(P,e);M(t),ea({nextHeroes:t,nextUpcoming:F})},persistOrder:ea=function(){return en.apply(this,arguments)}}),ez=eI.yourById,eD=eI.heroes,eZ=eI.upcomingComps,eB=eI.showingPastComps,eO=eI.events,eW=eI.showingPastEvents,eU=eI.tickerCompetitions,eY=eI.saving,eK=eI.reorderHeroes;if((0,r.useEffect)(function(){eu||em||(0,X.Pm)({lab_mode:!!ew})},[eu,em,ew]),eu)return(0,i.jsx)(nC,{});if(em)return(0,i.jsx)(nx,{onRetry:eh});var eq=(0,i.jsx)(O,{events:eO,competitions:eU,title:eW?"Recent Events":"Events",href:(0,nn._v)(H.ln.EVENTS_INDEX),linkLabel:"View All Events",mobileLinkLabel:"View all"}),eH=(0,i.jsx)(na,{upcomingComps:eZ,yourById:ez,upcomingEvents:eO,title:eB?"Recent Competitions":"Competitions"});return(0,i.jsxs)("div",{className:"".concat(u.Dj.sectionStack," pb-16 font-inter"),children:[eg?(0,i.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3 rounded-xl border border-[#5C6E1E]/35 bg-[rgba(92,110,30,0.08)] py-3 text-sm text-white/60 ".concat(u.Dj.panelX),children:[(0,i.jsxs)("p",{className:"min-w-0",children:[ew?"Lab data active â drag featured cards to reorder pins (saved locally).":ef?"Staff mode: drag featured cards to reorder. Changes save automatically.":"Staff mode",eY?" Savingâ¦":""]}),(0,i.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[ew?(0,i.jsx)("span",{className:"rounded-md border border-main-green/35 bg-main-green/10 px-2 py-1 text-[10px] font-bold uppercase tracking-[0.12em] text-main-green",children:"Lab active"}):null,(0,i.jsxs)("button",{type:"button",onClick:function(){return eP(!0)},className:"inline-flex items-center gap-1.5 rounded-lg px-3 py-1.5 text-[10px] font-bold uppercase tracking-wide transition ".concat(u.$U.outline),children:[(0,i.jsx)(l,{className:"h-3.5 w-3.5",
76strokeWidth:2.25}),"Test Lab"]})]})]}):null,(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:"flex items-start justify-between gap-3 sm:gap-6",children:[(0,i.jsx)("h1",{className:"min-w-0 flex-1 font-basement text-[28px] leading-[1.15] tracking-wide text-white md:font-bebas md:text-5xl md:leading-none",children:"Competition Centre"}),(0,i.jsxs)("button",{type:"button",onClick:function(){return eA(!0)},className:"inline-flex shrink-0 items-center justify-center gap-1.5 rounded-lg border border-[#2A2E2E] bg-[#121414]/90 px-2.5 py-1.5 text-[10px] font-bold uppercase tracking-[0.12em] text-white/80 transition hover:border-[#6B7F24]/55 hover:text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#6B7F24]/60 sm:gap-2 sm:px-3.5 sm:py-2 sm:text-[11px] md:mt-1",children:[(0,i.jsx)(o,{className:"h-3.5 w-3.5",strokeWidth:2.25,"aria-hidden":!0}),"How it works"]})]}),(0,i.jsx)("p",{className:"mt-1.5 max-w-xl text-[13px] leading-snug text-white/50 md:text-sm",children:"Your command centre for events, competitions, picks, groups, and realm activity."})]}),(0,i.jsx)(nu,{open:eC,onClose:function(){return eA(!1)}}),eg?(0,i.jsx)(np,{open:eL,onClose:function(){return eP(!1)},enabled:!!(null==eN?void 0:eN.enabled),hasPack:!!(null==eN?void 0:eN.hasPack),meta:(null==eN?void 0:eN.meta)||null,onGenerate:function(){var e;return null==eN?void 0:null===(e=eN.generatePack)||void 0===e?void 0:e.call(eN)},onSetEnabled:function(e){var t;return null==eN?void 0:null===(t=eN.setEnabled)||void 0===t?void 0:t.call(eN,e)},onClear:function(){var e;return null==eN?void 0:null===(e=eN.clearPack)||void 0===e?void 0:e.call(eN)},onExport:function(){var e;return null==eN?void 0:null===(e=eN.exportPack)||void 0===e?void 0:e.call(eN)},onImport:function(e){var t;return null==eN?void 0:null===(t=eN.importPack)||void 0===t?void 0:t.call(eN,e)}}):null,(0,i.jsxs)("div",{className:u.Dj.split,children:[(0,i.jsxs)("div",{className:"min-w-0 ".concat(u.Dj.sectionStack),children:[eF?(0,i.jsxs)("div",{className:"".concat(u.Dj.sectionStack," md:hidden"),children:[(0,i.jsx)(eS,{summary:ei,leaderboardPreview:ed,featured:er}),(0,i.jsx)(t1,{items:eD,yourById:ez,events:eO,canReorder:ef,saving:eY,mobileLayout:!0,onReorder:eK}),(0,i.jsx)("section",{className:"min-w-0",children:eq}),eH,(0,i.jsx)(e$,{rows:eo,events:eO,competitions:eU}),(0,i.jsx)(ty,{summary:ei,featured:er,yourCompetitions:eo,competitions:es}),(0,i.jsx)(eQ,{}),(0,i.jsx)(eM,{}),(0,i.jsx)(eX.Z,{})]}):null,eT?(0,i.jsxs)("div",{className:"hidden md:flex ".concat(u.Dj.sectionStack),children:[(0,i.jsx)(eS,{summary:ei,leaderboardPreview:ed,featured:er}),(0,i.jsx)(t1,{items:eD,yourById:ez,events:eO,canReorder:ef,saving:eY,onReorder:eK}),(0,i.jsx)("section",{className:"min-w-0",children:eq}),eH,(0,i.jsx)(e$,{rows:eo,events:eO,competitions:eU}),(0,i.jsx)(eM,{})]}):null]}),eT?(0,i.jsx)(tf,{summary:ei,featured:er,yourCompetitions:eo,competitions:es,leaderboardPreview:ed}):null]})]})}},74873:function(e,t,n){n.d(t,{Z:function(){return s}});var a=n(93128),i=n(67294),r=n(97166);function s(){var e=(0,r.Z)(function(e){return e.sidebarCollapsed}),t=(0,r.Z)(function(e){return e.sidebarWidth}),n=(0,a._)((0,i.useState)(!1),2),s=n[0],l=n[1];return(0,i.useEffect)(function(){l(!0)},[]),{isReady:s,sidebarCollapsed:e,sidebarExpanded:!e,sidebarWidth:t}}},42576:function(e,t,n){n.d(t,{JZ:function(){return r},bt:function(){return i},g7:function(){return s}});var a=n(85838);function i(e){if(null==e)return"";var t=String(e).trim();return t&&"null"!==t&&"undefined"!==t?((t=(t=t.replace(/^https?:\/\/[^/]+/i,"")).replace(/^\/competition\/?/i,"/")).startsWith("/")||(t="/".concat(t)),t.endsWith("/")||(t="".concat(t,"/")),"/"===t?"":t):""}function r(e){if(!a.T5)return"";var t=i(e);if(!t)return"";try{return new URL(t,new URL(a.T5).origin).href}catch(e){return""}}function s(e){var t,n,a;return null!==(a=null!==(n=null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.component_props)&&void 0!==n?n:null==e?void 0:e.component_props)&&void 0!==a?a:null}},56154:function(e,t,n){n.d(t,{rO:function(){return b}});var a=n(76341),i=n(67462),r=n(93128),s=n(53353),l=n(78459),o="/img/fighter1.png",c="/img/fighter2.png",d=[["Hooker","Parnasse"],["Allen","Hernandez"],["Emmett","Murphy"],["Rodriguez","Dvalishvili"],["Mitchell","Barboza"],["Fiorot","Makhachev"],["Adesanya","Du Plessis"],["Oliveira","Chandler"],["Volkanovski","Lopes"],["Garry","Wonderboy"],["Pimblett","McGregor"],["Hill","Prochazka"]],u=[["Jones","Miocic"],["Pereira","Ankalaev"],["Edwards","Covington"],["Aspinall","Gane"],["Strickland","Costa"],["O'Malley","Yan"]];function m(e){return e.toISODate()}function h(e){return e.toUTC().toISO({suppressMilliseconds:!0})}function p(e,t){return{fighter_name:e,cover_image:t}}function x(e){return{competition_id:e.competition_id,competition_kind:e.competition_kind,competition_name:e.competition_name,start_date:e.start_date,end_date:e.end_date}}function f(e){var t=e.slug,n=e.eventName,a=e.eventType,i=e.start,s=e.location,d=e.comps,u=e.pairing,m=e.swap,f=e.pickProgress,v=e.finished,g=void 0!==v&&v,b=(0,r._)(u,2),w=b[0],j=b[1];return{slug:t,event_name:n,event_type:a,event_time_start:h(i),event_location:s,is_upcoming:!g&&i>l.ou.now(),is_finished:g,is_finalized:g,main_event:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{fighter_a:p(e,n?c:o),fighter_b:p(t,n?o:c)}}(w,j,m),competitions:d.map(x),user_pick_progress:void 0===f?null:f}}function v(e){var t=e.id,n=e.slug,a=e.name,i=e.kind,r=e.start,s=e.end,l=e.nextDeadline,o=void 0===l?null:l,c=e.participantCount,d=e.pinned,u=e.events,p=e.prizeOpts,x=e.now;return{competition_id:t,competition_name:a,competition_kind:i,slug:n,url:"/".concat(n,"/"),start_date:m(r),end_date:m(s),next_deadline:o?h(o):null,participant_count:void 0===c?115:c,pinned:void 0!==d&&d,prizes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.free,n=void 0===t?450:t,a=e.frPlus,i=void 0===a?900:a,r=e.count;return Array.from({length:void 0===r?4:r},function(e,t){return{prize_prize:Math.max(50,Math.round(n/(t+1))),prize_bonus_prize:Math.max(100,Math.round(i/(t+1))),prize_category:"fantasy"}}
76)}(p),events:void 0===u?[]:u,is_finished:s<x.startOf("day"),status:"incomplete"}}function g(e){var t=e.seasonNumber,n=e.seasonStart,r=e.liveMonthlyIndex,o=void 0===r?null:r,c=e.pairingOffset,h=void 0===c?0:c,p=e.now,x=[0,1,2].map(function(e){return{start:n.plus({days:30*e}),end:n.plus({days:30*e+29})}}),g=x[2].end.plus({days:1}),b={competition_id:"lab-season-".concat(t),competition_kind:"season",competition_name:"FR Season ".concat(t),start_date:m(n),end_date:m(g)},w=x.map(function(e,n){var a=o===n,i=e.start>p.startOf("day"),r=e.start.plus({days:10}).set({hour:18});return a?r=p.plus({days:4,hours:19}):i&&(r=e.start.plus({days:8}).set({hour:18})),v({id:"lab-s".concat(t,"-monthly-").concat(n+1),slug:"lab-fr".concat(t,"-monthly-").concat(n+1),name:"FR".concat(t," M").concat(n+1,": Lab Card ").concat(n+1),kind:"monthly",start:e.start,end:e.end,nextDeadline:r,participantCount:80+t+25*n,pinned:a,prizeOpts:{free:450,frPlus:900,count:4},events:[],now:p})}),j=v({id:"lab-season-".concat(t),slug:"lab-fr-season-".concat(t),name:"FR Season ".concat(t),kind:"season",start:n,end:g,nextDeadline:null!=o?p.plus({days:30}):g.minus({days:5}).set({hour:18}),participantCount:280+t,pinned:null!=o,prizeOpts:{free:1200,frPlus:2500,count:6},events:[],now:p}),N=[],k=w.map(function(e,n){var r=function(e){for(var t=e.monthly,n=e.monthlyIndex,a=e.season,i=e.seasonNumber,r=e.pairingOffset,s=void 0===r?0:r,o=e.now,c=l.ou.fromISO(t.start_date).startOf("day"),m=[t,a],h=[],p=["Paris, France","Las Vegas, USA","London, UK","Abu Dhabi, UAE"],x=l.ou.fromISO(t.end_date)<o.startOf("day"),v="lab-s".concat(i,"-m").concat(n+1),g=0;g<3;g+=1){var b=d[(s+3*n+g)%d.length],w=c.plus({days:5+7*g}).set({hour:22,minute:0,second:0}),j=x||w<o.minus({days:1});h.push(f({slug:"".concat(v,"-fn-").concat(g+1),eventName:"UFC Fight Night: ".concat(b[0]," vs ").concat(b[1]),eventType:"fight_night",start:w,location:p[g%p.length],comps:m,pairing:b,swap:(n+g)%2==1,finished:j,pickProgress:23!==i||1!==n||0!==g||j?{completed:j?5:0,total:5,status:j?"complete":"incomplete"}:{completed:2,total:5,status:"incomplete"}}))}var N=u[(s+n)%u.length],k=300+i+n,y=c.plus({days:26}).set({hour:22,minute:0,second:0}),_=x||y<o.minus({days:1});return h.push(f({slug:"".concat(v,"-main"),eventName:"UFC ".concat(k,": ").concat(N[0]," vs ").concat(N[1]),eventType:"main_event",start:y,location:p[3],comps:m,pairing:N,swap:n%2==0,finished:_,pickProgress:{completed:_?5:0,total:5,status:_?"complete":"incomplete"}})),h}({monthly:e,monthlyIndex:n,season:b,seasonNumber:t,pairingOffset:h,now:p});return N.push.apply(N,(0,s._)(r)),(0,i._)((0,a._)({},e),{events:r})});return{season:(0,i._)((0,a._)({},j),{events:N.map(function(e){return(0,a._)({},e)})}),monthlies:k,events:N,liveMonthly:null!=o?k[o]:null}}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.ou.now(),t=e.startOf("day").minus({days:45}),n=g({seasonNumber:23,seasonStart:t,liveMonthlyIndex:1,pairingOffset:0,now:e}),a=g({seasonNumber:22,seasonStart:t.minus({days:95}),liveMonthlyIndex:null,pairingOffset:6,now:e}),i=[a.season].concat((0,s._)(a.monthlies),[n.season],(0,s._)(n.monthlies)),r=(0,s._)(a.events).concat((0,s._)(n.events)),o=n.liveMonthly,c=[o,n.season].filter(Boolean),d=o?[{competition_id:o.competition_id,competition_name:o.competition_name,competition_kind:"monthly",start_date:o.start_date,end_date:o.end_date,entered:!0,participation_status:"picks_incomplete",rank:12,status:"incomplete",user_pick_progress:{completed:2,total:5,status:"incomplete"},events:o.events,prizes:o.prizes}]:[];return{summary:{competitions_needing_picks:o?1:0,featured_rank:12,featured_rank_change:2,featured_rank_percentile:18,group_count:1},featured:c,competitions:i,upcomingEvents:r,yourCompetitions:d,leaderboardPreview:[{rank:1,username:"LabChamp",user_slug:"labchamp",total_score:420,rank_change:0,is_you:!1},{rank:2,username:"CornerBoss",user_slug:"cornerboss",total_score:388,rank_change:1,is_you:!1},{rank:12,username:"You",user_slug:"you",total_score:210,rank_change:2,is_you:!0}],meta:{seasonCount:2,monthlyCount:6,eventCount:r.length,generatedAt:e.toISO()}}}}}]); 77//# sourceMappingURL=237-ccf95befecc6b412.js.map
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.