PageSourceSearch

https://cricketlive11.com/chunk-S3AG5ZIP.js

js cricketlive11.com collected 2026-10-02 01:27:18 UTC 13,725 bytes, 1 lines download raw bytes

1import{a as F,b as D}from"./chunk-7G5LSYFR.js";import{a as V}from"./chunk-VPBPBGTH.js";import{a as E}from"./chunk-SJJXFF6Y.js";import"./chunk-XHG55VXT.js";import{a as I}from"./chunk-WK63IT4S.js";import"./chunk-PAILDRSG.js";import"./chunk-KKAAJAP7.js";import"./chunk-X4X5UNDA.js";import"./chunk-HZIJDWYK.js";import{k as y,l as T,n as w,s as L}from"./chunk-7CDSDVZV.js";import{B as x,Db as b,Eb as m,Lb as d,S,Sb as f,Ua as c,Wb as h,Xb as O,_a as C,db as k,ha as p,ia as g,ib as _,n as u,qb as a,sb as v,ub as i,vb as o,wb as l,zb as M}from"./chunk-I4W54GEO.js";var $=()=>[1,2,3,4,5,6],N=()=>[1,2,3,4];function R(n,e){n&1&&(i(0,"div",16),l(1,"app-match-card-shimmer"),o())}function U(n,e){n&1&&(i(0,"div",14),_(1,R,2,0,"div",15),o()),n&2&&(c(),a("ngForOf",f(1,$)))}function j(n,e){if(n&1&&(i(0,"div",16),l(1,"app-match-card",17),o()),n&2){let t=e.$implicit,r=m(3);c(),a("matchData",r.convertToMatchCardData(t))}}function B(n,e){if(n&1&&(i(0,"div",14),_(1,j,2,1,"div",15),o()),n&2){let t=m(2);c(),a("ngForOf",t.getFilteredMatches())}}function A(n,e){n&1&&(i(0,"div",18),l(1,"i",19),i(2,"h4",20),d(3,"No matches available"),o(),i(4,"p",20),d(5,"Check back later for live cricket action!"),o()())}function J(n,e){if(n&1){let t=M();i(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"ul",6)(5,"li",7)(6,"button",8),b("click",function(){p(t);let s=m();return g(s.selectTab("live"))}),l(7,"i",9),d(8," Live Now "),o()(),i(9,"li",7)(10,"button",8),b("click",function(){p(t);let s=m();return g(s.selectTab("upcoming"))}),l(11,"i",10),d(12," Upcoming "),o()(),i(13,"li",7)(14,"button",8),b("click",function(){p(t);let s=m();return g(s.selectTab("recent"))}),l(15,"i",11),d(16," Recent "),o()()(),_(17,U,2,2,"div",12)(18,B,2,1,"div",12)(19,A,6,0,"div",13),o()()()()}if(n&2){let t=m();c(6),v("active",t.selectedTab==="live"),c(4),v("active",t.selectedTab==="upcoming"),c(4),v("active",t.selectedTab==="recent"),c(3),a("ngIf",t.loading),c(),a("ngIf",!t.loading),c(),a("ngIf",!t.loading&&t.getFilteredMatches().length===0)}}function q(n,e){n&1&&l(0,"div",29)}function G(n,e){n&1&&(i(0,"div",32),l(1,"app-match-card-shimmer"),o())}function H(n,e){n&1&&(i(0,"div",30),_(1,G,2,0,"div",31),o()),n&2&&(c(),a("ngForOf",f(1,N)))}function K(n,e){if(n&1&&(i(0,"div",32),l(1,"app-match-card",33),o()),n&2){let t=e.$implicit,r=m(3);c(),a("matchData",r.convertToMatchCardData(t))}}function Q(n,e){if(n&1&&(i(0,"div",30),_(1,K,2,1,"div",31),o()),n&2){let t=m(2);c(),a("ngForOf",t.getFilteredMatches())}}function W(n,e){n&1&&(i(0,"div",34),l(1,"i",35),i(2,"h4"),d(3,"No matches"),o(),i(4,"p"),d(5,"Check back for live cricket!"),o()())}function X(n,e){if(n&1){let t=M();i(0,"div",21)(1,"div",22)(2,"div",23)(3,"button",24),b("click",function(){p(t);let s=m();return g(s.selectTab("live"))}),l(4,"i",9),i(5,"span"),d(6,"Live"),o(),_(7,q,1,0,"div",25),o(),i(8,"button",24),b("click",function(){p(t);let s=m();return g(s.selectTab("upcoming"))}),l(9,"i",10),i(10,"span"),d(11,"Upcoming"),o()(),i(12,"button",24),b("click",function(){p(t);let s=m();return g(s.selectTab("recent"))}),l(13,"i",11),i(14,"span"),d(15,"Recent"),o()()()(),i(16,"div",26),_(17,H,2,2,"div",27)(18,Q,2,1,"div",27)(19,W,6,0,"div",28),o()()}if(n&2){let t=m();c(3),v("active",t.selectedTab==="live"),c(4),a("ngIf",t.selectedTab==="live"),c(),v("active",t.selectedTab==="upcoming"),c(4),v("active",t.selectedTab==="recent"),c(5),a("ngIf",t.loading),c(),a("ngIf",!t.loading),c(),a("ngIf",!t.loading&&t.getFilteredMatches().length===0)}}var z=class n{constructor(e,t,r){this.socketService=e;this.responsiveService=t;this.seo=r}liveMatches=[];upcomingMatches=[];recentMatches=[];allMatches=[];loading=!0;selectedTab="live";destroy$=new u;ngOnInit(){this.socketService.connect().then(()=>{console.log("Socket connected, loading matches..."),this.loadMatches()}).catch(e=>{console.error("Failed to connect to socket server:",e),this.loading=!1});try{this.seo.setTitle("Live Cricket Scores - CricketLive11")}catch{}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.socketService.disconnect()}get breakpoint$(){return this.responsiveService.breakpoint$}loadMatches(){this.loading=!0,x({live:this.socketService.getLiveMatches(),upcoming:this.socketService.getUpcomingMatches(),recent:this.socketService.getRecentMatches()}).pipe(S(this.destroy$)).subscribe({next:e=>{console.log("Match data received:",e),e.live?this.liveMatches=e.live:this.liveMatches=[],e.upcoming?this.upcomingMatches=e.upcoming:this.upcomingMatches=[],e.recent?this.recentMatches=e.recent:this.recentMatches=[],this.loading=!1},error:e=>{console.error("Error loading matches:",e),this.liveMatches=[],this.upcomingMatches=[],this.recentMatches=[],this.loading=!1}})}convertToMatchCardData(e){let t="Upcoming",r="upcoming";return e.match_status==="Live"||e.match_status==="In Progress"?(t="Live",r="live"):(e.match_status==="Finished"||e.match_status==="Completed")&&(t="Finished",r="completed"),{match_id:e.match_id,matchType:e.match_type||"T20",matchNumber:e.matchs||`Match ${e.match_id}`,tournament:e.series||"Cricket Match",format:e.match_type||"T20",match_status:t,team1:{name:e.team_a||"Team A",code:e.team_a_short||"TA",flag:e.team_a_img||"\u{1F3CF}",score:e.team_a_scores||"",overs:""},team2:{name:e.team_b||"Team B",code:e.team_b_short||"TB",flag:e.team_b_img||"\u{1F3CF}",score:e.team_b_scores||"",overs:""},result:e.result||e.match_status||"",status:r,date:e.date_wise||e.match_date||"",series_id:e.series_id,series_name:e.series}}selectTab(e){this.selectedTab=e}getFilteredMatches(){switch(this.selectedTab){case"live":return this.liveMatches;case"upcoming":return this.upcomingMatches;
1case"recent":return this.recentMatches;default:return this.liveMatches}}refreshMatches(){this.loading=!0,setTimeout(()=>{this.loadMatches()},1e3)}static \u0275fac=function(t){return new(t||n)(C(I),C(V),C(E))};static \u0275cmp=k({type:n,selectors:[["app-live-scores"]],decls:4,vars:6,consts:[["class","live-scores-container",4,"ngIf"],["class","mobile-live-scores",4,"ngIf"],[1,"live-scores-container"],[1,"container-fluid","py-4","px-2","px-md-4"],[1,"row"],[1,"col-12"],["role","tablist",1,"nav","nav-pills","nav-fill","mb-4"],[1,"nav-item"],[1,"nav-link","w-100","text-center",3,"click"],[1,"bi","bi-broadcast"],[1,"bi","bi-calendar-plus"],[1,"bi","bi-clock-history"],["class","row g-3",4,"ngIf"],["class","empty-state text-center py-5",4,"ngIf"],[1,"row","g-3"],["class","col-12 col-md-6 col-xl-4",4,"ngFor","ngForOf"],[1,"col-12","col-md-6","col-xl-4"],[1,"w-100",3,"matchData"],[1,"empty-state","text-center","py-5"],[1,"bi","bi-calendar-x","display-1","text-muted","mb-3"],[1,"text-muted"],[1,"mobile-live-scores"],[1,"mobile-tabs"],["role","tablist",1,"tabs-container","d-flex"],[1,"mobile-tab","flex-fill","text-center",3,"click"],["class","live-indicator",4,"ngIf"],[1,"mobile-content"],["class","mobile-matches",4,"ngIf"],["class","mobile-empty-state",4,"ngIf"],[1,"live-indicator"],[1,"mobile-matches"],["class","mobile-match-card",4,"ngFor","ngForOf"],[1,"mobile-match-card"],[3,"matchData"],[1,"mobile-empty-state"],[1,"bi","bi-calendar-x"]],template:function(t,r){if(t&1&&(_(0,J,20,9,"div",0),h(1,"async"),_(2,X,20,10,"div",1),h(3,"async")),t&2){let s,P;a("ngIf",(s=O(1,2,r.breakpoint$))==null?null:s.isDesktop),c(2),a("ngIf",!((P=O(3,4,r.breakpoint$))!=null&&P.isDesktop))}},dependencies:[L,y,T,w,F,D],styles:['.live-scores-container[_ngcontent-%COMP%]{background-color:#f8f9fa;min-height:100vh}.live-scores-container[_ngcontent-%COMP%]   .live-scores-title[_ngcontent-%COMP%]{color:#212529;font-weight:700;font-size:2.5rem}.live-scores-container[_ngcontent-%COMP%]   .nav-pills[_ngcontent-%COMP%]   .nav-link[_ngcontent-%COMP%]{color:#6c757d;font-weight:500;padding:.75rem 1.5rem;border-radius:25px;transition:all .3s ease;margin-right:.5rem}.live-scores-container[_ngcontent-%COMP%]   .nav-pills[_ngcontent-%COMP%]   .nav-link[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-right:.5rem}.live-scores-container[_ngcontent-%COMP%]   .nav-pills[_ngcontent-%COMP%]   .nav-link[_ngcontent-%COMP%]:hover{background-color:#0d6efd1a;color:#0d6efd}.live-scores-container[_ngcontent-%COMP%]   .nav-pills[_ngcontent-%COMP%]   .nav-link.active[_ngcontent-%COMP%]{background-color:#0d6efd;color:#fff;box-shadow:0 4px 12px #0d6efd4d}.live-scores-container[_ngcontent-%COMP%]   .loading-container[_ngcontent-%COMP%]   .spinner-border[_ngcontent-%COMP%]{width:3rem;height:3rem}.live-scores-container[_ngcontent-%COMP%]   .empty-state[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{opacity:.3}.mobile-live-scores[_ngcontent-%COMP%]{background:linear-gradient(180deg,#f8f9fa,#fff);min-height:100vh}.mobile-live-scores[_ngcontent-%COMP%]   .mobile-tabs[_ngcontent-%COMP%]{position:sticky;top:0;background:#fff;border-bottom:1px solid #e9ecef;padding:0 1rem;z-index:99}.mobile-live-scores[_ngcontent-%COMP%]   .mobile-tabs[_ngcontent-%COMP%]   .tabs-container[_ngcontent-%COMP%]{display:flex;align-items:center;overflow-x:auto;-webkit-overflow-scrolling:touch}.mobile-live-scores[_ngcontent-%COMP%]   .mobile-tabs[_ngcontent-%COMP%]   .tabs-container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.mobile-live-scores[_ngcontent-%COMP%]   .mobile-tabs[_ngcontent-%COMP%]   .mobile-tab[_ngcontent-%COMP%]{background:none;border:none;color:#6c757d;font-weight:500;padding:1rem 1.5rem;display:flex;flex-direction:column;align-items:center;gap:.25rem;min-width:auto;white-space:nowrap;transition:all .3s ease;position:relative}.mobile-live-scores[_ngcontent-%COMP%]   .mobile-tabs[_ngcontent-%COMP%]   .mobile-tab[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:1.1rem}.mobile-live-scores[_ngcontent-%COMP%]   .mobile-tabs[_ngcontent-%COMP%]   .mobile-tab[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:.8rem}.mobile-live-scores[_ngcontent-%COMP%]   .mobile-tabs[_ngcontent-%COMP%]   .mobile-tab.active[_ngcontent-%COMP%]{color:#0d6efd}.mobile-live-scores[_ngcontent-%COMP%]   .mobile-tabs[_ngcontent-%COMP%]   .mobile-tab.active[_ngcontent-%COMP%]:after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:2px 2px 0 0}.mobile-live-scores[_ngcontent-%COMP%]   .mobile-tabs[_ngcontent-%COMP%]   .mobile-tab[_ngcontent-%COMP%]   .live-indicator[_ngcontent-%COMP%]{position:absolute;top:.5rem;right:.5rem;width:8px;height:8px;background:#dc3545;border-radius:50%;animation:_ngcontent-%COMP%_pulse-dot 1.5s infinite}.mobile-live-scores[_ngcontent-%COMP%]   .mobile-content[_ngcontent-%COMP%]{padding:1rem}.mobile-live-scores[_ngcontent-%COMP%]   .mobile-content[_ngcontent-%COMP%]   .mobile-loading[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:3rem 1rem}.mobile-live-scores[_ngcontent-%COMP%]   .mobile-content[_ngcontent-%COMP%]   .mobile-loading[_ngcontent-%COMP%]   .loading-spinner[_ngcontent-%COMP%]{width:40px;height:40px;border:3px solid #f3f3f3;border-top:3px solid #667eea;border-radius:50%;animation:_ngcontent-%COMP%_spin 1s linear infinite;margin-bottom:1rem}.mobile-live-scores[_ngcontent-%COMP%]   .mobile-content[_ngcontent-%COMP%]   .mobile-loading[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#6c757d;font-size:.9rem}.mobile-live-scores[_ngcontent-%COMP%]   .mobile-content[_ngcontent-%COMP%]   .mobile-matches[_ngcontent-%COMP%]   .mobile-match-card[_ngcontent-%COMP%]{margin-bottom:1rem}.mobile-live-scores[_ngcontent-%COMP%]   .mobile-content[_ngcontent-%COMP%]   .mobile-matches[_ngcontent-%COMP%]   .mobile-match-card[_ngcontent-%COMP%]:last-child{margin-bottom:0}.mobile-live-scores[_ngcontent-%COMP%]   .mobile-content[_ngcontent-%COMP%]   .mobile-empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:3rem 1rem;text-align:center}.mobile-live-scores[_ngcontent-%COMP%]   .mobile-content[_ngcontent-%COMP%]   .mobile-empty-state[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:3rem;color:#dee2e6;margin-bottom:1rem}.mobile-live-scores[_ngcontent-%COMP%]   .mobile-content[_ngcontent-%COMP%]   .mobile-empty-state[_ngcontent-%COMP%]   h4[_ng
1content-%COMP%]{color:#6c757d;font-size:1.2rem;margin-bottom:.5rem}.mobile-live-scores[_ngcontent-%COMP%]   .mobile-content[_ngcontent-%COMP%]   .mobile-empty-state[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#adb5bd;font-size:.9rem}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_pulse-dot{0%{box-shadow:0 0 #dc3545b3}70%{box-shadow:0 0 0 10px #dc354500}to{box-shadow:0 0 #dc354500}}.spin[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_spin 1s linear infinite}@media (max-width: 768px){.mobile-live-scores[_ngcontent-%COMP%]   .mobile-tabs[_ngcontent-%COMP%]{top:0;padding:0 .75rem}.mobile-live-scores[_ngcontent-%COMP%]   .mobile-tabs[_ngcontent-%COMP%]   .mobile-tab[_ngcontent-%COMP%]{padding:.75rem 1rem}.mobile-live-scores[_ngcontent-%COMP%]   .mobile-tabs[_ngcontent-%COMP%]   .mobile-tab[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:1rem}.mobile-live-scores[_ngcontent-%COMP%]   .mobile-tabs[_ngcontent-%COMP%]   .mobile-tab[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:.75rem}.mobile-live-scores[_ngcontent-%COMP%]   .mobile-content[_ngcontent-%COMP%]{padding:.75rem}}@media (max-width: 480px){.mobile-live-scores[_ngcontent-%COMP%]   .mobile-tabs[_ngcontent-%COMP%]{top:0;padding:0 .5rem}.mobile-live-scores[_ngcontent-%COMP%]   .mobile-tabs[_ngcontent-%COMP%]   .mobile-tab[_ngcontent-%COMP%]{padding:.6rem .8rem}.mobile-live-scores[_ngcontent-%COMP%]   .mobile-tabs[_ngcontent-%COMP%]   .mobile-tab[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:.7rem}.mobile-live-scores[_ngcontent-%COMP%]   .mobile-content[_ngcontent-%COMP%]{padding:.5rem}}']})};export{z as LiveScoresComponent};

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.