PageSourceSearch

https://axethrowing.org/assets/addVenue-legacy-CDzsWjde.js

js axethrowing.org collected 2026-09-24 11:40:08 UTC 24,132 bytes, 1 lines download raw bytes

1System.register(["./imageURLreturn-legacy-Bzwbdrej.js","./index-legacy-BtJkYB7P.js","./playerCode-legacy-BsyhQBjI.js","./customInput-legacy-coPiPdsV.js","./setCustomClaims-legacy-C4iEWiqQ.js","./createPlayer-legacy-NAqMWKvi.js","./tz-legacy-DNt3dnae.js"],function(e,t){"use strict";var o,a,n,i,s,l,r,u,d,c,m,h,p,v,f,g,y,I,b,w,V,x,k,P,S,_,D,E,C,M,U,W,$,A,O,j,X,L,q,B,H,N,Y,z,F,R,Z,T;return{setters:[e=>{o=e.i},e=>{a=e._,n=e.ah,i=e.al,s=e.Q,l=e.R,r=e.S,u=e.G,d=e.N,c=e.a2,m=e.M,h=e.W,p=e.E,v=e.ad,f=e.h,g=e.b0,y=e.b1,I=e.U,b=e.b2,w=e.b3,V=e.b4,x=e.b5,k=e.b6,P=e.j,S=e.k,_=e.u,D=e.e,E=e.t,C=e.m,M=e.q,U=e.f,W=e.n,$=e.r,A=e.C,O=e.a7,j=e.$,X=e.x,L=e.F,q=e.v,B=e.a0,H=e.z,N=e.y,Y=e.g},e=>{z=e.p},e=>{F=e.C},e=>{R=e.s},e=>{Z=e.c},e=>{T=e.t}],execute:function(){var t=document.createElement("style");t.textContent="#addVenue-radioButtons label{color:#6e7788!important}.formSelect option[data-v-05285783]{color:#000}.formSelect[data-v-05285783]:disabled{background-color:transparent}#formVenue[data-v-05285783]{height:100%;overflow-y:auto}.v-dialog select[data-v-05285783]{color:#fff!important}.venue-path[data-v-05285783]{cursor:pointer}.venue-path.text-primary[data-v-05285783]{color:var(--theme-background)!important;caret-color:var(--theme-background)!important}.logo-container[data-v-05285783]{position:relative;overflow:hidden;padding-bottom:100%;background-color:var(--theme-primary);box-shadow:0 0 2px #000}.logo-container img[data-v-05285783]{position:absolute;top:0;left:0;bottom:0;margin:auto;width:100%;height:auto}.logo-container>div[data-v-05285783]{position:absolute;top:30%;width:100%;text-align:center}.phone[data-v-05285783]{position:relative}.phone .phoneCode[data-v-05285783]{position:absolute;top:36px;left:16px}.phone .phoneInput[data-v-05285783] input{padding-left:50px}\n/*$vite$:1*/",document.head.appendChild(t);const K=["src"],G={key:1,id:"addVenue-radioButtons"},Q=["required","disabled"],J={class:"phoneCode"},ee={key:0,value:"invoicing"},te={key:0};e("a",a({name:"addVenue",props:{venue:Object,view:String},emits:["closeDialog"],components:{CustomInput:F,imageURLreturn:o},mixins:[z],data:()=>({venueSubscription:{},existingPlayer:!1,existingPlayerCode:"",chosenPlayer:{},venueInfo:null,isShowDialogError:!1,imgDialog:{show:!1,windowWidth:300,currentImage:"",updateDBlocation:"global/venue-logos/",updateDBitem:"logo",updateStorageLocation:"global/venue-logos/",ratioWidth:"1",ratioHeight:"1",saveWidth:"250",saveFormat:"png"},emailReg:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,validationErrors:{company:"",city:"",email:"",phone:"",address:"",state:"",postcode:""},geodataError:!1}),watch:{existingPlayer(e){e||(this.venue.firstname="",this.venue.lastname="",this.venue.adminemail="",this.existingPlayerCode="",this.chosenPlayer={})},venue:{immediate:!0,deep:!0,handler(e){this.venueInfo={...e.content}}},"venueInfo.type":function(e,t){if(e){let o={"watl-affiliated":"watl",custom:"axeThrowing"},a={"watl-affiliated":"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fvenue-logos%2F1569244739239_venue-logosWATL-logo.png?alt=media&token=0f58cbea-6ef3-418f-9962-1221b5014a17",custom:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2FDefault%20venue.png?alt=media&token=9a974454-d438-45a0-9ca1-7461898ef324"};this.venueInfo.rules=o[e],this.venueInfo.logo===a[t]&&(this.venueInfo.logo=a[e]),"custom"===e&&(this.venueInfo.paymentMethod="subscription")}}},setup:()=>({userStore:P(),generalStore:S(),venueStore:_()}),computed:{getCountries:()=>k(),getPhoneMask:()=>x(),addressDB(){return this.venueInfo.address.replace(/\n/g,", ")},myPath:()=>window.location.host,venuePath(){return`/${this.slug(this.venueInfo.company+"-"+this.venueInfo.city)}`},phonePlaceholder(){return V(this.venueInfo.country)}},methods:{applyPhoneMask:i,dayjs:n,async getVenueSubscription(){this.venueSubscription=await w(this.venueInfo.subscription),console.log(this.venueSubscription)},stringHandler(e,t){let o=e.target.value;this.venueInfo[t]=o.replace(/[^a-zA-Z\s-]/,"")},postcodeHandler(e){let t=e.target.value;this.venueInfo.postcode=t.replace(/[^A-Za-z0-9\s-]/,"")},setOwnerVenueAccess(e,t){c(m(`/venues/${e}/access/${t}`),{admin:!0,host:!0,master:!1,owner:!0})},setOwnerForVenue(){d(s(u("/watl/players"),r("code"),l(this.existingPlayerCode.toUpperCase())),e=>{if(e.exists()){let t=e.val(),o=Object.values(t)[0];this.chosenPlayer={...o,".key":Object.keys(t)[0]},this.venueInfo.adminfirst=o.first,this.venueInfo.adminlast=o.last,this.venueInfo.adminemail=o.email}else this.$notify({group:"notifyMessages",type:"error",title:"Oops",text:`Player with code ${this.existingPlayerCode.toUpperCase()} not exists`,duration:2e3}),this.existingPlayerCode=""})},closeHandler(){this.geodataError=!1,"admin"===this.view&&window.location.reload(),this.$emit("closeDialog")},isValid(){const{company:e="",city:t="",email:o="",phone:a="",address:n="",state:i="",postcode:s="",adminfirst:l="",adminlast:r="",adminemail:u=""}=this.venueInfo,d=o.length&&this.emailReg.test(o);return!e.length&&(this.validationErrors.company="Company name is required"),!t.length&&(this.validationErrors.city="Location is required"),!o.length&&(this.validationErrors.email="Contact email is required"),o.length&&!this.emailReg.test(o)&&(this.validationErrors.email="Invalid email"),!a.length&&(this.validationErrors.phone="Company phone is required"),!n.length&&(this.validationErrors.address="Street address is required"),!i.length&&(this.validationErrors.state="State is required"),!s.length&&(this.validationErrors.postcode="ZIP code is required"),!l.length&&(this.validationErrors.adminfirst="Owner's name is required"),!r.length&&(this.validationErrors.adminlast="Owner's surname is required"),!u.length&&(this.validationErrors.adminemail="Owner's email address is required"),u.length&&!this.emailReg.test(u)&&(this.validationErrors.adminemail="Invalid email"),![e,t,a,n,i,s,l,r,u].some(e=>!e.length)&&d},slug:e=>e.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),closeImageDialog(e){void 0!==e&&(this.venueInfo.logo=e),this.imgDialog.show=!1},async geocodeAddress(){const{address:e="",city:t="",country:o="",state:a="",postcode:n=""}=this.venueInfo,i=e.replace(/\n/g," ").replace(/\b(?:suite|ste|unit|apt|apartment|bldg|building|floor|fl|room|rm)\b\.?\s*#?\s*[\w-]+/gi,"").replace(/#\s*[\w-]+/g,"").replace(/\s{2,}
1/g," ").trim(),s=encodeURIComponent([i,t,a,n,o].filter(Boolean).join(", "));try{return await v.get(`https://nominatim.openstreetmap.org/search?q=${s}&format=json`).then(e=>{if(e.data[0]?.lat)return{lat:+e.data[0].lat,lon:+e.data[0].lon};this.geodataError=!0,this.$notify({group:"notifyMessages",type:"error",title:"Your address is not correct",text:"Please edit the address or contact support for assistance.",duration:3e3})})}catch(l){console.log(l)}},async checkIfPlayerExists(e){return await h(s(u("/watl/players"),r("email"),l(e.toLowerCase()))).then(e=>{let t=e.exists();if(t){let t=e.val(),o=Object.values(t)[0];this.chosenPlayer={...o,".key":Object.keys(t)[0]}}return t})},async setVenueData(e,t){const o={rules:this.venueInfo.rules,company:this.venueInfo.company,email:this.venueInfo.email,phone:this.venueInfo.phone,timezone:this.venueInfo.timezone||"",address:this.venueInfo.address,city:this.venueInfo.city,state:this.venueInfo.state,postcode:this.venueInfo.postcode,country:this.venueInfo.country,logo:this.venueInfo.logo,geocode:this.venueInfo.geocode||"",type:this.venueInfo.type||"watl-affiliated",paymentMethod:"custom"===this.venueInfo.type?"subscription":this.venueInfo.paymentMethod,adminfirst:this.venueInfo.adminfirst,adminlast:this.venueInfo.adminlast,adminemail:this.venueInfo.adminemail,...t};return await p(u(`/venues/${e}`),o)},async editVenue(){const e=this.venueInfo.paymentMethod,t=this.venue.content.paymentMethod;if("invoicing"===e&&"subscription"===t&&this.venueInfo.subscription)if(["active","trialing"].includes(this.venueSubscription.status)){let o=n(1e3*this.venueSubscription.current_period_end).format("MMM D, YYYY H:mm"),a="trialing"===this.venueSubscription.status?"Do you really want to switch to invoicing? If so, your current subscription will end immediately":`Your payment method will switch to Invoicing on ${o}.\n             Until then, your subscription will remain active. After this date, your subscription will be canceled and charges will continue via Invoicing.\n              If you want to return to Subscription in the future, you will need to change the Payment Method to Subscription and re-subscribe.`,i="trialing"===this.venueSubscription.status?"invoicing":"subscription";f(()=>{this.setVenueData(this.venueInfo[".key"],{status:this.venueInfo.status,customer:this.venueInfo.customer||"",paymentMethod:i}).then(()=>{this.checkPaymentMethodChange(e,t),this.geodataError||this.savedSuccessfullyDialog()})},a,"warning","Confirm",!1,()=>{this.venueInfo.paymentMethod=t})}else this.setVenueData(this.venueInfo[".key"],{status:this.venueInfo.status,customer:this.venueInfo.customer||""}).then(()=>{this.geodataError||this.savedSuccessfullyDialog()}).catch(e=>{this.savingErrorDialog(),this._console(e)});else this.setVenueData(this.venueInfo[".key"],{status:this.venueInfo.status,customer:this.venueInfo.customer||""}).then(()=>{this.geodataError||this.savedSuccessfullyDialog()}).catch(e=>{this.savingErrorDialog(),this._console(e)})},saveNewVenue(){let e=this.slug(this.venueInfo.company+"-"+this.venueInfo.city);const t="Disabled"===this.venueInfo.status?"New":this.venueInfo.status;this.setVenueData(e,{status:t,stripeProfile:!1}).then(async()=>{const t={first:this.venueInfo.adminfirst,last:this.venueInfo.adminlast,email:this.venueInfo.adminemail,venue:e,venueAccess:"owner"};await this.checkIfPlayerExists(this.venueInfo.adminemail)||this.existingPlayer&&this.existingPlayerCode?(this.setOwnerVenueAccess(e,this.chosenPlayer[".key"]),R({".key":this.chosenPlayer[".key"],venueAccess:"owner",email:this.chosenPlayer.email},e),this.$notify({group:"notifyMessages",type:"success",title:"Venue created successfully.",text:"User with current email already exists, please check appropriate access to the venue.",duration:5e3})):Z(t,{venues:{[e]:"owner"},zipcode:(this.venueInfo.postcode||"").trim()}).then(t=>{this.$notify({group:"notifyMessages",type:"success",title:"Venue created successfully",text:"Active"===this.venueInfo.status?"Owner can check his email to proceed":"After activation owner will receive email to proceed",duration:5e3}),this.setOwnerVenueAccess(e,t.key)}),"Active"===this.venueInfo.status&&this.sendEmailLinkToOwner()}).then(()=>{this.geodataError||this.savedSuccessfullyDialog()}).catch(e=>{this.savingErrorDialog(),this._console(e)})},async save(){this.isValid()&&(this.geodataError=!1,this.venueInfo.geocode=await this.geocodeAddress(),this.venueInfo.geocode?.lat&&this.venueInfo.geocode?.lon&&(this.venueInfo.timezone=T(this.venueInfo.geocode.lat,this.venueInfo.geocode.lon)),"new"===this.venue.type?this.saveNewVenue():this.editVenue())},checkPaymentMethodChange(e,t){let o={email:this.venueInfo.adminemail,name:`${this.venueInfo.adminfirst} ${this.venueInfo.adminlast}`};"invoicing"===e&&"subscription"===t&&(g(e,o),this.venueInfo.subscription&&("trialing"===this.venueStore.subscription.status?y(this.venueInfo.subscription).then(e=>{this.venueStore.subscription={},I(u(`/venues${this.venuePath}
1/subscription`))}):b(this.venueInfo.subscription,{cancel_at_period_end:!0}).then(e=>{this.venueStore.setVenueSubscription(e)}))),"subscription"===e&&"invoicing"===t&&g(e,o)},savedSuccessfullyDialog(){f(this.closeHandler,"Venue details were saved successfully!","info","Ok",!0)},savingErrorDialog(){f(this.closeHandler,"Saving error. Please contact support for assistance or try again later.","error","Ok")},sendEmailLinkToOwner(){v.post("https://us-central1-forged-7adb7.cloudfunctions.net/venueSignUp/sendEmail",{backUrl:"https://axethrowing.org",email:this.venueInfo.adminemail,adminName:`${this.venueInfo.adminfirst} ${this.venueInfo.adminlast}`,venueName:this.venueInfo.company}).catch(e=>{this.error=e})},activateVenue(e=void 0){let t=Date.now();h(u("/venues")).then(function(e){let o=Object.keys(e.val()).length;p(u(`/venues/${this.venueInfo[".key"]}`),{id:o,activated:t})}),p(u(`/venues/${this.venueInfo[".key"]}`),{status:"Active"}).then(t=>{this.$emit("closeDialog"),e?(console.log("!existedPlayer else"),this.generalStore.showSnackBar({text:"Venue was successfully activated",color:"success",timeout:4500,show:!0}),this.setPlayerVenueAccess(this.venueInfo[".key"],e.key),R({email:e.email,venueAccess:"owner",".key":e.key},this.venueInfo[".key"])):this.createNewPlayer(this.venueInfo),this.sendEmailLinkToOwner()})},createNewPlayer(e){const t={first:e.adminfirst,last:e.adminlast,email:e.adminemail.toLowerCase(),venue:e.id||e[".key"],venueAccess:"owner"};Z(t,{venues:{[e[".key"]||e.id]:"owner"},zipcode:(e.postcode||"").trim()}).then(t=>{this.setPlayerVenueAccess(e[".key"]||e.id,t.key),window.localStorage.setItem("emailForSignIn",e.adminemail)})},setPlayerVenueAccess(e,t){c(m(`/venues/${e}/access/${t}`),{admin:!0,host:!0,master:!1,owner:!0})},activate(){const e=s(u("/watl/players"),r("email"),l(this.venueInfo.adminemail));d(e,e=>{if(e.exists()){let t=Object.keys(e.val())[0],o=Object.values(e.val())[0];this.activateVenue({key:t,email:o.email})}else this.activateVenue()},{onlyOnce:!0})}},mounted(){"subscription"===this.venueInfo.paymentMethod&&this.venueInfo.subscription&&this.getVenueSubscription()}},[["render",function(e,t,o,a,n,i){const s=$("v-col"),l=$("v-radio"),r=$("v-radio-group"),u=$("v-btn"),d=$("v-row"),c=$("custom-input"),m=$("v-checkbox"),h=$("v-card-text"),p=$("imageURLreturn"),v=$("v-dialog"),f=$("v-card-title"),g=$("v-divider"),y=$("v-spacer"),I=$("v-card-actions"),b=$("v-card");return Y(),D("div",null,[E("form",{id:"formVenue",onSubmit:t[30]||(t[30]=j(e=>i.save(),["prevent"]))},[U(h,{style:{color:"var(--theme-text)"}},{default:W(()=>[U(d,{class:"justify-center"},{default:W(()=>[U(s,{cols:e.$vuetify.display.xs?"12":"3",class:"hidden-xs-only offset-xs1"},{default:W(()=>[U(d,null,{default:W(()=>[U(s,{cols:"12",class:"pa-3"},{default:W(()=>[t[34]||(t[34]=E("div",{class:"input-label mb-1"},"Company Logo",-1)),E("div",{class:"logo-container",onClick:t[0]||(t[0]=e=>n.imgDialog.show=!0)},[A(E("img",{src:n.venueInfo.logo,alt:"logo"},null,8,K),[[O,""!==n.venueInfo.logo]]),A(E("div",null," Click to Upload Image ",512),[[O,""===n.venueInfo.logo]])])]),_:1}),M("",!0),"master"===o.view?(Y(),C(s,{key:1,cols:"12",class:"px-3"},{default:W(()=>[t[37]||(t[37]=E("div",{class:"input-label"},"Status",-1)),"New"===n.venueInfo.status?(Y(),C(u,{key:0,class:"error payments__btn payments__btn--pay",disabled:n.isShowDialogError,onClick:t[2]||(t[2]=j(e=>i.activate(),["prevent"]))},{default:W(()=>[...t[36]||(t[36]=[X("Activate venue",-1)])]),_:1},8,["disabled"])):(Y(),D("div",G,[U(r,{"hide-details":"",modelValue:n.venueInfo.status,"onUpdate:modelValue":t[3]||(t[3]=e=>n.venueInfo.status=e)},{default:W(()=>[(Y(),D(L,null,q(["Active","Disabled"],e=>U(l,{key:e,label:e,value:e},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]))]),_:1})):M("",!0)]),_:1})]),_:1},8,["cols"]),U(s,{cols:"12",sm:"7"},{default:W(()=>[U(d,{style:{"margin-top":"30px"}},{default:W(()=>[U(s,{cols:"12",class:"pa-2"},{default:W(()=>[t[39]||(t[39]=E("div",{class:"input-label"},"Venue type *",-1)),A(E("select",{required:"new"===o.venue.type,"onUpdate:modelValue":t[4]||(t[4]=e=>n.venueInfo.type=e),class:"formSelect",disabled:!["master","commissioner"].includes(a.userStore.siteAccess)},[...t[38]||(t[38]=[E("option",{value:"watl-affiliated"},"WATL",-1),E("option",{value:"custom"}
1,"Unaffiliated",-1)])],8,Q),[[B,n.venueInfo.type]])]),_:1}),U(s,{cols:"12",class:"pa-2"},{default:W(()=>[U(c,{"top-text":"Company Name*",modelValue:n.venueInfo.company,"onUpdate:modelValue":t[5]||(t[5]=e=>n.venueInfo.company=e),modelModifiers:{trim:!0},disabled:"edit"===o.venue.type,bottomWarning:n.validationErrors.company,onKeyUp:t[6]||(t[6]=e=>n.validationErrors.company="")},null,8,["modelValue","disabled","bottomWarning"])]),_:1}),U(s,{cols:"12",class:"pa-2"},{default:W(()=>[U(c,{"top-text":"Street Address*",placeholder:"Main Street, 123",modelValue:n.venueInfo.address,"onUpdate:modelValue":t[7]||(t[7]=e=>n.venueInfo.address=e),modelModifiers:{trim:!0},bottomWarning:n.validationErrors.address},null,8,["modelValue","bottomWarning"])]),_:1}),U(s,{cols:"12",sm:"6",class:"pa-2"},{default:W(()=>[t[40]||(t[40]=E("div",{class:"input-label"},"Country",-1)),A(E("select",{"onUpdate:modelValue":t[8]||(t[8]=e=>n.venueInfo.country=e),class:"formSelect"},[(Y(!0),D(L,null,q(i.getCountries,e=>(Y(),D("option",{key:e.code},H(e.name),1))),128))],512),[[B,n.venueInfo.country]])]),_:1}),U(s,{cols:"12",sm:"6",class:"pa-2"},{default:W(()=>[U(c,{"top-text":"State/Province/Region*",placeholder:"State/Province/Region",onInput:t[9]||(t[9]=e=>i.stringHandler(e,"state")),modelValue:n.venueInfo.state,"onUpdate:modelValue":t[10]||(t[10]=e=>n.venueInfo.state=e),modelModifiers:{trim:!0},bottomWarning:n.validationErrors.state,onKeyUp:t[11]||(t[11]=e=>n.validationErrors.state="")},null,8,["modelValue","bottomWarning"])]),_:1}),U(s,{cols:"12",sm:"6",class:"pa-2"},{default:W(()=>[U(c,{"top-text":"City*",placeholder:"City",modelValue:n.venueInfo.city,"onUpdate:modelValue":t[12]||(t[12]=e=>n.venueInfo.city=e),modelModifiers:{trim:!0},onInput:t[13]||(t[13]=e=>i.stringHandler(e,"city")),bottomWarning:n.validationErrors.city,onKeyUp:t[14]||(t[14]=e=>n.validationErrors.city="")},null,8,["modelValue","bottomWarning"])]),_:1}),U(s,{cols:"12",sm:"6",class:"pa-2"},{default:W(()=>[U(c,{"top-text":"ZIP/Postal code*",placeholder:"ZIP/Postal code",modelValue:n.venueInfo.postcode,"onUpdate:modelValue":t[15]||(t[15]=e=>n.venueInfo.postcode=e),modelModifiers:{trim:!0},onInput:i.postcodeHandler,bottomWarning:n.validationErrors.postcode,onKeyUp:t[16]||(t[16]=e=>n.validationErrors.postcode="")},null,8,["modelValue","onInput","bottomWarning"])]),_:1}),U(s,{cols:"12",class:"px-2 pb-2"},{default:W(()=>[t[41]||(t[41]=X(" Your URL: ",-1)),n.venueInfo[".key"]?(Y(),D("span",{key:0,onClick:t[17]||(t[17]=t=>e.$router.push(`/${n.venueInfo[".key"]}`)),class:"venue-path text-primary text--lighten-3"},H(i.myPath)+"/"+H(n.venueInfo[".key"]),1)):(Y(),D("span",{key:1,onClick:t[18]||(t[18]=t=>e.$router.push(i.venuePath)),class:"venue-path text-primary text--lighten-3"},H(i.myPath)+"/"+H(i.slug((n.venueInfo.company||"company")+"-"+(n.venueInfo.city||"location"))),1))]),_:1}),U(s,{cols:"12",sm:"6",class:"pa-2"},{default:W(()=>[U(c,{"top-text":"Contact Email*",modelValue:n.venueInfo.email,"onUpdate:modelValue":t[19]||(t[19]=e=>n.venueInfo.email=e),modelModifiers:{trim:!0},bottomWarning:n.validationErrors.email,onKeyUp:t[20]||(t[20]=e=>n.validationErrors.email="")},null,8,["modelValue","bottomWarning"])]),_:1}),U(s,{cols:"12",sm:"6",class:"pa-2 phone"},{default:W(()=>[E("span",J,H(i.phonePlaceholder?.code),1),U(c,{class:"phoneInput","top-text":"Phone Number*",modelValue:n.venueInfo.phone,"onUpdate:modelValue":t[21]||(t[21]=e=>n.venueInfo.phone=e),modelModifiers:{trim:!0},bottomWarning:n.validationErrors.phone,placeholder:i.phonePlaceholder?.mask||"XXX XXX XX XX",onInput:t[22]||(t[22]=e=>n.venueInfo.phone=i.applyPhoneMask(e.target.value,"(XXX) XXX XXXX"))},null,8,["modelValue","bottomWarning","placeholder"])]),_:1}),U(s,{cols:"12",class:"pa-2"},{default:W(()=>[t[43]||(t[43]=E("div",{class:"input-label"},"Payment method",-1)),A(E("select",{"onUpdate:modelValue":t[23]||(t[23]=e=>n.venueInfo.paymentMethod=e),class:"formSelect"},["custom"!==n.venueInfo.type?(Y(),D("option",ee," Invoicing ")):M("",!0),t[42]||(t[42]=E("option",{value:"subscription"},"Subscription",-1))],512),[[B,n.venueInfo.paymentMethod]]),"subscription"===n.venueInfo.paymentMethod&&n.venueSubscription.cancel_at_period_end?(Y(),D("div",te,[E("p",null,"Your current subscription will end at "+H(i.dayjs(1e3*n.venueSubscription.current_period_end).format("MMM D, YYYY H:mm")),1)])):M("",!0)]),_:1}),U(s,{cols:"12",class:"pa-2"},{default:W(()=>["master"===a.userStore.siteAccess?(Y(),C(c,{key:0,"top-text":"Stripe Billing Profile:",modelValue:n.venueInfo.customer,"onUpdate:modelValue":t[24]||(t[24]=e=>n.venueInfo.customer=e),modelModifiers:{trim:!0}},null,8,["modelValue"])):M("",!0)]),_:1}),U(s,{cols:"12"},{default:W(()=>[...t[44]||(t[44]=[E("h3",{class:"text-center pt-2"},"Owner",-1)])]),_:1}),"new"===o.venue.type?(Y(),D(L,{key:0},[U(s,{cols:"12",class:"pa-3"},{default:W(()=>
1[U(m,{dark:"",color:"var(--clr-blue)",label:"Choose existing player","false-value":!1,"true-value":!0,modelValue:n.existingPlayer,"onUpdate:modelValue":t[25]||(t[25]=e=>n.existingPlayer=e)},null,8,["modelValue"])]),_:1}),n.existingPlayer?(Y(),C(s,{key:0,cols:"12"},{default:W(()=>[U(d,{class:"align-end"},{default:W(()=>[U(s,{cols:"12",sm:"4",class:"pa-0"},{default:W(()=>[U(c,{"top-text":"Player code",variant:"outlined",maxlength:4,placeholder:"Enter player code (ex.XY12)",modelValue:n.existingPlayerCode,"onUpdate:modelValue":t[26]||(t[26]=e=>n.existingPlayerCode=e),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1}),U(s,{cols:"12",sm:"2",class:N(["pa-0 text-center",{"mt-5":e.$vuetify.display.xs}])},{default:W(()=>[U(u,{onClick:i.setOwnerForVenue,variant:"outlined",class:"my-0",disabled:4!==n.existingPlayerCode.length},{default:W(()=>[...t[45]||(t[45]=[X(" find player ",-1)])]),_:1},8,["onClick","disabled"])]),_:1},8,["class"])]),_:1})]),_:1})):M("",!0)],64)):M("",!0),U(s,{cols:"12",sm:"6",class:"pa-2"},{default:W(()=>[U(c,{"top-text":"First Name",modelValue:n.venueInfo.adminfirst,"onUpdate:modelValue":t[27]||(t[27]=e=>n.venueInfo.adminfirst=e),modelModifiers:{trim:!0},bottomWarning:n.validationErrors.adminfirst},null,8,["modelValue","bottomWarning"])]),_:1}),U(s,{cols:"12",sm:"6",class:"pa-2"},{default:W(()=>[U(c,{"top-text":"Last Name",modelValue:n.venueInfo.adminlast,"onUpdate:modelValue":t[28]||(t[28]=e=>n.venueInfo.adminlast=e),modelModifiers:{trim:!0},bottomWarning:n.validationErrors.adminlast},null,8,["modelValue","bottomWarning"])]),_:1}),U(s,{cols:"12",class:"py-2"},{default:W(()=>[U(c,{class:"py-2","top-text":"Email",modelValue:n.venueInfo.adminemail,"onUpdate:modelValue":t[29]||(t[29]=e=>n.venueInfo.adminemail=e),modelModifiers:{trim:!0},bottomWarning:n.validationErrors.adminemail},null,8,["modelValue","bottomWarning"])]),_:1}),U(s,null,{default:W(()=>[U(u,{color:"primary",class:"btn-width ma-0 mt-4",form:"formVenue",type:"submit"},{default:W(()=>[...t[46]||(t[46]=[X("Save",-1)])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})],32),n.imgDialog.show?(Y(),C(v,{key:0,modelValue:n.imgDialog.show,"onUpdate:modelValue":t[31]||(t[31]=e=>n.imgDialog.show=e),scrollable:"",width:this.imgDialog.windowWidth},{default:W(()=>[U(p,{currentImage:n.imgDialog.currentImage,ratioWidth:n.imgDialog.ratioWidth,ratioHeight:n.imgDialog.ratioHeight,updateDBlocation:n.imgDialog.updateDBlocation,updateDBitem:n.imgDialog.updateDBitem,updateStorageLocation:n.imgDialog.updateStorageLocation,saveWidth:n.imgDialog.saveWidth,saveFormat:n.imgDialog.saveFormat,onCloseImageDialog:i.closeImageDialog},null,8,["currentImage","ratioWidth","ratioHeight","updateDBlocation","updateDBitem","updateStorageLocation","saveWidth","saveFormat","onCloseImageDialog"])]),_:1},8,["modelValue","width"])):M("",!0),U(v,{modelValue:n.isShowDialogError,"onUpdate:modelValue":t[33]||(t[33]=e=>n.isShowDialogError=e),width:"500"},{default:W(()=>[U(b,null,{default:W(()=>[U(f,{class:"text-h5 red darken-1 text-white"},{default:W(()=>[...t[47]||(t[47]=[X(" Error ",-1)])]),_:1}),U(h,null,{default:W(()=>[...t[48]||(t[48]=[X(" A user with this email already exists. Please contact customer support. ",-1)])]),_:1}),U(g),U(I,null,{default:W(()=>[U(y),U(u,{color:"primary",variant:"text",onClick:t[32]||(t[32]=e=>n.isShowDialogError=!1)},{default:W(()=>[...t[49]||(t[49]=[X(" close ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}],["__scopeId","data-v-05285783"]]))}}});

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.