PageSourceSearch

https://axethrowing.org/assets/bottomSheet-Bh7cy0dv.js

js axethrowing.org collected 2026-09-24 11:39:52 UTC 13,567 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/imageSelector-wfyvm90A.js","assets/croppie-COvZV25I.js","assets/index-Ce7SucYs.js","assets/index-DmYFL31l.css","assets/imageSelector-Q-L2vZRw.css"])))=>i.map(i=>d[i]);
2import{_ as e,B as t,c1 as a,aq as o,ad as s,W as n,T as i,G as c,E as l,N as r,M as u,a2 as h,u as g,X as d,k as m,Y as p,P as v,e as f,f as S,m as b,q as y,n as L,r as x,F as w,v as k,t as _,z as T,x as E,g as D}from"./index-Ce7SucYs.js";const B={components:{imageSelector:t(()=>v(()=>import("./imageSelector-wfyvm90A.js"),__vite__mapDeps([0,1,2,3,4])))},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=g(),t=d(),a=m();return{venueStore:e,seasonStore:t,eventStore:p(),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=[];
2Object.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=u("/watl/league/".concat(this.eventStore.selectedEvent.officialLeague,"/").concat(this.selectedSeason,"/standings/").concat(e.key));h(a,t)})},exportSeason(){let e,t,a,o=this.emailList,s=Object.keys(o[0]),n=function(e,t){return null===t?"":t},i=o.map(function(e){return s.map(function(t){return JSON.stringify(e[t],n)}).join(",")});i.unshift(s.join(",")),i="data:text/pdf;charset=utf-8,"+i.join("\r\n"),t=this.$route.params.leagueID+"_"+this.selectedSeason+"_stats.csv",e=encodeURI(i),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=>{n(c("/watl/players/".concat(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)&&l(i("".concat(this.broadcastLocation,"/standings/").concat(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=>{n(c("/teams/".concat(e.key))).then(t=>{let a=t.val();a.name===e.name&&a.logo===e.pic||(l(i("".concat(this.broadcastLocation,"/standings/").concat(e.key)),{name:a.name,pic:a.logo}),l(i("".concat(this.broadcastLocation,"/teams/").concat(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];l(i("".concat(this.broadcastLocation,"/standings/").concat(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://".concat(window.location.host,"/live/").concat(this.venueStore.venue.locationSlug,"/").concat(this.eventType,"/").concat(this.leagueID);this.tvLanesLocation={title:"Live Scores",type:"live scores",location:"<a href='".concat(e,"' target='_blank'>").concat(e,"</a>")}},lanes(){const e=this.venueStore.venue.locationSlug;r(u("/venues/".concat(e,"/tv")),t=>{let a="No games are playing";if(t.exists()){let o=t.val(),s=Object.keys(o).filter(e=>o[e].includes("/auto/tv")),n="";
2s.forEach(t=>{let a="https://".concat(window.location.host,"/").concat(e,"/tv/").concat(t);n+="<p><a href='".concat(a,"' target='_blank' />").concat(a,"</a></p>")}),a=n}this.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/".concat(this.venueStore.venue.locationSlug,"/league/").concat(this.eventStore.selectedEvent.slug,"/").concat(this.seasonStore.hostSeason,"/standings");"duals-league"!==this.eventStore.selectedEvent.leagueType&&n(i(e)).then(function(t){let a=t.val();for(let o in a)n(c("/watl/players/"+o)).then(function(t){let a=t.val();l(i("".concat(e,"/").concat(o)),{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;s.get(e)},fixCurrentWeek(){this.postHog.capture("button_fix_current_week",{buttonPlace:"settings"});let e="".concat("https://us-central1-forged-7adb7.cloudfunctions.net","/health/fixWeek?path=venues/").concat(this.venueStore.venue.locationSlug,"/league/").concat(this.eventStore.selectedEvent.slug,"/").concat(this.seasonStore.hostSeason,"&week=").concat(this.broadcastWeek,"&leagueType=").concat(this.eventStore.selectedEvent.leagueType);s.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;s.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;s.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=a.get(e,"bracket.r01.g01.bestOf",1);let s="".concat(a.get(this.venueStore,"venue.company",""),",").concat(a.get(this.eventStore,"selectedEvent.title",""),",").concat(a.get(this.eventStore,"selectedEvent.date","")," ").concat(a.get(this.eventStore,"selectedEvent.time",""),"\n\n,");for(let a=1;a<=t;a++)s+="Match ".concat(a," of ").concat(t,",,,,,");s+="\nBracket #,";for(let a=1;a<=t;a++)s+="PID 1, Total, PID 2, Total,,";s+="\n";const n=(e,t)=>{e&&e.sum?s+="".concat(e.playerid||"",",").concat(e.sum["round".concat(t)],","):s+=",,"},i=(e,a)=>{const o=Object.keys(e||{}).length||0;for(let i=1;i<=o;i++){const o=e["g0".concat(i)];if(o){s+="".concat(a,"-").concat(i,",");for(let e=1;e<=t;e++)n(o.player1,e),n(o.player2,e),s+=",";s+="\n"}}},c=(e,t)=>{const a=Object.keys(e||{}).length||0;for(let o=1;o<=a;o++){const a=e["r0".concat(o)];a&&i(a,"".concat(t).concat(o))}};c(e.bracket,"A"),c(e.finals,"A"),c(e.bracketB,"B"),o(s,this.eventStore.selectedEvent.slug)}}},I={class:"settingsText"},P={class:"text-h5"},W=["innerHTML"];const j=e(B,[["render",function(e,t,a,o,s,n){const i=x("v-icon"),c=x("v-btn"),l=x("v-col"),r=x("v-row"),u=x("v-card-text"),h=x("v-card"),g=x("imageSelector"),d=x("v-dialog"),m=x("v-card-title"),p=x("v-spacer"),v=x("v-card-actions");return D(),f("div",null,[S(h,{variant:"flat",tile:""},{default:L(()=>[S(u,{class:"bottom-sheet"},{default:L(()=>[S(r,null,{default:L(()=>[(D(!0),f(w,null,k(s.options,e=>(D(),f(w,null,[e.show?(D(),b(l,{cols:"6",sm:"4",md:"3",key:e.label,class:"px-2 py-1"},{default:L(()=>[S(c,{class:"settingsButton",size:"large",disabled:e.disabled,block:"",color:e.color,onClick:t=>n.run(e.method)},{default:L(()=>[S(i,{start:""},{default:L(()=>[E(T(e.icon),1)]),_:2},1024),_("span",I,T(e.label),1)]),_:2},1032,["disabled","color","onClick"])]),_:2},1024)):y("",!0)],64))),256))]),_:1})]),_:1})]),_:1}),s.imgDialog.show?(D(),b(d,{key:0,modelValue:s.imgDialog.show,"onUpdate:modelValue":t[1]||(t[1]=e=>s.imgDialog.show=e),scrollable:"",width:this.imgDialog.windowWidth},{default:L(()=>[S(g,{currentImage:s.imgDialog.currentImage,ratioWidth:s.imgDialog.ratioWidth,ratioHeight:s.imgDialog.ratioHeight,updateDBlocation:"/venues/"+this.venueStore.venue.locationSlug+"/league-list/"+this.eventStore.selectedEvent.slug+"/seasons/"+this.selectedSeason,updateDBitem:s.imgDialog.updateDBitem,updateStorageLocation:"forged/event-list/"+this.eventType+"/"+this.eventStore.selectedEvent[".key"]+"/"+this.selectedSeason+"/",saveWidth:s.imgDialog.saveWidth,saveFormat:s.imgDialog.saveFormat,onCloseImageDialog:t[0]||(t[0]=e=>s.imgDialog.show=!1)},null,8,["currentImage","ratioWidth","ratioHeight","updateDBlocation","updateDBitem","updateStorageLocation","saveWidth","saveFormat"])]),_:1}
2,8,["modelValue","width"])):y("",!0),S(d,{modelValue:n.tvLanesLocationIsOpen,"onUpdate:modelValue":t[3]||(t[3]=e=>n.tvLanesLocationIsOpen=e),"max-width":"500px"},{default:L(()=>[n.tvLanesLocationIsOpen?(D(),b(h,{key:0},{default:L(()=>[S(m,null,{default:L(()=>[_("span",P,T(s.tvLanesLocation.title),1)]),_:1}),S(u,null,{default:L(()=>[E(" Broadcasting "+T(s.tvLanesLocation.type)+" at ",1),_("div",{innerHTML:s.tvLanesLocation.location},null,8,W)]),_:1}),S(v,null,{default:L(()=>[S(p),s.tvLanesLocation.location.includes("/tv/")?(D(),b(c,{key:0,style:{"margin-right":"20px"},color:"grey",variant:"text",onClick:n.copyTvLanes},{default:L(()=>[...t[4]||(t[4]=[E(" Copy Link ",-1)])]),_:1},8,["onClick"])):y("",!0),S(c,{color:"primary",variant:"text",onClick:t[2]||(t[2]=e=>s.tvLanesLocation=null)},{default:L(()=>[...t[5]||(t[5]=[E(" Ok ",-1)])]),_:1})]),_:1})]),_:1})):y("",!0)]),_:1},8,["modelValue"])])}],["__scopeId","data-v-8204cea0"]]);export{j 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.