PageSourceSearch

https://axethrowing.org/assets/hosts-B73H6XnY.js

js axethrowing.org collected 2026-10-01 15:00:52 UTC 17,373 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/invoiceList-Dc8MgRrW.js","assets/index-M5qy_4Wm.js","assets/index-DQUiY2wr.css","assets/invoiceList-CsPuDguZ.css"])))=>i.map(i=>d[i]);
2import{_ as e,l as t,h as n,i as a,j as o,u as s,k as l,m as i,p as r,n as u,q as c,t as d,f as h,v as p,r as m,e as v,x as g,F as S,y as k,z as w,g as f,B as y,C as _,D as b,E as $,G as x,H as C,I as D,J as P,K as M,L as A,A as H,M as L,N as U,O as B,P as T,Q as V}from"./index-M5qy_4Wm.js";import{D as I}from"./drawerIcon-D6p8KgWU.js";const O=e({name:"drawer",components:{DrawerIcon:I},inject:["postHog"],data(){return{darkTheme:!1,buildVersion:r.version,navSubscription:[{title:"Games",icon:"team",link:"/hosts/".concat(this.venueStore.venue.locationSlug||this.$route.params.locationSlug,"/group")}],navWATLAdmin:[{title:"Dashboard",icon:"share",link:"/hosts/".concat(this.venueStore.venue.locationSlug||this.$route.params.locationSlug,"/payments/dashboard")}],navOwner:[{title:"Billing",icon:"windows",link:"",hide:"watl"===this.$route.params.locationSlug}],navMenuBottom:[{title:"Venue",icon:"venue",link:["master","commissioner"].includes(this.userStore.siteAccess)?"/hosts/".concat(this.venueStore.venue.locationSlug||this.$route.params.locationSlug,"/venue-master"):"/hosts/".concat(this.venueStore.venue.locationSlug||this.$route.params.locationSlug,"/venue")},{title:"News",icon:"calendar-2",link:"/hosts/".concat(this.venueStore.venue.locationSlug||this.$route.params.locationSlug,"/news")},{title:"Access",icon:"access",link:"/hosts/".concat(this.venueStore.venue.locationSlug||this.$route.params.locationSlug,"/access")},{title:"Subscriptions",icon:"sponsors",link:"/hosts/".concat(this.venueStore.venue.locationSlug||this.$route.params.locationSlug,"/subscription"),hide:"subscription"!==this.venueStore.venue.paymentMethod}],navMenuUser:[{title:"Go to Website",icon:"website",link:"/".concat(this.venueStore.venue.locationSlug||this.$route.params.locationSlug)}]}},setup:()=>({venueStore:s(),userStore:l(),generalStore:i()}),computed:{helpPortalUrl:()=>o(),isStaging:()=>!1,getNavMenu(){return[{title:"Seasons",icon:"calendar-2",link:"/hosts/".concat(this.venueStore.venue.locationSlug||this.$route.params.locationSlug,"/seasons"),hide:"custom"!==this.venueStore.venue.type&&!["master","commissioner"].includes(this.userStore.siteAccess)||"custom"===this.venueStore.venue.type&&!this.userStore.userRoles.owner},{title:"League",icon:"league",link:"/hosts/".concat(this.venueStore.venue.locationSlug||this.$route.params.locationSlug,"/league")},{title:"Tournament",icon:"tournaments",link:"/hosts/".concat(this.venueStore.venue.locationSlug||this.$route.params.locationSlug,"/tournament")},{title:"Qualifying",icon:"tournaments",link:"/hosts/".concat(this.venueStore.venue.locationSlug||this.$route.params.locationSlug,"/qualifying"),hide:"custom"===this.venueStore.venue.type},{title:"Players",icon:"team",link:"/hosts/".concat(this.venueStore.venue.locationSlug||this.$route.params.locationSlug,"/players")},{title:"Teams",icon:"team",link:"/hosts/".concat(this.venueStore.venue.locationSlug||this.$route.params.locationSlug,"/teams"),hide:!this.isStaging}]}},methods:{redirectToStripePortal(){const e="https://axethrowing.org"+this.$route.fullPath;a(this.venueStore.venue.customer,e).then(({url:e})=>{this.drawerStateHandler(!1),window.location.replace(e)}).catch(e=>{this.$notify({group:"notifyMessages",type:"error",title:"Error",text:e.response.data||"Something went wrong",duration:4e3})})},ownerNavigationHandler(e){e.link.length||(this.venueStore.venue.customer?n(this.redirectToStripePortal,"This link will open Stripe customer portal","info","Proceed"):n(()=>{window.open("https://axethrowing.getgodesk.com/support/1/en_GB","_blank")},"You don't have a properly set up billing account. Please contact support for assistance.","info","Support"))},drawerStateHandler(e){this.generalStore.drawer=e},openLink(e){window.open(e,"_blank")},logout(){t("/".concat(this.venueStore.venue.locationSlug||this.$route.params.locationSlug)),this.postHog.reset(),this.generalStore.drawer=!1},trackSignOut(){this.postHog.capture("menu_click",{meny_type:"sidebar",menu_item:"Sign out",link_type:"internal",venue:this.venueStore.venue.locationSlug||this.$route.params.locationSlug})},trackHelp(){this.postHog.capture("menu_click",{meny_type:"sidebar",menu_item:"Help",menu_link:"https://axethrowing.getgodesk.com/support/1/en_GB",link_type:"external",venue:this.venueStore.venue.locationSlug||this.$route.params.locationSlug})},trackMenuClick(e,t){this.postHog.capture("menu_click",{meny_type:t,menu_item:e.title,menu_link:e.link,link_type:"absolute"===e.linkType?"external":"internal",venue:this.venueStore.venue.locationSlug||this.$route.params.locationSlug})}},watch:{"userStore.user.theme":function(e,t){this.userStore.setTheme({user:this.userStore.user[".key"],theme:e})},"venueStore.venue.paymentMethod":function(e){let t=this.navMenuBottom.findIndex(e=>"Subscriptions"===e.title);this.navMenuBottom[t].hide="subscription"!==e}}},[["render",function(e,t,n,a,o,s){const l=m("drawer-icon"),i=m("v-toolbar"),r=m("v-list-item-title"),_=m("v-list-item"),b=m("v-list"),$=m("v-navigation-drawer");return f(),u($,{"model-value":!!e.$vuetify.display.lgAndUp||a.generalStore.drawer,rail:e.$vuetify.display.lgAndUp&&a.generalStore.drawer,permanent:e.$vuetify.display.lgAndUp,"disable-route-watcher":"",class:"drawer","onUpdate:modelValue":s.drawerStateHandler},{default:c(()=>[e.$route.params.game?(f(),u(i,{key:0,card:"",class:"transparent header"},{default:c(()=>[h(l)]),_:1})):d("",!0),h(b,{class:"list"},{default:c(()=>[(f(!0),v(S,null,g(o.navSubscription,t=>(f(),u(_,{key:t.title,onClick:n=>(s.trackMenuClick(t,"navigation"),e.$router.push(t.link),a.generalStore.drawer=!1),class:w(["menu-text menu-item",{active:e.$route.path==t.link}])},{prepend:c(()=>[p("i",{class:w(["icon-"+t.icon,""])},null,2)]),default:c(()=>[h(_,null,{default:c(()=>[h(r,{class:w(["menu-text",{active:e.$route.path==t.link}])},{default:c(()=>
2[k(y(t.title),1)]),_:2},1032,["class"])]),_:2},1024)]),_:2},1032,["onClick","class"]))),128))]),_:1}),h(b,{class:"list"},{default:c(()=>[(f(!0),v(S,null,g(s.getNavMenu,t=>(f(),v(S,null,[t.hide?d("",!0):(f(),u(_,{key:t.title,onClick:n=>(s.trackMenuClick(t,"navigation"),e.$router.push(t.link),a.generalStore.drawer=!1),class:w(["menu-text menu-item",{active:e.$route.path==t.link}])},{prepend:c(()=>[p("i",{class:w("icon-"+t.icon)},null,2)]),default:c(()=>[h(_,null,{default:c(()=>[h(r,{class:w(["menu-text",{active:e.$route.path==t.link}])},{default:c(()=>[k(y(t.title),1)]),_:2},1032,["class"])]),_:2},1024)]),_:2},1032,["onClick","class"]))],64))),256))]),_:1}),"master"===a.userStore.siteAccess&&"watl"===a.venueStore.venue.locationSlug?(f(),u(b,{key:1,class:"list"},{default:c(()=>[(f(!0),v(S,null,g(o.navWATLAdmin,t=>(f(),u(_,{key:t.title,onClick:n=>(s.trackMenuClick(t,"admin"),e.$router.push(t.link),a.generalStore.drawer=!1),class:w(["menu-text menu-item",{active:e.$route.path==t.link}])},{prepend:c(()=>[p("i",{class:w("icon-"+t.icon)},null,2)]),default:c(()=>[h(_,null,{default:c(()=>[h(r,{class:w(["menu-text",{active:e.$route.path==t.link}])},{default:c(()=>[k(y(t.title),1)]),_:2},1032,["class"])]),_:2},1024)]),_:2},1032,["onClick","class"]))),128))]),_:1})):d("",!0),a.userStore.userRoles.owner?(f(),u(b,{key:2,class:"list"},{default:c(()=>[(f(!0),v(S,null,g(o.navOwner,t=>(f(),v(S,null,[t.hide?d("",!0):(f(),u(_,{key:t.title,onClick:e=>(s.trackMenuClick(t,"owner"),s.ownerNavigationHandler(t)),class:w(["menu-text menu-item",{active:e.$route.path==t.link}])},{prepend:c(()=>[p("i",{class:w("icon-"+t.icon)},null,2)]),default:c(()=>[h(_,null,{default:c(()=>[h(r,{class:w(["menu-text",{active:e.$route.path==t.link}])},{default:c(()=>[k(y(t.title),1)]),_:2},1032,["class"])]),_:2},1024)]),_:2},1032,["onClick","class"]))],64))),256))]),_:1})):d("",!0),a.userStore.userRoles.admin?(f(),u(b,{key:3,class:"list"},{default:c(()=>[(f(!0),v(S,null,g(o.navMenuBottom,t=>(f(),v(S,null,[t.hide?d("",!0):(f(),u(_,{key:t.title,onClick:n=>(s.trackMenuClick(t,"admin_bottom"),e.$router.push(t.link),a.generalStore.drawer=!1),class:w(["menu-text menu-item",{active:e.$route.path==t.link}])},{prepend:c(()=>[p("i",{class:w("icon-"+t.icon)},null,2)]),default:c(()=>[h(_,null,{default:c(()=>[h(r,{class:w(["menu-text",{active:e.$route.path==t.link}])},{default:c(()=>[k(y(t.title),1)]),_:2},1032,["class"])]),_:2},1024)]),_:2},1032,["onClick","class"]))],64))),256))]),_:1})):d("",!0),t[6]||(t[6]=p("div",{class:"spacer"},null,-1)),h(b,{class:"list"},{default:c(()=>[(f(!0),v(S,null,g(o.navMenuUser,t=>(f(),u(_,{key:t.title,onClick:n=>(s.trackMenuClick(t,"user"),e.$router.push(t.link),a.generalStore.drawer=!1),class:w(["menu-text menu-item",{active:e.$route.path==t.link}])},{prepend:c(()=>[p("i",{class:w("icon-"+t.icon)},null,2)]),default:c(()=>[h(_,null,{default:c(()=>[h(r,{class:w(["menu-text",{active:e.$route.path==t.link}])},{default:c(()=>[k(y(t.title),1)]),_:2},1032,["class"])]),_:2},1024)]),_:2},1032,["onClick","class"]))),128)),h(_,{onClick:t[0]||(t[0]=e=>(s.trackSignOut(),s.logout())),class:"menu-text menu-item"},{prepend:c(()=>[...t[2]||(t[2]=[p("i",{class:w("icon-logout")},null,-1)])]),default:c(()=>[h(_,null,{default:c(()=>[h(r,{class:"menu-text"},{default:c(()=>[...t[3]||(t[3]=[k("Sign out",-1)])]),_:1})]),_:1})]),_:1}),h(_,{onClick:t[1]||(t[1]=e=>(s.trackHelp(),s.openLink(s.helpPortalUrl))),class:"menu-text menu-item"},{prepend:c(()=>[...t[4]||(t[4]=[p("i",{class:"icon-info"},null,-1)])]),default:c(()=>[h(_,null,{default:c(()=>[h(r,{class:"menu-text"},{default:c(()=>[...t[5]||(t[5]=[k("Help",-1)])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model-value","rail","permanent","onUpdate:modelValue"])}],["__scopeId","data-v-5e18c281"]]),R=_(()=>V(()=>import("./invoiceList-Dc8MgRrW.js"),__vite__mapDeps([0,1,2,3]))),j=["name"],E={key:0,class:"alert-bar"},G=["innerHTML"],N={key:1,class:"empty-page aquire-venue"};const W=e({name:"hosts",components:{drawer:O,invoiceList:R},inject:["postHog"],props:{locationSlug:String},data:()=>({user:{},snackbar:{show:!1,text:"Saved",color:"success",timeout:3e4},alertBar:null,alertType:"",players:{},settings:{},watlPaymentDue:!1,showPaymentDebtDialog:!1,openCustomerInvoices:[]}),setup:()=>({venueStore:s(),userStore:l(),generalStore:i()}),computed:{venueLocationSlug(){return this.venueStore.venue.locationSlug},host(){return this.userStore.userRoles.host}},watch:{locationSlug(e){e&&"undefined"!==e?this.setHostData(e):this.handleUndefinedVenue()},venueLocationSlug(){void 0!==this.venueStore.venue.locationSlug&&(this.generalStore.setPlayers({venue:this.venueStore.venue.locationSlug}),this.venueAlerts(this.venueStore.venue)),null!==this.$firebaseAuth.currentUser&&void 0!==this.venueStore.venue.locationSlug&&this.userStore.setUser()},host(){this.userStore.userRoles.host||this.$router.push("/watl")}},created(){"undefined"!==this.locationSlug&&void 0!==this.locationSlug?this.setHostData(this.locationSlug):this.handleUndefinedVenue()},mounted(){if(this.setDate(),window.addEventListener("offline",()=>{console.log("I am offline."),this.generalStore.showSnackBar({text:"You are offline.",color:"error",timeout:4e3,show:!0})}),window.addEventListener("online",()=>{this.generalStore.showSnackBar({text:"Your internet connection was restored.",color:"success",timeout:4e3,show:!0})}),void 0!==this.venueStore.venue.locationSlug){this.generalStore.setPlayers({venue:this.venueStore.venue.locationSlug}),"watl"===this.venueStore.venue.locationSlug&&["master","commissioner"].includes(this.userStore.siteAccess),this.userStore.userRoles.owner&&L(P(M,"stripe_customers","".concat(this.$firebaseAuth.currentUser.uid)),e=>{!1===e.exists&&this.addStripeCustomer()});const e=U("/_config");B(e,()=>{this.venueAlerts(this.venueStore.venue)},{onlyOnce:!0}),this.venueStore.venue.customer&&T(this.venueStore.venue.customer,"open").then(e=>{this.openCustomerInvoices=e,this.showPaymentDebtDialog=Boolean(e.length)})}},methods:{getPortal(){const e="https://axethrowing.org"+this.$route.fullPath;a(this.venueStore.venue.customer,e).then(({url:e})=>{window.location.replace(e)}).catch(e=>{H({group:"notifyMessages",type:"error",title:"Error",text:e.response.data||"Something went wrong",duration:4e3})})},redirectToHomeVenue(){let e=this.userStore.getUserHomeVenue;this.$router.push("/"+e||Object.keys(this.userStore.userVenues)[0])},handleUndefinedVenue(){"/payments/dashboard"!==this.$route.path&&(this.userStore.setUserRoles={admin:!1,host:!1,owner:!1},A("watl"),this.$router.push("/watl"),this.$notify({group:"notifyMessages",type:"warn",title:"Something went wrong",text:"You have been redirected to the main page",duration:5e3}))},setHostData(e){this.venueStore.setVenue(e),this.venueStore.setListTourn
2aments(e),this.venueStore.setListLeagues(e),this.venueStore.setListQualifying()},onResize(){window.innerWidth<=1200?this.generalStore.drawerMini=!0:this.generalStore.drawerMini=!1},setDate(){let e=new Date,t=e.getFullYear()+"-"+("0"+(e.getMonth()+1)).slice(-2)+"-"+("0"+e.getDate()).slice(-2);this.generalStore.dateToday=t},addStripeCustomer(){let e=this.userStore.user.first+" "+this.userStore.user.last,t=this.userStore.user.email,n=this.venueStore.venue.company;D(P(M,"stripe_customers",this.$firebaseAuth.currentUser.uid),{name:e,description:n,email:t})},venueAlerts(e){return this.userStore.user.accessUpdated?(this.alertBar={msg:"Please update your access for this website",btn:"update access",action:()=>{this.$firebaseAuth.currentUser.getIdToken(!0),x(C("/watl/players/".concat(this.userStore.user[".key"])),{accessUpdated:null}),window.location.reload()}},!0):"Disabled"===this.venueStore.venue.status?(this.alertBar={msg:'<p>This venue has been set to inactive, please\n                    bring your billing account up to date and email us at <a style="color: white;font-weight: bold" href="mailto:[email protected]"\n          >[email protected]</a>\n                   <p>',btn:"",action:()=>{}},!0):void(e.stripeProfile&&e.card)},alertBarAction(){this.alertBar.action()}}},[["render",function(e,t,n,a,o,s){const l=m("v-btn"),i=m("router-view"),r=m("v-container"),g=m("drawer"),S=m("v-main"),_=m("v-snackbar"),x=m("v-card-title"),C=m("v-card-text"),D=m("v-spacer"),P=m("v-card-actions"),M=m("v-card"),A=m("v-dialog"),H=m("invoiceList"),L=$("resize");return b((f(),v("div",{id:"HostSite",class:w(["page",{alert:null!==o.alertBar,oldVersion:"old-version"===o.alertType}]),name:e.$route.name},[null!==o.alertBar?(f(),v("div",E,[p("p",{innerHTML:o.alertBar.msg},null,8,G),o.alertBar.btn?(f(),u(l,{key:0,class:"white",onClick:t[0]||(t[0]=e=>s.alertBarAction())},{default:c(()=>[k(y(o.alertBar.btn),1)]),_:1})):d("",!0)])):d("",!0),void 0===a.venueStore.venue.locationSlug&&"paymentDash"!==e.$route.name?(f(),v("div",N," please wait... loading venue data ")):d("",!0),h(S,null,{default:c(()=>[h(r,{class:w(["container-padding",{"no-padding":"hostGroup"===e.$route.name}])},{default:c(()=>[(f(),u(i,{key:a.venueStore.venue.locationSlug}))]),_:1},8,["class"]),(f(),u(g,{key:a.venueStore.venue.locationSlug,class:w({hostsDrawerSpacing:null!==o.alertBar})},null,8,["class"]))]),_:1}),h(_,{right:"",modelValue:a.generalStore.snackbar.show,"onUpdate:modelValue":t[1]||(t[1]=e=>a.generalStore.snackbar.show=e),color:a.generalStore.snackbar.color,timeout:a.generalStore.snackbar.timeout,style:{"text-transform":"uppercase","z-index":"999999"}},{default:c(()=>[k(y(a.generalStore.snackbar.text),1)]),_:1},8,["modelValue","color","timeout"]),h(A,{modelValue:o.watlPaymentDue,"onUpdate:modelValue":t[3]||(t[3]=e=>o.watlPaymentDue=e),persistent:"","max-width":"400"},{default:c(()=>[h(M,{"pa-5":""},{default:c(()=>[h(x,{class:"headline"},{default:c(()=>[...t[6]||(t[6]=[k("Outstanding WATL dues",-1)])]),_:1}),h(C,null,{default:c(()=>[...t[7]||(t[7]=[k("In order to continue using the app, you must first pay your outstanding WATL dues. ",-1),p("br",null,null,-1),k("Please email [email protected]. ",-1),p("br",null,null,-1),p("br",null,null,-1),k("Points will not be awarded to league members until dues are paid in full.",-1)])]),_:1}),h(P,null,{default:c(()=>[h(D),h(l,{color:"green darken-1",variant:"flat",onClick:t[2]||(t[2]=e=>o.watlPaymentDue=!1)},{default:c(()=>[...t[8]||(t[8]=[k("I understand",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),h(A,{modelValue:o.showPaymentDebtDialog,"onUpdate:modelValue":t[5]||(t[5]=e=>o.showPaymentDebtDialog=e),persistent:"","max-width":"600"},{default:c(()=>[h(M,{"pa-5":""},{default:c(()=>[h(x,{class:"headline"},{default:c(()=>[...t[9]||(t[9]=[k("Outstanding invoices",-1)])]),_:1}),h(C,null,{default:c(()=>[...t[10]||(t[10]=[k("In order to continue using the app, please pay your outstanding invoices.",-1)])]),_:1}),h(C,null,{default:c(()=>[h(H,{customer:a.venueStore.venue.customer,type:"open",invoicesList:o.openCustomerInvoices},null,8,["customer","invoicesList"])]),_:1}),h(P,null,{default:c(()=>[h(l,{color:"blue darken-1",variant:"flat",onClick:s.getPortal},{default:c(()=>[...t[11]||(t[11]=[k("Stripe Portal",-1)])]),_:1},8,["onClick"]),h(l,{color:"green darken-1",variant:"flat",onClick:t[4]||(t[4]=e=>o.showPaymentDebtDialog=!1)},{default:c(()=>[...t[12]||(t[12]=[k("I understand",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])],10,j)),[[L,s.onResize]])}]]);export{W 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.