1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3537,6771],{2317:(e,t,l)=>{l.d(t,{A:()=>a});let a=(0,l(71847).A)("gamepad-2",[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]])},3537:(e,t,l)=>{l.r(t),l.d(t,{UpComingTournaments:()=>p,default:()=>f});var a=l(95155),n=l(12115),r=l(15239),s=l(52619),c=l.n(s),i=l(21001),d=l.n(i),o=l(76771),x=l(39880),m=l(93423),u=l(24274),h=l(34963);let y=(e,t)=>t?e.filter(e=>e.alias!==t):e,p=e=>{var t,l,s,i,p,f;let{tournamentType:g,excludeAlias:v}=e,{t:k}=(0,u.Bd)("screen"),[A,b]=(0,n.useState)(null),[j,N]=(0,n.useState)(!0);(0,n.useEffect)(()=>{N(!0);let e="upcoming:".concat(null!=g?g:"all");(0,m.H)(e,()=>(0,x.l5)(g)).then(e=>{N(!1),(null==e?void 0:e.success)&&(null==e?void 0:e.data)&&"object"==typeof e.data&&!Array.isArray(e.data)&&b(e.data)}).catch(()=>N(!1))},[g]);let w=[...y(null!=(t=null==A?void 0:A.solo)?t:[],v),...y(null!=(l=null==A?void 0:A.teams)?l:[],v)];return j?(0,a.jsx)(o.CardSection,{label:String(null!=(s=k("tournament.details.upcoming.title"))?s:"Upcoming Tournaments"),variant:"glass",children:(0,a.jsx)("div",{className:"flex flex-col gap-3",children:Array.from({length:4}).map((e,t)=>(0,a.jsx)(h.jY,{},"t-card-".concat(t)))})}):w.length?(0,a.jsx)(o.CardSection,{label:String(null!=(f=k("tournament.details.upcoming.title"))?f:"Upcoming Tournaments"),variant:"glass",children:(0,a.jsx)("div",{className:"flex flex-col gap-3",children:w.map(e=>{var t,l,n,s,i,o,x,m;let u=null!=(o=null!=(i=null==(l=e.images)||null==(t=l.find(e=>null==e?void 0:e.is_primary))?void 0:t.image_url)?i:null==(s=e.images)||null==(n=s[0])?void 0:n.image_url)?o:null,h=e.alias||e.id,y=e.is_for_teams?"/tournaments/teams/".concat(h):"/tournaments/solo/".concat(h);return(0,a.jsxs)(c(),{href:y,className:"flex gap-3 p-2 rounded-lg bg-white/[0.03] border border-white/10 hover:bg-white/[0.06] transition-colors",children:[(0,a.jsx)("div",{className:"relative w-14 h-14 shrink-0 rounded-lg overflow-hidden bg-white/[0.06]",children:u?(0,a.jsx)(r.default,{src:u,alt:e.name||String(null!=(x=k("tournament.details.common.tournament"))?x:"Tournament"),fill:!0,className:"object-cover",sizes:"56px"}):(0,a.jsx)("div",{className:"w-full h-full flex items-center justify-center text-neutral-one text-xs",children:"â"})}),(0,a.jsxs)("div",{className:"min-w-0 flex-1 flex flex-col justify-center gap-0.5",children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-tertiary line-clamp-2",children:e.name||String(null!=(m=k("tournament.details.common.tournament"))?m:"Tournament")}),(0,a.jsx)("p",{className:"text-xs text-neutral-one",children:((e,t)=>{if(!e&&!t)return"â";let l=e?d()(e).format("Do MMM YYYY"):"",a=t?d()(t).format("Do MMM YYYY"):"";return l&&a?"".concat(l," â ").concat(a):l||a})(e.start_date,e.end_date)})]})]},e.id)})})}):(0,a.jsx)(o.CardSection,{label:String(null!=(i=k("tournament.details.upcoming.title"))?i:"Upcoming Tournaments"),variant:"glass",children:(0,a.jsx)("p",{className:"text-sm text-neutral-one",children:String(null!=(p=k("tournament.details.upcoming.empty"))?p:"No upcoming tournaments.")})})},f=p},6613:(e,t,l)=>{l.d(t,{A:()=>a});let a=(0,l(71847).A)("trophy",[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]])},8198:(e,t,l)=>{l.d(t,{A:()=>a});let a=(0,l(71847).A)("flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]])},16485:(e,t,l)=>{l.d(t,{A:()=>a});let a=(0,l(71847).A)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},26983:(e,t,l)=>{l.d(t,{A:()=>a});let a=(0,l(71847).A)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},27937:(e,t,l)=>{l.d(t,{A:()=>a});let a=(0,l(71847).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},39068:(e,t,l)=>{l.d(t,{A:()=>a});let a=(0,l(71847).A)("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"}]])},76378:(e,t,l)=>{l.d(t,{A:()=>a});let a=(0,l(71847).A)("medal",[["path",{d:"M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15",key:"143lza"}],["path",{d:"M11 12 5.12 2.2",key:"qhuxz6"}],["path",{d:"m13 12 5.88-9.8",key:"hbye0f"}],["path",{d:"M8 7h8",key:"i86dvs"}],["circle",{cx:"12",cy:"17",r:"5",key:"qbz8iq"}],["path",{d:"M12 18v-2h-.5",key:"fawc4q"}]])},76771:(e,t,l)=>{l.r(t),l.d(t,{CardChip:()=>j,CardIconInfo:()=>w,CardSection:()=>N,CategoryCardComp:()=>S,IconLabelInfo:()=>M,ProgressBar:()=>
1_,SectionDetails:()=>C,iconMap:()=>b});var a=l(95155);l(12115);var n=l(91169),r=l(6613),s=l(76378),c=l(85921),i=l(87473),d=l(2317),o=l(26983),x=l(16485),m=l(90368),u=l(27937),h=l(57828),y=l(1524),p=l(84382),f=l(8198),g=l(21786),v=l(39068),k=l(83457),A=l(80526);let b={users:n.A,trophy:r.A,medal:s.A,play:c.A,mission:i.A,game:d.A,clock:o.A,calender:x.A,left:m.A,right:u.A,eye:h.A,trend:y.A,news:p.A,flame:f.A,upload:g.A,globe:v.A,heart:k.A};function j(e){let{label:t,style:l,contClass:n="bg-primary border-surface-elevated",color:r="var(--tertiary)",bg:s="",onClick:c}=e;return t?(0,a.jsx)("div",{onClick:c,className:"bg-[".concat(s,"] ").concat(c?"cursor-pointer":""," border rounded-full px-3 py-1 text-center text-xs [1600px]:text-sm text-[").concat(r,"] font-semibold flex-shrink-0 min-w-[45px] w-fit capitalize ").concat(n),style:l,children:t}):null}function N(e){let{label:t="",children:l,contClass:n="",variant:r="default"}=e;return(0,a.jsxs)("div",{className:"".concat("glass"===r?"glass border-[hsl(228_20%_20%_/_0.5)]":"bg-[var( --surface-primary)] border-[var(--borderThree)]"," border p-2 sm:p-4 gap:-2 gap-4 rounded-[16px] flex flex-col ").concat(n),children:[t&&(0,a.jsx)("h1",{className:"text-lg lg:text-xl font-semibold text-[var(--tertiary)]",children:t}),l]})}function w(e){let{list:t,minWidth:l="7.5rem"}=e;return(0,a.jsx)("div",{className:"grid grid-cols-2 gap-6 my-2",children:null==t?void 0:t.map((e,t)=>{let n=b[e.icon];return(0,a.jsxs)("div",{className:"flex items-center gap-2 rounded-xl ".concat((t+1)%2==0?"justify-self-end":""),children:[n&&(0,a.jsx)("div",{className:"rounded-xl bg-[var(--bgThree)] p-2 sm:p-3 flex items-center justify-center",children:(0,a.jsx)(n,{className:"w-5 h-5 sm:w-6 sm:h-6 xl:w-7 xl:h-7",style:{color:e.color||"var(--tertiary)"}})}),(0,a.jsxs)("div",{className:"flex flex-col items-start text-left",style:{minWidth:l},children:[(0,a.jsx)("h3",{className:"text-base sm:text-lg xl:text-xl 2xl:text-2xl font-bold",style:{color:e.color||"var(--tertiary)"},children:e.label}),(0,a.jsx)("p",{className:"text-xs sm:text-sm md:text-base xl:text-lg 2xl:text-xl text-neutral-one",children:e.description})]})]},t)})})}function M(e){let{icon:t,label:l,labelStyle:n={},contStyle:r={}}=e,s=b[t];return(0,a.jsxs)("div",{className:"flex gap-2 text-brand-gradient",style:r,children:[s&&(0,a.jsx)(s,{className:"w-6 h-6"}),(0,a.jsx)("h3",{className:"text-lg font-bold",style:n,children:l})]})}function C(e){let{list:t,contClass:l}=e;return t&&(null==t?void 0:t.length)!==0?(0,a.jsx)("div",{className:"flex flex-wrap gap-6 w-full my-2 border border-surface-elevated bg-tertiary-gradient rounded-2xl mx-2 sm:mx-1 mt-2 py-5 ".concat(l),children:t.map((e,t)=>(0,a.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center text-center ",children:[(0,a.jsx)("h3",{className:"text-xl font-bold",style:{color:e.color||"var(--tertiary)"},children:e.label}),(0,a.jsx)("p",{className:"text-sm text-[var(--tertiary)] w-fit min-w-[100px]",children:e.description})]},t))}):null}function _(e){let{label:t,count:l,maxCount:n,fillStyle:r={},contStyle:s={},showPercent:c=!1,showCount:i=!0,barClass:d="bg-brand-dull-gradient h-4",fillClass:o="bg-brand-gradient",labelClass:x=""}=e,m=Math.max(0,Math.min(l,n)),u=n>0?m/n*100:0;return(0,a.jsxs)("div",{className:"w-full space-y-1 my-1",children:[i&&(0,a.jsxs)("div",{className:"flex justify-between font-semibold",children:[(0,a.jsx)("span",{className:(0,A.cn)("text-xs text-tertiary",x),children:t}),(0,a.jsx)("span",{className:(0,A.cn)("text-xs text-tertiary",x),children:c?"".concat(l,"%"):"".concat(m,"/").concat(n)})]}),(0,a.jsx)("div",{className:(0,A.cn)("w-full rounded-full overflow-hidden",d),style:{...s},children:(0,a.jsx)("div",{className:(0,A.cn)("h-full rounded-full transition-all duration-500",o),style:{width:"".concat(u,"%"),...r}})})]})}function S(e){let{categories:t,maxVisible:l=2,children:n,contClass:r="",chipClass:s}=e,c=null==t?void 0:t.slice(0,l),i=(null==t?void 0:t.length)-l,d=l>2;if((null==c?void 0:c.length)>0)return(0,a.jsxs)("div",{className:"flex gap-2 mt-1 ".concat(d?"flex-wrap":"flex-nowrap overflow-x-auto scrollbar-hide"," ").concat(r),children:[null==c?void 0:c.map((e,t)=>(0,a.jsx)(j,{label:e,contClass:s},t)),i>0&&(0,a.jsx)(j,{label:"+".concat(i),contClass:s}),n]})}},83457:(e,t,l)=>{l.d(t,{A:()=>a});let a=(0,l(71847).A)("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]])},85921:(e,t,l)=>{l.d(t,{A:()=>a});let a=(0,l(71847).A)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]])},87473:(e,t,l)=>{l.d(t,{A:()=>a});let a=(0,l(71847).A)("disc-2",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 12h.01",key:"1mp3jc"}]])},90368:(e,t,l)=>{l.d(t,{A:()=>a});let a=(0,l(71847).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},91169:(e,t,l)=>{l.d(t,{A:()=>a});let a=(0,l(71847).A)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},93423:(e,t,l)=>{l.d(t,{H:()=>n});let a=new Map;function n(e,t){let l=a.get(e);if(l)return l;let n=t().finally(()=>{a.delete(e)});return a.set(e,n),n}}}]);
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.