PageSourceSearch

https://app.splashsports.com/_next/static/chunks/pages/entries-8877fc586cef93d1.js

js splashsports.com collected 2026-09-28 06:43:19 UTC 38,005 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6470],{92552:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/entries",function(){return n(49418)}])},99994:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=(0,n(96887).Z)("arrow-right","IconArrowRight",[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M13 18l6 -6",key:"svg-1"}],["path",{d:"M13 6l6 6",key:"svg-2"}]])},38569:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=(0,n(96887).Z)("arrows-sort","IconArrowsSort",[["path",{d:"M3 9l4 -4l4 4m-4 -4v14",key:"svg-0"}],["path",{d:"M21 15l-4 4l-4 -4m4 4v-14",key:"svg-1"}]])},87111:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=(0,n(96887).Z)("send","IconSend",[["path",{d:"M10 14l11 -11",key:"svg-0"}],["path",{d:"M21 3l-6.5 18a.55 .55 0 0 1 -1 0l-3.5 -7l-7 -3.5a.55 .55 0 0 1 0 -1l18 -6.5",key:"svg-1"}]])},22992:function(e,t,n){"use strict";function r(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}n.d(t,{Z:function(){return r}})},57180:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(50765),s=n(98630),o=n(77635),a=n(79192),i=n(59173),l=n(29451),c=n(22992),d=n(60973),u=n(17060);function h(e,t){return(0,u.Z)(1,arguments),function(e,t,n){(0,u.Z)(2,arguments);var h,p,m,f,g,v=(0,r.j)(),x=null!==(h=null!==(p=null==n?void 0:n.locale)&&void 0!==p?p:v.locale)&&void 0!==h?h:i.Z;if(!x.formatDistance)throw RangeError("locale must contain formatDistance property");var y=(0,s.Z)(e,t);if(isNaN(y))throw RangeError("Invalid time value");var b=(0,c.Z)((0,c.Z)({},n),{addSuffix:!!(null==n?void 0:n.addSuffix),comparison:y});y>0?(m=(0,l.Z)(t),f=(0,l.Z)(e)):(m=(0,l.Z)(e),f=(0,l.Z)(t));var C=(0,a.Z)(f,m),E=Math.round((C-((0,d.Z)(f)-(0,d.Z)(m))/1e3)/60);if(E<2){if(null!=n&&n.includeSeconds){if(C<5)return x.formatDistance("lessThanXSeconds",5,b);if(C<10)return x.formatDistance("lessThanXSeconds",10,b);if(C<20)return x.formatDistance("lessThanXSeconds",20,b);if(C<40)return x.formatDistance("halfAMinute",0,b);else if(C<60)return x.formatDistance("lessThanXMinutes",1,b);else return x.formatDistance("xMinutes",1,b)}return 0===E?x.formatDistance("lessThanXMinutes",1,b):x.formatDistance("xMinutes",E,b)}if(E<45)return x.formatDistance("xMinutes",E,b);if(E<90)return x.formatDistance("aboutXHours",1,b);if(E<1440)return x.formatDistance("aboutXHours",Math.round(E/60),b);if(E<2520)return x.formatDistance("xDays",1,b);if(E<43200)return x.formatDistance("xDays",Math.round(E/1440),b);if(E<86400)return g=Math.round(E/43200),x.formatDistance("aboutXMonths",g,b);if((g=(0,o.Z)(f,m))<12)return x.formatDistance("xMonths",Math.round(E/43200),b);var T=g%12,S=Math.floor(g/12);return T<3?x.formatDistance("aboutXYears",S,b):T<9?x.formatDistance("overXYears",S,b):x.formatDistance("almostXYears",S+1,b)}(e,Date.now(),t)}},96240:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(85893),s=n(56817),o=n(87092),a=n(12314),i=n(67294);let l=(0,s.k)(e=>({option:{padding:"".concat(e.other.spacing._16,"px 0"),"&:not(:last-child)":{borderBottom:"1px solid ".concat(e.colors.gray2[0])}},labelWrapper:{flexGrow:1},label:{...a.s["headline-medium"],paddingLeft:e.other.spacing._16}}));var c=function(e){let{filter:t,onChange:n,onClear:s,value:a=[]}=e,{classes:c}=l(),d=(0,i.useCallback)(e=>r=>void 0===e.value?s(r)(t.key):r.target.checked?n([...a,e.value]):n(a.filter(t=>t!==e.value)),[n,a]),u=(0,i.useCallback)(e=>0===a.length?void 0===e.value:a.includes(e.value),[a]);return(0,r.jsx)("div",{children:t.options.map(e=>(0,r.jsx)("div",{className:c.option,children:(0,r.jsx)(o.X,{name:t.key,label:e.label,checked:u(e),onChange:d(e),classNames:{label:c.label,labelWrapper:c.labelWrapper}})},JSON.stringify(e.value)))})},d=n(58654);let u=e=>"string"==typeof e?e:JSON.stringify(e),h=(0,s.k)(e=>({option:{padding:"".concat(e.other.spacing._16,"px 0"),"&:not(:last-child)":{borderBottom:"1px solid ".concat(e.colors.gray2[0])}},labelWrapper:{flexGrow:1},label:{...a.s["headline-medium"],paddingLeft:e.other.spacing._16}}));var p=function(e){let{filter:t,onSubmit:n,value:s=[]}=e,{classes:o}=h(),a=(0,i.useMemo)(()=>s.map(e=>
1u(e)).filter(Boolean),[s]);return(0,r.jsx)("div",{children:t.options.map(e=>(0,r.jsx)("div",{className:o.option,children:(0,r.jsx)(d.Y,{name:t.key,label:e.label,checked:e.value?a.includes(u(e.value)):0===a.length,onChange:()=>{n([e.value])},classNames:{label:o.label,labelWrapper:o.labelWrapper}})},JSON.stringify(e.value)))})},m=function(e){let{filter:t,value:n,onChange:s,onSubmit:o,onClear:a}=e;switch(t.type){case"single-select":return(0,r.jsx)(p,{value:n,filter:t,onSubmit:o});case"multi-select":return(0,r.jsx)(c,{filter:t,onChange:s,value:n,onClear:a});default:return null}}},7843:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(85893),s=n(67294),o=n(34151),a=n(64746),i=n(72006),l=n(96240);let c=(0,n(56817).k)(e=>({container:{display:"flex",gap:e.other.spacing._8,overflowX:"auto",alignItems:"center"},pill:{padding:"".concat(e.other.spacing._4,"px ").concat(e.other.spacing._16,"px"),backgroundColor:e.white,border:"1px solid ".concat(e.colors.gray2[1]),borderRadius:"50em",color:e.colors.gray2[6],display:"flex",alignItems:"center",gap:e.other.spacing._4,whiteSpace:"nowrap","&.isActive":{backgroundColor:e.colors.gray2[6],color:e.white,borderColor:e.colors.gray2[6]},"&.isLoading":{opacity:.5,cursor:"not-allowed"},"@media (hover: hover)":{transition:"opacity 150ms ease-in-out","&:hover":{backgroundColor:e.colors.gray2[3],borderColor:e.colors.gray2[3]}},"> svg:first-child":{marginLeft:-e.other.spacing._4},"> svg:last-child":{marginRight:-e.other.spacing._6}},clearButton:{width:20,height:20,borderRadius:20,display:"flex",alignItems:"center",justifyContent:"center",color:e.white,marginRight:-10,"&:hover":{backgroundColor:e.colors.gray2[6]}},divider:{width:1,height:24,backgroundColor:e.colors.gray2[1]},modalBody:{maxHeight:"70vh",overflowY:"auto"},drawerBody:{paddingTop:e.other.spacing._16,maxHeight:"100vh",overflowY:"auto"},modalContent:{display:"flex",flexDirection:"column",gap:e.other.spacing._16}}));var d=n(38623),u=n(38569),h=n(42744),p=n(38156),m=n(53705),f=n(12314),g=function(e){let{filter:t,setOpennedFilter:n,setIsDrawerOpen:s,clearFilters:o}=e,{classes:a,cx:i,theme:l}=c(),g=!!t.isLoading;return(0,r.jsxs)(p.kG,{className:i(a.pill,{isActive:t.isActive,isLoading:g}),onClick:()=>{g||(n(t),s(!0))},children:["SORT_BY"===t.key&&(0,r.jsx)(u.Z,{color:t.isActive?l.white:l.colors.gray2[7],size:16}),g?(0,r.jsx)(d.O,{height:20,width:50,radius:"xl"}):(0,r.jsx)(f.x,{variant:"subhead-small",children:t.activeLabel||t.title}),!g&&"SORT_BY"!==t.key&&!t.isActive&&(0,r.jsx)(m.Z,{color:t.isActive?l.white:l.colors.gray2[7]}),t.isActive&&(0,r.jsx)(p.kG,{onClick:e=>o(e)(t.key),className:a.clearButton,children:(0,r.jsx)(h.Z,{color:l.white,size:16})})]},t.key)},v=function(e){let{children:t,filters:n,onChange:d,values:u,hide:h}=e,{classes:p,theme:m}=c(),[f,v]=(0,s.useState)(u),[x,y]=(0,s.useState)(null),[b,C]=(0,s.useState)(!1),E=(0,s.useCallback)(e=>{v(t=>({...t,[null==x?void 0:x.key]:e}))},[null==x?void 0:x.key]),T=(0,s.useCallback)(e=>t=>{e.stopPropagation(),v(e=>({...e,[t]:void 0})),d({...f,[t]:void 0})},[f]),S=(0,s.useCallback)(e=>{if(C(!1),!e){d(f);return}E(e),d({...f,[null==x?void 0:x.key]:e})},[E,d,null==x?void 0:x.key,f]);return h?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.T,{backgroundColor:m.colors.gray2[0],children:[n.map(e=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(g,{filter:e,setOpennedFilter:y,setIsDrawerOpen:C,clearFilters:T}),"SORT_BY"===e.key&&(0,r.jsx)("div",{className:p.divider})]})),t]}),(0,r.jsx)(a.Z,{onClose:()=>{S()},isOpened:b,classNames:{modal:{body:p.modalBody},drawer:{body:p.drawerBody}},children:(0,r.jsxs)("div",{className:p.modalContent,children:[(0,r.jsx)(o.Z,{children:null==x?void 0:x.title}),x&&(0,r.jsx)(l.Z,{filter:x,onChange:E,onSubmit:S,onClear:T,value:f[x.key]})]})})]})}},70882:function(e,t,n){"use strict";function r(e){for(let[t,n]of Object.entries(e)){let r=n.object.key;if(n.object.type,!n.fromQuery){let n=e=>e[r]?[e[r]]:void 0;Object.assign(e[t],{fromQuery:n})}if(!n.toQuery){let n=e=>{let t=null==e?void 0:e[0];return t?{[r]:t}:{[r]:null}};Object.assign(e[t],{toQuery:n})}}return e}n.d(t,{T:function(){return r}})},64746:function(e,t,n){"use strict";var r=n(85893),s=n(64761),o=n(7001),a=n(38090),i=n(83317),l=n(51759),c=n(67294),d=n(59095);t.Z=function(e){let{children:t,isOpened:n=!0,onClose:u=()=>{},classNames:h,lockScroll:p,dataTestId:m,withCloseButton:f,closeOnClickOutside:g,size:v}=e,x=(0,s.rZ)(),y=(0,d.dD)(),[,b]=(0,i.P)(),{t:C}=(0,l.Z)("common");return((0,c.useEffect)(()=>(b(p),()=>{b(!1)}),[p,b]),y)?(0,r.jsx)(o.d,{onClose:u,closeButtonLabel:C("modal.close"),opened:n,position:"bottom",withCloseButton:f,closeOnClickOutside:g,classNames:null==h?void 0:h.drawer,styles:{header:{position:"absolute",top:0,left:0,right:0,margin:0,zIndex:2},closeButton:{position:"absolute",top:x.other.spacing._16,right:x.other.spacing._16,width:28,height:28,minHeight:28,borderRadius:"50%",color:x.colors.gray2[4],backgroundColor:x.colors.gray2[0],"&:hover":{backgroundColor:x.colors.gray2[1],color:x.colors.gray2[5]}},root:{maxHeight:"100%",overflow:"auto"},drawer:{height:"auto",position:"absolute",background:x.white,borderTopLeftRadius:x.other.spacing._32,borderTopRightRadius:x.other.spacing._32},body:{padding:x.other.spacing._16,paddingTop:0}},"data-test-id":m,children:t}):(0,r.jsx)(a.u,{transition:"pop",styles:{header:{position:"absolute",top:x.other.spacing._16,right:x.other.spacing._16,margin:0},root:{backdropFilter:"blur(2px)"},close:{zIndex:10,width:28,height:28,minHeight:28,borderRadius:"50%",color:x.colors.gray2[4],backgroundColor:x.colors.gray2[0],"&:hover":{backgroundColor:x.colors.gray2[1],color:x.colors.gray2[5]}},modal:{borderRadius:x.other.spacing._8}},centered:!0,onClose:u,closeButtonLabel:C("modal.close"),opened:n,classNames:null==h?void 0:h.modal,"data-test-id":m,withCloseButton:f,closeOnClickOutside:g,trapFocus:!1,size:v,children:t})}},23822:function(e,t,n){"use strict";var r=n(85893);n(67294);var s=n(99994),o=n(64761),a=n(64523),i=n(21017),l=n(71232),c=n(69876),d=n(36862),u=n(56497),h=n(33),p=n(46858);t.Z=function(e){let{type:t="ryp",isCardsHidden:n=!1}=e,m=(0,o.rZ)(),{classes:f}=(0,p.Z)({isCardsHidden:n}),g=e=>{switch(t){case"ryp":return"ryp";case"ofp":return"ofp";case"combo":return 1===e?"ofp":"ryp";default:return null}},v=e=>
1(0,r.jsx)(i.Z,{p:"xs",shadow:"sm",radius:"lg",className:f.mockupCard,children:(0,r.jsx)(l.Z,{className:f.mockupGroup,children:(0,r.jsxs)(l.Z,{noWrap:!0,className:f.mockupGroup,children:[(0,r.jsxs)(a.x,{className:f.mockupAvatarContainer,children:[(0,r.jsx)(a.x,{className:f.mockupAvatar}),e&&(0,r.jsx)(a.x,{className:f.mockupBadge,children:"ryp"===e?(0,r.jsx)(d.Z,{size:"micro",style:{padding:0},showWhiteBorder:!0}):(0,r.jsx)(u.Z,{size:"micro",style:{padding:0},showWhiteBorder:!0})})]}),(0,r.jsxs)(a.x,{className:f.mockupContent,children:[(0,r.jsx)(a.x,{className:f.mockupTitleBar}),(0,r.jsxs)(c.k,{className:f.mockupMetadataContainer,children:[(0,r.jsx)(a.x,{className:f.mockupMetadataBar}),(0,r.jsx)(a.x,{className:f.mockupMetadataBar}),(0,r.jsx)(a.x,{className:f.mockupMetadataBar})]})]})]})})});return(0,r.jsxs)(a.x,{className:f.welcomeHeaderContainer,children:[(0,r.jsx)(a.x,{className:f.badgeSection,children:(0,r.jsx)(c.k,{align:"center",justify:"center",gap:"combo"===t?38:m.other.spacing._16,children:(()=>{switch(t){case"ryp":return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Z,{width:60,height:60}),(0,r.jsx)(a.x,{className:f.arrowContainer,children:(0,r.jsx)(s.Z,{color:m.black,size:16})}),(0,r.jsx)(h.Z,{iconColor:m.black,width:60,height:60})]});case"ofp":return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.Z,{width:60,height:60}),(0,r.jsx)(a.x,{className:f.arrowContainer,children:(0,r.jsx)(s.Z,{color:m.black,size:16})}),(0,r.jsx)(h.Z,{iconColor:m.black,width:60,height:60})]});case"combo":return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(a.x,{className:f.comboBadgeContainer,children:[(0,r.jsx)(a.x,{className:f.comboBadgeOFP,children:(0,r.jsx)(u.Z,{width:40,height:40})}),(0,r.jsx)(a.x,{className:f.comboBadgeRYP,children:(0,r.jsx)(d.Z,{width:40,height:40})})]}),(0,r.jsx)(a.x,{className:f.arrowContainer,children:(0,r.jsx)(s.Z,{color:m.black,size:16})}),(0,r.jsx)(h.Z,{iconColor:m.black,width:60,height:60})]});default:return null}})()})}),!n&&(0,r.jsxs)(a.x,{className:f.cardSection,children:[(0,r.jsx)(a.x,{className:f.topCard,children:v(g(0))}),(0,r.jsx)(a.x,{className:f.middleCard,children:v(g(1))}),(0,r.jsx)(a.x,{className:f.bottomCard,children:v(g(2))})]})]})}},81783:function(e,t,n){"use strict";n.d(t,{D:function(){return l}});var r=n(67294),s=n(36492),o=n(62576),a=n(31736);let i=e=>["leagues",null!=e?e:"guest"],l=()=>{let{userId:e}=(0,r.useContext)(o.S);return(0,s.a)({queryKey:i(e),queryFn:()=>(0,a.n7)(),staleTime:a.wc,cacheTime:a.wc})}},65648:function(e,t,n){"use strict";var r=n(67294),s=n(51759);let o={action_required:"red",warning:"yellow"};t.Z=function(){let{t:e}=(0,s.Z)("contest");return{getActionBannerInfo:(0,r.useCallback)(t=>{var n,r;if(null==t?void 0:null===(n=t.values)||void 0===n?void 0:n.length){let[n]=t.values,s=t.values.length,a=null==n?void 0:n.message;return s>1&&(a+=" + ".concat(e("common.contestCard.banner.alert__hasPlural",{count:s-1}))),{color:null!==(r=o[n.status])&&void 0!==r?r:"gray",content:a}}},[])}}},33:function(e,t,n){"use strict";var r=n(85893),s=n(67294),o=n(17202),a=n(41874),i=n(3744),l=n(44090);let c=(0,s.forwardRef)((e,t)=>{let{size:n="medium",width:s,height:c,backgroundColor:d="#4BEBE2",iconColor:u="#fff",className:h,dataTestId:p=a.Z.designSystem.badges.splashBadge,showWhiteBorder:m=!1,style:f,...g}=e,{classes:v,cx:x}=(0,l.Z)({size:n,width:s,height:c,backgroundColor:d}),y=(s&&c?{size:s,iconHeight:.5*c}:i.K[n]).iconHeight,b={...f,...m&&{boxShadow:"0 0 0 2px white"}};return(0,r.jsx)("div",{ref:t,className:x(v.badge,h),"data-test-id":p,...g,style:b,children:(0,r.jsx)("div",{className:v.iconContainer,children:(0,r.jsx)(o.T,{height:y,color:u})})})});c.displayName="SplashBadge",t.Z=c},34151:function(e,t,n){"use strict";var r=n(85893),s=n(64761),o=n(59095),a=n(96088);t.Z=function(e){let{children:t,isAddTopPaddingOnMobile:n}=e,i=(0,o.dD)(),l=(0,s.rZ)();return(0,r.jsx)(a.D,{ta:"center",variant:"headline-large",pt:n&&i?l.other.spacing._16:0,children:t})}},72006:function(e,t,n){"use strict";n.d(t,{T:function(){return d}});var r=n(85893),s=n(67294),o=n(64523),a=n(34736),i=n(78202),l=n(864);let c=(0,n(56817).k)((e,t,n)=>{let{backgroundColor:r,controlVariant:s,withFade:o}=t,a=n("chevronChip"),i="floating"===s?e.other.spacing._16:0,l=e=>o?"floating"===s?"linear-gradient(to ".concat(e,", ").concat(r," 0%, transparent 70%)"):"linear-gradient(to ".concat(e,", ").concat(r," 40%, transparent)"):"none";return{root:{"--scroller-control-size":"50px","--scroller-control-offset":"".concat(i,"px"),"--scroller-background-color":r,display:"flex",alignItems:"center",position:"relative",overflow:"floating"===s?"visible":"hidden",maxWidth:"100%",["&:hover .".concat(a,", &:focus-within .").concat(a)]:{opacity:1,pointerEvents:"auto"},marginTop:-e.other.spacing._8,[e.fn.smallerThan("md")]:{"--scroller-control-offset":"0px"}},container:{paddingTop:e.other.spacing._8,flex:1,minWidth:0,overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none",msOverflowStyle:"none",userSelect:"none","&::-webkit-scrollbar":{display:"none"},"&[data-draggable]":{cursor:"grab"}},content:{display:"inline-flex",whiteSpace:"nowrap",gap:e.other.spacing._8},chevron:{marginTop:e.other.spacing._4,width:e.other.spacing._16,height:e.other.spacing._16},control:{display:"flex",alignItems:"center",position:"absolute",top:0,bottom:0,width:"calc(var(--scroller-control-size) + var(--scroller-control-offset))",zIndex:5,color:"var(--mantine-color-dimmed)",opacity:1,pointerEvents:"auto",transition:"opacity 200ms ease, color 150ms ease","&:hover":{color:"var(--mantine-color-text)"},"&::before":{content:'""',position:"absolute",top:0,bottom:0,width:"var(--scroller-control-size)",pointerEvents:"none"},'&:where([data-position="start"])':{insetInlineStart:"calc(var(--scroller-control-offset) * -1)",justifyContent:"flex-start","&::before":{insetInlineStart:"var(--scroller-control-offset)",background:l("right")}},'&:where([data-position="end"])':{insetInlineEnd:"calc(var(--scroller-control-offset) * -1)",justifyContent:"flex-end","&::before":{insetInlineEnd:"var(--scroller-control-offset)",background:l("left")}},"&:where([data-hidden])":{opacity:0,pointerEvents:"none"}},chevronChip:{ref:a,display:"flex",alignItems:"center",justifyContent:"center",width:36,height:36,flexShrink:0,borderRadius:e.radius.xl,background:e.white,boxShadow:e.shadows.md,color:e.colors.gray2[9],opacity:0,pointerEvents:"none",transition:"opacity 150ms ease","& svg":{marginTop:0}}}}),d=(0,s.forwardRef)((e,t)=>{let{showStartControl:n,showEndControl:d,draggable:u,scrollAmount:h,children:p,backgroundColor:m="white",controlVariant:f="plain",withFade:g=!0}=e,{classes:v}=c({backgroundColor:m,controlVariant:f,withFade:g}),x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{scrollAmount:t=200,draggable:n=!0,onScrollStateChange:r}
1=e,o=(0,s.useRef)(null),[a,i]=(0,s.useState)(!1),[l,c]=(0,s.useState)(!1),[d,u]=(0,s.useState)(!1),h=(0,s.useRef)(!1),p=(0,s.useRef)(!1),m=(0,s.useRef)(0),f=(0,s.useRef)(0),g=(0,s.useRef)(r);g.current=r;let v=(0,s.useCallback)(()=>{let e=o.current;if(e){var t;let n,r;let{scrollLeft:s,scrollWidth:o,clientWidth:a}=e;"rtl"===getComputedStyle(e).direction?(n=s<-1,r=s>-(o-a)+1):(n=s>1,r=s<o-a-1),i(n),c(r),null===(t=g.current)||void 0===t||t.call(g,{canScrollStart:n,canScrollEnd:r})}},[]);(0,s.useEffect)(()=>{v();let e=o.current;if(e){e.addEventListener("scroll",v);let t=new ResizeObserver(v);return t.observe(e),()=>{e.removeEventListener("scroll",v),t.disconnect()}}},[v]);let x=(0,s.useCallback)(e=>{let n=o.current;if(n){let r="rtl"===getComputedStyle(n).direction,s="end"===e?t:-t;n.scrollBy({left:r?-s:s,behavior:"smooth"})}},[t]),y=(0,s.useCallback)(()=>x("start"),[x]),b=(0,s.useCallback)(()=>x("end"),[x]),C=(0,s.useCallback)(e=>{if(!n)return;let t=o.current;t&&(h.current=!0,p.current=!1,u(!0),m.current=e.pageX-t.offsetLeft,f.current=t.scrollLeft,t.style.cursor="grabbing",t.style.userSelect="none")},[n]),E=(0,s.useCallback)(e=>{if(!h.current)return;e.preventDefault();let t=o.current;if(t){let n=e.pageX-t.offsetLeft-m.current;Math.abs(n)>5&&(p.current=!0),t.scrollLeft=f.current-n}},[]),T=(0,s.useCallback)(()=>{let e=p.current;h.current=!1,p.current=!1,u(!1);let t=o.current;if(t&&(t.style.cursor="",t.style.userSelect="",e)){let e=n=>{n.stopPropagation(),n.preventDefault(),t.removeEventListener("click",e,!0)};t.addEventListener("click",e,!0)}},[]),S=(0,s.useCallback)(()=>{h.current&&T()},[T]);return{ref:(0,s.useCallback)(e=>{o.current=e,e&&v()},[v]),canScrollStart:a,canScrollEnd:l,scrollStart:y,scrollEnd:b,isDragging:d,dragHandlers:{onMouseDown:C,onMouseMove:E,onMouseUp:T,onMouseLeave:S}}}({scrollAmount:h,draggable:u}),{ref:y}=x,b=(0,s.useCallback)(e=>{y(e),"function"==typeof t?t(e):t&&(t.current=e)},[y,t]),C=n||x.canScrollStart,E=d||x.canScrollEnd;return(0,r.jsxs)(o.x,{className:v.root,children:[(0,r.jsx)(a.k,{className:v.control,onClick:x.scrollStart,"data-position":"start","data-hidden":!C||void 0,"aria-label":"Scroll left",tabIndex:C?0:-1,children:"floating"===f?(0,r.jsx)("span",{className:v.chevronChip,children:(0,r.jsx)(i.e,{className:v.chevron})}):(0,r.jsx)(i.e,{className:v.chevron})}),(0,r.jsx)("div",{className:v.container,ref:b,role:"presentation","data-draggable":u||void 0,...x.dragHandlers,children:(0,r.jsx)("div",{className:v.content,children:p})}),(0,r.jsx)(a.k,{className:v.control,onClick:x.scrollEnd,"data-position":"end","data-hidden":!E||void 0,"aria-label":"Scroll right",tabIndex:E?0:-1,children:"floating"===f?(0,r.jsx)("span",{className:v.chevronChip,children:(0,r.jsx)(l.V,{className:v.chevron})}):(0,r.jsx)(l.V,{className:v.chevron})})]})});d.displayName="Scroller"},17202:function(e,t,n){"use strict";n.d(t,{T:function(){return s}});var r=n(85893);function s(e){let{height:t=24,color:n="#fff"}=e;return(0,r.jsx)("svg",{width:t/24*50,height:t,viewBox:"0 0 50 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28.0583 6.03294C30.3921 1.94108 33.6808 0.579956 37.8031 0.579956C44.115 0.579956 49.2261 5.69407 49.2261 11.9999C49.2261 18.3057 44.1122 23.4198 37.8003 23.4198H18.3136C12.0045 23.4198 6.88773 18.3085 6.88773 11.9999H10.038C10.038 15.0921 13.4398 17.5969 17.6383 17.5969C19.6217 17.5969 21.43 17.0349 22.7833 16.1171C25.0691 14.7121 25.8648 12.1657 26.6341 9.70348C27.043 8.39484 27.4445 7.10999 28.0583 6.03294ZM42.1203 6.1346C41.6626 6.59208 41.6626 7.33759 42.1203 7.79506C42.578 8.25254 43.3239 8.25254 43.7816 7.79506C44.2393 7.33759 44.2393 6.59208 43.7816 6.1346C43.3239 5.67713 42.578 5.67713 42.1203 6.1346ZM12.6949 2.495H16.1362C16.1362 6.72805 12.7034 10.1591 8.46814 10.1591C4.23289 10.1591 0.800049 6.72805 0.800049 2.495H4.24137C5.36022 2.495 6.41974 3.0033 7.11761 3.87589L8.46814 5.56177L9.81867 3.87589C10.5165 3.0033 11.5761 2.495 12.6949 2.495Z",fill:n})})}},49418:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return eN}});var r=n(85893),s=n(64761),o=n(51759),a=n(64523),i=n(9094),l=n(9666),c=n(7843),d=n(12314),u=n(54030),h=n(77497),p=n(87396),m=n(40543),f=n(56817),g=n(50224),v=n(31289),x=n(95397),y=()=>{var e;let{isReady:t,treatments:n}=(0,v.N)([g.D.ENABLE_NEW_HEADER_2]),r=(null===(e=n[g.D.ENABLE_NEW_HEADER_2])||void 0===e?void 0:e.treatment)==="on";return!t||r?x.Mz:62},b=n(41874);let C=(0,f.k)(function(e){let{headerHeight:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{main:{height:"100%",paddingTop:e.spacing.xl,paddingBottom:e.spacing.xl,display:"flex",flexDirection:"column"},subHeader:{width:"100%",background:e.colors.dark[6],[e.fn.smallerThan("sm")]:{minHeight:50}},tabs:{minHeight:39,width:"100%",background:e.colors.dark[6],position:"sticky",zIndex:9,top:t,left:0,marginBottom:e.spacing.xl},layout:{paddingLeft:e.other.layout.paddingLg,paddingRight:e.other.layout.paddingLg,[e.fn.smallerThan("lg")]:{paddingLeft:e.other.layout.paddingMd,paddingRight:e.other.layout.paddingMd},[e.fn.smallerThan("md")]:{paddingLeft:e.other.layout.paddingSm,paddingRight:e.other.layout.paddingSm},maxWidth:e.other.layout.maxWidth,width:"100%",margin:"0 auto",display:"flex",flexDirection:"column",flexGrow:1,gap:e.other.spacing._24}}});function E(e){let{children:t}=e,{classes:n}=C({});return(0,r.jsx)("section",{className:n.main,"data-test-id":b.Z.myContests.layout.main,children:t})}E.Content=function(e){let{children:t}=e,{classes:n}=C({});return(0,r.jsx)("div",{className:n.layout,"data-test-id":b.Z.myContests.layout.content.main,children:t})},E.Tabs=function(e){let{children:t}=e,{classes:n}=C({headerHeight:y()});return(0,r.jsx)("div",{className:n.tabs,"data-test-id":b.Z.myContests.layout.header.tabs.main,children:(0,r.jsx)("div",{className:n.layout,children:t})})};var T=n(38623),S=n(17684);let j=(0,f.k)(e=>({grid:{display:"grid",gap:e.spacing.md,gridTemplateColumns:"repeat(auto-fit, minmax(400px, 1fr))",[e.fn.smallerThan("lg")]:{gridTemplateColumns:"1fr 1fr"},[e.fn.smallerThan("sm")]:{gridTemplateColumns:"1fr"}}}));var _=function(e){let{numberOfSkeletons:t=9}=e,{classes:n}=j();return(0,r.jsx)("div",{"data-test-id":b.Z.myContests.layout.skeleton,children:(0,r.jsx)("div",{className:n.grid,children:(0,S.Z)(t,e=>(0,r.jsx)(T.O,{w:"100%",height:200},e))})})},k=n(19236),N=n(95117),w=n(38156);let Z=(0,f.k)(e=>({wrapper:{height:"100%",minHeight:320,width:"100%",margin:"0 auto",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},description:{textAlign:"center",marginTop:0,marginBottom:0,fontSize:16,color:e.colors.gray[4],[e.fn.smallerThan("md")]:{fontSize:12}}}));var R=function(){let{t:e}=(0,o.Z)("contest"),{classes:t}=Z(),n=(0,s.rZ)();return(0,r.jsxs)("div",{className:t.wrapper,children:[(0,r.jsx)(k.D,{fw:800,order:2,fz:{base:24,md:40},c:n.colors.gray[4],children:e("myContests.states.error.title")}),(0,r.jsx)(N.x,{component:"p",className:t.description,children:e("myContests.states.error.subtitle1")}),(0,r.jsx)(N.x,{component:"p",className:t.description,children:e("myContests.states.error.subtitle2")}),(0,r.jsx)(w.zx,{style:{marginTop:60},variant:"primary-fill",onClick:()=>window.location.reload(),children:e("myContests.states.error.action")})]})},I=n(67294),O=n(82623),A=n(97564),B=n(59095),D=(0,f.k)((e,t)=>{let{isMobile:n}=t;return{container:{display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"center",width:n?"100%":"380px",height:"auto",boxShadow:e.shadows.md},icon:{color:e.colors.gray[6]},title:{fontWeight:700,color:e.colors.gray[9]},description:{fontWeight:500,color:e.colors.gray[7],textAlign:"center",lineHeight:"20px"},actionsContainer:{marginTop:"24px",width:"100%"},actionButton:{width:"100%"}}}),M=function(e){let{title:t,description:n,icon:s,actions:o,...a}=e,{classes:i}=D({isMobile:(0,B.dD)()});
1return(0,r.jsx)(O.X,{className:i.container,p:32,radius:16,...a,children:(0,r.jsxs)(A.K,{align:"center",spacing:8,children:[s,(0,r.jsxs)(A.K,{align:"center",spacing:"xs",children:[(0,r.jsx)(d.x,{ta:"center",variant:"headline-xl",className:i.title,children:t}),(0,r.jsx)(d.x,{variant:"body-large",className:i.description,children:n})]}),(null==o?void 0:o.length)>0&&(0,r.jsx)(A.K,{spacing:12,className:i.actionsContainer,children:o.map(e=>{let{text:t,onClick:n,...s}=e;return(0,r.jsx)(w.zx,{variant:"tertiary-fill",size:"medium",onClick:n,className:i.actionButton,...s,children:t},t)})})]})})},L=n(11163),Y=n(609),F=n(87111),H=n(29793),V=n(54502),z=n(30735),P=n(62576),U=n(56209),W=n(73926),G=e=>{let{contestTab:t}=e,{isUserSignedIn:n}=(0,I.useContext)(P.S),{t:a}=(0,o.Z)("contest"),i=(0,L.useRouter)(),{query:l}=i,c=(0,s.rZ)();return(0,I.useMemo)(()=>{let e={[W.V.ACTIVE]:{title:a("entries.states.empty.active.title"),text:a("entries.states.empty.active.text"),icon:(0,r.jsx)(Y.Z,{size:60,color:c.colors.gray[4]}),actions:[{text:a("entries.states.empty.buttonText.discoverContests"),onClick:()=>i.push(V.Z.contestLobby()),variant:"secondary-fill",fullWidth:!0}]},[W.V.FINAL]:{title:a("entries.states.empty.finalized.title"),text:a("entries.states.empty.finalized.text"),icon:(0,r.jsx)(Y.Z,{size:60,color:c.colors.gray[4]}),actions:[]},[W.V.INVITES]:{title:a("entries.states.empty.invites.title"),text:a("entries.states.empty.invites.text"),actions:[],icon:(0,r.jsx)(F.Z,{size:60,color:c.colors.gray[4]})},filtered:{title:a("entries.states.empty.filtered.title"),text:a("entries.states.empty.filtered.text"),actions:[],icon:(0,r.jsx)(H.Z,{size:60,color:c.colors.gray[4]})}},s={title:a("entries.states.empty.signedOut.title"),text:a("entries.states.empty.signedOut.text"),actions:[{text:a("entries.states.empty.buttonText.signUp"),onClick:()=>i.push(V.Z.signUp()),variant:"secondary-fill",fullWidth:!0},{text:a("entries.states.empty.buttonText.signIn"),onClick:()=>i.push(V.Z.signIn()),variant:"tertiary-fill",fullWidth:!0}]};return l[z.x.CONTEST_STATUS]||l[z.x.CONTEST_TYPE]||l[z.x.LEAGUES]?e.filtered:n?e[t]||e[U.H.ACTIVE]:s},[a,t,n,i])},X=function(e){let{contestTab:t}=e,n=G({contestTab:t});return(0,r.jsx)(M,{title:n.title,description:n.text,actions:n.actions,icon:null==n?void 0:n.icon})},Q=n(52906),q=n(38867),K=n(65648),J=function(e){let{isEliminationShown:t}=e,{t:n}=(0,o.Z)("contest"),{getActionBannerInfo:r}=(0,K.Z)(),s=(0,I.useMemo)(()=>({color:"gray",content:n("common.contestCard.banner.eliminated")}),[n]);return{getMyContestBannerInfo:(0,I.useCallback)(e=>{var n;return t&&(null===(n=e.leaderboard)||void 0===n?void 0:n.isUserEliminated)?s:r(e.alerts)},[s,r,t])}};let $=(0,f.k)(e=>({grid:{display:"grid",alignItems:"stretch",gap:e.spacing.md,gridTemplateColumns:"repeat(3, 1fr)",[e.fn.smallerThan("lg")]:{gridTemplateColumns:"1fr 1fr"},[e.fn.smallerThan("sm")]:{gridTemplateColumns:"1fr"}}}));var ee=function(e){let{contests:t,contestTab:n}=e,{classes:s}=$(),{getMyContestBannerInfo:o}=J({isEliminationShown:n===W.V.ACTIVE});return(0,r.jsx)("div",{className:s.grid,"data-test-id":b.Z.myContests.layout.content.grid.main,children:null==t?void 0:t.map(e=>{var t;return(0,r.jsx)(q.Z,{isSurvivor:e.contest_type===Q.ContestType.TEAM_SURVIVOR||e.contest_type===Q.ContestType.PLAYER_SURVIVOR,leaderboard:e.status!==Q.ContestStatus.SCHEDULED?null==e?void 0:e.leaderboard:void 0,contest:e,survivor:null==e?void 0:e.survivor,isMyContestsView:!0,isManageContestEnabled:!1,isContestThumbnailShown:!0,actionBanner:o(e),currentSlateStatus:null===(t=e.slate)||void 0===t?void 0:t.status,isInvitesManagerEnabled:!1,isBadgeIconSectionEnabled:!1},e.id)})})},et=n(43223),en=n(94330),er=n(8534),es=n(85679),eo=()=>{let e=(0,L.useRouter)(),t=e.query.contestTab||W.V.ACTIVE,n=e=>{switch(e){case W.V.ACTIVE:return"Entries Active";case W.V.FINAL:return"Entries Final";default:return"Entries Invites"}};(0,I.useEffect)(()=>{(0,et.Hy)(e.pathname,n(t))},[t]);let r=(0,es.Z)({status:t!==W.V.INVITES?(e=>{switch(e){case W.V.ACTIVE:return U.H.ACTIVE;case W.V.FINAL:return U.H.FINALIZED;default:return U.H.ACTIVE}})(t):void 0,enabled:t!==W.V.INVITES}),s=(0,en.Z)({status:er.B.PENDING,enabled:t===W.V.INVITES});return{currentTab:t,contestsData:r,invitesData:s,isInvitesTab:t===W.V.INVITES,contestStatusFilter:null==r?void 0:r.contestStatusFilter,contests:null==r?void 0:r.contests}},ea=n(45983),ei=n(67553),el=n(70882),ec=n(81783),ed=()=>{let{t:e}=(0,o.Z)("contest"),{treatment:t}=(0,ei.R)(g.D.CONFIG_LOBBY_FILTERS),{data:n,isLoading:r}=(0,ec.D)(),s=(0,I.useMemo)(()=>(null==t?void 0:t.treatment)==="on"&&(null==t?void 0:t.config)?t.config.map(t=>({value:t,label:e("entries.filters.gameType.options.".concat(t))})):[],[e,t]),a=(0,I.useMemo)(()=>{var e;return null!==(e=null==n?void 0:n.map(e=>({value:e.alias,label:e.name})))&&void 0!==e?e:[]},[n]),i=(0,I.useMemo)(()=>({SORT_BY_ACTIVE:{object:{title:e("entries.filters.sortBy.title"),key:"SORT_BY",type:"single-select",options:[{label:e("entries.filters.sortBy.options.nextSlateStarting")}
1,{value:{option:"ENTERED_DATE",dir:"DESC"},label:e("entries.filters.sortBy.options.recentlyEntered")},{value:{option:"ENTRY_FEE",dir:"DESC"},label:e("entries.filters.sortBy.options.highestEntryFee")},{value:{option:"ENTRY_FEE",dir:"ASC"},label:e("entries.filters.sortBy.options.lowestEntryFee")},{value:{option:"PRIZE_POOL",dir:"DESC"},label:e("entries.filters.sortBy.options.highestTotalPrizes")}]},fromQuery:e=>{var t;return e[z.x.SORT_BY]?[{option:e[z.x.SORT_BY],dir:null!==(t=e[z.x.SORT_ORDER])&&void 0!==t?t:"ASC"}]:null},toQuery:e=>{let t=null==e?void 0:e[0];return t?{[z.x.SORT_BY]:t.option,[z.x.SORT_ORDER]:t.dir}:{[z.x.SORT_BY]:null,[z.x.SORT_ORDER]:null}}},SORT_BY_FINALIZED:{object:{title:e("entries.filters.sortBy.title"),key:"SORT_BY",type:"single-select",options:[{label:e("entries.filters.sortBy.options.recentlyEntered")},{value:{option:"ENTRY_FEE",dir:"DESC"},label:e("entries.filters.sortBy.options.highestEntryFee")},{value:{option:"ENTRY_FEE",dir:"ASC"},label:e("entries.filters.sortBy.options.lowestEntryFee")},{value:{option:"PRIZE_POOL",dir:"DESC"},label:e("entries.filters.sortBy.options.highestTotalPrizes")}]},fromQuery:e=>{var t;return e[z.x.SORT_BY]?[{option:e[z.x.SORT_BY],dir:null!==(t=e[z.x.SORT_ORDER])&&void 0!==t?t:"ASC"}]:null},toQuery:e=>{let t=null==e?void 0:e[0];return t?{[z.x.SORT_BY]:t.option,[z.x.SORT_ORDER]:t.dir}:{[z.x.SORT_BY]:null,[z.x.SORT_ORDER]:null}}},LEAGUES:{object:{title:e("entries.filters.league.title"),key:z.x.LEAGUES,type:"single-select",isLoading:r,options:[{value:void 0,label:e("entries.filters.league.options.all")},...a]}},GAME_TYPE:{object:{title:e("entries.filters.gameType.title"),key:z.x.CONTEST_TYPE,type:"single-select",options:[{value:void 0,label:e("entries.filters.gameType.options.all")},...s]}},STATUS:{object:{title:e("entries.filters.status.title"),key:z.x.CONTEST_STATUS,type:"single-select",options:[{value:void 0,label:e("entries.filters.status.options.all")},{value:U.H.ACTION_REQUIRED,label:e("entries.filters.status.options.missingPicks")},{value:U.H.SCHEDULED,label:e("entries.filters.status.options.scheduled")},{value:U.H.IN_PROGRESS,label:e("entries.filters.status.options.inProgress")}]},fromQuery:e=>e[z.x.CONTEST_STATUS]&&"ACTIVE"!==e[z.x.CONTEST_STATUS]?[e[z.x.CONTEST_STATUS]]:null},HAS_ENTRY_FEE:{object:{title:e("entries.filters.hasEntryFee.title"),key:z.x.HAS_ENTRY_FEE,type:"single-select",options:[{value:void 0,label:e("entries.filters.hasEntryFee.options.all")},{value:"true",label:e("entries.filters.hasEntryFee.options.entryFee")},{value:"false",label:e("entries.filters.hasEntryFee.options.noEntryFee")}]}}}),[e,s,a,r]);return(0,el.T)(i)},eu=function(e){let{status:t}=e,{query:n,replace:r}=(0,L.useRouter)(),s=(0,ea.N)(g.D.ENABLE_ENTRIES_ENTRY_FEE_FILTER),o=ed(),a=(0,I.useMemo)(()=>{switch(t){case U.H.FINALIZED:return[o.SORT_BY_FINALIZED,o.LEAGUES,o.GAME_TYPE,s?o.HAS_ENTRY_FEE:null].filter(Boolean);case U.H.ACTIVE:case U.H.ACTION_REQUIRED:case U.H.IN_PROGRESS:default:return[o.SORT_BY_ACTIVE,o.LEAGUES,o.GAME_TYPE,o.STATUS,s?o.HAS_ENTRY_FEE:null].filter(Boolean)}},[o.LEAGUES,o.GAME_TYPE,o.HAS_ENTRY_FEE,o.SORT_BY_ACTIVE,o.SORT_BY_FINALIZED,o.STATUS,s,t]),i=(0,I.useMemo)(()=>a?a.reduce((e,t)=>{let r=t.fromQuery(n);return r&&(e[t.object.key]=r),e},{}):{},[a,n]);return{filters:(0,I.useMemo)(()=>a.map(e=>{var t;let n=i[e.object.key];return{...e.object,isActive:void 0!==n,activeLabel:n?null===(t=e.object.options.find(e=>e.value===(null==n?void 0:n[0])))||void 0===t?void 0:t.label:void 0}}),[a,i]),values:i,onChange:(0,I.useCallback)(e=>{let t=Object.fromEntries(new URLSearchParams(window.location.search));Object.entries(e).forEach(e=>{let[n,r]=e,s=a.find(e=>e.object.key===n);if(!s)return;let o=s.toQuery(r);t={...t,...o}}),r({query:Object.fromEntries(Object.entries(t).filter(e=>{let[t,n]=e;return null!==n}))},void 0,{shallow:!0})},[a,r])}},eh=n(36155),ep=n(17436);let em=(0,f.k)(e=>({grid:{display:"grid",alignItems:"stretch",gap:e.spacing.md,gridTemplateColumns:"repeat(3, 1fr)",[e.fn.smallerThan("lg")]:{gridTemplateColumns:"1fr 1fr"},[e.fn.smallerThan("sm")]:{gridTemplateColumns:"1fr"}}}));var ef=function(e){let{invites:t}=e,{classes:n}=em(),[s,o]=(0,I.useState)(null),a=(0,eh.Z)({onSuccess:()=>{o(null)},onError:()=>{o(null)}}),i=(0,I.useCallback)(e=>{o(e),a.mutate({contestInviteId:e,payload:{status:"DECLINED"}})},[a]);return(0,r.jsx)("div",{className:n.grid,"data-test-id":b.Z.myContests.layout.content.grid.main,children:null==t?void 0:t.map(e=>(0,r.jsx)(ep.Z,{invite:e,contest:e.contest,onAccept:()=>{},onDecline:i,isLoading:a.isLoading&&s===e.id},e.id))})},eg=n(37943),ev=n(5556),ex=function(e){let{onRetry:t}=e,{t:n}=(0,o.Z)("contest");return(0,r.jsx)(ev.H,{icon:(0,r.jsx)(eg.Z,{}),title:n("myContests.states.error.invites.title"),subtitle:n("myContests.states.error.invites.subtitle"),actions:(0,r.jsx)(w.zx,{size:"medium",variant:"secondary-fill",onClick:t,children:n("myContests.states.error.invites.action")})})},ey=n(31955),eb=n(1299),eC=n(97488),eE=n(93817),eT=n(48468);let eS="my_contests_callout_dismissed";var ej=function(){let{userId:e}=(0,I.useContext)(P.S),{isReady:t,treatments:n}=(0,v.N)([g.D.SHOW_MY_CONTESTS_CALLOUT]),{treatment:s,config:o}=n[g.D.SHOW_MY_CONTESTS_CALLOUT],a="on"===s,[i,l]=(0,I.useState)(!1),c=(0,I.useMemo)(()=>
1{if(!(0,eT.n)()||!e)return null;let t=(null==o?void 0:o.key)?"".concat(eS,"_").concat(o.key):eS;return"".concat(t,"_").concat(e)},[null==o?void 0:o.key,e]);if((0,I.useEffect)(()=>{if(!c){l(!1);return}let e=ey.Z.get(c);l(t&&a&&!e)},[t,a,c]),!i)return null;let u=null==o?void 0:o.message;return u?(0,r.jsx)(eC.Z,{Icon:eb.Z,type:(null==o?void 0:o.type)||eC.$.INFO,onClose:()=>{c&&ey.Z.set(c,"true",{expires:365}),l(!1)},children:(0,r.jsx)(d.x,{tag:"div",dangerouslySetInnerHTML:{__html:(0,eE.C)(u)}})}):null},e_=function(){let{t:e}=(0,o.Z)("contest"),t=(0,s.rZ)(),n=(0,m.Z)(),f=(0,W.Z)(),{contestsData:g,invitesData:v,isInvitesTab:x,contestStatusFilter:y,contests:b}=eo(),C=x?v:g,{isLoading:T,isError:S,itemsTotal:j,fetchNextPage:k}=C,N=!x&&C.hasNextPage,w=x?v.items:b,Z=(null==w?void 0:w.length)||0,I=eu({status:y});(0,h.k)(h.P.MY_CONTESTS,!n);let{loaderRef:O}=(0,p.M)({hasMore:N,fetchMore:k}),A=N&&!T&&Z>0;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.Z,{title:e("myContests.header.title"),subMenuItems:f.tabs}),(0,r.jsx)(l.Z,{}),(0,r.jsx)(E,{children:(0,r.jsxs)(E.Content,{children:[(0,r.jsx)(ej,{}),(0,r.jsx)(c.Z,{...I,hide:x}),T?(0,r.jsx)(_,{}):S?x?(0,r.jsx)(ex,{onRetry:()=>v.refetch()}):(0,r.jsx)(R,{}):0===Z?(0,r.jsx)(X,{contestTab:f.value}):x?(0,r.jsx)(ef,{invites:v.items||[]}):(0,r.jsx)(ee,{contests:b,contestTab:f.value},"contestTab-".concat(f.value)),(0,r.jsx)(a.x,{ref:O,mt:t.spacing.md,children:A&&(0,r.jsx)(_,{numberOfSkeletons:3})}),!x&&Z>0&&(0,r.jsx)(i.M,{mt:"xl",children:(0,r.jsx)(d.x,{variant:"body-large",c:"gray.6",children:e("myContests.itemsCount",{count:Z,total:j})})})]})})]})};function ek(){return(0,r.jsx)(s.Me,{withNormalizeCSS:!0,withGlobalStyles:!0,inherit:!0,theme:{colorScheme:"light"},children:(0,r.jsx)(e_,{})})}var eN=ek;ek.hasAppBanners=!1},31736:function(e,t,n){"use strict";n.d(t,{wc:function(){return d},n7:function(){return h}});var r=n(31955),s=n(87066),o=n(2048),a=n(38281),i=n(72589);let l=s.default.create({baseURL:"".concat("https://api.splashsports.com/","games-service/api"),headers:{...o.Z}});(0,i.Q)(l),(0,a.T)(l);let c=s.default.create({baseURL:"".concat("https://api.splashsports.com/","games-service/api"),headers:{...o.Z}}),d=18e5,u=e=>({...e,isActive:e.isActive}),h=async e=>{let t=r.Z.get("accessToken")?l:c;return(await t.get("/v1/leagues",{headers:{Authorization:e?"Bearer ".concat(e):void 0}})).data.map(u)}}},function(e){e.O(0,[4030,6163,9774,2888,179],function(){return e(e.s=92552)}),_N_E=e.O()}]);
2//# sourceMappingURL=entries-8877fc586cef93d1.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.