1import{S as m,F as u,E as p,a as _}from"./StatTile-C25tusZV.js";import{B as v,C as h,a as f,b as g,d as y,p as b}from"./index-BeIkYWfL.js";import{m as n}from"./app-xn0KEFYD.js";import{n as c,u as d,v as x,af as S,w,c as r,M as C,b as l,a4 as k,A as o,E as i,U as M,p as A,r as $,s as I}from"./vendor-vuetify-BQx-5jJi.js";import{M as T}from"./MeetOpsPolling.mixin-DqIq35fE.js";import{P as z}from"./Page.mixin-CMgGFbUk.js";import"./vendor-core-CHp3Jp3c.js";import"./vendor-media-DDm9m1eU.js";import"./get-DSPzyT3V.js";try{let s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new s.Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="7f9744b3-7534-4934-b26d-e6743ff494a2",s._sentryDebugIdIdentifier="sentry-dbid-7f9744b3-7534-4934-b26d-e6743ff494a2")}catch{}h.register(f,g,y,b);const L={name:"IngestSparkline",components:{Bar:v},props:{buckets:{type:Array,required:!0},from:{type:String,required:!0},bucketMinutes:{type:Number,required:!0},timezone:{type:String,default:null},height:{type:Number,default:64}},computed:{wrapperStyles(){return{position:"relative",height:`${this.height}px`}},labels(){const s=this.timezone?n.tz(this.from,this.timezone):n(this.from);return this.buckets.map((t,e)=>s.clone().add(e*this.bucketMinutes,"minutes").format("h:mm A"))},chartData(){const s=this.$vuetify.theme.dark?m.dark:m.light;return{labels:this.labels,datasets:[{label:"Scores",data:this.buckets,backgroundColor:s,borderRadius:2,maxBarThickness:14}]}},chartOptions(){return{responsive:!0,maintainAspectRatio:!1,animation:!1,plugins:{legend:{display:!1},tooltip:{callbacks:{label:s=>`${s.parsed.y} score${s.parsed.y===1?"":"s"}`}}},scales:{x:{display:!1},y:{display:!1,beginAtZero:!0}}}}}};var O=function(){var t=this,e=t._self._c;return e("Bar",{attrs:{"chart-data":t.chartData,"chart-options":t.chartOptions,styles:t.wrapperStyles}})},D=[],N=c(L,O,D,!1,null,null);const E=N.exports,R={name:"MeetHealthCard",components:{FreshnessChip:u,IngestSparkline:E},props:{meet:{type:Object,required:!0}},computed:{eventSummary(){return this.meet.events.map(s=>p[s]||s).join(", ")},hasCorrections(){return this.meet.corrections.today>0||this.meet.corrections.deletedToday>0},correctionsSummary(){const s=[];return this.meet.corrections.today>0&&s.push(`${this.meet.corrections.today} correction${this.meet.corrections.today===1?"":"s"}`),this.meet.corrections.deletedToday>0&&s.push(`${this.meet.corrections.deletedToday} deleted`),`${s.join(" · ")} today`}},methods:{formatInMeetTz(s,t){return this.meet.timezone?n.tz(s,this.meet.timezone).format(t):n(s).format(t)},sessionWindow(s){const t=this.formatInMeetTz(s.startsAt,"h:mm A");return s.endsAt?`${t}â${this.formatInMeetTz(s.endsAt,"h:mm A")}`:t},sessionStart(s){return this.formatInMeetTz(s.startsAt,"ddd h:mm A")},visit(){this.$inertia.visit(`/logs/${this.meet.id}`)}}};var P=function(){var t=this,e=t._self._c;return e(d,{staticClass:"fill-height d-flex flex-column",attrs:{outlined:"","data-testid":`meet-health-card-${t.meet.id}`}},[e(x,{staticClass:"pb-1"},[e("div",{staticClass:"d-flex align-center",staticStyle:{width:"100%","min-width":"0"}},[e("inertia-link",{staticClass:"text-truncate text-decoration-none flex-grow-1 mr-2",attrs:{href:`/logs/${t.meet.id}`}},[t._v(" "+t._s(t.meet.title)+" ")]),e("freshness-chip",{attrs:{status:t.meet.status,"last-score-at":t.meet.lastScoreAt}})],1)]),e(S,{staticClass:"pb-0"},[t._v(" "+t._s(t.meet.dateRange)+" "),t.meet.type?e("span",{staticClass:"text-capitalize"},[t._v(" · "+t._s(t.meet.type))]):t._e(),t.meet.isInternational?e("span",[t._v(" · International")]):t._e(),t.meet.events.length?e("span",[t._v(" · "+t._s(t.eventSummary))]):t._e()]),e(w,{staticClass:"flex-grow-1"},[e("ingest-sparkline",{staticClass:"my-2",attrs:{buckets:t.meet.sparkline.buckets,from:t.meet.sparkline.from,"bucket-minutes":t.meet.sparkline.bucketMinutes,timezone:t.meet.timezone}}),e("div",{staticClass:"d-flex justify-space-between text-center"},[e("div",[e("div",{staticClass:"text-h6"},[t._v(t._s(t.meet.counts.last15m))]),e("div",{staticClass:"text-caption muted--text"},[t._v("last 15 min")])]),e("div",[e("div",{staticClass:"text-h6"},[t._v(t._s(t.meet.counts.lastHour))]),e("div",{staticClass:"text-caption muted--text"},[t._v("last hour")])]),e("div",[e("div",{staticClass:"text-h6"},[t._v(t._s(t.meet.counts.today))]),e("div",{staticClass:"text-caption muted--text"},[t._v("today")])])]),e("div",{staticClass:"mt-3 text-caption"},[t.meet.currentSession?e("div",[e(r,{attrs:{"x-small":"",color:"success"}},[t._v("mdi-circle")]),t._v(" Now: "+t._s(t.meet.currentSession.label)+" ("+t._s(t.sessionWindow(t.meet.currentSession))+") ")],1):t.meet.nextSession?e("div",[e(r,{attrs:{"x-small":""}},[t._v("mdi-clock-outline")]),t._v(" Next: "+t._s(t.meet.nextSession.label)+" at "+t._s(t.sessionStart(t.meet.nextSession))+" ")],1):e("div",{staticClass:"muted--text"},[e(r,{attrs:{"x-small":""}},[t._v("mdi-calendar-blank-outline")]),t._v(" No session scheduled ")],1),t.hasCorrections?e("div",{staticClass:"warning--text mt-1"},[e(r,{attrs:{"x-small":"",color:"warning"}},[t._v("mdi-pencil-outline")]),t._v(" "+t._s(t.correctionsSummary)+" ")],1):t._e()])],1),e(C,{staticClass:"pt-0"},[e(l,{attrs:{text:"",small:"",color:"primary",href:`/logs/${t.meet.id}`},on:{click:function(a){return a.preventDefault(),t.visit.apply(null,arguments)}}},[t._v(" Details "),e(r,{attrs:{right:"",small:""}},[t._v("mdi-arrow-right")])],1)],1)],1)},V=[],j=c(R,P,V,!1,null,null);const q=j.exports,B={name:"MeetOps",components:{MeetHealthCard:q,StatTile:_},mixins:[z,T],pollOnly:["overview"],props:{overview:{type:Object,required:!0},meetOptions:{type:Array,required:!0}},data:()=>({selectedMeetId:null}),computed:{generatedAgo(){return n(this.overview.generatedAt).fromNow()},lastScoreAgo(){return this.overview.tiles.lastScoreAt?n(this.overview.tiles.lastScoreAt).fromNow():"â"},lastScoreExact(){return this.overview.tiles.lastScoreAt?n(this.overview.tiles.lastScoreAt).format("MMM D, h:mm:ss A"):"No scores in the current window"}},methods:{openMeet(s){s&&this.$inertia.visit(`/logs/${s}`)}}};var F=function(){var t=this,e=t._self._c;return e(k,{attrs:{"data-testid":"meet-ops-page"}},[e(o,{attrs:{align:"center"}},[e(i,{attrs:{cols:"12",md:"6"}},[e("h1",[t._v("Meet Ops")]),e("div",{staticClass:"text-caption muted--text"},[t._v(" Score ingest across live meets · updated "+t._s(t.generatedAgo)+" ")])]),e(i,{staticClass:"d-flex align-center justify-md-end",staticStyle:{gap:"8px"},attrs:{cols:"12",md:"6"}},[e(M,{staticStyle:{"max-width":"320px"},attrs:{items:t.meetOptions,"item-text":"title","item-value":"id",label:"Open any meetâ¦",dense:"","hide-details":"",outlined:"",clearable:""},on:{change:t.openMeet},scopedSlots:t._u([{key:"item",fn:function({item:a}){return[e(A,[e($,[t._v(t._s(a.title))]),e(I,[t._v(t._s(a.startDate))])],1)]}}]),model:{value:t.selectedMeetId,callback:function(a){t.selectedMeetId=a},expression:"selectedMeetId"}}),e(l,{attrs:{text:"",small:"",href:"/logs/activity"},on:{click:function(a){return a.preventDefault(),t.$inertia.visit("/logs/activity")}}},[e(r,{attrs:{left:"",small:""}},[t._v("mdi-format-list-bulleted")]),t._v(" Raw feed ")],1),e(l,{attrs:{icon:"",small:"",title:t.pollPaused?"Resume auto-refresh":"Pause auto-refresh"},on:{click:t.togglePolling}},[e(r,[t._v(t._s(t.pollPaused?"mdi-play":"mdi-pause"))])],1)],1)],1),e(o,[e(i,{attrs:{cols:"6",md:"3"}},[e("stat-tile",{attrs:{label:"Active Meets",value:t.overview.tiles.activeMeets}})],1),e(i,{attrs:{cols:"6",md:"3"}},[e("stat-tile",{attrs:{label:"Scores Today",value:t.overview.tiles.scoresToday.toLocaleStr
1ing()}})],1),e(i,{attrs:{cols:"6",md:"3"}},[e("stat-tile",{attrs:{label:"Last Hour",value:t.overview.tiles.scoresLastHour.toLocaleString(),caption:`${t.overview.tiles.scoresLast15m} in the last 15 min`}})],1),e(i,{attrs:{cols:"6",md:"3"}},[e("stat-tile",{attrs:{label:"Last Score",value:t.lastScoreAgo,caption:t.lastScoreExact}})],1)],1),t.overview.meets.length?e(o,t._l(t.overview.meets,function(a){return e(i,{key:a.id,attrs:{cols:"12",md:"6",lg:"4"}},[e("meet-health-card",{attrs:{meet:a}})],1)}),1):e(o,[e(i,{attrs:{cols:"12"}},[e(d,{staticClass:"text-center py-12",attrs:{outlined:""}},[e(r,{attrs:{size:"64",color:"muted"}},[t._v("mdi-sleep")]),e("div",{staticClass:"text-h6 mt-2"},[t._v("No live meets right now")]),e("div",{staticClass:"text-body-2 muted--text mt-1"},[t._v(" Meets appear here automatically when their dates say they should be running or when scores arrive. Use the picker above to review how any past meet ran. ")])],1)],1)],1)],1)},H=[],U=c(B,F,H,!1,null,null);const et=U.exports;export{et as default};
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.