PageSourceSearch

https://ftc.nexus/en/chunk-JSVIHAYC.js

js ftc.nexus collected 2026-10-08 20:50:41 UTC 2,643 bytes, 2 lines download raw bytes

1import{O as g,p as T,q as h}from"./chunk-A7GXEXYS.js";var b=1e3*60*10,x=b*2;function w(s,u,c){var o,r;let l=u&&u>1;if(s.status==="queued")return"queue";if(s.status==="on_deck")return l?"field":"on-deck";if(s.status==="complete"&&((o=s.timestamps)!=null&&o.complete&&s.timestamps.complete>c-b||s.time&&s.time>c-b))return(r=s.timestamps)!=null&&r.started?"too-late":"field";if(s.status==="waiting")return s.estimatedQueueTime&&s.estimatedQueueTime-x<c?"hold":"too-early"}function E(s,u,c=!1){let l={};for(let o of s)l[o]=h({name:u.getEventName(o),matches:u.getMatchList(o),fieldCount:u.getSetting(o,"fieldCount"),now:u.nowTimer(1e4)});return h(l).pipe(T(o=>{var p;let r=[];for(let[f,a]of Object.entries(o)){let n=a.matches.findLast(t=>t.status==="on_deck"||t.status==="queued"),N=a.matches.find(t=>t.status==="waiting"),M=a.matches.findLast(t=>{var m;return(m=t.timestamps)==null?void 0:m.started}),k=(p=a.matches.findLast(t=>t.status==="complete"))==null?void 0:p.breakAfter,d;if(n!=null&&n.time&&n.estimatedStartTime){let t=Math.round((n.time-n.estimatedStartTime)/1e3/60);Math.abs(t)<1440&&(Math.abs(t)<=2?d="on schedule":d=t<0?`${Math.abs(t)}m behind`:`${t}m ahead`)}let i=[];for(let t of a.matches){let m=w(t,a.fieldCount,a.now);if(m==="field"||m==="queue"){let C=(t.red||[]).concat(t.blue||[]);for(let e of C)e.team&&(c?(e.status==="human"||e.status==="waiting")&&i.push({teamNumber:e.team,status:"field",buttonClass:"",tooltipText:""}):(m==="queue"&&(e.status==="early"&&i.push({teamNumber:e.team,status:"early",buttonClass:"btn-outline-info",tooltipText:"Proceed to queue"}),e.status==="human"&&i.push({teamNumber:e.team,status:"queue-robot",buttonClass:"btn-outline-success",tooltipText:"Proceed to queue (human checked in)"}),e.status==="waiting"&&i.push({teamNumber:e.team,status:"queue",buttonClass:"btn-success",tooltipText:"Proceed to queue"})),m==="field"&&(e.status==="early"&&i.push({teamNumber:e.team,status:"field-early",buttonClass:"btn-info",tooltipText:"Proceed to field"}),e.status==="human"&&i.push({teamNumber:e.team,status:"field-robot",buttonClass:"btn-outline-warning",tooltipText:"Proceed to field (human checked in)"}),e.status==="waiting"&&i.push({teamNumber:e.team,status:"field",buttonClass:"btn-warning",tooltipText:"Proceed to field"}))))}}if(!a.name)continue;let q=a.name.replaceAll(" Division","").replaceAll(" Regional","");r.push({key:f,name:a.name,shortName:q,nowQueuing:n,upcomingMatch:N,behind:d,lastStartedMatch:M,teamActions:i,breakLabel:k})}return r.sort((f,a)=>f.name.localeCompare(a.name)),r}),g(1))}export{w as a,E as b};
2/**i18n:8849c35ed7d56eea57e07b59482ab337b8520b0828ef6bfd1761c41b6d989a36*/

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.