PageSourceSearch

https://www.crickcore.com/_next/static/chunks/20tkqjd2ajpcy.js

js crickcore.com collected 2026-09-24 13:45:34 UTC 37,460 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,19827,e=>{"use strict";var t=e.i(43476),s=e.i(71645),a=e.i(70703),r=e.i(18566),l=e.i(79334),i=e.i(82780),n=e.i(57688),c=e.i(69176);function o({iso:e}){let s=(0,c.useLocalDate)(e,{utc:e=>`${c.MONTH_ABBR[e.getUTCMonth()]} ${e.getUTCDate()}, ${e.getUTCFullYear()}`,local:e=>e.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})},"");return(0,t.jsx)("span",{children:s})}function d({liveMatches:e,upcomingMatches:a,heroBannerPlayers:r,onSlideClick:l}){let[i,c]=(0,s.useState)(0),[m,x]=(0,s.useState)(!1),[h,p]=(0,s.useState)("left"),g=[];e.forEach(e=>{e.isLive?g.push({type:"live",data:e}):g.push({type:"recent",data:e})}),a.slice(0,2).forEach(e=>g.push({type:"upcoming",data:e})),r.forEach(({format:e,player:t})=>g.push({type:"player",data:t,format:e}));let u=(0,s.useCallback)(()=>{g.length<=1||(p("left"),x(!0),setTimeout(()=>{c(e=>(e+1)%g.length),x(!1)},400))},[g.length]),f=(0,s.useCallback)(()=>{g.length<=1||(p("right"),x(!0),setTimeout(()=>{c(e=>(e-1+g.length)%g.length),x(!1)},400))},[g.length]);(0,s.useEffect)(()=>{if(g.length<=1)return;let e=setInterval(u,6e3);return()=>clearInterval(e)},[u,g.length,i]),(0,s.useEffect)(()=>{if("u">typeof document)return document.documentElement.setAttribute("data-hero-mounted","true"),()=>{document.documentElement.removeAttribute("data-hero-mounted")}},[]);let b=g[i%g.length],j=(0,s.useCallback)(()=>{b&&l&&l(b.type,b.data)},[b,l]),v={transform:m?`translateX(${"left"===h?"-30px":"30px"})`:"translateX(0)",opacity:+!m,transition:"transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease"};return(0,t.jsxs)("div",{className:"relative w-full h-[280px] sm:h-[340px] md:h-[400px] lg:h-[420px] overflow-hidden",children:[(0,t.jsx)("div",{className:"absolute inset-0 animate-hero-zoom bg-cover bg-center",style:{backgroundImage:"url(/hero/stadium-default1.svg)"}}),(0,t.jsx)("div",{className:"absolute inset-0",style:{background:"linear-gradient(135deg, rgba(5,11,30,0.95) 0%, rgba(17,30,69,0.8) 100%)"}}),(0,t.jsx)("div",{className:"absolute inset-0 hero-mesh pointer-events-none","aria-hidden":!0}),(0,t.jsx)("div",{className:"absolute inset-0 hero-vignette pointer-events-none","aria-hidden":!0}),(0,t.jsxs)("div",{className:"relative z-10 h-full flex flex-col justify-center max-w-[1400px] w-full mx-auto px-6 sm:px-8 md:px-12 lg:px-16",children:[(0,t.jsxs)("div",{className:"flex items-center justify-center",children:[(0,t.jsx)("div",{className:"flex-1 max-w-3xl text-center cursor-pointer",style:v,onClick:j,children:(()=>{if(!b)return(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-3xl sm:text-4xl md:text-5xl font-heading font-extrabold text-white mb-3",children:"CrickCore"}),(0,t.jsx)("p",{className:"text-base sm:text-lg text-white/80",children:"Your premium cricket destination"})]});if("live"===b.type){let e=b.data;return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2 mb-3",children:[(0,t.jsx)("span",{className:"w-2.5 h-2.5 rounded-full bg-white animate-live-breathe"}),(0,t.jsx)("span",{className:"text-xs sm:text-sm font-bold text-white uppercase tracking-wider",children:"Live Now"})]}),(0,t.jsxs)("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-heading font-extrabold text-white mb-2",children:[e.team1," vs ",e.team2]}),(0,t.jsxs)("div",{className:"flex items-center justify-center gap-4 sm:gap-6 text-white/90",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-6 h-6 sm:w-8 sm:h-8 flex-shrink-0",children:e.team1Logo&&(0,t.jsx)(n.default,{src:e.team1Logo,alt:e.team1,width:32,height:32,sizes:"(max-width: 640px) 24px, 32px",className:"w-full h-full object-contain",loading:"eager"})}),(0,t.jsx)("span",{className:"font-mono font-bold text-lg sm:text-xl",children:e.team1Score||"—"})]}),(0,t.jsx)("span",{className:"text-white/50 text-sm",children:"vs"}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-6 h-6 sm:w-8 sm:h-8 flex-shrink-0",children:e.team2Logo&&(0,t.jsx)(n.default,{src:e.team2Logo,alt:e.team2,width:32,height:32,sizes:"(max-width: 640px) 24px, 32px",className:"w-full h-full object-contain",loading:"eager"})}),(0,t.jsx)("span",{className:"font-mono font-bold text-lg sm:text-xl",children:e.team2Score||"—"})]})]}),e.status&&(0,t.jsx)("p",{className:"text-sm text-white/70 mt-2",children:e.status})]})}if("recent"===b.type){let e=b.data;return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"flex items-center justify-center gap-2 mb-3",children:(0,t.jsx)("span",{className:"text-xs sm:text-sm font-bold text-gold-light uppercase tracking-wider",children:"Result"})}),(0,t.jsxs)("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-heading font-extrabold text-white mb-2",children:[e.team1," vs ",e.team2]}),(0,t.jsxs)("div",{className:"flex items-center justify-center gap-4 sm:gap-6 text-white/90",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-6 h-6 sm:w-8 sm:h-8 flex-shrink-0",children:e.team1Logo&&(0,t.jsx)(n.default,{src:e.team1Logo,alt:e.team1,width:32,height:32,sizes:"(max-width: 640px) 24px, 32px",className:"w-full h-full object-contain",loading:"eager"})}),(0,t.jsx)("span",{className:"font-mono font-bold text-lg sm:text-xl",children:e.team1Score||"—"})]}),(0,t.jsx)("span",{className:"text-white/50 text-sm",children:"vs"}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-6 h-6 sm:w-8 sm:h-8 flex-shrink-0",children:e.team2Logo&&(0,t.jsx)(n.default,{src:e.team2Logo,alt:e.team2,width:32,height:32,sizes:"(max-width: 640px) 24px, 32px",className:"w-full h-full object-contain",loading:"eager"})}),(0,t.jsx)("span",{className:"font-mono font-bold text-lg sm:text-xl",children:e.team2Score||"—"})]})]}),(0,t.jsx)("p",{className:"text-sm text-white/70 mt-2",children:e.result?.message||e.status})]})}if("upcoming"===b.type){let e=b.data;return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"flex items-center justify-center gap-2 mb-3",children:(0,t.jsx)("span",{className:"text-xs sm:text-sm font-bold text-gold-light uppercase tracking-wider",children:"Upcoming"})}),(0,t.jsxs)("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-heading font-extrabold text-white mb-2",children:[e.team1," vs ",e.team2]}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-3 text-white/80 text-sm",children:[e.format&&(0,t.jsx)("span",{className:"px-2 py-0.5 bg-white/15 rounded text-xs font-bold uppercase",children:e.format}),e.date&&(0,t.jsx)(o,{iso:e.date}),e.series&&(0,t.jsxs)("span",{className:"text-white/60",children:["• ",e.series]})]})]})}if("player"===b.type){let e=b.data,s=b.format||"";return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"flex items-center justify-center gap-2 mb-3",children:(0,t.jsxs)("span",{className:"text-xs sm:text-sm font-bold text-gold-light uppercase tracking-wider",children:["Top ",s," Batter"]})}),(0,t.jsx)("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-heading font-extrabold text-white mb-2",children:e.name}),(0,t.jsxs)("div",{className:"flex items-center justify-center gap-4 text-white/80 text-sm",children:[(0,t.jsx)("span",{children:e.country}),(0,t.jsx)("span",{className:"text-white/40",children:"•"}),(0,t.jsxs)("span",{className:"font-mono font-bold text-gold-light",children:[e.rating," Rating"]}),(0,t.jsx)("span",{className:"text-white/40",children:"•"}),(0,t.jsxs)("span",{children:["#",e.rank," in World"]})]})]})}return null})()}),(0,t.jsx)("div",{className:"hidden lg:flex items-center justify-center w-40 flex-shrink-0",children:(0,t.jsxs)("svg",{className:"w-20 h-20 animate-ball-float opacity-30",viewBox:"0 0 100 100",fill:"none",children:[(0,t.jsx)("circle",{cx:"50",cy:"50",r:"45",stroke:"white",strokeWidth:"2",fill:"rgba(17,30,69,0.4)"}),(0,t.jsx)("path",{d:"M30 25 Q50 50 30 75",stroke:"white",strokeWidth:"1.5",fill:"none",strokeDasharray:"4 3"}),(0,t.jsx)("path",{d:"M70 25 Q50 50 70 75",stroke:"white",strokeWidth:"1.5",fill:"none",strokeDasharray:"4 3"})]})})]}),g.length>1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{onClick:f,className:"absolute left-2 sm:left-4 top-1/2 -translate-y-1/2 w-9 h-9 sm:w-11 sm:h-11 rounded-full bg-white/10 backdrop-blur-md ring-1 ring-white/15 shadow-[0_8px_20px_-6px_rgba(0,0,0,0.5)] flex items-center justify-center hover:bg-white/20 hover:ring-pitch/40 transition-[background-color,transform,box-shadow] duration-300 active:scale-95","aria-label":"Previous slide",children:(0,t.jsx)("svg",{className:"w-4 h-4 sm:w-5 sm:h-5 text-white",f
1ill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.5,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"})})}),(0,t.jsx)("button",{onClick:u,className:"absolute right-2 sm:right-4 top-1/2 -translate-y-1/2 w-9 h-9 sm:w-11 sm:h-11 rounded-full bg-white/10 backdrop-blur-md ring-1 ring-white/15 shadow-[0_8px_20px_-6px_rgba(0,0,0,0.5)] flex items-center justify-center hover:bg-white/20 hover:ring-pitch/40 transition-[background-color,transform,box-shadow] duration-300 active:scale-95","aria-label":"Next slide",children:(0,t.jsx)("svg",{className:"w-4 h-4 sm:w-5 sm:h-5 text-white",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.5,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"})})})]}),g.length>1&&(0,t.jsx)("div",{className:"absolute bottom-4 sm:bottom-6 left-1/2 -translate-x-1/2 flex gap-2",children:g.map((e,s)=>(0,t.jsx)("button",{onClick:()=>{s!==i%g.length&&(p(s>i%g.length?"left":"right"),x(!0),setTimeout(()=>{c(s),x(!1)},400))},className:`h-1.5 rounded-full transition-[background-color,transform] duration-300 ${s===i%g.length?"w-6 bg-white":"w-1.5 bg-white/40 hover:bg-white/60"}`,"aria-label":`Go to slide ${s+1}`},s))})]})]})}var m=e.i(22016),x=e.i(63209),h=e.i(87316),p=e.i(46897),g=e.i(75254);let u=(0,g.default)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]),f=(0,g.default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function b(e){let t=`${c.MONTH_ABBR[e.getUTCMonth()]} ${e.getUTCDate()}`,s=e.getUTCHours(),a=String(e.getUTCMinutes()).padStart(2,"0");return{dayLabel:t,time:`${String(s%12==0?12:s%12).padStart(2,"0")}:${a} ${s<12?"AM":"PM"}`}}function j(e){let t=e=>Math.floor((e.getTime()-6e4*e.getTimezoneOffset())/864e5),s=t(e),a=t(new Date);return{dayLabel:s===a?"Today":s===a+1?"Tomorrow":e.toLocaleDateString("en-US",{month:"short",day:"numeric"}),time:e.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0})}}let v=(0,s.memo)(function({match:e,onClick:s}){let a=(0,c.useLocalDate)(e.date,{utc:b,local:j},null);return(0,t.jsxs)("div",{onClick:s,className:"bg-card rounded-lg p-2.5 sm:p-3 border border-border hover:border-pitch hover:shadow-md transition-[box-shadow,transform,border-color] duration-300 ease-out cursor-pointer group hover:-translate-y-0.5",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-2.5 sm:mb-3",children:[e.format&&(0,t.jsx)("div",{className:"px-2 py-0.5 sm:px-2.5 sm:py-1 bg-pitch rounded-md",children:(0,t.jsx)("span",{className:"text-[9px] sm:text-[10px] font-bold text-white uppercase leading-tight",children:e.format})}),a&&(0,t.jsxs)("div",{className:"flex items-center gap-1 sm:gap-1.5",children:[(0,t.jsx)(u,{className:"w-3 h-3 sm:w-3.5 sm:h-3.5 text-text-muted"}),(0,t.jsx)("span",{className:"text-[10px] sm:text-xs text-text-secondary font-medium",children:a.dayLabel}),(0,t.jsx)("span",{className:"text-[10px] sm:text-xs text-text-muted",children:a.time})]})]}),(0,t.jsxs)("div",{className:"space-y-2 mb-2 sm:mb-2.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 sm:gap-2",children:[(0,t.jsx)("div",{className:"w-6 h-6 sm:w-7 sm:h-7 flex-shrink-0",children:e.team1Logo&&(0,t.jsx)(n.default,{src:e.team1Logo,alt:e.team1,width:28,height:28,sizes:"28px",className:"w-full h-full object-contain"})}),(0,t.jsx)("span",{className:"text-xs sm:text-sm font-heading font-bold text-text",children:e.team1})]}),(0,t.jsx)("div",{className:"flex items-center justify-center",children:(0,t.jsxs)("div",{className:"px-2 py-0.5 sm:px-2.5 sm:py-1 bg-pitch rounded-full flex items-center gap-1",children:[(0,t.jsx)(f,{className:"w-3 h-3 sm:w-3.5 sm:h-3.5 fill-white text-white"}),(0,t.jsx)("span",{className:"text-[9px] sm:text-[10px] font-bold text-white uppercase",children:"VS"})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 sm:gap-2 justify-end",children:[(0,t.jsx)("span",{className:"text-xs sm:text-sm font-heading font-bold text-text",children:e.team2}),(0,t.jsx)("div",{className:"w-6 h-6 sm:w-7 sm:h-7 flex-shrink-0",children:e.team2Logo&&(0,t.jsx)(n.default,{src:e.team2Logo,alt:e.team2,width:28,height:28,sizes:"28px",className:"w-full h-full object-contain"})})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 sm:gap-3 pt-2 sm:pt-2.5 border-t border-border",children:[e.series&&(0,t.jsxs)("div",{className:"flex items-center gap-1 sm:gap-1.5 flex-1 min-w-0",children:[(0,t.jsx)(h.Calendar,{className:"w-3 h-3 sm:w-3.5 sm:h-3.5 text-pitch flex-shrink-0"}),(0,t.jsx)("p",{className:"text-[10px] sm:text-xs text-text-secondary truncate",children:e.series})]}),e.venue&&(0,t.jsxs)("div",{className:"flex items-center gap-1 sm:gap-1.5 flex-shrink-0",children:[(0,t.jsx)(p.MapPin,{className:"w-3 h-3 sm:w-3.5 sm:h-3.5 text-text-muted flex-shrink-0"}),(0,t.jsx)("p",{className:"text-[10px] sm:text-xs text-text-muted truncate max-w-[100px] sm:max-w-[120px]",children:e.venue})]})]})]})});var w=e.i(88442);function N({matches:e,loading:s,error:a,onRetry:r,onMatchClick:l}){return(0,t.jsx)("div",{className:"xl:col-span-3 order-1 xl:order-1 min-h-[480px] md:min-
1h-[560px] lg:min-h-[640px]",children:s?(0,t.jsxs)("div",{className:"bg-card rounded-xl shadow-xl border border-border p-3 sm:p-4 md:p-5 sticky top-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 sm:gap-3 mb-3 sm:mb-4 pb-2 sm:pb-3 border-b border-border",children:[(0,t.jsx)("div",{className:"skeleton p-1.5 sm:p-2 w-8 h-8 sm:w-9 sm:h-9 rounded-lg"}),(0,t.jsx)("div",{className:"skeleton h-5 w-36 rounded"})]}),(0,t.jsx)("div",{className:"space-y-2 sm:space-y-2.5",children:Array.from({length:4}).map((e,s)=>(0,t.jsx)(w.UpcomingMatchSkeleton,{},s))})]}):a?(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-8 bg-card rounded-xl shadow-lg border border-border",children:[(0,t.jsx)(x.AlertCircle,{className:"w-6 h-6 text-cherry mb-2"}),(0,t.jsx)("p",{className:"text-xs text-cherry mb-2 text-center px-2",children:a}),(0,t.jsx)("button",{onClick:()=>{(0,i.trackRetryClick)("upcoming_matches"),r()},className:"px-3 py-1.5 text-xs rounded-lg bg-cherry hover:bg-cherry-dark text-white transition-colors",children:"Try Again"})]}):(0,t.jsx)("div",{className:"bg-card rounded-xl shadow-xl border border-border p-3 sm:p-4 md:p-5 sticky top-4 relative overflow-hidden",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-3 sm:mb-4 pb-2 sm:pb-3 border-b border-border",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 sm:gap-3",children:[(0,t.jsx)("div",{className:"p-1.5 sm:p-2 bg-pitch rounded-lg shadow-md",children:(0,t.jsx)(h.Calendar,{className:"w-4 h-4 sm:w-5 sm:h-5 text-white"})}),(0,t.jsx)("h3",{className:"text-base sm:text-lg md:text-xl font-heading font-bold text-pitch",children:"Upcoming Matches"})]}),(0,t.jsx)(m.default,{href:"/series",onClick:()=>(0,i.trackLinkClick)("Full Schedule","/series"),className:"text-[10px] sm:text-xs font-semibold text-pitch hover:text-pitch-light transition-colors px-2 sm:px-3 py-1 sm:py-1.5 bg-pitch/5 rounded-lg hover:bg-pitch/10",children:"Full Schedule"})]}),(0,t.jsx)("div",{className:"space-y-2 sm:space-y-2.5 max-h-[600px] sm:max-h-[700px] overflow-y-auto scrollbar-thin pr-1 sm:pr-2",children:e.slice(0,6).map((s,a)=>(0,t.jsxs)("div",{children:[(0,t.jsx)(v,{match:s,onClick:()=>l(s.id,`${s.team1} vs ${s.team2}`,void 0,s)}),a<Math.min(e.length,6)-1&&(0,t.jsx)("div",{className:"h-px bg-gradient-to-r from-transparent via-border to-transparent my-2 sm:my-2.5"})]},s.id))})]})})})}var y=e.i(25901);function k({articles:e,loading:s,error:a,onRetry:r}){return(0,t.jsx)("div",{className:"xl:col-span-6 order-3 xl:order-2 min-h-[600px] md:min-h-[760px] lg:min-h-[875px]",children:s?(0,t.jsxs)("div",{className:"bg-card rounded-xl shadow-lg border border-border p-4 md:p-6 h-full",children:[(0,t.jsx)("div",{className:"skeleton h-6 w-32 rounded mb-4 md:mb-6"}),(0,t.jsx)("div",{className:"space-y-4 md:space-y-6",children:Array.from({length:3}).map((e,s)=>(0,t.jsx)(w.NewsCardSkeleton,{},s))})]}):a?(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-10 bg-card rounded-xl shadow-lg border border-border h-full",children:[(0,t.jsx)(x.AlertCircle,{className:"w-8 h-8 text-cherry mb-2"}),(0,t.jsx)("p",{className:"text-xs text-cherry mb-2",children:a}),(0,t.jsx)("button",{onClick:()=>{(0,i.trackRetryClick)("latest_news"),r()},className:"px-4 py-1.5 text-xs rounded-lg bg-cherry hover:bg-cherry-dark text-white transition-colors",children:"Try Again"})]}):(0,t.jsxs)("div",{className:"bg-card rounded-xl shadow-lg border border-border p-4 md:p-6 h-full",children:[(0,t.jsx)("h3",{className:"text-lg md:text-xl font-heading font-bold text-pitch mb-4 md:mb-6 uppercase tracking-wide",children:"Latest News"}),(0,t.jsx)("div",{className:"space-y-4 md:space-y-6 max-h-[60vh] sm:max-h-[70vh] lg:max-h-[875px] overflow-y-auto scrollbar-thin pr-1 sm:pr-2",children:e.map(e=>(0,t.jsx)(y.default,{article:e},e.id))})]})})}var C=e.i(72520),T=e.i(25652),S=e.i(64030),M=e.i(20278);let A=(0,g.default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);function L({topBatters:e,topBowlers:s,topAllRounders:a,loading:r,error:l,onPlayerClick:i}){let c=({player:e})=>(0,t.jsx)("div",{onClick:i,className:"group bg-card rounded-lg border border-border p-2.5 sm:p-3 hover:border-pitch hover:shadow-md transition-[box-shadow,transform,border-color] duration-300 ease-out cursor-pointer hover:-translate-y-0.5",children:(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 sm:gap-3 flex-1 min-w-0",children:[(0,t.jsx)("div",{className:"flex-shrink-0 w-8 h-8 sm:w-9 sm:h-9 rounded-full overflow-hidden bg-card-alt border-2 border-border flex items-center justify-center",children:e.image?(0,t.jsx)(n.default,{src:e.image,alt:e.name,width:36,height:36,sizes:"36px",className:"w-full h-full object-cover"}):(0,t.jsx)(A,{size:16,className:"text-text-muted"})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("div",{className:"font-semibold text-xs sm:text-sm text-text truncate",children:e.name}),(0,t.jsx)("div",{className:"text-[10px] sm:text-xs text-text-muted truncate",children:e.country})]})]}),(0,t.jsxs)("div",{className:"flex-shrink-0 text-right",children:[(0,t.jsx)("div",{className:"font-mono font-bold text-sm sm:text-base text-text",children:e.rating}),(0,t.jsx)("div",{className:"text-[9px] sm:text-[10px] text-text-muted",children:"Rating"})]})]})});return(0,t.jsx)("div",{className:"xl:col-span-3 order-2 xl:order-3 min-h-[480px] md:min-
1h-[560px] lg:min-h-[640px]",children:(0,t.jsx)("div",{className:"bg-card rounded-xl shadow-xl border border-border p-3 sm:p-4 md:p-5 sticky top-4 relative overflow-hidden",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"flex items-center justify-between mb-3 sm:mb-4 pb-2 sm:pb-3 border-b border-border",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 sm:gap-3",children:[(0,t.jsx)("div",{className:"p-1.5 sm:p-2 bg-pitch rounded-lg shadow-md",children:(0,t.jsx)(T.TrendingUp,{className:"w-4 h-4 sm:w-5 sm:h-5 text-white"})}),(0,t.jsx)("h3",{className:"text-base sm:text-lg md:text-xl font-heading font-bold text-pitch",children:"Trending Players"})]})}),r?(0,t.jsx)("div",{className:"space-y-4 sm:space-y-5",children:Array.from({length:3}).map((e,s)=>(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"skeleton h-4 w-28 rounded mb-2.5 sm:mb-3"}),(0,t.jsx)("div",{className:"space-y-2",children:Array.from({length:3}).map((e,s)=>(0,t.jsx)("div",{className:"bg-card-alt rounded-lg border border-border-subtle p-2.5 sm:p-3",children:(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 sm:gap-3",children:[(0,t.jsx)("div",{className:"skeleton w-7 h-7 sm:w-8 sm:h-8 rounded-full"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"skeleton h-3 w-20 rounded mb-1"}),(0,t.jsx)("div",{className:"skeleton h-2.5 w-14 rounded"})]})]}),(0,t.jsx)("div",{className:"skeleton h-4 w-10 rounded"})]})},s))})]},s))}):l?(0,t.jsx)("div",{className:"text-center py-4",children:(0,t.jsx)("p",{className:"text-xs text-cherry",children:l})}):(0,t.jsxs)("div",{className:"space-y-4 sm:space-y-5",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-2.5 sm:mb-3",children:[(0,t.jsx)(M.Target,{className:"w-4 h-4 sm:w-5 sm:h-5 text-cherry"}),(0,t.jsx)("h4",{className:"text-xs sm:text-sm font-heading font-bold text-text uppercase tracking-wide",children:"Top Batters"})]}),(0,t.jsx)("div",{className:"space-y-2",children:e.slice(0,3).map((e,s)=>(0,t.jsx)(c,{player:e,rank:s+1},e.id))})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-2.5 sm:mb-3",children:[(0,t.jsx)(f,{className:"w-4 h-4 sm:w-5 sm:h-5 text-pitch"}),(0,t.jsx)("h4",{className:"text-xs sm:text-sm font-heading font-bold text-text uppercase tracking-wide",children:"Top Bowlers"})]}),(0,t.jsx)("div",{className:"space-y-2",children:s.slice(0,3).map((e,s)=>(0,t.jsx)(c,{player:e,rank:s+1},e.id))})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-2.5 sm:mb-3",children:[(0,t.jsx)(S.Trophy,{className:"w-4 h-4 sm:w-5 sm:h-5 text-gold"}),(0,t.jsx)("h4",{className:"text-xs sm:text-sm font-heading font-bold text-text uppercase tracking-wide",children:"Top All-Rounders"})]}),(0,t.jsx)("div",{className:"space-y-2",children:a.slice(0,3).map((e,s)=>(0,t.jsx)(c,{player:e,rank:s+1},e.id))})]}),(0,t.jsx)("div",{className:"pt-2 sm:pt-3 border-t border-border",children:(0,t.jsxs)(m.default,{href:"/ranking",className:"inline-flex items-center gap-1.5 text-xs sm:text-sm font-semibold text-pitch hover:text-pitch-light transition-colors px-3 py-1.5 bg-pitch/5 rounded-lg hover:bg-pitch/10",children:["View Full Rankings",(0,t.jsx)(C.ArrowRight,{className:"w-3 h-3 sm:w-4 sm:h-4"})]})})]})]})})})}var R=e.i(66027),$=e.i(52946),D=e.i(55310),I=e.i(56031),B=e.i(31278),E=e.i(90010);function O({matches:e,loading:a,error:r,isRefreshing:l,onRetry:n,onMatchClick:c,getMatchDetailPath:o}){let d=(0,s.useRef)(null),h=(0,s.useCallback)(e=>{let t=d.current;t&&Math.abs(e.deltaY)>Math.abs(e.deltaX)&&(e.preventDefault(),t.scrollBy({left:e.deltaY,behavior:"smooth"}))},[]);return(0,s.useEffect)(()=>{let e=d.current;if(e)return e.addEventListener("wheel",h,{passive:!1}),()=>e.removeEventListener("wheel",h)},[h]),(0,t.jsxs)("section",{id:"live",className:"mb-20",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-3 mb-6",children:[(0,t.jsx)("span",{className:"w-3 h-3 rounded-full bg-pitch animate-live-breathe"}),(0,t.jsx)("h2",{className:"text-2xl md:text-3xl lg:text-4xl font-heading font-bold text-pitch",children:"Live & Recent Matches"}),l&&(0,t.jsx)("div",{className:"flex items-center gap-2 text-sm text-text-muted",children:(0,t.jsx)(B.Lo
1ader2,{className:"w-4 h-4 animate-spin"})})]}),a?(0,t.jsx)("div",{className:"overflow-x-auto scrollbar-hide pb-4 px-2",children:(0,t.jsx)("div",{className:"flex gap-4 md:gap-5 min-w-max",children:Array.from({length:4}).map((e,s)=>(0,t.jsx)("div",{className:"shrink-0 w-[290px] sm:w-[420px] md:w-[460px]",children:(0,t.jsx)(w.MatchCardSkeleton,{})},s))})}):r?(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-20 bg-cherry/5 rounded-xl border border-cherry/20",children:[(0,t.jsx)(x.AlertCircle,{className:"w-12 h-12 text-cherry mb-4"}),(0,t.jsx)("p",{className:"text-cherry font-medium mb-4",children:r}),(0,t.jsx)("button",{onClick:()=>{(0,i.trackRetryClick)("live_matches"),n()},className:"px-6 py-2 rounded-lg bg-cherry hover:bg-cherry-dark text-white transition-colors active:scale-[0.98]",children:"Try Again"})]}):0===e.length?(0,t.jsx)("div",{className:"flex flex-col items-center justify-center py-20 bg-card-alt rounded-xl",children:(0,t.jsx)("p",{className:"text-text-muted font-medium",children:"No matches found"})}):(0,t.jsx)("div",{ref:d,className:"overflow-x-auto scrollbar-hide pb-4 px-2",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:(0,t.jsx)("div",{className:"flex gap-4 md:gap-5 min-w-max",children:e.map(e=>(0,t.jsx)("div",{className:"shrink-0 w-[290px] sm:w-[420px] md:w-[460px]",children:(0,t.jsx)(m.default,{href:o(e.id,e),prefetch:!0,onClick:()=>c(e.id,`${e.team1} vs ${e.team2}`,e.isLive,e),className:"block h-full",children:(0,t.jsx)(E.default,{match:e})})},e.id))})})]})}function U({initialMatches:e}){let s=(0,r.useRouter)(),{data:a,isLoading:l,error:n,isRefetching:c,refetch:o}=(0,R.useQuery)({queryKey:["liveMatches"],queryFn:async()=>{let e=await $.matchService.getRecentMatches(1,10);return(0,D.transformApiMatchesToMatches)(e.data)},initialData:e,refetchInterval:3e4,refetchIntervalInBackground:!1,staleTime:2e4});return(0,t.jsx)(O,{matches:a??e,loading:l&&!e.length,error:n?.message??null,isRefreshing:c,onRetry:()=>o(),onMatchClick:(e,t,a,r)=>{(0,i.trackMatchClick)(e,t,a),s.push((0,I.getMatchDetailPath)(e,r??void 0))},getMatchDetailPath:I.getMatchDetailPath})}var _=e.i(10980),P=e.i(21218),z=e.i(61911);let q=[{href:"/matches",title:"Live & Recent Matches",description:"Score, status and result for every international match in progress today.",icon:P.Activity},{href:"/ranking",title:"ICC Rankings",description:"Top batters, bowlers, and all-rounders across Test, ODI and T20.",icon:S.Trophy},{href:"/series",title:"All Series",description:"Browse every active and upcoming cricket series and tournament.",icon:h.Calendar},{href:"/players",title:"Player Profiles",description:"Career stats, debut history and country pages for international cricketers.",icon:z.Users},{href:"/news-blog",title:"Cricket News",description:"Latest cricket news, expert analysis, and match reports.",icon:l.Newspaper},{href:"/guides",title:"Cricket Guides",description:"Evergreen explainers — rules, fielding positions, formats and tactics.",icon:_.BookOpen}];function F(){return(0,t.jsxs)("section",{id:"explore","aria-label":"Explore more on CrickCore",className:"mb-20",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 mb-8",children:[(0,t.jsx)("div",{className:"p-2 rounded-lg bg-gold/10",children:(0,t.jsx)(C.ArrowRight,{className:"text-gold",size:28})}),(0,t.jsx)("h2",{className:"text-3xl md:text-4xl font-heading font-bold text-pitch",children:"Explore More on CrickCore"})]}),(0,t.jsx)("ul",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 md:gap-5",children:q.map(e=>{let s=e.icon;return(0,t.jsx)("li",{children:(0,t.jsxs)(m.default,{href:e.href,className:"block h-full bg-card rounded-xl border border-border p-6 hover:border-pitch/40 hover:shadow-lg hover:-translate-y-0.5 transition-[box-shadow,transform,border-color] duration-300 group",children:[(0,t.jsx)("div",{className:"p-2 rounded-lg bg-gold/10 inline-flex mb-4",children:(0,t.jsx)(s,{className:"text-gold",size:24})}),(0,t.jsx)("h3",{className:"text-lg font-heading font-bold text-pitch mb-2 group-hover:text-pitch-light transition-colors",children:e.title}),(0,t.jsx)("p",{className:"text-sm text-text-secondary leading-relaxed mb-4 line-clamp-2",children:e.description}),(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 text-sm font-semibold text-pitch",children:["Open",(0,t.jsx)(C.ArrowRight,{className:"w-4 h-4 transition-transform group-hover:translate-x-0.5"})]})]})},e.href)})})]})}var W=e.i(78583),H=e.i(64659);function G({data:e}){let s=JSON.stringify(e).replace(/</g,"\\u003c").replace(/>/g,"\\u003e").replace(/&/g,"\\u0026");return(0,t.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:s}})}function Q({liveCount:e,upcomingCount:s}){let a=function({liveCount:e,upcomingCount:t}){return[{question:"Where can I watch live cricket scores?",answer:'You can follow live cricket scores, ball-by-ball c
1ommentary, and full scorecards for every international and T20 league match on <a href="/" class="text-pitch font-semibold hover:text-pitch-light">CrickCore</a>. Scores update in real-time during play.'},{question:"How many cricket matches are happening today?",volatile:!0,answer:e>0?`${e} match${1===e?"":"es"} ${1===e?"is":"are"} live right now${t>0?`, with ${t} more scheduled in the upcoming fixtures`:""}. Check the live scoreboard at the top of this page for the latest.`:`No matches are currently live. ${t>0?`${t} fixtures are scheduled in the coming days`:"Check back soon for the next series"}. See the <a href="#live" class="text-pitch font-semibold hover:text-pitch-light">live matches section</a> for the full schedule.`},{question:"What are the three formats of international cricket?",answer:'The three formats are <strong>Test cricket</strong> (5 days, two innings per side), <strong>ODI</strong> (One Day Internationals, 50 overs per side), and <strong>T20</strong> (20 overs per side). Each format has different rules and strategies. Read our <a href="/guides/test-vs-odi-vs-t20-cricket-formats-compared" class="text-pitch font-semibold hover:text-pitch-light">full format comparison</a>.'},{question:"How are ICC player rankings calculated?",answer:'ICC rankings use a points-based formula that weighs recent performances against the strength of the opposition and the match conditions. Rankings are updated after every international match. View the latest <a href="/ranking" class="text-pitch font-semibold hover:text-pitch-light">ICC rankings on CrickCore</a>.'},{question:"What is a Super Over in cricket?",answer:"A Super Over is used to break a tie in limited-overs cricket. Each team bats one over (six legal balls); whichever team scores more wins. If the Super Over also ties, additional Super Overs continue until a winner emerges."},{question:"How does the DLS method work in cricket?",answer:"The Duckworth-Lewis-Stern (DLS) method is the official ICC formula for fairly recalculating targets in rain-affected limited-overs matches. It accounts for overs remaining and wickets in hand. It has been used since 1999 and adopted into Tests for limited situations as well."},{question:"Where can I find player profiles and career stats?",answer:'Every international cricketer has a profile page on CrickCore with full career stats, ICC rankings, debut info, and milestones. Browse <a href="/players" class="text-pitch font-semibold hover:text-pitch-light">cricket players by country</a> or look up a specific name.'},{question:"How can I follow a specific cricket series?",answer:'Open the <a href="/series" class="text-pitch font-semibold hover:text-pitch-light">series and tournaments</a> page to browse every active and upcoming series. Each series page has fixtures, points table, squads, and stats.'}]}({liveCount:e,upcomingCount:s}),r={"@context":"https://schema.org","@type":"FAQPage",mainEntity:a.filter(e=>!e.volatile).map(e=>({"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:e.answer.replace(/<[^>]+>/g,"").replace(/&amp;/g,"&").replace(/&nbsp;/g," ").replace(/\s+/g," ").trim()}}))};return(0,t.jsxs)("section",{id:"faq","aria-label":"Frequently asked questions about cricket",className:"mb-20",children:[(0,t.jsx)(G,{data:r}),(0,t.jsxs)("div",{className:"flex items-center gap-3 mb-8",children:[(0,t.jsx)("div",{className:"p-2 rounded-lg bg-gold/10",children:(0,t.jsx)(W.FileText,{className:"text-gold",size:28})}),(0,t.jsx)("h2",{className:"text-3xl md:text-4xl font-heading font-bold text-pitch",children:"People Also Ask"})]}),(0,t.jsx)("div",{className:"bg-card rounded-xl border border-border overflow-hidden divide-y divide-border",children:a.map((e,s)=>(0,t.jsxs)("details",{className:"group",children:[(0,t.jsxs)("summary",{className:"flex items-center justify-between gap-4 cursor-pointer list-none px-5 md:px-6 py-4 hover:bg-card-alt/40 transition-colors",children:[(0,t.jsx)("span",{className:"text-sm md:text-base font-heading font-semibold text-text leading-snug",children:e.question}),(0,t.jsx)(H.ChevronDown,{className:"w-4 h-4 text-text-muted flex-shrink-0 transition-transform duration-200 group-open:rotate-180","aria-hidden":!0})]}),(0,t.jsx)("div",{className:"px-5 md:px-6 pb-5 -mt-1",children:(0,t.jsx)("p",{className:"text-[14px] md:text-[15px] leading-relaxed text-text-secondary",dangerouslySetInnerHTML:{__html:e.answer}}
1)})]},s))})]})}var Y=e.i(7801);let K=`${Y.BACKEND_CONFIG.BASE_URL.replace(/\/$/,"")}/user`;function V(e){return{id:e._id,title:e.title,description:e.excerpt||"",image:e.featuredImage||"",link:`/news-blog/${e.slug}`,date:function(e){try{return new Date(e).toLocaleDateString("en-IN",{day:"numeric",month:"short",year:"numeric"})}catch{return""}}(e.createdAt)}}async function X(e,t){let s=e.startsWith("http")?e:`${K}${e}`,a=new AbortController,r=setTimeout(()=>a.abort(),2e4);try{let e=await fetch(s,{...t,signal:a.signal,headers:{Accept:"application/json",...t?.headers},next:{revalidate:60}});if(!e.ok)throw Error(`Blog API error: ${e.status}`);return(await e.json()).data}finally{clearTimeout(r)}}let J={getCategories:()=>X("/blogs/categories"),getBlogs(e={}){let t=new URLSearchParams;null!=e.page&&t.set("page",String(e.page)),null!=e.limit&&t.set("limit",String(e.limit)),e.type&&t.set("type",e.type),e.category&&t.set("category",e.category);let s=t.toString();return X(`/blogs${s?`?${s}`:""}`)},getBlogBySlugOrId:e=>X(`/blogs/${encodeURIComponent(e)}`).catch(()=>null)};var Z=e.i(55956);let ee=(0,a.default)(()=>e.A(31006),{loadableGenerated:{modules:[27293]}}),et=(0,a.default)(()=>e.A(26141),{loadableGenerated:{modules:[94712]}});e.s(["default",0,function({liveMatches:e,upcomingMatches:a,heroBannerPlayers:n,topBatters:c,topBowlers:o,topAllRounders:m,upcomingSeries:x,initialNews:h=[],initialStories:p=[]}){let g=(0,r.useRouter)(),[u,f]=(0,s.useState)(h),[b,j]=(0,s.useState)(0===h.length),[v,w]=(0,s.useState)(null),[y,C]=(0,s.useState)(p),[T,S]=(0,s.useState)(0===p.length),M=async()=>{try{j(!0),w(null);let e=[...(await J.getBlogs({limit:100,type:"blog"})).blogs||[]].sort((e,t)=>new Date(e.createdAt).getTime()-new Date(t.createdAt).getTime()).slice(0,10);f(e.map(V))}catch(e){w(e instanceof Error?e.message:"Failed to fetch news")}finally{j(!1)}},A=async()=>{try{S(!0);let e=await J.getBlogs({limit:4,type:"blog"});C((e.blogs||[]).map(V))}catch{}finally{S(!1)}};(0,s.useEffect)(()=>{0===h.length&&M(),0===p.length&&A()},[]);let R=e.filter(e=>e.isLive).length;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d,{liveMatches:e,upcomingMatches:a,heroBannerPlayers:n,onSlideClick:(e,t)=>{"live"===e||"upcoming"===e||"recent"===e?((0,i.trackMatchClick)(t.id,`${t.team1} vs ${t.team2}`,t.isLive),g.push((0,I.getMatchDetailPath)(t.id,t))):"player"===e&&g.push("/ranking")}}),(0,t.jsxs)("main",{className:"max-w-[1400px] w-full sm:px-4 px-3 mx-auto py-12",role:"main",children:[(0,t.jsx)(U,{initialMatches:e}),(0,t.jsx)(Z.default,{placement:"home-mid",className:"mb-8"}),(0,t.jsx)("section",{id:"home-content",className:"mb-20",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-12 gap-4 md:gap-6",children:[(0,t.jsx)(N,{matches:a,loading:!1,error:null,onRetry:()=>{},onMatchClick:(e,t,s,a)=>{(0,i.trackMatchClick)(e,t,s),g.push((0,I.getMatchDetailPath)(e,a??void 0))}}),(0,t.jsx)(k,{articles:u,loading:b,error:v,onRetry:M}),(0,t.jsx)(L,{topBatters:c,topBowlers:o,topAllRounders:m,loading:!1,error:null,selectedMatchType:"ODI",showMatchTypeDropdown:!1,onMatchTypeToggle:()=>{},onMatchTypeChange:()=>{},onPlayerClick:()=>{g.push("/ranking")}})]})}),(0,t.jsx)(ee,{series:x,loading:!1,error:null,onRetry:()=>{}}),y.length>0&&(0,t.jsxs)("section",{id:"featured-stories",className:"mb-20",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 mb-8",children:[(0,t.jsx)("div",{className:"p-2 rounded-lg bg-pitch/10",children:(0,t.jsx)(l.Newspaper,{className:"text-pitch",size:28})}),(0,t.jsx)("h2",{className:"display-2 text-3xl md:text-4xl text-pitch",children:"Featured Stories"})]}),(0,t.jsx)("div",{className:"md:hidden -mx-3 px-3 overflow-x-auto scrollbar-hide snap-x snap-mandatory scroll-smooth",children:(0,t.jsx)("ul",{className:"flex gap-4 w-max pb-2",children:y.map(e=>(0,t.jsx)("li",{className:"snap-start shrink-0 w-[78vw] max-w-[320px]",children:(0,t.jsx)(et,{article:e})},e.id))})}),(0,t.jsx)("div",{className:"hidden md:grid grid-cols-2 lg:grid-cols-4 gap-6",children:y.map(e=>(0,t.jsx)(et,{article:e},e.id))})]}),(0,t.jsx)(F,{}),(0,t.jsx)(Q,{liveCount:R,upcomingCount:a.length})]})]})}],19827)}]);

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.