PageSourceSearch

https://axethrowing.org/assets/bottomSheet-legacy-DK9f3Pwp.js

js axethrowing.org collected 2026-10-01 15:02:32 UTC 13,283 bytes, 1 lines download raw bytes

1System.register(["./index-legacy-DtXVSfTX.js"],function(e,t){"use strict";var a,s,o,i,n,l,r,c,u,h,g,d,m,p,v,f,S,y,b,$,L,x,w,k,_,T,E,D,B;return{setters:[e=>{a=e._,s=e.C,o=e.c2,i=e.ar,n=e.ae,l=e.X,r=e.U,c=e.H,u=e.G,h=e.O,g=e.N,d=e.a3,m=e.u,p=e.Y,v=e.m,f=e.Z,S=e.Q,y=e.e,b=e.f,$=e.n,L=e.t,x=e.q,w=e.r,k=e.F,_=e.x,T=e.v,E=e.B,D=e.y,B=e.g}],execute:function(){var I=document.createElement("style");I.textContent=".settingsButton[data-v-8204cea0]{display:block;padding:0 20px!important}.settingsButton .settingsText[data-v-8204cea0]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n/*$vite$:1*/",document.head.appendChild(I);const C={components:{imageSelector:s(()=>S(()=>t.import("./imageSelector-legacy-DcPQR4u1.js"),void 0))},props:{broadcastLocation:String,broadcastWeek:String,broadcastPlayoffs:Boolean,emailList:{type:Array,default:()=>[]},leagueID:String,eventType:{type:String,default:"league"},leagueType:String,selectedSeason:String,seasonList:{type:Array,default:()=>[]}},inject:["postHog"],emits:["closeBottomSheet"],data(){return{shareCode:"",imgDialog:{show:!1,windowWidth:600,currentImage:"",updateDBitem:"groupImg",ratioWidth:"16",ratioHeight:"9",saveWidth:"1100",saveFormat:"jpeg"},options:[{label:"Live Broadcast",icon:"mdi-cast-variant",method:"broadcast",color:"primary",show:"hostsLeague"===this.$route.name},{label:"TV lanes",icon:"mdi-cast-variant",method:"lanes",color:"primary",show:"hostsLeague"===this.$route.name||"hostsQuickGroupGames"===this.$route.name},{label:"Email Group",icon:"mdi-email",method:"email",color:"primary",disabled:void 0===this.emailList,show:"hostsQuickGroupGames"!==this.$route.name},{label:"Update Player Profiles",icon:"mdi-sync",method:"syncProfiles",color:"primary",show:"hostsLeague"===this.$route.name&&"duals-league"!==this.leagueType},{label:"Update Team Profiles",icon:"mdi-sync",method:"syncTeams",color:"primary",show:"hostsLeague"===this.$route.name&&"duals-league"===this.leagueType},{label:"Fix Standings",icon:"mdi-crosshairs-gps",method:"fixStandings",color:"primary",show:"hostsLeague"===this.$route.name},{label:"Fix Current Week",icon:"mdi-crosshairs-gps",method:"fixCurrentWeek",color:"primary",show:"hostsLeague"===this.$route.name&&"Week8"!==this.broadcastWeek},{label:"Fix teams",icon:"mdi-crosshairs-gps",method:"fixTeams",color:"primary",show:"hostsLeague"===this.$route.name,disabled:"duals-league"!==this.eventStore.selectedEvent.leagueType},{label:"Fix Schedule",icon:"mdi-crosshairs-gps",method:"fixSchedule",color:"primary",show:"hostsLeague"===this.$route.name},{label:"Fix Codes",icon:"mdi-crosshairs-gps",method:"fixCodes",color:"primary",show:"hostsLeague"===this.$route.name},{label:"Export Standings",icon:"mdi-crosshairs-gps",method:"exportStandings",color:"primary",show:"hostsLeague"===this.$route.name&&!!Object.keys(this.eventStore.selectedTournamentBracketInfo||{}).length}],tvLanesLocation:null}},setup(){const e=m(),t=p(),a=v();return{venueStore:e,seasonStore:t,eventStore:f(),generalStore:a}},computed:{tvLanesLocationIsOpen:{get(){return!!this.tvLanesLocation},set(e){this.tvLanesLocation=e}}},watch:{selectedSeason(){this.options[4].disabled="Session1"===this.selectedSeason}},methods:{run(e){this[e]()},saveToGlobalSeason(){this.eventStore.selectedEvent.isOfficial&&this.emailList.forEach(e=>{let t=[];
1Object.assign(t,e),delete t[".key"],["perclutch","perpgames","perpmatch","perpts","sumpgames","sumpmatch"].forEach(e=>delete t[e]),t.venue=this.venueStore.venue.locationSlug,t.venueName=this.venueStore.venue.company+" "+this.venueStore.venue.city;const a=g(`/watl/league/${this.eventStore.selectedEvent.officialLeague}/${this.selectedSeason}/standings/${e.key}`);d(a,t)})},exportSeason(){let e,t,a,s=this.emailList,o=Object.keys(s[0]),i=function(e,t){return null===t?"":t},n=s.map(function(e){return o.map(function(t){return JSON.stringify(e[t],i)}).join(",")});n.unshift(o.join(",")),n="data:text/pdf;charset=utf-8,"+n.join("\r\n"),t=this.$route.params.leagueID+"_"+this.selectedSeason+"_stats.csv",e=encodeURI(n),a=document.createElement("a"),a.setAttribute("href",e),a.setAttribute("download",t),a.click()},groupImage(){this.imgDialog.show=!0},assignTeam(){},syncProfiles(){this.postHog.capture("button_update_profiles",{buttonPlace:"settings"}),this.emailList.forEach(e=>{l(c(`/watl/players/${e.key}`)).then(t=>{let a=t.val();(a.alias!==e.alias||a.first!==e.first||a.last!==e.last||a.pic!==e.pic||a.email!==e.email||void 0!==a.division&&a.division!==e.division)&&u(r(`${this.broadcastLocation}/standings/${e.key}`),{alias:a.alias,first:a.first,last:a.last,pic:a.pic,email:a.email,facebook:a.facebook,instagram:a.instagram,division:a.division||"amateur"})})}),alert("All player profiles are up to date."),this.$emit("closeBottomSheet")},syncTeams(){this.postHog.capture("button_update_teams",{buttonPlace:"settings"}),this.emailList.forEach(e=>{l(c(`/teams/${e.key}`)).then(t=>{let a=t.val();a.name===e.name&&a.logo===e.pic||(u(r(`${this.broadcastLocation}/standings/${e.key}`),{name:a.name,pic:a.logo}),u(r(`${this.broadcastLocation}/teams/${e.key}`),{name:a.name,logo:a.logo}))})}),alert("All team profiles are up to date."),this.$emit("closeBottomSheet")},email(){this.postHog.capture("button_email_group",{buttonPlace:"settings"}),this.$emit("closeBottomSheet");let e=[];this.emailList.forEach(t=>{e.push(t.email)});let t=e.join(",");window.location.href="mailto:?subject=Message%20from%20"+this.venueStore.venue.locationSlug.toUpperCase()+"&bcc="+t},resetTeamStats(){if(confirm("Resetting team stats will recalculate season stats based on the current teams, are you sure you want to continue?")){this.$emit("closeBottomSheet");let e=["baxe","baxewin","clutch","clutchcall","eightyone","forfeit","gp","loss","ngame","nmatch","otl","pts","rubber","rubberwin","score","sgame","smatch","ugame","umatch","win"],t=this.emailList.reduce((t,a)=>(t[a.team.teamKey]=t[a.team.teamKey]||Object.assign(...e.map(e=>({[e]:0}))),e.forEach(e=>{t[a.team.teamKey][e]+=a[e],t[a.team.teamKey].scoreavg=((t[a.team.teamKey].score+a.score)/(t[a.team.teamKey].gp+a.gp)).toFixed(1),t[a.team.teamKey].axeavg=((t[a.team.teamKey].score+a.score)/(t[a.team.teamKey].gp+a.gp)/15).toFixed(1),t[a.team.teamKey].ptspercent=((t[a.team.teamKey].pts+a.pts)/(2*(t[a.team.teamKey].gp+a.gp))*100).toFixed(1),t[a.team.teamKey].high>a.high?t[a.team.teamKey].high=t[a.team.teamKey].high:t[a.team.teamKey].high=a.high}),t),Object.create(null));for(let a in t){let e=t[a];u(r(`${this.broadcastLocation}/standings/${a}`),{axeavg:e.axeavg,baxe:e.baxe,baxewin:e.baxewin,clutch:e.clutch,clutchcall:e.clutchcall,eightyone:e.eightyone,forfeit:e.forfeit,gp:e.gp,high:e.high,loss:e.loss,ngame:e.ngame,nmatch:e.nmatch,otl:e.otl,pts:e.pts,rubber:e.rubber,rubberwin:e.rubberwin,score:e.score,scoreavg:e.scoreavg,sgame:e.sgame,smatch:e.smatch,ugame:e.ugame,umatch:e.umatch,win:e.win})}}},broadcast(){let e=`https://${window.location.host}/live/${this.venueStore.venue.locationSlug}/${this.eventType}/${this.leagueID}`;this.tvLanesLocation={title:"Live Scores",type:"live scores",location:`<a href='${e}' target='_blank'>${e}</a>`}},lanes(){const e=this.venueStore.venue.locationSlug;h(g(`/venues/${e}/tv`),t=>{let a="No games are playing";if(t.exists()){let s=t.val(),o=Object.keys(s).filter(e=>s[e].includes("/auto/tv")),i="";o.forEach(t=>{let a=`https://${window.location.host}/${e}/tv/${t}`;i+=`<p><a href='${a}' target='_blank' />${a}</a></p>`}),a=i}
1this.tvLanesLocation={title:"TV Lanes",type:"tv lanes",location:a}})},copyTvLanes(){const e=this.tvLanesLocation.location.split("'")[1];navigator.clipboard.writeText(e),this.generalStore.showSnackBar({text:"Copied link",color:"success",timeout:1500,show:!0})},fixCodes(){this.postHog.capture("button_fix_codes",{buttonPlace:"settings"});let e=`venues/${this.venueStore.venue.locationSlug}/league/${this.eventStore.selectedEvent.slug}/${this.seasonStore.hostSeason}/standings`;"duals-league"!==this.eventStore.selectedEvent.leagueType&&l(r(e)).then(function(t){let a=t.val();for(let s in a)l(c("/watl/players/"+s)).then(function(t){let a=t.val();u(r(`${e}/${s}`),{code:a.code})})})},fixStandings(){this.postHog.capture("button_fix_standings",{buttonPlace:"settings"});let e="https://us-central1-forged-7adb7.cloudfunctions.net/health/"+("duals-league"===this.eventStore.selectedEvent.leagueType?"fixStandingsDuals":"fixStandings")+"?path=venues/"+this.venueStore.venue.locationSlug+"/league/"+this.eventStore.selectedEvent.slug+"/"+this.seasonStore.hostSeason;n.get(e)},fixCurrentWeek(){this.postHog.capture("button_fix_current_week",{buttonPlace:"settings"});let e=`https://us-central1-forged-7adb7.cloudfunctions.net/health/fixWeek?path=venues/${this.venueStore.venue.locationSlug}/league/${this.eventStore.selectedEvent.slug}/${this.seasonStore.hostSeason}&week=${this.broadcastWeek}&leagueType=${this.eventStore.selectedEvent.leagueType}`;n.get(e)},fixTeams(){this.postHog.capture("button_fix_teams",{buttonPlace:"settings"});let e="https://us-central1-forged-7adb7.cloudfunctions.net/health/fixTeamsDuals?path=venues/"+this.venueStore.venue.locationSlug+"/league/"+this.eventStore.selectedEvent.slug+"/"+this.seasonStore.hostSeason;n.get(e)},fixSchedule(){this.postHog.capture("button_fix_schedule",{buttonPlace:"settings"});let e="https://us-central1-forged-7adb7.cloudfunctions.net/health/"+("duals-league"===this.eventStore.selectedEvent.leagueType?"fixScheduleDuals":"fixSchedule")+"?path=/venues/"+this.venueStore.venue.locationSlug+"/league/"+this.eventStore.selectedEvent.slug+"/"+this.seasonStore.hostSeason;n.get(e)},exportStandings(){this.postHog.capture("button_export_standings",{buttonPlace:"settings"});const e=this.eventStore.selectedTournamentBracketInfo;if(!e)return void alert("No data found to export");const t=o.get(e,"bracket.r01.g01.bestOf",1);let a=`${o.get(this.venueStore,"venue.company","")},${o.get(this.eventStore,"selectedEvent.title","")},${o.get(this.eventStore,"selectedEvent.date","")} ${o.get(this.eventStore,"selectedEvent.time","")}\n\n,`;for(let o=1;o<=t;o++)a+=`Match ${o} of ${t},,,,,`;a+="\nBracket #,";for(let o=1;o<=t;o++)a+="PID 1, Total, PID 2, Total,,";a+="\n";const s=(e,t)=>{e&&e.sum?a+=`${e.playerid||""},${e.sum[`round${t}`]},`:a+=",,"},n=(e,o)=>{const i=Object.keys(e||{}).length||0;for(let n=1;n<=i;n++){const i=e[`g0${n}`];if(i){a+=`${o}-${n},`;for(let e=1;e<=t;e++)s(i.player1,e),s(i.player2,e),a+=",";a+="\n"}}},l=(e,t)=>{const a=Object.keys(e||{}).length||0;for(let s=1;s<=a;s++){const a=e[`r0${s}`];a&&n(a,`${t}${s}`)}};l(e.bracket,"A"),l(e.finals,"A"),l(e.bracketB,"B"),i(a,this.eventStore.selectedEvent.slug)}}},W={class:"settingsText"},j={class:"text-h5"},H=["innerHTML"];e("default",a(C,[["render",function(e,t,a,s,o,i){const n=w("v-icon"),l=w("v-btn"),r=w("v-col"),c=w("v-row"),u=w("v-card-text"),h=w("v-card"),g=w("imageSelector"),d=w("v-dialog"),m=w("v-card-title"),p=w("v-spacer"),v=w("v-card-actions");return B(),y("div",null,[b(h,{variant:"flat",tile:""},{default:x(()=>[b(u,{class:"bottom-sheet"},{default:x(()=>[b(c,null,{default:x(()=>[(B(!0),y(k,null,_(o.options,e=>(B(),y(k,null,[e.show?(B(),$(r,{cols:"6",sm:"4",md:"3",key:e.label,class:"px-2 py-1"},{default:x(()=>[b(l,{class:"settingsButton",size:"large",disabled:e.disabled,block:"",color:e.color,onClick:t=>i.run(e.method)},{default:x(()=>[b(n,{start:""},{default:x(()=>[D(E(e.icon),1)]),_:2},1024),T("span",W,E(e.label),1)]),_:2},1032,["disabled","color","onClick"])]),_:2},1024)):L("",!0)],64))),256))]),_:1})]),_:1})]),_:1}),o.imgDialog.show?(B(),$(d,{key:0,modelValue:o.imgDialog.show,"onUpdate:modelValue":t[1]||(t[1]=e=>o.imgDialog.show=e),scrollable:"",width:this.imgDialog.windowWidth},{default:x(()=>[b(g,{currentImage:o.imgDialog.currentImage,ratioWidth:o.imgDialog.ratioWidth,ratioHeight:o.imgDialog.ratioHeight,updateDBlocation:"/venues/"+this.venueStore.venue.locationSlug+"/league-list/"+this.eventStore.selectedEvent.slug+"/seasons/"+this.selectedSeason,updateDBitem:o.imgDialog.updateDBitem,updateStorageLocation:"forged/event-list/"+this.eventType+"/"+this.eventStore.selectedEvent[".key"]+"/"+this.selectedSeason+"/",saveWidth:o.imgDialog.saveWidth,saveFormat:o.imgDialog.saveFormat,onCloseImageDialog:t[0]||(t[0]=e=>o.imgDialog.show=!1)},null,8,["currentImage","ratioWidth","ratioHeight","updateDBlocation","updateDBitem","updateStorageLocation","saveWidth","saveFormat"])]),_:1}
1,8,["modelValue","width"])):L("",!0),b(d,{modelValue:i.tvLanesLocationIsOpen,"onUpdate:modelValue":t[3]||(t[3]=e=>i.tvLanesLocationIsOpen=e),"max-width":"500px"},{default:x(()=>[i.tvLanesLocationIsOpen?(B(),$(h,{key:0},{default:x(()=>[b(m,null,{default:x(()=>[T("span",j,E(o.tvLanesLocation.title),1)]),_:1}),b(u,null,{default:x(()=>[D(" Broadcasting "+E(o.tvLanesLocation.type)+" at ",1),T("div",{innerHTML:o.tvLanesLocation.location},null,8,H)]),_:1}),b(v,null,{default:x(()=>[b(p),o.tvLanesLocation.location.includes("/tv/")?(B(),$(l,{key:0,style:{"margin-right":"20px"},color:"grey",variant:"text",onClick:i.copyTvLanes},{default:x(()=>[...t[4]||(t[4]=[D(" Copy Link ",-1)])]),_:1},8,["onClick"])):L("",!0),b(l,{color:"primary",variant:"text",onClick:t[2]||(t[2]=e=>o.tvLanesLocation=null)},{default:x(()=>[...t[5]||(t[5]=[D(" Ok ",-1)])]),_:1})]),_:1})]),_:1})):L("",!0)]),_:1},8,["modelValue"])])}],["__scopeId","data-v-8204cea0"]]))}}});

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.