PageSourceSearch

https://robotstatistics.com/assets/Default-L7vfzn_z.js

js robotstatistics.com collected 2026-09-24 14:00:46 UTC 61,991 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/EventDayOverlay-v2t7nPgp.js","assets/runtime-dom.esm-bundler-CQ0Zn2r4.js","assets/locale-BI5oJrMT.js","assets/VBtn-B6Y_v1Ks.js","assets/ripple-Mql1eKel.js","assets/VIcon-D3ZTM4Ev.js","assets/VIcon-1qXJMdE8.css","assets/ripple-CqXFQjSd.css","assets/group-UOiZEMs_.js","assets/VBtn-DT8LPEHN.css","assets/LockScreenTracking-BDsmc3Sg.js","assets/pinia-CHBTXpJ0.js","assets/eventDay-BC2JTxiu.js","assets/LockScreenTracking-BMt5cDa6.css","assets/transitions-Du1S8JVZ.js","assets/VDialog-CAnvsGEX.js","assets/VOverlay-D5swMv27.js","assets/animation-PyFLVNSR.js","assets/easing-DCtktnc3.js","assets/scopeId-7l3fFPua.js","assets/transition-D7mTF842.js","assets/display-5rWAsKoD.js","assets/VOverlay-hqpGSD9u.css","assets/forwardRefs-RiU8Uqxp.js","assets/dialog-transition-DTUqWurH.js","assets/VDialog-CvlBvlKA.css","assets/TeamInfoPill-BBCK3k5x.js","assets/TeamInfoPill-Bw-VtkiK.css","assets/VCard-CCXAodYU.js","assets/createSimpleFunctional-OEsfpqba.js","assets/VAvatar-C4AdI554.js","assets/VBadge-CqvTAXwo.js","assets/VBadge-DFz5ETf4.css","assets/VImg-BzjLGuWy.js","assets/VImg-CD1yzo7p.css","assets/VAvatar-D0WkGyS1.css","assets/VCard-v_d_q0Rh.css","assets/VAlert-B5EwWqGp.js","assets/VAlert-BKPs71Og.css","assets/TeamStats-CPLuAygS.js","assets/util-Cdh3PL7_.js","assets/analytics-CjcY-Ep0.js","assets/sponsorships-C0mRZ0SU.js","assets/VList-OJnPL69T.js","assets/ssrBoot-TCR13sYz.js","assets/VDivider-sPnqjbGE.js","assets/VDivider-B9Nt75Tv.css","assets/VList-vtlr0ren.css","assets/VMenu-LCve1Oyz.js","assets/VMenu-B7mAcGLX.css","assets/session-DXYQe4ru.js","assets/seasons-BwcOQn6t.js","assets/moment-BH1ryPXm.js","assets/RsSmoothOutlineButton-BCeJE-kJ.js","assets/RsSmoothOutlineButton-DuBeD0pL.css","assets/dist-C0vBxjaQ.js","assets/TeamStats-CwtZDzXH.css","assets/MatchPredictionPanel-D6u9VXvZ.js","assets/VSheet-BbwXQ7Gn.js","assets/VSheet-CH1DEJge.css","assets/MatchPredictionPanel-CFTeRLtr.css","assets/StrategyBoardDialog-DdIos1V8.js","assets/StrategyBoardDialog-DpCrFFkV.css","assets/TeamHailSurface-B7A57bIx.js","assets/VSelect-CumrvNo1.js","assets/VChip-DkBgyrvA.js","assets/VSlideGroup-DnoxHGIh.js","assets/VSlideGroup-Dco48V-a.css","assets/VChip-BfxGbTdl.css","assets/VSelectionControl-C-Wb5xwp.js","assets/VInput-BxObYYlA.js","assets/VInput-DOMR_3Gs.css","assets/VSelectionControl-kMTQclwp.css","assets/autofocus-BMYbaQ8V.js","assets/autofocus-CCo1RhFv.css","assets/VTextField-Ddrcvf5Q.js","assets/VSelect-CAxEESw-.css","assets/TeamHailSurface-C-Ftt7V_.css","assets/scoutingContext-BnuCvNbl.js","assets/EventDayOverlay-CsQt_7sW.css","assets/MainMenu-CkNvT4gP.js","assets/VSnackbar-C-cVgP3j.js","assets/layout-DV5syUqU.js","assets/VSnackbar-BtZq7_X-.css","assets/appConfig-BKaYoMVX.js","assets/VSpacer-DHVxGIXA.js","assets/VSpacer-DfbUir7X.css","assets/pwaInstall-i3CP56yL.js","assets/VSwitch-D5pMJfd8.js","assets/VSwitch-Cos8PNSP.css","assets/CloseDialogHeader-CtnjI9dq.js","assets/CloseDialogHeader-DCZ5OrfT.css","assets/AccountDialog-CwXWaY-a.js","assets/VWindowItem-Cu4y_a0F.js","assets/VWindowItem-DWqQEbkq.css","assets/VForm-D4InjZuV.js","assets/userDisplay-BzItIx3y.js","assets/AccountDialog-CqhTcLqZ.css","assets/sounds-BS7tGtHp.js","assets/vue-responsive-video-background-player-Cbm3TuHM.js","assets/discord-symbol-8juK-5ij.js","assets/entitlements-D8DfWZyo.js","assets/MyAccount-DzBMT_xm.js","assets/coachAccess-DsgNNGVy.js","assets/DiscordLinkCard-7yMUSNMq.js","assets/DiscordLinkCard-DOXT52Lt.css","assets/MyAccount-B9MMFFK-.css","assets/teamMemberRoles-fxnpEIWM.js","assets/MainMenu-BIZsgN87.css","assets/Timer-byNifi9H.js","assets/Timer-CfPUnd50.css","assets/ToolsSheet-DLe74Ps4.js","assets/toolDeepLinks-DP1FaWao.js","assets/VBottomSheet-BHOksVwI.js","assets/VBottomSheet-CUfi-uhB.css","assets/ToolsSheet-BDFeD4oI.css","assets/SearchSheet-CXfzmJwT.js","assets/SearchSheet-5iMw22Kq.css","assets/FavoritesSheet-DB1W2E97.js","assets/FavoritesSheet-tOXrzjOR.css","assets/GearRatioCalculator-Pt7H0sGp.js","assets/GearRatioCalculator-D5o8oTDI.css","assets/DriveSpeedCalculator-CdAMqYIc.js","assets/VTabs-CxkVJXMi.js","assets/VTabs-COul6aqI.css","assets/VExpansionPanels-BN-3BF5R.js","assets/VExpansionPanels-B0OuY89W.css","assets/DriveSpeedCalculator-CgT3kV8t.css","assets/IntakeAnalyzer-v7z2ASSg.js","assets/IntakeAnalyzer-GU8QiXA9.css","assets/EjectorAnalyzer-DPSlbJS9.js","assets/EjectorAnalyzer-DTpUlDip.css","assets/NotificationsDialog-DCZnHEbQ.js","assets/Notifications-DTU70DQa.js","assets/PleaseLogin-CsLbeju3.js","assets/PleaseLogin-cuESntnp.css","assets/Notifications-DAihDK4g.css","assets/NotificationsDialog-BYZUplGn.css"])))=>i.map(i=>d[i]);
2import{E as e,F as t,G as n,H as r,Ht as i,M as a,T as o,Wt as s,Y as c,Zt as l,_ as u,b as d,d as f,et as p,gt as m,i as h,kt as g,mt as _,nt as v,ot as y,p as b,q as x,qt as S,t as C,tt as w,v as T,vt as E,w as D,x as O,xt as ee,y as k,z as te}from"./runtime-dom.esm-bundler-CQ0Zn2r4.js";import{D as ne,E as re,_t as ie,bt as A,c as j,f as M,h as ae,l as N,s as P,tt as F,u as I,v as L,y as R,yt as z}from"./locale-BI5oJrMT.js";import{t as B}from"./util-Cdh3PL7_.js";import{a as oe,r as se,t as V}from"./VBtn-B6Y_v1Ks.js";import{C as H,D as U,E as W,S as G,T as ce,b as K,m as le,w as ue,x as q}
2from"./ripple-Mql1eKel.js";import{c as J,h as de,m as fe,p as pe,t as Y}from"./VIcon-D3ZTM4Ev.js";import{n as me,r as he}from"./group-UOiZEMs_.js";import{t as ge}from"./VBadge-CqvTAXwo.js";import{t as _e}from"./VImg-BzjLGuWy.js";import{o as X,r as Z}from"./layout-DV5syUqU.js";import{h as ve,m as ye}from"./useApi-CROJJdhE-DwKw2flD.js";import{n as be}from"./pinia-CHBTXpJ0.js";import{n as xe,t as Se}from"./LockScreenTracking-BDsmc3Sg.js";import{_ as Ce,a as we,b as Q,c as Te,d as Ee,f as De,g as Oe,h as ke,i as Ae,l as je,m as Me,o as Ne,r as Pe,u as Fe}from"./eventDay-BC2JTxiu.js";import{t as Ie}from"./appConfig-BKaYoMVX.js";import{t as $}from"./preload-helper-Czpn1I53.js";import{n as Le,t as Re}from"./VToolbar-CrsCz-RD.js";import{t as ze}from"./ssrBoot-TCR13sYz.js";import{n as Be,t as Ve}from"./toolDeepLinks-DP1FaWao.js";import{t as He}from"./VDivider-sPnqjbGE.js";import{t as Ue}from"./VMain-BPdHgiOR.js";import{t as We}from"./VApp-Q2w0wGjS.js";a(),g(),h();var Ge={name:`EventRadarDock`,emits:[`open`],components:{LockScreenTracking:Se},props:{now:{type:Number,default:()=>Date.now()},teamId:{type:[String,Number],default:``},entries:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},isPhone:{type:Boolean,default:!1},startExpanded:{type:Boolean,default:!1}},data(){return{minimized:!0,storageKey:`robotstats:event-radar:minimized`}},mounted(){if(this.startExpanded){this.minimized=!1;return}this.restoreMinimizedState()},watch:{startExpanded(e){e&&(this.minimized=!1)}},computed:{themeVars(){return Ce},minimizeIcon(){return this.isPhone?`mdi-chevron-down`:`mdi-chevron-right`},expandIcon(){return this.isPhone?`mdi-chevron-up`:`mdi-chevron-left`}},methods:{statusColor(e){return Q(e,this.now).color},restoreMinimizedState(){try{let e=localStorage.getItem(this.storageKey);this.minimized=e===null||e===`true`}catch{this.minimized=!0}},toggleMinimized(e){this.minimized=!!e;try{localStorage.setItem(this.storageKey,String(this.minimized))}catch{}},resultText(e){return e?e===`Win`?`W`:e===`Loss`?`L`:e===`Tie`?`T`:e:``},allianceText(e){let t=String(e?.allianceColor||``).toLowerCase();return t===`red`?`Red`:t===`blue`?`Blue`:``},allianceClass(e){let t=String(e?.allianceColor||``).toLowerCase();return t===`red`?`event-radar-card__alliance--red`:t===`blue`?`event-radar-card__alliance--blue`:``},lastMatchText(e){let t=e?.team_last_match;if(!t?.short)return`—`;let n=this.resultText(t.result);return n?`${t.short} ${n}`:t.short},effectiveQueueStatus(e){return Q(e,this.now).status},distanceText(e){return Q(e,this.now).detail},queueText(e){return Q(e,this.now).label},queueToneClass(e){let t=this.effectiveQueueStatus(e);return{"event-radar-card--tracking":t===`tracking`||!!e?.division_next_match?.short&&!e?.team_next_match?.short,"event-radar-card--done":t===`done`,"event-radar-card--queue":t===`queue`,"event-radar-card--soon":t===`soon`,"event-radar-card--later":t===`later`,"event-radar-card--far":t===`far`}}}},Ke={class:`event-radar-shell rs-surface-signal`},qe={class:`event-radar-shell__entries`},Je=[`onClick`],Ye={key:0,class:`event-radar-card__meta`},Xe={class:`event-radar-card__meta-right`},Ze={class:`event-radar-card__topline`},Qe={class:`event-radar-card__division-wrap`},$e={class:`event-radar-card__division-title`},et={class:`event-radar-card__subline`},tt={class:`event-radar-card__stats`},nt={class:`event-radar-card__stat`},rt={class:`event-radar-card__stat`},it={class:`event-radar-card__value-wrap`},at={class:`event-radar-card__stat`},ot={class:`event-radar-card__footer`},st={class:`event-radar-card__hint`};function ct(e,t,r,a,l,u){let p=c(`LockScreenTracking`);return n(),k(C,{name:`event-radar-fade`},{default:v(()=>[r.entries.length&&l.minimized?(n(),O(`button`,{key:0,type:`button`,class:i([`event-radar-minimized`,{"event-radar-minimized--mobile":r.isPhone}]),onClick:t[0]||=e=>u.toggleMinimized(!1)},[t[2]||=T(`span`,{class:`event-radar-minimized__signal`,"aria-hidden":`true`},[T(`span`,{class:`event-radar-minimized__ring`}),T(`span`,{class:`event-radar-minimized__ring event-radar-minimized__ring--delayed`}),T(`span`,{class:`event-radar-minimized__dot`})],-1),t[3]||=T(`span`,{class:`event-radar-minimized__label`},`Radar`,-1),o(Y,{size:`18`,color:`paper`},{default:v(()=>[D(S(u.expandIcon),1)]),_:1})],2)):r.entries.length?(n(),O(`div`,{key:1,class:i([`event-radar-dock`,{"event-radar-dock--mobile":r.isPhone}]),style:s(u.themeVars)},[T(`div`,Ke,[T(`div`,qe,[(n(!0),O(b,null,x(r.entries,(a,c)=>(n(),O(`button`,{key:`${a.eventid}-${a.division?.id||`na`}`,type:`button`,class:i([`event-radar-card rs-surface-row`,[u.queueToneClass(a),{"event-radar-card--first":c===0}]]),onClick:t=>e.$emit(`open`,a)},[c===0?(n(),O(`div`,Ye,[t[4]||=T(`div`,{class:`event-radar-card__meta-left`},[T(`span`,{class:`event-radar-dock__signal`,"aria-hidden":`true`},[T(`span`,{class:`event-radar-dock__signal-ring`}),T(`span`,{class:`event-radar-dock__signal-ring event-radar-dock__signal-ring--delayed`}),T(`span`,{class:`event-radar-dock__signal-dot`})]),T(`span`,{class:`event-radar-dock__eyebrow`},`Event Radar`)],-1),T(`div`,Xe,[r.loading?(n(),k(se,{key:0,indeterminate:``,size:`14`,width:`2`,color:`paper`})):d(``,!0),T(`button`,{type:`button`,class:`event-radar-card__minimize`,onClick:t[1]||=f(e=>u.toggleMinimized(!0),[`stop`])},[o(Y,{size:`18`,color:`silver`},{default:v(()=>
2[D(S(u.minimizeIcon),1)]),_:1})])])])):d(``,!0),T(`div`,Ze,[T(`div`,Qe,[T(`span`,$e,S(a.division?.name||`Division`),1)]),T(`span`,{class:`event-radar-card__status`,style:s({color:u.statusColor(a)})},S(u.queueText(a)),5)]),T(`div`,et,` Last completed `+S(a.division_last_match?.short||`—`),1),T(`div`,tt,[T(`div`,nt,[t[5]||=T(`span`,{class:`event-radar-card__label`},`Division next`,-1),T(`strong`,null,S(a.division_next_match?.short||`—`),1)]),T(`div`,rt,[t[7]||=T(`span`,{class:`event-radar-card__label`},`Your next`,-1),T(`div`,it,[T(`strong`,null,S(a.team_next_match?.short||`—`),1),u.allianceText(a.team_next_match)?(n(),O(`span`,{key:0,class:i([`event-radar-card__alliance`,u.allianceClass(a.team_next_match)])},[t[6]||=T(`span`,{class:`event-radar-card__alliance-dot`},null,-1),D(` `+S(u.allianceText(a.team_next_match)),1)],2)):d(``,!0)])]),T(`div`,at,[t[8]||=T(`span`,{class:`event-radar-card__label`},`Your last`,-1),T(`strong`,null,S(u.lastMatchText(a)),1)])]),T(`div`,ot,[T(`span`,st,S(u.distanceText(a)),1),o(Y,{size:`18`,color:`paper`},{default:v(()=>[...t[9]||=[D(`mdi-chevron-right`,-1)]]),_:1})])],10,Je))),128))]),o(p,{entry:r.entries[0],"team-id":r.teamId},null,8,[`entry`,`team-id`])])],6)):d(``,!0)]),_:1})}var lt=z(Ge,[[`render`,ct],[`__scopeId`,`data-v-f4220bb1`]]),ut=be(`eventDay`,{state:()=>({teamId:``,entries:[],loading:!1,disabled:!1,error:``,preview:!1,updatedAt:0}),actions:{setRadarSnapshot({teamId:e=``,entries:t=[],loading:n=!1,disabled:r=!1,error:i=``,preview:a=!1}={}){this.teamId=String(e||``),this.entries=Array.isArray(t)?t:[],this.loading=!!n,this.disabled=!!r,this.error=String(i||``),this.preview=!!a,this.updatedAt=Date.now()},resetRadarSnapshot(){this.$reset()}}});a();var dt=45e3,ft=12e3,pt={name:`EventDayHost`,components:{EventDayOverlay:e(()=>$(()=>import(`./EventDayOverlay-v2t7nPgp.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79]))),EventRadarDock:lt},mixins:[B],data(){return{entries:[],loading:!1,requestId:0,pollingTimer:null,radarClock:Date.now(),radarClockTimer:null,hailPollingTimer:null,openedFromRadar:!1,nativeModalActive:!1,workspace:null,workspaceLoading:!1,noteSaving:!1,noteStatus:null,predictionLoading:!1,predictionMatch:null,predictionError:``,redProbability:50,blueProbability:50,operationsStatus:``,operationsStatusType:`success`,operationsBusyKey:``,operationsCompletion:{},operationsPending:{},operationsRevision:0,hails:[],hailLoading:!1,hailBusy:!1,hailStatus:null,contextTeam:null,radarTeamId:``,radarDisabled:!1,radarError:``}},computed:{appConfigStore(){return Ie()},eventDayStore(){return ut()},radarEnabled(){return this.appConfigStore.radarEnabled},previewMode(){return De(this.$route?.query?.radarPreview)},overlayOpen(){return!!this.eventDayEventId},eventDayEventId(){return Ae(this.$route?.query)},eventDayTeamId(){return Ne(this.$route?.query)},selectedEntry(){return Te(this.entries,this.eventDayEventId)},selectedTeam(){return this.contextTeam||this.getTeam()||(this.previewMode?{team_number:`2775U`}:null)},currentUser(){return this.getUser()},routeAllowsRadar(){return je(this.$route?.path)},radarRequestAllowed(){return Fe(this.$route?.path,this.$route?.query)},showRadarDock(){return(this.radarEnabled||this.previewMode)&&this.routeAllowsRadar&&!this.overlayOpen&&this.entries.length>0}},watch:{previewMode(){this.loadEventRadar()},"$route.path"(){this.loadEventRadar()},overlayOpen:{immediate:!0,handler(e){this.syncModalState(e),e&&!this.entries.length&&this.loadEventRadar(),e&&this.loadWorkspace(),e&&this.loadOperationsCompletion(),e&&this.startHailPolling(),e||this.stopHailPolling(),e||this.resetPrediction()}},"selectedEntry.team_next_match.id"(){this.resetPrediction()},eventDayTeamId(){this.contextTeam=null,this.loadOperationsCompletion(),this.overlayOpen&&this.loadEventRadar(),this.overlayOpen&&this.loadWorkspace()}},mounted(){this.radarClockTimer=window.setInterval(()=>{this.radarClock=Date.now()},15e3),xe().initialize(),window.addEventListener(`focus`,this.refreshLockScreen),window.addEventListener(`robotstats:live-match-refresh`,this.refreshLockScreen),this.loadEventRadar(
2),this.startPolling(),window.addEventListener(`focus`,this.handleVisibleRefresh),window.addEventListener(`robotstats:team-updated`,this.handleTeamUpdated),document.addEventListener(`visibilitychange`,this.handleVisibleRefresh)},beforeUnmount(){window.clearInterval(this.radarClockTimer),window.removeEventListener(`focus`,this.refreshLockScreen),window.removeEventListener(`robotstats:live-match-refresh`,this.refreshLockScreen),this.stopPolling(),this.stopHailPolling(),window.removeEventListener(`focus`,this.handleVisibleRefresh),window.removeEventListener(`robotstats:team-updated`,this.handleTeamUpdated),document.removeEventListener(`visibilitychange`,this.handleVisibleRefresh),this.syncModalState(!1),this.eventDayStore.resetRadarSnapshot()},methods:{refreshLockScreen(){xe().initialize()},publishRadarSnapshot(){this.eventDayStore.setRadarSnapshot({teamId:this.radarTeamId,entries:this.entries,loading:this.loading,disabled:this.radarDisabled,error:this.radarError,preview:!!this.previewMode})},buildPreviewAlliances(e,t,n=!1){let r=String(t||``).toLowerCase();if(!r)return[];let i={id:`preview-partner`,number:`81101A`,name:`Circuit Breakers`},a={id:`preview-home`,number:e,name:`Your Team`},o=[{id:`preview-opponent-1`,number:`5069Y`,name:`Iron Pulse`},{id:`preview-opponent-2`,number:`3141A`,name:`Pi Robotics`}],s=[a,i];return[{color:`red`,score:n?r===`red`?122:98:null,teams:r===`red`?s:o},{color:`blue`,score:n?r===`blue`?122:98:null,teams:r===`blue`?s:o}]},buildPreviewMatch(e,t,n=null,r=null,i=`2775U`){return{id:`preview-match-${t}`,short:e,matchnum:t,result:n,allianceColor:r,field:r?`Field 2`:`Field 1`,scheduled:null,started:null,alliances:this.buildPreviewAlliances(i,r,!!n)}},buildPreviewEntry(e,t){let n=Pe(),r={queue:[43,44,47,41,3,!0,`queue`,`blue`,`Win`,`red`],soon:[43,44,49,41,5,!1,`soon`,`red`,`Win`,`blue`],later:[43,44,52,38,8,!1,`later`,`blue`,`Loss`,`red`],far:[43,44,58,35,14,!1,`far`,`red`,`Win`,`blue`],tracking:[43,44,null,null,null,!1,`tracking`,null,null,null],done:[50,null,null,47,null,!1,`done`,null,`Win`,`red`]},[i,a,o,s,c,l,u,d,f,p]=r[t]||r.queue,m=e?.team_number||e?.number||`2775U`;return{eventid:n.id,name:n.name,ongoing:!0,season:{id:197,name:`VRC: Override`,code:`RE-V5RC-26-0001`},program:{id:1,name:`V5RC`,code:`V5RC`},division:{id:1,name:`Technology Division`,order:1},division_last_match:i?this.buildPreviewMatch(`Q${i}`,i):null,division_next_match:a?this.buildPreviewMatch(`Q${a}`,a):null,team_next_match:o?this.buildPreviewMatch(`Q${o}`,o,null,d,m):null,team_last_match:s?this.buildPreviewMatch(`Q${s}`,s,f,p,m):null,matches_until_team:c,queue_now:l,queue_status:u,updated_at:new Date().toISOString(),preview_team:m}},buildPreviewWorkspace(){return{id:`event-day-preview-hub`,name:`2775U Team Hub`,my_access_level:`editor`}},startPolling(){this.stopPolling(),this.pollingTimer=window.setInterval(()=>{document.hidden||this.loadEventRadar({silent:!0})},dt)},stopPolling(){this.pollingTimer&&=(window.clearInterval(this.pollingTimer),null)},startHailPolling(){this.stopHailPolling(),this.hailPollingTimer=window.setInterval(()=>{document.hidden||!this.overlayOpen||(this.loadHails({silent:!0}),this.loadSharedOperationsCompletion({silent:!0}))},ft)},stopHailPolling(){this.hailPollingTimer&&=(window.clearInterval(this.hailPollingTimer),null)},handleVisibleRefresh(){document.hidden||(this.loadEventRadar({silent:!0}),this.overlayOpen&&this.loadSharedOperationsCompletion({silent:!0}))},handleTeamUpdated(){this.contextTeam=null,this.loadEventRadar()},async resolveEventDayTeam(){let e=this.getTeam(),t=this.eventDayTeamId;if(!t)return this.contextTeam=null,e;if(String(this.contextTeam?.id||``)===t)return this.contextTeam;if(String(e?.id||``)===t)return this.contextTeam=e,e;try{let n=(await A.get(`/team/${encodeURIComponent(t)}`,{baseURL:this.baseURL})).data?.data?.[0]||null;return this.contextTeam=n,n||e}catch(t){return console.error(`Unable to restore the Event Day team context:`,t),this.contextTeam=null,e}},async loadEventRadar({silent:e=!1}={}){let t=++this.requestId;if(!this.radarRequestAllowed){this.clearRadarState();return}if(await this.appConfigStore.ensureFresh(),!this.radarRequestAllowed){this.clearRadarState();return}let n=await this.resolveEventDayTeam();if(!this.radarRequestAllowed){this.clearRadarState();return}if(this.radarTeamId=String(n?.id||``),this.radarDisabled=!1,this.radarError=``,this.previewMode){this.entries=[this.buildPreviewEntry(n||{team_number:`2775U`}
2,this.previewMode)],this.loading=!1,this.publishRadarSnapshot();return}if(!this.radarEnabled){this.entries=[],this.loading=!1,this.radarDisabled=!0,this.publishRadarSnapshot();return}if(!n?.id){this.entries=[],this.loading=!1,this.publishRadarSnapshot();return}e||(this.loading=!0,this.publishRadarSnapshot());try{let e=await A.get(`/events/radar/${encodeURIComponent(n.id)}`,{baseURL:this.baseURL,params:{_fresh:Date.now()},headers:{"Cache-Control":`no-cache`,Pragma:`no-cache`,Expires:`0`}});if(t!==this.requestId)return;if(e.data?.meta?.disabled){this.appConfigStore.setFeatureEnabled(`radar_enabled`,!1),this.entries=[],this.radarDisabled=!0;return}this.entries=Array.isArray(e.data?.data)?e.data.data:[]}catch(n){console.error(`Error loading Event Radar:`,n),this.radarError=n?.response?.data?.message||n?.message||`Unable to confirm Event Day availability.`,!e&&t===this.requestId&&(this.entries=[])}finally{t===this.requestId&&(this.loading=!1,this.publishRadarSnapshot())}},clearRadarState(){this.entries=[],this.loading=!1,this.radarDisabled=!1,this.radarError=``,this.publishRadarSnapshot()},rememberEntryContext(e){e?.division?.id&&this.updateObject(`division`,{event:String(e.eventid),division:{id:e.division.id,name:e.division.name,order:e.division.order}}),this.updateObject(`eventMatchesScope:${e.eventid}`,{forTeam:`MY`,selectedTeam:null})},async loadWorkspace(){this.workspace=null,this.workspaceLoading=!1,this.noteStatus=null,this.operationsStatus=``,this.operationsStatusType=`success`,this.hails=[],this.hailStatus=null;let e=await this.resolveEventDayTeam(),t=this.getUser();if(this.previewMode){this.workspace=this.buildPreviewWorkspace();return}if(this.loadOperationsCompletion(),!(!e?.id||!t?.token)){this.workspaceLoading=!0;try{let n=(await A.post(`/workspaces/ensure`,{user:t,teamid:e.id},{baseURL:this.baseURL})).data?.data||{},r=n.membership?.access_level?n.workspace:null;if(!r?.id)return;this.workspace=r,await Promise.all([this.loadHails(),this.loadSharedOperationsCompletion()])}catch(e){console.error(`Error loading Event Day Team Hub:`,e)}finally{this.workspaceLoading=!1}}},hailRequestPayload(e={}){return{user:this.getUser(),teamid:this.selectedTeam?.id||null,workspaceid:this.workspace?.id||null,event_id:String(this.selectedEntry?.eventid||``),event_name:this.selectedEntry?.name||null,...e}},async loadHails({silent:e=!1}={}){if(!(this.previewMode||!this.workspace?.id||!this.selectedEntry?.eventid)){e||(this.hailLoading=!0);try{let e=await A.post(`/notifications/hails/active`,this.hailRequestPayload(),{baseURL:this.baseURL});this.hails=Array.isArray(e.data?.data)?e.data.data:[]}catch(t){e||(this.hailStatus={type:`error`,message:t?.response?.data?.message||`Unable to load Team Hails right now.`})}finally{e||(this.hailLoading=!1)}}},async sendHail({reasonCode:e,message:t,expiresInMinutes:n}){if(!(this.hailBusy||!this.workspace?.id)){if(this.hailBusy=!0,this.hailStatus=null,this.previewMode){let r={queue_now:`Queue now`,come_to_pit:`Come to the pit`,robot_needed:`Bring the robot to the pit`,strategy_meeting:`Meet for match strategy`,custom:String(t||`Team update`).trim()};this.hails=[{id:`preview-hail-${Date.now()}`,teamid:this.selectedTeam?.id||`preview-team`,workspace_id:this.workspace.id,event_id:this.selectedEntry?.eventid,event_name:this.selectedEntry?.name,reason_code:e,message:[r[e],e===`custom`?``:t].filter(
2Boolean).join(`. `),status:`active`,created_by_userid:`preview-user`,created_by_display:`Preview member`,created_at:new Date().toISOString(),expires_at:n===null?null:new Date(Date.now()+Number(n||20)*60*1e3).toISOString(),signal_type:n===null?`team_update`:`team_hail`,recipient_count:4,seen_count:0,on_my_way_count:0,arrived_count:0,cannot_respond_count:0,current_user_response:null,is_creator:!0,can_manage:!0},...this.hails],this.hailStatus={type:`success`,message:n===null?`Preview Team Update sent to 4 teammates.`:`Preview Hail sent to 4 teammates.`},this.hailBusy=!1;return}try{let r=await A.post(`/notifications/hails/create`,this.hailRequestPayload({reason_code:e,message:t,expires_in_minutes:n,match_id:this.selectedEntry?.team_next_match?.id||null,match_label:this.selectedEntry?.team_next_match?.short||null}),{baseURL:this.baseURL});await this.loadHails({silent:!0});let i=Number(r.data?.data?.recipient_count||0);this.hailStatus={type:`success`,message:`${n===null?`Team Update`:`Team Hail`} sent to ${i} ${i===1?`member`:`members`}.`}}catch(e){this.hailStatus={type:`error`,message:e?.response?.data?.message||`Unable to send that team message.`}}finally{this.hailBusy=!1}}},async respondToHail({hail:e,response:t}){if(!(!e?.id||this.hailBusy||this.previewMode)){this.hailBusy=!0,this.hailStatus=null;try{let n=await A.post(`/notifications/hails/respond`,this.hailRequestPayload({hail_id:e.id,response:t}),{baseURL:this.baseURL});this.hails=Array.isArray(n.data?.data)?n.data.data:[]}catch(e){this.hailStatus={type:`error`,message:e?.response?.data?.message||`Unable to update that Hail.`}}finally{this.hailBusy=!1}}},async closeHail({hail:e,status:t}){if(!(!e?.id||this.hailBusy)){if(this.previewMode){this.hails=this.hails.filter(t=>t.id!==e.id),this.hailStatus={type:`success`,message:t===`removed`?`Preview Team Update removed.`:`Preview Hail closed.`};return}this.hailBusy=!0,this.hailStatus=null;try{let n=await A.post(`/notifications/hails/status`,this.hailRequestPayload({hail_id:e.id,status:t}),{baseURL:this.baseURL});this.hails=Array.isArray(n.data?.data)?n.data.data:[]}catch(e){this.hailStatus={type:`error`,message:e?.response?.data?.message||`Unable to close that Hail.`}}finally{this.hailBusy=!1}}},operationsStorageKey(){return`eventDayMatchCycle:${this.selectedTeam?.id||this.selectedTeam?.team_number||`team`}:${this.eventDayEventId||this.selectedEntry?.eventid||`event`}`},operationsPendingStorageKey(){return`${this.operationsStorageKey()}:pending`},readOperationsStorage(e){if(typeof window>`u`)return{};try{let t=window.localStorage.getItem(e),n=t?JSON.parse(t):null;return n&&typeof n==`object`&&!Array.isArray(n)?n:{}}catch(e){return console.warn(`Unable to load Event Day match cycle state:`,e),{}}},applyOperationsPending(e,t=this.operationsPending){return Ee(e,t)},loadOperationsCompletion(){if(this.operationsRevision+=1,this.operationsCompletion={},this.operationsPending={},this.previewMode||typeof window>`u`)return;let e=this.readOperationsStorage(this.operationsStorageKey());this.operationsPending=this.readOperationsStorage(this.operationsPendingStorageKey()),this.operationsCompletion=this.applyOperationsPending(e,this.operationsPending)},persistOperationsCompletion(){if(!(this.previewMode||typeof window>`u`))try{window.localStorage.setItem(this.operationsStorageKey(),JSON.stringify(this.operationsCompletion))}catch(e){console.warn(`Unable to save Event Day match cycle state:`,e)}},persistOperationsPending(){if(!(this.previewMode||typeof window>`u`))try{let e=this.operationsPendingStorageKey();Object.keys(this.operationsPending).length?window.localStorage.setItem(e,JSON.stringify(this.operationsPending)):window.localStorage.removeItem(e)}catch(e){console.warn(`Unable to queue Event Day match cycle changes:`,e)}},sharedOperationsPayload(e={}){return{user:this.getUser(),workspaceid:this.workspace?.id||null,event_id:String(this.eventDayEventId||this.selectedEntry?.eventid||``),...e}},completionFromProgressResponse(e){let t=e?.data?.data?.completion;return t&&typeof t==`object`&&!Array.isArray(t)?t:{}},async savePendingOperationsCompletion(){let e=Object.entries(this.operationsPending);
2if(!e.length||!this.workspace?.id)return null;let t=e.map(([e])=>e),n=await A.post(`/workspaces/event-day/progress/save`,this.sharedOperationsPayload({steps:we(this.operationsPending)}),{baseURL:this.baseURL});return t.forEach(e=>{delete this.operationsPending[e]}),this.persistOperationsPending(),this.operationsCompletion=this.applyOperationsPending(this.completionFromProgressResponse(n)),this.persistOperationsCompletion(),this.operationsRevision+=1,n},async loadSharedOperationsCompletion({silent:e=!1}={}){if(this.previewMode||!this.workspace?.id||!this.eventDayEventId||this.operationsBusyKey)return;let t=this.operationsRevision;try{let n=await A.post(`/workspaces/event-day/progress/load`,this.sharedOperationsPayload(),{baseURL:this.baseURL});if(t!==this.operationsRevision)return;let r=this.completionFromProgressResponse(n);!n?.data?.data?.has_state&&!Object.keys(this.operationsPending).length&&(this.operationsPending=Object.fromEntries(Object.entries(this.operationsCompletion).filter(([,e])=>!!e)),this.persistOperationsPending()),Object.keys(this.operationsPending).length?(this.operationsCompletion=this.applyOperationsPending(r,this.operationsPending),await this.savePendingOperationsCompletion()):(this.operationsCompletion=r,this.persistOperationsCompletion()),e||(this.operationsStatusType=`success`,this.operationsStatus=`Match Cycle progress is shared with ${this.workspace.name||`Team Hub`}.`)}catch(n){if(t!==this.operationsRevision)return;this.operationsCompletion=this.applyOperationsPending(this.operationsCompletion),this.persistOperationsCompletion(),e||(this.operationsStatusType=`warning`,this.operationsStatus=n?.response?.data?.message||`Team Hub progress is temporarily unavailable. Local changes will retry when Event Day reconnects.`)}},async toggleOperationTask(e){if(!e?.key||this.operationsBusyKey)return;this.operationsBusyKey=`toggle:${e.key}`,this.operationsStatus=``;let t=!this.operationsCompletion[e.key];if(this.operationsRevision+=1,this.operationsCompletion={...this.operationsCompletion},t?this.operationsCompletion[e.key]=!0:delete this.operationsCompletion[e.key],this.previewMode||(this.operationsPending={...this.operationsPending,[e.key]:t}),this.persistOperationsCompletion(),this.persistOperationsPending(),this.previewMode){this.operationsBusyKey=``;return}if(!this.workspace?.id){this.operationsStatusType=`success`,this.operationsStatus=`Match Cycle progress saved on this device.`,this.operationsBusyKey=``;return}try{await this.savePendingOperationsCompletion(),this.operationsStatusType=`success`,this.operationsStatus=`Match Cycle progress shared with ${this.workspace.name||`Team Hub`}.`}catch(e){this.operationsStatusType=`warning`,this.operationsStatus=e?.response?.data?.message||`Saved on this device. The change will sync to Team Hub when Event Day reconnects.`}finally{this.operationsBusyKey=``}},async saveMatchNote({body:e,match:t,context:n}){let r=String(e||``).trim();if(!(!r||!t?.short||!this.workspace?.id)){this.noteSaving=!0,this.noteStatus=null;try{await A.post(`/workspaces/logbook/save`,{user:this.getUser(),workspaceid:this.workspace.id,title:`${t.short} ${n===`upcoming`?`match prep`:`match notes`}`,body:r,match_event_id:String(this.selectedEntry?.eventid||``)||null,match_event_name:this.selectedEntry?.name||null,match_label:t.short,match_result:t.result||null},{baseURL:this.baseURL}),this.noteStatus={type:`success`,message:`${t.short} note saved to Team Hub.`}}catch(e){this.noteStatus={type:`error`,message:e?.response?.data?.message||`Unable to save that match note right now.`}}finally{this.noteSaving=!1}}},normalizePredictionMatch(e){return{...e,alliances:(e?.alliances||[]).map(e=>({...e,teams:(e?.teams||[]).map(e=>({team:{id:e?.id||null,number:e?.number||e?.team_number||e?.name||``,team_number:e?.number||e?.team_number||e?.name||``,name:e?.name||null}}))}))}},resetPrediction(){this.predictionLoading=!1,this.predictionMatch=null,this.predictionError=``,this.redProbability=50,this.blueProbability=50},async predictMatch(e){if(!e?.alliances?.length||this.predictionLoading)return;let t=this.normalizePredictionMatch(e);if(this.predictionLoading=!0,this.predictionError=``,this.previewMode){this.predictionMatch=t,this.redProbability=38.2,this.blueProbability=61.8,this.predictionLoading=!1;return}try{let e=(await A.post(`/scouting/predict`,{matches:[t],season:this.selectedEntry?.season?.id||null,programid:this.selectedEntry?.program?.id||null},{baseURL:this.baseURL}
2)).data?.[0]||null,n=e?.alliances?.find(e=>String(e?.color).toLowerCase()===`red`),r=e?.alliances?.find(e=>String(e?.color).toLowerCase()===`blue`);if(!e||!n||!r)throw Error(`Prediction data was incomplete.`);this.predictionMatch=e,this.redProbability=Number((parseFloat(n.winProbability||0)*100).toFixed(1)),this.blueProbability=Number((parseFloat(r.winProbability||0)*100).toFixed(1))}catch(e){this.predictionError=e?.response?.data?.message||`Unable to run the matchup forecast right now.`}finally{this.predictionLoading=!1}},async openEventDay(e){if(!e?.eventid)return;this.hapticTap(),this.rememberEntryContext(e),this.openedFromRadar=!0;let t=this.getTeam();await this.$router.push({path:this.$route.path,query:Me(this.$route.query,e.eventid,t?.id),hash:this.$route.hash}),this.track(`event_day_opened`,{event_id:String(e.eventid),source:`radar`})},eventDayFreeQuery(){return this.previewMode?ke(this.$route.query):Oe(this.$route.query)},async closeEventDay(){this.hapticTap();let e=this.openedFromRadar;if(this.openedFromRadar=!1,e){this.$router.back();return}await this.$router.replace({path:this.$route.path,query:this.eventDayFreeQuery(),hash:this.$route.hash})},async navigateFromEventDay(e){if(!e)return;this.hapticTap(),this.openedFromRadar=!1;let t=typeof e==`string`?{path:e}:e,n=this.eventDayFreeQuery();await this.$router.replace({...t,query:{...n,...t.query||{}}})},syncModalState(e){e!==this.nativeModalActive&&(this.nativeModalActive=e,e?this.modalOpen():this.modalClose(),this.isNativeApp()&&window.ReactNativeWebView?.postMessage&&window.ReactNativeWebView.postMessage(e?`MODAL_ON`:`MODAL_OFF`))}}};function mt(e,t,r,i,a,o){let s=c(`EventRadarDock`),l=c(`EventDayOverlay`);return n(),O(b,null,[o.showRadarDock?(n(),k(s,{key:0,entries:a.entries,"team-id":a.radarTeamId,loading:a.loading,now:a.radarClock,"is-phone":e.isPhone,"start-expanded":!!o.previewMode,onOpen:o.openEventDay},null,8,[`entries`,`team-id`,`loading`,`now`,`is-phone`,`start-expanded`,`onOpen`])):d(``,!0),o.overlayOpen?(n(),k(l,{key:1,show:o.overlayOpen,entry:o.selectedEntry,team:o.selectedTeam,loading:a.loading,now:a.radarClock,workspace:a.workspace,"workspace-loading":a.workspaceLoading,user:o.currentUser,"base-url":e.baseURL,"note-saving":a.noteSaving,"note-status":a.noteStatus,"prediction-loading":a.predictionLoading,"prediction-match":a.predictionMatch,"prediction-error":a.predictionError,"red-probability":a.redProbability,"blue-probability":a.blueProbability,"operations-status":a.operationsStatus,"operations-status-type":a.operationsStatusType,"operations-busy-key":a.operationsBusyKey,"operations-completion":a.operationsCompletion,hails:a.hails,"hail-loading":a.hailLoading,"hail-busy":a.hailBusy,"hail-status":a.hailStatus,onClose:o.closeEventDay,onNavigate:o.navigateFromEventDay,onRefresh:o.loadEventRadar,onSaveNote:o.saveMatchNote,onPredict:o.predictMatch,onToggleTask:o.toggleOperationTask,onSendHail:o.sendHail,onRespondHail:o.respondToHail,onCloseHail:o.closeHail},null,8,`show.entry.team.loading.now.workspace.workspace-loading.user.base-url.note-saving.note-status.prediction-loading.prediction-match.prediction-error.red-probability.blue-probability.operations-status.operations-status-type.operations-busy-key.operations-completion.hails.hail-loading.hail-busy.hail-status.onClose.onNavigate.onRefresh.onSaveNote.onPredict.onToggleTask.onSendHail.onRespondHail.onCloseHail`.split(`.`))):d(``,!0)],64)}var ht=z(pt,[[`render`,mt]]),gt=`/assets/logo-notext-CKSPk60Y.png`;a(),y();var _t=R({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},`scroll`);function vt(e,t={}){let{canScroll:n,layoutSize:i}=t,a=0,o=0,s=_(null),c=m(0),l=m(0),d=m(0),f=m(!1),h=m(!1),g=m(!1),v=m(!1),y=m(!0),b=u(()=>Number(e.scrollThreshold)),x=u(()=>re((b.value-c.value)/b.value||0));function S(e){return{clientHeight:`window`in e?window.innerHeight:e.clientHeight,scrollHeight:`window`in e?document.documentElement.scrollHeight:e.scrollHeight}}function C(){let e=s.value;if(!e)return;let{clientHeight:t,scrollHeight:n}=S(e),r=n-t,a=i?.value||0,o=b.value+a;y.value=r>o}function w(){C()}function T(){let e=s.value;if(!e||n&&!n.value)return;a=c.value,c.value=`window`in e?e.pageYOffset:e.scrollTop;let t=e instanceof Window?document.documentElement.scrollHeight:e.scrollHeight;o!==t&&(t>o&&C(),o=t),h.value=c.value<a,d.value=Math.abs(c.value-b.value);let{clientHeight:r,scrollHeight:i}=S(e),l=c.value+r>=i-5;!h.value&&l&&c.value>=b.value&&y.value&&(v.value=!0);let u=Math.abs(c.value-a)>100,f=c.value<=5;(h.value&&a-c.value>1&&!l||u&&c.value<b.value||f)&&(v.value=!1),g.value=l}return p(h,()=>{l.value=l.value||c.value}),p(f,()=>{l.value=0}),r(()=>{p(()=>e.scrollTarget,e=>{let t=e?document.querySelector(e):window;if(!t){ie(`Unable to locate element with identifier ${e}`);return}t!==s.value&&(s.value?.removeEventListener(`scroll`,T),s.value=t,s.value.addEventListener(`scroll`,T,{passive:!0}),Promise.resolve().then(()=>{C()}))},{immediate:!0}),window.addEventListener(`resize`,w,{passive:!0})}),te(()=>{s.value?.removeEventListener(`scroll`,T),window.removeEventListener(`resize`,w)}),n&&p(n,T,{immediate:!0}),{scrollThreshold:b,currentScroll:c,currentThreshold:d,isScrollActive:f,scrollRatio:x,isScrollingUp:h,savedScroll:l,isAtBottom:g,reachedBottomWhileScrollingDown:v,hasEnoughScrollableSpace:y}}a(),y();var yt=R({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:`top`,validator:e=>[`top`,`bottom`].includes(e)},...F(Le(),[`location`]),...Z(),..._t(),height:{type:[Number,String],default:64}},`VAppBar`),bt=M()({name:`VAppBar`,props:yt(),emits:{"update:modelValue":e=>!0},setup(e,{slots:n}){let r=_(),i=P(e,`modelValue`),a=u(()=>{let t=new Set(e.scrollBehavior?.split(` `)??[]);return{hide:t.has(`hide`),fullyHide:t.has(`fully-hide`),inverted:t.has(`inverted`),collapse:t.has(`collapse`),elevate:t.has(`elevate`),fadeImage:t.has(`fade-image`)}}),{currentScroll:s,scrollThreshold:c,isScrollingUp:l,scrollRatio:d,isAtBottom:f,reachedBottomWhileScrollingDown:p,hasEnoughScrollableSpace:h}=vt(e,{canScroll:u(()=>{let e=a.value;return e.hide||e.fullyHide||e.inverted||e.collapse||e.elevate||e.fadeImage||!i.value}),layoutSize:u(()=>(r.value?.contentHeight??0)+(r.value?.extensionHeight??0))}),g=E(()=>a.value.hide||a.value.fullyHide),v=u(()=>e.collapse||a.value.collapse&&(a.value.inverted?d.value>0:d.value===0)),y=u(()=>e.flat||a.value.fullyHide&&!i.value||a.value.elevate&&(a.value.inverted?s.value>0:s.value===0)),b=u(()=>a.value.fadeImage?a.value.inverted?1-d.value:d.value:void 0),x=u(()=>{if(a.value.hide&&a.value.inverted)return 0;let e=r.value?.contentHeight??0,t=r.value?.extensionHeight??0;return g.value?s.value<c.value||a.value.fullyHide?e+t:e:e+t});j(()=>!!e.scrollBehavior,()=>{w(()=>
2{if(!g.value){i.value=!0;return}if(a.value.inverted){i.value=s.value>c.value;return}if(!h.value){i.value=!0;return}if(p.value){i.value=!1;return}i.value=l.value&&!f.value||s.value<c.value})});let{ssrBootStyles:S}=ze(),{layoutItemStyles:C}=X({id:e.name,order:u(()=>parseInt(e.order,10)),position:E(()=>e.location),layoutSize:x,elementSize:m(void 0),active:i,absolute:E(()=>e.absolute)});return I(()=>{let i=F(Re.filterProps(e),[`location`]);return o(Re,t({ref:r,class:[`v-app-bar`,{"v-app-bar--bottom":e.location===`bottom`},e.class],style:[{...C.value,"--v-toolbar-image-opacity":b.value,height:void 0,...S.value},e.style]},i,{collapse:v.value,flat:y.value}),n)}),{}}});a(),g();var xt=e(()=>$(()=>import(`./MainMenu-CkNvT4gP.js`),__vite__mapDeps([80,1,2,40,41,42,3,4,5,6,7,8,9,16,17,18,19,20,21,22,43,29,30,31,32,33,34,35,14,44,45,46,47,81,82,23,83,84,11,15,24,25,58,59,65,66,67,68,75,70,71,73,74,50,28,36,85,86,87,52,88,69,72,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108]))),St=e(()=>$(()=>import(`./AccountDialog-CwXWaY-a.js`),__vite__mapDeps([92,1,2,40,41,42,3,4,5,6,7,8,9,16,17,18,19,20,21,22,29,93,44,94,15,23,24,25,70,14,71,73,74,75,33,34,28,30,31,32,35,36,95,90,45,46,85,86,91,96,97]))),Ct=e(()=>$(()=>import(`./MyAccount-DzBMT_xm.js`),__vite__mapDeps([102,1,2,40,41,42,3,4,5,6,7,8,9,81,16,17,18,19,20,21,22,30,31,32,33,34,35,82,23,83,15,24,25,75,70,14,71,73,74,103,28,29,36,85,86,88,69,72,89,90,45,46,91,104,65,66,67,68,100,105,101,106]))),wt={mixins:[B],components:{MainMenu:xt,AccountDialog:St,MyAccount:Ct}
2,data(){return{title:`Home`,team:null,search:null,loaded:!0,showMenuDialog:!1,showAccountDialog:!1,showMyAccountDialog:!1,showNotificationsDialog:!1,unreadNotificationCount:0,notificationCountInterval:null,notificationCountRequest:null,logoNoText:gt,user:null}},computed:{arcadeEnabled(){return Ie().arcadeEnabled},isLoggedIn(){return!!(this.user||this.loggedin())},computedFontSize(){let e=this.title?.length||0;return e<=10?22:e<=20?20:18},notificationBadgeContent(){return this.unreadNotificationCount>99?`99+`:String(this.unreadNotificationCount)},notificationButtonLabel(){return this.unreadNotificationCount>0?`Notifications, ${this.unreadNotificationCount} unread`:`Notifications`}},mounted(){this.user=this.getObject(`user`)||null,window.addEventListener(`message`,this.receiveMessage),window.addEventListener(`robotstats:user-updated`,this.handleUserUpdated),window.addEventListener(`robotstats:notifications-dialog-state`,this.handleNotificationsDialogState),window.addEventListener(`robotstats:notifications-updated`,this.handleNotificationsUpdated),window.addEventListener(`focus`,this.handleWindowFocus),document.addEventListener(`visibilitychange`,this.handleVisibilityChange),this.refreshUnreadNotificationCount(),this.notificationCountInterval=window.setInterval(()=>this.refreshUnreadNotificationCount(),6e4)},beforeUnmount(){this.notificationCountInterval&&=(window.clearInterval(this.notificationCountInterval),null),window.removeEventListener(`message`,this.receiveMessage),window.removeEventListener(`robotstats:user-updated`,this.handleUserUpdated),window.removeEventListener(`robotstats:notifications-dialog-state`,this.handleNotificationsDialogState),window.removeEventListener(`robotstats:notifications-updated`,this.handleNotificationsUpdated),window.removeEventListener(`focus`,this.handleWindowFocus),document.removeEventListener(`visibilitychange`,this.handleVisibilityChange)},methods:{handleUserUpdated(e){if(this.user=e?.detail?.user||this.getObject(`user`)||null,!this.user){this.unreadNotificationCount=0;return}this.refreshUnreadNotificationCount()},handleNotificationsDialogState(e){this.showNotificationsDialog=!!e?.detail?.open},handleNotificationsUpdated(){this.refreshUnreadNotificationCount()},handleWindowFocus(){this.refreshUnreadNotificationCount()},handleVisibilityChange(){document.visibilityState===`visible`&&this.refreshUnreadNotificationCount()},async refreshUnreadNotificationCount(){let e=this.getUser();if(!this.loggedin()||!e?.token){this.unreadNotificationCount=0;return}if(this.notificationCountRequest)return this.notificationCountRequest;let t=A({method:`post`,url:`/notifications/inbox/unread-count`,baseURL:this.baseURL,data:{user:e}});this.notificationCountRequest=t;try{let e=await t,n=Number(e.data?.data?.unread_count);Number.isFinite(n)&&(this.unreadNotificationCount=Math.max(0,Math.floor(n)))}catch{}finally{this.notificationCountRequest===t&&(this.notificationCountRequest=null)}},receiveMessage(e){e.data.type==`SET_TITLE`&&(this.title=e.data.title),e.data.type==`LOGIN`&&(this.showAccountDialog=!0)},handleMenu(){this.hapticSelection(),this.showMenuDialog=!this.showMenuDialog},toggleNotifications(){this.hapticTap(),this.refreshUnreadNotificationCount(),window.dispatchEvent(new CustomEvent(`robotstats:toggle-notifications`,{detail:{source:`topbar`}}))},manageAccount(){this.hapticTap(),this.showMyAccountDialog=!0},handleHome(){this.hapticSelection(),this.$router.push(`/`)}}},Tt={class:`topbar-inner`},Et=[`innerHTML`],Dt={key:1,class:`topbar-public-links`,"aria-label":`Public VEX tools`},Ot={class:`topbar-public-link`,href:`/stream-scout`};function kt(e,t,r,a,l,u){let f=c(`router-link`),p=c(`MainMenu`),m=c(`AccountDialog`),h=c(`MyAccount`);return n(),O(b,null,[o(bt,{fixed:``,elevation:`5`,class:`topbar-glass d-flex align-center`,height:`78`,density:`comfortable`},{default:v(()=>[T(`div`,Tt,[e.isPhone?d(``,!0):(n(),k(V,{key:0,icon:``,class:`ml-2`,onClick:u.handleHome,variant:`text`},{default:v(()=>[o(_e,{src:l.logoNoText,width:e.isPhone?36:46,height:e.isPhone?36:46,alt:`RobotStatistics Logo`,cover:``},null,8,[`src`,`width`,`height`])]),_:1},8,[`onClick`])),T(`div`,{class:`flex-grow-1 text-white text-left title-style px-2 pl-4`,style:s({fontSize:u.computedFontSize+`px`})},[T(`span`,{innerHTML:l.title},null,8,Et)],4),!e.isPhone&&!e.isNativeApp()?(n(),O(`nav`,Dt,[t[8]||=T(`span`,{class:`topbar-public-link__new`},`New`,-1),t[9]||=T(`a`,{class:`topbar-public-link`,href:`/vex-stats`},[T(`span`,{class:`topbar-public-link__label`},`VEX Stats`)],-1),t[10]||=T(`a`,{class:`topbar-public-link`,href:`/vex-scouting`},[T(`span`,{class:`topbar-public-link__label`},`VEX Scouting`)],-1),T(`a`,Ot,[o(Y,{icon:`mdi-play-box-multiple-outline`,size:`16`,"aria-hidden":`true`}),t[5]||=T(`span`,{class:`topbar-public-link__label`},`VEX Match Videos`,-1)]),u.arcadeEnabled?(n(),k(f,{key:0,class:`topbar-public-link topbar-public-link--dash`,to:`/vrcdash`},{default:v(()=>[o(Y,{icon:`mdi-gamepad-variant-outline`,size:`16`,"aria-hidden":`true`}),t[6]||=T(`span`,{class:`topbar-public-link__label`},`VRC Dash`,-1),t[7]||=T(`span`,{class:`topbar-public-link__new`},`NEW`,-1)]),_:1})):d(``,!0)])):d(``,!0),u.isLoggedIn?(n(),k(V,{key:2,icon:``,onClick:u.toggleNotifications,class:`mr-1 icon-hover topbar-alert-btn`,variant:`text`,"aria-label":u.notificationButtonLabel,title:u.notificationButtonLabel},{default:v(()=>[o(ge,{"model-value":l.unreadNotificationCount>0,content:u.notificationBadgeContent,color:`nicegreen`,floating:``,class:`topbar-alert-badge`},{default:v(()=>[o(Y,{icon:`mdi-bell-outline`,size:`29`,"aria-hidden":`true`})]),_:1},8,[`model-value`,`content`])]),_:1},8,[`onClick`,`aria-label`,`title`])):d(``,!0),u.isLoggedIn?(n(),k(V,{key:3,icon:``,onClick:t[0]||=e=>u.manageAccount(),class:`mr-1 icon-hover`},{default:v(()=>[o(Y,{size:`32`},{default:v(()=>[...t[11]||=[D(`mdi-account-circle`,-1)]]),_:1})]),_:1})):d(``,!0),o(V,{icon:``,variant:`text`,onClick:t[1]||=e=>u.handleMenu(),class:i([`mr-2 icon-hover menu-toggle-btn`,{"menu-toggle-btn--open":l.showMenuDialog}])},{default:v(()=>[o(Y,{color:`paper`,size:l.showMenuDialog?32:38},{default:v(()=>[D(S(l.showMenuDialog?`mdi-close`:`mdi-menu`),1)]),_:1},8,[`size`])]),_:1},8,[`class`])])]),_:1}),l.showMenuDialog?(n(),k(p,{key:0,show:l.showMenuDialog,onCancel:t[2]||=e=>l.showMenuDialog=!1},null,8,[`show`])):d(``,!0),l.showAccountDialog?(n(),k(m,{key:1,show:l.showAccountDialog,onCancel:t[3]||=e=>l.showAccountDialog=!1},null,8,[`show`])):d(``,!0),l.showMyAccountDialog?(n(),k(h,{key:2,show:l.showMyAccountDialog,onCancel:t[4]||=e=>l.showMyAccountDialog=!1},null,8,[`show`])):d(``,!0)],64)}var At=z(wt,[[`render`,kt],[`__scopeId`,`data-v-c1fd5831`]]);a(),g(),y();var jt=R({baseColor:String,bgColor:String,color:String,grow:Boolean,mode:{type:String,validator:e=>!e||[`horizontal`,`shift`].includes(e)},height:{type:[Number,String],default:56},active:{type:Boolean,default:!0},...W(),...L(),...ue(),...G(),...K(),...Z({name:`bottom-navigation`}),...N({tag:`header`}),...me({selectedClass:`v-btn--selected`}),...pe()}
2,`VBottomNavigation`),Mt=M()({name:`VBottomNavigation`,props:jt(),emits:{"update:active":e=>!0,"update:modelValue":e=>!0},setup(e,{slots:t}){let{themeClasses:n}=de(),{borderClasses:r}=U(e),{backgroundColorClasses:a,backgroundColorStyles:c}=J(()=>e.bgColor),{densityClasses:l}=ce(e),{elevationClasses:d}=H(e),{roundedClasses:f,roundedStyles:p}=q(e),{ssrBootStyles:m}=ze(),h=u(()=>Number(e.height)-(e.density===`comfortable`?8:0)-(e.density===`compact`?16:0)),g=P(e,`active`,e.active),{layoutItemStyles:_}=X({id:e.name,order:u(()=>parseInt(e.order,10)),position:E(()=>`bottom`),layoutSize:E(()=>g.value?h.value:0),elementSize:h,active:g,absolute:E(()=>e.absolute)});return he(e,oe),ae({VBtn:{baseColor:E(()=>e.baseColor),color:E(()=>e.color),density:E(()=>e.density),stacked:E(()=>e.mode!==`horizontal`),variant:`text`}},{scoped:!0}),I(()=>o(e.tag,{class:i([`v-bottom-navigation`,{"v-bottom-navigation--active":g.value,"v-bottom-navigation--grow":e.grow,"v-bottom-navigation--shift":e.mode===`shift`},n.value,a.value,r.value,l.value,d.value,f.value,e.class]),style:s([c.value,_.value,{height:ne(h.value)},m.value,p.value,e.style])},{default:()=>[t.default&&T(`div`,{class:`v-bottom-navigation__content`},[t.default()])]})),{}}});g(),a(),y();var Nt=R({app:Boolean,color:String,height:{type:[Number,String],default:`auto`},...W(),...L(),...G(),...Z(),...K(),...N({tag:`footer`}),...pe()},`VFooter`),Pt=M()({name:`VFooter`,props:Nt(),setup(e,{slots:t}){let n=_(),{themeClasses:r}=fe(e),{backgroundColorClasses:a,backgroundColorStyles:c}=J(()=>e.color),{borderClasses:l}=U(e),{elevationClasses:d}
2=H(e),{roundedClasses:f,roundedStyles:p}=q(e),h=m(32),{resizeRef:g}=le(e=>{e.length&&(h.value=e[0].target.clientHeight)}),v=u(()=>e.height===`auto`?h.value:parseInt(e.height,10));return j(()=>e.app,()=>{let t=X({id:e.name,order:u(()=>parseInt(e.order,10)),position:E(()=>`bottom`),layoutSize:v,elementSize:u(()=>e.height===`auto`?void 0:v.value),active:E(()=>e.app),absolute:E(()=>e.absolute)});w(()=>{n.value=t.layoutItemStyles.value})}),I(()=>o(e.tag,{ref:g,class:i([`v-footer`,r.value,a.value,l.value,d.value,f.value,e.class]),style:s([c.value,e.app?n.value:{height:ne(e.height)},p.value,e.style])},t)),{}}});a(),g();var Ft=e(()=>$(()=>import(`./Timer-byNifi9H.js`),__vite__mapDeps([109,1,2,40,41,42,3,4,5,6,7,8,9,81,16,17,18,19,20,21,22,30,31,32,33,34,35,82,23,83,15,24,25,58,59,50,11,28,29,36,52,88,14,69,70,71,72,89,90,45,46,85,86,91,98,99,110]))),It=e(()=>$(()=>import(`./StrategyBoardDialog-DdIos1V8.js`),__vite__mapDeps([61,1,2,3,4,5,6,7,8,9,15,16,17,18,19,20,21,22,23,24,25,28,29,30,31,32,33,34,35,36,62]))),Lt=e(()=>$(()=>import(`./ToolsSheet-DLe74Ps4.js`),__vite__mapDeps([111,1,2,40,41,42,3,4,5,6,7,8,9,112,113,15,16,17,18,19,20,21,22,23,24,25,114,58,59,65,30,31,32,33,34,35,66,14,67,68,115]))),Rt=e(()=>$(()=>import(`./SearchSheet-CXfzmJwT.js`),__vite__mapDeps([116,1,2,40,41,42,3,4,5,6,7,8,9,113,15,16,17,18,19,20,21,22,23,24,25,114,58,59,117]))),zt=e(()=>$(()=>import(`./FavoritesSheet-DB1W2E97.js`),__vite__mapDeps([118,1,2,40,41,42,3,4,5,6,7,8,9,113,15,16,17,18,19,20,21,22,23,24,25,114,58,59,119]))),Bt=e(()=>$(()=>import(`./GearRatioCalculator-Pt7H0sGp.js`),__vite__mapDeps([120,1,2,40,41,42,3,4,5,6,7,8,9,14,15,16,17,18,19,20,21,22,23,24,25,58,59,65,30,31,32,33,34,35,66,67,68,28,29,36,85,86,90,45,46,91,121]))),Vt=e(()=>$(()=>import(`./DriveSpeedCalculator-CdAMqYIc.js`),__vite__mapDeps([122,1,2,40,41,42,3,4,5,6,7,8,9,93,19,20,44,94,14,15,16,17,18,21,22,23,24,25,58,59,64,43,29,30,31,32,33,34,35,45,46,47,65,66,67,68,69,70,71,72,48,49,73,74,75,76,28,36,85,86,123,124,125,126,90,91,127]))),Ht=e(()=>$(()=>import(`./IntakeAnalyzer-v7z2ASSg.js`),__vite__mapDeps([128,1,2,40,41,42,3,4,5,6,7,8,9,14,15,16,17,18,19,20,21,22,23,24,25,58,59,75,33,34,70,71,73,74,28,29,30,31,32,35,36,85,86,125,126,90,45,46,91,129]))),Ut=e(()=>$(()=>import(`./EjectorAnalyzer-DPSlbJS9.js`),__vite__mapDeps([130,1,2,40,41,42,3,4,5,6,7,8,9,14,15,16,17,18,19,20,21,22,23,24,25,58,59,75,33,34,70,71,73,74,28,29,30,31,32,35,36,85,86,90,45,46,91,131]))),Wt={name:`MyFooter`,mixins:[B],components:{TimerDialog:Ft,StrategyBoardDialog:It,ToolsSheet:Lt,SearchSheet:Rt,FavoritesSheet:zt,GearRatioCalculatorDialog:Bt,DriveSpeedCalculatorDialog:Vt,IntakeAnalyzerDialog:Ht,EjectorAnalyzerDialog:Ut},data(){return{team:null,user:null,showSearchSheet:!1,showFavoritesSheet:!1,showToolsSheet:!1,showGearRatioDialog:!1,showIntakeAnalyzerDialog:!1,showEjectorAnalyzerDialog:!1,showDriveSpeedDialog:!1,showTimerDialog:!1,showStrategyBoardDialog:!1,focusedTool:``,pageScrollLock:null}},watch:{"$route.query.tool":{immediate:!0,handler(e){this.applyToolDeepLink(e)}},"$route.query.open"(){this.applyToolDeepLink(this.$route.query.tool)},footerMenuOpen:{immediate:!0,handler(e){e?this.lockPageScroll():this.unlockPageScroll()}}},computed:{footerMenuOpen(){return this.showSearchSheet||this.showFavoritesSheet||this.showToolsSheet},activeButton(){let e=this.$route.path;return this.showSearchSheet||e.includes(`search`)?1:this.showFavoritesSheet||e.includes(`follow`)||e.includes(`favorite`)||e.includes(`myevents`)||e.includes(`registration-watches`)||e.includes(`teamhubs`)||e.includes(`hometeam`)?2:this.showToolsSheet||this.showGearRatioDialog||this.showIntakeAnalyzerDialog||this.showEjectorAnalyzerDialog||this.showDriveSpeedDialog||this.showStrategyBoardDialog||this.showTimerDialog||e.includes(`timer`)?3:(e===`/`||e.startsWith(`/team`)||e.startsWith(`/event`),0)},strategyBoardTeamNumber(){let e=this.team||this.getObject(`team`);return e?.number||e?.team_number||``}},mounted(){this.team=this.getObject(`team`),this.user=this.getObject(`user`)},beforeUnmount(){this.unlockPageScroll()},methods:{lockPageScroll(){if(this.pageScrollLock||typeof window>`u`||typeof document>`u`||!document.body)return;let e=document.body,t=window.scrollX,n=window.scrollY,r=Math.max(0,window.innerWidth-document.documentElement.clientWidth),i=Number.parseFloat(window.getComputedStyle(e).paddingRight)||0;this.pageScrollLock={scrollX:t,scrollY:n,styles:{position:e.style.position,top:e.style.top,right:e.style.right,bottom:e.style.bottom,left:e.style.left,width:e.style.width,overflow:e.style.overflow,paddingRight:e.style.paddingRight}},e.style.position=`fixed`,e.style.top=`-${n}px`,e.style.right=`0`,e.style.bottom=`0`,e.style.left=`-${t}px`,e.style.width=`100%`,e.style.overflow=`hidden`,r>0&&(e.style.paddingRight=`${i+r}px`)},unlockPageScroll(){if(!this.pageScrollLock||typeof window>`u`||typeof document>`u`||!document.body)return;let e=document.body,t=this.pageScrollLock;this.pageScrollLock=null,Object.assign(e.style,t.styles),window.scrollTo(t.scrollX,t.scrollY)},handleHome(){this.hapticSelection(),this.$router.push(`/`)},handleSearch(){this.hapticSelection(),this.showSearchSheet=!0},cancelSearch(){this.showSearchSheet=!1},goToSearchTeams(){this.hapticTap(),this.cancelSearch(),this.$router.push(`/search`)},goToSearchEvents(){this.hapticTap(),this.cancelSearch(),this.$router.push(`/event/search`)}
2,handleFavorites(){this.hapticSelection(),this.showFavoritesSheet=!0},cancelFavorites(){this.showFavoritesSheet=!1},goToFollowing(){this.hapticTap(),this.cancelFavorites(),this.$router.push(`/following`)},goToFavoriteEvents(){this.hapticTap(),this.cancelFavorites(),this.$router.push(`/favoriteevents`)},goToFavoriteMatches(){this.hapticTap(),this.cancelFavorites(),this.$router.push(`/favorite-matches`)},goToMyEvents(){this.hapticTap(),this.cancelFavorites(),this.$router.push(`/myevents`)},goToRegistrationWatches(){this.hapticTap(),this.cancelFavorites(),this.$router.push(`/registration-watches`)},handleTools(){this.hapticSelection(),this.focusedTool=``,this.showToolsSheet=!0},cancelTools(){this.showToolsSheet=!1,this.focusedTool=``,this.clearToolDeepLink()},applyToolDeepLink(e){let t=Be(e);if(!t){this.focusedTool=``;return}if(this.showSearchSheet=!1,this.showFavoritesSheet=!1,t===`drive-speed`&&Ve(this.$route.query.open)){this.focusedTool=``,this.showToolsSheet=!1,this.showDriveSpeedDialog=!0;return}this.focusedTool=t,this.showToolsSheet=!0},clearToolDeepLink(){if(!this.$route.query.tool)return;let e={...this.$route.query};delete e.tool,delete e.open,this.$router.replace({query:e})},openGearRatio(){this.hapticTap(),this.cancelTools(),this.showGearRatioDialog=!0},cancelGearRatio(){this.showGearRatioDialog=!1},openDriveSpeed(){this.hapticTap(),this.cancelTools(),this.showDriveSpeedDialog=!0},openIntakeAnalyzer(){this.hapticTap(),this.cancelTools(),this.showIntakeAnalyzerDialog=!0},openEjectorAnalyzer(){this.hapticTap(),this.cancelTools(),this.showEjectorAnalyzerDialog=!0},cancelDriveSpeed(){this.showDriveSpeedDialog=!1,Be(this.$route.query.tool)===`drive-speed`&&this.clearToolDeepLink()},cancelIntakeAnalyzer(){this.showIntakeAnalyzerDialog=!1},cancelEjectorAnalyzer(){this.showEjectorAnalyzerDialog=!1},openTimer(){this.hapticTap(),this.cancelTools(),this.showTimerDialog=!0},openStrategyBoard(){this.hapticTap(),this.cancelTools(),this.showStrategyBoardDialog=!0},cancelStrategyBoard(){this.showStrategyBoardDialog=!1},teamHubManageRoute(){let e=this.team||this.getObject(`team`),t={},n=e?.id??e?.teamid??null;return n!=null&&n!==``&&(t.teamid=String(n)),{path:`/teamhubs/manage`,query:t}},openTeamHub(){this.hapticTap(),this.cancelFavorites(),this.$router.push(this.teamHubManageRoute())},openHomeTeam(){this.hapticTap(),this.cancelFavorites(),this.$router.push(`/hometeam`)},cancelTimer(){this.showTimerDialog=!1}}},Gt={class:`nav-btn__icon-shell`},Kt={class:`nav-btn__icon-shell`},qt={class:`nav-btn__icon-shell`},Jt={class:`nav-btn__icon-shell`};function Yt(e,t,r,a,s,l){let u=c(`ToolsSheet`),f=c(`SearchSheet`),p=c(`FavoritesSheet`),m=c(`GearRatioCalculatorDialog`),h=c(`DriveSpeedCalculatorDialog`),g=c(`IntakeAnalyzerDialog`),_=c(`EjectorAnalyzerDialog`),y=c(`TimerDialog`),x=c(`StrategyBoardDialog`);return n(),O(b,null,[o(Pt,{app:``,height:`0`,class:`border-t`,color:`transparent`,elevation:`0`},{default:v(()=>[o(He,{color:`white`,class:`fixed-divider`,thickness:`5`}),o(Mt,{grow:``,color:`paper`,"bg-color":`primary`,class:`footer-nav px-1 py-2`,value:l.activeButton,height:`88`},{default:v(()=>[o(V,{onClick:l.handleHome,class:i([`nav-btn`,{"nav-btn--active":l.activeButton===0}]),ripple:!1},{default:v(()=>[T(`span`,Gt,[o(Y,{size:`24`},{default:v(()=>[...t[1]||=[D(`mdi-home-outline`,-1)]]),_:1})]),t[2]||=T(`span`,{class:`nav-btn__label`},`Home`,-1)]),_:1},8,[`onClick`,`class`]),o(V,{onClick:l.handleSearch,class:i([`nav-btn`,{"nav-btn--active":l.activeButton===1}]),ripple:!1},{default:v(()=>[T(`span`,Kt,[o(Y,{size:`24`},{default:v(()=>[...t[3]||=[D(`mdi-magnify`,-1)]]),_:1})]),t[4]||=T(`span`,{class:`nav-btn__label`},`Search`,-1)]),_:1},8,[`onClick`,`class`]),o(V,{onClick:l.handleFavorites,class:i([`nav-btn`,{"nav-btn--active":l.activeButton===2}]),ripple:!1},{default:v(()=>[T(`span`,qt,[o(Y,{size:`24`},{default:v(()=>[...t[5]||=[D(`mdi-heart-outline`,-1)]]),_:1})]),t[6]||=T(`span`,{class:`nav-btn__label`},`Favorites`,-1)]),_:1},8,[`onClick`,`class`]),o(V,{onClick:l.handleTools,class:i([`nav-btn`,{"nav-btn--active":l.activeButton===3}]),ripple:!1},{default:v(()=>[T(`span`,Jt,[o(Y,{size:`24`},{default:v(()=>[...t[7]||=[D(`mdi-wrench-outline`,-1)]]),_:1})]),t[8]||=T(`span`,{class:`nav-btn__label`},`Tools`,-1)]),_:1},8,[`onClick`,`class`])]),_:1},8,[`value`]),t[9]||=T(`a`,{class:`creator-credit`,href:`https://anicorlabs.com/`,target:`_blank`,rel:`noreferrer`},` Built by Lucian Badea @ Anicor Labs `,-1),t[10]||=T(`div`,{class:`footer-accent`},null,-1)]),_:1}),s.showToolsSheet?(n(),k(u,{key:0,show:s.showToolsSheet,"focus-tool":s.focusedTool,onCancel:l.cancelTools,onGearRatio:l.openGearRatio,onIntakeAnalyzer:l.openIntakeAnalyzer,onEjectorAnalyzer:l.openEjectorAnalyzer,onDriveSpeed:l.openDriveSpeed,onStrategyBoard:l.openStrategyBoard,onTimer:l.openTimer},null,8,[`show`,`focus-tool`,`onCancel`,`onGearRatio`,`onIntakeAnalyzer`,`onEjectorAnalyzer`,`onDriveSpeed`,`onStrategyBoard`,`onTimer`])):d(``,!0),s.showSearchSheet?(n(),k(f,{key:1,show:s.showSearchSheet,onCancel:l.cancelSearch,onTeams:l.goToSearchTeams,onEvents:l.goToSearchEvents},null,8,[`show`,`onCancel`,`onTeams`,`onEvents`])):d(``,!0),s.showFavoritesSheet?(n(),k(p,{key:2,show:s.show
2FavoritesSheet,onCancel:l.cancelFavorites,onFollowing:l.goToFollowing,onFavoriteEvents:l.goToFavoriteEvents,onFavoriteMatches:l.goToFavoriteMatches,onRegistrationWatches:l.goToRegistrationWatches,onMyEvents:l.goToMyEvents,onTeamHub:l.openTeamHub,onHomeTeam:l.openHomeTeam},null,8,[`show`,`onCancel`,`onFollowing`,`onFavoriteEvents`,`onFavoriteMatches`,`onRegistrationWatches`,`onMyEvents`,`onTeamHub`,`onHomeTeam`])):d(``,!0),s.showGearRatioDialog?(n(),k(m,{key:3,show:s.showGearRatioDialog,onCancel:l.cancelGearRatio},null,8,[`show`,`onCancel`])):d(``,!0),s.showDriveSpeedDialog?(n(),k(h,{key:4,show:s.showDriveSpeedDialog,onCancel:l.cancelDriveSpeed},null,8,[`show`,`onCancel`])):d(``,!0),s.showIntakeAnalyzerDialog?(n(),k(g,{key:5,show:s.showIntakeAnalyzerDialog,onCancel:l.cancelIntakeAnalyzer},null,8,[`show`,`onCancel`])):d(``,!0),s.showEjectorAnalyzerDialog?(n(),k(_,{key:6,show:s.showEjectorAnalyzerDialog,onCancel:l.cancelEjectorAnalyzer},null,8,[`show`,`onCancel`])):d(``,!0),s.showTimerDialog?(n(),k(y,{key:7,show:s.showTimerDialog,onCancel:t[0]||=e=>l.cancelTimer()},null,8,[`show`])):d(``,!0),s.showStrategyBoardDialog?(n(),k(x,{key:8,show:s.showStrategyBoardDialog,"event-title":``,"team-number":l.strategyBoardTeamNumber,onClose:l.cancelStrategyBoard},null,8,[`show`,`team-number`,`onClose`])):d(``,!0)],64)}var Xt=z(Wt,[[`render`,Yt],[`__scopeId`,`data-v-c55b8ca2`]]);a(),g(),y();var Zt={key:0,class:`app-return-bar`},Qt=z({__name:`View`,setup(t){let i=e(()=>$(()=>import(`./NotificationsDialog-DCZnHEbQ.js`),__vite__mapDeps([132,1,2,40,41,42,15,4,5,6,7,16,17,18,19,20,21,22,23,24,25,28,29,30,31,32,33,34,35,36,90,45,46,85,86,91,133,3,8,9,103,37,38,88,14,69,70,71,72,89,134,135,136,137]))),a=ye(),s=ve(),l=_(!1),f=u(()=>{let e=String(a.query.returnTo||``).trim();return!e||!e.startsWith(`/`)||e.startsWith(`//`)?``:e}),m=u(()=>a.path===`/teamhubs/manage`||a.path.startsWith(`/teamhub/`)||a.name===`ManageTeamProfile`),h=u(()=>!!f.value&&!m.value),g=u(()=>f.value===`/coach`?`Back to Coach Cockpit`:`Back`);function y(){f.value&&s.push(f.value)}function b(){window.dispatchEvent(new CustomEvent(`robotstats:notifications-dialog-state`,{detail:{open:l.value}}))}function x(){l.value&&=!1}function C(){l.value=!l.value}function w(){C()}return p(l,()=>{b()}),p(()=>a.fullPath,()=>{x()}),r(()=>{window.addEventListener(`robotstats:toggle-notifications`,w),b()}),te(()=>{window.removeEventListener(`robotstats:toggle-notifications`,w)}),(e,t)=>{let r=c(`router-view`);return n(),k(Ue,{class:`app-main`,theme:`dark`},{default:v(()=>[o(At),h.value?(n(),O(`div`,Zt,[o(V,{color:`silver`,variant:`text`,size:`small`,class:`app-return-link text-none`,"prepend-icon":`mdi-arrow-left`,onClick:y},{default:v(()=>[D(S(g.value),1)]),_:1})])):d(``,!0),o(r),o(ht),o(Xt),l.value?(n(),k(ee(i),{key:1,show:l.value,onCancel:x},null,8,[`show`])):d(``,!0)]),_:1})}}},[[`__scopeId`,`data-v-5502638e`]]),$t=l({default:()=>nn});a();var en={components:{DefaultView:Qt},data(){return{}},beforeMount(){},computed:{}};function tn(e,t,r,i,a,s){let l=c(`DefaultView`);return n(),k(We,{theme:`dark`},{default:v(()=>[o(l)]),_:1})}var nn=z(en,[[`render`,tn]]);export{$t as n,nn as t};

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.