PageSourceSearch

https://axethrowing.org/assets/addPlayer-legacy-xjJT52wi.js

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

1System.register(["./imageURLreturn-legacy-Bzwbdrej.js","./index-legacy-BtJkYB7P.js","./playerCode-legacy-BsyhQBjI.js","./customInput-legacy-coPiPdsV.js","./createPlayer-legacy-NAqMWKvi.js","./zipcodeInput-legacy-QE9HqmuO.js","./setCustomClaims-legacy-C4iEWiqQ.js","./croppie-legacy-CdXO-5LP.js"],function(e,a){"use strict";var t,o,l,i,s,n,r,c,d,p,y,u,h,m,f,g,v,I,b,w,k,x,C,_,P,D,S,E,V,A,U,L,W,X,T,$,B,j,H,z,F,R,K,M,q,Q,Z;return{setters:[e=>{t=e.i},e=>{o=e._,l=e.al,i=e.bO,s=e.G,n=e.a2,r=e.bM,c=e.bL,d=e.E,p=e.b$,y=e.Q,u=e.R,h=e.S,m=e.N,f=e.b_,g=e.a,v=e.h,I=e.M,b=e.aT,w=e.ad,k=e.aW,x=e.aV,C=e.bJ,_=e.bK,P=e.u,D=e.j,S=e.k,E=e.e,V=e.m,A=e.q,U=e.f,L=e.n,W=e.r,X=e.x,T=e.t,$=e.z,B=e.C,j=e.a0,H=e.F,z=e.v,F=e.y,R=e.g,e.Z},e=>{K=e.p},e=>{M=e.C},e=>{q=e.c},e=>{Q=e.i},e=>{Z=e.c},null],execute:function(){var a=document.createElement("style");a.textContent=".select[data-v-357a7146]{color:var(--theme-primary)!important}.select .select__item[data-v-357a7146]{color:var(--theme-primary-text)}.select optgroup[data-v-357a7146]{color:#000}#addPlayer[data-v-357a7146]{background:var(--theme-dialog);color:var(--theme-dialog-text);height:100%;width:100%;overflow-y:auto}.image[data-v-357a7146]{width:100%;max-width:300px;border-radius:4px;cursor:pointer}.photo[data-v-357a7146]{position:relative;text-align:center}.add-photo[data-v-357a7146]{text-align:center;border-radius:50%;opacity:.9;margin-top:20px}.v-messages[data-v-357a7146]{color:#fff!important}#genderButtons .v-icon[data-v-357a7146],#genderButtons .v-label[data-v-357a7146]{color:#6e7788!important}.playerInfo[data-v-357a7146]{display:flex;justify-content:center}@media screen and (max-width: 600px){.playerInfo[data-v-357a7146]{flex-direction:column}}.bottomText[data-v-357a7146]{position:absolute;bottom:10px;left:12px;color:red;transform:translateY(100%);line-height:1}\n/*$vite$:1*/",document.head.appendChild(a);const N={id:"addPlayer"},O={key:0},G={key:1},J={key:2},Y={key:3},ee={class:"py-1 photo"},ae=["src"],te=["src"],oe={key:3,class:"text-center my-3",style:{color:"white","font-size":"18px"}},le={class:"overflow-hidden"},ie={id:"form"},se=["value"],ne=["value"],re={class:"d-flex"},ce=["disabled"],de={label:"Other countries"},pe=["data-countryCode","value"],ye=["value"],ue=["disabled"],he={key:0,class:"select__item",value:"professional"},me={key:0,class:"bottomText"},fe=["disabled"],ge={key:0,class:"select__item",value:"professional"},ve={key:0,class:"bottomText"},Ie={id:"genderButtons"},be=["disabled"];e("default",o({name:"addPlayer",props:{player:{type:Object,default:()=>{}},source:String,view:String},emits:["closeDialog","createdPlayer"],components:{CustomInput:M,imageURLreturn:t},mixins:[K],inject:["postHog"],data:()=>({newKey:"",playerInfo:null,newPic:null,imgDialog:{show:!1,windowWidth:300,currentImage:"",updateDBlocation:"/watl/players/",updateDBitem:"pic",updateStorageLocation:"/global/watl/players/",ratioWidth:"1",ratioHeight:"1",saveWidth:"300",saveFormat:"jpeg"},selectedCountry:0,selectedState:0,venues:{},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:{email:"",first:"",last:"",alias:"",division:"",zipcode:""},saveDisable:!1}),async created(){await this.getVenues()},setup(){const e=P(),a=D();return{venueStore:e,generalStore:S(),userStore:a}},computed:{playerLink(){return`https://axethrowing.org/player/${this.playerInfo.code}`},getCountiesInfo:()=>C,playerHasExtendedAccess(){return["master","commissioner"].includes(this.userStore.siteAccess)},isCryptedPhone(){return!!(this.playerInfo&&this.playerInfo.phone&&"string"==typeof this.playerInfo.phone&&this.playerInfo.phone.length>20)},phonePlaceholder(){if(this.playerInfo.countryCode){const e=C.find(e=>e.code===this.playerInfo.countryCode);if(e)return _(e.iso)}return{code:"+1",mask:"(XXX) XXX XXXX"}},countries:()=>x,states(){return k[this.selectedCountry]?k[this.selectedCountry].split("|"):[]},isThisMobile(){let e=navigator.userAgent;return/iphone|ipad/i.test(e)||/Macintosh/i.test(e)&&navigator.maxTouchPoints}},watch:{player:{immediate:!0,handler(e){e.phone&&"string"==typeof e.phone&&e.phone.length>
120&&(e.phone=c.AES.decrypt(e.phone,"dQgajTvjSFD8s5HdUAsRxbjTKdhQek").toString(c.enc.Utf8)),this.playerInfo={division:"new"===this.player.type?"":"amateur",...e,rating:e.rating?e.rating:250,ratingDeviation:e.ratingDeviation?e.ratingDeviation:150,phone:e.phone?e.phone:""},e.countryCode||(e.countryCode=1),"new"!==this.player.type&&e.advanced&&!e.division&&(this.playerInfo.division="amateur"),e.country&&(this.selectedCountry=e.country),e.state&&(this.selectedState=e.state)}}},mounted(){"new"===this.player.type&&"access"!==this.view&&"watl"!==this.$route.params.locationSlug&&(this.playerInfo.venue=this.$route.params.locationSlug)},methods:{applyPhoneMask:l,ratingCeilingFloorCheck(){"professional"===this.playerInfo.division?(this.playerInfo.rating<550&&(this.playerInfo.rating=550),this.playerInfo.rating>1200&&(this.playerInfo.rating=1200)):["amateur","recreational"].includes(this.playerInfo.division)&&(this.playerInfo.rating<100&&(this.playerInfo.rating=100),this.playerInfo.rating>1200&&(this.playerInfo.rating=1200))},ratingInputHandler(e){let a=e.target.value.replace(/[^0-9.,]/g,"").replace(",",".");/^\d*\.{0,1}\d{0,2}$/.test(a)||(a=a.slice(0,-1)),a.length>1&&"0"===a[0]&&(a=a.substring(1)),this.playerInfo.rating=a},isValid(){const{first:e="",last:a="",email:t="",division:o="",wktlDivision:l=""}=this.playerInfo,i=t.length&&this.emailReg.test(t);!e.length&&(this.validationErrors.first="First name is required"),!a.length&&(this.validationErrors.last="Last name is required"),!t.length&&(this.validationErrors.email="Email is required"),t.length&&!this.emailReg.test(t)&&(this.validationErrors.email="Invalid email"),!o.length&&(this.validationErrors.division="WATL Division is required"),!l.length&&(this.validationErrors.wktlDivision="WKTL Division is required");const s=(this.playerInfo.zipcode||"").trim();let n=!0;return s.length?(n=Q(s),this.validationErrors.zipcode=n?"":"Please enter a valid zipcode / postal code"):(n=!1,this.validationErrors.zipcode="Zipcode / postal code is required"),Boolean(e.length&&a.length&&i&&o.length&&n)},openPage(e,a){a&&window.open(e+a,"_blank").focus()},async deletePlayer(){d(I(`/venues/${this.venueStore.venue.locationSlug}/access/${this.playerInfo[".key"]}`),{master:!1,admin:!1,host:!1});try{let e=this.venueStore.venue.locationSlug;const a=await b(this.playerInfo.email),{venues:t={}}=a,o=Object.keys(t);if(o.length>1&&t[e]&&t[e].homeVenue){let a=o.filter(a=>a!==e)[0];t[a]={homeVenue:!0,...t[a]}}delete t[e];const l={...a.siteAccess&&{siteAccess:a.siteAccess},...a.master&&{siteAccess:a.master},venues:t};w.post("https://us-central1-forged-7adb7.cloudfunctions.net/userCustomClaims/setClaims",{uid:a.uid,customClaim:l}).then(()=>{d(s(`/watl/players/${this.playerInfo[".key"]}`),{accessUpdated:!0})})}catch(e){console.log(`no firebase account for ${this.playerInfo[".key"]} `)}d(s(`/watl/players/${this.playerInfo[".key"]}`),{venue:"no-venue"}).then(()=>{this.$emit("closeDialog"),this.generalStore.dialogAddPlayer=!1})},confitmDeletePlayer(){v(this.deletePlayer,`Are you sure you want to delete ${this.playerInfo.first} ${this.playerInfo.last}?`,"warning")},sendEmailLink(){let e={url:"https://axethrowing.org/login",handleCodeInApp:!0};f(g,this.playerInfo.email,e).then(()=>{window.localStorage.setItem("emailForSignIn",this.playerInfo.email),this.generalStore.showSnackBar({text:"Welcome email sent",color:"success",timeout:1500,show:!0})}).catch(function(e){console.log(e)})},closeImageDialog(e){void 0!==e&&(this.newPic=e),this.imgDialog.show=!1},updateImage(e){this.imgDialog={show:!0,windowWidth:300,currentImage:e.pic,updateDBlocation:"/watl/players/"+this.playerInfo[".key"],updateDBitem:"pic",updateStorageLocation:"/global/watl/players/"+this.playerInfo[".key"]+"/",ratioWidth:"1",ratioHeight:"1",saveWidth:"300",saveFormat:"jpeg"}},checkIfEmailExists(e){if(!this.isValid())return;this.saveDisable=!0;const a="new"!==this.player.type&&this.player.email!==this.playerInfo.email.toLowerCase();if(void 0===this.playerInfo[".key"]||a){const a=y(s("/watl/players"),h("email"),u(this.playerInfo.email.toLowerCase()));m(a,a=>{a.exists()?(alert("The email address already exists.  Please choose a different email address, or update the existing player account."),this.saveDisable=!1,this.playerInfo.email=""):this.addPlayer(e)},{onlyOnce:!0})}else this.addPlayer(e)},addPlayer(e){if(!this.haveUrl())if(void 0===this.playerInfo[".key"]){void 0===this.playerInfo.country&&(this.playerInfo.country=""),void 0===this.playerInfo.state&&(this.playerInfo.state="");const a={first:this.playerInfo.first,last:this.playerInfo.last,alias:this.playerInfo.alias||this.playerInfo.first+" "+this.playerInfo.last,email:this.playerInfo.email,venue:this.venueStore.venue.locationSlug,pic:this.newPic||"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/common%2Fperson.svg?alt=media&token=aa915d07-87ec-4eb0-8fbb-5f9818537555",division:this.playerInfo.division||"amateur",wktlDivision:this.playerInfo.wktlDivision||"recreational"},t={gender:this.playerInfo.gender||"",facebook:this.playerInfo.facebook||"",instagram:this.playerInfo.instagram||"",phone:this.playerInfo.phone?c.AES.encrypt
1(this.playerInfo.phone,"dQgajTvjSFD8s5HdUAsRxbjTKdhQek").toString():"",countryCode:this.playerInfo.countryCode||"",country:this.selectedCountry,state:this.selectedState,zipcode:(this.playerInfo.zipcode||"").trim(),rating:this.playerInfo.rating,ratingDeviation:this.playerInfo.ratingDeviation};q(a,t).then(a=>{this.postHog.capture("addPlayer",{code:a.code,email:this.playerInfo.email.toLowerCase(),clickedBy:this.userStore.user[".key"]}),this.savePlayerCode(a.key,a.code),d(s(`/${this.venueStore.venue.rules}/playersEmails/${a.key}`),{email:this.playerInfo.email.toLowerCase()}),"includePlayer"===e?(this.$emit("createdPlayer",a.key),this.newPic="https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/common%2Fperson.svg?alt=media&token=aa915d07-87ec-4eb0-8fbb-5f9818537555"):this.close(),this.generalStore.showSnackBar({text:"New Player Saved",color:"success",timeout:1500,show:!0})}).catch(e=>{this._console(e)})}else{void 0===this.playerInfo.country&&(this.playerInfo.country=""),void 0===this.playerInfo.state&&(this.playerInfo.state=""),"watl"===this.playerInfo.venue&&(this.playerInfo.venue=""),this.playerInfo.venue&&d(s(`/watl/players/${this.playerInfo[".key"]}`),{venue:this.playerInfo.venue}),this.postHog.capture("editPlayer",{code:this.playerInfo.code,email:this.playerInfo.email.toLowerCase(),clickedBy:this.userStore.user[".key"]});const a=this.playerInfo.phone?c.AES.encrypt(this.playerInfo.phone,"dQgajTvjSFD8s5HdUAsRxbjTKdhQek").toString():"";d(s(`/watl/players/${this.playerInfo[".key"]}`),{first:this.playerInfo.first,firstLowCase:this.playerInfo.first.toLowerCase(),last:this.playerInfo.last,lastLowCase:this.playerInfo.last.toLowerCase(),email:this.playerInfo.email.toLowerCase(),alias:this.playerInfo.alias,gender:this.playerInfo.gender||"",facebook:this.playerInfo.facebook||"",instagram:this.playerInfo.instagram||"",countryCode:+this.playerInfo.countryCode||"",phone:a,country:this.selectedCountry,state:this.selectedState,zipcode:(this.playerInfo.zipcode||"").trim(),pic:this.newPic||this.playerInfo.pic,division:this.playerInfo.division||"amateur",wktlDivision:this.playerInfo.wktlDivision||"recreational",rating:+this.playerInfo.rating}).then(async()=>{this.playerInfo.email.toLowerCase()!==this.player.email&&await this.checkFirebaseAccountExists(this.player.email)&&p(this.player.email,this.playerInfo.email.toLowerCase()).catch(()=>
1{this.$notify({group:"notifyMessages",type:"warn",title:"Error",text:"Email update failed",duration:5e3})}),this.playerInfo.venue!==this.player.venue&&await this.checkFirebaseAccountExists(this.player.email)&&(console.log("changeHomeVenue",this.player.email,this.playerInfo.venue),Z(this.player.email,this.playerInfo.venue)),"includePlayer"!==e&&this.close(!0)}).catch(e=>{this._console(e)})}this.generalStore.setPlayers({venue:this.venueStore.venue.locationSlug}),this.saveDisable=!1},async checkFirebaseAccountExists(e){const{userExists:a=!1}=await r(e);return a},savePlayerCode(e,a){n(s(`/codes/${e}`),a)},getVenues(){this.$databaseBind("venues",s("/venues"))},close(e=!1){this.generalStore.dialogAddPlayer=!1,this.newPic=null,this.$emit("closeDialog",e)},clearInput(e){this.validationErrors[e]="","alias"===e&&this.playerInfo[e]?.length&&(this.playerInfo[e]=this.playerInfo[e].replace(/\W|_/g,"")),["first","last"].includes(e)&&this.playerInfo[e]?.length&&(this.playerInfo[e]=this.playerInfo[e].replace(/\d+/,""))},clearURL(){this.playerInfo.facebook?.length&&(this.playerInfo.facebook=this.playerInfo.facebook.replace(/[^A-Za-z0-9-._/]+/g,"")),this.playerInfo.instagram?.length&&(this.playerInfo.instagram=this.playerInfo.instagram.replace(/[^A-Za-z0-9-._/]+/g,""))},clearPhone(){this.playerInfo.phone=i(this.playerInfo.phone)},openPlayerProfile(e){window.open("https://axethrowing.org/player/"+e,"_blank")},haveUrl(){const e=/(https?:\/\/[^\s]+)/gm;return!!(this.playerInfo.first.match(e)||this.playerInfo.last.match(e)||this.playerInfo.alias?.match(e))&&(alert("The First Name, Last Name and Alias can't contain URL. Please change it."),!0)}}},[["render",function(e,a,t,o,l,i){const s=W("v-icon"),n=W("v-btn"),r=W("v-toolbar-title"),c=W("v-spacer"),d=W("v-toolbar"),p=W("v-card-text"),y=W("v-col"),u=W("custom-input"),h=W("v-row"),m=W("v-radio"),f=W("v-radio-group"),g=W("imageURLreturn"),v=W("v-dialog");return R(),E("div",N,["includePlayer"!==t.source?(R(),V(d,{key:0},{default:L(()=>[U(n,{icon:"",variant:"outlined",class:"closeAbsolute",onClick:a[0]||(a[0]=e=>i.close())},{default:L(()=>[U(s,null,{default:L(()=>[...a[39]||(a[39]=[X("mdi-close",-1)])]),_:1})]),_:1}),U(r,null,{default:L(()=>["new"===t.player.type&&"access"!==t.view?(R(),E("span",O,"Add Player")):A("",!0),"new"!==t.player.type&&"access"!==t.view?(R(),E("span",G,"Edit Player")):A("",!0),"new"===t.player.type&&"access"===t.view?(R(),E("span",J,"Add Player")):A("",!0),"new"!==t.player.type&&"access"===t.view?(R(),E("span",Y,"Edit Player")):A("",!0)]),_:1}),U(c)]),_:1})):A("",!0),U(h,{class:"playerInfo"},{default:L(()=>[U(y,{sm:"3",class:"offset-sm2 mt-3"},{default:L(()=>[U(p,{style:{color:"var(--theme-text)"}},{default:L(()=>[T("div",ee,[null===l.newPic&&void 0===l.playerInfo.pic?(R(),E("img",{key:0,src:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/common%2Fperson.svg?alt=media&token=aa915d07-87ec-4eb0-8fbb-5f9818537555",alt:"",class:"image icon-shadow",onClick:a[1]||(a[1]=e=>i.updateImage(l.playerInfo))})):A("",!0),null===l.newPic&&void 0!==l.playerInfo.pic?(R(),E("img",{key:1,src:l.playerInfo.pic,alt:"",class:"image icon-shadow",onClick:a[2]||(a[2]=e=>i.updateImage(l.playerInfo))},null,8,ae)):A("",!0),null!==l.newPic?(R(),E("img",{key:2,src:l.newPic,alt:"",class:"image icon-shadow",onClick:a[3]||(a[3]=e=>i.updateImage(l.playerInfo))},null,8,te)):A("",!0),l.playerInfo.code?(R(),E("div",oe,[T("strong",null,$(l.playerInfo.code),1)])):A("",!0),l.playerInfo.code?(R(),E("div",{key:4,class:"text-center my-3",onClick:a[4]||(a[4]=e=>i.openPlayerProfile(l.playerInfo.code)),style:{color:"white","font-size":"14px",cursor:"pointer"}},[T("p",le,$(i.playerLink),1)])):A("",!0)])]),_:1})]),_:1}),U(y,{sm:"6",md:"5",style:{color:"var(--theme-text)"}},{default:L(()=>[T("form",ie,[U(p,null,{default:L(()=>[U(h,null,{default:L(()=>[U(y,{cols:"6",class:"pa-3"},{default:L(()=>[U(u,{modelValue:l.playerInfo.first,"onUpdate:modelValue":a[5]||(a[5]=e=>l.playerInfo.first=e),modelModifiers:{trim:!0},topText:"First Name*",bottomWarning:l.validationErrors.first,name:"first-name",onKeyUp:a[6]||(a[6]=e=>i.clearInput("first")),maxlength:30},null,8,["modelValue","bottomWarning"])]),_:1}),U(y,{cols:"6",class:"pa-3"},{default:L(()=>[U(u,{modelValue:l.playerInfo.last,"onUpdate:modelValue":a[7]||(a[7]=e=>l.playerInfo.last=e),modelModifiers:{trim:!0},topText:"Last Name*",name:"last-name",bottomWarning:l.validationErrors.last,onKeyUp:a[8]||(a[8]=e=>i.clearInput("last")),maxlength:30},null,8,["modelValue","bottomWarning"])]),_:1}),U(y,{cols:"12",class:"pa-3"},{default:L(()=>[U(u,{modelValue:l.playerInfo.alias,"onUpdate:modelValue":a[9]||(a[9]=e=>l.playerInfo.alias=e),modelModifiers:{trim:!0},topText:"Alias",bottomWarning:l.validationErrors.alias,name:"alias",onKeyUp:a[10]||(a[10]=e=>i.clearInput("alias")),maxlength:30},null,8,["modelValue","bottomWarning"])]),_:1}),i.playerHasExtendedAccess||"new"===l.playerInfo.type?(R(),V(y,{key:0,cols:"12",class:"pa-3"},{default:L(()=>[U(u,{modelValue:l.playerInfo.email,"onUpdate:modelValue":a[11]||(a[11]=e=>l.playerInfo.email=e),modelModifiers:{trim:!0},bottomWarning:l.validationErrors.email,topText:"Email*",onKeyUp:a[12]||(a[12]=e=>l.validationErrors.email="")},null,8,["modelValue","bottomWarning"])]),_:1})):A("",!0),U(y,{cols:"6",class:"pa-3"},{default:L(()=>[U(u,{modelValue:l.playerInfo.zipcode,"onUpdate:modelValue":a[13]||(a[13]=e=>l.playerInfo.zipcode=e),modelModifiers:{trim:!0},topText:"Zipcode/postal code*",name:"zipcode",bottomWarning:l.validationErrors.zipcode,onKeyUp:a[14]||(a[14]=e=>l.validationErrors.zipcode=""),maxlength:10},null,8,["modelValue","bottomWarning"])]),_:1}),i.playerHasExtendedAccess?(R(),V(y,{key:1,cols:"12",class:"pa-3"},{default:L(()=>[U(h,{"no-gutters":""},{default:L(()=>[U(y,{cols:"12",class:"pb-0"},{default:L(()=>[...a[40]||(a[40]=[T("div",{class:"input-label"},"Country / State",-1)])]),_:1}),U(y,{cols:"6"},{default:L(()=>[B(T("select",{class:"select",name:"country","onUpdate:modelValue":a[15]||(a[15]=e=>l.selectedCountry=e)},[(R(!0),E(H,null,z(i.countries,(e,a)=>(R(),E("option",{class:"select__item",value:a,key:e},$(e),9,se))),128))],512),[[j,l.selectedCountry]])]),_:1}),U(y,{cols:"6"},{default:L(()=>[B(T("select",{class:"select",name:"state","onUpdate:modelValue":a[16]||(a[16]=e=>l.selectedState=e)},[(R(!0),E(H,null,z(i.states,(e,a)=>(R(),E("option",{class:"select__item",key:e,value:a},$(e),9,ne))),128))],512),[[j,l.selectedState]])]),_:1})]),_:1})]),_:1})):A("",!0),U(y,{cols:"12",class:"pa-3"},{default:L(()=>[T("div",re,[B(T("select",{class:"select",name:"countryCode",id:"","onUpdate:modelValue":a[17]||(a[17]=e=>l.playerInfo.countryCode=e),style:{width:"30%"},disabled:!i.playerHasExtendedAccess&&"new"!==l.playerInfo.type},[a[41]||(a[41]=T("option",{class:"select__item","data-countryCode":"US",value:"1"}," USA (+1) ",-1)),T("optgroup",de,[(R(!0),E(H,null,z(i.getCountiesInfo,e=>(R(),E("option",{class:"select__item","data-countryCode":e.iso,value:e.code,key:e.code},$(e.name)+" "+$(`(+${e.code})`),9,pe))),128))])],8,ce),[[j,l.playerInfo.countryCode]]),U(u,{modelValue:l.playerInfo.phone,"onUpdate:modelValue":a[18]||(a[18]=e=>l.playerInfo.phone=e),name:"phone",placeholder:i.phonePlaceholder.mask||"XXX XXX XX XX",onInput:a[19]||(a[19]=e=>l.playerInfo.phone=i.applyPhoneMask(e.target.value,i.phonePlaceholder.mask||"XXX XXX XX XX")),onBlur:i.clearPhone,style:{width:"70%"},maxlength:30,disabled:!i.playerHasExtendedAccess&&"new"!==l.playerInfo.type},null,8,["modelValue","placeholder","onBlur","disabled"])])]),_:1}),i.playerHasExtendedAccess?(R(),V(y,{key:2,cols:"12",class:"pa-3"},{default:L(()=>[a[43]||(a[43]=T("div",{class:"input-label"},[X(" Venue "),T("span",null,"*required")],-1)),B(T("select",{class:"select","onUpdate:modelValue":a[20]||(a[20]=e=>l.playerInfo.venue=e)},[a[42]||(a[42]=T("option",{class:"select__item",selected:""}," - Select venue - ",-1)),(R(!0),E(H,null,z(l.venues,(e,a)=>(R(),E(H,null,["watl"!==a?(R(),E("option",{class:"select__item",value:a,key:a},$(e.company)+" - "+$(e.city),9,ye)):A("",!0)],64))),256))],512),[[j,l.playerInfo.venue]])]),_:1})):A("",!0),U(y,{cols:"6",class:"pa-3 position-relative"},{default:L(()=>[a[46]||(a[46]=T("div",{class:"input-label"},"WATL Division*",-1)),B(T("select",{class:"select",disabled:l.playerInfo[".key"]&&!i.playerHasExtendedAccess,"onUpdate:modelValue":a[21]||(a[21]=e=>l.playerInfo.division=e),onChange:a[22]||(a[22]=e=>l.validationErrors.division="")},[a[44]||(a[44]=T("option",{class:"select__item",value:"recreational"},"Rec",-1)),a[45]||(a[45]=T("option",{class:"select__item",value:"amateur",selected:""}," Amateur ",-1)),i.playerHasExtendedAccess?(R(),E("option",he," Pro ")):A("",!0)],40,ue),[[j,l.playerInfo.division]]),l.validationErrors.division?(R(),E("p",me,$(l.validationErrors.division),1)):A("",!0)]),_:1}),U(y,{cols:"6",class:"pa-3 position-relative"},{default:L(()=>[a[48]||(a[48]=T("div",{class:"input-label"},"WKTL Division*",-1)),B(T("select",{class:"select",disabled:l.playerInfo[".key"]&&!i.playerHasExtendedAccess,"onUpdate:modelValue":a[23]||(a[23]=e=>l.playerInfo.wktlDivision=e),onChange:a[24]||(a[24]=e=>l.validationErrors.wktlDivision="")},[a[47]||(a[47]=T("option",{class:"select__item",value:"recreational"},"Rec",-1)),i.playerHasExtendedAccess?(R(),E("option",ge," Pro ")):A("",!0)],40,fe),[[j,l.playerInfo.wktlDivision]]),l.validationErrors.wktlDivision?(R(),E("p",ve,$(l.validationErrors.wktlDivision),1)):A("",!0)]),_:1}),A("",!0),U(y,{cols:"12"},{default:L(()=>[U(h,{"no-gutters":""},{default:L(()=>[U(y,{cols:"6",class:"pr-3"},{default:L(()=>[U(u,{modelValue:l.playerInfo.facebook,"onUpdate:modelValue":a[29]||(a[29]=e=>l.playerInfo.facebook=e),topText:"Facebook profile",name:"facebook",onBlur:i.clearURL,onKeyUp:i.clearURL},null,8,["modelValue","onBlur","onKeyUp"]),T("div",{onClick:a[30]||(a[30]=e=>i.openPage("https://facebook.com/",l.playerInfo.facebook)),class:"truncate clickable",style:{color:"rgba(255, 255, 255, 0.2)"}}," https://facebook.com/"+$(l.playerInfo.facebook),1)]),_:1}),U(y,{cols:"6",class:"pl-3"},{default:L(()=>[U(u,{modelValue:l.playerInfo.instagram,"onUpdate:modelValue":a[31]||(a[31]=e=>l.playerInfo.instagram=e),topText:"Instagram profile",name:"instagram",onBlur:i.clearURL,onKeyUp:i.clearURL},null,8,["modelValue","onBlur","onKeyUp"]),T("a",{onClick:a[32]||(a[32]=e=>i.openPage("https://www.instagram.com/",l.playerInfo.instagram)),class:"truncate clickable",style:{color:"rgba(255, 255, 255, 0.2)"}}," @"+$(l.playerInfo.instagram),1)]),_:1})]),_:1})]),_:1}),U(y,{cols:"12",class:"pa-3"},{default:L(()=>[T("div",Ie,[a[50]||(a[50]=T("div",{class:"input-label"},"Gender",-1)),U(f,{modelValue:l.playerInfo.gender,"onUpdate:modelValue":a[33]||(a[33]=e=>l.playerInfo.gender=e),inline:""},{default:L(()=>[U(m,{label:"Prefer not to say",value:""}),U(m,{label:"Male",value:"male"}),U(m,{label:"Female",value:"female"})]),_:1},8,["modelValue"])])]),_:1}),"includePlayer"===t.source?(R(),V(y,{key:4,cols:"12",md:"9",lg:"
16",class:"pt-4 pr-4 pl-2 text-right"},{default:L(()=>[T("button",{class:F(["v-btn primary",{"mb-12":i.isThisMobile}]),type:"button",disabled:l.saveDisable,form:"form",style:{width:"100%"},onClick:a[34]||(a[34]=e=>i.checkIfEmailExists(t.source))}," Save & Add Another Player ",10,be)]),_:1})):A("",!0)]),_:1}),"includePlayer"!==t.source?(R(),V(n,{key:0,class:"v-btn ml-3 mr-2",color:"primary",type:"button",disabled:l.saveDisable,form:"form",onClick:a[35]||(a[35]=e=>i.checkIfEmailExists(t.source))},{default:L(()=>[...a[51]||(a[51]=[X(" Save ",-1)])]),_:1},8,["disabled"])):A("",!0),"new"!==l.playerInfo.type?(R(),V(n,{key:1,color:"primary",onClick:a[36]||(a[36]=e=>i.sendEmailLink()),class:"mr-2"},{default:L(()=>[...a[52]||(a[52]=[X("Send Email Invite",-1)])]),_:1})):A("",!0),"new"!==l.playerInfo.type&&o.userStore.userRoles.admin&&o.userStore.user[".key"]!==l.playerInfo[".key"]?(R(),V(n,{key:2,color:"error",onClick:a[37]||(a[37]=e=>i.confitmDeletePlayer())},{default:L(()=>[...a[53]||(a[53]=[X("Release Player",-1)])]),_:1})):A("",!0)]),_:1})])]),_:1})]),_:1}),l.imgDialog.show?(R(),V(v,{key:1,modelValue:l.imgDialog.show,"onUpdate:modelValue":a[38]||(a[38]=e=>l.imgDialog.show=e),scrollable:"",width:this.imgDialog.windowWidth,style:{background:"var(--theme-dialog)"}},{default:L(()=>[U(g,{currentImage:l.imgDialog.currentImage,ratioWidth:l.imgDialog.ratioWidth,ratioHeight:l.imgDialog.ratioHeight,updateDBlocation:l.imgDialog.updateDBlocation,updateDBitem:l.imgDialog.updateDBitem,updateStorageLocation:l.imgDialog.updateStorageLocation,saveWidth:l.imgDialog.saveWidth,saveFormat:l.imgDialog.saveFormat,onCloseImageDialog:i.closeImageDialog},null,8,["currentImage","ratioWidth","ratioHeight","updateDBlocation","updateDBitem","updateStorageLocation","saveWidth","saveFormat","onCloseImageDialog"])]),_:1},8,["modelValue","width"])):A("",!0)])}],["__scopeId","data-v-357a7146"]]))}}});

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.