PageSourceSearch

https://theesports.club/_next/static/chunks/1928.dad8369a2f4460e3.js

js theesports.club collected 2026-10-01 15:06:18 UTC 15,562 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1928],{40323:(e,a,s)=>{s.r(a),s.d(a,{Avatar:()=>i,AvatarFallback:()=>c,AvatarImage:()=>d});var r=s(29010),t=s(21172),l=s(11034),n=s(95755);let i=l.forwardRef(({className:e,...a},s)=>(0,r.jsx)(t.bL,{ref:s,className:(0,n.cn)("relative flex size-10 shrink-0 overflow-hidden rounded-full",e),...a}));i.displayName=t.bL.displayName;let d=l.forwardRef(({className:e,...a},s)=>(0,r.jsx)(t._V,{ref:s,className:(0,n.cn)("aspect-square size-full",e),...a}));d.displayName=t._V.displayName;let c=l.forwardRef(({className:e,...a},s)=>(0,r.jsx)(t.H4,{ref:s,className:(0,n.cn)("flex size-full items-center justify-center rounded-full bg-background-secondary",e),...a}));c.displayName=t.H4.displayName},47965:(e,a,s)=>{s.r(a),s.d(a,{default:()=>y});var r=s(29010),t=s(56284),l=s(59068),n=s(37539),i=s(95755),d=s(84440),c=s(64581),o=s(83394),m=s(11034),u=s(54445),x=s(79185),f=s(13480),h=s(40323),b=s(68095),p=s(32441);let g=()=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,r.jsx)("path",{d:"M16.8984 10C16.8984 9.44772 16.4507 9 15.8984 9H14.3984C13.8462 9 13.3984 9.44772 13.3984 10V11C13.3984 11.5523 13.8462 12 14.3984 12H15.8984C16.4507 12 16.8984 12.4477 16.8984 13V14C16.8984 14.5523 16.4507 15 15.8984 15H14.3984C13.8462 15 13.3984 14.5523 13.3984 14",stroke:"#F2F2F2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M11 9L9.5 15H8.5L7 9",stroke:"#F2F2F2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M21.25 12C21.25 17.1086 17.1086 21.25 12 21.25C6.89137 21.25 2.75 17.1086 2.75 12C2.75 6.89137 6.89137 2.75 12 2.75C17.1086 2.75 21.25 6.89137 21.25 12Z",stroke:"#F2F2F2",strokeWidth:"1.5"})]}),j=({ball:e})=>{let a=e?.label==="0"||e?.label==="",s=e?.label==="W";return["NB","WB","LB","2NB"].includes(e?.label)||e?.label?.endsWith("NB")||e?.label?.endsWith("WB")||e?.label?.endsWith("LB"),(0,r.jsx)("span",{className:(0,i.cn)("inline-flex h-7 min-w-7 items-center justify-center rounded-full px-1.5 text-[0.6875rem] font-bold",a?"border-2 border-neutral-400 bg-transparent text-transparent":s?"border border-white bg-white text-black":"border border-neutral-300 bg-white text-black"),children:a?"":e?.label})},v=({match:e,isLast:a})=>{let{liveCard:s}=e;return(0,r.jsxs)("div",{className:(0,i.cn)("rounded-lg flex w-full items-stretch gap-4 rounded-xl bg-[#1E1E1E] px-5 mobile:flex-col",!a&&"border-b "),children:[(0,r.jsxs)("div",{className:"flex basis-1/3 items-center gap-3  border-r border-neutral-600 bg-neutral-900/80 px-4 py-8 mobile:border-b mobile:border-r-0",children:[(0,r.jsxs)(h.Avatar,{className:"size-12 shrink-0",children:[(0,r.jsx)(h.AvatarImage,{src:s?.battingTeam?.logo}),(0,r.jsx)(h.AvatarFallback,{className:"bg-neutral-800 text-neutral-200",children:s?.battingTeam?.name?.charAt(0)})]}),(0,r.jsxs)("div",{className:"flex w-full flex-col gap-1.5",children:[(0,r.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 ",children:[(0,r.jsxs)("span",{className:"flex items-center gap-1 text-xs text-neutral-400",children:[(0,r.jsx)(N,{}),(0,r.jsx)(n.o,{variant:"baseSpaced/regular",className:"max-w-24 truncate text-neutral-50",children:s?.striker?.name})]}),(0,r.jsxs)("span",{className:"flex items-center gap-1",children:[(0,r.jsx)(n.o,{variant:"xs/bold",className:"tabular-nums text-warning",children:s?.striker?.runs}),(0,r.jsx)(n.o,{variant:"2xs/regular",className:"tabular-nums text-warning-700",children:s?.striker?.balls})]})]}),(0,r.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 pl-6",children:[(0,r.jsx)(n.o,{variant:"baseSpaced/regular",className:"min-w-24 truncate  text-neutral-200",children:s?.nonStriker?.name}),(0,r.jsxs)("span",{className:"flex items-center gap-1",children:[(0,r.jsx)(n.o,{variant:"xs/bold",className:"tabular-nums text-warning",children:s?.nonStriker?.runs}),(0,r.jsx)(n.o,{variant:"2xs/regular",className:"tabular-nums text-warning-700",children:s?.nonStriker?.balls})]})]})]})]}),(0,r.jsxs)("div",{className:"flex basis-1/3 flex-col items-center justify-center gap-2 px-4",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(n.o,{variant:"baseSpaced/medium",className:"text-neutral-50",children:s?.battingTeam?.name}),(0,r.jsx)(g,{}),(0,r.jsx)(n.o,{variant:"baseSpaced/medium",className:"text-neutral-50",children:s?.bowlingTeam?.name})]}),(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsxs)(n.o,{as:"span",variant:"base/medium",className:"rounded-m bg-info px-3 py-0.5 text-white ",children:[s?.battingTeam?.score,"-",s?.battingTeam?.wickets]}),(0,r.jsxs)(n.o,{variant:"base/regular",className:"text-info",children:[s?.battingTeam?.overs," Overs"]}
1)]}),(0,r.jsxs)(n.o,{variant:"base/regular",className:"uppercase tracking-wider text-neutral-300",children:["RUN RATE ",s?.runRate]})]}),(0,r.jsxs)("div",{className:"flex basis-1/3 items-center justify-end gap-3 border-l border-neutral-600 py-8 pr-4 mobile:flex-row-reverse mobile:border-l-0 mobile:border-t",children:[(0,r.jsxs)("div",{className:"flex flex-col items-end gap-1.5",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(n.o,{variant:"baseSpaced/regular",className:"max-w-32 truncate text-neutral-50",children:s?.currentBowler?.name}),(0,r.jsxs)(n.o,{variant:"baseSpaced/medium",className:"tabular-nums text-warning",children:[s?.currentBowler?.wickets,"-",s?.currentBowler?.runsConceded]}),(0,r.jsx)(n.o,{variant:"2xs/regular",className:"tabular-nums text-warning-700",children:s?.currentBowler?.overs})]}),(0,r.jsx)("div",{className:"flex items-center gap-1",children:s?.currentOverBalls?.map((e,a)=>(0,r.jsx)(j,{ball:e},a))})]}),(0,r.jsxs)(h.Avatar,{className:"size-12 shrink-0",children:[(0,r.jsx)(h.AvatarImage,{src:s?.bowlingTeam?.logo}),(0,r.jsx)(h.AvatarFallback,{className:"bg-neutral-800 text-neutral-200",children:s?.bowlingTeam?.name?.charAt(0)})]})]})]})},w=({tournament_id:e})=>{let{data:a,isLoading:s}=(0,d.I)({queryKey:["live-match",e],queryFn:async()=>{let a=await fetch(`${p.A}/bracket/tournament/live-matches?tournament_id=${e}&mode=cricket`),s=await a.json();return s?.data?.match_list??[]},refetchInterval:e=>!!e&&1e4});return s?(0,r.jsx)("div",{className:"rounded-l bg-background-secondary",children:(0,r.jsx)(b.A,{className:"w-fit max-w-fit"})}):(0,r.jsxs)("div",{className:"rounded-l bg-background-secondary",children:[(0,r.jsx)("div",{className:"border-b border-neutral-700 px-5 py-6",children:(0,r.jsx)(n.o,{variant:"xl/medium",children:"Live Match"})}),(0,r.jsx)("div",{className:"mt-2 w-full p-3",children:a?.map((e,s)=>(0,r.jsx)(v,{match:e,isLast:s===a.length-1},e.matchId))})]})},N=()=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,r.jsx)("path",{d:"M11.7024 5.91902C11.8798 5.91049 12.3044 5.99676 12.4964 6.02561C12.4168 6.15226 12.3174 6.28872 12.2309 6.41248L10.4661 8.94127L10.0764 9.49849C10.0517 9.53384 9.96938 9.66267 9.93815 9.69637C9.74092 9.9091 9.87471 10.2289 10.1711 10.1361C10.2281 10.1183 10.3795 10.0018 10.4445 9.95629L10.9066 9.63297L13.6284 7.73425C13.7056 7.68043 13.877 7.55508 13.9561 7.51526L13.9685 7.52283C13.9992 7.59266 14.0771 8.16129 14.0768 8.2555C14.0783 8.46309 14.0116 8.66543 13.8869 8.83143C13.8227 8.91686 13.7192 9.01533 13.642 9.09275L7.69829 15.0367C7.64295 15.0867 7.56456 15.1701 7.50949 15.2251L5.98163 16.7528L5.62574 17.1098C5.54345 17.1923 5.44433 17.2979 5.35189 17.3652C5.24879 17.4417 5.12615 17.4875 4.99813 17.4974C4.58236 17.529
16 4.39151 17.2566 4.12544 16.99L2.95138 15.8159C2.6914 15.5556 2.461 15.3856 2.50555 14.9785C2.53838 14.6786 2.71695 14.5391 2.91727 14.336C3.01265 14.2393 3.11025 14.1431 3.20601 14.0475L10.6576 6.59591C10.7968 6.45642 10.9341 6.31496 11.0785 6.18063C11.2623 6.00968 11.4541 5.9377 11.7024 5.91902Z",fill:"#F2F2F2"}),(0,r.jsx)("path",{d:"M13.976 5.16459C13.9934 5.17028 14.0053 5.17651 14.0184 5.18937C14.2851 5.45017 14.5483 5.71543 14.8095 5.98178C14.8257 5.99824 14.8225 5.99852 14.8239 6.01923C14.7955 6.06744 14.5722 6.27971 14.5147 6.33725L14.1152 6.7377C14.0473 6.80572 13.9456 6.91384 13.8735 6.97203C13.7925 7.0374 13.6761 7.11433 13.5885 7.17544L13.0758 7.53258C12.5856 7.87468 12.0872 8.23103 11.5939 8.56588C11.4161 8.69279 11.2369 8.8114 11.06 8.94032L12.7972 6.4445C12.8612 6.35272 12.962 6.19773 13.0289 6.11868C13.1161 6.01545 13.259 5.88123 13.3585 5.78192L13.976 5.16459Z",fill:"#F2F2F2"}),(0,r.jsx)("path",{d:"M15.4282 3.71267C15.4805 3.72754 15.789 4.05284 15.8604 4.12431L16.1149 4.37737C16.1596 4.42183 16.2471 4.50333 16.2783 4.55301C16.261 4.6152 15.3165 5.52111 15.1923 5.66387C15.1478 5.65486 14.4257 4.91214 14.329 4.81537C14.694 4.45778 15.0655 4.07521 15.4282 3.71267Z",fill:"#F2F2F2"}),(0,r.jsx)("path",{d:"M16.8427 2.50075C17.1893 2.48492 17.4834 2.72011 17.4994 3.07438C17.5046 3.18744 17.4775 3.29964 17.4214 3.39794C17.3518 3.51935 17.2224 3.62797 17.1242 3.72965C16.9683 3.89117 16.7906 4.05215 16.6397 4.21691L15.7838 3.3627C15.917 3.21464 16.0682 3.0679 16.2111 2.92859C16.4282 2.71708 16.529 2.54247 16.8427 2.50075Z",fill:"#F2F2F2"})]}),y=()=>{let{slug:e}=(0,o.useParams)(),[a,s]=(0,m.useState)(""),[h,b]=(0,m.useState)(!1),p=(0,m.useRef)(null);(0,m.useEffect)(()=>{let e=()=>b(document.fullscreenElement===p.current);return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[]);let{data:g}=(0,d.I)({queryKey:["tournaments",e],queryFn:async()=>await (0,u.K)(e)}),{data:j,isLoading:v}=(0,d.I)({queryKey:["brackets",e],enabled:!!g,refetchOnWindowFocus:!1,placeholderData:e=>e,queryFn:async()=>{if(!g)return[];{let e=await (0,x.D)(g.id);return e&&s(e[0].id),e??[]}}});if(v)return null;if(j?.length===0||!j)return(0,r.jsx)("div",{className:"flex h-[4.24rem] items-center justify-center self-stretch rounded-m bg-neutral-900 px-4",children:(0,r.jsx)(n.o,{as:"div",variant:"base/light",className:"flex items-center gap-1 text-neutral-300",children:(0,r.jsx)("span",{children:"Brackets not added yet"})})});let N=j.find(e=>e.id===a);return(0,r.jsxs)("div",{className:"shrink-0 grow basis-0 gap-2 self-stretch rounded-l bg-background-tertiary p-2",children:[(0,r.jsx)(w,{tournament_id:g?.id}),(0,r.jsxs)("div",{ref:p,className:(0,i.cn)("rounded-l bg-background-secondary",h?"flex h-full flex-col overflow-auto":"mt-2"),children:[(0,r.jsx)("div",{className:"me-6 flex  justify-end pt-6",children:(0,r.jsxs)("div",{className:"inline-flex items-center gap-4 roun
1ded-2xl border border-b-[0.8px] border-neutral-700 bg-background-secondary p-4",children:[(0,r.jsx)("div",{className:"w-36 mobile:w-full",children:(0,r.jsxs)(l.l6,{value:a,onValueChange:s,disabled:v,children:[(0,r.jsx)(l.bq,{className:(0,i.cn)("h-8 rounded-m border-none bg-primary text-sm leading-4 hover:bg-primary-600 hover:text-white/80  focus-visible:shadow-button-focus  disabled:bg-primary-800 disabled:text-white/60"),children:(0,r.jsx)(l.yv,{})}),(0,r.jsx)(l.gC,{className:"rounded-m border-none bg-background-secondary",children:j?.map(e=>(0,r.jsx)(l.eb,{value:e.id,children:e.name},e.id))})]})}),(0,r.jsx)("div",{className:"flex items-center gap-2",children:(0,r.jsx)(t.$,{variant:"neutralPrimary/m",onClick:()=>{document.fullscreenElement?document.exitFullscreen():p.current?.requestFullscreen()},children:h?(0,r.jsx)(c.A,{className:"size-4  -rotate-45 "}):(0,r.jsx)(C,{className:"size-4"})})})]})}),(0,r.jsx)("div",{className:h?"min-h-0 flex-1":"",children:(0,r.jsx)(f.A,{selectedStage:N,isSinglePlayer:g?.isSinglePlayer,isFullScreen:h})})]})]})};function C(e){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...e,children:(0,r.jsx)("path",{d:"M3.66699 8.33268V10.9993C3.66699 11.7357 4.26395 12.3327 5.00033 12.3327H7.66699M8.33366 3.66602H11.0003C11.7367 3.66602 12.3337 4.26297 12.3337 4.99935V7.66602",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round"})})}},59068:(e,a,s)=>{s.d(a,{bq:()=>u,eb:()=>b,gC:()=>h,l6:()=>o,yv:()=>m});var r=s(29010),t=s(95755),l=s(16180),n=s(31556),i=s(28357),d=s(80726),c=s(11034);let o=l.bL;l.YJ;let m=l.WT,u=c.forwardRef(({className:e,children:a,...s},i)=>(0,r.jsxs)(l.l9,{ref:i,className:(0,t.cn)("rounded-md border-input ring-offset-background focus:ring-ring flex h-9 w-full items-center justify-between whitespace-nowrap border bg-transparent px-3 py-2 text-sm shadow-sm focus:outline-none focus:ring-1 disabled:cursor-not-allowed disabled:opacity-50 data-[placeholder]:text-neutral-300 [&>span]:line-clamp-1",e),...s,children:[a,(0,r.jsx)(l.In,{asChild:!0,children:(0,r.jsx)(n.A,{className:"size-4 opacity-50"})})]}));u.displayName=l.l9.displayName;let x=c.forwardRef(({className:e,...a},s)=>(0,r.jsx)(l.PP,{ref:s,className:(0,t.cn)("flex cursor-default items-center justify-center py-1",e),...a,children:(0,r.jsx)(i.A,{className:"size-4"})}));x.displayName=l.PP.displayName;let f=c.forwardRef(({className:e,...a},s)=>(0,r.jsx)(l.wn,{ref:s,className:(0,t.cn)("flex cursor-default items-center justify-center py-1",e),...a,children:(0,r.jsx)(n.A,{className:"size-4"})}));f.displayName=l.wn.displayName;let h=c.forwardRef(({className:e,children:a,position:s="popper",...n},i)=>{let d=c.useCallback(e=>{e.stopPropagation()},[]);return(0,r.jsx)(l.ZL,{children:(0,r.jsxs)(l.UC,{ref:i,className:(0,t.cn)("rounded-md bg-popover text-popover-foreground relative z-[1100] max-h-96 min-w-32 overflow-hidden border shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===s&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:s,onWheel:e=>d(e),...n,children:[(0,r.jsx)(x,{}),(0,r.jsx)(l.LM,{className:(0,t.cn)("p-1","popper"===s&&"w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),(0,r.jsx)(f,{})]})})});h.displayName=l.UC.displayName,c.forwardRef(({className:e,...a},s)=>(0,r.jsx)(l.JU,{ref:s,className:(0,t.cn)("px-2 py-1.5 text-sm font-semibold",e),...a})).displayName=l.JU.displayName;let b=c.forwardRef(({className:e,children:a,...s},n)=>(0,r.jsxs)(l.q7,{ref:n,className:(0,t.cn)("rounded-sm focus:bg-accent focus:text-accent-foreground relative flex w-full cursor-default select-none items-center py-1.5 pl-2 pr-8 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...s,children:[(0,r.jsx)("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:(0,r.jsx)(l.VF,{children:(0,r.jsx)(d.A,{className:"size-4"})})}),(0,r.jsx)(l.p4,{children:a})]}));b.displayName=l.q7.displayName,c.forwardRef(({className:e,...a},s)=>(0,r.jsx)(l.wv,{ref:s,className:(0,t.cn)("bg-muted -mx-1 my-1 h-px",e),...a}
1)).displayName=l.wv.displayName},79185:(e,a,s)=>{s.d(a,{D:()=>t});var r=s(4760);let t=(0,r.createServerReference)("40e454da17ef9ec28c19e5303a84596235dfaafabf",r.callServer,void 0,r.findSourceMapURL,"getTournamentStagesById")},85516:(e,a,s)=>{s.d(a,{U:()=>t});var r=s(11034);function t(e){let[a,s]=r.useState(!1);return r.useEffect(()=>{function a(e){s(e.matches)}let r=matchMedia(e);return r.addEventListener("change",a),s(r.matches),()=>r.removeEventListener("change",a)},[e]),a}}}]);

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.