1import{h as V,i as X}from"./chunk-LJRNXR4Z.js";import{g as Q}from"./chunk-KLYQFF2A.js";import"./chunk-UNBDIFOL.js";import{$d as G,A as O,Bb as q,Cd as K,Lc as j,Mc as I,N as x,Qb as l,Rb as d,T as w,Z as S,_d as W,a as _,ce as L,gb as c,ia as v,ie as A,ja as D,ka as f,mb as k,nd as H,oc as h,p as U,pc as y,qc as C,rb as B,sa as b,sb as P,xb as J}from"./chunk-POIHHM7P.js";function st(r,n){if(r&1&&(l(0,"div",7)(1,"div",8)(2,"div",9),h(3),d(),l(4,"div",10),h(5),j(6,"truncateName"),d()(),l(7,"div",11),h(8),d()()),r&2){let p=n.$implicit,t=n.index;c(3),C(" ",(p==null?null:p.lane)||t+1,""),c(2),C(" ",I(6,3,p==null?null:p.name),""),c(3),y(p==null?null:p.result)}}var Z=(()=>{let n=class n{constructor(t,e){var a,m;this.http=t,this.activatedRoute=e,this.baseUrl="https://kairos.competitioncorner.net",this.displayedParticipants=[],this.currentScrollIndex=0,this.participantsPerPage=10,this.allAthletes=[],this.autoScrollEnabled=!1,this.autoScrollInterval=5e3,this.settings={},this.destroy$=new U,this.locationId=+((a=e.snapshot.params)==null?void 0:a.locationId)||null,this.eventId=+((m=e.snapshot.params)==null?void 0:m.eventID)||null}ngOnInit(){this.startDataFetching()}updateAutoScroll(){var t;this.autoScrollEnabled&&((t=this.allAthletes)==null?void 0:t.length)>10?this.startAutoScroll(this.autoScrollInterval):(this.stopAutoScroll(),this.currentScrollIndex=0,this.updateDisplayedParticipants())}startAutoScroll(t){this.stopAutoScroll();let e=typeof t=="number"?t>1e3?t:t*1e3:5e3;this.autoScrollSubscription=x(e).pipe(f(this.destroy$)).subscribe(()=>{this.scrollToNextPage()})}stopAutoScroll(){this.autoScrollSubscription&&(this.autoScrollSubscription.unsubscribe(),this.autoScrollSubscription=null,console.log("Auto-scroll stopped"))}scrollToNextPage(){if(!this.allAthletes||this.allAthletes.length<=10)return;let t=Math.ceil(this.allAthletes.length/this.participantsPerPage);t<=1||(this.currentScrollIndex=(this.currentScrollIndex+1)%t,this.updateDisplayedParticipants())}startDataFetching(){this.fetchStaticData().pipe(f(this.destroy$)).subscribe({next:t=>{console.log("Initial static data loaded"),this.handleStaticData(t),this.updateAutoScroll(),this.startPolling()},error:t=>{console.error("Error loading initial static data:",t),this.startPolling()}})}startPolling(){this.staticDataSubscription=x(1e4).pipe(v(0),D(()=>this.fetchStaticData()),S((t,e)=>JSON.stringify(t)===JSON.stringify(e)),f(this.destroy$)).subscribe({next:t=>this.handleStaticData(t),error:t=>console.error("Static data error:",t)}),this.dynamicDataSubscription=x(500).pipe(v(0),D(()=>this.fetchDynamicData()),S((t,e)=>JSON.stringify(t)===JSON.stringify(e)),f(this.destroy$)).subscribe({next:t=>this.handleDynamicData(t),error:t=>console.error("Dynamic data error:",t)})}fetchStaticData(){let t="".concat(this.baseUrl,"/").concat(this.eventId,"/").concat(this.locationId,"/Static.json");return this.http.getReq({url:t}).pipe(w(e=>(console.error("Error fetching static data:",e),O(null))))}fetchDynamicData(){let t="".concat(this.baseUrl,"/").concat(this==null?void 0:this.eventId,"/").concat(this==null?void 0:this.locationId,"/Dynamics.json");return this.http.getReq({url:t}).pipe(w(e=>(console.error("Error fetching dynamic data:",e),O(null))))}handleStaticData(t){if(!t){console.log("No static data received");return}this.staticData=t.body,console.log("Static data loaded:",this.staticData),this.updateDisplayedParticipants()}handleDynamicData(t){if(!t){console.log("No dynamic data received");return}this.dynamicData=t.body||t,this.updateDisplayedParticipants()}updateDisplayedParticipants(){var N,z,$;if(!((N=this.staticData)!=null&&N.athletes)&&!((z=this.dynamicData)!=null&&z.athletes)){this.displayedParticipants.length>0&&(this.displayedParticipants=[]);return}let t=(($=this.dynamicData)==null?void 0:$.athletes)&&this.dynamicData.athletes.length>0,e=t?this.dynamicData.athletes:this.staticData.athletes;if(!e||e.length===0){this.displayedParticipants.length>0&&(this.displayedParticipants=[]);return}let a=e.filter(i=>i&&(i.displayName||i.name||i.shortName));if(a.length===0){this.displayedParticipants.length>0&&(this.displayedParticipants=[]);return}let m=a.sort((i,s)=>{let g=i.lane||i.CurrentRank||i.rank,o=i.lane||s.CurrentRank||s.rank;return g!==o?g-o:(i.lane||0)-(s.lane||0)});this.allAthletes=m;let M;if(this.allAthletes.length>10&&this.autoScrollEnabled){let i=this.currentScrollIndex*this.participantsPerPage,s=Math.min(i+this.participantsPerPage,this.allAthletes.length);M=this.allAthletes.slice(i,s)}else M=this.allAthletes.slice(0,this.participantsPerPage);let et=M.map((i,s)=>{var F,T,R;let g=null;t&&((F=this.staticData)!=null&&F.athletes)?g=this.staticData.athletes.find(u=>u.lane===i.lane||u.id===i.id):(T=this.dynamicData)!=null&&T.athletes&&(g=this.dynamicData.athletes.find(u=>u.lane===i.lane||u.id===i.id));let o=_(_({},g),i),E=this.getAthleteStatus(o),nt=E==="F"||E==="T",it=o.result,ot=o.displayName||o.name||"",rt=o.shortName,at=nt?it:o.score_abs||i.score_abs||0;return{id:o.id||i.id||i.lane||"athlete-".concat(s),lane:o.lane||i.lane||s+1,score_rel:o.score_rel||i.score_rel,name:ot,shortName:rt,result:at,place:o.CurrentRank||o.rank||s+1,currentMouvement:o!=null&&o.currentMouvement?(R=o==null?void 0:o.currentMouvement[0])==null?void 0:R.mouvementName:"",score:o.score_abs||i.score_abs||0}});this.displayedParticipants=et}getAthleteStatus(t){return t.status==="T"||t.status==="F"?t.status:t.result?"F":t.status||"0"}ngOnDestroy(){this.stopAutoScroll(),this.unsubscribeAll(),this.dataSubjSubscription&&this.dataSubjSubscription.unsubscribe(),this.staticDataSubscription&&this.staticDataSubscription.unsubscribe(),this.dynamicDataSubscription&&this.dynamicDataSubscription.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}unsubscribeAll(){this.showSubjectSubscription&&this.showSubjectSubscription.unsubscribe(),this.dataSubjSubscription&&this.dataSubjSubscription.unsubscribe(),this.settingsSubjSubscription&&this.settingsSubjSubscription.unsubscribe()}};n.\u0275fac=function(e){return new(e||n)(k(Q),k(L))},n.\u0275cmp=B({type:n,selectors:[["app-jumbotron-live"]],standalone:!1,decls:11,vars:6,consts:[[1,"w-100","d-flex","justify-content-between","custom-cover"],[1,"block-result-score"],[1,"result-score-title","pl-3"],[1,"result-score-title-heat","mt-0","pl-3"],[2,"height","100%"],["style","height: 10%","class","w-100 d-flex justify-content-between align-items-center",4,"ngFor","ngForOf"],[1,"result-score-title","result-score-button","pl-3"],[1,"w-100","d-flex","justify-content-between","align-items-center",2,"height","10%"],[2,"width","70%","height","100%","display","flex"],[1,"result-score-name",2,"width","10%","justify-content","center"],[1,"result-score-name","pl-2",2,"width","90%"],[1,"result-score-name","result-score-number"]],template:function(e,a){e&1&&(l(0,"div",0)(1,"div",1)(2,"h3",2),h(3),d(),l(4,"h3",3),h(5),d(),l(6,"div",4),J(7,st,9,5,"div",5),d(),l(8,"h3",6),h(9),j(10,"translate"),d()()()),e&2&&(c(3),C(" ",a.staticData==null?null:a.staticData.eventName,""),c(2),y(a.staticData==null?null:a.staticData.heatName),c(2),q("ngForOf",a.displayedParticipants),c(2),y(I(10,4,"BroadcastModule.Powered by Scoring Kairos")))},dependencies:[H,W,V],styles:["[_nghost-%COMP%] .ng-select .ng-select-container .ng-value-container .ng-placeholder{bottom:12px;left:13px}[_nghost-%COMP%] .ng-select.ng-select-single .ng-select-container .ng-value-container, [_nghost-%COMP%] .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{padding-left:7px}.menu-fixed[_ngcontent-%COMP%]{height:100px;width:100px;position:fixed;z-index:22;left:0;top:0}.menu-fixed[_ngcontent-%COMP%]:hover{padding-right:10px;height:450px;width:500px}.menu-fixed[_ngcontent-%COMP%]:hover .card-headers-select[_ngcontent-%COMP%]{display:block}
1.card-headers[_ngcontent-%COMP%]{width:100%;height:90px;display:flex}.card-header-score-block[_ngcontent-%COMP%]{width:20.67%;display:flex;justify-content:space-between;background-color:currentColor;margin-right:2px;height:100%;padding:9px 4px;align-items:center}.text-header-block[_ngcontent-%COMP%]{background-color:currentColor;height:35%;align-items:center;display:flex}.text-header[_ngcontent-%COMP%]{color:#fff;font-size:16px}.score-information-block[_ngcontent-%COMP%]{display:flex;color:#4070cb;margin-left:13px}.score-information-text[_ngcontent-%COMP%]{color:#fff;margin-left:6px;font-size:13px;display:flex;align-items:center}.score-text-name[_ngcontent-%COMP%]{color:#fff;font-size:17px;font-weight:600;display:flex;align-items:center}.score-number-block[_ngcontent-%COMP%]{background-color:#0a3f99;align-items:center;height:100%;display:flex;padding:0 7px}.score-number-text[_ngcontent-%COMP%]{color:#000;font-size:12px}.card-headers-image[_ngcontent-%COMP%]{height:100%;width:100px;text-align:center}.card-headers-select[_ngcontent-%COMP%]{width:100%;height:150px;flex-direction:column;display:none;background-color:#656d80}.ng-select[_ngcontent-%COMP%]{margin-bottom:0}.card-select-score-block[_ngcontent-%COMP%]{width:20.67%;display:flex;justify-content:space-between;background-color:inherit;margin-right:2px;height:100%;padding:12px 7px;align-items:center;box-shadow:5px 0 8px -3px #888}.score-number-select-text[_ngcontent-%COMP%]{color:#000;font-size:12px;font-weight:700}.card-headers-select-item[_ngcontent-%COMP%]{height:60%;display:flex;padding:10px;width:100%}.card-headers-select-score[_ngcontent-%COMP%]{height:40%;align-items:center;display:flex;width:100%}.head-row[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]{font-weight:400}td.table__cell--btn[_ngcontent-%COMP%]{padding-bottom:10px;padding-top:10px}.table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#000!important;border:1px solid #d3d1d1;text-align:center;width:72px;padding:11px 0}.table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#fff}.table[_ngcontent-%COMP%] .table__cell__inner[_ngcontent-%COMP%]{margin-right:0!important;width:100%}.table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{text-align:center}.textSelect[_ngcontent-%COMP%]{width:100%}.table[_ngcontent-c4][_ngcontent-%COMP%] tbody[_ngcontent-c4][_ngcontent-%COMP%] tr[_ngcontent-c4][_ngcontent-%COMP%] td[_ngcontent-c4][_ngcontent-%COMP%]{border:1px solid #d3d1d1;width:72px}.table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding-left:7px!important;padding-right:12px!important}.table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding-left:0!important;padding-right:0!important}.change-border[_ngcontent-%COMP%]{border-left:0 solid white!important;border-right:0 solid white!important}.table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background-color:inherit}h3[_ngcontent-%COMP%], p[_ngcontent-%COMP%]{margin-bottom:0!important}.score-inform[_ngcontent-%COMP%]{font-size:14px;font-weight:600;padding:3px}.block-result-score[_ngcontent-%COMP%]{height:100vh;position:relative;min-width:52%;display:flex;flex-direction:column;margin-left:auto}.result-score-title[_ngcontent-%COMP%]{margin:0;display:inline-table;align-items:center;height:72px;background-color:#fff;color:#212121;font-size:28px;font-weight:700;text-transform:uppercase;white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;box-shadow:4px 0 8px #0000003d;position:relative;line-height:68px}.result-score-title-heat[_ngcontent-%COMP%]{display:inline-table;align-items:center;margin:0;height:116px;background-color:#d9d9d9;color:#212121;font-size:36px;font-weight:700;letter-spacing:.86px;line-height:78px;text-transform:uppercase;white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis}
1.result-score-name[_ngcontent-%COMP%]{background-color:#000000d9;height:100%;color:#fff;font-weight:600;font-size:34px;display:flex;align-items:center;border-bottom:1px solid white;text-transform:uppercase}.result-score-number[_ngcontent-%COMP%]{display:flex;justify-content:center;width:30%;background-color:#2afd86;color:#000;border-bottom:1px solid black}.result-score-button[_ngcontent-%COMP%]{color:#fff;background-color:#000000bd;font-size:19px;width:100%}.card-information-time[_ngcontent-%COMP%]{width:100%;height:100px;display:flex}.text-header-information[_ngcontent-%COMP%]{color:#979797;font-size:13px}.score-number-information[_ngcontent-%COMP%]{background-color:red;align-items:center;display:flex;padding:7px 15px}.information-time-number[_ngcontent-%COMP%]{background-color:#54d1e8;height:100%;width:140px;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:600;border-bottom:1px solid #979797}.card-header-score-block-information[_ngcontent-%COMP%]{width:20.67%;display:flex;justify-content:space-between;background-color:#3c3c3c;height:100%;padding:7px 17px;align-items:center;border-right:1px solid black}.score-number-text-information[_ngcontent-%COMP%]{color:#000;font-size:19px;font-weight:600}.text-header-block-information[_ngcontent-%COMP%]{background-color:currentColor;height:35%;align-items:center;display:flex}.show-information[_ngcontent-%COMP%]{width:20.62%;height:100%;display:flex;justify-content:flex-end}.show-information-number[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:center;width:90px;height:100%}.additional-information-block[_ngcontent-%COMP%]{align-items:center;height:38px;background-color:#01ff00;display:flex;width:100%}.additional-information-time[_ngcontent-%COMP%]{width:257px;display:flex;justify-content:center;align-items:center;background-color:#54d1e8;height:100%}.score-information-text-change[_ngcontent-%COMP%]{color:#000;font-weight:700;white-space:nowrap}.nowrap[_ngcontent-%COMP%]{white-space:nowrap}.custom-cover[_ngcontent-%COMP%]{background-color:#01ff00}
1@media (max-width: 1000px){.result-score-name[_ngcontent-%COMP%]{font-size:14px}}.additional-information[_ngcontent-%COMP%]{display:flex;justify-content:center;width:600px;margin:20px auto}.additional-text-inform[_ngcontent-%COMP%]{margin-top:50px;font-size:20px;font-weight:600;text-align:center}"]});let r=n;return r})();var ct=[{path:"",component:Z}],tt=(()=>{let n=class n{};n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=P({type:n}),n.\u0275inj=b({imports:[A.forChild(ct),A]});let r=n;return r})();var vt=(()=>{let n=class n{};n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=P({type:n}),n.\u0275inj=b({imports:[K,tt,G,X]});let r=n;return r})();export{vt as JumbotronLiveModule};
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.