import{g as Z}from"./Notification-15e980db.js";import{G as Te}from"./GOCornhole-dda253e7.js";import{G as ae}from"./Default-901c703e.js";import{J as Oe}from"./JoinPickleball-4368c4fa.js";import{I as Se,S as Ie,T as Pe,a as Ee,O as Me,C as Ae}from"./ColorIndicator-342cb593.js";import{C as De}from"./CopyIcon-2bc7e9e1.js";import{I as ve,a as we}from"./IconSms-8786d4a0.js";import{_ as Y,o as a,c as r,a as e,t as m,s as g,r as V,e as H,w as A,F as C,k as j,q as W,j as P,f,g as w,d as L,G as je,H as Ve,I as Re,J as de,n as ue,A as be,i as R,v as $,p as ke,b as me,y as Ne,z as Ue,O as ee,u as q,K as Be,h as He}from"./app-9daf7b25.js";import{M as te}from"./ModalMixin-f1c0fe4e.js";import{F as se}from"./Button-067cc918.js";import{s as he}from"./vue-multiselect.css_vue_type_style_index_0_src_true_lang-209af5c1.js";import{I as ie}from"./IconDropdown-481fb65d.js";import{L as re}from"./LeagueMixin-b8a9673b.js";import{u as ze,c as xe}from"./tua-bsl-382af34b.js";import{L as fe}from"./LeagueInfoBox-b02f7f14.js";import{A as pe}from"./LeagueAccessCodeModal-65fcaea7.js";import"./moment-a9aaa855.js";import"./Input-9aaaabcf.js";import"./helper-77b46e57.js";import"./CheckIcon-937edc41.js";const We={},Ke={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},$e=e("path",{"fill-rule":"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zm4.28 10.28a.75.75 0 000-1.06l-3-3a.75.75 0 10-1.06 1.06l1.72 1.72H8.25a.75.75 0 000 1.5h5.69l-1.72 1.72a.75.75 0 101.06 1.06l3-3z","clip-rule":"evenodd"},null,-1),Ye=[$e];function Xe(o,s){return a(),r("svg",Ke,Ye)}const Je=Y(We,[["render",Xe]]),Ze={},Qe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},Ge=e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10"},null,-1),qe=[Ge];function et(o,s){return a(),r("svg",Qe,qe)}const tt=Y(Ze,[["render",et]]),lt={props:{message:String,dir:{type:String,default:"up"}}},st={class:"group"},it=e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"stroke-2"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"})],-1),ot={class:"whitespace-normal"};function nt(o,s,l,d,t,i){return a(),r("div",st,[it,e("div",{class:g(["absolute hidden group-hover:block -left-28 rounded bg-black/90 text-white font-light p-2 w-64 text-xs",{"bottom-5":l.dir==="up","top-5":l.dir==="down"}])},[e("p",ot,m(l.message),1)],2)])}const _e=Y(lt,[["render",nt]]),at={},rt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},ct=e("path",{"fill-rule":"evenodd",d:"M19.916 4.626a.75.75 0 01.208 1.04l-9 13.5a.75.75 0 01-1.154.114l-6-6a.75.75 0 011.06-1.06l5.353 5.353 8.493-12.739a.75.75 0 011.04-.208z","clip-rule":"evenodd"},null,-1),dt=[ct];function ut(o,s){return a(),r("svg",rt,dt)}const Fe=Y(at,[["render",ut]]),mt={},ht={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},ft=e("path",{d:"M5.625 1.5c-1.036 0-1.875.84-1.875 1.875v17.25c0 1.035.84 1.875 1.875 1.875h12.75c1.035 0 1.875-.84 1.875-1.875V12.75A3.75 3.75 0 0016.5 9h-1.875a1.875 1.875 0 01-1.875-1.875V5.25A3.75 3.75 0 009 1.5H5.625z"},null,-1),pt=e("path",{d:"M12.971 1.816A5.23 5.23 0 0114.25 5.25v1.875c0 .207.168.375.375.375H16.5a5.23 5.23 0 013.434 1.279 9.768 9.768 0 00-6.963-6.963z"},null,-1),_t=[ft,pt];function gt(o,s){return a(),r("svg",ht,_t)}const yt=Y(mt,[["render",gt]]),bt={},xt={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},vt=e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1),wt=[vt];function kt(o,s){return a(),r("svg",xt,wt)}const Ft=Y(bt,[["render",kt]]),Lt={},Ct={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},Tt=e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.75 9.75l4.5 4.5m0-4.5l-4.5 4.5M21 12a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1),Ot=[Tt];function St(o,s){return a(),r("svg",Ct,Ot)}const It=Y(Lt,[["render",St]]),Pt={},Et={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},Mt=e("path",{"fill-rule":"evenodd",d:"M5.47 5.47a.75.75 0 011.06 0L12 10.94l5.47-5.47a.75.75 0 111.06 1.06L13.06 12l5.47 5.47a.75.75 0 11-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 01-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 010-1.06z","clip-rule":"evenodd"},null,-1),At=[Mt];function Dt(o,s){return a(),r("svg",Et,At)}const Le=Y(Pt,[["render",Dt]]),jt={props:{league:Object,team:Object,user:Object,emailMessage:String,isInvite:Boolean,domain_color:String,showError:{type:Boolean,default:!1},isMessageModel:{type:Boolean,default:!1}},data(){return{blankMessageError:!1,messageBody:""}},mixins:[te],methods:{sendEmail(){this.messageBody.length?(this.$emit("sendEmail",this.messageBody),this.closeModal(),this.messageBody=""):this.blankMessageError=!0},teamInviteLink(){console.log("invitelinkclicked")}}},Vt=e("h1",{class:"text-3xl text-center font-bold uppercase mb-8 font-bebe"},"Team Message",-1),Rt={class:"text-center"},Nt={class:"flex content-center justify-center mt-8 mb-2"},Ut={class:"flex content-center justify-center"},Bt=e("div",{class:"w-1/2"}," ",-1),Ht={class:"w-1/2"},zt={key:0,class:"text-red ml-6 md:mr-24 md:ml-8"},Wt={key:1,class:"flex mt-20 justify-center items-center"},Kt={class:"text-red text-lg"};function $t(o,s,l,d,t,i){const c=V("modal");return a(),H(c,{ref:"modal",clickToClose:!1,escToClose:!0},{default:A(()=>[l.showError?(a(),r("div",Wt,[e("p",Kt,"Please select which teammates you would like to "+m(l.isMessageModel?"text message":"email"),1)])):(a(),r(C,{key:0},[Vt,e("div",Rt,[j(e("textarea",{"onUpdate:modelValue":s[0]||(s[0]=h=>t.messageBody=h),rows:"3",class:"block py-3 px-6 border-2 border-gray w-full",placeholder:"200 character limit"},null,512),[[W,t.messageBody]]),e("div",Nt,[e("a",{class:g(["max-w-md button text-white text-base w-full text-sm rounded-full ml-2 cursor-pointer",["bg-"+l.domain_color]]),onClick:s[1]||(s[1]=P(h=>i.sendEmail(),["prevent"]))},"Send "+m(l.isMessageModel?"Text":"Email"),3)]),e("div",Ut,[Bt,e("div",Ht,[t.blankMessageError?(a(),r("div",zt,"Please include a message body ")):f("",!0)])])])],64))]),_:1},512)}const Yt=Y(jt,[["render",$t]]);const Xt={props:{team:Object,game:Object,league:Object,domain_color:String,availabilities:[Object,Array]},components:{IconHelp:_e,Multiselect:he,FormButton:se},data(){return{form:{line1:{player1:null,player2:null},line2:{player1:null,player2:null},line3:{player1:null,player2:null}},forfeitData:{id:"FORFEIT",first_name:"FORFEIT",last_name:"",skill_level:0},error:"",confirmed:!1,emailSent:!1,action:"",saved:!1,emailTo:""}},mixins:[te],methods:{save(o=!1,s=!1){let l=[];this.form.line1.player1&&l.push({id:this.form.line1.player1.id,skill_level:this.form.line1.player1.skill_level,lineup:1,player:1}),this.form.line1.player2&&l.push({id:this.form.line1.player2.id,skill_level:this.form.line1.player2.skill_level,lineup:1,player:2}),this.isNotFlexLeague&&(this.form.line2.player1&&l.push({id:this.form.line2.player1.id,skill_level:this.form.line2.player1.skill_level,lineup:2,player:1}),this.form.line2.player2&&l.push({id:this.form.line2.player2.id,skill_level:this.form.line2.player2.skill_level,lineup:2,player:2}),this.form.line3.player1&&l.push({id:this.form.line3.player1.id,skill_level:this.form.line3.player1.skill_level,lineup:3,player:1}),this.form.line3.player2&&l.push({id:this.form.line3.player2.id,skill_level:this.form.line3.player2.skill_level,lineup:3,player:2})),axios.post(route("my-team-lineup",[this.league.id,this.game.id,this.team.id]),{players:l,sendMail:s?this.emailTo:!1}).then(d=>{this.saved=!0,this.emailTo&&s&&(this.emailSent=!0,this.emailTo="")})},saveNExit(){this.save(!0)},sendEmail(){this.save(!1,!0)},gotIt(){this.confirmed=!1,this.error="",this.action="",this.saved=!1,this.emailSent=!1},validateLineups(o=null,s="selfTeam"){if(this.emailTo||(this.emailTo=s),o==="sendEmail"){if(this.game.team_one_score!==null&&this.game.team_two_score!==null){this.error="score_submitted";return}if(!this.validateLineUpsPlayers()){this.error="player_not_selected";return}}if(!this.validateLineUpsAreUnique()){this.error="player_not_unique";return}if(this.error="",o&&(this.action=o),!this.confirmed){this.confirmed=!0;return}switch(this.action){case"save":this.save();break;case"saveNExit":this.saveNExit();break;case"sendEmail":this.sendEmail();break}},validateLineUpsPlayers(){return this.isNotFlexLeague?!(!this.form.line1.player1||!this.form.line1.player2||!this.form.line2.player1||!this.form.line2.player1||!this.form.line3.player1||!this.form.line3.player2):!(!this.form.line1.player1||!this.form.line1.player2)},validateLineUpsAreUnique(){let o=[];return this.form.line1.player1&&o.push(this.form.line1.player1.id),this.form.line1.player2&&o.push(this.form.line1.player2.id),this.isNotFlexLeague&&(this.form.line2.player1&&o.push(this.form.line2.player1.id),this.form.line2.player2&&o.push(this.form.line2.player2.id),this.form.line3.player1&&o.push(this.form.line3.player1.id),this.form.line3.player2&&o.push(this.form.line3.player2.id)),o.filter(l=>l!=="FORFEIT").filter((l,d,t)=>t.indexOf(l)===d).length===o.filter(l=>l!=="FORFEIT").length},validateLineUpsAreHighToLowSkill(){var d,t,i,c,h,_;if(!this.isNotFlexLeague)return!0;const o=parseFloat(((d=this.form.line1.player1)==null?void 0:d.skill_level)??0)+parseFloat(((t=this.form.line1.player2)==null?void 0:t.skill_level)??0),s=parseFloat(((i=this.form.line2.player1)==null?void 0:i.skill_level)??0)+parseFloat(((c=this.form.line2.player2)==null?void 0:c.skill_level)??0),l=parseFloat(((h=this.form.line3.player1)==null?void 0:h.skill_level)??0)+parseFloat(((_=this.form.line3.player2)==null?void 0:_.skill_level)??0);return o>=s&&s>=l},resetSelection(){this.form.line1.player1=null,this.form.line1.player2=null,this.form.line2.player1=null,this.form.line2.player2=null,this.form.line3.player1=null,this.form.line3.player2=null},close(){this.confirmed=!1,this.error=""},getFixedHeight(){return window.innerHeight-50+"px"}},computed:{logo(){return this.domain_color==="pickleball-green"?"/pickleball/join-pickleball-logo-full-color-green-background-rgb-400px@72ppi.png":this.domain_color==="cornhole-orange"?"https://kickball-assets.s3.amazonaws.com/go-cornhole-logo-reverse-white-black-rgb_website_100h.png":"https://kickball-assets.s3.amazonaws.com/go-kickball-logo-reverse-white-black-rgb_website_100h.png"},gameAvailabilities(){return this.availabilities[this.game.id]},participants(){let o=[...this.team.participants];return o.push(this.forfeitData),o.map(s=>({id:s.id,first_name:s.first_name,last_name:s.last_name,skill_level:s.skill_level??0}))},teams(){return this.game?{homeTeam:this.game.team_two.name,awayTeam:this.game.team_one.name}:null},isNotFlexLeague(){var o;return((o=this.league)==null?void 0:o.schedule_type)==="fixed"},lineOnePlayerOneOptions(){var s,l,d,t,i;const o=[(s=this.form.line1.player2)==null?void 0:s.id,(l=this.form.line2.player1)==null?void 0:l.id,(d=this.form.line2.player2)==null?void 0:d.id,(t=this.form.line3.player1)==null?void 0:t.id,(i=this.form.line3.player2)==null?void 0:i.id];return this.participants.map(c=>{var h;return c.id==="FORFEIT"?(c.$isDisabled=((h=this.form.line2.player1)==null?void 0:h.id)!=="FORFEIT",Object.assign({},c)):(c.$isDisabled=o.includes(c.id),Object.assign({},c))})},lineOnePlayerTwoOptions(){var s,l,d,t,i;const o=[(s=this.form.line1.player1)==null?void 0:s.id,(l=this.form.line2.player1)==null?void 0:l.id,(d=this.form.line2.player2)==null?void 0:d.id,(t=this.form.line3.player1)==null?void 0:t.id,(i=this.form.line3.player2)==null?void 0:i.id];return this.participants.map(c=>{var h;return c.id==="FORFEIT"?(c.$isDisabled=((h=this.form.line2.player1)==null?void 0:h.id)!=="FORFEIT",Object.assign({},c)):(c.$isDisabled=o.includes(c.id),Object.assign({},c))})},lineTwoPlayerOneOptions(){var s,l,d,t,i;const o=[(s=this.form.line1.player1)==null?void 0:s.id,(l=this.form.line1.player2)==null?void 0:l.id,(d=this.form.line2.player2)==null?void 0:d.id,(t=this.form.line3.player1)==null?void 0:t.id,(i=this.form.line3.player2)==null?void 0:i.id];return this.participants.map(c=>{var h;return c.id==="FORFEIT"?(c.$isDisabled=((h=this.form.line3.player1)==null?void 0:h.id)!=="FORFEIT",Object.assign({},c)):(c.$isDisabled=o.includes(c.id),Object.assign({},c))})},lineTwoPlayerTwoOptions(){var s,l,d,t,i;const o=[(s=this.form.line1.player1)==null?void 0:s.id,(l=this.form.line1.player2)==null?void 0:l.id,(d=this.form.line2.player1)==null?void 0:d.id,(t=this.form.line3.player1)==null?void 0:t.id,(i=this.form.line3.player2)==null?void 0:i.id];return this.participants.map(c=>{var h;return c.id==="FORFEIT"?(c.$isDisabled=((h=this.form.line3.player1)==null?void 0:h.id)!=="FORFEIT",Object.assign({},c)):(c.$isDisabled=o.includes(c.id),Object.assign({},c))})},lineThreePlayerOneOptions(){var s,l,d,t,i;const o=[(s=this.form.line1.player1)==null?void 0:s.id,(l=this.form.line1.player2)==null?void 0:l.id,(d=this.form.line2.player1)==null?void 0:d.id,(t=this.form.line2.player2)==null?void 0:t.id,(i=this.form.line3.player2)==null?void 0:i.id];return this.participants.map(c=>c.id==="FORFEIT"?(c.$isDisabled=!1,Object.assign({},c)):(c.$isDisabled=o.includes(c.id),Object.assign({},c)))},lineThreePlayerTwoOptions(){var s,l,d,t,i;const o=[(s=this.form.line1.player1)==null?void 0:s.id,(l=this.form.line1.player2)==null?void 0:l.id,(d=this.form.line2.player1)==null?void 0:d.id,(t=this.form.line2.player2)==null?void 0:t.id,(i=this.form.line3.player1)==null?void 0:i.id];return this.participants.map(c=>c.id==="FORFEIT"?(c.$isDisabled=!1,Object.assign({},c)):(c.$isDisabled=o.includes(c.id),Object.assign({},c)))}},watch:{game(o){if(o){const s=["line1","line2","line3"];for(let d=0;d<s.length;d++)this.form[s[d]].player1=null,this.form[s[d]].player2=null;const l=this.game.user_lineup_data;for(let d=0;d<l.length;d++){const t="line"+l[d].lineup,i="player"+l[d].player;this.form[t][i]=this.participants.find(c=>c.id===l[d].user_id)??null}}},"form.line1.player1"(o){var s;(o==null?void 0:o.first_name)==="FORFEIT"&&((s=this.form.line1.player2)==null?void 0:s.first_name)!=="FORFEIT"&&(console.log("1"),this.form.line1.player2=o)},"form.line1.player2"(o){var s;(o==null?void 0:o.first_name)==="FORFEIT"&&((s=this.form.line1.player1)==null?void 0:s.first_name)!=="FORFEIT"&&(console.log("2"),this.form.line1.player1=o)},"form.line2.player1"(o){(o==null?void 0:o.first_name)==="FORFEIT"&&(this.form.line2.player2=o)},"form.line2.player2"(o){(o==null?void 0:o.first_name)==="FORFEIT"&&(this.form.line2.player1=o)},"form.line3.player1"(o){(o==null?void 0:o.first_name)==="FORFEIT"&&(this.form.line3.player2=o)},"form.line3.player2"(o){(o==null?void 0:o.first_name)==="FORFEIT"&&(this.form.line3.player1=o)}}},Jt={key:0},Zt=["src"],Qt=e("h1",{class:"text-center text-gray font-header uppercase mb-1 text-5xl"},"Lineup Card",-1),Gt={key:0,class:"text-lg text-gray text-center mb-3"},qt={class:"text-xl font-bold text-gray text-center mb-1 underline"},el={key:1,class:"text-xl font-semibold text-gray text-center mb-1"},tl={class:"text-xl font-semibold text-gray text-center mb-1"},ll={class:"text-xl font-semibold text-gray text-center mb-1"},sl={class:"text-xl font-semibold text-gray text-center mt-3 mb-1"},il={class:"relative w-auto"},ol={class:"text-xl font-bold text-gray text-center mb-1 underline"},nl={class:"px-4"},al={class:"w-full text-gray font-semibold text-xl mb-2"},rl=e("tr",null,[e("th"),e("th",{class:"w-1/2"},[e("span",{class:"text-red"},"Men's "),L("Line")]),e("th",null," Skill Level")],-1),cl=e("td",null,"Player 1:",-1),dl=e("td",null,"Player 2:",-1),ul={class:"border-b border-black"},ml=e("td",null,null,-1),hl=e("td",null,null,-1),fl={class:"text-xl"},pl={key:0,class:"w-full text-gray font-semibold text-xl mb-2"},_l=e("tr",null,[e("th"),e("th",{class:"w-1/2"},[e("span",{class:"text-red"},"Women's "),L("Line")]),e("th",null," Skill Level")],-1),gl=e("td",null,"Player 1:",-1),yl={class:""},bl=e("td",null,"Player 2:",-1),xl={class:"border-b border-black"},vl=e("td",null,null,-1),wl=e("td",null,null,-1),kl={class:"text-xl"},Fl={key:1,class:"w-full text-gray font-semibold text-xl mb-2"},Ll=e("tr",null,[e("th"),e("th",{class:"w-1/2"},[e("span",{class:"text-red"},"Open "),L("Line")]),e("th",null," Skill Level")],-1),Cl=e("td",null,"Player 1:",-1),Tl=e("td",null,"Player 2:",-1),Ol={class:"border-b border-black"},Sl=e("td",null,null,-1),Il=e("td",null,null,-1),Pl={class:"text-xl"},El=e("p",{class:"text-sm py-2"},"Note: When forfeiting a line, you must forfeit the last line first. For example, you must forfeit line #3 before forfeiting line #2 and so on.",-1),Ml={class:"flex flex-col space-y-2 justify-around"},Al={key:1},Dl={key:0,class:"mb-10 text-gray"},jl={key:1,class:"mb-10 text-gray"},Vl=e("h2",{class:"font-header text-3xl mb-4"},"Match Already Completed",-1),Rl=e("p",{class:"mb-10 text-gray"},"The Final Score for this match has already been reported. You can no longer email your Lineup.",-1),Nl={key:2},Ul=e("h1",{class:"text-center text-gray font-header uppercase mb-4 text-5xl"},"Confirm Selections",-1),Bl={key:0,class:"text-green-500 text-sm mb-4"},Hl={class:"flex items-center mb-2 text-gray px-6"},zl={class:"w-1/2"},Wl=e("p",{class:"text-sm font-bold"},[e("span",{class:"text-red"},"Men's "),L("Line")],-1),Kl={class:"text-sm text-left"},$l={class:"text-sm text-left"},Yl={class:"w-1/2"},Xl=e("p",{class:"text-sm font-bold"},"Skill Level",-1),Jl={class:"text-sm"},Zl={key:1,class:"flex items-center mb-2 text-gray px-6"},Ql={class:"w-1/2"},Gl=e("p",{class:"text-sm font-bold"},[e("span",{class:"text-red"},"Women's "),L("Line")],-1),ql={class:"text-sm text-left"},es={class:"text-sm text-left"},ts={class:"w-1/2"},ls=e("p",{class:"text-sm font-bold"},"Skill Level",-1),ss={class:"text-sm"},is={key:2,class:"flex items-center mb-4 text-gray px-6"},os={class:"w-1/2"},ns=e("p",{class:"text-sm font-bold"},[e("span",{class:"text-red"},"Open "),L("Line")],-1),as={class:"text-sm text-left"},rs={class:"text-sm text-left"},cs={class:"w-1/2"},ds=e("p",{class:"text-sm font-bold"},"Skill Level",-1),us={class:"text-sm"},ms={key:3},hs=e("h1",{class:"text-center text-gray font-header uppercase mb-4 text-5xl"},"Lineup Card Saved",-1),fs={key:0,class:"text-center my-6 text-black text-lg"},ps={key:1,class:"text-center my-6 text-black text-lg"};function _s(o,s,l,d,t,i){const c=V("icon-help"),h=V("multiselect"),_=V("form-button"),x=V("modal");return a(),H(x,{ref:"modal",clickToClose:!1,escToClose:!0,onClosed:s[15]||(s[15]=n=>i.close()),fixedHeight:i.getFixedHeight()},{default:A(()=>[l.game&&!t.error&&!t.confirmed?(a(),r("div",Jt,[e("div",{class:g([["bg-"+l.domain_color],"flex justify-center py-6 mb-2"])},[e("img",{src:i.logo,alt:"logo",class:"h-10"},null,8,Zt)],2),Qt,i.isNotFlexLeague?(a(),r("p",Gt,"Club Challenge League")):f("",!0),e("p",qt,"Match #"+m(l.game.week_number),1),i.teams?(a(),r("p",el,m(i.teams.awayTeam)+" @ "+m(i.teams.homeTeam),1)):f("",!0),e("p",tl,"Location: "+m(l.game.location.name),1),e("p",ll,m(l.game.start_date_time),1),e("div",sl,[e("span",il,[w(c,{class:"w-3 absolute -right-3",message:"Complete your Lineup Card by selecting Players for each Line below. You can select any teammate in the dropdown although Green denotes they are AVAILABLE and red denotes they NOT AVAILABLE. Also, each Player’s Skill Level will display once selected, and the sum of each Line’s Skill Level (for the 2 players) must be the highest in Line 1, second highest for Line 2, and the lowest for Line 3."}),e("span",ol,m(l.team.name)+" Lineup",1)])]),e("div",nl,[e("table",al,[rl,e("tr",null,[cl,e("td",null,[w(h,{modelValue:t.form.line1.player1,"onUpdate:modelValue":s[0]||(s[0]=n=>t.form.line1.player1=n),options:i.lineOnePlayerOneOptions,searchable:!1,"close-on-select":!0,"allow-empty":!1,"show-labels":!1,placeholder:"Select Player"},{singleLabel:A(n=>[e("span",{class:g({"text-black":i.gameAvailabilities[n.option.id]===null,"text-red":i.gameAvailabilities[n.option.id]===!1,"text-green-700":i.gameAvailabilities[n.option.id]===!0})},m(n.option.first_name)+" "+m(n.option.last_name),3)]),option:A(n=>[e("span",{class:g({"text-black":i.gameAvailabilities[n.option.id]===null,"text-red":i.gameAvailabilities[n.option.id]===!1,"text-green-700":i.gameAvailabilities[n.option.id]===!0})},m(n.option.first_name)+" "+m(n.option.last_name),3)]),_:1},8,["modelValue","options"])]),e("td",null,m(t.form.line1.player1?t.form.line1.player1.skill_level:0),1)]),e("tr",null,[dl,e("td",null,[w(h,{modelValue:t.form.line1.player2,"onUpdate:modelValue":s[1]||(s[1]=n=>t.form.line1.player2=n),options:i.lineOnePlayerTwoOptions,searchable:!1,"close-on-select":!0,"allow-empty":!1,"show-labels":!1,placeholder:"Select Player"},{singleLabel:A(n=>[e("span",{class:g({"text-black":i.gameAvailabilities[n.option.id]===null,"text-red":i.gameAvailabilities[n.option.id]===!1,"text-green-700":i.gameAvailabilities[n.option.id]===!0})},m(n.option.first_name)+" "+m(n.option.last_name),3)]),option:A(n=>[e("span",{class:g({"text-black":i.gameAvailabilities[n.option.id]===null,"text-red":i.gameAvailabilities[n.option.id]===!1,"text-green-700":i.gameAvailabilities[n.option.id]===!0})},m(n.option.first_name)+" "+m(n.option.last_name),3)]),_:1},8,["modelValue","options"])]),e("td",null,[e("span",ul,m(t.form.line1.player2?t.form.line1.player2.skill_level:0),1)])]),e("tr",null,[ml,hl,e("td",fl,m(t.form.line1.player1&&t.form.line1.player2?parseFloat(t.form.line1.player1.skill_level)+parseFloat(t.form.line1.player2.skill_level):0),1)])]),i.isNotFlexLeague?(a(),r("table",pl,[_l,e("tr",null,[gl,e("td",null,[w(h,{modelValue:t.form.line2.player1,"onUpdate:modelValue":s[2]||(s[2]=n=>t.form.line2.player1=n),options:i.lineTwoPlayerOneOptions,searchable:!1,"close-on-select":!0,"allow-empty":!1,"show-labels":!1,placeholder:"Select Player"},{singleLabel:A(n=>[e("span",{class:g({"text-black":i.gameAvailabilities[n.option.id]===null,"text-red":i.gameAvailabilities[n.option.id]===!1,"text-green-700":i.gameAvailabilities[n.option.id]===!0})},m(n.option.first_name)+" "+m(n.option.last_name),3)]),option:A(n=>[e("span",{class:g({"text-black":i.gameAvailabilities[n.option.id]===null,"text-red":i.gameAvailabilities[n.option.id]===!1,"text-green-700":i.gameAvailabilities[n.option.id]===!0})},m(n.option.first_name)+" "+m(n.option.last_name),3)]),_:1},8,["modelValue","options"])]),e("td",null,[e("span",yl,m(t.form.line2.player1?t.form.line2.player1.skill_level:0),1)])]),e("tr",null,[bl,e("td",null,[w(h,{modelValue:t.form.line2.player2,"onUpdate:modelValue":s[3]||(s[3]=n=>t.form.line2.player2=n),options:i.lineTwoPlayerTwoOptions,searchable:!1,"close-on-select":!0,"allow-empty":!1,"show-labels":!1,placeholder:"Select Player"},{singleLabel:A(n=>[e("span",{class:g({"text-black":i.gameAvailabilities[n.option.id]===null,"text-red":i.gameAvailabilities[n.option.id]===!1,"text-green-700":i.gameAvailabilities[n.option.id]===!0})},m(n.option.first_name)+" "+m(n.option.last_name),3)]),option:A(n=>[e("span",{class:g({"text-black":i.gameAvailabilities[n.option.id]===null,"text-red":i.gameAvailabilities[n.option.id]===!1,"text-green-700":i.gameAvailabilities[n.option.id]===!0})},m(n.option.first_name)+" "+m(n.option.last_name),3)]),_:1},8,["modelValue","options"])]),e("td",null,[e("span",xl,m(t.form.line2.player2?t.form.line2.player2.skill_level:0),1)])]),e("tr",null,[vl,wl,e("td",kl,m(t.form.line2.player1&&t.form.line2.player2?parseFloat(t.form.line2.player1.skill_level)+parseFloat(t.form.line2.player2.skill_level):0),1)])])):f("",!0),i.isNotFlexLeague?(a(),r("table",Fl,[Ll,e("tr",null,[Cl,e("td",null,[w(h,{modelValue:t.form.line3.player1,"onUpdate:modelValue":s[4]||(s[4]=n=>t.form.line3.player1=n),options:i.lineThreePlayerOneOptions,searchable:!1,"close-on-select":!0,"allow-empty":!1,"show-labels":!1,placeholder:"Select Player"},{singleLabel:A(n=>[e("span",{class:g({"text-black":i.gameAvailabilities[n.option.id]===null,"text-red":i.gameAvailabilities[n.option.id]===!1,"text-green-700":i.gameAvailabilities[n.option.id]===!0})},m(n.option.first_name)+" "+m(n.option.last_name),3)]),option:A(n=>[e("span",{class:g({"text-black":i.gameAvailabilities[n.option.id]===null,"text-red":i.gameAvailabilities[n.option.id]===!1,"text-green-700":i.gameAvailabilities[n.option.id]===!0})},m(n.option.first_name)+" "+m(n.option.last_name),3)]),_:1},8,["modelValue","options"])]),e("td",null,[e("span",null,m(t.form.line3.player1?t.form.line3.player1.skill_level:0),1)])]),e("tr",null,[Tl,e("td",null,[w(h,{modelValue:t.form.line3.player2,"onUpdate:modelValue":s[5]||(s[5]=n=>t.form.line3.player2=n),options:i.lineThreePlayerTwoOptions,searchable:!1,"close-on-select":!0,"allow-empty":!1,placeholder:"Select Player",label:"name"},{singleLabel:A(n=>[e("span",{class:g([{"text-black":i.gameAvailabilities[n.option.id]===null,"text-red":i.gameAvailabilities[n.option.id]===!1,"text-green-700":i.gameAvailabilities[n.option.id]===!0},"option__title"])},m(n.option.first_name)+" "+m(n.option.last_name),3)]),option:A(n=>[e("span",{class:g({"text-black":i.gameAvailabilities[n.option.id]===null,"text-red":i.gameAvailabilities[n.option.id]===!1,"text-green-700":i.gameAvailabilities[n.option.id]===!0})},m(n.option.first_name)+" "+m(n.option.last_name),3)]),_:1},8,["modelValue","options"])]),e("td",null,[e("span",Ol,m(t.form.line3.player2?t.form.line3.player2.skill_level:0),1)])]),e("tr",null,[Sl,Il,e("td",Pl,m(t.form.line3.player1&&t.form.line3.player2?parseFloat(t.form.line3.player1.skill_level)+parseFloat(t.form.line3.player2.skill_level):0),1)])])):f("",!0),El,e("div",Ml,[w(_,{onClick:s[6]||(s[6]=n=>i.resetSelection()),secondary:!0,domain_color:l.domain_color},{default:A(()=>[L(" Reset Selection ")]),_:1},8,["domain_color"]),w(_,{onClick:s[7]||(s[7]=n=>i.validateLineups("save")),domain_color:l.domain_color},{default:A(()=>[L(" Save Lineup Card ")]),_:1},8,["domain_color"]),w(_,{onClick:s[8]||(s[8]=n=>i.validateLineups("sendEmail")),domain_color:l.domain_color},{default:A(()=>[L(" Save and Email to Teammates ")]),_:1},8,["domain_color"]),w(_,{onClick:s[9]||(s[9]=n=>i.validateLineups("sendEmail","opponent")),domain_color:l.domain_color},{default:A(()=>[L(" Save and Email To Opponent ")]),_:1},8,["domain_color"])])])])):f("",!0),l.game&&["score_submitted","player_not_selected","player_not_unique"].includes(t.error)&&!this.saved?(a(),r("div",Al,[t.error==="player_not_unique"?(a(),r("p",Dl,"Complete your Lineup Card by selecting Players for each Line below. You can select any teammate in the dropdown although Green denotes they are AVAILABLE and red denotes they NOT AVAILABLE. Also, each Player's Skill Level will display once selected, and the sum of each Line's Skill Level (for the 2 players) must be the highest in Line 1, second highest for Line 2, and the lowest for Line 3.")):t.error==="player_not_selected"?(a(),r("p",jl,"Each Player slot for all Lines must have a player selected, or have selected Forfeit. Please review and update accordingly.")):(a(),r(C,{key:2},[Vl,Rl],64)),w(_,{onClick:s[10]||(s[10]=n=>t.error=""),secondary:!0,domain_color:l.domain_color},{default:A(()=>[L(" Back ")]),_:1},8,["domain_color"])])):f("",!0),l.game&&t.confirmed&&!this.saved?(a(),r("div",Nl,[Ul,t.confirmed?(a(),r("p",Bl,"Looks good!")):f("",!0),e("div",Hl,[e("div",zl,[Wl,e("p",Kl,"Player 1: "+m(t.form.line1.player1?t.form.line1.player1.first_name+" "+t.form.line1.player1.last_name:""),1),e("p",$l,"Player 2: "+m(t.form.line1.player2?t.form.line1.player2.first_name+" "+t.form.line1.player2.last_name:""),1)]),e("div",Yl,[Xl,e("p",Jl,m(t.form.line1.player1&&t.form.line1.player2?parseFloat(t.form.line1.player1.skill_level)+parseFloat(t.form.line1.player2.skill_level):0),1)])]),i.isNotFlexLeague?(a(),r("div",Zl,[e("div",Ql,[Gl,e("p",ql,"Player 1: "+m(t.form.line2.player1?t.form.line2.player1.first_name+" "+t.form.line2.player1.last_name:""),1),e("p",es,"Player 2: "+m(t.form.line2.player2?t.form.line2.player2.first_name+" "+t.form.line2.player2.last_name:""),1)]),e("div",ts,[ls,e("p",ss,m(t.form.line2.player1&&t.form.line2.player2?parseFloat(t.form.line2.player1.skill_level)+parseFloat(t.form.line2.player2.skill_level):0),1)])])):f("",!0),i.isNotFlexLeague?(a(),r("div",is,[e("div",os,[ns,e("p",as,"Player 1: "+m(t.form.line3.player1?t.form.line3.player1.first_name+" "+t.form.line3.player1.last_name:""),1),e("p",rs,"Player 2: "+m(t.form.line3.player2?t.form.line3.player2.first_name+" "+t.form.line3.player2.last_name:""),1)]),e("div",cs,[ds,e("p",us,m(t.form.line3.player1&&t.form.line3.player2?parseFloat(t.form.line3.player1.skill_level)+parseFloat(t.form.line3.player2.skill_level):0),1)])])):f("",!0),t.confirmed?(a(),r(C,{key:3},[w(_,{class:"mb-2",onClick:s[11]||(s[11]=n=>i.validateLineups()),domain_color:l.domain_color},{default:A(()=>[L(" Confirm ")]),_:1},8,["domain_color"]),w(_,{secondary:!0,onClick:s[12]||(s[12]=n=>t.confirmed=!1),domain_color:l.domain_color},{default:A(()=>[L(" Back ")]),_:1},8,["domain_color"])],64)):(a(),H(_,{key:4,onClick:s[13]||(s[13]=n=>t.error=""),domain_color:l.domain_color},{default:A(()=>[L(" Back ")]),_:1},8,["domain_color"]))])):f("",!0),t.saved?(a(),r("div",ms,[hs,t.emailSent?(a(),r("p",ps,"Your Lineup Card was saved and sent successfully. Any changes to your Lineup Card can still be made and re-sent up until the match starts. Once the match starts, no Lineup changes can be made except where a match is delayed or rescheduled due to inclement weather or other agreed upon issue.")):(a(),r("p",fs,"Your Lineup Card was saved successfully. Any changes to your Lineup Card can still be made and re-sent up until the match starts. Once the match starts, no Lineup changes can be made except where a match is delayed or rescheduled due to inclement weather or other agreed upon issue.")),w(_,{onClick:s[14]||(s[14]=n=>i.gotIt()),domain_color:l.domain_color},{default:A(()=>[L(" Got It ")]),_:1},8,["domain_color"])])):f("",!0)]),_:1},8,["fixedHeight"])}const gs=Y(Xt,[["render",_s]]);(function(){try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(".vue-toggles{display:flex;align-items:center;border-radius:9999px;overflow:hidden;transition:background-color ease .2s,width ease .2s,height ease .2s}.vue-toggles__dot{position:relative;display:flex;align-items:center;border-radius:9999px;box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f;transition:margin ease .2s}.vue-toggles__text{position:absolute;font-family:inherit;-webkit-user-select:none;user-select:none;white-space:nowrap}@media (prefers-reduced-motion){.vue-toggles,.vue-toggles *,.vue-toggles *:before,.vue-toggles *:after{animation:none!important;transition:none!important;transition-duration:none!important}}")),document.head.appendChild(o)}}catch(s){console.error("vite-plugin-css-injected-by-js",s)}})();const ys=["aria-checked","aria-readonly","onKeyup"],ge=je({__name:"VueToggles",props:{modelValue:{type:Boolean,default:void 0},value:{type:Boolean,default:void 0},disabled:{type:Boolean},reverse:{type:Boolean},width:{default:75},height:{default:25},dotColor:{default:"#ffffff"},uncheckedBg:{default:"#939393"},checkedBg:{default:"#5850ec"},uncheckedTextColor:{default:"#ffffff"},checkedTextColor:{default:"#ffffff"},uncheckedText:{default:""},checkedText:{default:""},fontSize:{default:12},fontWeight:{default:"normal"}},emits:["update:modelValue","click"],setup(o,{emit:s}){const l=o,d=Ve(l.value||l.modelValue);Re(()=>{l.value!==void 0&&l.modelValue!==void 0&&console.warn('Avoid using both "v-model" and ":value" at the same time. Choose one for better predictability.'),d.value=l.value||l.modelValue});const t=de(()=>({width:`${l.width}px`,height:`${l.height}px`,background:d.value?l.checkedBg:l.uncheckedBg,opacity:l.disabled?"0.5":"1",cursor:l.disabled?"not-allowed":"pointer"})),i=de(()=>{const _={background:l.dotColor,width:`${l.height-8}px`,height:`${l.height-8}px`,"min-width":`${l.height-8}px`,"min-height":`${l.height-8}px`,"margin-left":d.value?`${l.width-(l.height-3)}px`:"5px"};return d.value?l.reverse?_["margin-left"]="5px":_["margin-left"]=`${l.width-(l.height-3)}px`:l.reverse?_["margin-left"]=`${l.width-(l.height-3)}px`:_["margin-left"]="5px",_}),c=de(()=>{const _={"font-weight":l.fontWeight,"font-size":`${l.fontSize}px`,color:d.value&&!l.disabled?l.checkedTextColor:l.uncheckedTextColor,right:d.value?`${l.height-3}px`:"auto",left:d.value?"auto":`${l.height-3}px`};return d.value?l.reverse?(_.left=`${l.height-3}px`,_.right="auto"):(_.right=`${l.height-3}px`,_.left="auto"):l.reverse?(_.right=`${l.height-3}px`,_.left="auto"):(_.left=`${l.height-3}px`,_.right="auto"),_}),h=()=>{l.disabled||(d.value=!d.value,s("update:modelValue",d.value),s("click"))};return(_,x)=>(a(),r("span",{class:"vue-toggles",style:ue(t.value),role:"switch",tabindex:"0","aria-checked":d.value,"aria-readonly":_.disabled,onKeyup:[be(P(h,["prevent"]),["enter"]),be(P(h,["prevent"]),["space"])],onClick:h},[e("span",{"aria-hidden":"true",style:ue(i.value),class:"vue-toggles__dot"},[_.checkedText||_.uncheckedText?(a(),r("span",{key:0,class:"vue-toggles__text",style:ue(c.value)},m(d.value?_.checkedText:_.uncheckedText),5)):f("",!0)],4)],44,ys))}}),bs={},xs={role:"button",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},vs=e("title",null,"close",-1),ws=e("path",{d:"M14.348 14.849a1.2 1.2 0 0 1-1.697 0L10 11.819l-2.651 3.029a1.2 1.2 0 1 1-1.697-1.697l2.758-3.15-2.759-3.152a1.2 1.2 0 1 1 1.697-1.697L10 8.183l2.651-3.031a1.2 1.2 0 1 1 1.697 1.697l-2.758 3.152 2.758 3.15a1.2 1.2 0 0 1 0 1.698z"},null,-1),ks=[vs,ws];function Fs(o,s){return a(),r("svg",xs,ks)}const Ls=Y(bs,[["render",Fs]]);const Cs={props:["team","domain_color","league"],components:{IconPhone:ve,IconSms:we,FormButton:se,Multiselect:he,VueToggles:ge,IconDropdown:ie,IconClose:Ls},mixins:[te],data(){return{step:1,form:{team_name:"",invite_code:"",coCaptains:[],designees:[],captain:null,availability_reminder:!1,axios:!0},validationErrors:{},isLoading:!1,designee:null,designees:[],filteredDesignees:[],captainWarning:!1,coCaptainWarning:!1,coCaptain:null,processing:!1,requiredFields:{team_name:"Team Name",invite_code:"Invite Code"},newCoCaptains:[],newDesignee:[],error:""}},watch:{team(o){o&&(this.form.team_name=o.name,this.form.invite_code=o.invite_code,this.form.designees=[...o.designees],this.form.availability_reminder=!!o.availability_reminder)}},computed:{captain(){if(this.team){const o=this.team.participants.find(s=>s.pivot.is_captain===!0);if(o)return this.form.captain=o.id,o}return null},coCaptains(){if(this.team){const o=this.team.participants.filter(s=>s.pivot.is_co_captain===!0);if(o)return this.form.coCaptains=[...o],o}return[]},user(){return Z(this.$page.props.auth,"user")},isCaptain(){var o,s;return((o=this.captain)==null?void 0:o.id)===((s=this.user)==null?void 0:s.id)},isCoCaptain(){return this.coCaptains.find(o=>{var s;return o.id===((s=this.user)==null?void 0:s.id)})},isDesignee(){return!!this.team.designees.find(o=>{var s;return o.id===((s=this.user)==null?void 0:s.id)})},isLeaguePublished(){return this.league.is_published},isRequiredCaptainWarning(){return this.captain&&this.captain.id!==this.form.captain},isRequiredCoCaptainWarning(){return this.newCoCaptains.length>0},isRequiredDesigneeWarning(){return this.form.designees.map(o=>o.id).filter(o=>!this.team.designees.map(s=>s.id).includes(o)).length>0},newCaptain(){return this.form.captain&&this.team.participants.find(o=>o.id===this.form.captain)},registrationClosed(){var o;return(o=this.league)==null?void 0:o.is_registration_closed},coCaptainOptions(){var o;return(o=this.team)==null?void 0:o.participants.filter(s=>s.id!=this.form.captain)}},methods:{selectedDesignee(o){this.designee=null,this.form.designees.push(o),this.newDesignee.push(o)},updateTeamDetails(){axios.post("/team/"+this.team.id+"/update",this.form).then(o=>{o.data==!0?setTimeout(()=>{this.processing=!1,this.step=1,this.newCoCaptains=[],this.newDesignee=[],this.$emit("updatedTeamDetails"),this.$toast.open({message:"Team Details Updated",type:"success"})},2e3):(this.validationErrors.team_name=[o.data],this.processing=!1)})},validateForm(){this.processing=!0,this.validationErrors={},this.requiredFields;let o=!0,s={},l=this.form;for(let d in this.requiredFields)l[d]||(o=!1,s[d]=[`${this.requiredFields[d]} is required.`]);o?this.isRequiredCaptainWarning||this.isRequiredCoCaptainWarning||this.isRequiredDesigneeWarning?(this.processing=!1,this.step=3):this.updateTeamDetails():(this.validationErrors=s,this.processing=!1)},addCoCaptain(){if(this.coCaptain===null||this.form.coCaptains.find(o=>{var s;return o.id===((s=this.coCaptain)==null?void 0:s.id)}))return!1;this.coCaptains.find(o=>{var s;return o.id===((s=this.coCaptain)==null?void 0:s.id)})||this.newCoCaptains.push(Object.assign({},{id:this.coCaptain.id,first_name:this.coCaptain.first_name,last_name:this.coCaptain.last_name})),this.form.coCaptains.push(Object.assign({},{id:this.coCaptain.id,first_name:this.coCaptain.first_name,last_name:this.coCaptain.last_name}))},removeCoCaptain(o){if(!this.coCaptains.find(s=>{var l;return s.id===((l=this.coCaptain)==null?void 0:l.id)})){let s=this.newCoCaptains.findIndex(l=>{var d;return l.id===((d=this.coCaptain)==null?void 0:d.id)});this.newCoCaptains.splice(s,1)}this.form.coCaptains.splice(o,1)},removeDesignee(o){this.form.designees.splice(o,1)},limitText(o){return`${o} designees selected`},asyncFind:window._.debounce(function(o){axios.get("/designees",{params:{query:o}}).then(s=>{this.filteredDesignees=s.data.filter(l=>!this.form.designees.map(d=>d.id).includes(l.id))})},500),clearAll(){this.selectedCountries=[]},nameWithEmail({first_name:o,last_name:s,email:l}){return`${o} ${s} — ${l}`},getFixedHeight(){return window.innerHeight-50+"px"}}},Ts={key:0,class:""},Os=e("h1",{class:"font-header text-3xl mb-2"},"Team Details",-1),Ss={class:"font-header text-3xl"},Is={key:0,class:"max-w-xs mx-auto mt-10"},Ps={class:"w-full flex space-x-2"},Es=e("span",{class:"font-bold"},"Captain: ",-1),Ms={class:""},As={class:"w-full flex space-x-2"},Ds=e("span",{class:"font-bold"},"Email: ",-1),js={class:""},Vs=["href"],Rs={class:"w-full flex space-x-2"},Ns=e("span",{class:"font-bold"},"Phone: ",-1),Us={class:""},Bs={class:"flex space-x-3 justify-center items-center"},Hs=["href"],zs=["href"],Ws={key:1,class:"max-w-xs mx-auto mt-10"},Ks={class:"mb-2"},$s={class:"w-full flex space-x-2"},Ys=e("span",{class:"font-bold"},"Co-Captain: ",-1),Xs={class:""},Js={class:"w-full flex space-x-2"},Zs=e("span",{class:"font-bold"},"Email: ",-1),Qs={class:""},Gs=["href"],qs={class:"w-full flex space-x-2"},ei=e("span",{class:"font-bold"},"Phone: ",-1),ti={class:""},li={class:"flex space-x-3 justify-center items-center"},si=["href"],ii=["href"],oi={key:2,class:"max-w-xs mx-auto mt-10"},ni={class:"mb-2"},ai={class:"w-full flex space-x-2"},ri=e("span",{class:"font-bold"},"Designee: ",-1),ci={class:""},di={class:"w-full flex space-x-2"},ui=e("span",{class:"font-bold"},"Email: ",-1),mi={class:""},hi=["href"],fi={class:"w-full flex space-x-2"},pi=e("span",{class:"font-bold"},"Phone: ",-1),_i={class:""},gi={class:"flex space-x-3 justify-center items-center"},yi=["href"],bi=["href"],xi={key:3,class:"max-w-xs mx-auto mt-10"},vi={class:"w-full flex space-x-2"},wi=e("span",{class:"font-bold"},"Invite Code: ",-1),ki={class:""},Fi={key:1,class:""},Li=e("h1",{class:"text-3xl text-center font-bold uppercase mb-8 font-bebe"},"Edit Team Details",-1),Ci={class:"flex flex-wrap -mx-2"},Ti={class:"w-full sm_flex-1 mb-2 px-2"},Oi=e("label",{class:"label"},"Team Name",-1),Si=["disabled"],Ii={key:0,class:"block text-red text-xs font-bold rounded my-1"},Pi={class:"w-full sm_flex-1 mb-2 px-2"},Ei=e("label",{class:"label"},"Team Invite Code",-1),Mi=["disabled"],Ai={key:0,class:"block text-red text-xs font-bold rounded my-1"},Di={key:0,class:"w-full sm_flex-1 mb-2 px-2"},ji=e("label",{class:"label"},"Captain",-1),Vi={class:"w-full relative"},Ri=["value"],Ni={key:0,class:"block text-red text-xs font-bold rounded my-1"},Ui={class:"w-full sm_flex-1 mb-2 px-2"},Bi=e("label",{class:"label"},"Co-Captain",-1),Hi={class:"w-full relative"},zi=["selected"],Wi=["value"],Ki={key:0,class:"block text-red text-xs font-bold rounded my-1"},$i={class:"mt-2"},Yi=["onClick"],Xi={class:"w-full sm_flex-1 mb-2 px-2"},Ji=e("label",{class:"label"},"Designee(s)",-1),Zi=e("p",{class:"text-xs mb-1"},"Team Designees can view the team roster, edit team details, invite new players, send emails and view league schedules and standings. Team Designees are NOT permitted to participate as a player.",-1),Qi={class:"w-full relative"},Gi={slot:"clear","slot-scope":"props"},qi=e("span",{slot:"noResult"},"Oops! No desinees found. Consider changing the email.",-1),eo={key:0,class:"block text-red text-xs font-bold rounded my-1"},to={class:"mt-2"},lo=["onClick"],so={class:"w-full sm_flex-1 mb-2 px-2"},io={class:"w-full relative flex space-x-2 items-center"},oo=e("label",{class:"label"},"Availability Email Reminders:",-1),no=e("p",{class:"text-xs mb-1 text-left"},"Turn On/Off Availability Email Reminders for your teammates.",-1),ao={key:2,class:""},ro={key:0,class:"text-3xl text-center font-bold uppercase mb-4 font-bebe"},co={key:0,class:"text-lg"},uo={key:1,class:"mt-6"},mo={key:0,class:"text-lg"},ho={key:1,class:"text-lg"},fo={class:"mt-4 list-disc list-inside"},po={key:2,class:"mt-6"},_o={key:0,class:"text-lg"},go={key:1,class:"text-lg"},yo={class:"mt-4 list-disc list-inside"},bo={class:"flex justify-center space-x-4 mt-10"};function xo(o,s,l,d,t,i){const c=V("icon-phone"),h=V("icon-sms"),_=V("form-button"),x=V("icon-dropdown"),n=V("icon-close"),u=V("multiselect"),y=V("vue-toggles"),T=V("modal");return a(),H(T,{ref:"modal",clickToClose:!1,escToClose:!0,fixedHeight:i.getFixedHeight()},{default:A(()=>[t.step===1&&l.team?(a(),r("div",Ts,[Os,e("h2",Ss,m(l.team.name),1),i.captain?(a(),r("div",Is,[e("div",Ps,[Es,e("span",Ms,m(i.captain.first_name)+" "+m(i.captain.last_name),1)]),e("div",As,[Ds,e("span",js,[e("a",{href:"mailto:"+i.captain.email},m(i.captain.email),9,Vs)])]),e("div",Rs,[Ns,e("span",Us,[e("div",Bs,[e("span",null,m(i.captain.mobile_phone),1),i.captain.mobile_phone?(a(),r("a",{key:0,href:"tel:"+i.captain.mobile_phone},[w(c,{class:"h-4 w-4 md:h-5 md:w-5 cursor-pointer text-indigo-500"})],8,Hs)):f("",!0),i.captain.mobile_phone?(a(),r("a",{key:1,href:"sms:+"+i.captain.mobile_phone},[w(h,{class:"h-4 w-4 md:h-5 md:w-5 cursor-pointer text-indigo-500"})],8,zs)):f("",!0)])])])])):f("",!0),i.coCaptains.length?(a(),r("div",Ws,[(a(!0),r(C,null,R(i.coCaptains,b=>(a(),r("div",Ks,[e("div",$s,[Ys,e("span",Xs,m(b.first_name)+" "+m(b.last_name),1)]),e("div",Js,[Zs,e("span",Qs,[e("a",{href:"mailto:"+b.email},m(b.email),9,Gs)])]),e("div",qs,[ei,e("span",ti,[e("div",li,[e("span",null,m(b.mobile_phone),1),b.mobile_phone?(a(),r("a",{key:0,href:"tel:"+b.mobile_phone},[w(c,{class:"h-4 w-4 md:h-5 md:w-5 cursor-pointer text-indigo-500"})],8,si)):f("",!0),b.mobile_phone?(a(),r("a",{key:1,href:"sms:+"+b.mobile_phone},[w(h,{class:"h-4 w-4 md:h-5 md:w-5 cursor-pointer text-indigo-500"})],8,ii)):f("",!0)])])])]))),256))])):f("",!0),l.team.designees.length?(a(),r("div",oi,[(a(!0),r(C,null,R(l.team.designees,b=>(a(),r("div",ni,[e("div",ai,[ri,e("span",ci,m(b.first_name)+" "+m(b.last_name),1)]),e("div",di,[ui,e("span",mi,[e("a",{href:"mailto:"+b.email},m(b.email),9,hi)])]),e("div",fi,[pi,e("span",_i,[e("div",gi,[e("span",null,m(b.mobile_phone),1),b.mobile_phone?(a(),r("a",{key:0,href:"tel:"+b.mobile_phone},[w(c,{class:"h-4 w-4 md:h-5 md:w-5 cursor-pointer text-indigo-500"})],8,yi)):f("",!0),b.mobile_phone?(a(),r("a",{key:1,href:"sms:+"+b.mobile_phone},[w(h,{class:"h-4 w-4 md:h-5 md:w-5 cursor-pointer text-indigo-500"})],8,bi)):f("",!0)])])])]))),256))])):f("",!0),i.isCaptain||i.isCoCaptain||i.isDesignee?(a(),r("div",xi,[e("div",vi,[wi,e("span",ki,m(l.team.invite_code?l.team.invite_code:"No team invite code"),1)])])):f("",!0),i.isCaptain||i.isCoCaptain||i.isDesignee?(a(),H(_,{key:4,onClick:s[0]||(s[0]=b=>t.step=2),class:"mt-10 !w-2/3",domain_color:l.domain_color},{default:A(()=>[L("Edit Team Details ")]),_:1},8,["domain_color"])):f("",!0)])):f("",!0),t.step===2?(a(),r("div",Fi,[Li,e("div",null,[e("form",null,[e("div",Ci,[e("div",Ti,[Oi,j(e("input",{type:"text",class:"input",id:"first_name","onUpdate:modelValue":s[1]||(s[1]=b=>t.form.team_name=b),maxlength:30,disabled:i.isLeaguePublished},null,8,Si),[[W,t.form.team_name]]),t.validationErrors.team_name?(a(),r("span",Ii,m(t.validationErrors.team_name[0]),1)):f("",!0)]),e("div",Pi,[Ei,j(e("input",{type:"text",class:"input",id:"first_name","onUpdate:modelValue":s[2]||(s[2]=b=>t.form.invite_code=b),maxlength:30,disabled:i.registrationClosed},null,8,Mi),[[W,t.form.invite_code]]),t.validationErrors.invite_code?(a(),r("span",Ai,m(t.validationErrors.invite_code[0]),1)):f("",!0)]),i.isCaptain?(a(),r("div",Di,[ji,e("div",Vi,[j(e("select",{class:"inline-block appearance-none w-full bg-white border border-market-gray text-market-gray py-2 pl-2 pr-6 rounded",id:"billing_country","onUpdate:modelValue":s[3]||(s[3]=b=>t.form.captain=b)},[(a(!0),r(C,null,R(l.team.participants,b=>(a(),r("option",{key:b.id,value:b.id},m(b.first_name)+" "+m(b.last_name),9,Ri))),128))],512),[[$,t.form.captain]]),w(x),t.validationErrors.captain?(a(),r("span",Ni,m(t.validationErrors.captain),1)):f("",!0)])])):f("",!0),e("div",Ui,[Bi,e("div",Hi,[j(e("select",{class:"inline-block appearance-none w-full bg-white border border-market-gray text-market-gray py-2 pl-2 pr-6 rounded",id:"billing_country","onUpdate:modelValue":s[4]||(s[4]=b=>t.coCaptain=b),onChange:s[5]||(s[5]=b=>i.addCoCaptain())},[e("option",{value:null,selected:this.form.coCaptains.length===0},"-",8,zi),(a(!0),r(C,null,R(i.coCaptainOptions,b=>(a(),r("option",{key:b.id,value:b},m(b.first_name)+" "+m(b.last_name),9,Wi))),128))],544),[[$,t.coCaptain]]),w(x),t.validationErrors.coCaptain?(a(),r("span",Ki,m(t.validationErrors.coCaptain),1)):f("",!0)]),e("ul",$i,[(a(!0),r(C,null,R(t.form.coCaptains,(b,F)=>(a(),r("li",{key:b.id,class:"flex item-center space-x-2"},[e("span",null,m(b.first_name)+" "+m(b.last_name),1),e("button",{type:"button",onClick:B=>i.removeCoCaptain(F)},[w(n,{class:"text-red w-6 h-6"})],8,Yi)]))),128))])]),e("div",Xi,[Ji,Zi,e("div",Qi,[w(u,{modelValue:t.designee,"onUpdate:modelValue":s[7]||(s[7]=b=>t.designee=b),onSelect:i.selectedDesignee,id:"ajax","custom-label":i.nameWithEmail,"track-by":"email",placeholder:"Enter Email to Search for a Designee","open-direction":"bottom",options:t.filteredDesignees,multiple:!1,searchable:!0,loading:t.isLoading,"internal-search":!1,"clear-on-select":!0,"close-on-select":!1,"options-limit":5,"max-height":600,"show-no-results":!1,"hide-selected":!0,onSearchChange:i.asyncFind},{default:A(()=>[e("template",Gi,[t.form.designees.length?(a(),r("div",{key:0,class:"multiselect__clear",onMousedown:s[6]||(s[6]=P(b=>i.clearAll(o.props.search),["prevent","stop"]))},null,32)):f("",!0)]),qi]),_:1},8,["modelValue","onSelect","custom-label","options","loading","onSearchChange"]),t.validationErrors.designees?(a(),r("span",eo,m(t.validationErrors.designees),1)):f("",!0)]),e("ul",to,[(a(!0),r(C,null,R(t.form.designees,(b,F)=>(a(),r("li",{key:b.id,class:"flex item-center space-x-2"},[e("span",null,m(b.first_name)+" "+m(b.last_name),1),e("button",{type:"button",onClick:B=>i.removeDesignee(F)},[w(n,{class:"text-red w-6 h-6"})],8,lo)]))),128))])]),e("div",so,[e("div",io,[oo,w(y,{modelValue:t.form.availability_reminder,"onUpdate:modelValue":s[8]||(s[8]=b=>t.form.availability_reminder=b),width:"50",checkedBg:"#3DDE75"},null,8,["modelValue"])]),no]),w(_,{class:"mt-10 !w-2/3 mx-auto",onClick:P(i.validateForm,["prevent"]),domain_color:l.domain_color,processing:t.processing},{default:A(()=>[L("Save ")]),_:1},8,["onClick","domain_color","processing"])])])])])):f("",!0),t.step===3?(a(),r("div",ao,[i.isRequiredCaptainWarning?(a(),r("h1",ro,"Team Captain Status Change")):f("",!0),e("div",null,[i.isRequiredCaptainWarning?(a(),r("h2",co,[e("strong",null,"You are changing the captain from "+m(i.captain.first_name)+" "+m(i.captain.last_name)+" to "+m(i.newCaptain?i.newCaptain.first_name+" "+i.newCaptain.last_name:"")+".",1),L(" Transferring Captain status to your teammate will cause you to lose access to Captain abilities. Are you sure you want to proceed? ")])):f("",!0),i.isRequiredCoCaptainWarning?(a(),r("div",uo,[t.form.coCaptains.length>0?(a(),r("h2",mo,"You are assigning the following players the role of Co-Captain. Are you sure?")):(a(),r("h2",ho,"You don't have anyone assigned to the role of Co-Captain. Are you sure?")),e("ul",fo,[(a(!0),r(C,null,R(t.newCoCaptains,(b,F)=>(a(),r("li",{key:b.id},[e("span",null,m(b.first_name)+" "+m(b.last_name),1)]))),128))])])):f("",!0),i.isRequiredDesigneeWarning?(a(),r("div",po,[t.form.designees.length>0?(a(),r("h2",_o,"You are assigning the following Designee(s) to team. Are you sure?")):(a(),r("h2",go,"You don't have designee(s) assigned to the team. Are you sure?")),e("ul",yo,[(a(!0),r(C,null,R(t.newDesignee,(b,F)=>(a(),r("li",{key:b.id},[e("span",null,m(b.first_name)+" "+m(b.last_name),1)]))),128))])])):f("",!0),e("div",bo,[w(_,{onClick:s[9]||(s[9]=P(b=>{i.updateTeamDetails(),t.processing=!0},["prevent"])),domain_color:l.domain_color,processing:t.processing},{default:A(()=>[L("Save ")]),_:1},8,["domain_color","processing"]),w(_,{onClick:s[10]||(s[10]=P(b=>t.step=2,["prevent"])),domain_color:l.domain_color,secondary:!0},{default:A(()=>[L("Cancel ")]),_:1},8,["domain_color"])])])])):f("",!0)]),_:1},8,["fixedHeight"])}const vo=Y(Cs,[["render",xo]]),wo={mixins:[te],props:["domain_color","team"],components:{InviteFriend:Se},data(){return{pastTeammates:[],pastLeagues:[],pendingInvites:[]}},methods:{getPastTeammates(){axios.get("/past-teammates/"+this.team.id).then(o=>{this.pastTeammates=o.data.past_teammates,this.pastLeagues=o.data.past_leagues,this.pendingInvites=o.data.pending_invites})}},watch:{team(o){o&&this.getPastTeammates()}}},ko={key:0,class:"mt-4 w-full"},Fo=e("h1",{class:"font-header text-3xl text-center mb-6"},"Pending Invites",-1);function Lo(o,s,l,d,t,i){const c=V("InviteFriend"),h=V("modal");return a(),H(h,{ref:"modal",clickToClose:!0,escToClose:!0,width:"600",onClosed:s[0]||(s[0]=_=>i.getPastTeammates())},{default:A(()=>[l.team?(a(),r("div",ko,[Fo,w(c,{domain_color:l.domain_color,"past-leagues":t.pastLeagues,friends:t.pastTeammates,"team-members":l.team.participants,team:l.team,pendingInvites:t.pendingInvites},null,8,["domain_color","past-leagues","friends","team-members","team","pendingInvites"])])):f("",!0)]),_:1},512)}const Co=Y(wo,[["render",Lo]]),To={props:{domain_color:String,league:[Object,null],teamId:[Number,null]},components:{CopyIcon:De,IconSms:we,IconPhone:ve,TeamMessageModal:Yt,IconHelp:_e,IconEdit:tt,IconCheck:Fe,CheckOIcon:Ft,CloseOIcon:It,IconX:Le,IconChevronSolid:Je,LineupCardModal:gs,ViewMyTeamDetailsModal:vo,FormButton:se,VueToggles:ge,IconDocument:yt,ManageTeamInvitesModal:Co},data(){return{form:{selectedPlayers:[]},isMessageModel:!0,team:null,manageablePerson:null,isFetching:!1,registration:null,games:[],availabilities:[],selectedGame:null,copied:{emails:!1,phones:!1},availabilitySection:!1}},computed:{isFreeAgent(){return!this.team},allPlayers(){if(this.team){let o=this.team.participants.filter(s=>s.pivot.is_captain||s.pivot.is_co_captain);return o=o.concat(this.team.designees),o.concat(this.team.participants.filter(s=>!s.pivot.is_captain&&!s.pivot.is_co_captain).sort((s,l)=>s.first_name.localeCompare(l.first_name)))}else{let o=this.user;return o.pivot={is_captain:!1,is_co_captain:!1},[o]}},authorities(){return this.isFreeAgent?this.allPlayers.map(o=>o.id):this.allPlayers.filter(o=>!o.pivot||o.pivot.is_captain||o.pivot.is_co_captain).map(o=>o.id)},user(){return Z(this.$page.props,"user")},showError(){return this.form.selectedPlayers.length===0},averageSkillLevels(){var o,s;if(this.league.is_club_challenge){const l=(o=this.team)==null?void 0:o.participants.map(d=>parseFloat(d.skill_level??0)).sort((d,t)=>t-d).filter((d,t)=>t<6);return l?l.reduce((d,t)=>d+t,0)/l.length:0}else{const l=(s=this.team)==null?void 0:s.participants.map(d=>parseFloat(d.skill_level??0)).sort((d,t)=>t-d);return Array.isArray(l)&&l.length>0?l[0]:0}},checkedBg(){return this.domain_color==="pickleball-green"?"#82cd33":this.domain_color==="cornhole-orange"?"#ff9000":"#E10200"}},methods:{toggleSections(){this.availabilitySection=!this.availabilitySection},selectAll(){this.form.selectedPlayers.length!==this.allPlayers.length?this.form.selectedPlayers=this.allPlayers:this.form.selectedPlayers=[]},openEmailModal(o){this.isMessageModel=!1,this.$refs.messageModal.openModal()},openMessageModal(o){this.isMessageModel=!0,this.$refs.messageModal.openModal()},sendEmail(o){this.form.selectedPlayers.forEach(s=>{s.name=s.first_name+" "+s.last_name}),axios.post(route("send-team-message"),{message:o,friends:this.form.selectedPlayers,team_id:this.team.id,axios:!0}).then(s=>{this.$toast.open({message:"Team Message Sent",type:"success"}),this.form.selectedPlayers=[]})},updateAvailability(o,s,l){axios.post(route("get-my-team.availability",[this.league.id,this.teamId]),{game:o,participant:s,team:this.team.id,action:l?"in":"out"}).then(d=>{console.log(d),this.availabilities[o][s]=l})},resetAvailability(o,s){this.availabilities[o][s]=null},openLineupCardModal(o){this.selectedGame=o,this.$refs.lineupCardModal.openModal()},openViewMyTeamDetailsModal(){this.$refs.viewMyTeamDetailsModal.openModal()},openManageTeamInvitesModal(){this.$refs.manageTeamInvitesModal.openModal()},copyList(o){const s=document.createElement("textarea");o==="emails"?this.manageablePerson?s.value=this.allPlayers.map(d=>d.email).join(","):s.value=this.allPlayers.filter(d=>!d.pivot||d.pivot.is_captain||d.pivot.is_co_captain).map(d=>d.email).join(`
`):this.manageablePerson?window.screen.width>=900?s.value=this.allPlayers.map(d=>d.mobile_phone).join(`
`):s.value=this.allPlayers.map(d=>d.mobile_phone).join(","):s.value=this.allPlayers.filter(d=>!d.pivot||d.pivot.is_captain||d.pivot.is_co_captain).map(d=>d.mobile_phone).join(`
`),s.setAttribute("readonly",""),s.style.position="absolute",s.style.left="-9999px",document.body.appendChild(s);const l=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;s.select(),document.execCommand("copy"),document.body.removeChild(s),l&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(l)),o==="emails"?(this.copied.emails=!0,setTimeout(()=>{this.copied.emails=!1},2e3)):(this.copied.phones=!0,setTimeout(()=>{this.copied.phones=!1},2e3))},getTeamDetails(){var o;this.isFetching=!0,axios.get(route("get-my-team",[(o=this.league)==null?void 0:o.id,this.teamId])).then(s=>{this.team=s.data.team,this.manageablePerson=s.data.manageablePerson,this.registration=s.data.registration,this.games=s.data.games,this.availabilities=s.data.availabilities,this.isFetching=!1})}},mounted(){this.getTeamDetails(),window.screen.width<600&&(this.availabilitySection=!this.league.singles)}},Oo={class:"border border-black p-2 mt-4"},So={key:0,class:"text-5xl font-header mb-3"},Io={key:1,class:"text-5xl font-header mb-3"},Po={key:2,class:"font-bold text-2xl mb-2"},Eo={class:"flex flex-col md:flex-row space-y-2 md:space-y-0 justify-center md:space-x-2"},Mo=["href"],Ao=me('<div class="flex justify-end mt-6"><table class="border border-gray-light border-collapse text-sm"><tr class="border border-gray-light"><th colspan="2">Legend</th></tr><tr class="border border-gray-light"><td class="px-2 font-bold border-gray-light border">(C)</td><td class="px-2 border border-gray-light">Captain</td></tr><tr class="border border-gray-light"><td class="px-2 border border-gray-light font-bold">(CC)</td><td class="px-2 border border-gray-light">Co-Captain</td></tr><tr class="border border-gray-light"><td class="px-2 border border-gray-light font-bold">(D)</td><td class="px-2 border border-gray-light">Designee</td></tr></table></div>',1),Do={key:3,class:"flex md:hidden mx-auto space-x-6 w-full md:w-2/3 justify-center md:px-10 mt-10"},jo=e("span",{class:"whitespace-nowrap"},"Contact Info",-1),Vo=e("span",{class:"whitespace-nowrap"},"Availability",-1),Ro=e("p",{class:"text-xs font-bold text-left mt-2 -mb-2"},"NOTE: Availability is for communication between teammates ONLY. It is the Captain's responsibility to notify the league if the team is unable to play.",-1),No={class:"w-full whitespace-no-wrap overflow-x-scroll xl:overflow-visible"},Uo={class:"w-full border-collapse mt-6"},Bo={class:"bg-gray-light"},Ho=e("th",{class:"font-semibold border-t-2 border-l-2 border-gray text-base lg:text-xl pt-2 md:table-cell",colspan:"2"},"Player ",-1),zo={class:"relative"},Wo=e("span",{class:"hidden lg:block"},"Email",-1),Ko=[Wo],$o=e("span",{class:"hidden lg:block"},"Phone",-1),Yo=[$o],Xo=["colspan"],Jo={class:"relative w-auto"},Zo={class:"bg-gray-light"},Qo={colspan:"2",class:"border-l-2 border-gray border-b-2 text-xs font-semibold pb-4 text-left md:table-cell"},Go=e("span",{class:"font-semibold whitespace-nowrap"}," Select All ",-1),qo=e("span",{class:"font-semibold whitespace-nowrap"}," Unselect All ",-1),en={class:"w-full flex justify-center"},tn={class:"font-semibold whitespace-nowrap"},ln={class:"w-full flex justify-center"},sn={class:"font-semibold whitespace-nowrap"},on={class:"block"},nn={class:"block"},an={class:"even:bg-gray-lighter odd:bg-white"},rn={class:"text-right text-xs py-3 border-b-2 border-gray md:table-cell"},cn=["value"],dn={class:"text-left font-semibold text-sm py-3 border-b-2 border-gray md:table-cell md:w-[300px]"},un={key:0,class:"mr-1 font-semibold"},mn={key:1,class:"mr-1 font-semibold"},hn={key:2,class:"mr-1 font-semibold"},fn={key:0},pn={class:"hidden lg:block"},_n={key:0},gn={key:1},yn={class:"lg:hidden w-full flex justify-center"},bn=["href"],xn={class:"hidden lg:block"},vn={key:0,class:"flex space-x-2 justify-center"},wn=["href"],kn=["href"],Fn={key:1},Ln={class:"lg:hidden w-full flex justify-center"},Cn=["href"],Tn=["onClick","disabled"],On=["onClick","disabled"],Sn={key:2,class:"flex flex-col items-start p-1"},In={class:"flex items-center"},Pn=["onInput","checked"],En=e("label",{class:"text-xs font-semibold ml-1"},"In",-1),Mn={class:"flex items-center"},An=["onInput","checked"],Dn=e("label",{class:"text-xs font-semibold ml-1"},"Out",-1),jn={key:1,class:"self-center"},Vn={class:"border-t border-gray bg-white"},Rn={colspan:"2",rowspan:"2",class:"md:table-cell"},Nn={class:"md:flex flex-col py-1 space-y-1 hidden"},Un={class:"relative w-auto"},Bn={class:"bg-white"},Hn={class:"absolute hidden md:flex justify-end lg:relative top-1/2 -mt-3 lg:mt-0 right-6 whitespace-nowrap"},zn={class:"relative w-auto"},Wn=["onClick"],Kn=["onClick"],$n={class:"md:hidden mt-2"},Yn={key:1,class:"w-full"},Xn={class:"relative w-auto"},Jn={key:4,class:"text-left text-sm font-medium mt-4"};function Zn(o,s,l,d,t,i){const c=V("form-button"),h=V("VueToggles"),_=V("icon-help"),x=V("check-o-icon"),n=V("close-o-icon"),u=V("copy-icon"),y=V("icon-sms"),T=V("icon-phone"),b=V("icon-check"),F=V("icon-x"),B=V("icon-document"),p=V("icon-chevron-solid"),v=V("team-message-modal"),k=V("lineup-card-modal"),O=V("view-my-team-details-modal"),M=V("manage-team-invites-modal");return a(),r("div",Oo,[t.isFetching?(a(),r("p",{key:0,class:g("text-"+l.domain_color)},"Loading..",2)):(a(),r(C,{key:1},[t.team?(a(),r("h2",So,m(t.team.name),1)):f("",!0),i.isFreeAgent?(a(),r("h2",Io,"FREE AGENT")):f("",!0),t.manageablePerson?(a(),r("div",Po,"Invite Code: "+m(t.team.invite_code),1)):f("",!0),e("div",Eo,[e("div",null,[t.manageablePerson?(a(),H(c,{key:0,onClick:P(i.openManageTeamInvitesModal,["prevent"]),domain_color:l.domain_color},{default:A(()=>[L("Manage Team Invites")]),_:1},8,["onClick","domain_color"])):f("",!0)]),e("div",null,[t.manageablePerson?(a(),H(c,{key:0,onClick:P(i.openViewMyTeamDetailsModal,["prevent"]),domain_color:l.domain_color},{default:A(()=>[L("Manage Team Details")]),_:1},8,["onClick","domain_color"])):f("",!0)]),t.registration?(a(),r("a",{key:0,href:o.route("view-receipt",t.registration.id)},[w(c,{domain_color:l.domain_color},{default:A(()=>[L(" View My Receipt ")]),_:1},8,["domain_color"])],8,Mo)):f("",!0)]),Ao,!i.isFreeAgent&&!l.league.singles?(a(),r("div",Do,[jo,w(h,{value:t.availabilitySection,class:"flex-shrink-0",width:55,checkedBg:i.checkedBg,onClick:i.toggleSections},null,8,["value","checkedBg","onClick"]),Vo])):f("",!0),Ro,e("div",No,[e("table",Uo,[e("tr",Bo,[Ho,l.league.type==="flex"?(a(),r("th",{key:0,class:g(["font-semibold border-t-2 border-gray text-base lg:text-xl pt-2 px-4 md:table-cell",{hidden:t.availabilitySection,"table-cell":!t.availabilitySection}])},[e("div",zo,[w(_,{class:"w-4 absolute -right-5 lg:-right-4",dir:"down",message:"Each JPB player has a Skill Level. The total Skill Level at the bottom is determined as follows: for CLUB CHALLENGE leagues it is the average of the highest 6 skill levels on the team, while for FLEX leagues it is the highest skill level on the team. This determines the Team’s Skill Category."}),L(" Skill ")])],2)):f("",!0),e("th",{class:g(["font-semibold border-t-2 border-gray text-base lg:text-xl pt-2 md:table-cell whitespace-no-wrap w-8 lg:w-auto",{hidden:t.availabilitySection,"table-cell":!t.availabilitySection}])},Ko,2),e("th",{class:g(["font-semibold border-t-2 border-gray text-base lg:text-xl pt-2 md:table-cell whitespace-no-wrap w-8 lg:w-auto",{hidden:t.availabilitySection,"table-cell":!t.availabilitySection}])},Yo,2),t.games.length>0&&!l.league.singles&&l.league.is_published?(a(),r("th",{key:1,class:g(["font-semibold border-t-2 border-r-2 border-gray text-base lg:text-xl pt-2 relative md:table-cell",{hidden:!t.availabilitySection,"table-cell":t.availabilitySection}]),colspan:t.games.length+1},[e("span",Jo,[w(_,{class:"w-4 absolute -right-6",dir:"down",message:"For each match/game, each teammate should select IN or OUT for their Availability. This allows the Captain to accurately create the Lineup Card. To edit your selection, simply click on the checkmark or X and resubmit your selection."}),L(" AVAILABILITY ")])],10,Xo)):f("",!0)]),e("tr",Zo,[e("th",Qo,[e("div",{class:g(["w-full justify-center",{hidden:t.availabilitySection,flex:!t.availabilitySection}])},[t.manageablePerson?(a(),r("button",{key:0,class:"flex items-center space-x-1",onClick:s[0]||(s[0]=(...I)=>i.selectAll&&i.selectAll(...I))},[t.form.selectedPlayers.length!==i.allPlayers.length?(a(),r(C,{key:0},[w(x,{class:"w-5 inline-flex"}),Go],64)):(a(),r(C,{key:1},[w(n,{class:"w-5 inline-flex"}),qo],64))])):f("",!0)],2)]),l.league.type==="flex"?(a(),r("th",{key:0,class:g(["border-b-2 border-gray text-base lg:text-xl font-semibold pb-4 md:table-cell",{hidden:t.availabilitySection,"table-cell":!t.availabilitySection}])}," Level ",2)):f("",!0),e("th",{class:g(["border-b-2 border-gray text-xxs lg:text-xs pb-4 text-left relative px-4 md:table-cell",{hidden:t.availabilitySection,"table-cell":!t.availabilitySection}])},[e("div",en,[t.manageablePerson?(a(),r("button",{key:0,class:"-rotate-90 lg:rotate-0 flex absolute lg:relative top-0 -left-4 lg:items-center lg:space-x-1 lg:pl-6",onClick:s[1]||(s[1]=I=>i.copyList("emails"))},[w(u,{class:"w-5 inline-flex"}),e("span",tn,m(t.copied.emails?"Copied":"Copy")+" list",1)])):f("",!0)])],2),e("th",{class:g(["border-b-2 border-gray text-xxs lg:text-xs pb-4 relative px-4 md:table-cell",{hidden:t.availabilitySection,"table-cell":!t.availabilitySection}])},[e("div",ln,[t.manageablePerson?(a(),r("button",{key:0,class:"-rotate-90 lg:rotate-0 flex absolute lg:relative top-0 -left-4 lg:items-center lg:space-x-1 lg:pl-6",onClick:s[2]||(s[2]=I=>i.copyList("phones"))},[w(u,{class:"w-5 inline-flex"}),e("span",sn,m(t.copied.phones?"Copied":"Copy")+" list",1)])):f("",!0)])],2),(a(!0),r(C,null,R(t.games,I=>(a(),r(C,null,[!l.league.singles&&l.league.is_published?(a(),r("th",{key:0,class:g(["border-2 border-gray bg-gray-lighter font-bold text-xs p-1 whitespace-nowrap md:table-cell",{hidden:!t.availabilitySection,"table-cell":t.availabilitySection}])},[e("span",on,m(I.short_date?I.short_date:"TBD"),1),e("span",nn,m(I.time_formatted),1)],2)):f("",!0)],64))),256))]),(a(!0),r(C,null,R(i.allPlayers,I=>(a(),r("tr",an,[e("td",rn,[t.manageablePerson?j((a(),r("input",{key:0,type:"checkbox",class:g([{hidden:t.availabilitySection,"table-cell":!t.availabilitySection},"mr-1"]),"onUpdate:modelValue":s[3]||(s[3]=S=>t.form.selectedPlayers=S),value:I},null,10,cn)),[[ke,t.form.selectedPlayers]]):f("",!0)]),e("td",dn,[L(m(I.first_name)+" "+m(I.last_name)+" ",1),I.pivot.is_captain?(a(),r("span",un,"(C)")):f("",!0),I.pivot.is_co_captain?(a(),r("span",mn,"(CC)")):f("",!0),I.pivot.is_captain===void 0?(a(),r("span",hn,"(D)")):f("",!0)]),l.league.type==="flex"?(a(),r("td",{key:0,class:g(["py-3 text-sm border-b-2 border-gray md:table-cell",{hidden:t.availabilitySection,"table-cell":!t.availabilitySection}])},[I.pivot.is_captain!==void 0?(a(),r("span",fn,m(I.skill_level?parseFloat(I.skill_level).toFixed(2):0),1)):f("",!0)],2)):f("",!0),e("td",{class:g(["text-left font-semibold text-sm py-3 border-b-2 border-gray md:table-cell",{hidden:t.availabilitySection,"table-cell":!t.availabilitySection}])},[e("span",pn,[t.manageablePerson||i.authorities.includes(I.id)?(a(),r("span",_n,m(I.email),1)):(a(),r("span",gn,"-"))]),e("span",yn,[t.manageablePerson||i.authorities.includes(I.id)?(a(),r("a",{key:0,href:"mailto:"+I.email},[w(y,{class:"h-4 w-4 md:h-5 md:w-5 cursor-pointer text-black"})],8,bn)):f("",!0)])],2),e("td",{class:g(["py-3 text-sm font-semibold border-b-2 border-gray md:table-cell",{hidden:t.availabilitySection,"table-cell":!t.availabilitySection}])},[e("span",xn,[t.manageablePerson||i.authorities.includes(I.id)?(a(),r("div",vn,[e("span",null,m(I.mobile_phone),1),I&&I.mobile_phone?(a(),r("a",{key:0,href:"tel:"+I.mobile_phone},[w(T,{class:"h-4 w-4 md:h-5 md:w-5 cursor-pointer text-black"})],8,wn)):f("",!0),I&&I.mobile_phone?(a(),r("a",{key:1,href:"sms:+1"+I.mobile_phone},[w(y,{class:"h-4 w-4 md:h-5 md:w-5 cursor-pointer text-black"})],8,kn)):f("",!0)])):(a(),r("span",Fn,"-"))]),e("span",Ln,[I&&I.mobile_phone?(a(),r("a",{key:0,href:"sms:+1"+I.mobile_phone},[w(T,{class:"h-4 w-4 md:h-5 md:w-5 cursor-pointer text-black"})],8,Cn)):f("",!0)])],2),(a(!0),r(C,null,R(t.games,S=>(a(),r(C,null,[!l.league.singles&&l.league.is_published?(a(),r("td",{key:0,class:g(["border-2 border-gray md:table-cell",{hidden:!t.availabilitySection,"table-cell":t.availabilitySection}])},[I.pivot.is_captain!==void 0?(a(),r(C,{key:0},[S.short_date?(a(),r(C,{key:0},[t.availabilities[S.id][I.id]?(a(),r("button",{key:0,onClick:N=>i.resetAvailability(S.id,I.id),disabled:!t.manageablePerson&&I.id!==i.user.id},[w(b,{class:"w-7 mx-auto bg-green-500 text-white rounded"})],8,Tn)):t.availabilities[S.id][I.id]===!1?(a(),r("button",{key:1,onClick:N=>i.resetAvailability(S.id,I.id),disabled:!t.manageablePerson&&I.id!==i.user.id},[w(F,{class:"w-7 mx-auto bg-red text-white rounded cursor-pointer"})],8,On)):(a(),r("div",Sn,[t.manageablePerson||I.id===i.user.id?(a(),r(C,{key:0},[e("div",In,[e("input",{onInput:N=>i.updateAvailability(S.id,I.id,!0),type:"checkbox",id:"radio-1",class:"rounded",checked:t.availabilities[S.id][I.id]===!0},null,40,Pn),En]),e("div",Mn,[e("input",{onInput:N=>i.updateAvailability(S.id,I.id,!1),type:"checkbox",id:"radio-2",class:"rounded",checked:t.availabilities[S.id][I.id]===!1},null,40,An),Dn])],64)):(a(),r("p",jn,"-"))]))],64)):f("",!0)],64)):f("",!0)],2)):f("",!0)],64))),256))]))),256)),e("tr",Vn,[e("td",Rn,[e("div",Nn,[t.manageablePerson?(a(),H(c,{key:0,onClick:i.openEmailModal,class:"!py-1 !px-2 !text-sm !w-fit lg:!py-2 lg:!px-4 lg:!text-base",domain_color:l.domain_color},{default:A(()=>[L(" Email Selected Teammates ")]),_:1},8,["onClick","domain_color"])):f("",!0)])]),l.league.type==="flex"?(a(),r("td",{key:0,class:g(["text-lg md:table-cell",{hidden:t.availabilitySection,"table-cell":!t.availabilitySection}])},[e("span",Un,[w(_,{class:"w-4 absolute -right-4",message:"Each JPB player has a Skill Level. The total Skill Level at the bottom is determined as follows: for CLUB CHALLENGE leagues it is the average of the highest 6 skill levels on the team, while for FLEX leagues it is the highest skill level on the team. This determines the Team’s Skill Category."}),L(" "+m(parseFloat(i.averageSkillLevels).toFixed(2)),1)])],2)):f("",!0),e("td",{class:g(["md:table-cell",{hidden:t.availabilitySection,"table-cell":!t.availabilitySection}])},null,2),e("td",{class:g(["md:table-cell",{hidden:t.availabilitySection,"table-cell":!t.availabilitySection}])},null,2),!l.league.singles&&l.league.is_published?(a(!0),r(C,{key:1},R(t.games,I=>(a(),r("td",{class:g(["border-2 border-gray bg-gray-light md:table-cell",{hidden:!t.availabilitySection,"table-cell":t.availabilitySection}])},m(Object.values(t.availabilities[I.id]).filter(S=>S===!0).length),3))),256)):f("",!0)]),e("tr",Bn,[l.league.type==="flex"?(a(),r("td",{key:0,class:g(["md:table-cell",{hidden:t.availabilitySection,"table-cell":!t.availabilitySection}])},null,2)):f("",!0),t.manageablePerson&&l.league.type==="flex"&&!l.league.singles&&t.games.length?(a(),r(C,{key:1},[e("td",{class:g(["font-semibold text-base lg:text-lg relative md:table-cell",{hidden:t.availabilitySection,"table-cell":!t.availabilitySection}]),colspan:"2"},[e("div",Hn,[e("span",zn,[w(_,{class:"w-4 absolute -right-4",message:"For JPB FLEX and CLUB CHALLENGE leagues, create your Lineup Card by clicking the arrow (->) for the respective Match column. Once Saved, it will display a Doc icon. You can Edit and Email your Lineup Card by clicking on the Doc icon and completing those tasks."}),L(" Lineup Cards: ")])])],2),(a(!0),r(C,null,R(t.games,I=>(a(),r("td",{class:g(["border-2 border-gray bg-gray-light md:table-cell pt-2",{hidden:!t.availabilitySection,"table-cell":t.availabilitySection}])},[I.user_lineup_data.length>0&&t.manageablePerson?(a(),r("button",{key:0,onClick:S=>i.openLineupCardModal(I)},[w(B,{class:"w-5 mx-auto"})],8,Wn)):t.manageablePerson?(a(),r("button",{key:1,onClick:S=>i.openLineupCardModal(I)},[w(p,{class:"w-6 mx-auto cursor-pointer"})],8,Kn)):f("",!0)],2))),256))],64)):f("",!0)])])]),e("div",$n,[!t.availabilitySection&&t.manageablePerson?(a(),H(c,{key:0,onClick:i.openEmailModal,domain_color:l.domain_color},{default:A(()=>[L(" Email Selected Teammates ")]),_:1},8,["onClick","domain_color"])):t.manageablePerson&&l.league.type==="flex"&&t.games.length?(a(),r("div",Yn,[e("span",Xn,[w(_,{class:"w-4 absolute -right-4",message:"For JPB FLEX and CLUB CHALLENGE leagues, create your Lineup Card by clicking the arrow (->) for the respective Match column. Once Saved, it will display a Doc icon. You can Edit and Email your Lineup Card by clicking on the Doc icon and completing those tasks."}),L(" Lineup Cards ")])])):f("",!0)]),i.isFreeAgent?(a(),r("p",Jn,"You are currently a Free Agent. You'll be notified by email once registration closes and you've been placed on a team.")):f("",!0)],64)),w(v,{domain_color:l.domain_color,league:l.league,team:t.team,user:i.user,onSendEmail:i.sendEmail,showError:i.showError,isMessageModel:t.isMessageModel,ref:"messageModal"},null,8,["domain_color","league","team","user","onSendEmail","showError","isMessageModel"]),w(k,{domain_color:l.domain_color,game:t.selectedGame,league:l.league,team:t.team,availabilities:t.availabilities,ref:"lineupCardModal"},null,8,["domain_color","game","league","team","availabilities"]),w(O,{domain_color:l.domain_color,onUpdatedTeamDetails:i.getTeamDetails,league:l.league,team:t.team,ref:"viewMyTeamDetailsModal"},null,8,["domain_color","onUpdatedTeamDetails","league","team"]),w(M,{ref:"manageTeamInvitesModal",domain_color:l.domain_color,team:t.team},null,8,["domain_color","team"])])}const Qn=Y(To,[["render",Zn]]);var Ce={exports:{}};(function(o,s){(function(d,t){o.exports=t()})(typeof self<"u"?self:Ne,function(){return function(l){var d={};function t(i){if(d[i])return d[i].exports;var c=d[i]={i,l:!1,exports:{}};return l[i].call(c.exports,c,c.exports,t),c.l=!0,c.exports}return t.m=l,t.c=d,t.d=function(i,c,h){t.o(i,c)||Object.defineProperty(i,c,{enumerable:!0,get:h})},t.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},t.t=function(i,c){if(c&1&&(i=t(i)),c&8||c&4&&typeof i=="object"&&i&&i.__esModule)return i;var h=Object.create(null);if(t.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:i}),c&2&&typeof i!="string")for(var _ in i)t.d(h,_,(function(x){return i[x]}).bind(null,_));return h},t.n=function(i){var c=i&&i.__esModule?function(){return i.default}:function(){return i};return t.d(c,"a",c),c},t.o=function(i,c){return Object.prototype.hasOwnProperty.call(i,c)},t.p="",t(t.s="fb15")}({"00ee":function(l,d,t){var i=t("b622"),c=i("toStringTag"),h={};h[c]="z",l.exports=String(h)==="[object z]"},"06cf":function(l,d,t){var i=t("83ab"),c=t("d1e7"),h=t("5c6c"),_=t("fc6a"),x=t("a04b"),n=t("5135"),u=t("0cfb"),y=Object.getOwnPropertyDescriptor;d.f=i?y:function(b,F){if(b=_(b),F=x(F),u)try{return y(b,F)}catch{}if(n(b,F))return h(!c.f.call(b,F),b[F])}},"0cfb":function(l,d,t){var i=t("83ab"),c=t("d039"),h=t("cc12");l.exports=!i&&!c(function(){return Object.defineProperty(h("div"),"a",{get:function(){return 7}}).a!=7})},"0d51":function(l,d){l.exports=function(t){try{return String(t)}catch{return"Object"}}},"12b3":function(l,d,t){t("4500")},1626:function(l,d){l.exports=function(t){return typeof t=="function"}},"1be4":function(l,d,t){var i=t("d066");l.exports=i("document","documentElement")},"1d80":function(l,d){l.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},"23cb":function(l,d,t){var i=t("a691"),c=Math.max,h=Math.min;l.exports=function(_,x){var n=i(_);return n<0?c(n+x,0):h(n,x)}},"23e7":function(l,d,t){var i=t("da84"),c=t("06cf").f,h=t("9112"),_=t("6eeb"),x=t("ce4e"),n=t("e893"),u=t("94ca");l.exports=function(y,T){var b=y.target,F=y.global,B=y.stat,p,v,k,O,M,I;if(F?v=i:B?v=i[b]||x(b,{}):v=(i[b]||{}).prototype,v)for(k in T){if(M=T[k],y.noTargetGet?(I=c(v,k),O=I&&I.value):O=v[k],p=u(F?k:b+(B?".":"#")+k,y.forced),!p&&O!==void 0){if(typeof M==typeof O)continue;n(M,O)}(y.sham||O&&O.sham)&&h(M,"sham",!0),_(v,k,M,y)}}},"241c":function(l,d,t){var i=t("ca84"),c=t("7839"),h=c.concat("length","prototype");d.f=Object.getOwnPropertyNames||function(x){return i(x,h)}},"24fb":function(l,d,t){l.exports=function(h){var _=[];return _.toString=function(){return this.map(function(n){var u=i(n,h);return n[2]?"@media ".concat(n[2]," {").concat(u,"}"):u}).join("")},_.i=function(x,n,u){typeof x=="string"&&(x=[[null,x,""]]);var y={};if(u)for(var T=0;T<this.length;T++){var b=this[T][0];b!=null&&(y[b]=!0)}for(var F=0;F<x.length;F++){var B=[].concat(x[F]);u&&y[B[0]]||(n&&(B[2]?B[2]="".concat(n," and ").concat(B[2]):B[2]=n),_.push(B))}},_};function i(h,_){var x=h[1]||"",n=h[3];if(!n)return x;if(_&&typeof btoa=="function"){var u=c(n),y=n.sources.map(function(T){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(T," */")});return[x].concat(y).concat([u]).join(`
`)}return[x].join(`
`)}function c(h){var _=btoa(unescape(encodeURIComponent(JSON.stringify(h)))),x="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(_);return"/*# ".concat(x," */")}},"25f0":function(l,d,t){var i=t("5e77").PROPER,c=t("6eeb"),h=t("825a"),_=t("577e"),x=t("d039"),n=t("ad6d"),u="toString",y=RegExp.prototype,T=y[u],b=x(function(){return T.call({source:"a",flags:"b"})!="/a/b"}),F=i&&T.name!=u;(b||F)&&c(RegExp.prototype,u,function(){var p=h(this),v=_(p.source),k=p.flags,O=_(k===void 0&&p instanceof RegExp&&!("flags"in y)?n.call(p):k);return"/"+v+"/"+O},{unsafe:!0})},"2d00":function(l,d,t){var i=t("da84"),c=t("342f"),h=i.process,_=i.Deno,x=h&&h.versions||_&&_.version,n=x&&x.v8,u,y;n?(u=n.split("."),y=u[0]<4?1:u[0]+u[1]):c&&(u=c.match(/Edge\/(\d+)/),(!u||u[1]>=74)&&(u=c.match(/Chrome\/(\d+)/),u&&(y=u[1]))),l.exports=y&&+y},"342f":function(l,d,t){var i=t("d066");l.exports=i("navigator","userAgent")||""},"37e8":function(l,d,t){var i=t("83ab"),c=t("9bf2"),h=t("825a"),_=t("df75");l.exports=i?Object.defineProperties:function(n,u){h(n);for(var y=_(u),T=y.length,b=0,F;T>b;)c.f(n,F=y[b++],u[F]);return n}},"3bbe":function(l,d,t){var i=t("1626");l.exports=function(c){if(typeof c=="object"||i(c))return c;throw TypeError("Can't set "+String(c)+" as a prototype")}},"44ad":function(l,d,t){var i=t("d039"),c=t("c6b6"),h="".split;l.exports=i(function(){return!Object("z").propertyIsEnumerable(0)})?function(_){return c(_)=="String"?h.call(_,""):Object(_)}:Object},"44d2":function(l,d,t){var i=t("b622"),c=t("7c73"),h=t("9bf2"),_=i("unscopables"),x=Array.prototype;x[_]==null&&h.f(x,_,{configurable:!0,value:c(null)}),l.exports=function(n){x[_][n]=!0}},4500:function(l,d,t){var i=t("b0bb");i.__esModule&&(i=i.default),typeof i=="string"&&(i=[[l.i,i,""]]),i.locals&&(l.exports=i.locals);var c=t("499e").default;c("d740a91a",i,!0,{sourceMap:!1,shadowMode:!1})},"485a":function(l,d,t){var i=t("1626"),c=t("861d");l.exports=function(h,_){var x,n;if(_==="string"&&i(x=h.toString)&&!c(n=x.call(h))||i(x=h.valueOf)&&!c(n=x.call(h))||_!=="string"&&i(x=h.toString)&&!c(n=x.call(h)))return n;throw TypeError("Can't convert object to primitive value")}},4930:function(l,d,t){var i=t("2d00"),c=t("d039");l.exports=!!Object.getOwnPropertySymbols&&!c(function(){var h=Symbol();return!String(h)||!(Object(h)instanceof Symbol)||!Symbol.sham&&i&&i<41})},"499e":function(l,d,t){t.r(d),t.d(d,"default",function(){return B});function i(S,N){for(var E=[],D={},U=0;U<N.length;U++){var X=N[U],K=X[0],z=X[1],J=X[2],Q=X[3],G={id:S+":"+U,css:z,media:J,sourceMap:Q};D[K]?D[K].parts.push(G):E.push(D[K]={id:K,parts:[G]})}return E}var c=typeof document<"u";if(typeof DEBUG<"u"&&DEBUG&&!c)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var h={},_=c&&(document.head||document.getElementsByTagName("head")[0]),x=null,n=0,u=!1,y=function(){},T=null,b="data-vue-ssr-id",F=typeof navigator<"u"&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function B(S,N,E,D){u=E,T=D||{};var U=i(S,N);return p(U),function(K){for(var z=[],J=0;J<U.length;J++){var Q=U[J],G=h[Q.id];G.refs--,z.push(G)}K?(U=i(S,K),p(U)):U=[];for(var J=0;J<z.length;J++){var G=z[J];if(G.refs===0){for(var le=0;le<G.parts.length;le++)G.parts[le]();delete h[G.id]}}}}function p(S){for(var N=0;N<S.length;N++){var E=S[N],D=h[E.id];if(D){D.refs++;for(var U=0;U<D.parts.length;U++)D.parts[U](E.parts[U]);for(;U<E.parts.length;U++)D.parts.push(k(E.parts[U]));D.parts.length>E.parts.length&&(D.parts.length=E.parts.length)}else{for(var X=[],U=0;U<E.parts.length;U++)X.push(k(E.parts[U]));h[E.id]={id:E.id,refs:1,parts:X}}}}function v(){var S=document.createElement("style");return S.type="text/css",_.appendChild(S),S}function k(S){var N,E,D=document.querySelector("style["+b+'~="'+S.id+'"]');if(D){if(u)return y;D.parentNode.removeChild(D)}if(F){var U=n++;D=x||(x=v()),N=M.bind(null,D,U,!1),E=M.bind(null,D,U,!0)}else D=v(),N=I.bind(null,D),E=function(){D.parentNode.removeChild(D)};return N(S),function(K){if(K){if(K.css===S.css&&K.media===S.media&&K.sourceMap===S.sourceMap)return;N(S=K)}else E()}}var O=function(){var S=[];return function(N,E){return S[N]=E,S.filter(Boolean).join(`
`)}}();function M(S,N,E,D){var U=E?"":D.css;if(S.styleSheet)S.styleSheet.cssText=O(N,U);else{var X=document.createTextNode(U),K=S.childNodes;K[N]&&S.removeChild(K[N]),K.length?S.insertBefore(X,K[N]):S.appendChild(X)}}function I(S,N){var E=N.css,D=N.media,U=N.sourceMap;if(D&&S.setAttribute("media",D),T.ssrId&&S.setAttribute(b,N.id),U&&(E+=`
/*# sourceURL=`+U.sources[0]+" */",E+=`
/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(U))))+" */"),S.styleSheet)S.styleSheet.cssText=E;else{for(;S.firstChild;)S.removeChild(S.firstChild);S.appendChild(document.createTextNode(E))}}},"4d64":function(l,d,t){var i=t("fc6a"),c=t("50c4"),h=t("23cb"),_=function(x){return function(n,u,y){var T=i(n),b=c(T.length),F=h(y,b),B;if(x&&u!=u){for(;b>F;)if(B=T[F++],B!=B)return!0}else for(;b>F;F++)if((x||F in T)&&T[F]===u)return x||F||0;return!x&&-1}};l.exports={includes:_(!0),indexOf:_(!1)}},"50c4":function(l,d,t){var i=t("a691"),c=Math.min;l.exports=function(h){return h>0?c(i(h),9007199254740991):0}},5135:function(l,d,t){var i=t("7b0b"),c={}.hasOwnProperty;l.exports=Object.hasOwn||function(_,x){return c.call(i(_),x)}},5692:function(l,d,t){var i=t("c430"),c=t("c6cd");(l.exports=function(h,_){return c[h]||(c[h]=_!==void 0?_:{})})("versions",[]).push({version:"3.18.1",mode:i?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"56ef":function(l,d,t){var i=t("d066"),c=t("241c"),h=t("7418"),_=t("825a");l.exports=i("Reflect","ownKeys")||function(n){var u=c.f(_(n)),y=h.f;return y?u.concat(y(n)):u}},"577e":function(l,d,t){var i=t("f5df");l.exports=function(c){if(i(c)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return String(c)}},5899:function(l,d){l.exports=`	
\v\f\r                 \u2028\u2029\uFEFF`},"58a8":function(l,d,t){var i=t("1d80"),c=t("577e"),h=t("5899"),_="["+h+"]",x=RegExp("^"+_+_+"*"),n=RegExp(_+_+"*$"),u=function(y){return function(T){var b=c(i(T));return y&1&&(b=b.replace(x,"")),y&2&&(b=b.replace(n,"")),b}};l.exports={start:u(1),end:u(2),trim:u(3)}},"59ed":function(l,d,t){var i=t("1626"),c=t("0d51");l.exports=function(h){if(i(h))return h;throw TypeError(c(h)+" is not a function")}},"5c6c":function(l,d){l.exports=function(t,i){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:i}}},"5e77":function(l,d,t){var i=t("83ab"),c=t("5135"),h=Function.prototype,_=i&&Object.getOwnPropertyDescriptor,x=c(h,"name"),n=x&&(function(){}).name==="something",u=x&&(!i||i&&_(h,"name").configurable);l.exports={EXISTS:x,PROPER:n,CONFIGURABLE:u}},"5e89":function(l,d,t){var i=t("861d"),c=Math.floor;l.exports=function(_){return!i(_)&&isFinite(_)&&c(_)===_}},"69f3":function(l,d,t){var i=t("7f9a"),c=t("da84"),h=t("861d"),_=t("9112"),x=t("5135"),n=t("c6cd"),u=t("f772"),y=t("d012"),T="Object already initialized",b=c.WeakMap,F,B,p,v=function(E){return p(E)?B(E):F(E,{})},k=function(E){return function(D){var U;if(!h(D)||(U=B(D)).type!==E)throw TypeError("Incompatible receiver, "+E+" required");return U}};if(i||n.state){var O=n.state||(n.state=new b),M=O.get,I=O.has,S=O.set;F=function(E,D){if(I.call(O,E))throw new TypeError(T);return D.facade=E,S.call(O,E,D),D},B=function(E){return M.call(O,E)||{}},p=function(E){return I.call(O,E)}}else{var N=u("state");y[N]=!0,F=function(E,D){if(x(E,N))throw new TypeError(T);return D.facade=E,_(E,N,D),D},B=function(E){return x(E,N)?E[N]:{}},p=function(E){return x(E,N)}}l.exports={set:F,get:B,has:p,enforce:v,getterFor:k}},"6eeb":function(l,d,t){var i=t("da84"),c=t("1626"),h=t("5135"),_=t("9112"),x=t("ce4e"),n=t("8925"),u=t("69f3"),y=t("5e77").CONFIGURABLE,T=u.get,b=u.enforce,F=String(String).split("String");(l.exports=function(B,p,v,k){var O=k?!!k.unsafe:!1,M=k?!!k.enumerable:!1,I=k?!!k.noTargetGet:!1,S=k&&k.name!==void 0?k.name:p,N;if(c(v)&&(String(S).slice(0,7)==="Symbol("&&(S="["+String(S).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!h(v,"name")||y&&v.name!==S)&&_(v,"name",S),N=b(v),N.source||(N.source=F.join(typeof S=="string"?S:""))),B===i){M?B[p]=v:x(p,v);return}else O?!I&&B[p]&&(M=!0):delete B[p];M?B[p]=v:_(B,p,v)})(Function.prototype,"toString",function(){return c(this)&&T(this).source||n(this)})},7156:function(l,d,t){var i=t("1626"),c=t("861d"),h=t("d2bb");l.exports=function(_,x,n){var u,y;return h&&i(u=x.constructor)&&u!==n&&c(y=u.prototype)&&y!==n.prototype&&h(_,y),_}},7418:function(l,d){d.f=Object.getOwnPropertySymbols},7839:function(l,d){l.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(l,d,t){var i=t("1d80");l.exports=function(c){return Object(i(c))}},"7c73":function(l,d,t){var i=t("825a"),c=t("37e8"),h=t("7839"),_=t("d012"),x=t("1be4"),n=t("cc12"),u=t("f772"),y=">",T="<",b="prototype",F="script",B=u("IE_PROTO"),p=function(){},v=function(S){return T+F+y+S+T+"/"+F+y},k=function(S){S.write(v("")),S.close();var N=S.parentWindow.Object;return S=null,N},O=function(){var S=n("iframe"),N="java"+F+":",E;return S.style.display="none",x.appendChild(S),S.src=String(N),E=S.contentWindow.document,E.open(),E.write(v("document.F=Object")),E.close(),E.F},M,I=function(){try{M=new ActiveXObject("htmlfile")}catch{}I=typeof document<"u"?document.domain&&M?k(M):O():k(M);for(var S=h.length;S--;)delete I[b][h[S]];return I()};_[B]=!0,l.exports=Object.create||function(N,E){var D;return N!==null?(p[b]=i(N),D=new p,p[b]=null,D[B]=N):D=I(),E===void 0?D:c(D,E)}},"7f9a":function(l,d,t){var i=t("da84"),c=t("1626"),h=t("8925"),_=i.WeakMap;l.exports=c(_)&&/native code/.test(h(_))},"825a":function(l,d,t){var i=t("861d");l.exports=function(c){if(i(c))return c;throw TypeError(String(c)+" is not an object")}},"83ab":function(l,d,t){var i=t("d039");l.exports=!i(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"861d":function(l,d,t){var i=t("1626");l.exports=function(c){return typeof c=="object"?c!==null:i(c)}},8875:function(l,d,t){var i,c,h;(function(_,x){c=[],i=x,h=typeof i=="function"?i.apply(d,c):i,h!==void 0&&(l.exports=h)})(typeof self<"u"?self:this,function(){function _(){var x=Object.getOwnPropertyDescriptor(document,"currentScript");if(!x&&"currentScript"in document&&document.currentScript||x&&x.get!==_&&document.currentScript)return document.currentScript;try{throw new Error}catch(M){var n=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,u=/@([^@]*):(\d+):(\d+)\s*$/ig,y=n.exec(M.stack)||u.exec(M.stack),T=y&&y[1]||!1,b=y&&y[2]||!1,F=document.location.href.replace(document.location.hash,""),B,p,v,k=document.getElementsByTagName("script");T===F&&(B=document.documentElement.outerHTML,p=new RegExp("(?:[^\\n]+?\\n){0,"+(b-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),v=B.replace(p,"$1").trim());for(var O=0;O<k.length;O++)if(k[O].readyState==="interactive"||k[O].src===T||T===F&&k[O].innerHTML&&k[O].innerHTML.trim()===v)return k[O];return null}}return _})},8925:function(l,d,t){var i=t("1626"),c=t("c6cd"),h=Function.toString;i(c.inspectSource)||(c.inspectSource=function(_){return h.call(_)}),l.exports=c.inspectSource},"8ba4":function(l,d,t){var i=t("23e7"),c=t("5e89");i({target:"Number",stat:!0},{isInteger:c})},"90e3":function(l,d){var t=0,i=Math.random();l.exports=function(c){return"Symbol("+String(c===void 0?"":c)+")_"+(++t+i).toString(36)}},9112:function(l,d,t){var i=t("83ab"),c=t("9bf2"),h=t("5c6c");l.exports=i?function(_,x,n){return c.f(_,x,h(1,n))}:function(_,x,n){return _[x]=n,_}},"94ca":function(l,d,t){var i=t("d039"),c=t("1626"),h=/#|\.prototype\./,_=function(T,b){var F=n[x(T)];return F==y?!0:F==u?!1:c(b)?i(b):!!b},x=_.normalize=function(T){return String(T).replace(h,".").toLowerCase()},n=_.data={},u=_.NATIVE="N",y=_.POLYFILL="P";l.exports=_},"9bf2":function(l,d,t){var i=t("83ab"),c=t("0cfb"),h=t("825a"),_=t("a04b"),x=Object.defineProperty;d.f=i?x:function(u,y,T){if(h(u),y=_(y),h(T),c)try{return x(u,y,T)}catch{}if("get"in T||"set"in T)throw TypeError("Accessors not supported");return"value"in T&&(u[y]=T.value),u}},a04b:function(l,d,t){var i=t("c04e"),c=t("d9b5");l.exports=function(h){var _=i(h,"string");return c(_)?_:String(_)}},a691:function(l,d){var t=Math.ceil,i=Math.floor;l.exports=function(c){return isNaN(c=+c)?0:(c>0?i:t)(c)}},a9e3:function(l,d,t){var i=t("83ab"),c=t("da84"),h=t("94ca"),_=t("6eeb"),x=t("5135"),n=t("c6b6"),u=t("7156"),y=t("d9b5"),T=t("c04e"),b=t("d039"),F=t("7c73"),B=t("241c").f,p=t("06cf").f,v=t("9bf2").f,k=t("58a8").trim,O="Number",M=c[O],I=M.prototype,S=n(F(I))==O,N=function(K){if(y(K))throw TypeError("Cannot convert a Symbol value to a number");var z=T(K,"number"),J,Q,G,le,oe,ye,ne,ce;if(typeof z=="string"&&z.length>2){if(z=k(z),J=z.charCodeAt(0),J===43||J===45){if(Q=z.charCodeAt(2),Q===88||Q===120)return NaN}else if(J===48){switch(z.charCodeAt(1)){case 66:case 98:G=2,le=49;break;case 79:case 111:G=8,le=55;break;default:return+z}for(oe=z.slice(2),ye=oe.length,ne=0;ne<ye;ne++)if(ce=oe.charCodeAt(ne),ce<48||ce>le)return NaN;return parseInt(oe,G)}}return+z};if(h(O,!M(" 0o1")||!M("0b1")||M("+0x1"))){for(var E=function(z){var J=arguments.length<1?0:z,Q=this;return Q instanceof E&&(S?b(function(){I.valueOf.call(Q)}):n(Q)!=O)?u(new M(N(J)),Q,E):N(J)},D=i?B(M):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),U=0,X;D.length>U;U++)x(M,X=D[U])&&!x(E,X)&&v(E,X,p(M,X));E.prototype=I,I.constructor=E,_(c,O,E)}},ad6d:function(l,d,t){var i=t("825a");l.exports=function(){var c=i(this),h="";return c.global&&(h+="g"),c.ignoreCase&&(h+="i"),c.multiline&&(h+="m"),c.dotAll&&(h+="s"),c.unicode&&(h+="u"),c.sticky&&(h+="y"),h}},aff5:function(l,d,t){var i=t("23e7");i({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},b041:function(l,d,t){var i=t("00ee"),c=t("f5df");l.exports=i?{}.toString:function(){return"[object "+c(this)+"]"}},b0bb:function(l,d,t){var i=t("24fb");d=i(!1),d.push([l.i,`.vue-numeric-input{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;height:1.8rem}.vue-numeric-input.small{height:20px;font-size:12px}.vue-numeric-input.small .numeric-input{padding:2px 1.4rem}.vue-numeric-input.large{height:42px;font-size:34px}.vue-numeric-input.large .numeric-input{padding:2px 2.8rem}.vue-numeric-input .numeric-input{height:inherit;padding:2px 2rem;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:inherit;border:1px solid #ccc;border-radius:2px;display:block;line-height:1.8rem;-webkit-transition:all .1s ease 0s;transition:all .1s ease 0s;width:100%;-moz-appearance:textfield!important}.numeric-input::-webkit-inner-spin-button,.numeric-input::-webkit-outer-spin-button{-webkit-appearance:none!important;margin:0!important}.vue-numeric-input .numeric-input:focus{outline:none;border-color:#409eff}.vue-numeric-input button{position:absolute;width:1.8rem;padding:.2rem;margin:0;cursor:pointer;text-align:center;-webkit-transition:all .1s ease 0s;transition:all .1s ease 0s;background:rgba(0,0,0,.1);border:solid rgba(0,0,0,.1);-webkit-box-shadow:rgba(0,0,0,.1) -1px -1px 3px inset,hsla(0,0%,100%,.7) 1px 1px 3px inset;box-shadow:inset -1px -1px 3px rgba(0,0,0,.1),inset 1px 1px 3px hsla(0,0%,100%,.7)}.vue-numeric-input button:focus{outline:none!important}.vue-numeric-input.small button{width:20px}.vue-numeric-input.large button{width:40px}.vue-numeric-input button:hover{background:rgba(0,0,0,.2)}.vue-numeric-input button:active{-webkit-box-shadow:rgba(0,0,0,.2) 0 1px 3px inset,hsla(0,0%,100%,.5) -1px -1px 4px inset;box-shadow:inset 0 1px 3px rgba(0,0,0,.2),inset -1px -1px 4px hsla(0,0%,100%,.5)}.vue-numeric-input button:disabled{opacity:.5;-webkit-box-shadow:none;box-shadow:none;cursor:not-allowed}.vue-numeric-input .numeric-input.no-control{padding:2px 5px}.vue-numeric-input .btn-increment{right:0;top:0;bottom:0;border-radius:2px;border-width:1px}.vue-numeric-input .btn-increment .btn-icon{position:absolute;width:100%;height:100%;top:0;left:0}.vue-numeric-input .btn-increment .btn-icon:before{display:inline-block;visibility:visible;content:"";background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" fill="CurrentColor" viewBox="0 0 16 16"><path d="M8 0a1 1 0 011 1v6h6a1 1 0 110 2H9v6a1 1 0 11-2 0V9H1a1 1 0 010-2h6V1a1 1 0 011-1z"/></svg>');background-repeat:no-repeat;background-size:65% 65%;background-position:50%;width:100%;height:100%}.vue-numeric-input .btn-increment .btn-icon:after{position:absolute;visibility:hidden;content:""}.vue-numeric-input .btn-decrement{left:0;top:0;bottom:0;border-radius:2px;border-width:1px}.vue-numeric-input .btn-decrement .btn-icon{position:absolute;width:100%;height:100%;top:0;left:0}.vue-numeric-input .btn-decrement .btn-icon:before{display:inline-block;visibility:visible;content:"";background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 16"><path d="M0 8a1 1 0 011-1h14a1 1 0 110 2H1a1 1 0 01-1-1z"/></svg>');background-repeat:no-repeat;background-size:65% 65%;background-position:50%;width:100%;height:100%}.vue-numeric-input .btn-decrement .btn-icon:after{visibility:hidden;content:"";clear:both;height:0}.vue-numeric-input.updown .numeric-input{padding:5px 2rem 5px 5px}.vue-numeric-input.updown .btn-increment{right:0;top:0;bottom:50%;border-radius:2px 2px 0 0;border-width:1px 1px 0}.vue-numeric-input.updown .btn-increment .btn-icon{top:50%;left:50%;width:0;height:0;border-width:0 .45rem .45rem;border-color:transparent transparent #111;border-style:solid;margin:-.25rem 0 0 -.4rem}.vue-numeric-input.updown .btn-increment .btn-icon:before{visibility:hidden;display:block;content:"";clear:both;height:0}.vue-numeric-input.updown .btn-decrement .btn-icon:before{content:""}.vue-numeric-input.updown .btn-increment .btn-icon:after{visibility:hidden;display:block;content:"";clear:both;height:0}.vue-numeric-input.updown .btn-decrement{right:0;top:50%;bottom:0;left:auto;border-radius:0 0 2px 2px;border-width:0 1px 1px}.vue-numeric-input.updown .btn-decrement .btn-icon{top:50%;left:50%;width:0;height:0;border-width:.45rem .45rem 0;border-color:#111 transparent transparent;border-style:solid;margin:-.25rem 0 0 -.4rem}`,""]),l.exports=d},b0c0:function(l,d,t){var i=t("83ab"),c=t("5e77").EXISTS,h=t("9bf2").f,_=Function.prototype,x=_.toString,n=/^\s*function ([^ (]*)/,u="name";i&&!c&&h(_,u,{configurable:!0,get:function(){try{return x.call(this).match(n)[1]}catch{return""}}})},b622:function(l,d,t){var i=t("da84"),c=t("5692"),h=t("5135"),_=t("90e3"),x=t("4930"),n=t("fdbf"),u=c("wks"),y=i.Symbol,T=n?y:y&&y.withoutSetter||_;l.exports=function(b){return(!h(u,b)||!(x||typeof u[b]=="string"))&&(x&&h(y,b)?u[b]=y[b]:u[b]=T("Symbol."+b)),u[b]}},c04e:function(l,d,t){var i=t("861d"),c=t("d9b5"),h=t("dc4a"),_=t("485a"),x=t("b622"),n=x("toPrimitive");l.exports=function(u,y){if(!i(u)||c(u))return u;var T=h(u,n),b;if(T){if(y===void 0&&(y="default"),b=T.call(u,y),!i(b)||c(b))return b;throw TypeError("Can't convert object to primitive value")}return y===void 0&&(y="number"),_(u,y)}},c430:function(l,d){l.exports=!1},c6b6:function(l,d){var t={}.toString;l.exports=function(i){return t.call(i).slice(8,-1)}},c6cd:function(l,d,t){var i=t("da84"),c=t("ce4e"),h="__core-js_shared__",_=i[h]||c(h,{});l.exports=_},c8ba:function(l,d){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch{typeof window=="object"&&(t=window)}l.exports=t},ca84:function(l,d,t){var i=t("5135"),c=t("fc6a"),h=t("4d64").indexOf,_=t("d012");l.exports=function(x,n){var u=c(x),y=0,T=[],b;for(b in u)!i(_,b)&&i(u,b)&&T.push(b);for(;n.length>y;)i(u,b=n[y++])&&(~h(T,b)||T.push(b));return T}},caad:function(l,d,t){var i=t("23e7"),c=t("4d64").includes,h=t("44d2");i({target:"Array",proto:!0},{includes:function(x){return c(this,x,arguments.length>1?arguments[1]:void 0)}}),h("includes")},cc12:function(l,d,t){var i=t("da84"),c=t("861d"),h=i.document,_=c(h)&&c(h.createElement);l.exports=function(x){return _?h.createElement(x):{}}},ce4e:function(l,d,t){var i=t("da84");l.exports=function(c,h){try{Object.defineProperty(i,c,{value:h,configurable:!0,writable:!0})}catch{i[c]=h}return h}},d012:function(l,d){l.exports={}},d039:function(l,d){l.exports=function(t){try{return!!t()}catch{return!0}}},d066:function(l,d,t){var i=t("da84"),c=t("1626"),h=function(_){return c(_)?_:void 0};l.exports=function(_,x){return arguments.length<2?h(i[_]):i[_]&&i[_][x]}},d1e7:function(l,d,t){var i={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,h=c&&!i.call({1:2},1);d.f=h?function(x){var n=c(this,x);return!!n&&n.enumerable}:i},d2bb:function(l,d,t){var i=t("825a"),c=t("3bbe");l.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var h=!1,_={},x;try{x=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,x.call(_,[]),h=_ instanceof Array}catch{}return function(u,y){return i(u),c(y),h?x.call(u,y):u.__proto__=y,u}}():void 0)},d3b7:function(l,d,t){var i=t("00ee"),c=t("6eeb"),h=t("b041");i||c(Object.prototype,"toString",h,{unsafe:!0})},d9b5:function(l,d,t){var i=t("1626"),c=t("d066"),h=t("fdbf");l.exports=h?function(_){return typeof _=="symbol"}:function(_){var x=c("Symbol");return i(x)&&Object(_)instanceof x}},da84:function(l,d,t){(function(i){var c=function(h){return h&&h.Math==Math&&h};l.exports=c(typeof globalThis=="object"&&globalThis)||c(typeof window=="object"&&window)||c(typeof self=="object"&&self)||c(typeof i=="object"&&i)||function(){return this}()||Function("return this")()}).call(this,t("c8ba"))},dc4a:function(l,d,t){var i=t("59ed");l.exports=function(c,h){var _=c[h];return _==null?void 0:i(_)}},df75:function(l,d,t){var i=t("ca84"),c=t("7839");l.exports=Object.keys||function(_){return i(_,c)}},e6e1:function(l,d,t){var i=t("23e7");i({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},e893:function(l,d,t){var i=t("5135"),c=t("56ef"),h=t("06cf"),_=t("9bf2");l.exports=function(x,n){for(var u=c(n),y=_.f,T=h.f,b=0;b<u.length;b++){var F=u[b];i(x,F)||y(x,F,T(n,F))}}},f5df:function(l,d,t){var i=t("00ee"),c=t("1626"),h=t("c6b6"),_=t("b622"),x=_("toStringTag"),n=h(function(){return arguments}())=="Arguments",u=function(y,T){try{return y[T]}catch{}};l.exports=i?h:function(y){var T,b,F;return y===void 0?"Undefined":y===null?"Null":typeof(b=u(T=Object(y),x))=="string"?b:n?h(T):(F=h(T))=="Object"&&c(T.callee)?"Arguments":F}},f772:function(l,d,t){var i=t("5692"),c=t("90e3"),h=i("keys");l.exports=function(_){return h[_]||(h[_]=c(_))}},fb15:function(l,d,t){if(t.r(d),typeof window<"u"){var i=window.document.currentScript;{var c=t("8875");i=c(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:c})}var h=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);h&&(t.p=h[1])}t("b0c0");var _=function(){var v=this,k=v.$createElement,O=v._self._c||k;return O("div",{class:["vue-numeric-input",v.size,v.controlsType==="updown"?"updown":""],style:v.widthStyle},[O("input",v._g(v._b({ref:"input",class:v.inputClasses,style:v.inputStyle,attrs:{name:v.name,type:"number",step:"any",placeholder:v.placeholder,max:v.max,min:v.min,autofocus:v.autofocus,disabled:v.disabled,readonly:v.readonly||!v.isInput},domProps:{value:v.computedValue},on:{input:v.onInput,change:v.onChange,blur:v.onBlur,focus:v.onFocus}},"input",v.$attrs,!1),v.mousewheel?{wheel:v.throttle(v.mouseWheelHandler,6e3)}:{wheel:function(M){M.preventDefault()}})),v.controls?O("button",{staticClass:"input-btn btn-decrement",attrs:{type:"button",disabled:v.disabled||v.minDisable},on:{mousedown:function(M){return!M.type.indexOf("key")&&v._k(M.keyCode,"left",37,M.key,["Left","ArrowLeft"])||"button"in M&&M.button!==0?null:v.start(v.decrement)},touchstart:function(M){return M.preventDefault(),v.start(v.decrement)},touchend:function(M){return M.preventDefault(),v.stop.apply(null,arguments)}}},[O("span",{staticClass:"btn-icon"})]):v._e(),v.controls?O("button",{staticClass:"input-btn btn-increment",attrs:{type:"button",disabled:v.disabled||v.maxDisable},on:{mousedown:function(M){return!M.type.indexOf("key")&&v._k(M.keyCode,"left",37,M.key,["Left","ArrowLeft"])||"button"in M&&M.button!==0?null:v.start(v.increment)},touchstart:function(M){return M.preventDefault(),v.start(v.increment)},touchend:function(M){return M.preventDefault(),v.stop.apply(null,arguments)}}},[O("span",{staticClass:"btn-icon"})]):v._e()])},x=[];t("a9e3"),t("e6e1"),t("aff5"),t("caad"),t("8ba4"),t("d3b7"),t("25f0");var n=100,u={name:"vue-numeric-input",props:{name:String,value:[String,Number],placeholder:String,min:{type:Number,default:Number.MIN_SAFE_INTEGER},max:{type:Number,default:Number.MAX_SAFE_INTEGER},step:{type:Number,default:1},align:{type:String,default:"left"},width:{type:String},size:{type:String,default:"normal",validator:function(k){return["small","normal","large"].includes(k)}},precision:{type:Number,validator:function(k){return k>=0&&Number.isInteger(k)}},autofocus:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},controls:{type:Boolean,default:!0},controlsType:{type:String,default:"plusminus"},mousewheel:{type:Boolean,default:!1},isInput:{type:Boolean,default:!0},className:{type:String,default:null}},data:function(){return{newValue:0,minDisable:!1,maxDisable:!1,interval:null,startTime:null,handler:Function}},watch:{value:{immediate:!0,handler:function(k){this.precision&&(k=this.toPrecision(k,this.precision)),this.max&&k>=this.max?this.newValue=this.max:this.min&&k<=this.min?this.newValue=this.min:this.newValue=k,this.newValue!==k&&this.$emit("input",this.newValue)}}},methods:{toNumber:function(k){var O=parseFloat(k);return isNaN(O)?k:O},toPrecision:function(k,O){return O===void 0&&(O=this.numPrecision),parseFloat(Math.round(k*Math.pow(10,O))/Math.pow(10,O))},getPrecision:function(k){if(k===void 0)return 0;var O=k.toString(),M=O.indexOf("."),I=0;return M!==-1&&(I=O.length-M-1),I},increment:function(){if(!this.readonly&&!this.disabled){var k=this.computedValue||0,O=Math.pow(10,this.numValuePrecision),M=Math.round(O*k+O*this.step)/O;M<=this.max?(this.minDisable=!1,this.computedValue=M):this.maxDisable=!0}},decrement:function(){if(!this.readonly&&!this.disabled){var k=this.computedValue||0,O=Math.pow(10,this.numValuePrecision),M=Math.round(O*k-O*this.step)/O;M>=this.min?(this.maxDisable=!1,this.computedValue=M):this.minDisable=!0}},onInput:function(k){var O=this;this.$nextTick(function(){k.target&&(O.computedValue=O.toNumber(k.target.value))})},start:function(k){document.addEventListener("mouseup",this.stop),this.startTime=new Date,this.handler=k,clearInterval(this.interval),this.interval=setInterval(k,n)},stop:function(k){document.removeEventListener(k.type,this.stop),new Date-this.startTime<n&&this.handler(),clearInterval(this.interval),this.interval=null,this.handler=null,this.startTime=null,this.value!==this.computedValue&&this.$emit("change",this.computedValue)},onBlur:function(k){this.$emit("blur",k)},onFocus:function(k){this.$emit("focus",k)},onChange:function(){this.$emit("change",this.computedValue)},focus:function(){this.disabled||this.$refs.input.focus()},blur:function(){this.$refs.input.blur()},mouseWheelHandler:function(k){return k.preventDefault(),k.stopImmediatePropagation(),k.deltaY<0?this.increment():this.decrement(),!1},throttle:function(k,O){var M=0;return function(){var I=new Date().getTime();if(!(I-M<O))return M=I,k.apply(void 0,arguments)}}},computed:{computedValue:{get:function(){return this.newValue},set:function(k){this.newValue=k,this.$emit("input",k)}},numValuePrecision:function(){var k=this.getPrecision(this.step);return this.precision!==void 0?this.precision:Math.max(this.getPrecision(this.computedValue||0),k)},inputClasses:function(){return[this.controls?"":"no-control",this.className?this.className:"","numeric-input"]},inputStyle:function(){return{textAlign:this.align}},widthStyle:function(){var k="150px";return this.size==="small"?k="100px":this.size==="large"&&(k="240px"),{width:this.width?"".concat(this.width):k}}},beforeDestroy:function(){clearInterval(this.interval),this.interval=null,this.handler=null,this.startTime=null}},y=u;t("12b3");function T(v,k,O,M,I,S,N,E){var D=typeof v=="function"?v.options:v;k&&(D.render=k,D.staticRenderFns=O,D._compiled=!0),M&&(D.functional=!0),S&&(D._scopeId="data-v-"+S);var U;if(N?(U=function(z){z=z||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!z&&typeof __VUE_SSR_CONTEXT__<"u"&&(z=__VUE_SSR_CONTEXT__),I&&I.call(this,z),z&&z._registeredComponents&&z._registeredComponents.add(N)},D._ssrRegister=U):I&&(U=E?function(){I.call(this,(D.functional?this.parent:this).$root.$options.shadowRoot)}:I),U)if(D.functional){D._injectStyles=U;var X=D.render;D.render=function(J,Q){return U.call(Q),X(J,Q)}}else{var K=D.beforeCreate;D.beforeCreate=K?[].concat(K,U):[U]}return{exports:v,options:D}}var b=T(y,_,x,!1,null,null,null),F=b.exports,B={install:function(k){k.component(F.name,F)}};F.install=B.install;var p=F;d.default=p},fc6a:function(l,d,t){var i=t("44ad"),c=t("1d80");l.exports=function(h){return i(c(h))}},fdbf:function(l,d,t){var i=t("4930");l.exports=i&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}})})})(Ce);var Gn=Ce.exports;const qn=Ue(Gn);const ea={components:{VueNumericInput:qn,IconHelp:_e,FormButton:se,Multiselect:he},data(){var o;return{form:{lineup1:{game1:{home_team_score:"",away_team_score:""},game2:{home_team_score:"",away_team_score:""},game3:{home_team_score:"",away_team_score:""}},lineup2:{game1:{home_team_score:"",away_team_score:""},game2:{home_team_score:"",away_team_score:""},game3:{home_team_score:"",away_team_score:""}},lineup3:{game1:{home_team_score:"",away_team_score:""},game2:{home_team_score:"",away_team_score:""},game3:{home_team_score:"",away_team_score:""}},final_score:{home_team_score:0,away_team_score:0},late_pass:0,home_team:"",away_team:"",my_team:"",lineups:{line1:{home_player1:null,home_player2:null,away_player1:null,away_player2:null},line2:{home_player1:null,home_player2:null,away_player1:null,away_player2:null},line3:{home_player1:null,home_player2:null,away_player1:null,away_player2:null}}},error:!1,errorMsg:"",saving:!1,saved:!1,teamHasLatePass:(o=this.team)==null?void 0:o.late_pass,lineups:[],isLoading:!1}},props:{game:{type:[Object,String]},domain_color:{type:String},isClubChallenge:{type:Number},league:{type:[Number,String]},team:{type:Object}},emit:["close"],mixins:[te],mounted(){},watch:{team(o){this.teamHasLatePass=o.late_pass},game(o){this.form.team_one_score=(o==null?void 0:o.teamOneScore)??null,this.form.team_two_score=(o==null?void 0:o.teamTwoScore)??null,this.getGameLineups(),o&&o.league.singles&&(this.form.lineups.line1.home_player1=this.homeTeam.participants[0],this.form.lineups.line1.away_player1=this.awayTeam.participants[0])}},computed:{isScoreSubmittable(){return this.isClubChallenge?this.isMyTeamLineOneSet&&this.isMyTeamLineTwoSet&&this.isMyTeamLineThreeSet&&this.hasValue(this.form.lineup1.game1.away_team_score)&&this.hasValue(this.form.lineup1.game1.home_team_score)&&this.hasValue(this.form.lineup1.game2.home_team_score)&&this.hasValue(this.form.lineup1.game2.home_team_score)&&this.hasValue(this.form.lineup1.game3.home_team_score)&&this.hasValue(this.form.lineup1.game3.home_team_score)&&this.hasValue(this.form.lineup2.game1.away_team_score)&&this.hasValue(this.form.lineup2.game1.home_team_score)&&this.hasValue(this.form.lineup2.game2.home_team_score)&&this.hasValue(this.form.lineup2.game2.home_team_score)&&this.hasValue(this.form.lineup2.game3.home_team_score)&&this.hasValue(this.form.lineup2.game3.home_team_score)&&this.hasValue(this.form.lineup3.game1.away_team_score)&&this.hasValue(this.form.lineup3.game1.home_team_score)&&this.hasValue(this.form.lineup3.game2.home_team_score)&&this.hasValue(this.form.lineup3.game2.home_team_score)&&this.hasValue(this.form.lineup3.game3.home_team_score)&&this.hasValue(this.form.lineup3.game3.home_team_score):this.isMyTeamLineOneSet&&this.hasValue(this.form.lineup1.game1.away_team_score)&&this.hasValue(this.form.lineup1.game1.home_team_score)&&this.hasValue(this.form.lineup1.game2.home_team_score)&&this.hasValue(this.form.lineup1.game2.home_team_score)&&this.hasValue(this.form.lineup1.game3.home_team_score)&&this.hasValue(this.form.lineup1.game3.home_team_score)},match(){if(this.game)return this.game.week_number?this.game.week_number:this.game.match},teamOneName(){if(this.game)return this.game.team_one?this.game.team_one.name:this.game.teamOneName},teamTwoName(){if(this.game)return this.game.team_two?this.game.team_two.name:this.game.teamTwoName},gameId(){if(this.game)return this.game.id?this.game.id:this.game.gameId},isGameEnd(){var o;return this.game?(this.form.late_pass=0,!!((o=this.game)!=null&&o.end_of_match)):!1},isScoreSubmitted(){return this.game?this.game.teamOneId?this.game.teamOneScore!==null&&this.game.teamTwoScore!==null:this.game.team_one_score!==null&&this.game.team_two_score!==null:!1},homeTeam(){return this.game?{id:this.game.team_two_id,name:this.game.team_two.name,participants:this.game.team_two.participants.map(o=>({id:o.id,first_name:o.first_name,last_name:o.last_name}))}:{id:null,name:null,participants:[]}},awayTeam(){return this.game?{id:this.game.team_one_id,name:this.game.team_one.name,participants:this.game.team_one.participants.map(o=>({id:o.id,first_name:o.first_name,last_name:o.last_name}))}:{id:null,name:null,participants:[]}},awayLineOnePlayerOneOptions(){const o=[this.form.lineups.line1.away_player2?this.form.lineups.line1.away_player2.id:null,this.form.lineups.line2.away_player1?this.form.lineups.line2.away_player1.id:null,this.form.lineups.line2.away_player2?this.form.lineups.line2.away_player2.id:null,this.form.lineups.line3.away_player1?this.form.lineups.line3.away_player1.id:null,this.form.lineups.line3.away_player2?this.form.lineups.line3.away_player2.id:null];return this.awayTeam.participants.map(s=>{var l;return s.id==="FORFEIT"?(s.$isDisabled=((l=this.form.line2.player1)==null?void 0:l.id)!=="FORFEIT",Object.assign({},s)):(s.$isDisabled=o.includes(s.id),Object.assign({},s))})},awayLineOnePlayerTwoOptions(){const o=[this.form.lineups.line1.away_player1?this.form.lineups.line1.away_player1.id:null,this.form.lineups.line2.away_player1?this.form.lineups.line2.away_player1.id:null,this.form.lineups.line2.away_player2?this.form.lineups.line2.away_player2.id:null,this.form.lineups.line3.away_player1?this.form.lineups.line3.away_player1.id:null,this.form.lineups.line3.away_player2?this.form.lineups.line3.away_player2.id:null];return this.awayTeam.participants.map(s=>{var l;return s.id==="FORFEIT"?(s.$isDisabled=((l=this.form.line2.player1)==null?void 0:l.id)!=="FORFEIT",Object.assign({},s)):(s.$isDisabled=o.includes(s.id),Object.assign({},s))})},awayLineTwoPlayerOneOptions(){const o=[this.form.lineups.line1.away_player2?this.form.lineups.line1.away_player2.id:null,this.form.lineups.line1.away_player1?this.form.lineups.line1.away_player1.id:null,this.form.lineups.line2.away_player2?this.form.lineups.line2.away_player2.id:null,this.form.lineups.line3.away_player1?this.form.lineups.line3.away_player1.id:null,this.form.lineups.line3.away_player2?this.form.lineups.line3.away_player2.id:null];return this.awayTeam.participants.map(s=>{var l;return s.id==="FORFEIT"?(s.$isDisabled=((l=this.form.line2.player1)==null?void 0:l.id)!=="FORFEIT",Object.assign({},s)):(s.$isDisabled=o.includes(s.id),Object.assign({},s))})},awayLineTwoPlayerTwoOptions(){const o=[this.form.lineups.line1.away_player1?this.form.lineups.line1.away_player1.id:null,this.form.lineups.line1.away_player2?this.form.lineups.line1.away_player2.id:null,this.form.lineups.line2.away_player1?this.form.lineups.line2.away_player1.id:null,this.form.lineups.line3.away_player1?this.form.lineups.line3.away_player1.id:null,this.form.lineups.line3.away_player2?this.form.lineups.line3.away_player2.id:null];return this.awayTeam.participants.map(s=>{var l;return s.id==="FORFEIT"?(s.$isDisabled=((l=this.form.line2.player1)==null?void 0:l.id)!=="FORFEIT",Object.assign({},s)):(s.$isDisabled=o.includes(s.id),Object.assign({},s))})},awayLineThreePlayerOneOptions(){const o=[this.form.lineups.line1.away_player1?this.form.lineups.line1.away_player1.id:null,this.form.lineups.line1.away_player2?this.form.lineups.line1.away_player2.id:null,this.form.lineups.line2.away_player1?this.form.lineups.line2.away_player1.id:null,this.form.lineups.line2.away_player2?this.form.lineups.line2.away_player2.id:null,this.form.lineups.line3.away_player2?this.form.lineups.line3.away_player2.id:null];return this.awayTeam.participants.map(s=>{var l;return s.id==="FORFEIT"?(s.$isDisabled=((l=this.form.line2.player1)==null?void 0:l.id)!=="FORFEIT",Object.assign({},s)):(s.$isDisabled=o.includes(s.id),Object.assign({},s))})},awayLineThreePlayerTwoOptions(){const o=[this.form.lineups.line1.away_player1?this.form.lineups.line1.away_player1.id:null,this.form.lineups.line1.away_player2?this.form.lineups.line1.away_player2.id:null,this.form.lineups.line2.away_player1?this.form.lineups.line2.away_player1.id:null,this.form.lineups.line2.away_player2?this.form.lineups.line2.away_player2.id:null,this.form.lineups.line3.away_player1?this.form.lineups.line3.away_player1.id:null];return this.awayTeam.participants.map(s=>{var l;return s.id==="FORFEIT"?(s.$isDisabled=((l=this.form.line2.player1)==null?void 0:l.id)!=="FORFEIT",Object.assign({},s)):(s.$isDisabled=o.includes(s.id),Object.assign({},s))})},homeLineOnePlayerOneOptions(){const o=[this.form.lineups.line1.away_player2?this.form.lineups.line1.away_player2.id:null,this.form.lineups.line2.away_player1?this.form.lineups.line2.away_player1.id:null,this.form.lineups.line2.away_player2?this.form.lineups.line2.away_player2.id:null,this.form.lineups.line3.away_player1?this.form.lineups.line3.away_player1.id:null,this.form.lineups.line3.away_player2?this.form.lineups.line3.away_player2.id:null];return this.homeTeam.participants.map(s=>{var l;return s.id==="FORFEIT"?(s.$isDisabled=((l=this.form.line2.player1)==null?void 0:l.id)!=="FORFEIT",Object.assign({},s)):(s.$isDisabled=o.includes(s.id),Object.assign({},s))})},homeLineOnePlayerTwoOptions(){const o=[this.form.lineups.line1.home_player1?this.form.lineups.line1.home_player1.id:null,this.form.lineups.line2.home_player1?this.form.lineups.line2.home_player1.id:null,this.form.lineups.line2.home_player2?this.form.lineups.line2.home_player2.id:null,this.form.lineups.line3.home_player1?this.form.lineups.line3.home_player1.id:null,this.form.lineups.line3.home_player2?this.form.lineups.line3.home_player2.id:null];return this.homeTeam.participants.map(s=>{var l;return s.id==="FORFEIT"?(s.$isDisabled=((l=this.form.line2.player1)==null?void 0:l.id)!=="FORFEIT",Object.assign({},s)):(s.$isDisabled=o.includes(s.id),Object.assign({},s))})},homeLineTwoPlayerOneOptions(){const o=[this.form.lineups.line1.home_player2?this.form.lineups.line1.home_player2.id:null,this.form.lineups.line1.home_player1?this.form.lineups.line1.home_player1.id:null,this.form.lineups.line2.home_player2?this.form.lineups.line2.home_player2.id:null,this.form.lineups.line3.home_player1?this.form.lineups.line3.home_player1.id:null,this.form.lineups.line3.home_player2?this.form.lineups.line3.home_player2.id:null];return this.homeTeam.participants.map(s=>{var l;return s.id==="FORFEIT"?(s.$isDisabled=((l=this.form.line2.player1)==null?void 0:l.id)!=="FORFEIT",Object.assign({},s)):(s.$isDisabled=o.includes(s.id),Object.assign({},s))})},homeLineTwoPlayerTwoOptions(){const o=[this.form.lineups.line1.home_player1?this.form.lineups.line1.home_player1.id:null,this.form.lineups.line1.home_player2?this.form.lineups.line1.home_player2.id:null,this.form.lineups.line2.home_player1?this.form.lineups.line2.home_player1.id:null,this.form.lineups.line3.home_player1?this.form.lineups.line3.home_player1.id:null,this.form.lineups.line3.home_player2?this.form.lineups.line3.home_player2.id:null];return this.homeTeam.participants.map(s=>{var l;return s.id==="FORFEIT"?(s.$isDisabled=((l=this.form.line2.player1)==null?void 0:l.id)!=="FORFEIT",Object.assign({},s)):(s.$isDisabled=o.includes(s.id),Object.assign({},s))})},homeLineThreePlayerOneOptions(){const o=[this.form.lineups.line1.home_player1?this.form.lineups.line1.home_player1.id:null,this.form.lineups.line1.home_player2?this.form.lineups.line1.home_player2.id:null,this.form.lineups.line2.home_player1?this.form.lineups.line2.home_player1.id:null,this.form.lineups.line2.home_player2?this.form.lineups.line2.home_player2.id:null,this.form.lineups.line3.home_player2?this.form.lineups.line3.home_player2.id:null];return this.homeTeam.participants.map(s=>{var l;return s.id==="FORFEIT"?(s.$isDisabled=((l=this.form.line2.player1)==null?void 0:l.id)!=="FORFEIT",Object.assign({},s)):(s.$isDisabled=o.includes(s.id),Object.assign({},s))})},homeLineThreePlayerTwoOptions(){const o=[this.form.lineups.line1.home_player1?this.form.lineups.line1.home_player1.id:null,this.form.lineups.line1.home_player2?this.form.lineups.line1.home_player2.id:null,this.form.lineups.line2.home_player1?this.form.lineups.line2.home_player1.id:null,this.form.lineups.line2.home_player2?this.form.lineups.line2.home_player2.id:null,this.form.lineups.line3.home_player1?this.form.lineups.line3.home_player1.id:null];return this.homeTeam.participants.map(s=>{var l;return s.id==="FORFEIT"?(s.$isDisabled=((l=this.form.line2.player1)==null?void 0:l.id)!=="FORFEIT",Object.assign({},s)):(s.$isDisabled=o.includes(s.id),Object.assign({},s))})},isMyTeamLineOneSet(){return this.homeTeam.participants.find(s=>s.id===this.user.id)?!!this.form.lineups.line1.home_player1&&!!this.form.lineups.line1.home_player2:!!this.form.lineups.line1.away_player1&&!!this.form.lineups.line1.away_player2},isMyTeamLineTwoSet(){return this.homeTeam.participants.find(s=>s.id===this.user.id)?!!this.form.lineups.line2.home_player1&&!!this.form.lineups.line2.home_player2:!!this.form.lineups.line2.away_player1&&!!this.form.lineups.line2.away_player2},isMyTeamLineThreeSet(){return this.homeTeam.participants.find(s=>s.id===this.user.id)?!!this.form.lineups.line3.home_player1&&!!this.form.lineups.line3.home_player2:!!this.form.lineups.line3.away_player1&&!!this.form.lineups.line3.away_player2},user(){return Z(this.$page.props.auth,"user")}},methods:{hasValue(o){return console.log(o),/^[0-9]+$/.test(o)},getFixedHeight(){return window.innerHeight*.9-50+"px"},saveRecord(){this.saving=!0,this.game.end_of_match?(this.form.late_pass=this.teamHasLatePass,this.form.my_team=this.team.id):this.form.late_pass=0,this.form.home_team=this.homeTeam.id,this.form.away_team=this.awayTeam.id,window.axios.post(route("report-score.store",this.gameId),this.form).then(o=>{o.status===200&&o.data.success?(this.$emit("close",this.game.league,this.form),this.errorMsg=null,this.teamHasLatePass=this.form.late_pass?0:this.teamHasLatePass):this.errorMsg=o.data.message?o.data.message:"Something Went Wrong!",this.saving=!1}).catch(o=>{this.saving=!1,o.response&&o.response.status===422?this.errorMsg="Must enter valid team won count!":console.log(o.response)})},validateScore(){return parseInt(this.form.team_one_score)+parseInt(this.form.team_two_score)===3},getGameLineups(){this.isLoading=!0;for(let o=1;o<=3;o++){for(let s=1;s<=3;s++)this.form["lineup"+o]["game"+s].home_team_score="",this.form["lineup"+o]["game"+s].away_team_score="";this.form.lineups["line"+o].home_player1=null,this.form.lineups["line"+o].home_player2=null,this.form.lineups["line"+o].away_player1=null,this.form.lineups["line"+o].away_player1=null}window.axios.get(route("report-score.game-lineups",this.gameId)).then(o=>{this.lineups=o.data.allLineups;const s=o.data.scores,l=o.data.lineupCount;for(let i=1;i<=l;i++)for(let c=1;c<=3;c++)this.form["lineup"+i]["game"+c].home_team_score=s[i][c].home_team_score,this.form["lineup"+i]["game"+c].away_team_score=s[i][c].away_team_score;const d=o.data.homeTeamLineups,t=o.data.awayTeamLineups;for(let i=0;i<d.length;i++)this.form.lineups["line"+d[i].lineup]["home_player"+d[i].player]=d[i].user;for(let i=0;i<t.length;i++)this.form.lineups["line"+t[i].lineup]["away_player"+t[i].player]=t[i].user;this.calculateFinalScore(),this.form.final_score.away_team_score=o.data.final_score.away_team_score,this.form.final_score.home_team_score=o.data.final_score.home_team_score,this.isLoading=!1})},calculateFinalScore(){this.form.final_score.home_team_score=0,this.form.final_score.away_team_score=0,this.hasValue(this.form.lineup1.game1.home_team_score)&&this.hasValue(this.form.lineup1.game1.away_team_score)&&(parseInt(this.form.lineup1.game1.home_team_score)>parseInt(this.form.lineup1.game1.away_team_score)?this.form.final_score.home_team_score++:parseInt(this.form.lineup1.game1.home_team_score)<parseInt(this.form.lineup1.game1.away_team_score)&&this.form.final_score.away_team_score++),this.hasValue(this.form.lineup1.game2.home_team_score)&&this.hasValue(this.form.lineup1.game2.away_team_score)&&(parseInt(this.form.lineup1.game2.home_team_score)>parseInt(this.form.lineup1.game2.away_team_score)?this.form.final_score.home_team_score++:parseInt(this.form.lineup1.game2.home_team_score)<parseInt(this.form.lineup1.game2.away_team_score)&&this.form.final_score.away_team_score++),this.hasValue(this.form.lineup1.game3.home_team_score)&&this.hasValue(this.form.lineup1.game3.away_team_score)&&(parseInt(this.form.lineup1.game3.home_team_score)>parseInt(this.form.lineup1.game3.away_team_score)?this.form.final_score.home_team_score++:parseInt(this.form.lineup1.game3.home_team_score)<parseInt(this.form.lineup1.game3.away_team_score)&&this.form.final_score.away_team_score++),this.hasValue(this.form.lineup2.game1.home_team_score)&&this.hasValue(this.form.lineup2.game1.away_team_score)&&(parseInt(this.form.lineup2.game1.home_team_score)>parseInt(this.form.lineup2.game1.away_team_score)?this.form.final_score.home_team_score++:parseInt(this.form.lineup2.game1.home_team_score)<parseInt(this.form.lineup2.game1.away_team_score)&&this.form.final_score.away_team_score++),this.hasValue(this.form.lineup2.game2.home_team_score)&&this.hasValue(this.form.lineup2.game2.away_team_score)&&(parseInt(this.form.lineup2.game2.home_team_score)>parseInt(this.form.lineup2.game2.away_team_score)?this.form.final_score.home_team_score++:parseInt(this.form.lineup2.game2.home_team_score)<parseInt(this.form.lineup2.game2.away_team_score)&&this.form.final_score.away_team_score++),this.hasValue(this.form.lineup2.game3.home_team_score)&&this.hasValue(this.form.lineup2.game3.away_team_score)&&(parseInt(this.form.lineup2.game3.home_team_score)>parseInt(this.form.lineup2.game3.away_team_score)?this.form.final_score.home_team_score++:parseInt(this.form.lineup2.game3.home_team_score)<parseInt(this.form.lineup2.game3.away_team_score)&&this.form.final_score.away_team_score++),this.hasValue(this.form.lineup3.game1.home_team_score)&&this.hasValue(this.form.lineup3.game1.away_team_score)&&(parseInt(this.form.lineup3.game1.home_team_score)>parseInt(this.form.lineup3.game1.away_team_score)?this.form.final_score.home_team_score++:parseInt(this.form.lineup3.game1.home_team_score)<parseInt(this.form.lineup3.game1.away_team_score)&&this.form.final_score.away_team_score++),this.hasValue(this.form.lineup3.game2.home_team_score)&&this.hasValue(this.form.lineup3.game2.away_team_score)&&(parseInt(this.form.lineup3.game2.home_team_score)>parseInt(this.form.lineup3.game2.away_team_score)?this.form.final_score.home_team_score++:parseInt(this.form.lineup3.game2.home_team_score)<parseInt(this.form.lineup3.game2.away_team_score)&&this.form.final_score.away_team_score++),this.hasValue(this.form.lineup3.game3.home_team_score)&&this.hasValue(this.form.lineup3.game3.away_team_score)&&(parseInt(this.form.lineup3.game3.home_team_score)>parseInt(this.form.lineup3.game3.away_team_score)?this.form.final_score.home_team_score++:parseInt(this.form.lineup3.game3.home_team_score)<parseInt(this.form.lineup3.game3.away_team_score)&&this.form.final_score.away_team_score++)}}},ta={key:0,class:"mb-6"},la={class:"text-lg"},sa=e("br",null,null,-1),ia=e("br",null,null,-1),oa={key:0,class:"flex space-x-2 justify-center my-4 items-center"},na=e("label",{for:"checkbox",class:"cursor-pointer"},"Use Late Pass",-1),aa={key:1,class:"text-center font-semibold my-4"},ra={key:1,class:"relative min-h-250"},ca={class:"flex flex-col items-center w-full"},da=e("img",{class:"h-6 mb-6",src:"/pickleball/join-pickleball-logo-full-color-green-background-rgb-400px@72ppi.png",alt:""},null,-1),ua={class:"text-lg text-gray text-center mb-3"},ma={class:"text-xl font-bold text-gray text-center mb-1 underline"},ha={class:"text-lg font-semibold text-gray text-center mb-1"},fa={class:"text-lg font-semibold text-gray text-center mb-1"},pa={class:"text-lg font-semibold text-gray text-center mb-3"},_a={key:0,class:"flex justify-center h-[50vh] items-center"},ga=e("svg",{class:"h-6 w-6 animate-spin inline",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1),ya=[ga],ba=e("p",{class:"text-xl font-bold text-gray text-center mb-1 underline"},"Scores",-1),xa={class:"text-lg font-semibold text-gray text-center mb-1"},va={key:0,class:"relative flex flex-col lg:flex-row space-y-6 lg:space-y-0 lg:space-x-6 items-center lg:px-8 mb-2 w-full px-6"},wa={class:"flex-grow w-full"},ka={class:"flex items-center space-x-1 mb-1"},Fa=e("span",{class:"whitespace-nowrap"},"P1: ",-1),La={key:0,class:"flex items-center space-x-1"},Ca=e("span",{class:"whitespace-nowrap"},"P2: ",-1),Ta={key:0,class:"relative"},Oa={class:"flex-grow w-full"},Sa={class:"flex items-center space-x-1 mb-1"},Ia=e("span",{class:"whitespace-nowrap lg:hidden"},"P1: ",-1),Pa=e("span",{class:"whitespace-nowrap hidden lg:block"},": P1",-1),Ea={key:0,class:"flex items-center space-x-1"},Ma=e("span",{class:"whitespace-nowrap lg:hidden"},"P2: ",-1),Aa=e("span",{class:"whitespace-nowrap hidden lg:block"},": P2",-1),Da={class:"flex flex-col items-center w-full mb-4"},ja=e("p",{class:"text-center text-xl font-header"},"Game #1",-1),Va={class:"flex space-x-6 w-2/3 md:w-1/3 justify-between items-center mb-1 relative"},Ra={class:"flex space-x-6 items-center w-2/3 md:w-1/3 justify-between"},Na={class:"flex flex-col items-center w-full mb-4"},Ua=e("p",{class:"text-center text-xl font-header"},"Game #2",-1),Ba={class:"flex space-x-6 items-center w-2/3 md:w-1/3 justify-between mb-1 relative"},Ha={class:"flex space-x-6 items-center w-2/3 md:w-1/3 justify-between"},za={class:"flex flex-col items-center w-full mb-4"},Wa=e("p",{class:"text-center text-xl font-header"},"Game #3",-1),Ka={class:"flex space-x-6 items-center w-2/3 md:w-1/3 justify-between mb-1 relative"},$a={class:"flex space-x-6 items-center w-2/3 md:w-1/3 justify-between"},Ya={key:0,class:"relative flex flex-col lg:flex-row space-y-6 lg:space-y-0 lg:space-x-6 items-center lg:px-8 mb-2 w-full px-6"},Xa={class:"flex-grow w-full"},Ja={class:"flex items-center space-x-1 mb-1"},Za=e("span",{class:"whitespace-nowrap"},"P1: ",-1),Qa={class:"flex items-center space-x-1"},Ga=e("span",{class:"whitespace-nowrap"},"P2: ",-1),qa={class:"relative"},er={class:"flex-grow w-full"},tr={class:"flex items-center space-x-1 mb-1"},lr=e("span",{class:"whitespace-nowrap lg:hidden"},"P1: ",-1),sr=e("span",{class:"whitespace-nowrap hidden lg:block"},": P1",-1),ir={class:"flex items-center space-x-1"},or=e("span",{class:"whitespace-nowrap lg:hidden"},"P2: ",-1),nr=e("span",{class:"whitespace-nowrap hidden lg:block"},": P2",-1),ar={class:"flex flex-col items-center w-full mb-4"},rr=e("p",{class:"text-center text-xl font-header"},"Game #1",-1),cr={class:"flex space-x-6 items-center w-2/3 md:w-1/3 justify-between mb-1 relative"},dr={class:"flex space-x-6 items-center w-2/3 md:w-1/3 justify-between"},ur={class:"flex flex-col items-center w-full mb-4"},mr=e("p",{class:"text-center text-xl font-header"},"Game #2",-1),hr={class:"flex space-x-6 items-center w-2/3 md:w-1/3 justify-between mb-1 relative"},fr={class:"flex space-x-6 items-center w-2/3 md:w-1/3 justify-between"},pr={class:"flex flex-col items-center w-full mb-4"},_r=e("p",{class:"text-center text-xl font-header"},"Game #3",-1),gr={class:"flex space-x-6 items-center w-2/3 md:w-1/3 justify-between mb-1 relative"},yr={class:"flex space-x-6 items-center w-2/3 md:w-1/3 justify-between"},br={key:2,class:"relative flex flex-col lg:flex-row space-y-6 lg:space-y-0 lg:space-x-6 items-center lg:px-8 mb-2 w-full px-6"},xr={class:"flex-grow w-full"},vr={class:"flex items-center space-x-1 mb-1"},wr=e("span",{class:"whitespace-nowrap"},"P1: ",-1),kr={class:"flex items-center space-x-1"},Fr=e("span",{class:"whitespace-nowrap"},"P2: ",-1),Lr={class:"relative"},Cr={class:"flex-grow w-full"},Tr={class:"flex items-center space-x-1 mb-1"},Or=e("span",{class:"whitespace-nowrap lg:hidden"},"P1: ",-1),Sr=e("span",{class:"whitespace-nowrap hidden lg:block"},": P1",-1),Ir={class:"flex items-center space-x-1"},Pr=e("span",{class:"whitespace-nowrap lg:hidden"},"P2: ",-1),Er=e("span",{class:"whitespace-nowrap hidden lg:block"},": P2",-1),Mr={class:"flex flex-col items-center w-full mb-4"},Ar=e("p",{class:"text-center text-xl font-header"},"Game #1",-1),Dr={class:"flex space-x-6 items-center w-2/3 md:w-1/3 justify-between mb-1 relative"},jr={class:"flex space-x-6 items-center w-2/3 md:w-1/3 justify-between"},Vr={class:"flex flex-col items-center w-full mb-4"},Rr=e("p",{class:"text-center text-xl font-header"},"Game #2",-1),Nr={class:"flex space-x-6 items-center w-2/3 md:w-1/3 justify-between mb-1 relative"},Ur={class:"flex space-x-6 items-center w-2/3 md:w-1/3 justify-between"},Br={class:"flex flex-col items-center w-full mb-4"},Hr=e("p",{class:"text-center text-xl font-header"},"Game #3",-1),zr={class:"flex space-x-6 items-center w-2/3 md:w-1/3 justify-between mb-1 relative"},Wr={class:"flex space-x-6 items-center w-2/3 md:w-1/3 justify-between"},Kr={class:"w-full flex flex-col items-center"},$r=e("p",{class:"text-xl font-bold text-gray text-center mb-1 underline"},"Final Score",-1),Yr={class:"flex space-x-6 items-center mb-1 relative"},Xr={class:"text-lg font-bold"},Jr={class:"text-lg font-bold"},Zr={class:"flex space-x-6 items-center"},Qr={class:"text-lg font-bold"},Gr={class:"text-lg font-bold"};function qr(o,s,l,d,t,i){const c=V("multiselect"),h=V("icon-help"),_=V("form-button"),x=V("modal");return a(),H(x,{ref:"modal",clickToClose:!1,escToClose:!0,width:800,onClosed:s[50]||(s[50]=n=>{o.$emit("close"),t.form.late_pass=0}),"fixed-height":i.getFixedHeight()},{default:A(()=>[i.isGameEnd?(a(),r("div",ta,[e("h2",la,[L(`This Match's Time Period has passed. At this point, a Score can only be reported by using a "LatePass". Each Team receives one (1) Late Pass for the league. Click the box "Use Late Pass" and re-Submit the score. `),sa,ia,L("If your Team has already used your one Late Pass, then the Late Pass box will be disabled. In that case, the current forfeit score is final. You can email The JOIN Pickleball Team at "),e("a",{class:g(["text-"+l.domain_color,"underline"]),href:"mailto:joinpickleball@livelifefun.com"},"joinpickleball@livelifefun.com",2),L(" with questions.")]),t.teamHasLatePass?(a(),r("div",oa,[j(e("input",{type:"checkbox",id:"checkbox",class:"w-4 h-4","onUpdate:modelValue":s[0]||(s[0]=n=>t.form.late_pass=n),value:"1"},null,512),[[ke,t.form.late_pass]]),na])):(a(),r("div",aa," Already used Late Pass "))])):f("",!0),(!i.isGameEnd||t.form.late_pass)&&l.game?(a(),r("div",ra,[e("form",{onSubmit:s[49]||(s[49]=P((...n)=>i.saveRecord&&i.saveRecord(...n),["prevent"]))},[e("div",ca,[da,e("h1",{class:g(["font-header text-5xl",["text-"+l.domain_color]])},"Score Report",2),e("p",ua,m(l.isClubChallenge?"Club Challenge League":"Flex Leagues"),1),e("p",ma,"Match #"+m(l.game.week_number),1),e("p",ha,"Location: "+m(l.game.location.name),1),e("p",fa,"Date & Time: "+m(l.game.start_date_time),1),e("p",pa,"League: "+m(l.game.league.name),1),t.isLoading?(a(),r("div",_a,ya)):(a(),r(C,{key:1},[ba,e("p",xa,m(i.awayTeam.name)+" @ "+m(i.homeTeam.name),1),e("div",{class:g(["py-2 text-white font-header text-2xl w-full text-center mb-2",["bg-"+l.domain_color]])}," Men's Line ",2),t.lineups.lineup1&&t.lineups.lineup1[i.awayTeam.id]?(a(),r("div",va,[e("div",wa,[e("div",ka,[Fa,w(c,{modelValue:t.form.lineups.line1.away_player1,"onUpdate:modelValue":s[1]||(s[1]=n=>t.form.lineups.line1.away_player1=n),options:i.awayLineOnePlayerOneOptions,searchable:!1,"close-on-select":!0,"allow-empty":!1,"show-labels":!1,placeholder:"Away Team Player 1"},{singleLabel:A(n=>[e("span",null,m(n.option.first_name)+" "+m(n.option.last_name),1)]),option:A(n=>[e("span",null,m(n.option.first_name)+" "+m(n.option.last_name),1)]),_:1},8,["modelValue","options"])]),l.game&&!l.game.league.singles?(a(),r("div",La,[Ca,w(c,{modelValue:t.form.lineups.line1.away_player2,"onUpdate:modelValue":s[2]||(s[2]=n=>t.form.lineups.line1.away_player2=n),options:i.awayLineOnePlayerTwoOptions,searchable:!1,"close-on-select":!0,"allow-empty":!1,"show-labels":!1,placeholder:"Away Team Player 2"},{singleLabel:A(n=>[e("span",null,m(n.option.first_name)+" "+m(n.option.last_name),1)]),option:A(n=>[e("span",null,m(n.option.first_name)+" "+m(n.option.last_name),1)]),_:1},8,["modelValue","options"])])):f("",!0)]),l.game?(a(),r("div",Ta,[L(" VS "),w(h,{class:g(["w-4 absolute top-0 -right-6 lg:right-0",[l.game.league.singles?"lg:-top-3":"lg:-top-7"]]),message:"Players are listed based on the Lineup Card created for this Match. If a different player played or switched Lines, please update that on the Lineup Card for this Match as these Score Results will reflect on the respective player’s Skill Level."},null,8,["class"])])):f("",!0),e("div",Oa,[e("div",Sa,[Ia,w(c,{modelValue:t.form.lineups.line1.home_player1,"onUpdate:modelValue":s[3]||(s[3]=n=>t.form.lineups.line1.home_player1=n),options:i.homeLineOnePlayerOneOptions,searchable:!1,"close-on-select":!0,"allow-empty":!1,"show-labels":!1,placeholder:"Home Team Player 1"},{singleLabel:A(n=>[e("span",null,m(n.option.first_name)+" "+m(n.option.last_name),1)]),option:A(n=>[e("span",null,m(n.option.first_name)+" "+m(n.option.last_name),1)]),_:1},8,["modelValue","options"]),Pa]),l.game&&!l.game.league.singles?(a(),r("div",Ea,[Ma,w(c,{modelValue:t.form.lineups.line1.home_player2,"onUpdate:modelValue":s[4]||(s[4]=n=>t.form.lineups.line1.home_player2=n),options:i.homeLineOnePlayerTwoOptions,searchable:!1,"close-on-select":!0,"allow-empty":!1,"show-labels":!1,placeholder:"Home Team Player 2"},{singleLabel:A(n=>[e("span",null,m(n.option.first_name)+" "+m(n.option.last_name),1)]),option:A(n=>[e("span",null,m(n.option.first_name)+" "+m(n.option.last_name),1)]),_:1},8,["modelValue","options"]),Aa])):f("",!0)])])):f("",!0),i.isMyTeamLineOneSet||l.game.league.singles?(a(),r(C,{key:1},[e("div",Da,[ja,e("div",Va,[e("p",null,"A: "+m(i.awayTeam.name)+": ",1),j(e("input",{type:"number",onInput:s[5]||(s[5]=n=>i.calculateFinalScore()),"onUpdate:modelValue":s[6]||(s[6]=n=>t.form.lineup1.game1.away_team_score=n),class:"w-16 text-center py-1 px-1 border border-gray"},null,544),[[W,t.form.lineup1.game1.away_team_score]]),w(h,{class:"w-4 absolute -right-5 -top-2",message:"Enter the actual score of the Game. The winning team for the respective Game should have at least 15 points (or more, since you have to win by 2)."})]),e("div",Ra,[e("p",null,"H: "+m(i.homeTeam.name)+": ",1),j(e("input",{type:"number",onInput:s[7]||(s[7]=n=>i.calculateFinalScore()),"onUpdate:modelValue":s[8]||(s[8]=n=>t.form.lineup1.game1.home_team_score=n),class:"w-16 text-center py-1 px-1 border border-gray"},null,544),[[W,t.form.lineup1.game1.home_team_score]])])]),e("div",Na,[Ua,e("div",Ba,[e("p",null,"A: "+m(i.awayTeam.name)+": ",1),j(e("input",{type:"number",onInput:s[9]||(s[9]=n=>i.calculateFinalScore()),"onUpdate:modelValue":s[10]||(s[10]=n=>t.form.lineup1.game2.away_team_score=n),class:"w-16 text-center py-1 px-1 border border-gray"},null,544),[[W,t.form.lineup1.game2.away_team_score]]),w(h,{class:"w-4 absolute -right-5 -top-2",message:"Enter the actual score of the Game. The winning team for the respective Game should have at least 15 points (or more, since you have to win by 2)."})]),e("div",Ha,[e("p",null,"H: "+m(i.homeTeam.name)+": ",1),j(e("input",{type:"number",onInput:s[11]||(s[11]=n=>i.calculateFinalScore()),"onUpdate:modelValue":s[12]||(s[12]=n=>t.form.lineup1.game2.home_team_score=n),class:"w-16 text-center py-1 px-1 border border-gray"},null,544),[[W,t.form.lineup1.game2.home_team_score]])])]),e("div",za,[Wa,e("div",Ka,[e("p",null,"A: "+m(i.awayTeam.name)+": ",1),j(e("input",{type:"number",onInput:s[13]||(s[13]=n=>i.calculateFinalScore()),"onUpdate:modelValue":s[14]||(s[14]=n=>t.form.lineup1.game3.away_team_score=n),class:"w-16 text-center py-1 px-1 border border-gray"},null,544),[[W,t.form.lineup1.game3.away_team_score]]),w(h,{class:"w-4 absolute -right-5 -top-2",message:"Enter the actual score of the Game. The winning team for the respective Game should have at least 15 points (or more, since you have to win by 2)."})]),e("div",$a,[e("p",null,"H: "+m(i.homeTeam.name)+": ",1),j(e("input",{type:"number",onInput:s[15]||(s[15]=n=>i.calculateFinalScore()),"onUpdate:modelValue":s[16]||(s[16]=n=>t.form.lineup1.game3.home_team_score=n),class:"w-16 text-center py-1 px-1 border border-gray"},null,544),[[W,t.form.lineup1.game3.home_team_score]])])])],64)):f("",!0),l.isClubChallenge?(a(),r(C,{key:2},[e("div",{class:g(["py-2 text-white font-header text-2xl w-full text-center mb-2",["bg-"+l.domain_color]])}," Women's Line ",2),t.lineups.lineup2&&t.lineups.lineup2[i.awayTeam.id]?(a(),r("div",Ya,[e("div",Xa,[e("div",Ja,[Za,w(c,{modelValue:t.form.lineups.line2.away_player1,"onUpdate:modelValue":s[17]||(s[17]=n=>t.form.lineups.line2.away_player1=n),options:i.awayLineTwoPlayerOneOptions,searchable:!1,"close-on-select":!0,"allow-empty":!1,"show-labels":!1,placeholder:"Away Team Player 1"},{singleLabel:A(n=>[e("span",null,m(n.option.first_name)+" "+m(n.option.last_name),1)]),option:A(n=>[e("span",null,m(n.option.first_name)+" "+m(n.option.last_name),1)]),_:1},8,["modelValue","options"])]),e("div",Qa,[Ga,w(c,{modelValue:t.form.lineups.line2.away_player2,"onUpdate:modelValue":s[18]||(s[18]=n=>t.form.lineups.line2.away_player2=n),options:i.awayLineTwoPlayerTwoOptions,searchable:!1,"close-on-select":!0,"allow-empty":!1,"show-labels":!1,placeholder:"Away Team Player 2"},{singleLabel:A(n=>[e("span",null,m(n.option.first_name)+" "+m(n.option.last_name),1)]),option:A(n=>[e("span",null,m(n.option.first_name)+" "+m(n.option.last_name),1)]),_:1},8,["modelValue","options"])])]),e("div",qa,[L(" VS "),w(h,{class:"w-4 absolute top-0 lg:-top-7 -right-6 lg:right-0",message:"Players are listed based on the Lineup Card created for this Match. If a different player played or switched Lines, please update that on the Lineup Card for this Match as these Score Results will reflect on the respective player’s Skill Level."})]),e("div",er,[e("div",tr,[lr,w(c,{modelValue:t.form.lineups.line2.home_player1,"onUpdate:modelValue":s[19]||(s[19]=n=>t.form.lineups.line2.home_player1=n),options:i.homeLineTwoPlayerOneOptions,searchable:!1,"close-on-select":!0,"allow-empty":!1,"show-labels":!1,placeholder:"Home Team Player 1"},{singleLabel:A(n=>[e("span",null,m(n.option.first_name)+" "+m(n.option.last_name),1)]),option:A(n=>[e("span",null,m(n.option.first_name)+" "+m(n.option.last_name),1)]),_:1},8,["modelValue","options"]),sr]),e("div",ir,[or,w(c,{modelValue:t.form.lineups.line2.home_player2,"onUpdate:modelValue":s[20]||(s[20]=n=>t.form.lineups.line2.home_player2=n),options:i.homeLineTwoPlayerTwoOptions,searchable:!1,"close-on-select":!0,"allow-empty":!1,"show-labels":!1,placeholder:"Home Team Player 2"},{singleLabel:A(n=>[e("span",null,m(n.option.first_name)+" "+m(n.option.last_name),1)]),option:A(n=>[e("span",null,m(n.option.first_name)+" "+m(n.option.last_name),1)]),_:1},8,["modelValue","options"]),nr])])])):f("",!0),i.isMyTeamLineTwoSet?(a(),r(C,{key:1},[e("div",ar,[rr,e("div",cr,[e("p",null,"A: "+m(i.awayTeam.name)+": ",1),j(e("input",{type:"number",onInput:s[21]||(s[21]=n=>i.calculateFinalScore()),"onUpdate:modelValue":s[22]||(s[22]=n=>t.form.lineup2.game1.away_team_score=n),class:"w-16 text-center py-1 px-1 border border-gray"},null,544),[[W,t.form.lineup2.game1.away_team_score]]),w(h,{class:"w-4 absolute -right-5 -top-2",message:"Enter the actual score of the Game. The winning team for the respective Game should have at least 15 points (or more, since you have to win by 2)."})]),e("div",dr,[e("p",null,"H: "+m(i.homeTeam.name)+": ",1),j(e("input",{type:"number",onInput:s[23]||(s[23]=n=>i.calculateFinalScore()),"onUpdate:modelValue":s[24]||(s[24]=n=>t.form.lineup2.game1.home_team_score=n),class:"w-16 text-center py-1 px-1 border border-gray"},null,544),[[W,t.form.lineup2.game1.home_team_score]])])]),e("div",ur,[mr,e("div",hr,[e("p",null,"A: "+m(i.awayTeam.name)+": ",1),j(e("input",{type:"number",onInput:s[25]||(s[25]=n=>i.calculateFinalScore()),"onUpdate:modelValue":s[26]||(s[26]=n=>t.form.lineup2.game2.away_team_score=n),class:"w-16 text-center py-1 px-1 border border-gray"},null,544),[[W,t.form.lineup2.game2.away_team_score]]),w(h,{class:"w-4 absolute -right-5 -top-2",message:"Enter the actual score of the Game. The winning team for the respective Game should have at least 15 points (or more, since you have to win by 2)."})]),e("div",fr,[e("p",null,"H: "+m(i.homeTeam.name)+": ",1),j(e("input",{type:"number",onInput:s[27]||(s[27]=n=>i.calculateFinalScore()),"onUpdate:modelValue":s[28]||(s[28]=n=>t.form.lineup2.game2.home_team_score=n),class:"w-16 text-center py-1 px-1 border border-gray"},null,544),[[W,t.form.lineup2.game2.home_team_score]])])]),e("div",pr,[_r,e("div",gr,[e("p",null,"A: "+m(i.awayTeam.name)+": ",1),j(e("input",{type:"number",onInput:s[29]||(s[29]=n=>i.calculateFinalScore()),"onUpdate:modelValue":s[30]||(s[30]=n=>t.form.lineup2.game3.away_team_score=n),class:"w-16 text-center py-1 px-1 border border-gray"},null,544),[[W,t.form.lineup2.game3.away_team_score]]),w(h,{class:"w-4 absolute -right-5 -top-2",message:"Enter the actual score of the Game. The winning team for the respective Game should have at least 15 points (or more, since you have to win by 2)."})]),e("div",yr,[e("p",null,"H: "+m(i.homeTeam.name)+": ",1),j(e("input",{type:"number",onInput:s[31]||(s[31]=n=>i.calculateFinalScore()),"onUpdate:modelValue":s[32]||(s[32]=n=>t.form.lineup2.game3.home_team_score=n),class:"w-16 text-center py-1 px-1 border border-gray"},null,544),[[W,t.form.lineup2.game3.home_team_score]])])])],64)):f("",!0),e("div",{class:g(["py-2 text-white font-header text-2xl w-full text-center mb-2",["bg-"+l.domain_color]])}," Open Line ",2),t.lineups.lineup3&&t.lineups.lineup3[i.awayTeam.id]?(a(),r("div",br,[e("div",xr,[e("div",vr,[wr,w(c,{modelValue:t.form.lineups.line3.away_player1,"onUpdate:modelValue":s[33]||(s[33]=n=>t.form.lineups.line3.away_player1=n),options:i.awayLineThreePlayerOneOptions,searchable:!1,"close-on-select":!0,"allow-empty":!1,"show-labels":!1,placeholder:"Away Team Player 1"},{singleLabel:A(n=>[e("span",null,m(n.option.first_name)+" "+m(n.option.last_name),1)]),option:A(n=>[e("span",null,m(n.option.first_name)+" "+m(n.option.last_name),1)]),_:1},8,["modelValue","options"])]),e("div",kr,[Fr,w(c,{modelValue:t.form.lineups.line3.away_player2,"onUpdate:modelValue":s[34]||(s[34]=n=>t.form.lineups.line3.away_player2=n),options:i.awayLineThreePlayerTwoOptions,searchable:!1,"close-on-select":!0,"allow-empty":!1,"show-labels":!1,placeholder:"Away Team Player 2"},{singleLabel:A(n=>[e("span",null,m(n.option.first_name)+" "+m(n.option.last_name),1)]),option:A(n=>[e("span",null,m(n.option.first_name)+" "+m(n.option.last_name),1)]),_:1},8,["modelValue","options"])])]),e("div",Lr,[L(" VS "),w(h,{class:"w-4 absolute top-0 lg:-top-7 -right-6 lg:right-0",message:"Players are listed based on the Lineup Card created for this Match. If a different player played or switched Lines, please update that on the Lineup Card for this Match as these Score Results will reflect on the respective player’s Skill Level."})]),e("div",Cr,[e("div",Tr,[Or,w(c,{modelValue:t.form.lineups.line3.home_player1,"onUpdate:modelValue":s[35]||(s[35]=n=>t.form.lineups.line3.home_player1=n),options:i.homeLineThreePlayerOneOptions,searchable:!1,"close-on-select":!0,"allow-empty":!1,"show-labels":!1,placeholder:"Home Team Player 1"},{singleLabel:A(n=>[e("span",null,m(n.option.first_name)+" "+m(n.option.last_name),1)]),option:A(n=>[e("span",null,m(n.option.first_name)+" "+m(n.option.last_name),1)]),_:1},8,["modelValue","options"]),Sr]),e("div",Ir,[Pr,w(c,{modelValue:t.form.lineups.line3.home_player2,"onUpdate:modelValue":s[36]||(s[36]=n=>t.form.lineups.line3.home_player2=n),options:i.homeLineThreePlayerTwoOptions,searchable:!1,"close-on-select":!0,"allow-empty":!1,"show-labels":!1,placeholder:"Home Team Player 2"},{singleLabel:A(n=>[e("span",null,m(n.option.first_name)+" "+m(n.option.last_name),1)]),option:A(n=>[e("span",null,m(n.option.first_name)+" "+m(n.option.last_name),1)]),_:1},8,["modelValue","options"]),Er])])])):f("",!0),i.isMyTeamLineThreeSet?(a(),r(C,{key:3},[e("div",Mr,[Ar,e("div",Dr,[e("p",null,"A: "+m(i.awayTeam.name)+": ",1),j(e("input",{type:"number",onInput:s[37]||(s[37]=n=>i.calculateFinalScore()),"onUpdate:modelValue":s[38]||(s[38]=n=>t.form.lineup3.game1.away_team_score=n),class:"w-16 text-center py-1 px-1 border border-gray"},null,544),[[W,t.form.lineup3.game1.away_team_score]]),w(h,{class:"w-4 absolute -right-5 -top-2",message:"Enter the actual score of the Game. The winning team for the respective Game should have at least 15 points (or more, since you have to win by 2)."})]),e("div",jr,[e("p",null,"H: "+m(i.homeTeam.name)+": ",1),j(e("input",{type:"number",onInput:s[39]||(s[39]=n=>i.calculateFinalScore()),"onUpdate:modelValue":s[40]||(s[40]=n=>t.form.lineup3.game1.home_team_score=n),class:"w-16 text-center py-1 px-1 border border-gray"},null,544),[[W,t.form.lineup3.game1.home_team_score]])])]),e("div",Vr,[Rr,e("div",Nr,[e("p",null,"A: "+m(i.awayTeam.name)+": ",1),j(e("input",{type:"number",onInput:s[41]||(s[41]=n=>i.calculateFinalScore()),"onUpdate:modelValue":s[42]||(s[42]=n=>t.form.lineup3.game2.away_team_score=n),class:"w-16 text-center py-1 px-1 border border-gray"},null,544),[[W,t.form.lineup3.game2.away_team_score]]),w(h,{class:"w-4 absolute -right-5 -top-2",message:"Enter the actual score of the Game. The winning team for the respective Game should have at least 15 points (or more, since you have to win by 2)."})]),e("div",Ur,[e("p",null,"H: "+m(i.homeTeam.name)+": ",1),j(e("input",{type:"number",onInput:s[43]||(s[43]=n=>i.calculateFinalScore()),"onUpdate:modelValue":s[44]||(s[44]=n=>t.form.lineup3.game2.home_team_score=n),class:"w-16 text-center py-1 px-1 border border-gray"},null,544),[[W,t.form.lineup3.game2.home_team_score]])])]),e("div",Br,[Hr,e("div",zr,[e("p",null,"A: "+m(i.awayTeam.name)+": ",1),j(e("input",{type:"number",onInput:s[45]||(s[45]=n=>i.calculateFinalScore()),"onUpdate:modelValue":s[46]||(s[46]=n=>t.form.lineup3.game3.away_team_score=n),class:"w-16 text-center py-1 px-1 border border-gray"},null,544),[[W,t.form.lineup3.game3.away_team_score]]),w(h,{class:"w-4 absolute -right-5 -top-2",message:"Enter the actual score of the Game. The winning team for the respective Game should have at least 15 points (or more, since you have to win by 2)."})]),e("div",Wr,[e("p",null,"H: "+m(i.homeTeam.name)+": ",1),j(e("input",{type:"number",onInput:s[47]||(s[47]=n=>i.calculateFinalScore()),"onUpdate:modelValue":s[48]||(s[48]=n=>t.form.lineup3.game3.home_team_score=n),class:"w-16 text-center py-1 px-1 border border-gray"},null,544),[[W,t.form.lineup3.game3.home_team_score]])])])],64)):f("",!0)],64)):f("",!0),e("div",Kr,[$r,e("div",Yr,[e("p",Xr,"A: "+m(i.awayTeam.name)+": ",1),e("p",Jr,m(t.form.final_score.away_team_score),1)]),e("div",Zr,[e("p",Qr,"H: "+m(i.homeTeam.name)+": ",1),e("p",Gr,m(t.form.final_score.home_team_score),1)])]),w(_,{class:"!w-2/3 md:!w-1/3 mx-auto mt-10",processing:t.saving,type:"submit",disabled:!i.isScoreSubmittable,domain_color:l.domain_color},{default:A(()=>[L("Save & Exit ")]),_:1},8,["processing","disabled","domain_color"])],64))])],32)])):f("",!0)]),_:1},8,["fixed-height"])}const ec=Y(ea,[["render",qr]]),tc={name:"game-schedule",emit:["allLeaguesToggle"],props:{domain_color:String,currentLeagues:[Array,Object],market:Object,user:Object,cornhole:Boolean,showAllLeagues:{type:Number,default:0}},mixins:[re],components:{IconDropdown:ie,StandingsMathModal:Ie,TeamStandings:Pe,TeamRankingDetails:Ee,ReportScoreModal:ec,OpponentContactModal:Me,ColorIndicator:Ae,MyTeam:Qn,VueToggles:ge,IconCheck:Fe,IconX:Le},data(){return{form:{sortDate:"ascending",selectedTeam:null},gameInfo:[],gameTypeFilter:"all",opponentTeam:null,selectedLeague:null,selectedClubChallenge:0,viewType:null,standingsLoaded:!1,GameListLoading:!0,lastGameDayRangeIsPast:!1,availabilities:[],standings:{team_one:null,team_two:null,activeTeam:null},selectedLeagueTeams:[],notHeadToHeadPairs:[],selectedGame:null,myTeam:null,allLeagues:!!this.showAllLeagues,message:""}},filters:{uppercase(o){return o.toUpperCase()}},mounted(){let o=[];Array.isArray(this.currentLeagues)?o=this.currentLeagues:o=Object.values(this.currentLeagues);const s=new URL(window.location.href),l=s.searchParams.get("league"),d=s.searchParams.get("tab");if(l&&d){const t=o.find(i=>i.id===parseInt(l));t&&setTimeout(()=>{this.chooseLeague(t,d)},200)}else{const t=o.filter(i=>new Date(i.start_date)>=new Date);if(t.length>0){const i=t.filter(h=>h.is_published),c=i.length>0?i[0]:null;c&&setTimeout(()=>{this.chooseLeague(c,"schedule")},200)}}},computed:{liveLeagues(){let o=[];Array.isArray(this.currentLeagues)?o=this.currentLeagues:o=Object.values(this.currentLeagues);const s=new URL(window.location.href),l=s.searchParams.get("league"),d=s.searchParams.get("tab");if(!l||!d)return o;const t=o.find(i=>i.id===parseInt(l));return t&&(o=o.filter(i=>i.id!==parseInt(l)),o.unshift(t)),o},isOpen(){let o={};for(let s in this.liveLeagues){let l=this.liveLeagues[s],d=l.id==this.selectedLeague;o[l.id]=d}return o},days(){return Z(this.$page,"days",[])},activeLeague(){let o=null;return this.selectedLeague&&(o=this.liveLeagues.find(s=>s.id===this.selectedLeague)),o},filteredGameList(){let o=[],s=this.gameInfo;return this.gameTypeFilter==="scheduled"?s=this.upcomingGames:this.gameTypeFilter==="completed"&&(s=this.finishedGames),this.form.selectedTeam?o=s.filter(l=>l.team_one_id===this.form.selectedTeam||l.team_two_id===this.form.selectedTeam):o=s,o},sortedGameList(){let o=this.filteredGameList;return o=o.sort((s,l)=>{let d,t;if(d=s.date,t=l.date,d>t)return 1;if(t>d)return-1;if(t===d){if(s.field){if(s.field.name>l.field.name)return 1;if(s.field.name<l.field.name)return-1}return 0}return 0}),o},upcomingGames(){return this.gameInfo.filter(o=>o.status==="Go")},finishedGames(){return this.gameInfo.filter(o=>o.status==="Complete")},isNonJoinPickleBallMarket(){return![37,38].includes(this.market.id)},checkedBg(){return this.domain_color==="pickleball-green"?"#82cd33":this.domain_color==="cornhole-orange"?"#ff9000":"#E10200"},isManageable(){if(this.myTeam){const o=this.myTeam.participants.filter(l=>l.pivot.is_captain||l.pivot.is_co_captain);return!!this.myTeam.designees.concat(o).find(l=>{var d;return l.id===((d=this.user)==null?void 0:d.id)})}return!1},isPlayerInTeam(){return this.myTeam?!!this.myTeam.participants.find(o=>o.id===this.user.id):!1}},methods:{openOpponentContact(o){axios.get("/opponent-contact/"+o.id).then(s=>{this.opponentTeam=s.data,this.$refs.opponentContactModal.openModal()})},chooseLeague(o,s){let l=s!==this.viewType;this.viewType=s;let d=o.id;!l&&this.selectedLeague===o.id&&(d=null),this.selectedLeague=d,this.selectedClubChallenge=o.is_club_challenge,d&&s=="schedule"&&(this.gameInfo=[],this.GameListLoading=!0,axios.get("/markets/"+this.market.id+"/league/"+d).then(async t=>{this.gameInfo=await t.data.games;let i=t.data.team;this.availabilities=t.data.availabilities,this.myTeam=i,i&&(!o.myTeams||o.myTeams.length===1)?this.form.selectedTeam=i.id:this.form.selectedTeam=null,this.lastGameDayRangeIsPast=await t.data.last_game_day_range_is_past,this.GameListLoading=!1,this.message=t.data.message}))},leagueAnchor(o){return o==0?"#current-leagues":"#league"+this.liveLeagues[o-1].id},modalClosed(o=null){this.$refs.reportScoreModal.closeModal(),o&&(this.chooseLeague(o,"schedule"),this.chooseLeague(o,"schedule"))},openReportScoreModal(o){console.log(this.market.type),this.isManageable&&(console.log(this.market.type),this.market.type==="flex"&&(this.selectedGame=o,this.$refs.reportScoreModal.openModal()))},toggleAllLeagues(){this.allLeagues=!this.allLeagues,this.emitter.emit("allLeaguesToggle",this.allLeagues)},updateAvailability(o,s){axios.post(route("get-my-team.availability",[this.selectedLeague,this.myTeam.id]),{game:o,participant:this.user.id,action:s?"in":"out"}).then(l=>{this.availabilities[o]=s})},resetAvailability(o){this.availabilities[o]=null}}},lc={class:"m-auto"},sc={class:"w-full bg-white"},ic={class:"container py-12 mx-auto text-center"},oc={key:2,class:"text-lg mb-10"},nc=["href"],ac={key:3,class:"text-lg mb-10"},rc={key:4,class:"text-lg mb-10"},cc={key:0,class:"flex mx-auto space-x-6 w-full md:w-2/3 justify-center md:px-10 mb-10"},dc=e("span",{class:"whitespace-nowrap"},"View My Leagues",-1),uc=e("span",{class:"whitespace-nowrap"},"View All Leagues",-1),mc={key:1,class:""},hc=["id"],fc={class:"px-0 lg:px-24 mx-auto"},pc={class:"px-0 md:px-4"},_c={class:"flex flex-col"},gc={class:"w-full flex flex-no-wrap"},yc={class:"flex-grow text-left"},bc=["onClick"],xc={class:"block lg:flex-shrink-0 lg:flex align-middle"},vc=["onClick"],wc=["onClick"],kc=["href","onClick"],Fc=["onClick"],Lc={key:0,class:"text-red text-left"},Cc={key:1,class:"flex flex-wrap my-1 text-xs"},Tc=e("span",{class:"text-gray"},"League Bar:",-1),Oc=["href"],Sc={key:2,class:"w-full overflow-x-scroll"},Ic={class:"w-full mt-1",style:{"min-width":"450px"}},Pc={key:3,class:"flex flex-col space-y-10"},Ec={key:4,class:"w-full overflow-x-scroll block md:flex flex-wrap mt-1"},Mc={key:0,class:"w-full md:w-1/2 md:flex-grow md:inline-block text-left"},Ac=e("div",{class:"w-16 md:inline-block text-right"},[e("span",{class:"text-xs text-market-gray"},"Show:")],-1),Dc={class:"w-full md:w-1/3 md:inline-block relative ml-1"},jc=e("option",{value:"scheduled"},"Scheduled Games",-1),Vc=e("option",{value:"all"},"All Games",-1),Rc=e("option",{value:"completed"},"Completed Games",-1),Nc=[jc,Vc,Rc],Uc=e("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center text-sm text-market-gray mr-1"},[e("svg",{class:"fill-current h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[e("path",{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"})])],-1),Bc={key:1,class:"w-full md:w-1/2 md:flex-grow md:inline-block text-left md:text-right"},Hc=e("div",{class:"w-16 md:inline-block text-right"},[e("span",{class:"text-xs text-market-gray"},"Filter by:")],-1),zc={class:"w-full md:w-1/3 md:inline-block relative ml-1"},Wc=e("option",{value:null},"All Teams",-1),Kc=["value"],$c=e("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center text-sm text-market-gray mr-1"},[e("svg",{class:"fill-current h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[e("path",{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"})])],-1),Yc={key:2,class:"hidden md:table table-auto w-full my-8 text-left"},Xc={key:0,class:"p-2 w-1/12 md:w-1/12 text-center"},Jc=e("b",null,"Match #",-1),Zc=[Jc],Qc=e("td",{class:"p-2 w-1/4 md:w-1/4 text-center"},[e("b",null,"Location")],-1),Gc=e("td",{class:"p-2 w-1/4 md:w-1/4 text-center"},[e("b",null,"Date & Time")],-1),qc={key:1,class:"p-2 w-1/8 md:w-1/8 text-center"},ed=e("b",null,"My Availability",-1),td=[ed],ld={class:"p-2 w-1/4 text-right"},sd={key:2,class:"p-2 w-1/12 text-center"},id={class:"p-2 w-1/12 text-center"},od={key:0},nd={class:"odd:bg-gray-light"},ad=e("br",null,null,-1),rd={key:0},cd={key:1},dd=["href"],ud={key:0},md=e("br",null,null,-1),hd={key:1},fd=e("br",null,null,-1),pd=["href"],_d=["href"],gd={key:2},yd=["onClick"],bd=["onClick"],xd={class:"flex items-center space-x-2"},vd=["onInput","checked"],wd=e("label",{class:"text-sm font-semibold ml-1"},"In",-1),kd={class:"flex items-center space-x-2"},Fd=["onInput","checked"],Ld=e("label",{class:"text-sm font-semibold ml-1"},"Out",-1),Cd={key:0},Td=["onClick"],Od=e("br",null,null,-1),Sd=["onClick"],Id={key:0},Pd=["onClick"],Ed={key:0},Md={key:1},Ad=["onClick"],Dd={key:0},jd={key:1},Vd={key:1,class:"flex justify-center items-center"},Rd=["onClick"],Nd={key:0,class:""},Ud=e("span",{class:"leading-10 align-middle"},"Additional games for league playoff week will be scheduled at the end of the regular season.",-1),Bd=[Ud],Hd={key:4,class:"table md:hidden table-auto w-full my-8"},zd={class:"table-row py-2"},Wd={colspan:"3",class:"w-1/12 pt-2"},Kd={class:"font-bold"},$d=e("tr",{class:"table-row py-2"},[e("td",{colspan:"3",class:"w-1/12 pt-4"},[e("p",{class:"uppercase underline font-bold"},"Location")])],-1),Yd={class:"table-row py-2"},Xd={colspan:"3"},Jd={class:"flex justify-center"},Zd={key:0},Qd=["href"],Gd=e("tr",{class:"table-row py-2"},[e("td",{colspan:"3",class:"w-1/12 pt-4"},[e("p",{class:"uppercase underline font-bold"},"Date & Time")])],-1),qd={class:"table-row py-2"},eu={colspan:"3"},tu={key:0},lu=e("br",null,null,-1),su={key:1,class:"text-center"},iu={key:2},ou=["href"],nu=["href"],au={key:0,class:"table-row py-2"},ru=e("td",{colspan:"3",class:"w-1/12 pt-4"},[e("p",{class:"uppercase underline font-bold"},"My Availability")],-1),cu=[ru],du={key:1,class:"table-row py-2"},uu={colspan:"3"},mu=["onClick"],hu=["onClick"],fu={class:"flex items-center justify-center"},pu={class:"flex items-center w-16 space-x-2"},_u=["onInput","checked"],gu=e("label",{class:"text-sm font-semibold ml-1"},"In",-1),yu={class:"flex items-center justify-center"},bu={class:"flex items-center w-16 space-x-2"},xu=["onInput","checked"],vu=e("label",{class:"text-sm font-semibold ml-1"},"Out",-1),wu=e("tr",{class:"table-row py-2"},[e("td",{colspan:"3",class:"w-1/12 pt-4"},[e("p",{class:"uppercase underline font-bold"},"Matchup")])],-1),ku={class:"table-row py-2"},Fu=e("td",{class:"w-1/12 pb-2"}," ",-1),Lu={colspan:"3",class:"flex justify-between"},Cu=e("span",null,"A: ",-1),Tu=["onClick"],Ou={key:0},Su={key:1},Iu={key:1},Pu=["onClick"],Eu=e("td",{class:"w-1/12 mr-8 pr-4"}," ",-1),Mu=e("td",{class:"w-1/12 pb-2"}," ",-1),Au={colspan:"3",class:"flex justify-between"},Du=e("span",null,"H:",-1),ju=["onClick"],Vu={key:0},Ru={key:1},Nu={key:1},Uu=["onClick"],Bu=e("td",{class:"w-1/12 mr-8 pr-4"}," ",-1),Hu={key:2},zu={colspan:"3",class:"pb-4"},Wu=["onClick"],Ku={class:"table-row py-2"},$u=e("td",{class:"w-1/12 pt-4"}," ",-1),Yu=e("td",{class:"w-1/12 mr-8 pr-4"}," ",-1),Xu={class:"table-row py-2"},Ju=e("td",{class:"w-1/12"}," ",-1),Zu=e("td",{class:"w-1/12"}," ",-1),Qu={class:"table-row"},Gu=e("td",{class:"w-1/12"}," ",-1),qu=e("td",{class:"w-1/12"},null,-1),em={class:"table-row py-2"},tm=e("td",{class:"w-1/12"}," ",-1),lm={colspan:"3",class:"flex justify-between"},sm={key:0},im={key:1},om=e("td",{class:"w-1/12 mr-8 pr-4"}," ",-1),nm=e("td",{class:"w-1/12 pb-2"}," ",-1),am={colspan:"3",class:"flex justify-between"},rm={key:0},cm={key:1},dm=e("td",{class:"w-1/12 mr-8 pr-4"}," ",-1),um={key:0},mm={colspan:"3",class:"pb-4"},hm=["onClick"],fm=e("tr",{class:"table-row py-2"},[e("td",{class:"w-1/12 pt-4"}," "),e("td",null,[e("span",{class:"leading-10 align-middle"},"Additional games for league playoff week will be scheduled at the end of the regular season.")]),e("td",{class:"w-1/12 pt-4"}," ")],-1),pm=[fm],_m={key:5,class:"w-full mt-1"};function gm(o,s,l,d,t,i){const c=V("VueToggles"),h=V("team-standings"),_=V("my-team"),x=V("icon-check"),n=V("icon-x"),u=V("color-indicator"),y=V("standings-math-modal"),T=V("report-score-modal"),b=V("opponent-contact-modal");return a(),r("div",lc,[e("div",sc,[e("div",ic,[l.domain_color=="pickleball-green"?(a(),r("h2",{key:0,id:"current-leagues",class:g(["leading-none font-header text-6xl mb-4",["text-"+l.domain_color]])},"My Current Leagues",2)):(a(),r("h2",{key:1,id:"current-leagues",class:g(["leading-none font-header text-6xl mb-4",["text-"+l.domain_color]])},"MY CURRENT LEAGUES",2)),l.user?i.liveLeagues.length===0&&l.market.type=="flex"&&!l.user.is_admin?(a(),r("p",ac," You are not currently registered for any "+m(l.market.name)+" leagues. ",1)):i.liveLeagues.length===0&&!l.user.is_admin?(a(),r("p",rc," You are not registered for any current leagues ")):(a(),r(C,{key:5},[l.market.type!=="flex"?(a(),r("div",cc,[dc,w(c,{value:t.allLeagues,class:"flex-shrink-0",width:55,checkedBg:i.checkedBg,onClick:i.toggleAllLeagues},null,8,["value","checkedBg","onClick"]),uc])):f("",!0),i.liveLeagues.length===0?(a(),r("div",mc," You are not registered for any current leagues ")):f("",!0),(a(!0),r(C,null,R(i.liveLeagues,(F,B)=>(a(),r("div",{key:`league-row-${F.id}`,class:"mb-8",id:`league${F.id}`},[e("div",fc,[e("div",pc,[e("div",{class:g(["border-2 p-4 mb-6",["border-"+l.domain_color]])},[e("div",_c,[e("div",gc,[e("div",yc,[e("span",{class:"inline-block font-bold text-sm text-market-gray mr-2 cursor-pointer",onClick:P(p=>i.chooseLeague(F,"schedule"),["prevent"])},m(F.name),9,bc)]),e("div",xc,[F.is_my_league?(a(),r("button",{key:0,class:g(["inline-block whitespace-nowrap text-xs mx-1 px-2 md:px-8 my-auto rounded-full cursor-pointer",[t.viewType==="myTeam"&&t.selectedLeague===F.id?"text-white bg-"+l.domain_color:"border border-"+l.domain_color+" text-"+l.domain_color]]),onClick:P(p=>i.chooseLeague(F,"myTeam"),["prevent"])},"My Team"+m(F.myTeams.length>1?"s":""),11,vc)):f("",!0),F.is_published?(a(),r("button",{key:1,class:g(["inline-block text-xs mx-1 px-2 md:px-8 my-auto rounded-full cursor-pointer",[t.viewType==="schedule"&&t.selectedLeague===F.id?"text-white bg-"+l.domain_color:"border border-"+l.domain_color+" text-"+l.domain_color]]),onClick:P(p=>i.chooseLeague(F,"schedule"),["prevent"])},"Schedule ",10,wc)):f("",!0),F.is_published?(a(),r("a",{key:2,href:i.leagueAnchor(B),class:g(["inline-block text-xs mx-1 px-2 md:px-8 my-auto rounded-full cursor-pointer",[t.viewType==="standings"&&t.selectedLeague===F.id?"text-white bg-"+l.domain_color:"border border-"+l.domain_color+" text-"+l.domain_color]]),onClick:p=>i.chooseLeague(F,"standings")},"Standings",10,kc)):f("",!0),e("button",{class:g(["inline-block text-xs mx-1 px-2 md:px-8 my-auto rounded-full cursor-pointer",[t.viewType==="notes"&&t.selectedLeague===F.id?"text-white bg-"+l.domain_color:"border border-"+l.domain_color+" text-"+l.domain_color]]),onClick:P(p=>i.chooseLeague(F,"notes"),["prevent"])},"Notes ",10,Fc)])]),i.isOpen[F.id]&&t.message?(a(),r("div",Lc,m(t.message),1)):f("",!0),F.type!="flex"&&i.isOpen[F.id]&&F.bars[0]?(a(),r("div",Cc,[Tc,e("a",{href:o.route("league-bar-league",F),class:g(["underline ml-2",["text-"+l.domain_color]])},"View Bars",10,Oc)])):f("",!0),i.isOpen[F.id]&&t.viewType==="standings"?(a(),r("div",Sc,[e("div",Ic,[w(h,{activity:i.activeLeague.activity,league:i.activeLeague,domain_color:l.domain_color},null,8,["activity","league","domain_color"])])])):f("",!0),i.isOpen[F.id]&&t.viewType==="myTeam"?(a(),r("div",Pc,[F.myTeams.length>0?(a(!0),r(C,{key:0},R(F.myTeams,p=>(a(),H(_,{domain_color:l.domain_color,league:i.activeLeague,teamId:p,key:p},null,8,["domain_color","league","teamId"]))),128)):(a(),H(_,{key:1,domain_color:l.domain_color,league:i.activeLeague},null,8,["domain_color","league"]))])):f("",!0),i.isOpen[F.id]&&t.viewType==="schedule"?(a(),r("div",Ec,[F.teams&&F.teams.length?(a(),r("div",Mc,[Ac,e("div",Dc,[j(e("select",{class:"md:inline-block appearance-none w-full bg-white text-market-gray border border-market-gray text-xs py-1 pl-2 pr-6 rounded cursor-pointer select-text-center","onUpdate:modelValue":s[0]||(s[0]=p=>t.gameTypeFilter=p)},Nc,512),[[$,t.gameTypeFilter]]),Uc])])):f("",!0),F.teams&&F.teams.length?(a(),r("div",Bc,[Hc,e("div",zc,[j(e("select",{class:"md:inline-block appearance-none w-full bg-white text-market-gray border border-market-gray text-xs py-1 pl-2 pr-6 rounded cursor-pointer select-text-center","onUpdate:modelValue":s[1]||(s[1]=p=>t.form.selectedTeam=p)},[Wc,(a(!0),r(C,null,R(F.teams,p=>(a(),r("option",{key:`league-team-${p.id}`,value:p.id},m(p.name),9,Kc))),128))],512),[[$,t.form.selectedTeam]]),$c])])):f("",!0),i.sortedGameList.length?(a(),r("table",Yc,[e("tr",{class:g({"bg-pickleball-green border border-pickleball-green text-white":l.domain_color==="pickleball-green","bg-red border border-red text-white":l.domain_color==="red","bg-cornhole-orange border border-cornhole-orange text-white":l.domain_color==="cornhole-orange"})},[l.domain_color=="pickleball-green"?(a(),r("td",Xc,Zc)):f("",!0),Qc,Gc,F.singles?f("",!0):(a(),r("td",qc,td)),e("td",ld,[e("b",{class:g([l.market.type==="flex"?"lg:pr-2 xl:pr-8 2xl:pr-12":"lg:pr-4 xl:pr-12 2xl:pr-16"])},"Matchup",2)]),l.market.type==="flex"?(a(),r("td",sd)):f("",!0),e("td",id,[F.type==="flex"?(a(),r("b",od,"Score")):f("",!0)])],2),(a(!0),r(C,null,R(i.sortedGameList,p=>{var v;return a(),r("tr",nd,[l.domain_color=="pickleball-green"?(a(),r("td",{key:0,class:g(["p-2 w-1/12 md:w-1/12 border-2",["border-"+l.domain_color]])},m(p.week_number),3)):f("",!0),e("td",{class:g(["p-2 w-1/4 md:w-1/4 border-2",["border-"+l.domain_color]])},[L(m(p.location_name)+" ",1),ad,p.field?(a(),r("span",rd,m(p.field.name),1)):(a(),r("span",cd,[e("a",{href:(v=p.location)==null?void 0:v.map_url,target:"_blank",class:g(["underline",["text-"+l.domain_color]])},"Map",10,dd)]))],2),e("td",{class:g(["p-2 w-1/4 md:w-1/4 border-2",["border-"+l.domain_color]])},[p.date_formatted?(a(),r("span",ud,[L(m(p.date_formatted)+" ",1),md,L(" "+m(p.time_formatted),1)])):(a(),r("span",hd,[L(m(p.date_range)+" ",1),fd,t.myTeam&&p.team_one.id==t.myTeam.id&&!p.team_one_score&&!p.team_two_score&&!p.end_of_match?(a(),r("a",{key:0,href:o.route("match-maker.index",[p.team_one.id,p.id]),class:g(["underline",["text-"+l.domain_color]])},"Schedule Match",10,pd)):t.myTeam&&p.team_two.id==t.myTeam.id&&!p.team_one_score&&!p.team_two_score&&!p.end_of_match?(a(),r("a",{key:1,href:o.route("match-maker.index",[p.team_two.id,p.id]),class:g(["underline",["text-"+l.domain_color]])},"Schedule Match",10,_d)):(a(),r("span",gd))]))],2),F.singles?f("",!0):(a(),r("td",{key:1,class:g(["p-2 w-1/8 md:w-1/8 border-2",["border-"+l.domain_color]])},[p.start_date&&i.isPlayerInTeam&&t.myTeam&&[p.team_one_id,p.team_two_id].includes(t.myTeam.id)?(a(),r(C,{key:0},[t.availabilities[p.id]!==null?(a(),r(C,{key:0},[t.availabilities[p.id]?(a(),r("button",{key:0,onClick:k=>i.resetAvailability(p.id)},[w(x,{class:"w-7 mx-auto bg-green-500 text-white rounded"})],8,yd)):(a(),r("button",{key:1,onClick:k=>i.resetAvailability(p.id)},[w(n,{class:"w-7 mx-auto bg-red text-white rounded cursor-pointer"})],8,bd))],64)):(a(),r(C,{key:1},[e("div",xd,[e("input",{onInput:k=>i.updateAvailability(p.id,1),type:"checkbox",id:"radio-1",class:"rounded",checked:t.availabilities[p.id]===!0},null,40,vd),wd]),e("div",kd,[e("input",{onInput:k=>i.updateAvailability(p.id,0),type:"checkbox",id:"radio-2",class:"rounded",checked:t.availabilities[p.id]===!1},null,40,Fd),Ld])],64))],64)):(a(),r(C,{key:1},[L("-")],64))],2)),e("td",{class:g(["p-2 w-1/12 md:table-cell border-2 border-r-0",[{hidden:p.status!="Complete"},"border-"+l.domain_color]])},[e("div",{class:g(["flex space-x-2",{"font-bold":p.team_one_score>p.team_two_score}])},[i.isNonJoinPickleBallMarket?(a(),H(u,{key:0,color:p.team_one.color},null,8,["color"])):f("",!0),e("span",null,m(p.team_one.name),1)],2),e("div",{class:g(["flex space-x-2",{"font-bold":p.team_two_score>p.team_one_score}])},[i.isNonJoinPickleBallMarket?(a(),H(u,{key:0,color:p.team_two.color},null,8,["color"])):f("",!0),e("span",null,[L(m(p.team_two.name)+" ",1),p.league.type==="flex"?(a(),r("span",Cd,"(home)")):f("",!0)])],2)],2),l.market.type=="flex"?(a(),r("td",{key:2,class:g(["p-2 w-1/12 text-right md:table-cell border-2 border-l-0",[{hidden:p.status!="Complete"},"text-"+l.domain_color,"border-"+l.domain_color]])},[i.isManageable?(a(),r("a",{key:0,class:g(["cursor-pointer underline",["text-"+l.domain_color]]),href:"#",onClick:P(k=>i.openOpponentContact(p.team_one),["prevent"])},"Contact",10,Td)):f("",!0),Od,i.isManageable?(a(),r("a",{key:1,class:g(["cursor-pointer underline",["text-"+l.domain_color]]),href:"#",onClick:P(k=>i.openOpponentContact(p.team_two),["prevent"])},"Contact",10,Sd)):f("",!0)],2)):f("",!0),e("td",{class:g(["p-2 w-1/12 text-center md:table-cell border-2 border-l-0",[{hidden:p.status!="Complete"},"border-"+l.domain_color]])},[p.team_one_score!==null||p.team_two_score!==null?(a(),r("div",Id,[e("div",{onClick:P(k=>i.openReportScoreModal(p),["prevent"]),class:g({"font-bold":p.team_one_score>p.team_two_score,"cursor-pointer":l.market.type==="flex"})},[L(m(p.team_one_score)+" ",1),p.is_forfeit&&p.team_two_score>p.team_one_score?(a(),r("span",Ed,"(F)")):f("",!0),p.is_forfeit&&p.team_two_score==p.team_one_score?(a(),r("span",Md,"(F)")):f("",!0)],10,Pd),e("div",{onClick:P(k=>i.openReportScoreModal(p),["prevent"]),class:g({"font-bold":p.team_two_score>p.team_one_score,"cursor-pointer":l.market.type==="flex"})},[L(m(p.team_two_score)+" ",1),p.is_forfeit&&p.team_one_score>p.team_two_score?(a(),r("span",Dd,"(F)")):f("",!0),p.is_forfeit&&p.team_one_score==p.team_two_score?(a(),r("span",jd,"(F)")):f("",!0)],10,Ad)])):l.market.type=="flex"&&(!t.myTeam||t.myTeam.id==p.team_one.id||t.myTeam.id==p.team_two.id)&&!p.is_club_challenge_game_expired?(a(),r("div",Vd,[i.isManageable?(a(),r("a",{key:0,href:"#",class:"text-sm underline",onClick:P(k=>i.openReportScoreModal(p),["prevent"])},"Report Score",8,Rd)):f("",!0)])):f("",!0)],2)])}),256)),!t.lastGameDayRangeIsPast&&l.market.type=="flex"?(a(),r("tr",Nd,[e("td",{class:g(["p-2 w-1/12 md:w-1/12 border-2",["border-"+l.domain_color]])}," 6 ",2),e("td",{class:g(["p-2 border-2",["border-"+l.domain_color]]),colspan:"6"},Bd,2)])):f("",!0)])):f("",!0),!i.sortedGameList.length&&t.GameListLoading?(a(),r("div",{key:3,class:g(["w-full flex justify-center",["text-"+l.domain_color]])}," Loading.. ",2)):f("",!0),i.sortedGameList.length?(a(),r("table",Hd,[(a(!0),r(C,null,R(i.sortedGameList,(p,v)=>{var k;return a(),r("tbody",{class:g(["table-row-group odd:bg-gray-light border-2",["border-"+l.domain_color]])},[[37,38].includes(l.market.id)?(a(),r(C,{key:0},[e("tr",zd,[e("td",Wd,[e("p",Kd,"Match #"+m(p.week_number),1)])]),$d,e("tr",Yd,[e("td",Xd,[e("p",Jd,[e("span",null,[L(m(p.location_name)+" ",1),p.field&&p.field.name?(a(),r("span",Zd,"-")):f("",!0),L(" "+m(p.field?p.field.name:""),1)])]),e("a",{class:"underline text-indigo-500",target:"_blank",href:(k=p.location)==null?void 0:k.map_url},"Map",8,Qd)])]),Gd,e("tr",qd,[e("td",eu,[p.date_formatted?(a(),r("span",tu,[L(m(p.date_formatted)+" ",1),lu,L(" "+m(p.time_formatted),1)])):(a(),r("p",su,m(p.date_range),1)),F.schedule_type==="flex"&&!p.date_formatted?(a(),r("div",iu,[t.myTeam&&p.team_one.id==t.myTeam.id&&!p.team_one_score&&!p.team_two_score&&!p.end_of_match?(a(),r("a",{key:0,href:o.route("match-maker.index",[p.team_one.id,p.id]),class:g(["underline",["text-"+l.domain_color]])},"Schedule Match",10,ou)):t.myTeam&&p.team_two.id==t.myTeam.id&&!p.team_one_score&&!p.team_two_score&&!p.end_of_match?(a(),r("a",{key:1,href:o.route("match-maker.index",[p.team_two.id,p.id]),class:g(["underline",["text-"+l.domain_color]])},"Schedule Match",10,nu)):f("",!0)])):f("",!0)])]),F.singles?f("",!0):(a(),r("tr",au,cu)),F.singles?f("",!0):(a(),r("tr",du,[e("td",uu,[p.start_date&&i.isPlayerInTeam?(a(),r(C,{key:0},[t.availabilities[p.id]!==null?(a(),r(C,{key:0},[t.availabilities[p.id]?(a(),r("button",{key:0,onClick:O=>i.resetAvailability(p.id)},[w(x,{class:"w-7 mx-auto bg-green-500 text-white rounded"})],8,mu)):(a(),r("button",{key:1,onClick:O=>i.resetAvailability(p.id)},[w(n,{class:"w-7 mx-auto bg-red text-white rounded cursor-pointer"})],8,hu))],64)):(a(),r(C,{key:1},[e("div",fu,[e("div",pu,[e("input",{onInput:O=>i.updateAvailability(p.id,1),type:"checkbox",id:"radio-1",class:"rounded",checked:t.availabilities[p.id]===!0},null,40,_u),gu])]),e("div",yu,[e("div",bu,[e("input",{onInput:O=>i.updateAvailability(p.id,0),type:"checkbox",id:"radio-2",class:"rounded",checked:t.availabilities[p.id]===!1},null,40,xu),vu])])],64))],64)):(a(),r(C,{key:1},[L("-")],64))])])),wu,e("tr",ku,[Fu,e("td",Lu,[e("div",{class:g(["flex justify-left space-x-2",{"font-bold":p.team_one_score>p.team_two_score}])},[Cu,i.isNonJoinPickleBallMarket?(a(),H(u,{key:0,color:p.team_one.color},null,8,["color"])):f("",!0),e("span",null,m(p.team_one.name),1)],2),p.team_one_score!==null?(a(),r("div",{key:0,onClick:P(O=>i.openReportScoreModal(p),["prevent"]),class:g({"font-bold":p.team_one_score>p.team_two_score,"cursor-pointer":l.market.type==="flex"})},[L(m(p.team_one_score)+" ",1),p.is_forfeit&&p.team_two_score>p.team_one_score?(a(),r("span",Ou,"(F)")):f("",!0),p.is_forfeit&&p.team_two_score==p.team_one_score?(a(),r("span",Su,"(F)")):f("",!0)],10,Tu)):(a(),r("div",Iu,[i.isManageable?(a(),r("a",{key:0,class:"cursor-pointer underline text-indigo-500",href:"#",onClick:P(O=>i.openOpponentContact(p.team_one),["prevent"])},"Contact",8,Pu)):f("",!0)]))]),Eu]),e("tr",{class:g(["table-row border-l-0",["border-"+l.domain_color]])},[Mu,e("td",Au,[e("div",{class:g(["flex space-x-2 justify-center",{"font-bold":p.team_two_score>p.team_one_score}])},[Du,i.isNonJoinPickleBallMarket?(a(),H(u,{key:0,color:p.team_two.color},null,8,["color"])):f("",!0),e("span",null,m(p.team_two.name),1)],2),p.team_one_score!==null?(a(),r("div",{key:0,onClick:P(O=>i.openReportScoreModal(p),["prevent"]),class:g({"font-bold":p.team_two_score>p.team_one_score,"cursor-pointer":l.market.type==="flex"})},[L(m(p.team_two_score)+" ",1),p.is_forfeit&&p.team_one_score>p.team_two_score?(a(),r("span",Vu,"(F)")):f("",!0),p.is_forfeit&&p.team_one_score==p.team_two_score?(a(),r("span",Ru,"(F)")):f("",!0)],10,ju)):(a(),r("div",Nu,[i.isManageable?(a(),r("a",{key:0,class:"cursor-pointer underline text-indigo-500",href:"#",onClick:P(O=>i.openOpponentContact(p.team_two),["prevent"])},"Contact",8,Uu)):f("",!0)]))]),Bu],2),p.team_one_score===null&&p.team_two_score===null&&F.type=="flex"&&(!t.myTeam||t.myTeam.id==p.team_one.id||t.myTeam.id==p.team_two.id)&&!p.is_club_challenge_game_expired?(a(),r("tr",Hu,[e("td",zu,[i.isManageable?(a(),r("a",{key:0,href:"#",class:"text-sm underline",onClick:P(O=>i.openReportScoreModal(p),["prevent"])},"Report Score",8,Wu)):f("",!0)])])):f("",!0)],64)):(a(),r(C,{key:1},[e("tr",Ku,[$u,e("td",null,m(p.location_name)+" - "+m(p.field?p.field.name:""),1),Yu]),e("tr",Xu,[Ju,e("td",null,m(p.date_formatted)+" - "+m(p.time_formatted),1),Zu]),e("tr",Qu,[Gu,e("td",null,[e("hr",{class:g(["block",["border-"+l.domain_color]])},null,2)]),qu]),e("tr",em,[tm,e("td",lm,[e("div",{class:g(["flex space-x-2 justify-center",{"font-bold":p.team_one_score>p.team_two_score}])},[i.isNonJoinPickleBallMarket?(a(),H(u,{key:0,color:p.team_one.color},null,8,["color"])):f("",!0),e("span",null,m(p.team_one.name),1)],2),e("div",{class:g({"font-bold":p.team_one_score>p.team_two_score})},[L(m(p.team_one_score)+" ",1),p.is_forfeit&&p.team_two_score>p.team_one_score?(a(),r("span",sm,"(F)")):f("",!0),p.is_forfeit&&p.team_two_score==p.team_one_score?(a(),r("span",im,"(F)")):f("",!0)],2)]),om]),e("tr",{class:g(["table-row border-l-0",["border-"+l.domain_color]])},[nm,e("td",am,[e("div",{class:g(["flex space-x-2 justify-center",{"font-bold":p.team_two_score>p.team_one_score}])},[i.isNonJoinPickleBallMarket?(a(),H(u,{key:0,color:p.team_two.color},null,8,["color"])):f("",!0),e("span",null,m(p.team_two.name),1)],2),e("div",{class:g({"font-bold":p.team_two_score>p.team_one_score})},[L(m(p.team_two_score)+" ",1),p.is_forfeit&&p.team_one_score>p.team_two_score?(a(),r("span",rm,"(F)")):f("",!0),p.is_forfeit&&p.team_one_score==p.team_two_score?(a(),r("span",cm,"(F)")):f("",!0)],2)]),dm],2),p.team_one_score===null&&p.team_two_score===null&&F.type=="flex"&&(!t.myTeam||t.myTeam.id==p.team_one.id||t.myTeam.id==p.team_two.id)&&!p.is_club_challenge_game_expired?(a(),r("tr",um,[e("td",mm,[e("a",{href:"#",class:"text-sm underline",onClick:P(O=>i.openReportScoreModal(p),["prevent"])},"Report Score",8,hm)])])):f("",!0)],64))],2)}),256)),t.lastGameDayRangeIsPast?f("",!0):(a(),r("tbody",{key:0,class:g(["table-row-group odd:bg-gray-light border-2",["border-"+l.domain_color]])},pm,2))])):f("",!0),i.sortedGameList.length==0&&!t.GameListLoading?(a(),r("div",{key:5,class:g(["md:hidden text-center pt-8",["text-"+l.domain_color]])},"No games found. ",2)):f("",!0)])):f("",!0),i.isOpen[F.id]&&t.viewType==="notes"?(a(),r("div",_m,m(F.notes),1)):f("",!0)])],2)])])],8,hc))),128))],64)):(a(),r("p",oc,[L("You must "),e("a",{class:"text-indigo-500",href:"/login?link=/markets/"+l.market.slug},"Log In",8,nc),L(" to view your League's Schedules & Standings")]))])]),w(y,{ref:"standingsMathModal"},null,512),w(T,{game:t.selectedGame,team:t.myTeam,league:t.selectedLeague,onClose:i.modalClosed,domain_color:l.domain_color,isClubChallenge:t.selectedClubChallenge,ref:"reportScoreModal"},null,8,["game","team","league","onClose","domain_color","isClubChallenge"]),w(b,{ref:"opponentContactModal",opponentTeam:t.opponentTeam},null,8,["opponentTeam"])])}const ym=Y(tc,[["render",gm]]),bm={props:{domain_color:String,invite_code:String,league:{type:Object,required:!1},team:{type:Object,required:!1}},data(){return{inviteCode:null}},mixins:[te],methods:{acceptInvite(){ee.post(route("registration.initiate.process",{invite_code:this.invite_code,league_id:this.league.id,team_id:this.team.id}))}}},xm={key:0},vm=e("h1",{class:"text-3xl text-center font-bold uppercase mb-8 font-bebe"},"Accept Team Invite",-1),wm={class:"mb-8 text-gray text-sm"};function km(o,s,l,d,t,i){const c=V("modal");return a(),H(c,{ref:"modal",clickToClose:!1,escToClose:!0},{default:A(()=>[l.team!=null?(a(),r("div",xm,[vm,e("p",wm,[L("You have been invited to join "),e("strong",null,m(l.team.name),1),L(" in the "),e("strong",null,m(l.league.name),1),L(" league.")]),e("button",{class:g(["button rounded-full text-white py-2 mt-6 px-6 m-auto block",["bg-"+l.domain_color]]),onClick:s[0]||(s[0]=P((...h)=>i.acceptInvite&&i.acceptInvite(...h),["prevent"]))},"I Accept",2),e("button",{class:g(["button rounded-full text-white py-2 mt-6 px-6 m-auto block",["bg-"+l.domain_color]]),onClick:s[1]||(s[1]=P(h=>o.closeModal(),["prevent"]))},"No Thanks",2)])):f("",!0)]),_:1},512)}const Fm=Y(bm,[["render",km]]),Lm={name:"upcoming-leagues",layout:(o,s)=>o(ae,[s]),props:{domain_color:String,invitedTeam:Object,invitedLeague:Object,inviteCode:String},components:{IconDropdown:ie,LeagueInfoBox:fe,FormButton:se},mixins:[re,te],data(){return{processing:!1}},methods:{acceptInvite(){if(this.invitedLeague.private)this.$emit("accepted",this.invitedLeague),this.closeModal();else{this.closeModal(),this.processing=!0;const o=document.querySelector("#modal-body");ze(o),ee.post(route("registration.initiate.process",{invite_code:this.inviteCode,league_id:this.invitedLeague.id,team_id:this.invitedTeam.id}))}}}},Cm={class:"m-auto mb-10"},Tm={key:0,class:"text-center"},Om=e("h1",{class:"text-3xl text-center font-bold uppercase mb-8 font-bebe"},"Accept Team Invite",-1),Sm={class:"mb-8 text-gray text-sm"};function Im(o,s,l,d,t,i){const c=V("form-button"),h=V("modal");return a(),H(h,{ref:"modal",clickToClose:!1,escToClose:!0},{default:A(()=>[e("div",Cm,[l.invitedTeam?(a(),r("div",Tm,[Om,e("p",Sm,[L("You have been invited to join "),e("strong",null,m(l.invitedTeam.name),1),L(" in the "),e("strong",null,m(l.invitedLeague.name),1),L(" league.")]),w(c,{class:"w-fit button rounded-full text-white py-2 mt-6 px-6 m-auto block",onClick:P(i.acceptInvite,["prevent"]),domain_color:l.domain_color,processing:t.processing},{default:A(()=>[L("I Accept ")]),_:1},8,["onClick","domain_color","processing"]),e("button",{class:g(["button rounded-full text-white py-2 mt-6 px-6 m-auto block",["bg-"+l.domain_color]]),onClick:s[0]||(s[0]=P((..._)=>o.closeModal&&o.closeModal(..._),["prevent"]))},"No Thanks ",2)])):f("",!0)])]),_:1},512)}const Pm=Y(Lm,[["render",Im]]);const Em={name:"upcoming-leagues",layout:(o,s)=>o(ae,[s]),props:{domain_color:String,market:Object,upcomingLeagueOptions:{type:[Array,Object]}},components:{AcceptInviteModal:Fm,IconDropdown:ie,LeagueInfoBox:fe,InviteConfirmationModal:Pm,LeagueAccessCodeModal:pe},mixins:[re,te],data(){return{checkingInvite:!1,inviteCode:"",inviteError:"",invitedTeam:null,invitedLeague:null,loading:!0,leagueSearch:"",form:{sortBy:"day",sortDir:"asc",activity:null,day:null,location:null},selectFilters:{activity:null,day:null,location:null},selectFlexFilters:{schedule_type:null,play_times:null,day:null,gender:null,singles:null},activeFilters:{activity:[],day:[],location:[]},activeFlexFilters:{schedule_type:[],play_times:[],day:[],gender:[],singles:[]},selectedLeague:null,selectedLeagueId:null,leagueOptions:[],flexLeagueOptions:{publicFlex:[],publicFixed:[],privateFlex:[],privateFixed:[]},submittingLeague:null,privateLeague:null,privateTeam:null}},mounted(){this.market.type=="standard"?(this.leagueOptions=this.upcomingLeagueOptions,this.leagueOptions.forEach(o=>{o.regularTitleEndDate=this.regularTitleEndDate(o),o.regularListedEndDate=this.regularListedEndDate(o);let s=o.registrations;s.forEach(l=>{if(l.priceModifierClass=this.priceModifierClass(l,o),l.name.indexOf("Final")!=-1||l.name.indexOf("Regular")!=-1){let d=new Date(l.end_date);d.setHours(d.getHours()-1),l.displayedEndDate=d}else l.displayedEndDate=l.end_date}),s.sort((l,d)=>{let t=new Date(l.end_date),i=new Date(d.end_date);return t>i?1:-1}),o.sortedPriceModifiers=s,this.domain_color=="cornhole-orange"&&(this.selectFilters.activity=3,this.applyFilters())})):(this.flexLeagueOptions.publicFlex=this.parseLeagueModifiers(Object.values(this.upcomingLeagueOptions.publicFlexLeagues)),this.flexLeagueOptions.publicFixed=this.parseLeagueModifiers(Object.values(this.upcomingLeagueOptions.publicFixedLeagues)),this.flexLeagueOptions.privateFlex=this.parseLeagueModifiers(Object.values(this.upcomingLeagueOptions.privateFlexLeagues)),this.flexLeagueOptions.privateFixed=this.parseLeagueModifiers(Object.values(this.upcomingLeagueOptions.privateFixedLeagues)),this.loading=!1)},computed:{isOpen(){let o=!Z(this.selectedLeague,"id",null),s={};return this.leagueOptions.forEach(l=>{let d=!1;o?d=!1:d=this.selectedLeague.id===l.id,s[l.id]=d}),s},locations(){return Z(this.market,"active_locations",[])},activities(){return Z(this.market,"activities",[])},days(){return Z(this.$page.props,"days",[])},filteredResults(){let o=this.leagueOptions.filter(d=>this.market.type=="flex"?d.name.toLowerCase().includes(this.leagueSearch.toLowerCase()):!0),s=this.form.sortBy,l=this.form.sortDir;if(o=o.sort((d,t)=>{let i,c;switch(s){case"activity":i=d.activity.name,c=t.activity.name;break;case"day":i=d.day_of_league,c=t.day_of_league;break;case"location":i=d.fields.length>0?d.fields[0].location.name:"zzz",c=t.fields.length>0?t.fields[0].location.name:"zzz";break}return i>c?l==="desc"?-1:1:c>i?l==="desc"?1:-1:0}),!this.activeFilters.activity.length&&!this.activeFilters.day.length&&!this.activeFilters.location.length&&!this.activeFlexFilters.schedule_type.length&&!this.activeFlexFilters.play_times.length&&!this.activeFlexFilters.day.length&&!this.activeFlexFilters.gender.length&&!this.activeFlexFilters.singles.length)return o;if(this.market.type=="flex"){let d=this.activeFlexFilters;o=o.filter(t=>{let i=!0;for(let c in d)d[c].forEach(h=>{if(c==="schedule_type"){let _=h.id;_=="flex"&&d.play_times.length>0?(t.schedule_type!==_||t.flex_schedule_type!=d.play_times[0].id)&&(i=!1):_=="fixed"&&d.day.length>0?(t.schedule_type!==_||t.flex_day_of_week!=d.day[0].id)&&(i=!1):h.id!==t.schedule_type&&(i=!1)}c==="gender"&&h.id!==t.gender_type&&(i=!1),c==="singles"&&(h.id=="singles"?1:0)!==t.singles&&(i=!1)});return i})}else{let d=this.activeFilters.activity.length>0?this.activeFilters.activity[0].id:!1,t=this.activeFilters.day.length>0?this.activeFilters.day[0].id:!1,i=this.activeFilters.location.length>0?this.activeFilters.location[0].id:!1;o=o.filter(c=>{var _;let h=!0;return d&&d!=c.activity_id||t&&t!=c.day_of_league||t===0&&t!=c.day_of_league?!1:(i&&(h=!1,(_=c.fields)==null||_.forEach(x=>{i===x.location_id&&(h=!0)})),h)})}return o}},methods:{getFixedHeight(){return window.innerHeight*.9-50+"px"},parseLeagueModifiers(o){return o.forEach(s=>{s.regularTitleEndDate=this.regularTitleEndDate(s),s.regularListedEndDate=this.regularListedEndDate(s);let l=s.registrations;l.forEach(d=>{if(d.priceModifierClass=this.priceModifierClass(d,s),d.name.indexOf("Final")!=-1||d.name.indexOf("Regular")!=-1){let t=new Date(d.end_date);t.setHours(t.getHours()-1),d.displayedEndDate=t}else d.displayedEndDate=d.end_date}),l.sort((d,t)=>{let i=new Date(d.end_date),c=new Date(t.end_date);return i>c?1:-1}),s.sortedPriceModifiers=l}),o},filterFlexLeagues(){this.flexLeagueOptions.publicFlex=Object.values(this.upcomingLeagueOptions.publicFlexLeagues),this.flexLeagueOptions.publicFixed=Object.values(this.upcomingLeagueOptions.publicFixedLeagues),this.flexLeagueOptions.privateFlex=Object.values(this.upcomingLeagueOptions.privateFlexLeagues),this.flexLeagueOptions.privateFixed=Object.values(this.upcomingLeagueOptions.privateFixedLeagues),this.activeFlexFilters.gender.length&&(this.flexLeagueOptions.publicFlex=this.flexLeagueOptions.publicFlex.filter(o=>o.gender_type==this.activeFlexFilters.gender[0].label),this.flexLeagueOptions.publicFixed=this.flexLeagueOptions.publicFixed.filter(o=>o.gender_type==this.activeFlexFilters.gender[0].label),this.flexLeagueOptions.privateFlex=this.flexLeagueOptions.privateFlex.filter(o=>o.gender_type==this.activeFlexFilters.gender[0].label),this.flexLeagueOptions.privateFixed=this.flexLeagueOptions.privateFixed.filter(o=>o.gender_type==this.activeFlexFilters.gender[0].label)),this.activeFlexFilters.singles.length&&(this.flexLeagueOptions.publicFlex=this.flexLeagueOptions.publicFlex.filter(o=>this.activeFlexFilters.singles[0].label=="singles"?o.singles:!o.singles),this.flexLeagueOptions.publicFixed=this.flexLeagueOptions.publicFixed.filter(o=>this.activeFlexFilters.singles[0].label=="singles"?o.singles:!o.singles),this.flexLeagueOptions.privateFlex=this.flexLeagueOptions.privateFlex.filter(o=>this.activeFlexFilters.singles[0].label=="singles"?o.singles:!o.singles),this.flexLeagueOptions.privateFixed=this.flexLeagueOptions.privateFixed.filter(o=>this.activeFlexFilters.singles[0].label=="singles"?o.singles:!o.singles)),this.leagueSearch.length&&(this.flexLeagueOptions.publicFlex=this.flexLeagueOptions.publicFlex.filter(o=>o.name.toLowerCase().includes(this.leagueSearch.toLowerCase())),this.flexLeagueOptions.publicFixed=this.flexLeagueOptions.publicFixed.filter(o=>o.name.toLowerCase().includes(this.leagueSearch.toLowerCase())),this.flexLeagueOptions.privateFlex=this.flexLeagueOptions.privateFlex.filter(o=>o.name.toLowerCase().includes(this.leagueSearch.toLowerCase())),this.flexLeagueOptions.privateFixed=this.flexLeagueOptions.privateFixed.filter(o=>o.name.toLowerCase().includes(this.leagueSearch.toLowerCase())))},isFlexLeagueListVisible(o){let s=!1;switch(o){case"public":s=!this.activeFlexFilters.schedule_type.length||this.activeFlexFilters.schedule_type[0].label=="public flex"&&this.flexLeagueOptions.publicFlex.length||this.activeFlexFilters.schedule_type[0].label=="public fixed"&&this.flexLeagueOptions.publicFixed.length;break;case"public flex":s=!this.activeFlexFilters.schedule_type.length||this.activeFlexFilters.schedule_type[0].label=="public flex";break;case"public fixed":s=!this.activeFlexFilters.schedule_type.length||this.activeFlexFilters.schedule_type[0].label=="public fixed";break;case"private":s=!this.activeFlexFilters.schedule_type.length||this.activeFlexFilters.schedule_type[0].label=="private flex"&&this.flexLeagueOptions.privateFlex.length||this.activeFlexFilters.schedule_type[0].label=="private fixed"&&this.flexLeagueOptions.privateFixed.length;break;case"private flex":s=!this.activeFlexFilters.schedule_type.length||this.activeFlexFilters.schedule_type[0].label=="private flex";break;case"private fixed":s=!this.activeFlexFilters.schedule_type.length||this.activeFlexFilters.schedule_type[0].label=="private fixed";break;default:s=!0;break}return s},regularTitleEndDate(o){let s=o.registrations.find(d=>d.name.indexOf("Late")>-1),l=new Date(o.local_reg_end);return l.setHours(l.getHours()-1),o.canAddPlayer?s?s.modifier_status=="during"?{date:new Date(s.local_end_date).getTime(),message:"*late fees now apply"}:{date:l,message:null}:{date:l,message:null}:{date:new Date(s.local_end_date).getTime(),message:"*FULL - REGISTRATION CLOSED"}},regularListedEndDate(o){let s=this.finalWeekPriceModifier(o);return s?{name:"Regular",end_date:s.start_date,local_display_end:s.local_display_start,price_modifier:0}:{name:"Regular",end_date:o.registration_end_date,local_display_end:o.buffered_local_reg_end,price_modifier:0}},finalWeekPriceModifier(o){return o.registrations.find(s=>s.name.indexOf("Final")>-1)},getEndOfLateReg(o){return o.registrations.find(l=>l.name.indexOf("Late")>-1).local_display_end},priceModifierClass(o,s){return o.name.indexOf("Late")>-1?o.modifier_status!="during"?"hidden":"text-red bg-yellow-500 bg-opacity-75 font-bold":o.name=="Regular"?s.after_regular_reg?"font-bold line-through":"font-bold":o.modifier_status=="past"?"text-red line-through":"text-red"},applyFilters(){let o=this.activeFilters;for(let s in o){let l={},d="";this.selectFilters[s]&&(o[s]=[],s==="activity"?(l=this.activities.find(c=>c.id===this.selectFilters[s]),o[s].push({attr:s,label:l.name,id:this.selectFilters[s]})):s==="location"?(l=this.locations.find(c=>c.id===this.selectFilters[s]),o[s].push({attr:s,label:l.name,id:this.selectFilters[s]})):(d=this.days.find((c,h)=>h===parseInt(this.selectFilters[s])),o[s].push({attr:s,label:d,id:parseInt(this.selectFilters[s])})));let t=o[s],i=Array.from(new Set(t.map(c=>c.id))).map(c=>t.find(h=>h.id===c));o[s]=i}this.activeFilters=o},applyFlexFilters(){this.activeFlexFilters.schedule_type=[],this.activeFlexFilters.play_times=[],this.activeFlexFilters.day=[];let o=this.activeFlexFilters;for(let s in o){let l="";if(this.selectFlexFilters[s])if(o[s]=[],s==="schedule_type")o[s].push({attr:s,label:this.selectFlexFilters[s],id:this.selectFlexFilters[s]});else if(s==="play_times")o[s].push({attr:s,label:this.selectFlexFilters[s],id:this.selectFlexFilters[s]});else if(s==="gender")o[s].push({attr:s,label:this.selectFlexFilters[s],id:this.selectFlexFilters[s]});else if(s==="singles"){let i=this.selectFlexFilters[s];o[s].push({attr:s,label:i,id:i})}else l=this.days.find((i,c)=>c===parseInt(this.selectFlexFilters[s])),o[s].push({attr:s,label:l,id:parseInt(this.selectFlexFilters[s])});let d=o[s],t=Array.from(new Set(d.map(i=>i.id))).map(i=>d.find(c=>c.id===i));o[s]=t}this.activeFlexFilters=o,this.filterFlexLeagues()},removeFilter(o,s){let d=this.activeFilters[o].filter(t=>t.id!=s&&t.id!=parseInt(s));this.activeFilters[o]=d,this.selectFilters[o]=null},removeFlexFilter(o,s){let d=this.activeFlexFilters[o].filter(t=>t.id!=s&&t.id!=parseInt(s));this.activeFlexFilters[o]=d,this.selectFlexFilters[o]=null,this.filterFlexLeagues()},chooseLeague(o){this.selectedLeague=this.selectedLeague===o?null:o,this.selectedLeagueId=this.selectedLeague?this.selectedLeague.id:null},goToRegistration(o){o.private?this.openLeagueAccessCodeModal(o,null):(this.submittingLeague=o.id,ee.post(route("registration.initiate.process",{league_id:o.id})))},openLeagueAccessCodeModal(o,s){this.privateLeague=o,this.privateTeam=s,this.$refs.leagueAccessCodeModal.openModal()},goToPrivateRegistration(){this.submittingLeague=this.privateLeague.id,ee.post(route("registration.initiate.process",{invite_code:this.privateTeam?this.privateTeam.invite_code:"",league_id:this.privateLeague.id,team_id:this.privateTeam?this.privateTeam.id:""}))},openModal(){this.$refs.modal.show()},closeModal(){this.$refs.modal.hide()},openAcceptInviteModal(){this.$refs.acceptInviteModal.openModal()},checkInviteCode(){this.checkingInvite=!0,axios.post("/check-invite/",{market_id:this.market.id,invite_code:this.inviteCode}).then(o=>{this.checkingInvite=!1,o.data,o.data.status==="error"?(this.inviteError=o.data.message,this.invitedTeam=null,this.invitedLeague=null):(this.inviteError="",this.invitedTeam=o.data.team,this.invitedLeague=o.data.league,this.openAcceptInviteModal())})}}},Mm={key:0,class:"text-center"},Am={class:"text-lg mx-auto mb-10"},Dm={key:1,class:"container mx-auto"},jm={class:"flex flex-wrap mb-10 px-6 md:px-24"},Vm={class:"w-full flex items-center mb-4"},Rm=e("label",{class:"w-1/6 mr-2"},"Sort By:",-1),Nm={class:"w-5/6 inline-block text-right relative"},Um=e("option",{value:null},"Choose",-1),Bm=e("option",{value:"activity"},"Activity",-1),Hm=e("option",{value:"day"},"Day",-1),zm=e("option",{value:"location"},"Location",-1),Wm=[Um,Bm,Hm,zm],Km={class:"w-full ml-auto flex items-start"},$m=e("label",{class:"w-1/6 mr-2"},"Filter By:",-1),Ym={class:"w-5/6 block md:flex md:flex-row"},Xm={class:"w-full md:w-1/3 inline-block relative mr-4 mb-2 md:mb-0"},Jm=e("option",{value:null},"Activity",-1),Zm=["value"],Qm={class:"w-full md:w-1/3 inline-block relative mr-4 mb-2 md:mb-0"},Gm=["selected"],qm=me('<option value="0">Sunday</option><option value="1">Monday</option><option value="2">Tuesday</option><option value="3">Wednesday</option><option value="4">Thursday</option><option value="5">Friday</option><option value="6">Saturday</option>',7),eh={class:"w-full md:w-1/3 inline-block relative mr-4 mb-2 md:mb-0"},th=e("option",{value:null},"Location",-1),lh=["value"],sh={class:"w-full md:w-auto inline-block text-right"},ih={class:"flex items-start m-5"},oh={class:"inline-block"},nh=["onClick"],ah={class:"inline-block"},rh=["onClick"],ch={class:"inline-block"},dh=["onClick"],uh={class:"flex flex-wrap md:mb-8 md:px-24"},mh={class:"w-full ml-auto flex items-start mb-4"},hh=e("label",{class:"w-1/6 mr-2 md:p-2 text-right"},"Filter By:",-1),fh={class:"w-5/6 block md:flex md:flex-row"},ph={class:"w-full md:w-1/3 inline-block relative mr-4 mb-2 md:mb-0"},_h=["selected"],gh=e("option",{value:"public flex"},"Public Flex",-1),yh=e("option",{value:"public fixed"},"Public Fixed",-1),bh=e("option",{value:"private flex"},"Private Flex",-1),xh=e("option",{value:"private fixed"},"Private Fixed",-1),vh={key:0,class:"w-full md:w-1/3 inline-block relative mr-4 mb-2 md:mb-0"},wh=["selected"],kh=e("option",{value:"Any time"},"Any time",-1),Fh=e("option",{value:"Days and Weekends"},"Days and Weekends",-1),Lh=e("option",{value:"Evenings and Weekends"},"Evenings and Weekends",-1),Ch={key:1,class:"w-full md:w-1/3 inline-block relative mr-4 mb-2 md:mb-0"},Th=me('<option>Day</option><option value="0">Sunday</option><option value="1">Monday</option><option value="2">Tuesday</option><option value="3">Wednesday</option><option value="4">Thursday</option><option value="5">Friday</option><option value="6">Saturday</option>',8),Oh=[Th],Sh={class:"w-full md:w-1/3 inline-block relative mr-4 mb-2 md:mb-0"},Ih=["selected"],Ph=e("option",{value:"men"},"Men",-1),Eh=e("option",{value:"women"},"Women",-1),Mh=e("option",{value:"co-ed"},"Co-Ed",-1),Ah=e("option",{value:"mixed"},"Mixed",-1),Dh={class:"w-full md:w-1/3 inline-block relative mr-4 mb-2 md:mb-0"},jh=e("option",{value:null},"Single and Doubles",-1),Vh=e("option",{value:"singles"},"Singles",-1),Rh=e("option",{value:"doubles"},"Doubles",-1),Nh=[jh,Vh,Rh],Uh={class:"w-full md:w-auto inline-block text-right"},Bh={class:"w-full flex items-center mb-2"},Hh=e("label",{class:"w-1/6 mr-2 md:p-2 text-right"},"Search:",-1),zh={class:"w-5/6 inline-block text-right relative"},Wh={class:"w-full hidden md:flex"},Kh=e("div",{class:"w-1/6 p-2 text-right"},null,-1),$h={class:"w-5/6"},Yh=e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"inline-block h-5 w-5",viewBox:"0 0 20 20",fill:"#1c7ed6"},[e("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"})],-1),Xh=e("span",{class:"ml-2 font-bold"},"IMPORTANT NOTES:",-1),Jh={class:"list-inside list-disc pl-5 mb-8"},Zh=e("li",null,"Leagues are listed by PUBLIC and PRIVATE (Private Leagues require an Access-Code).",-1),Qh=e("li",null,"When you Sign-Up for a PUBLIC League, we place you in the League in your Area matching your Skill Level.",-1),Gh={class:"w-full md:hidden"},qh=e("label",{class:"w-1/6 mr-2 p-2 text-right"},null,-1),ef=e("div",{class:"flex"},[e("svg",{class:"inline-block h-5 w-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"#1c7ed6"},[e("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"})]),e("p",{class:"ml-2 font-bold"},"IMPORTANT NOTES:")],-1),tf={class:"list-inside list-disc pl-5 mb-8"},lf=e("li",null,"Leagues are listed by PUBLIC and PRIVATE (Private Leagues require an Access-Code).",-1),sf=e("li",null,"When you Sign-Up for a PUBLIC League, we place you in the League in your Area matching your Skill Level.",-1),of={class:"flex items-start m-5"},nf={class:"inline-block"},af=["onClick"],rf={class:"inline-block"},cf=["onClick"],df={class:"inline-block"},uf=["onClick"],mf={class:"inline-block"},hf=["onClick"],ff={class:"inline-block"},pf=["onClick"],_f={key:2},gf={class:"mb-8 p-4 block border border-gray bg-gray-lightest"},yf=e("h4",{class:"leading-none font-header text-4xl mb-2"},"Hey wait! Have you been invited to join a team?",-1),bf=e("h6",{class:"leading-none font-header text-xl mb-2"},"If so, enter your invite code here and we'll place you with your teammates:",-1),xf=["disabled"],vf={key:0},wf=e("svg",{class:"h-6 w-6 animate-spin inline",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1),kf=[wf],Ff={key:1},Lf={key:0,class:"form-error text-red mb-2"},Cf=e("h6",{class:"leading-none text-sm mb-2"},"Note: If you received an invitation by email, you can also click the link in the email to skip this step.",-1),Tf={key:0,class:"border-2 border-pickleball-green p-8 text-center w-1/2 mx-auto min-w-full"},Of=e("span",{class:"text-pickleball-green font-bold"},"No Results Found.",-1),Sf=[Of],If={key:1},Pf={key:0,class:"mb-8"},Ef=e("p",{class:"font-bold mb-4"},"Public flex and fixed leagues are Open to all players.",-1),Mf={key:0,class:"mb-4"},Af={key:1,class:"mb-4"},Df={key:1,class:"mb-8"},jf=e("p",{class:"font-bold mb-4"},"Private flex and fixed leagues require a League Access Code.",-1),Vf={key:0,class:"mb-4"},Rf={key:1,class:"mb-4"},Nf={key:3},Uf=e("span",{class:"text-red font-bold"},"No Results Found.",-1),Bf=[Uf],Hf={class:"mb-4 p-4 block border border-gray bg-gray-lightest"},zf=e("h4",{class:"leading-none font-header text-4xl mb-2"},"Hey wait! Have you been invited to join a team?",-1),Wf=e("h6",{class:"leading-none font-header text-xl mb-2"},"If so, enter your invite code here and we'll place you with your teammates:",-1),Kf=["disabled"],$f={key:0},Yf=e("svg",{class:"h-6 w-6 animate-spin inline",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1),Xf=[Yf],Jf={key:1},Zf={key:0,class:"form-error text-red mb-2"},Qf=e("h6",{class:"leading-none text-sm mb-2"},"Note: If you received an invitation by email, you can also click the link in the email to skip this step.",-1),Gf={class:"flex-grow md:mr-4"},qf={class:"flex flex-wrap w-full md:w-auto items-center cursor-pointer"},ep={class:"flex-grow md:mr-4"},tp={class:"flex flex-wrap items-center cursor-pointer"},lp={class:"w-full text-left"},sp=e("div",{class:"mr-1"},"Sign up opens on:",-1),ip=e("div",{class:"mr-1"},"Sign up closes on",-1),op={key:0},np={key:1},ap=["onClick"],rp=e("svg",{class:"inline-block",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},[e("path",{class:"heroicon-ui",d:"M15.3 9.3a1 1 0 0 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 1.4-1.4l3.3 3.29 3.3-3.3z"})],-1),cp=e("span",null,"See more",-1),dp=e("svg",{class:"inline-block",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},[e("path",{class:"heroicon-ui",d:"M15.3 9.3a1 1 0 0 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 1.4-1.4l3.3 3.29 3.3-3.3z"})],-1),up=[rp,cp,dp],mp=["onClick"],hp=e("svg",{class:"h-6 w-6 animate-spin inline",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1),fp=[hp],pp={key:0,class:"flex flex-wrap text-left break-words"},_p={class:"w-full mb-6"},gp={key:0,class:"mb-2"},yp=e("span",{class:"text-gray"},"Description:",-1),bp={key:1,class:"mb-2"},xp=e("span",{class:"text-gray"},"Notes:",-1),vp={key:2},wp=e("span",{class:"text-gray mr-2"},"Sport:",-1),kp={key:3},Fp=e("span",{class:"text-gray mr-2"},"Location:",-1),Lp=["href"],Cp={key:4},Tp=e("span",{class:"text-gray mr-2"},"League Bar:",-1),Op=["href"],Sp={key:5,class:"flex"},Ip=e("span",{class:"text-gray mr-2"},"Day & Time:",-1),Pp=e("span",{class:"text-gray mr-2"},"League Start Date:",-1),Ep={key:0},Mp={key:1},Ap=e("span",{class:"text-gray mr-2"},"League End Date:",-1),Dp={key:0},jp={key:1},Vp={class:"flex mt-2"},Rp=e("span",{class:"text-gray mr-2"},"Price:",-1),Np={class:"hidden md:inline"},Up={class:"inline md:hidden"},Bp=e("br",null,null,-1),Hp={class:"w-full md:w-1/3 text-center px-4 mt-4"},zp=["onClick"],Wp=e("svg",{class:"h-6 w-6 animate-spin inline",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1),Kp=[Wp],$p=["onClick"],Yp=e("svg",{class:"inline-block",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},[e("path",{class:"heroicon-ui",d:"M8.7 14.7a1 1 0 0 1-1.4-1.4l4-4a1 1 0 0 1 1.4 0l4 4a1 1 0 0 1-1.4 1.4L12 11.42l-3.3 3.3z"})],-1),Xp=e("span",null,"See less",-1),Jp=e("svg",{class:"inline-block",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},[e("path",{class:"heroicon-ui",d:"M8.7 14.7a1 1 0 0 1-1.4-1.4l4-4a1 1 0 0 1 1.4 0l4 4a1 1 0 0 1-1.4 1.4L12 11.42l-3.3 3.3z"})],-1),Zp=[Yp,Xp,Jp],Qp=e("h1",{class:"text-6xl leading-none font-header uppercase mb-8"},[e("span",{class:"text-pickleball-gray"},"Our League Types")],-1),Gp=e("p",{class:"mb-4 text-lg"},[e("strong",null,"We offer 4 types of leagues:")],-1),qp=e("p",{class:"mb-4 text-lg"},[e("strong",null,"PUBLIC FLEX Leagues")],-1),e_=e("ul",{class:"list-inside list-disc pl-5 mb-8"},[e("li",null,"Choose these to set your own date/time for each match - our system guides you every step of the way."),e("li",null,"Flex Leagues are offered nationally and only require a minimum of 6 teams from the same Area and Skill. You/your team will be placed in the League in your Area for your Skill Level."),e("li",null,[e("a",{href:"/how-do-flex-leagues-work",class:"underline cursor-pointer"},"Click Here"),L(' for "How FLEX Leagues Work".')])],-1),t_=e("p",{class:"mb-4 text-lg"},[e("strong",null,"PUBLIC FIXED Leagues"),L(' (includes "Club Challenge" Leagues)')],-1),l_=e("ul",{class:"list-inside list-disc pl-5 mb-8"},[e("li",null,"Choose these to play at the same date/time each week - matches are played at the Home Team's court."),e("li",null,[L('"Club Challenge" Leagues are a Fixed league, and a fun way to play with a larger team. '),e("a",{href:"/club-challenge-league",class:"underline cursor-pointer"},"Click Here"),L(" to learn more about Club Challenge Leagues in your Area.")]),e("li",null,[L("Fixed leagues are only offered in limited locations. If you would like to organize a Fixed league in your area, contact us at: "),e("a",{href:"mailto:joinpickleballnow@gmail.com",class:"underline"},"joinpickleballnow@gmail.com"),L(".")]),e("li",null,[e("a",{href:"/how-do-fixed-leagues-work"},"Click Here"),L(' for "How FIXED Leagues Work".')])],-1),s_=e("p",{class:"mb-4 text-lg"},[e("strong",null,"PRIVATE FLEX Leagues")],-1),i_=e("ul",{class:"list-inside list-disc pl-5 mb-8"},[e("li",null,"Choose these if you have been provided an access code for a specific Private league."),e("li",null,[L("Private leagues (of either the flex or fixed variety) can be arranged anywhere and only require a minimum of 6 teams to set up the league. If you would like to organize a Private league for 6 or more teams in your Area, contact us at: "),e("a",{href:"mailto:joinpickleballnow@gmail.com",class:"underline"},"joinpickleballnow@gmail.com"),L(".")]),e("li",null,[e("a",{href:"/how-do-flex-leagues-work",class:"underline cursor-pointer"},"Click Here"),L(' for "How FLEX Leagues Work".')])],-1),o_=e("p",{class:"mb-4 text-lg"},[e("strong",null,"PRIVATE FIXED Leagues")],-1),n_=e("ul",{class:"list-inside list-disc pl-5 mb-8"},[e("li",null,"Choose these if you have been provided an access code for a specific Private league."),e("li",null,[L("Private leagues (of either the flex or fixed variety) can be arranged anywhere and only require a minimum of 6 teams to set up the league. If you would like to organize a Private league for 6 or more teams in your area, contact us at: "),e("a",{href:"mailto:joinpickleballnow@gmail.com",class:"underline"},"joinpickleballnow@gmail.com"),L(".")]),e("li",null,[e("a",{href:"/how-do-fixed-leagues-work"},"Click Here"),L(' for "How FIXED Leagues Work".')])],-1);function a_(o,s,l,d,t,i){const c=V("icon-dropdown"),h=V("league-info-box"),_=V("modal"),x=V("invite-confirmation-modal"),n=V("league-access-code-modal");return a(),r("div",null,[e("div",{class:g(["m-auto mb-10",{"mt-10":l.market.type=="flex"}])},[e("h2",{class:g(["leading-none font-header text-center text-6xl mb-10",["text-"+l.domain_color]])},"Upcoming Leagues",2),l.market.type=="standard"&&!t.leagueOptions.length?(a(),r("div",Mm,[e("span",Am," There are no leagues open for registration in "+m(l.market.name)+" at this time. Please check back later! ",1)])):(a(),r("div",Dm,[l.market.type=="standard"?(a(),r(C,{key:0},[e("div",jm,[e("div",Vm,[Rm,e("div",Nm,[j(e("select",{class:"inline-block appearance-none w-full bg-white border border-market-gray text-market-gray py-2 pl-2 pr-6 rounded","onUpdate:modelValue":s[0]||(s[0]=u=>t.form.sortBy=u)},Wm,512),[[$,t.form.sortBy]]),w(c)])]),e("div",Km,[$m,e("div",Ym,[e("div",Xm,[j(e("select",{class:"inline-block appearance-none w-full bg-white border border-market-gray text-market-gray py-2 pl-2 pr-6 rounded","onUpdate:modelValue":s[1]||(s[1]=u=>t.selectFilters.activity=u)},[Jm,(a(!0),r(C,null,R(i.activities,u=>(a(),r("option",{key:`activity-select-${u.id}`,value:u.id},m(u.name),9,Zm))),128))],512),[[$,t.selectFilters.activity]]),w(c)]),e("div",Qm,[j(e("select",{class:"inline-block appearance-none w-full bg-white border border-market-gray text-market-gray py-2 pl-2 pr-6 rounded","onUpdate:modelValue":s[2]||(s[2]=u=>t.selectFilters.day=u)},[e("option",{value:null,selected:t.selectFilters.day===null},"Day",8,Gm),qm],512),[[$,t.selectFilters.day]]),w(c)]),e("div",eh,[j(e("select",{class:"inline-block appearance-none w-full bg-white border border-market-gray text-market-gray py-2 pl-2 pr-6 rounded","onUpdate:modelValue":s[3]||(s[3]=u=>t.selectFilters.location=u)},[th,(a(!0),r(C,null,R(i.locations,u=>(a(),r("option",{key:`location-select-${u.id}`,value:u.id},m(u.name),9,lh))),128))],512),[[$,t.selectFilters.location]]),w(c)]),e("div",sh,[e("button",{class:g(["button text-white py-1 px-6 rounded-full",["bg-"+l.domain_color]]),onClick:s[4]||(s[4]=P((...u)=>i.applyFilters&&i.applyFilters(...u),["prevent"]))},"OK",2)])])])]),j(e("div",ih,[(a(!0),r(C,null,R(t.activeFilters.activity,(u,y)=>(a(),r("div",{key:`filter-activity-${y}`,class:g(["text-white rounded-full py-1 px-6 mr-8",["bg-"+l.domain_color]])},[e("span",oh,m(u.label),1),e("span",{class:"inline-block text-white ml-2 cursor-pointer",onClick:P(T=>i.removeFilter(u.attr,u.id),["prevent"])},"x",8,nh)],2))),128)),(a(!0),r(C,null,R(t.activeFilters.day,(u,y)=>(a(),r("div",{key:`filter-day-${y}`,class:g(["text-white rounded-full py-1 px-6 mr-8",["bg-"+l.domain_color]])},[e("span",ah,m(u.label),1),e("span",{class:"inline-block text-white ml-2 cursor-pointer",onClick:P(T=>i.removeFilter(u.attr,u.id),["prevent"])},"x",8,rh)],2))),128)),(a(!0),r(C,null,R(t.activeFilters.location,(u,y)=>(a(),r("div",{key:`filter-location-${y}`,class:g(["text-white rounded-full py-1 px-6 mr-8",["bg-"+l.domain_color]])},[e("span",ch,m(u.label),1),e("span",{class:"inline-block text-white ml-2 cursor-pointer",onClick:P(T=>i.removeFilter(u.attr,u.id),["prevent"])},"x",8,dh)],2))),128))],512),[[q,t.activeFilters.activity.length||t.activeFilters.day.length||t.activeFilters.location.length]])],64)):f("",!0),l.market.type=="flex"?(a(),r(C,{key:1},[e("div",uh,[e("div",mh,[hh,e("div",fh,[e("div",ph,[j(e("select",{class:"inline-block appearance-none w-full bg-white border border-market-gray text-market-gray py-2 pl-2 pr-6 rounded","onUpdate:modelValue":s[5]||(s[5]=u=>t.selectFlexFilters.schedule_type=u)},[e("option",{value:null,selected:t.selectFlexFilters.schedule_type===null},"League Type",8,_h),gh,yh,bh,xh],512),[[$,t.selectFlexFilters.schedule_type]]),w(c)]),t.selectFlexFilters.schedule_type=="flex"?(a(),r("div",vh,[j(e("select",{class:"inline-block appearance-none w-full bg-white border border-market-gray text-market-gray py-2 pl-2 pr-6 rounded","onUpdate:modelValue":s[6]||(s[6]=u=>t.selectFlexFilters.play_times=u)},[e("option",{value:null,selected:t.selectFlexFilters.play_times===null},"Play Times",8,wh),kh,Fh,Lh],512),[[$,t.selectFlexFilters.play_times]]),w(c)])):f("",!0),t.selectFlexFilters.schedule_type=="fixed"?(a(),r("div",Ch,[j(e("select",{class:"inline-block appearance-none w-full bg-white border border-market-gray text-market-gray py-2 pl-2 pr-6 rounded","onUpdate:modelValue":s[7]||(s[7]=u=>t.selectFlexFilters.day=u)},Oh,512),[[$,t.selectFlexFilters.day]]),w(c)])):f("",!0),e("div",Sh,[j(e("select",{class:"inline-block appearance-none w-full bg-white border border-market-gray text-market-gray py-2 pl-2 pr-6 rounded","onUpdate:modelValue":s[8]||(s[8]=u=>t.selectFlexFilters.gender=u)},[e("option",{value:null,selected:t.selectFlexFilters.gender===null},"Gender",8,Ih),Ph,Eh,Mh,Ah],512),[[$,t.selectFlexFilters.gender]]),w(c)]),e("div",Dh,[j(e("select",{class:"inline-block appearance-none w-full bg-white border border-market-gray text-market-gray py-2 pl-2 pr-6 rounded","onUpdate:modelValue":s[9]||(s[9]=u=>t.selectFlexFilters.singles=u)},Nh,512),[[$,t.selectFlexFilters.singles]]),w(c)]),e("div",Uh,[e("button",{class:g(["button text-white py-1 px-6 rounded-full",["bg-"+l.domain_color]]),onClick:s[10]||(s[10]=P((...u)=>i.applyFlexFilters&&i.applyFlexFilters(...u),["prevent"]))},"OK",2)])])]),e("div",Bh,[Hh,e("div",zh,[j(e("input",{type:"text","onUpdate:modelValue":s[11]||(s[11]=u=>t.leagueSearch=u),onInput:s[12]||(s[12]=u=>i.filterFlexLeagues()),class:"w-full border border-market-gray text-market-gray py-2 pl-2 pr-6 rounded"},null,544),[[W,t.leagueSearch]])])]),e("div",Wh,[Kh,e("div",$h,[Yh,Xh,e("ul",Jh,[Zh,Qh,e("li",null,[e("a",{onClick:s[13]||(s[13]=u=>i.openModal()),class:"cursor-pointer underline"},"Click here"),L(" to learn about our 4 League Types: Public Flex, Publc Fixed, Private Flex, Private Fixed.")])])])]),e("div",Gh,[qh,e("div",null,[ef,e("ul",tf,[lf,sf,e("li",null,[e("a",{onClick:s[14]||(s[14]=u=>i.openModal()),class:"cursor-pointer underline"},"Click here"),L(" to learn about our 4 League Types: Public Flex, Publc Fixed, Private Flex, Private Fixed.")])])])])]),j(e("div",of,[(a(!0),r(C,null,R(t.activeFlexFilters.schedule_type,(u,y)=>(a(),r("div",{key:`filter-schedule_type-${y}`,class:g(["text-white rounded-full py-1 px-6 mr-8",["bg-"+l.domain_color]])},[e("span",nf,m(u.label[0].toUpperCase()+u.label.substring(1)),1),e("span",{class:"inline-block text-white ml-2 cursor-pointer",onClick:P(T=>i.removeFlexFilter(u.attr,u.id),["prevent"])},"x",8,af)],2))),128)),(a(!0),r(C,null,R(t.activeFlexFilters.play_times,(u,y)=>(a(),r("div",{key:`filter-play_times-${y}`,class:g(["text-white rounded-full py-1 px-6 mr-8",["bg-"+l.domain_color]])},[e("span",rf,m(u.label[0].toUpperCase()+u.label.substring(1)),1),e("span",{class:"inline-block text-white ml-2 cursor-pointer",onClick:P(T=>i.removeFlexFilter(u.attr,u.id),["prevent"])},"x",8,cf)],2))),128)),(a(!0),r(C,null,R(t.activeFlexFilters.day,(u,y)=>(a(),r("div",{key:`filter-day-${y}`,class:g(["text-white rounded-full py-1 px-6 mr-8",["bg-"+l.domain_color]])},[e("span",df,m(u.label[0].toUpperCase()+u.label.substring(1)),1),e("span",{class:"inline-block text-white ml-2 cursor-pointer",onClick:P(T=>i.removeFlexFilter(u.attr,u.id),["prevent"])},"x",8,uf)],2))),128)),(a(!0),r(C,null,R(t.activeFlexFilters.gender,(u,y)=>(a(),r("div",{key:`filter-gender-${y}`,class:g(["text-white rounded-full py-1 px-6 mr-8",["bg-"+l.domain_color]])},[e("span",mf,m(u.label[0].toUpperCase()+u.label.substring(1)),1),e("span",{class:"inline-block text-white ml-2 cursor-pointer",onClick:P(T=>i.removeFlexFilter(u.attr,u.id),["prevent"])},"x",8,hf)],2))),128)),(a(!0),r(C,null,R(t.activeFlexFilters.singles,(u,y)=>(a(),r("div",{key:`filter-singles-${y}`,class:g(["text-white rounded-full py-1 px-6 mr-8",["bg-"+l.domain_color]])},[e("span",ff,m(u.label[0].toUpperCase()+u.label.substring(1)),1),e("span",{class:"inline-block text-white ml-2 cursor-pointer",onClick:P(T=>i.removeFlexFilter(u.attr,u.id),["prevent"])},"x",8,pf)],2))),128))],512),[[q,t.activeFlexFilters.schedule_type.length||t.activeFlexFilters.play_times.length||t.activeFlexFilters.day.length||t.activeFlexFilters.gender.length||t.activeFlexFilters.singles.length]])],64)):f("",!0),l.market.type=="flex"?(a(),r("div",_f,[e("div",gf,[yf,bf,e("div",null,[j(e("input",{"onUpdate:modelValue":s[15]||(s[15]=u=>t.inviteCode=u),class:"input w-auto inline",type:"",name:"",placeholder:"Enter Team Invite Code"},null,512),[[W,t.inviteCode]]),e("button",{disabled:t.inviteCode.length===0,onClick:s[16]||(s[16]=P(u=>i.checkInviteCode(),["prevent"])),class:"disabled:cursor-not-allowed inline-block text-white px-6 py-2 bg-pickleball-green rounded-full mb-2 ml-1"},[t.checkingInvite?(a(),r("span",vf,kf)):(a(),r("span",Ff,"Go"))],8,xf)]),t.inviteError?(a(),r("div",Lf,m(t.inviteError),1)):f("",!0),Cf]),!t.flexLeagueOptions.publicFlex.length&&!t.flexLeagueOptions.publicFixed.length&&!t.flexLeagueOptions.privateFlex.length&&!t.flexLeagueOptions.privateFixed.length||!i.isFlexLeagueListVisible("public")&&!i.isFlexLeagueListVisible("private")?(a(),r("div",Tf,Sf)):f("",!0),t.loading?f("",!0):(a(),r("div",If,[i.isFlexLeagueListVisible("public")&&(t.flexLeagueOptions.publicFlex.length||t.flexLeagueOptions.publicFixed.length)?(a(),r("div",Pf,[e("h2",{class:g(["leading-none font-header text-4xl",["text-"+l.domain_color]])},"PUBLIC",2),Ef,i.isFlexLeagueListVisible("public flex")&&t.flexLeagueOptions.publicFlex.length?(a(),r("div",Mf,[e("h2",{class:g(["leading-none font-header text-xl mb-2",["text-"+l.domain_color]])},"FLEX",2),(a(!0),r(C,null,R(t.flexLeagueOptions.publicFlex,u=>(a(),H(h,{key:`league-listing-${u.id}`,league:u,market:l.market,selectedLeague:t.selectedLeagueId,domain_color:l.domain_color,onChooseLeague:y=>i.chooseLeague(u)},null,8,["league","market","selectedLeague","domain_color","onChooseLeague"]))),128))])):f("",!0),i.isFlexLeagueListVisible("public fixed")&&t.flexLeagueOptions.publicFixed.length?(a(),r("div",Af,[e("h2",{class:g(["leading-none font-header text-xl mb-2",["text-"+l.domain_color]])},"FIXED",2),(a(!0),r(C,null,R(t.flexLeagueOptions.publicFixed,u=>(a(),H(h,{key:`league-listing-${u.id}`,league:u,market:l.market,selectedLeague:t.selectedLeagueId,domain_color:l.domain_color,onChooseLeague:y=>i.chooseLeague(u)},null,8,["league","market","selectedLeague","domain_color","onChooseLeague"]))),128))])):f("",!0)])):f("",!0),i.isFlexLeagueListVisible("private")&&(t.flexLeagueOptions.privateFlex.length||t.flexLeagueOptions.privateFixed.length)?(a(),r("div",Df,[e("h2",{class:g(["leading-none font-header text-4xl",["text-"+l.domain_color]])},"PRIVATE",2),jf,i.isFlexLeagueListVisible("private flex")&&t.flexLeagueOptions.privateFlex.length?(a(),r("div",Vf,[e("h2",{class:g(["leading-none font-header text-xl mb-2",["text-"+l.domain_color]])},"FLEX",2),(a(!0),r(C,null,R(t.flexLeagueOptions.privateFlex,u=>(a(),H(h,{key:`league-listing-${u.id}`,league:u,market:l.market,selectedLeague:t.selectedLeagueId,domain_color:l.domain_color,onChooseLeague:y=>i.chooseLeague(u),onAccessCodeModal:y=>i.openLeagueAccessCodeModal(y,null)},null,8,["league","market","selectedLeague","domain_color","onChooseLeague","onAccessCodeModal"]))),128))])):f("",!0),i.isFlexLeagueListVisible("private fixed")&&t.flexLeagueOptions.privateFixed.length?(a(),r("div",Rf,[e("h2",{class:g(["leading-none font-header text-xl mb-2",["text-"+l.domain_color]])},"FIXED",2),(a(!0),r(C,null,R(t.flexLeagueOptions.privateFixed,u=>(a(),H(h,{key:`league-listing-${u.id}`,league:u,market:l.market,selectedLeague:t.selectedLeagueId,domain_color:l.domain_color,onChooseLeague:y=>i.chooseLeague(u),onAccessCodeModal:y=>i.openLeagueAccessCodeModal(y,null)},null,8,["league","market","selectedLeague","domain_color","onChooseLeague","onAccessCodeModal"]))),128))])):f("",!0)])):f("",!0)]))])):(a(),r("div",Nf,[i.filteredResults.length?f("",!0):(a(),r("div",{key:0,class:g(["border-2 p-8 text-center w-1/2 mx-auto min-w-full",["border-"+l.domain_color]])},Bf,2)),e("div",Hf,[zf,Wf,e("div",null,[j(e("input",{"onUpdate:modelValue":s[17]||(s[17]=u=>t.inviteCode=u),class:"input w-auto inline",type:"",name:"",placeholder:"Enter Team Invite Code"},null,512),[[W,t.inviteCode]]),e("button",{disabled:t.inviteCode.length===0,onClick:s[18]||(s[18]=P(u=>i.checkInviteCode(),["prevent"])),class:g(["disabled:cursor-not-allowed inline-block text-white px-6 py-2 rounded-full mb-2 ml-1",["bg-"+l.domain_color]])},[t.checkingInvite?(a(),r("span",$f,Xf)):(a(),r("span",Jf,"Go"))],10,Kf)]),t.inviteError?(a(),r("div",Zf,m(t.inviteError),1)):f("",!0),Qf]),(a(!0),r(C,null,R(i.filteredResults,u=>(a(),r("div",{key:`league-listing-${u.id}`,class:g(["mb-4 p-4 block border border-gray",[{"":!i.isOpen[u.id],"border-2":i.isOpen[u.id]},"border-"+l.domain_color]])},[e("div",{class:g(["flex flex-col md:flex-row items-start",{"mb-5":i.isOpen[u.id]}])},[e("div",Gf,[e("div",qf,[e("div",{class:g(["flex items-start",{"mb-5":i.isOpen[u.id]}])},[e("div",ep,[e("div",tp,[e("div",lp,m(u.name),1),u.is_registration_open?(a(),r("div",{key:1,class:g(["w-full md:flex",["text-"+l.domain_color]])},[ip,e("div",null,[u.is_late_reg?(a(),r("span",np,m(i.getEndOfLateReg(u))+" "+m(i.regularTitleEndDate(u).message),1)):(a(),r("span",op,m(u.buffered_local_reg_end)+" "+m(i.regularTitleEndDate(u).message),1))])],2)):(a(),r("div",{key:0,class:g(["w-full md:flex",["text-"+l.domain_color]])},[sp,e("div",null,[e("span",null,m(u.local_reg_start),1)])],2)),i.isOpen[u.id]?f("",!0):(a(),r("div",{key:2,onClick:P(y=>i.chooseLeague(u),["prevent"]),class:"cursor-pointer text-pickleball-gray my-4 md:mt-2 md:mb-0 text-sm w-full md:w-auto text-center md:text-left",id:"toggle-league-box"},up,8,ap))])])],2)])]),u.is_registration_open?(a(),r("button",{key:0,class:g(["block flex-shrink-0 text-white px-6 py-3 rounded-full w-full flex-shrink-0 md:w-[160px]",["bg-"+l.domain_color]]),onClick:P(y=>i.goToRegistration(u),["prevent"])},[j(e("span",null,fp,512),[[q,t.submittingLeague==u.id]]),j(e("span",null,"Sign Up Now!",512),[[q,t.submittingLeague!=u.id]])],10,mp)):f("",!0)],2),i.isOpen[u.id]?(a(),r("div",pp,[e("div",_p,[u.league_detail?(a(),r("div",gp,[yp,L(" "+m(u.league_detail),1)])):f("",!0),u.notes?(a(),r("div",bp,[xp,L(" "+m(u.notes),1)])):f("",!0),u.activity?(a(),r("div",vp,[wp,e("span",null,m(u.activity.name),1)])):f("",!0),u.home_location?(a(),r("div",kp,[Fp,e("span",null,m(l.market.type==="flex"?"Home team location":u.home_location.name),1),l.market.type!=="flex"?(a(),r("a",{key:0,href:u.home_location.map_url,class:g(["ml-1",["text-"+l.domain_color]]),target:"_blank"},"map",10,Lp)):f("",!0)])):f("",!0),u.bars.length?(a(),r("div",Cp,[Tp,e("a",{href:o.route("league-bar-league",u),class:"text-red underline"},"View Bars",8,Op)])):f("",!0),u.days_of_week_v2?(a(),r("div",Sp,[Ip,e("ul",null,[(a(!0),r(C,null,R(u.days_of_week_v2,y=>(a(),r("li",{key:`league-${y.fields.day_of_week}-time`},m(i.days[y.fields.day_of_week])+" "+m(y.fields.start_time)+" - "+m(y.fields.end_time),1))),128))])])):f("",!0),e("div",null,[Pp,u.start_date?(a(),r("span",Mp,m(u.local_start_date),1)):(a(),r("span",Ep,"N/A"))]),e("div",null,[Ap,u.end_date?(a(),r("span",jp,m(u.local_end_date),1)):(a(),r("span",Dp,"N/A"))]),e("div",Vp,[Rp,e("ul",null,[(a(!0),r(C,null,R(u.sortedPriceModifiers,y=>(a(),r("li",Np,[e("div",null,[e("p",{class:g(["inline-block",i.priceModifierClass(y,u)]),style:{"min-width":"90px"}},m(y.name),3),e("p",{class:g(["inline-block",i.priceModifierClass(y,u)]),style:{"min-width":"230px","margin-left":"-4px"}}," (until "+m(y.local_display_end)+"): ",3),e("p",{class:g(["inline-block",i.priceModifierClass(y,u)]),style:{"margin-left":"-4px"}},"$"+m((parseFloat(u.base_registration_fee)+parseFloat(y.price_modifier)).toFixed(2)),3),e("p",{class:g([i.priceModifierClass(y,u),"processing-fee inline-block"]),style:{"margin-left":"-4px"}},"  +$"+m(u.processing_fee)+" Proc. Fee",3)])]))),256)),(a(!0),r(C,null,R(u.sortedPriceModifiers,y=>(a(),r("li",Up,[e("div",null,[e("p",{class:g(["inline-block",i.priceModifierClass(y,u)]),style:{"min-width":"90px"}},m(y.name)+" - $"+m((parseFloat(u.base_registration_fee)+parseFloat(y.price_modifier)).toFixed(2)),3),Bp,e("p",{class:g(["inline-block",i.priceModifierClass(y,u)]),style:{"min-width":"230px","margin-left":"-4px"}}," (until "+m(y.local_display_end)+") ",3)])]))),256))])]),e("div",Hp,[u.is_registration_open?(a(),r("button",{key:0,class:g(["block flex-shrink-0 text-white px-6 py-3 rounded-full w-full md:w-[160px] md:hidden",["bg-"+l.domain_color]]),onClick:P(y=>i.goToRegistration(u),["prevent"])},[j(e("span",null,Kp,512),[[q,t.submittingLeague==u.id]]),j(e("span",null,"Sign Up Now!",512),[[q,t.submittingLeague!=u.id]])],10,zp)):f("",!0),e("div",{onClick:P(y=>i.chooseLeague(u),["prevent"]),class:"cursor-pointer text-pickleball-gray my-4 md:mt-2 md:mb-0 text-sm w-full md:w-auto text-center md:text-left",id:"toggle-league-box"},Zp,8,$p)])])])):f("",!0)],2))),128))]))]))],2),e("div",null,[w(_,{ref:"modal",clickToClose:!0,escToClose:!0,"fixed-height":i.getFixedHeight()},{default:A(()=>[Qp,Gp,qp,e_,t_,l_,s_,i_,o_,n_,e("button",{onClick:s[19]||(s[19]=u=>i.closeModal()),class:"m-auto bg-white border-2 border-pickleball-green button rounded-full text-pickleball-green py-2 mt-6 px-10 block"},"Got it!")]),_:1},8,["fixed-height"])]),w(x,{ref:"acceptInviteModal",domain_color:l.domain_color,invitedTeam:t.invitedTeam,invitedLeague:t.invitedLeague,inviteCode:t.inviteCode,onAccepted:i.openLeagueAccessCodeModal},null,8,["domain_color","invitedTeam","invitedLeague","inviteCode","onAccepted"]),w(n,{ref:"leagueAccessCodeModal",domain_color:l.domain_color,league:t.privateLeague,onCode:i.goToPrivateRegistration},null,8,["domain_color","league","onCode"])])}const r_=Y(Em,[["render",a_]]),c_={props:["note","date"],mixins:[te]},d_={class:"w-full pt-3"},u_={class:"text-xl text-left font-bold uppercase font-bebe mb-5"};function m_(o,s,l,d,t,i){const c=V("modal");return a(),H(c,{ref:"modal",clickToClose:!0,escToClose:!0,height:"100px"},{default:A(()=>[e("div",d_,[e("h1",u_,m(l.date)+": "+m(l.note),1),e("button",{class:"button bg-red rounded-full text-white py-2 px-6 m-auto block",onClick:s[0]||(s[0]=P((...h)=>o.closeModal&&o.closeModal(...h),["prevent"]))},"Close")])]),_:1},512)}const h_=Y(c_,[["render",m_]]),f_={name:"upcoming-leagues",layout:(o,s)=>o(ae,[s]),props:{domain_color:String,market:Object,upcomingLeagueOptions:{type:[Array,Object]}},components:{IconDropdown:ie,LeagueInfoBox:fe,LeagueAccessCodeModal:pe},mixins:[re,te],data(){return{showAcceptInvite:!1,checkingInvite:!1,inviteCode:"",inviteError:"",invitedTeam:null,invitedLeague:null,loading:!0,leagueSearch:"",privateLeague:{},privateTeam:"",form:{sortBy:"day",sortDir:"asc",activity:null,day:null,location:null},selectFilters:{activity:null,day:null,location:null},selectFlexFilters:{schedule_type:null,play_times:null,day:null,gender:null,singles:null},activeFilters:{activity:[],day:[],location:[]},activeFlexFilters:{schedule_type:[],play_times:[],day:[],gender:[],singles:[]},selectedLeague:null,selectedLeagueId:null,leagueOptions:[],flexLeagueOptions:{publicFlex:[],publicFixed:[],privateFlex:[],privateFixed:[]},submittingLeague:null,showLeagues:!1}},mounted(){this.market.type=="standard"?(this.leagueOptions=this.upcomingLeagueOptions,this.leagueOptions.forEach(o=>{o.regularTitleEndDate=this.regularTitleEndDate(o),o.regularListedEndDate=this.regularListedEndDate(o);let s=o.registrations;s.push(this.regularListedEndDate(o)),s.forEach(l=>{if(l.priceModifierClass=this.priceModifierClass(l,o),l.name.indexOf("Final")!=-1||l.name.indexOf("Regular")!=-1){let d=new Date(l.end_date);d.setHours(d.getHours()-1),l.displayedEndDate=d}else l.displayedEndDate=l.end_date}),s.sort((l,d)=>{let t=new Date(l.end_date),i=new Date(d.end_date);return t>i?1:-1}),o.sortedPriceModifiers=s,this.domain_color=="cornhole-orange"&&(this.selectFilters.activity=3,this.applyFilters())})):(this.flexLeagueOptions.publicFlex=this.parseLeagueModifiers(Object.values(this.upcomingLeagueOptions.publicFlexLeagues)),this.flexLeagueOptions.publicFixed=this.parseLeagueModifiers(Object.values(this.upcomingLeagueOptions.publicFixedLeagues)),this.flexLeagueOptions.privateFlex=this.parseLeagueModifiers(Object.values(this.upcomingLeagueOptions.privateFlexLeagues)),this.flexLeagueOptions.privateFixed=this.parseLeagueModifiers(Object.values(this.upcomingLeagueOptions.privateFixedLeagues)),this.loading=!1)},computed:{isOpen(){let o=!Z(this.selectedLeague,"id",null),s={};return this.leagueOptions.forEach(l=>{let d=!1;o?d=!1:d=this.selectedLeague.id===l.id,s[l.id]=d}),s},locations(){return Z(this.market,"locations",[])},activities(){return Z(this.market,"activities",[])},days(){return Z(this.$page.props,"days",[])},filteredResults(){let o=this.leagueOptions.filter(d=>this.market.type=="flex"?d.name.toLowerCase().includes(this.leagueSearch.toLowerCase()):!0),s=this.form.sortBy,l=this.form.sortDir;if(o=o.sort((d,t)=>{let i,c;switch(s){case"activity":i=d.activity.name,c=t.activity.name;break;case"day":i=d.day_of_league,c=t.day_of_league;break;case"location":i=d.fields.length>0?d.fields[0].location.name:"zzz",c=t.fields.length>0?t.fields[0].location.name:"zzz";break}return i>c?l==="desc"?-1:1:c>i?l==="desc"?1:-1:0}),!this.activeFilters.activity.length&&!this.activeFilters.day.length&&!this.activeFilters.location.length&&!this.activeFlexFilters.schedule_type.length&&!this.activeFlexFilters.play_times.length&&!this.activeFlexFilters.day.length&&!this.activeFlexFilters.gender.length&&!this.activeFlexFilters.singles.length)return o;if(this.market.type=="flex"){let d=this.activeFlexFilters;o=o.filter(t=>{let i=!0;for(let c in d)d[c].forEach(h=>{if(c==="schedule_type"){let _=h.id;_=="flex"&&d.play_times.length>0?(t.schedule_type!==_||t.flex_schedule_type!=d.play_times[0].id)&&(i=!1):_=="fixed"&&d.day.length>0?(t.schedule_type!==_||t.flex_day_of_week!=d.day[0].id)&&(i=!1):h.id!==t.schedule_type&&(i=!1)}c==="gender"&&h.id!==t.gender_type&&(i=!1),c==="singles"&&(h.id=="singles"?1:0)!==t.singles&&(i=!1)});return i})}else{let d=this.activeFilters.activity.length>0?this.activeFilters.activity[0].id:!1,t=this.activeFilters.day.length>0?this.activeFilters.day[0].id:!1,i=this.activeFilters.location.length>0?this.activeFilters.location[0].id:!1;o=o.filter(c=>{let h=!0;return d&&d!=c.activity_id||t&&t!=c.day_of_league||t===0&&t!=c.day_of_league?!1:(i&&(h=!1,c.fields.forEach(_=>{i===_.location_id&&(h=!0)})),h)})}return o}},methods:{getFixedHeightPx(){return window.innerHeight-30+"px"},getFixedHeight(){return window.innerHeight-30},parseLeagueModifiers(o){return o.forEach(s=>{s.regularTitleEndDate=this.regularTitleEndDate(s),s.regularListedEndDate=this.regularListedEndDate(s);let l=s.registrations;l.push(this.regularListedEndDate(s)),l.forEach(d=>{if(d.priceModifierClass=this.priceModifierClass(d,s),d.name.indexOf("Final")!=-1||d.name.indexOf("Regular")!=-1){let t=new Date(d.end_date);t.setHours(t.getHours()-1),d.displayedEndDate=t}else d.displayedEndDate=d.end_date}),l.sort((d,t)=>{let i=new Date(d.end_date),c=new Date(t.end_date);return i>c?1:-1}),s.sortedPriceModifiers=l}),o},filterFlexLeagues(){this.flexLeagueOptions.publicFlex=Object.values(this.upcomingLeagueOptions.publicFlexLeagues),this.flexLeagueOptions.publicFixed=Object.values(this.upcomingLeagueOptions.publicFixedLeagues),this.flexLeagueOptions.privateFlex=Object.values(this.upcomingLeagueOptions.privateFlexLeagues),this.flexLeagueOptions.privateFixed=Object.values(this.upcomingLeagueOptions.privateFixedLeagues),this.activeFlexFilters.gender.length&&(this.flexLeagueOptions.publicFlex=this.flexLeagueOptions.publicFlex.filter(o=>o.gender_type==this.activeFlexFilters.gender[0].label),this.flexLeagueOptions.publicFixed=this.flexLeagueOptions.publicFixed.filter(o=>o.gender_type==this.activeFlexFilters.gender[0].label),this.flexLeagueOptions.privateFlex=this.flexLeagueOptions.privateFlex.filter(o=>o.gender_type==this.activeFlexFilters.gender[0].label),this.flexLeagueOptions.privateFixed=this.flexLeagueOptions.privateFixed.filter(o=>o.gender_type==this.activeFlexFilters.gender[0].label)),this.activeFlexFilters.singles.length&&(this.flexLeagueOptions.publicFlex=this.flexLeagueOptions.publicFlex.filter(o=>this.activeFlexFilters.singles[0].label=="singles"?o.singles:!o.singles),this.flexLeagueOptions.publicFixed=this.flexLeagueOptions.publicFixed.filter(o=>this.activeFlexFilters.singles[0].label=="singles"?o.singles:!o.singles),this.flexLeagueOptions.privateFlex=this.flexLeagueOptions.privateFlex.filter(o=>this.activeFlexFilters.singles[0].label=="singles"?o.singles:!o.singles),this.flexLeagueOptions.privateFixed=this.flexLeagueOptions.privateFixed.filter(o=>this.activeFlexFilters.singles[0].label=="singles"?o.singles:!o.singles)),this.leagueSearch.length&&(this.flexLeagueOptions.publicFlex=this.flexLeagueOptions.publicFlex.filter(o=>o.name.toLowerCase().includes(this.leagueSearch.toLowerCase())),this.flexLeagueOptions.publicFixed=this.flexLeagueOptions.publicFixed.filter(o=>o.name.toLowerCase().includes(this.leagueSearch.toLowerCase())),this.flexLeagueOptions.privateFlex=this.flexLeagueOptions.privateFlex.filter(o=>o.name.toLowerCase().includes(this.leagueSearch.toLowerCase())),this.flexLeagueOptions.privateFixed=this.flexLeagueOptions.privateFixed.filter(o=>o.name.toLowerCase().includes(this.leagueSearch.toLowerCase())))},isFlexLeagueListVisible(o){let s=!1;switch(o){case"public":s=!this.activeFlexFilters.schedule_type.length||this.activeFlexFilters.schedule_type[0].label=="public flex"&&this.flexLeagueOptions.publicFlex.length||this.activeFlexFilters.schedule_type[0].label=="public fixed"&&this.flexLeagueOptions.publicFixed.length;break;case"public flex":s=!this.activeFlexFilters.schedule_type.length||this.activeFlexFilters.schedule_type[0].label=="public flex";break;case"public fixed":s=!this.activeFlexFilters.schedule_type.length||this.activeFlexFilters.schedule_type[0].label=="public fixed";break;case"private":s=!this.activeFlexFilters.schedule_type.length||this.activeFlexFilters.schedule_type[0].label=="private flex"&&this.flexLeagueOptions.privateFlex.length||this.activeFlexFilters.schedule_type[0].label=="private fixed"&&this.flexLeagueOptions.privateFixed.length;break;case"private flex":s=!this.activeFlexFilters.schedule_type.length||this.activeFlexFilters.schedule_type[0].label=="private flex";break;case"private fixed":s=!this.activeFlexFilters.schedule_type.length||this.activeFlexFilters.schedule_type[0].label=="private fixed";break;default:s=!0;break}return s},regularTitleEndDate(o){let s=o.registrations.find(d=>d.name.indexOf("Late")>-1),l=new Date(o.local_reg_end);return l.setHours(l.getHours()-1),o.canAddPlayer?s?s.modifier_status=="during"?{date:new Date(s.local_end_date).getTime(),message:"*late fees now apply"}:{date:l,message:null}:{date:l,message:null}:{date:new Date(s.local_end_date).getTime(),message:"*FULL - REGISTRATION CLOSED"}},regularListedEndDate(o){let s=this.finalWeekPriceModifier(o);return s?{name:"Regular",end_date:s.start_date,local_display_end:s.local_display_start,price_modifier:0}:{name:"Regular",end_date:o.registration_end_date,local_display_end:o.buffered_local_reg_end,price_modifier:0}},finalWeekPriceModifier(o){return o.registrations.find(s=>s.name.indexOf("Final")>-1)},getEndOfLateReg(o){return o.registrations.find(l=>l.name.indexOf("Late")>-1).local_display_end},priceModifierClass(o,s){return o.name.indexOf("Late")>-1?o.modifier_status!="during"?"hidden":"text-red bg-yellow-500 bg-opacity-75 font-bold":o.name=="Regular"?s.after_regular_reg?"font-bold line-through":"font-bold":o.modifier_status=="past"?"text-red line-through":"text-red"},applyFilters(){let o=this.activeFilters;for(let s in o){let l={},d="";this.selectFilters[s]&&(o[s]=[],s==="activity"?(l=this.activities.find(c=>c.id===this.selectFilters[s]),o[s].push({attr:s,label:l.name,id:this.selectFilters[s]})):s==="location"?(l=this.locations.find(c=>c.id===this.selectFilters[s]),o[s].push({attr:s,label:l.name,id:this.selectFilters[s]})):(d=this.days.find((c,h)=>h===parseInt(this.selectFilters[s])),o[s].push({attr:s,label:d,id:parseInt(this.selectFilters[s])})));let t=o[s],i=Array.from(new Set(t.map(c=>c.id))).map(c=>t.find(h=>h.id===c));o[s]=i}this.activeFilters=o},applyFlexFilters(){this.activeFlexFilters.schedule_type=[],this.activeFlexFilters.play_times=[],this.activeFlexFilters.day=[];let o=this.activeFlexFilters;for(let s in o){let l="";if(this.selectFlexFilters[s])if(o[s]=[],s==="schedule_type")o[s].push({attr:s,label:this.selectFlexFilters[s],id:this.selectFlexFilters[s]});else if(s==="play_times")o[s].push({attr:s,label:this.selectFlexFilters[s],id:this.selectFlexFilters[s]});else if(s==="gender")o[s].push({attr:s,label:this.selectFlexFilters[s],id:this.selectFlexFilters[s]});else if(s==="singles"){let i=this.selectFlexFilters[s];o[s].push({attr:s,label:i,id:i})}else l=this.days.find((i,c)=>c===parseInt(this.selectFlexFilters[s])),o[s].push({attr:s,label:l,id:parseInt(this.selectFlexFilters[s])});let d=o[s],t=Array.from(new Set(d.map(i=>i.id))).map(i=>d.find(c=>c.id===i));o[s]=t}this.activeFlexFilters=o,this.filterFlexLeagues()},removeFilter(o,s){let d=this.activeFilters[o].filter(t=>t.id!=s&&t.id!=parseInt(s));this.activeFilters[o]=d,this.selectFilters[o]=null},removeFlexFilter(o,s){let d=this.activeFlexFilters[o].filter(t=>t.id!=s&&t.id!=parseInt(s));this.activeFlexFilters[o]=d,this.selectFlexFilters[o]=null,this.filterFlexLeagues()},chooseLeague(o){this.selectedLeague=this.selectedLeague===o?null:o,this.selectedLeagueId=this.selectedLeague?this.selectedLeague.id:null},goToRegistration(o){o.private?this.openLeagueAccessCodeModal(o,null):(this.submittingLeague=o.id,xe(),ee.post(route("registration.initiate.process",{league_id:o.id})))},openLeagueAccessCodeModal(o,s){this.privateLeague=o,this.privateTeam=s,this.$refs.leagueAccessCodeModal.openModal()},goToPrivateRegistration(){this.submittingLeague=this.privateLeague.id,ee.post(route("registration.initiate.process",{invite_code:this.privateTeam?this.privateTeam.invite_code:"",league_id:this.privateLeague.id,team_id:this.privateTeam?this.privateTeam.id:""}))},checkInviteCode(){this.checkingInvite=!0,axios.post("/check-invite/",{market_id:this.market.id,invite_code:this.inviteCode}).then(o=>{this.checkingInvite=!1,o.data,o.data.status==="error"?(this.inviteError=o.data.message,this.invitedTeam=null,this.invitedLeague=null):(this.inviteError="",this.invitedTeam=o.data.team,this.invitedLeague=o.data.league,this.showAcceptInvite=!0)})},acceptInvite(){this.invitedLeague.private?(this.$emit("acceptedInvite",this.invitedLeague,this.invitedTeam),this.closeModal()):(xe(),ee.post(route("registration.initiate.process",{invite_code:this.inviteCode,league_id:this.invitedLeague.id,team_id:this.invitedTeam.id})))}}},p_=e("span",{class:"hidden md:inline"},"-",-1),__={key:0,class:"text-center"},g_={class:"text-lg mx-auto mb-10"},y_={key:1,class:"text-center"},b_=e("h1",{class:"text-3xl text-center font-bold uppercase mb-8 font-bebe"},"Accept Team Invite",-1),x_={class:"mb-8 text-gray text-sm"},v_={key:2,class:"text-center"},w_={class:"mb-4 p-4 block border border-gray bg-gray-lightest text-center"},k_=e("h4",{class:"leading-none font-header text-4xl mb-2"},"Have you been invited to join a team?",-1),F_=e("h6",{class:"leading-none font-header text-xl mb-2"},"If so, enter your invite code here and we'll place you with your teammates:",-1),L_=["disabled"],C_={key:0},T_=e("svg",{class:"h-6 w-6 animate-spin inline",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1),O_=[T_],S_={key:1},I_={key:0,class:"form-error text-red mb-2"},P_=e("h6",{class:"leading-none text-sm mb-2"},"Note: If you received an invitation by email, you can also click the link in the email to skip this step.",-1),E_={key:3,class:"text-center"},M_=e("span",{class:"hidden md:inline"},",",-1),A_=e("br",{class:"block md:hidden"},null,-1),D_={class:"md:container mx-auto"},j_={class:"flex flex-wrap mb-10 md:px-6 md:px-24"},V_={class:"w-full flex items-center mb-4"},R_=e("label",{class:"w-1/6 mr-2"},"Sort By:",-1),N_={class:"w-5/6 inline-block text-right relative"},U_=e("option",{value:null},"Choose",-1),B_=e("option",{value:"activity"},"Activity",-1),H_=e("option",{value:"day"},"Day",-1),z_=e("option",{value:"location"},"Location",-1),W_=[U_,B_,H_,z_],K_={class:"w-full ml-auto flex items-start"},$_=e("label",{class:"w-1/6 mr-2"},"Filter By:",-1),Y_={class:"w-5/6 block md:flex md:flex-row"},X_={class:"w-full md:w-1/3 inline-block relative mr-4 mb-2 md:mb-0"},J_=e("option",{value:null},"Activity",-1),Z_=["value"],Q_={class:"w-full md:w-1/3 inline-block relative mr-4 mb-2 md:mb-0"},G_=e("option",{value:null},"Day",-1),q_=e("option",{value:"0"},"Sunday",-1),e1=e("option",{value:"1"},"Monday",-1),t1=e("option",{value:"2"},"Tuesday",-1),l1=e("option",{value:"3"},"Wednesday",-1),s1=e("option",{value:"4"},"Thursday",-1),i1=e("option",{value:"5"},"Friday",-1),o1=e("option",{value:"6"},"Saturday",-1),n1=[G_,q_,e1,t1,l1,s1,i1,o1],a1={class:"w-full md:w-1/3 inline-block relative mr-4 mb-2 md:mb-0"},r1=e("option",{value:null},"Location",-1),c1=["value"],d1={class:"w-full md:w-auto inline-block text-right"},u1={class:"flex items-start m-5"},m1={class:"inline-block"},h1=["onClick"],f1={class:"inline-block"},p1=["onClick"],_1={class:"inline-block"},g1=["onClick"],y1={class:"flex flex-wrap md:mb-10 md:px-24"},b1={class:"w-full ml-auto flex items-start mb-4"},x1=e("label",{class:"w-1/6 mr-2 md:p-2 text-right"},"Filter By:",-1),v1={class:"w-5/6 block md:flex md:flex-row"},w1={class:"w-full md:w-1/3 inline-block relative mr-4 mb-2 md:mb-0"},k1=e("option",{value:null},"League Type",-1),F1=e("option",{value:"public flex"},"Public Flex",-1),L1=e("option",{value:"public fixed"},"Public Fixed",-1),C1=e("option",{value:"private flex"},"Private Flex",-1),T1=e("option",{value:"private fixed"},"Private Fixed",-1),O1=[k1,F1,L1,C1,T1],S1={key:0,class:"w-full md:w-1/3 inline-block relative mr-4 mb-2 md:mb-0"},I1=e("option",{value:null},"Play Times",-1),P1=e("option",{value:"Any time"},"Any time",-1),E1=e("option",{value:"Days and Weekends"},"Days and Weekends",-1),M1=e("option",{value:"Evenings and Weekends"},"Evenings and Weekends",-1),A1=[I1,P1,E1,M1],D1={key:1,class:"w-full md:w-1/3 inline-block relative mr-4 mb-2 md:mb-0"},j1=e("option",{value:null},"Day",-1),V1=e("option",{value:"0"},"Sunday",-1),R1=e("option",{value:"1"},"Monday",-1),N1=e("option",{value:"2"},"Tuesday",-1),U1=e("option",{value:"3"},"Wednesday",-1),B1=e("option",{value:"4"},"Thursday",-1),H1=e("option",{value:"5"},"Friday",-1),z1=e("option",{value:"6"},"Saturday",-1),W1=[j1,V1,R1,N1,U1,B1,H1,z1],K1={class:"w-full md:w-1/3 inline-block relative mr-4 mb-2 md:mb-0"},$1=e("option",{value:null},"Gender",-1),Y1=e("option",{value:"men"},"Men",-1),X1=e("option",{value:"women"},"Women",-1),J1=e("option",{value:"co-ed"},"Co-Ed",-1),Z1=e("option",{value:"mixed"},"Mixed",-1),Q1=[$1,Y1,X1,J1,Z1],G1={class:"w-full md:w-1/3 inline-block relative mr-4 mb-2 md:mb-0"},q1=e("option",{value:null},"Single and Doubles",-1),eg=e("option",{value:"singles"},"Singles",-1),tg=e("option",{value:"doubles"},"Doubles",-1),lg=[q1,eg,tg],sg={class:"w-full md:w-auto inline-block text-right"},ig={class:"w-full flex items-center mb-2"},og=e("label",{class:"w-1/6 mr-2 md:p-2 text-right"},"Search:",-1),ng={class:"w-5/6 inline-block text-right relative"},ag={class:"w-full hidden md:flex"},rg=e("div",{class:"w-1/6 p-2 text-right"},null,-1),cg={class:"w-5/6"},dg=e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"inline-block h-5 w-5",viewBox:"0 0 20 20",fill:"#1c7ed6"},[e("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"})],-1),ug=e("span",{class:"ml-2 font-bold"},"IMPORTANT NOTES:",-1),mg={class:"list-inside list-disc pl-5 mb-8"},hg=e("li",null,"Leagues are listed by PUBLIC and PRIVATE (Private Leagues require an Access-Code). ",-1),fg=e("li",null,"When you Sign-Up for a PUBLIC League, we place you in the League in your Area matching your Skill Level. ",-1),pg={class:"w-full md:hidden"},_g=e("label",{class:"w-1/6 mr-2 p-2 text-right"},null,-1),gg=e("div",{class:"flex"},[e("svg",{class:"inline-block h-5 w-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"#1c7ed6"},[e("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"})]),e("p",{class:"ml-2 font-bold"},"IMPORTANT NOTES:")],-1),yg={class:"list-inside list-disc pl-5 mb-8"},bg=e("li",null,"Leagues are listed by PUBLIC and PRIVATE (Private Leagues require an Access-Code). ",-1),xg=e("li",null,"When you Sign-Up for a PUBLIC League, we place you in the League in your Area matching your Skill Level. ",-1),vg={class:"flex items-start m-5"},wg={class:"inline-block"},kg=["onClick"],Fg={class:"inline-block"},Lg=["onClick"],Cg={class:"inline-block"},Tg=["onClick"],Og={class:"inline-block"},Sg=["onClick"],Ig={class:"inline-block"},Pg=["onClick"],Eg={key:2},Mg={key:0,class:"border-2 border-pickleball-green p-8 text-center w-1/2 mx-auto min-w-full"},Ag=e("span",{class:"text-pickleball-green font-bold"},"No Results Found.",-1),Dg=[Ag],jg={key:1},Vg={key:0,class:"mb-8"},Rg=e("p",{class:"font-bold mb-4"},"Public flex and fixed leagues are Open to all players.",-1),Ng={key:0,class:"mb-4"},Ug={key:1,class:"mb-4"},Bg={key:1,class:"mb-8"},Hg=e("p",{class:"font-bold mb-4"},"Private flex and fixed leagues require a League Access Code.",-1),zg={key:0,class:"mb-4"},Wg={key:1,class:"mb-4"},Kg={key:3},$g=e("span",{class:"text-red font-bold"},"No Results Found.",-1),Yg=[$g],Xg={class:"flex-grow md:mr-4"},Jg={class:"flex flex-wrap w-full md:w-auto items-center cursor-pointer"},Zg={class:"flex-grow md:mr-4"},Qg={class:"flex flex-wrap items-center cursor-pointer"},Gg={class:"w-full text-left"},qg=e("div",{class:"mr-1"},"Sign up opens on:",-1),ey=e("div",{class:"mr-1"},"Sign up closes on",-1),ty={key:0},ly={key:1},sy=["onClick"],iy=e("template",null,[e("svg",{class:"inline-block",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},[e("path",{class:"heroicon-ui",d:"M15.3 9.3a1 1 0 0 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 1.4-1.4l3.3 3.29 3.3-3.3z"})])],-1),oy=e("span",null,"See more",-1),ny=e("template",null,[e("svg",{class:"inline-block",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},[e("path",{class:"heroicon-ui",d:"M15.3 9.3a1 1 0 0 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 1.4-1.4l3.3 3.29 3.3-3.3z"})])],-1),ay=[iy,oy,ny],ry=["onClick"],cy=e("svg",{class:"h-6 w-6 animate-spin inline",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1),dy=[cy],uy={key:0,class:"flex flex-wrap text-left break-words"},my={class:"w-full mb-6"},hy={key:0,class:"mb-2"},fy=e("span",{class:"text-gray"},"Description:",-1),py={key:1,class:"mb-2"},_y=e("span",{class:"text-gray"},"Notes:",-1),gy={key:2},yy=e("span",{class:"text-gray"},"Sport:",-1),by={key:3},xy=e("span",{class:"text-gray"},"Location:",-1),vy=["href"],wy={key:4},ky=e("span",{class:"text-gray"},"League Bar:",-1),Fy=["href"],Ly={key:5,class:"flex"},Cy=e("span",{class:"text-gray mr-2"},"Day & Time:",-1),Ty=e("span",{class:"text-gray"},"League Start Date:",-1),Oy={key:0},Sy={key:1},Iy=e("span",{class:"text-gray"},"League End Date:",-1),Py={key:0},Ey={key:1},My={class:"flex mt-2"},Ay=e("span",{class:"text-gray mr-2"},"Price:",-1),Dy={class:"hidden md:inline"},jy={class:"inline md:hidden"},Vy=e("br",null,null,-1),Ry={class:"w-full md:w-1/3 text-center px-4 mt-4"},Ny=["onClick"],Uy=e("svg",{class:"h-6 w-6 animate-spin inline",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1),By=[Uy],Hy=["onClick"],zy=e("template",null,[e("svg",{class:"inline-block",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},[e("path",{class:"heroicon-ui",d:"M8.7 14.7a1 1 0 0 1-1.4-1.4l4-4a1 1 0 0 1 1.4 0l4 4a1 1 0 0 1-1.4 1.4L12 11.42l-3.3 3.3z"})])],-1),Wy=e("span",null,"See less",-1),Ky=e("template",null,[e("svg",{class:"inline-block",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},[e("path",{class:"heroicon-ui",d:"M8.7 14.7a1 1 0 0 1-1.4-1.4l4-4a1 1 0 0 1 1.4 0l4 4a1 1 0 0 1-1.4 1.4L12 11.42l-3.3 3.3z"})])],-1),$y=[zy,Wy,Ky];function Yy(o,s,l,d,t,i){const c=V("icon-dropdown"),h=V("league-info-box"),_=V("league-access-code-modal"),x=V("modal");return a(),H(x,{ref:"modal",clickToClose:!1,escToClose:!0,wrapperClass:"bg-white rounded shadow-lg border flex flex-col overflow-hidden",width:"95%",fixedHeight:i.getFixedHeightPx(),height:i.getFixedHeight()},{default:A(()=>[e("div",{class:g(["m-auto mb-10",{"mt-10":l.market.type=="flex"}])},[e("h2",{class:g(["leading-none font-header text-center text-6xl mb-10",["text-"+l.domain_color]])},[L("Sign Up "),p_,L(" "+m(l.market.name),1)],2),l.market.type=="standard"&&!t.leagueOptions.length?(a(),r("div",__,[e("span",g_," There are no leagues open for registration in "+m(l.market.name)+" at this time. Please check back later! ",1)])):f("",!0),t.showAcceptInvite?(a(),r("div",y_,[b_,e("p",x_,[L("You have been invited to join "),e("strong",null,m(t.invitedTeam.name),1),L(" in the "),e("strong",null,m(t.invitedLeague.name),1),L(" league.")]),e("button",{class:g(["button rounded-full text-white py-2 mt-6 px-6 m-auto block",["bg-"+l.domain_color]]),onClick:s[0]||(s[0]=P((...n)=>i.acceptInvite&&i.acceptInvite(...n),["prevent"]))},"I Accept ",2),e("button",{class:g(["button rounded-full text-white py-2 mt-6 px-6 m-auto block",["bg-"+l.domain_color]]),onClick:s[1]||(s[1]=P(n=>t.showAcceptInvite=!1,["prevent"]))},"No Thanks ",2)])):t.showLeagues?(a(),r("div",E_,[e("button",{onClick:s[5]||(s[5]=P(n=>t.showLeagues=!1,["prevent"])),class:g(["inline-block text-white px-6 py-2 rounded-full mb-4",["text-"+l.domain_color]])},[L(" Go Back"),M_,A_,L(" I Was Invited to Join a Team ")],2),e("div",D_,[l.market.type=="standard"?(a(),r(C,{key:0},[e("div",j_,[e("div",V_,[R_,e("div",N_,[j(e("select",{class:"inline-block appearance-none w-full bg-white border border-market-gray text-market-gray py-2 pl-2 pr-6 rounded","onUpdate:modelValue":s[6]||(s[6]=n=>t.form.sortBy=n)},W_,512),[[$,t.form.sortBy]]),w(c)])]),e("div",K_,[$_,e("div",Y_,[e("div",X_,[j(e("select",{class:"inline-block appearance-none w-full bg-white border border-market-gray text-market-gray py-2 pl-2 pr-6 rounded","onUpdate:modelValue":s[7]||(s[7]=n=>t.selectFilters.activity=n)},[J_,(a(!0),r(C,null,R(i.activities,n=>(a(),r("option",{key:`activity-select-${n.id}`,value:n.id},m(n.name),9,Z_))),128))],512),[[$,t.selectFilters.activity]]),w(c)]),e("div",Q_,[j(e("select",{class:"inline-block appearance-none w-full bg-white border border-market-gray text-market-gray py-2 pl-2 pr-6 rounded","onUpdate:modelValue":s[8]||(s[8]=n=>t.selectFilters.day=n)},n1,512),[[$,t.selectFilters.day]]),w(c)]),e("div",a1,[j(e("select",{class:"inline-block appearance-none w-full bg-white border border-market-gray text-market-gray py-2 pl-2 pr-6 rounded","onUpdate:modelValue":s[9]||(s[9]=n=>t.selectFilters.location=n)},[r1,(a(!0),r(C,null,R(i.locations,n=>(a(),r("option",{key:`location-select-${n.id}`,value:n.id},m(n.name),9,c1))),128))],512),[[$,t.selectFilters.location]]),w(c)]),e("div",d1,[e("button",{class:g(["button text-white py-1 px-6 rounded-full",["bg-"+l.domain_color]]),onClick:s[10]||(s[10]=P((...n)=>i.applyFilters&&i.applyFilters(...n),["prevent"]))},"OK ",2)])])])]),j(e("div",u1,[(a(!0),r(C,null,R(t.activeFilters.activity,(n,u)=>(a(),r("div",{key:`filter-activity-${u}`,class:g(["text-white rounded-full py-1 px-6 mr-8",["bg-"+l.domain_color]])},[e("span",m1,m(n.label),1),e("span",{class:"inline-block text-white ml-2 cursor-pointer",onClick:P(y=>i.removeFilter(n.attr,n.id),["prevent"])},"x",8,h1)],2))),128)),(a(!0),r(C,null,R(t.activeFilters.day,(n,u)=>(a(),r("div",{key:`filter-day-${u}`,class:g(["text-white rounded-full py-1 px-6 mr-8",["bg-"+l.domain_color]])},[e("span",f1,m(n.label),1),e("span",{class:"inline-block text-white ml-2 cursor-pointer",onClick:P(y=>i.removeFilter(n.attr,n.id),["prevent"])},"x",8,p1)],2))),128)),(a(!0),r(C,null,R(t.activeFilters.location,(n,u)=>(a(),r("div",{key:`filter-location-${u}`,class:g(["text-white rounded-full py-1 px-6 mr-8",["bg-"+l.domain_color]])},[e("span",_1,m(n.label),1),e("span",{class:"inline-block text-white ml-2 cursor-pointer",onClick:P(y=>i.removeFilter(n.attr,n.id),["prevent"])},"x",8,g1)],2))),128))],512),[[q,t.activeFilters.activity.length||t.activeFilters.day.length||t.activeFilters.location.length]])],64)):f("",!0),l.market.type=="flex"?(a(),r(C,{key:1},[e("div",y1,[e("div",b1,[x1,e("div",v1,[e("div",w1,[j(e("select",{class:"inline-block appearance-none w-full bg-white border border-market-gray text-market-gray py-2 pl-2 pr-6 rounded","onUpdate:modelValue":s[11]||(s[11]=n=>t.selectFlexFilters.schedule_type=n)},O1,512),[[$,t.selectFlexFilters.schedule_type]]),w(c)]),t.selectFlexFilters.schedule_type=="flex"?(a(),r("div",S1,[j(e("select",{class:"inline-block appearance-none w-full bg-white border border-market-gray text-market-gray py-2 pl-2 pr-6 rounded","onUpdate:modelValue":s[12]||(s[12]=n=>t.selectFlexFilters.play_times=n)},A1,512),[[$,t.selectFlexFilters.play_times]]),w(c)])):f("",!0),t.selectFlexFilters.schedule_type=="fixed"?(a(),r("div",D1,[j(e("select",{class:"inline-block appearance-none w-full bg-white border border-market-gray text-market-gray py-2 pl-2 pr-6 rounded","onUpdate:modelValue":s[13]||(s[13]=n=>t.selectFlexFilters.day=n)},W1,512),[[$,t.selectFlexFilters.day]]),w(c)])):f("",!0),e("div",K1,[j(e("select",{class:"inline-block appearance-none w-full bg-white border border-market-gray text-market-gray py-2 pl-2 pr-6 rounded","onUpdate:modelValue":s[14]||(s[14]=n=>t.selectFlexFilters.gender=n)},Q1,512),[[$,t.selectFlexFilters.gender]]),w(c)]),e("div",G1,[j(e("select",{class:"inline-block appearance-none w-full bg-white border border-market-gray text-market-gray py-2 pl-2 pr-6 rounded","onUpdate:modelValue":s[15]||(s[15]=n=>t.selectFlexFilters.singles=n)},lg,512),[[$,t.selectFlexFilters.singles]]),w(c)]),e("div",sg,[e("button",{class:g(["button text-white py-1 px-6 rounded-full",["bg-"+l.domain_color]]),onClick:s[16]||(s[16]=P((...n)=>i.applyFlexFilters&&i.applyFlexFilters(...n),["prevent"]))},"OK ",2)])])]),e("div",ig,[og,e("div",ng,[j(e("input",{type:"text","onUpdate:modelValue":s[17]||(s[17]=n=>t.leagueSearch=n),onInput:s[18]||(s[18]=n=>i.filterFlexLeagues()),class:"w-full border border-market-gray text-market-gray py-2 pl-2 pr-6 rounded"},null,544),[[W,t.leagueSearch]])])]),e("div",ag,[rg,e("div",cg,[dg,ug,e("ul",mg,[hg,fg,e("li",null,[e("a",{onClick:s[19]||(s[19]=n=>o.openModal()),class:"cursor-pointer underline"},"Click here"),L(" to learn about our 4 League Types: Public Flex, Publc Fixed, Private Flex, Private Fixed. ")])])])]),e("div",pg,[_g,e("div",null,[gg,e("ul",yg,[bg,xg,e("li",null,[e("a",{onClick:s[20]||(s[20]=n=>o.openModal()),class:"cursor-pointer underline"},"Click here"),L(" to learn about our 4 League Types: Public Flex, Publc Fixed, Private Flex, Private Fixed. ")])])])])]),j(e("div",vg,[(a(!0),r(C,null,R(t.activeFlexFilters.schedule_type,(n,u)=>(a(),r("div",{key:`filter-schedule_type-${u}`,class:g(["text-white rounded-full py-1 px-6 mr-8",["bg-"+l.domain_color]])},[e("span",wg,m(n.label[0].toUpperCase()+n.label.substring(1)),1),e("span",{class:"inline-block text-white ml-2 cursor-pointer",onClick:P(y=>i.removeFlexFilter(n.attr,n.id),["prevent"])},"x",8,kg)],2))),128)),(a(!0),r(C,null,R(t.activeFlexFilters.play_times,(n,u)=>(a(),r("div",{key:`filter-play_times-${u}`,class:g(["text-white rounded-full py-1 px-6 mr-8",["bg-"+l.domain_color]])},[e("span",Fg,m(n.label[0].toUpperCase()+n.label.substring(1)),1),e("span",{class:"inline-block text-white ml-2 cursor-pointer",onClick:P(y=>i.removeFlexFilter(n.attr,n.id),["prevent"])},"x",8,Lg)],2))),128)),(a(!0),r(C,null,R(t.activeFlexFilters.day,(n,u)=>(a(),r("div",{key:`filter-day-${u}`,class:g(["text-white rounded-full py-1 px-6 mr-8",["bg-"+l.domain_color]])},[e("span",Cg,m(n.label[0].toUpperCase()+n.label.substring(1)),1),e("span",{class:"inline-block text-white ml-2 cursor-pointer",onClick:P(y=>i.removeFlexFilter(n.attr,n.id),["prevent"])},"x",8,Tg)],2))),128)),(a(!0),r(C,null,R(t.activeFlexFilters.gender,(n,u)=>(a(),r("div",{key:`filter-gender-${u}`,class:g(["text-white rounded-full py-1 px-6 mr-8",["bg-"+l.domain_color]])},[e("span",Og,m(n.label[0].toUpperCase()+n.label.substring(1)),1),e("span",{class:"inline-block text-white ml-2 cursor-pointer",onClick:P(y=>i.removeFlexFilter(n.attr,n.id),["prevent"])},"x",8,Sg)],2))),128)),(a(!0),r(C,null,R(t.activeFlexFilters.singles,(n,u)=>(a(),r("div",{key:`filter-singles-${u}`,class:g(["text-white rounded-full py-1 px-6 mr-8",["bg-"+l.domain_color]])},[e("span",Ig,m(n.label[0].toUpperCase()+n.label.substring(1)),1),e("span",{class:"inline-block text-white ml-2 cursor-pointer",onClick:P(y=>i.removeFlexFilter(n.attr,n.id),["prevent"])},"x",8,Pg)],2))),128))],512),[[q,t.activeFlexFilters.schedule_type.length||t.activeFlexFilters.play_times.length||t.activeFlexFilters.day.length||t.activeFlexFilters.gender.length||t.activeFlexFilters.singles.length]])],64)):f("",!0),l.market.type=="flex"?(a(),r("div",Eg,[!t.flexLeagueOptions.publicFlex.length&&!t.flexLeagueOptions.publicFixed.length&&!t.flexLeagueOptions.privateFlex.length&&!t.flexLeagueOptions.privateFixed.length||!i.isFlexLeagueListVisible("public")&&!i.isFlexLeagueListVisible("private")?(a(),r("div",Mg,Dg)):f("",!0),t.loading?f("",!0):(a(),r("div",jg,[i.isFlexLeagueListVisible("public")&&(t.flexLeagueOptions.publicFlex.length||t.flexLeagueOptions.publicFixed.length)?(a(),r("div",Vg,[e("h2",{class:g(["leading-none font-header text-4xl",["text-"+l.domain_color]])}," PUBLIC",2),Rg,i.isFlexLeagueListVisible("public flex")&&t.flexLeagueOptions.publicFlex.length?(a(),r("div",Ng,[e("h2",{class:g(["leading-none font-header text-xl mb-2",["text-"+l.domain_color]])}," FLEX",2),(a(!0),r(C,null,R(t.flexLeagueOptions.publicFlex,n=>(a(),H(h,{key:`league-listing-${n.id}`,league:n,market:l.market,selectedLeague:t.selectedLeagueId,domain_color:l.domain_color,onChooseLeague:u=>i.chooseLeague(n)},null,8,["league","market","selectedLeague","domain_color","onChooseLeague"]))),128))])):f("",!0),i.isFlexLeagueListVisible("public fixed")&&t.flexLeagueOptions.publicFixed.length?(a(),r("div",Ug,[e("h2",{class:g(["leading-none font-header text-xl mb-2",["text-"+l.domain_color]])}," FIXED",2),(a(!0),r(C,null,R(t.flexLeagueOptions.publicFixed,n=>(a(),H(h,{key:`league-listing-${n.id}`,league:n,market:l.market,selectedLeague:t.selectedLeagueId,domain_color:l.domain_color,onChooseLeague:u=>i.chooseLeague(n)},null,8,["league","market","selectedLeague","domain_color","onChooseLeague"]))),128))])):f("",!0)])):f("",!0),i.isFlexLeagueListVisible("private")&&(t.flexLeagueOptions.privateFlex.length||t.flexLeagueOptions.privateFixed.length)?(a(),r("div",Bg,[e("h2",{class:g(["leading-none font-header text-4xl",["text-"+l.domain_color]])}," PRIVATE",2),Hg,i.isFlexLeagueListVisible("private flex")&&t.flexLeagueOptions.privateFlex.length?(a(),r("div",zg,[e("h2",{class:g(["leading-none font-header text-xl mb-2",["text-"+l.domain_color]])}," FLEX",2),(a(!0),r(C,null,R(t.flexLeagueOptions.privateFlex,n=>(a(),H(h,{key:`league-listing-${n.id}`,league:n,market:l.market,selectedLeague:t.selectedLeagueId,domain_color:l.domain_color,onChooseLeague:u=>i.chooseLeague(n)},null,8,["league","market","selectedLeague","domain_color","onChooseLeague"]))),128))])):f("",!0),i.isFlexLeagueListVisible("private fixed")&&t.flexLeagueOptions.privateFixed.length?(a(),r("div",Wg,[e("h2",{class:g(["leading-none font-header text-xl mb-2",["text-"+l.domain_color]])}," FIXED",2),(a(!0),r(C,null,R(t.flexLeagueOptions.privateFixed,n=>(a(),H(h,{key:`league-listing-${n.id}`,league:n,market:l.market,selectedLeague:t.selectedLeagueId,domain_color:l.domain_color,onChooseLeague:u=>i.chooseLeague(n)},null,8,["league","market","selectedLeague","domain_color","onChooseLeague"]))),128))])):f("",!0)])):f("",!0)]))])):(a(),r("div",Kg,[i.filteredResults.length?f("",!0):(a(),r("div",{key:0,class:g(["border-2 p-8 text-center w-1/2 mx-auto min-w-full",["border-"+l.domain_color]])},Yg,2)),(a(!0),r(C,null,R(i.filteredResults,n=>(a(),r("div",{key:`league-listing-${n.id}`,class:g(["mb-4 p-4 block border border-gray",[{"":!i.isOpen[n.id],"border-2":i.isOpen[n.id]},"border-"+l.domain_color]])},[e("div",{class:g(["flex flex-col md:flex-row items-start",{"mb-5":i.isOpen[n.id]}])},[e("div",Xg,[e("div",Jg,[e("div",{class:g(["flex items-start",{"mb-5":i.isOpen[n.id]}])},[e("div",Zg,[e("div",Qg,[e("div",Gg,m(n.name),1),n.is_registration_open?(a(),r("div",{key:1,class:g(["w-full text-left md:flex",["text-"+l.domain_color]])},[ey,e("div",null,[n.is_late_reg?(a(),r("span",ly,m(i.getEndOfLateReg(n))+" "+m(i.regularTitleEndDate(n).message),1)):(a(),r("span",ty,m(n.buffered_local_reg_end)+" "+m(i.regularTitleEndDate(n).message),1))])],2)):(a(),r("div",{key:0,class:g(["w-full md:flex",["text-"+l.domain_color]])},[qg,e("div",null,[e("span",null,m(n.local_reg_start),1)])],2)),i.isOpen[n.id]?f("",!0):(a(),r("div",{key:2,onClick:P(u=>i.chooseLeague(n),["prevent"]),class:"cursor-pointer text-pickleball-gray my-4 md:mt-2 md:mb-0 text-sm w-full md:w-auto text-center md:text-left",id:"toggle-league-box"},ay,8,sy))])])],2)])]),n.is_registration_open?(a(),r("button",{key:0,class:g(["block text-white px-6 py-3 rounded-full w-full md:w-[160px] flex-shrink-0",["bg-"+l.domain_color]]),onClick:P(u=>i.goToRegistration(n),["prevent"])},[j(e("span",null,dy,512),[[q,t.submittingLeague==n.id]]),j(e("span",null,"Sign Up Now!",512),[[q,t.submittingLeague!=n.id]])],10,ry)):f("",!0)],2),i.isOpen[n.id]?(a(),r("div",uy,[e("div",my,[n.league_detail?(a(),r("div",hy,[fy,L(" "+m(n.league_detail),1)])):f("",!0),n.notes?(a(),r("div",py,[_y,L(" "+m(n.notes),1)])):f("",!0),n.activity?(a(),r("div",gy,[yy,L(" "+m(n.activity.name),1)])):f("",!0),n.home_location?(a(),r("div",by,[xy,L(" "+m(l.market.type==="flex"?"Home team location":n.home_location.name)+" ",1),l.market.type!=="flex"?(a(),r("a",{key:0,href:n.home_location.map_url,class:g(["ml-1",["text-"+l.domain_color]]),target:"_blank"},"map",10,vy)):f("",!0)])):f("",!0),n.bars.length?(a(),r("div",wy,[ky,e("a",{href:o.route("league-bar-league",n),class:"text-red underline"},"View Bars",8,Fy)])):f("",!0),n.days_of_week_v2?(a(),r("div",Ly,[Cy,e("ul",null,[(a(!0),r(C,null,R(n.days_of_week_v2,u=>(a(),r("li",{key:`league-${u.fields.day_of_week}-time`},m(i.days[u.fields.day_of_week])+" "+m(u.fields.start_time)+" - "+m(u.fields.end_time),1))),128))])])):f("",!0),e("div",null,[Ty,n.start_date?(a(),r("span",Sy,m(n.local_start_date),1)):(a(),r("span",Oy,"N/A"))]),e("div",null,[Iy,n.end_date?(a(),r("span",Ey,m(n.local_end_date),1)):(a(),r("span",Py,"N/A"))]),e("div",My,[Ay,e("ul",null,[e("template",null,[(a(!0),r(C,null,R(n.sortedPriceModifiers,u=>(a(),r("li",Dy,[e("div",null,[e("p",{class:g(["inline-block",i.priceModifierClass(u,n)]),style:{"min-width":"90px"}},m(u.name),3),e("p",{class:g(["inline-block",i.priceModifierClass(u,n)]),style:{"min-width":"230px","margin-left":"-4px"}}," (until "+m(u.local_display_end)+"): ",3),e("p",{class:g(["inline-block",i.priceModifierClass(u,n)]),style:{"margin-left":"-4px"}},"$"+m((parseFloat(n.base_registration_fee)+parseFloat(u.price_modifier)).toFixed(2)),3),e("p",{class:g([i.priceModifierClass(u,n),"processing-fee inline-block"]),style:{"margin-left":"-4px"}},"  +$"+m(n.processing_fee)+" Proc. Fee",3)])]))),256)),(a(!0),r(C,null,R(n.sortedPriceModifiers,u=>(a(),r("li",jy,[e("div",null,[e("p",{class:g(["inline-block",i.priceModifierClass(u,n)]),style:{"min-width":"90px"}},m(u.name)+" - $"+m((parseFloat(n.base_registration_fee)+parseFloat(u.price_modifier)).toFixed(2)),3),Vy,e("p",{class:g(["inline-block",i.priceModifierClass(u,n)]),style:{"min-width":"230px","margin-left":"-4px"}}," (until "+m(u.local_display_end)+") ",3)])]))),256))])])]),e("div",Ry,[n.is_registration_open?(a(),r("button",{key:0,class:g(["block text-white px-6 py-3 rounded-full w-full md:w-auto md:hidden",["bg-"+l.domain_color]]),onClick:P(u=>i.goToRegistration(n),["prevent"])},[j(e("span",null,By,512),[[q,t.submittingLeague==n.id]]),j(e("span",null,"Sign Up Now!",512),[[q,t.submittingLeague!=n.id]])],10,Ny)):f("",!0),e("div",{onClick:P(u=>i.chooseLeague(n),["prevent"]),class:"cursor-pointer text-pickleball-gray my-4 md:mt-2 md:mb-0 text-sm w-full md:w-auto text-center md:text-left",id:"toggle-league-box"},$y,8,Hy)])])])):f("",!0)],2))),128))]))])])):(a(),r("div",v_,[e("div",w_,[k_,F_,e("div",null,[j(e("input",{"onUpdate:modelValue":s[2]||(s[2]=n=>t.inviteCode=n),class:"input w-full md:w-auto mb-4 md:mb-0 inline",type:"",name:"",placeholder:"Enter Team Invite Code"},null,512),[[W,t.inviteCode]]),e("button",{onClick:s[3]||(s[3]=P(n=>i.checkInviteCode(),["prevent"])),disabled:t.inviteCode.length===0,class:g(["disabled:cursor-not-allowed w-full md:w-auto inline-block text-white px-6 py-2 rounded-full mb-2",["bg-"+l.domain_color]])},[t.checkingInvite?(a(),r("span",C_,O_)):(a(),r("span",S_,"Go"))],10,L_)]),t.inviteError?(a(),r("div",I_,m(t.inviteError),1)):f("",!0),P_]),e("button",{onClick:s[4]||(s[4]=P(n=>t.showLeagues=!0,["prevent"])),class:g(["inline-block text-white px-6 py-2 rounded-full mb-2 mt-4",["bg-"+l.domain_color]])}," I Want to Sign Up as a Captain or Free Agent ",2)]))],2),w(_,{ref:"leagueAccessCodeModal",domain_color:l.domain_color,league:t.privateLeague,onCode:i.goToPrivateRegistration},null,8,["domain_color","league","onCode"])]),_:1},8,["fixedHeight","height"])}const Xy=Y(f_,[["render",Yy]]),Jy={components:{GCHLayout:Te,GKBLayout:ae,JPBLayout:Oe,GameSchedule:ym,LocationNoteModal:h_,MarketSignUpModal:Xy,UpcomingLeagues:r_,LeagueAccessCodeModal:pe},props:{domain_color:String,market:Object,signUp:Boolean},data(){return{currentLeagues:[],form:{zipcode:""},loadingLeagues:!0,processing:!1,selectedLocation:null,showAllLocations:!0,upcomingLeagueOptions:[],privateLeague:null,privateTeam:null,allLeagues:0,first_name:"Meade",last_name:"Slocomb",onlyCurrentLeaguesLoading:!1}},mounted(){this.fetchLeagues(),this.emitter.on("allLeaguesToggle",o=>{this.allLeaguesToggle(o)})},computed:{layoutComponent(){return this.$page.props.layout_name},user(){return Z(this.$page.props,"auth.user",null)},events(){return Z(this.market,"events",[])},sponsors(){return Z(this.market,"sponsors",[]).sort((l,d)=>l.display_order-d.display_order)},activeLeagueId(){let o="";return this.domain_color=="red"?o=this.upcomingLeagueOptions.find(s=>s.activity.name!="Cornhole"):this.domain_color=="cornhole-orange"&&(o=this.upcomingLeagueOptions.find(s=>s.activity.name=="Cornhole")),o?o.id:this.upcomingLeagueOptions[0].id||null},locations(){return Z(this.market,"locations",[]).filter((s,l)=>{let d=this.showAllLocations?!0:l<=2;return d&&(d=s.active),d})},selectedLocationNote(){if(this.selectedLocation){let o=this.locations.find(l=>l.id==this.selectedLocation).notes,s=o.indexOf(" (Last updated");return s!=-1?o.substring(0,s):o}else return null},selectedLocationDate(){if(this.selectedLocation){let o=this.locations.find(s=>s.id==this.selectedLocation);return o?o.last_update_formatted_month_date+", "+o.last_update_formatted_year+" @ "+o.last_update_formatted_time:null}else return null},activities(){return Z(this.$page.props,"activities_list",[])}},methods:{openLeagueAccessCodeModal(o,s){this.privateLeague=o,this.privateTeam=s,this.$refs.marketLeagueAccessCodeModal.openModal()},goToPrivateRegistration(){this.submittingLeague=this.privateLeague.id,ee.post(route("registration.initiate.process",{invite_code:this.privateTeam.invite_code,league_id:this.privateLeague.id,team_id:this.privateTeam.id}))},fetchLeagues(){axios.get("/markets/"+this.market.slug+"/leagues?allLeagues="+this.allLeagues).then(async o=>{this.currentLeagues=o.data.currentLeagues,this.upcomingLeagueOptions=o.data.leagueOptions,this.loadingLeagues=!1,this.onlyCurrentLeaguesLoading=!1,await Be(()=>{this.signUp&&this.openSignUpModal()}),this.currentLeagues?this.emitter.emit("market-active",this.activeLeagueId):this.emitter.emit("market-active",!1)}).catch(o=>{})},visitPage(o){ee.visit(route(o))},pluralName(o){return o.charAt(o.length-1)=="s"?o.concat("'"):o.concat("'s")},chooseLocation(o){this.selectedLocation=o.id,this.$refs.selectedNoteModal.openModal()},searchByZipcode(){this.loadingLeagues||(this.processing=!0,this.upcomingLeagueOptions.length>0?ee.visit(route("register-now",this.activeLeagueId)+"?market_type="+this.market.type+"&disabled_preselect_league=1"):(this.form.zipcode=this.market.zipcode_id,ee.visit(route("city-finder"))))},openSignUpModal(){this.$refs.signUpModal.openModal()},allLeaguesToggle(o){this.allLeagues=o?1:0,this.loadingLeagues=!0,this.onlyCurrentLeaguesLoading=!0,this.fetchLeagues()}}},Zy={key:0,class:"bg-pickleball-gray flex flex-col md:flex-row justify-center items-center mt-2 py-2 pt-4 text-white font-medium text-xs md:text-base px-4 lg:px-0 text-center md:text-left"},Qy={key:1,class:"bg-gray flex flex-col md:flex-row justify-center items-center mt-2 py-2 pt-4 text-white font-medium text-xs md:text-base px-4 lg:px-0 text-center"},Gy=["href"],qy={key:2,class:"carousel relative shadow-2xl bg-white","data-mdb-ride":"carousel"},eb={class:"carousel-inner relative overflow-hidden w-full"},tb=e("input",{class:"carousel-open",type:"radio",id:"carousel-1",name:"carousel","aria-hidden":"true",hidden:"",checked:"checked"},null,-1),lb={id:"slide-1",class:"carousel-item absolute flex opacity-0"},sb={class:"block h-full w-full bg-black bg-center bg-cover text-white text-center",style:{"background-image":"url(https://kickball-assets.s3.amazonaws.com/gkb_slider_1.jpg)"}},ib={class:"container max-w-4xl mx-auto h-full pt-10 md:pt-24"},ob={class:"leading-none font-header text-5xl md:text-6xl text-white text-center mb-5"},nb={class:"text-lg leading-tight text-white text-center"},ab=e("p",{class:"text-lg"},"What are you waiting for? Get started today!",-1),rb={class:"block md:flex justify-center mb-20 mb-20"},cb={class:"w-full md:w-1/2 px-4 mt-8"},db={key:0},ub=e("svg",{class:"h-6 w-6 animate-spin inline",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1),mb=[ub],hb={key:1},fb={key:0,class:"w-full md:w-1/2 px-4 mt-4 md:mt-8"},pb=e("label",{for:"carousel-4",class:"prev control-1 w-10 h-10 ml-2 md:ml-10 absolute cursor-pointer hidden text-3xl font-bold text-white hover:text-white rounded-full hover:bg-blue-700 leading-tight text-center z-10 inset-y-0 left-0 my-auto"},"‹",-1),_b=e("label",{for:"carousel-2",class:"next control-1 w-10 h-10 mr-2 md:mr-10 absolute cursor-pointer hidden text-3xl font-bold text-white hover:text-white rounded-full hover:bg-blue-700 leading-tight text-center z-10 inset-y-0 right-0 my-auto"},"›",-1),gb=e("input",{class:"carousel-open",type:"radio",id:"carousel-2",name:"carousel","aria-hidden":"true",hidden:""},null,-1),yb={id:"slide-2",class:"carousel-item absolute flex opacity-0"},bb={class:"block h-full w-full bg-black bg-center bg-cover text-white text-center",style:{"background-image":"url(https://kickball-assets.s3.amazonaws.com/gkb_slider_15.jpg)"}},xb={class:"container max-w-4xl mx-auto h-full pt-10 md:pt-24"},vb=e("h2",{class:"leading-none font-header text-5xl md:text-6xl text-white text-center mb-5"}," Meet New People",-1),wb=e("p",{class:"text-lg leading-tight text-white text-center"},"“I was a transplant and wanted to meet new people. I heard that GO Kickball was the thing to do! I joined, and I am in my fifth season and have made life long friendships!”",-1),kb=e("p",{class:"text-lg"},"– Ali",-1),Fb={class:"block md:flex justify-center mb-20 mb-20"},Lb={class:"w-full md:w-1/2 px-4 mt-8"},Cb={key:0,class:"w-full md:w-1/2 px-4 mt-4 md:mt-8"},Tb=e("label",{for:"carousel-1",class:"prev control-2 w-10 h-10 ml-2 md:ml-10 absolute cursor-pointer hidden text-3xl font-bold text-white hover:text-white rounded-full hover:bg-blue-700 leading-tight text-center z-10 inset-y-0 left-0 my-auto"},"‹",-1),Ob=e("label",{for:"carousel-3",class:"next control-2 w-10 h-10 mr-2 md:mr-10 absolute cursor-pointer hidden text-3xl font-bold text-white hover:text-white rounded-full hover:bg-blue-700 leading-tight text-center z-10 inset-y-0 right-0 my-auto"},"›",-1),Sb=e("input",{class:"carousel-open",type:"radio",id:"carousel-3",name:"carousel","aria-hidden":"true",hidden:""},null,-1),Ib={id:"slide-3",class:"carousel-item absolute flex opacity-0"},Pb={class:"block h-full w-full bg-black bg-center bg-cover text-white text-center",style:{"background-image":"url(https://kickball-assets.s3.amazonaws.com/gkb_slider_10.jpg)"}},Eb={class:"container max-w-4xl mx-auto h-full pt-10 md:pt-24"},Mb=e("h2",{class:"leading-none font-header text-5xl md:text-6xl text-white text-center mb-5"}," Join the Movement",-1),Ab=e("p",{class:"text-lg leading-tight text-white text-center"},"GO! has been America's Premier Social Experience for the past 14 years, and things are only getting better. Join the thousands who have made lifelong friendships and who continue to choose an active and social lifestyle with GO Sports and Social.",-1),Db={class:"block md:flex justify-center mb-20"},jb={class:"w-full md:w-1/2 px-4 mt-8"},Vb={key:0,class:"w-full md:w-1/2 px-4 mt-4 md:mt-8"},Rb=e("label",{for:"carousel-2",class:"prev control-3 w-10 h-10 ml-2 md:ml-10 absolute cursor-pointer hidden text-3xl font-bold text-white hover:text-white rounded-full hover:bg-blue-700 leading-tight text-center z-10 inset-y-0 left-0 my-auto"},"‹",-1),Nb=e("label",{for:"carousel-4",class:"next control-3 w-10 h-10 mr-2 md:mr-10 absolute cursor-pointer hidden text-3xl font-bold text-white hover:text-white rounded-full hover:bg-blue-700 leading-tight text-center z-10 inset-y-0 right-0 my-auto"},"›",-1),Ub=e("input",{class:"carousel-open",type:"radio",id:"carousel-4",name:"carousel","aria-hidden":"true",hidden:""},null,-1),Bb={id:"slide-4",class:"carousel-item absolute flex opacity-0"},Hb={class:"block h-full w-full bg-black bg-center bg-cover text-white text-center",style:{"background-image":"url(https://kickball-assets.s3.amazonaws.com/gkb_slider_2.jpg)"}},zb={class:"container max-w-4xl mx-auto h-full pt-10 md:pt-24"},Wb={class:"leading-none font-header text-5xl md:text-6xl text-white text-center mb-5"},Kb=e("p",{class:"text-lg leading-tight text-white text-center mb-5"},"“My wife and I met playing GO Kickball! While I started playing more for the competition and to be active, the best part was meeting the right girl!”",-1),$b=e("p",{class:"text-lg"},"– Kane & Ashley M.",-1),Yb={class:"block md:flex justify-center mb-20"},Xb={class:"w-full md:w-1/2 px-4 mt-4 md:mt-8"},Jb={key:0,class:"w-full md:w-1/2 px-4 mt-4 md:mt-8"},Zb=e("label",{for:"carousel-3",class:"prev control-4 w-10 h-10 ml-2 md:ml-10 absolute cursor-pointer hidden text-3xl font-bold text-white hover:text-white rounded-full hover:bg-blue-700 leading-tight text-center z-10 inset-y-0 left-0 my-auto"},"‹",-1),Qb=e("label",{for:"carousel-1",class:"next control-4 w-10 h-10 mr-2 md:mr-10 absolute cursor-pointer hidden text-3xl font-bold text-white hover:text-white rounded-full hover:bg-blue-700 leading-tight text-center z-10 inset-y-0 right-0 my-auto"},"›",-1),Gb={key:3,class:"w-full bg-gray h-auto z-0 pb-24 -mt-16 md:mt-0"},qb={key:0,class:"w-full container pb-10 mx-auto flex flex-wrap"},ex={class:"w-full lg:w-1/4 pt-32"},tx={class:"rounded-full overflow-hidden"},lx=["src"],sx={class:"w-full lg:w-3/4 lg:pl-12 lg:pr-24 pb-32"},ix=e("p",{class:"mb-6 text-white"},"If you are already part of a GO! Team this season, then you're in the right spot to check for local weather and park closures. Make sure you're logged in to see your team's standings and schedule.",-1),ox=e("p",{class:"mb-6 text-white"},"If you're signing up for next season, you can do it as a full team, small group or solo and we'll place you with a team through our free agent matching technology. We hope to see you on the fields soon!",-1),nx={id:"status-table",class:"block w-full max-w-full overflow-x-scroll overflow-y-visible md:overflow-visible border-black"},ax=e("thead",{class:"bg-black text-white font-semibold text-center"},[e("th",{class:"text-left px-4"},"Location"),e("th",{class:"px-4"},"Game Status"),e("th",{class:"px-4"},"Weather"),e("th",{class:"px-4"},"Temperature")],-1),rx={class:"bg-white text-black font-semibold text-center"},cx={class:"text-left px-4 text-sm"},dx=["href"],ux={class:"px-4"},mx={key:0,class:"relative group"},hx=e("img",{src:"https://kickball-assets.s3.amazonaws.com/no2.png"},null,-1),fx={class:"hidden group-hover:block absolute bg-black/90 -top-11 px-2 py-1 text-xs rounded-md w-36 ml-[-4.5rem] left-1/2 text-white font-light shadow-sm"},px={key:1,class:"relative group"},_x=e("img",{src:"https://kickball-assets.s3.amazonaws.com/yes2.png"},null,-1),gx={class:"hidden group-hover:block absolute bg-black/90 -top-11 px-2 py-1 text-xs rounded-md w-36 ml-[-4.5rem] left-1/2 text-white font-light shadow-sm"},yx=["onClick"],bx={class:"px-4"},xx={key:0,src:"https://kickball-assets.s3.amazonaws.com/storm2.png"},vx={key:1,src:"https://kickball-assets.s3.amazonaws.com/sun2.png"},wx=e("div",{class:"w-full gray-divider-bottom"},null,-1),kx=e("div",{id:"current-leagues",style:{"scroll-margin-top":"100px"}},null,-1),Fx={key:4},Lx={key:1},Cx=e("div",{class:"m-auto py-12"},[e("h2",{class:"leading-none font-header text-center text-6xl mb-10 text-pickleball-green"},"MY CURRENT LEAGUES"),e("div",{class:"text-center"},[e("span",{class:"text-lg mx-auto mb-10"}," Loading Leagues... ")])],-1),Tx=[Cx],Ox={key:5},Sx={key:1},Ix={class:"m-auto mb-10"},Px=e("div",{class:"text-center"},[e("span",{class:"text-lg mx-auto mb-10"}," Loading Leagues... ")],-1),Ex={key:7},Mx=e("div",{class:"text-center"},[e("span",{class:"text-lg mx-auto mb-10"}," Loading Leagues... ")],-1),Ax={key:8,id:"social",class:"mb-8"},Dx={key:9,class:"w-full bg-gray"},jx={class:"container mx-auto pt-10 py-16"},Vx=e("h2",{class:"leading-none font-header text-6xl text-black text-center mb-6"},"Follow Us on Social Media",-1),Rx={class:"justify-center flex mb-10"},Nx=["href"],Ux=["src","alt"],Bx={class:"container mx-auto text-center text-white"},Hx=e("h2",{class:"leading-none font-header text-6xl mb-6"},"Outings & Events",-1),zx={key:0,class:"w-full max-w-4xl mx-auto flex flex-wrap justify-center items-center"},Wx=["href"],Kx=["src","alt"],$x={class:"text-bold text-white uppercase"},Yx={class:"w-full lg:w-1/3"},Xx={class:"rounded-full overflow-hidden"},Jx={key:0,class:"w-full mb-5 lg:mb-0",src:"https://kickball-assets.s3.amazonaws.com/61559446_10156774669007529_5234746736395681792_o_circle_750px.jpg"},Zx={key:1,class:"w-full lg:-ml-4 mb-5 lg:mb-0",src:"https://kickball-assets.s3.amazonaws.com/circle_cornhole_images_1.jpeg"},Qx={key:0,class:"w-full lg:w-2/3 lg:pl-12 lg:pr-24"},Gx=e("h2",{class:"leading-none text-black font-header text-5xl lg:text-6xl mb-4"},[L(" What is "),e("span",{class:"text-cornhole-orange"},"GO Cornhole?")],-1),qx=e("h6",{class:"text-cornhole-orange text-xl font-semibold"},"Co-ed Adult Social Sports",-1),ev=e("p",{class:"mb-3 font-light"}," GO Cornhole provides co-ed adult (21+) Cornhole leagues where you test your Cornhole skills against players of your same level with our seasonal leagues played year-round! It's a fun and active way to play Cornhole, hang with your friends, meet new people, enjoy a cold beverage and some friendly competition, and Live Life Fun! ",-1),tv=e("p",{class:"font-light"},"GO Cornhole provides leagues and tournaments nationally across many cities – find a league in your City (above). If we are not in your City yet, click “Start a League” to learn how to bring GO Cornhole leagues to your area.",-1),lv={class:"flex flex-wrap w-full mt-10"},sv={class:"w-full lg:w-1/3 lg:pr-2 mb-4"},iv=e("h6",{class:"text-cornhole-orange text-lg font-semibold"},"The Active Life",-1),ov={class:"mb-3 font-light"},nv={key:0},av={key:1},rv=e("p",{class:"mb-3 font-light"},"Have fun while active",-1),cv=e("p",{class:"mb-3 font-light"},"Beginner, Intermediate & Advanced levels",-1),dv=e("div",{class:"w-full lg:w-1/3 lg:px-1 mb-4"},[e("h6",{class:"text-cornhole-orange text-lg font-semibold"},"The Social Life"),e("p",{class:"mb-3 font-light"},"Hang with friends + Meet new people"),e("p",{class:"mb-3 font-light"},"Relaxed, hip, connected"),e("p",{class:"mb-3 font-light"},"It's where your friends are")],-1),uv=e("div",{class:"w-full lg:w-1/3 lg:pl-2 mb-4"},[e("h6",{class:"text-cornhole-orange text-lg font-semibold"},"Live Life Fun"),e("p",{class:"mb-3 font-light"},"Eat, drink, play"),e("p",{class:"mb-3 font-light"},"Learn, laugh, love"),e("p",{class:"mb-3 font-light"},"Experience happiness")],-1),mv={key:1,class:"w-full lg:w-2/3 lg:pl-12 lg:pr-24"},hv={class:"leading-none text-black font-header text-5xl lg:text-6xl mb-4"},fv=e("p",{class:"mb-3 font-light"},"GO Kickball combines the relaxed sport of kickball with social networking to create a fun and active way for adults to network, meet new people, enjoy friends, and play kickball in a comfortable, non-intimidating, social atmosphere. Leave your stresses, worries, and anxieties behind, at least for a lil while, and enjoy life with friends. Whether you have not played since 4th grade or are a seasoned veteran, this experience is for you. Beginners, experts and everyone in-between are more than welcome to join – our only requirement is that you are at least 21 years of age and are wanting to have a fun time!",-1),pv=e("p",{class:"font-light"},"GO Kickball provides a high-quality, award-winning experience. The active life, the social life, the purpose-driven life — it's all included to ultimately LiveLifeFun and create America's Premier Social Experience®. Come join us!",-1),_v={class:"flex flex-wrap w-full mt-10"},gv={class:"w-full lg:w-1/3 lg:pr-2 mb-4"},yv=e("p",{class:"mb-3 font-light"},"Co-ed adult kickball",-1),bv=e("p",{class:"mb-3 font-light"},"Have fun while exercising",-1),xv=e("p",{class:"mb-3 font-light"},"Competitive + Non-competitive",-1),vv={class:"w-full lg:w-1/3 lg:px-1 mb-4"},wv=e("p",{class:"mb-3 font-light"},"Hang with friends + Meet new people",-1),kv=e("p",{class:"mb-3 font-light"},"Relaxed, hip, connected",-1),Fv=e("p",{class:"mb-3 font-light"},"It's where your friends are",-1),Lv={class:"w-full lg:w-1/3 lg:pl-2 mb-4"},Cv=e("p",{class:"mb-3 font-light"},"Cause-driven",-1),Tv=e("p",{class:"mb-3 font-light"},"Lifting up others",-1),Ov=e("p",{class:"mb-3 font-light"},"Others lifting you up",-1),Sv={key:14,id:"sports",class:"w-full blue-divider-top"},Iv={key:15,class:"w-full bg-blue py-10"},Pv=e("div",{class:"container mx-auto text-center"},[e("h2",{class:"leading-none font-header text-6xl text-white mb-6"},"Co-Ed Adult Sports and Social Leagues"),e("p",{class:"text-lg"},"In some Cities, in additional to Kickball we also have a full suite of sports leagues that we offer through our sister company – GO Sports Unlimited. Ready to play? Check them out below!"),e("iframe",{class:"mx-auto my-10 max-w-full",width:"560",height:"315",src:"https://www.youtube.com/embed/m0g2WBMkG8U",frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}),e("div",{id:"type-icons",class:"w-full flex flex-wrap mx-auto max-w-5xl"},[e("div",{class:"w-full md:w-1/4 px-4 mb-8"},[e("img",{class:"mb-4 block",src:"https://kickball-assets.s3.amazonaws.com/kickball_thin_252.gif"}),e("p",{class:"text-bold text-white uppercase"},"Dodgeball")]),e("div",{class:"w-full md:w-1/4 px-4 mb-8"},[e("img",{class:"mb-4 block",src:"https://kickball-assets.s3.amazonaws.com/football_thin_252.gif"}),e("p",{class:"text-bold text-white uppercase"},"Flag Football")]),e("div",{class:"w-full md:w-1/4 px-4 mb-8"},[e("img",{class:"mb-4 block",src:"https://kickball-assets.s3.amazonaws.com/go_kickball_player_bigger.gif"}),e("p",{class:"text-bold text-white uppercase"},"Kickball")]),e("div",{class:"w-full md:w-1/4 px-4 mb-8"},[e("img",{class:"mb-4 block",src:"https://kickball-assets.s3.amazonaws.com/soccer_thin_252.gif"}),e("p",{class:"text-bold text-white uppercase"},"Soccer (Rec)")]),e("div",{class:"w-full md:w-1/4 px-4 mb-8"},[e("img",{class:"mb-4 block",src:"https://kickball-assets.s3.amazonaws.com/softball_thin_252.gif"}),e("p",{class:"text-bold text-white uppercase"},"Softball")]),e("div",{class:"w-full md:w-1/4 px-4 mb-8"},[e("img",{class:"mb-4 block",src:"https://kickball-assets.s3.amazonaws.com/volleyball_thin_252.gif"}),e("p",{class:"text-bold text-white uppercase"},"Volleyball (Indoor)")]),e("div",{class:"w-full md:w-1/4 px-4 mb-8"},[e("img",{class:"mb-4 block",src:"https://kickball-assets.s3.amazonaws.com/volleyball_thin_252.gif"}),e("p",{class:"text-bold text-white uppercase"},"Volleyball (Sand)")]),e("div",{class:"w-full md:w-1/4 px-4 mb-8"},[e("img",{class:"mb-4 block",src:"https://kickball-assets.s3.amazonaws.com/frisbee_thin_252.gif"}),e("p",{class:"text-bold text-white uppercase"},"Ultimate Frisbee")])])],-1),Ev=[Pv],Mv={key:16,id:"purpose",class:"w-full blue-divider-bottom -mb-24"},Av={key:17,class:"w-full bg-gray pt-32 pb-10"},Dv={class:"container mx-auto"},jv=e("h2",{class:"leading-none font-header text-6xl text-center text-gray-900 mb-6"},"Play with a Purpose",-1),Vv={class:"w-full flex flex-wrap"},Rv={class:"w-full lg:w-1/2 lg:pr-2 mb-6 text-center"},Nv={class:"w-full h-6 bg-white rounded-full"},Uv=e("div",{class:"w-full lg:w-1/2 lg:pl-2 mb-6 text-center"},[e("h5",{class:"text-blue font-bold text-3xl"},"$3M (Goal by 2026)"),e("div",{class:"w-full h-6 bg-gray-400 rounded-full"},[e("div",{class:"w-full h-full bg-blue rounded-full"})])],-1),Bv=e("p",{class:"font-light mb-6"},"At GO Kickball, we believe life is better done together with others. Whether giving back through our time, our efforts, and/or our money, we are purpose-driven to lift others up. Everyone goes through challenges in life and having your community to lift you up through it is part of the GO Kickball experience. We choose to Live Life Fun together — being active, being social, being purpose-driven. It's the biggest “win” of all!",-1),Hv=e("p",{class:"font-light mb-6"},"GO Kickball is intentional each year to serve our players and those in need. Here are some of the many causes we have served through our time, efforts, and fundraising across our communities to lift people up:",-1),zv=e("img",{class:"w-full mb-12",src:"https://kickball-assets.s3.amazonaws.com/logo_matrix.jpg"},null,-1),Wv={class:"container mx-auto text-center text-white"},Kv=e("h2",{class:"font-header text-6xl mb-6"},"Shopping & Rewards",-1),$v={class:"w-full max-w-5xl mx-auto flex flex-wrap"},Yv=e("div",{class:"w-full md:w-1/4 px-4 text-center mb-12 md:mb-6"},[e("div",{class:"w-full mb-4 rounded-lg overflow-hidden h-32"},[e("img",{src:"https://kickball-assets.s3.amazonaws.com/banner_giftcard.jpg"})]),e("p",{class:"text-bold text-white uppercase -mt-12 text-shadow-md text-lg"},"Buy Gift Cards")],-1),Xv=e("div",{class:"w-full md:w-1/4 px-4 text-center mb-12 md:mb-6"},[e("div",{class:"w-full mb-4 rounded-lg overflow-hidden h-32"},[e("img",{src:"https://kickball-assets.s3.amazonaws.com/banner_balls.jpg"})]),e("p",{class:"text-bold text-white uppercase -mt-12 text-shadow-md text-lg"},"Buy Kickballs")],-1),Jv={class:"w-full md:w-1/4 px-4 text-center mb-12 md:mb-6"},Zv={class:"w-full mb-4 rounded-lg overflow-hidden h-32 cursor-pointer"},Qv=e("p",{class:"text-bold text-white uppercase -mt-12 text-shadow-md text-lg"},"T-Shirt Style Options",-1),Gv={class:"w-full md:w-1/4 px-4 text-center mb-12 md:mb-6"},qv={class:"w-full mb-4 rounded-lg overflow-hidden h-32 cursor-pointer"},e2=e("p",{class:"text-bold text-white uppercase -mt-12 text-shadow-md text-lg"},"Referral Reward",-1),t2={key:21,class:"w-full bg-white"},l2={class:"container mx-auto py-10"},s2=e("h2",{class:"leading-none font-header text-6xl text-center text-gray-900 mb-6"},"Partners & Sponsors",-1),i2={class:"w-full flex flex-wrap mx-auto justify-center"},o2=["href"],n2=["src"];function a2(o,s,l,d,t,i){const c=V("game-schedule"),h=V("upcoming-leagues"),_=V("location-note-modal"),x=V("market-sign-up-modal"),n=V("league-access-code-modal");return a(),H(He(i.layoutComponent),{loadingLeagues:t.loadingLeagues,onOpenMarketSignUp:s[7]||(s[7]=u=>i.openSignUpModal())},{default:A(()=>[e("div",null,[l.market.type=="standard"&&l.domain_color=="red"?(a(),r("div",Zy,[L(" Now Hiring Part-time Field Team Members | Fun Games. Good Pay. Flexible Shifts "),e("a",{href:"/become-a-ref",class:g([["bg-"+l.domain_color],"rounded-full px-3 py-1 mt-2 md:mt-0 md:px-6 md:py-2 ml-4"])},"Learn More",2)])):f("",!0),l.market.type=="standard"&&l.domain_color=="cornhole-orange"?(a(),r("div",Qy,[L(" Don’t see your city listed above? Bring GO Cornhole to your city by starting a league! "),e("a",{href:o.route("cornhole.start-a-league"),class:"bg-white rounded-full text-cornhole-orange hover:bg-cornhole-orange hover:text-white px-3 py-1 mt-2 md:mt-0 md:px-6 md:py-2 ml-4"},"Learn More",8,Gy)])):f("",!0),l.market.type=="standard"?(a(),r("div",qy,[e("div",eb,[tb,e("div",lb,[e("div",sb,[e("div",ib,[e("h2",ob,m(i.pluralName(l.market.name))+" Premier Social Experience",1),e("p",nb,"GO! brings a fun, coed, social experience to "+m(l.market.name)+". It gives you a great way to meet new people, enjoy friends and play in a comfortable, non-intimidating, social atmosphere.",1),ab,e("div",rb,[e("div",cb,[e("a",{id:"signup-1",href:"#",onClick:s[0]||(s[0]=P(u=>i.openSignUpModal(),["prevent"])),class:g(["block text-white px-6 py-3 rounded-full",["bg-"+l.domain_color]])},[t.loadingLeagues?(a(),r("span",db,mb)):(a(),r("span",hb,"Sign Up"))],2)]),l.domain_color=="red"?(a(),r("div",fb,[e("a",{id:"video-1",href:"https://www.youtube.com/watch?v=XJ-x13oUYDU",class:g(["block text-white px-6 py-3 rounded-full",["bg-"+l.domain_color]])},"Watch Our Video",2)])):f("",!0)])])])]),pb,_b,gb,e("div",yb,[e("div",bb,[e("div",xb,[vb,wb,kb,e("div",Fb,[e("div",Lb,[e("a",{id:"signup-2",href:"#",onClick:s[1]||(s[1]=P(u=>i.searchByZipcode(),["prevent"])),class:g(["block text-white px-6 py-3 rounded-full",["bg-"+l.domain_color]])},"Sign Up",2)]),l.domain_color=="red"?(a(),r("div",Cb,[e("a",{id:"video-2",href:"https://www.youtube.com/watch?v=XJ-x13oUYDU",class:g(["block text-white px-6 py-3 rounded-full",["bg-"+l.domain_color]])},"Watch Our Video",2)])):f("",!0)])])])]),Tb,Ob,Sb,e("div",Ib,[e("div",Pb,[e("div",Eb,[Mb,Ab,e("div",Db,[e("div",jb,[e("a",{id:"signup-3",href:"#",onClick:s[2]||(s[2]=P(u=>i.searchByZipcode(),["prevent"])),class:g(["block text-white px-6 py-3 rounded-full",["bg-"+l.domain_color]])},"Sign Up",2)]),l.domain_color=="red"?(a(),r("div",Vb,[e("a",{id:"video-3",href:"https://www.youtube.com/watch?v=XJ-x13oUYDU",class:g(["block text-white px-6 py-3 rounded-full",["bg-"+l.domain_color]])},"Watch Our Video",2)])):f("",!0)])])])]),Rb,Nb,Ub,e("div",Bb,[e("div",Hb,[e("div",zb,[e("h2",Wb,m(l.market.name)+"'s Premier Social Experience",1),Kb,$b,e("div",Yb,[e("div",Xb,[e("a",{id:"signup-4",href:"#",onClick:s[3]||(s[3]=P(u=>i.searchByZipcode(),["prevent"])),class:g(["block text-white px-6 py-3 rounded-full",["bg-"+l.domain_color]])},"Sign Up",2)]),l.domain_color=="red"?(a(),r("div",Jb,[e("a",{id:"video-4",href:"https://www.youtube.com/watch?v=XJ-x13oUYDU",class:g(["block text-white px-6 py-3 rounded-full",["bg-"+l.domain_color]])},"Watch Our Video",2)])):f("",!0)])])])]),Zb,Qb])])):f("",!0),l.market.type=="standard"?(a(),r("div",Gb,[i.locations.length&&l.market.type=="standard"?(a(),r("div",qb,[e("div",ex,[e("div",tx,[e("img",{class:"w-full md:mb-5 lg:mb-0",src:l.domain_color=="cornhole-orange"?"https://kickball-assets.s3.amazonaws.com/circle_cornhole_images_square2.jpeg":"https://kickball-assets.s3.amazonaws.com/16_circle_750px.jpg"},null,8,lx)])]),e("div",sx,[e("h2",{id:"happening",class:g(["leading-none font-header text-5xl lg:text-6xl mb-4 pt-10 md:pt-32",["text-"+l.domain_color]])},"Location Status",2),ix,ox,e("table",nx,[ax,e("tbody",rx,[(a(!0),r(C,null,R(i.locations,u=>(a(),r(C,null,[u.weather_updated_at?(a(),r("tr",{key:`location-${u.id}`},[e("td",cx,[L(m(u.name)+" ",1),e("a",{href:u.map_url,class:g(["underline",["text-"+l.domain_color]]),target:"_blank"},"map",10,dx)]),e("td",ux,[u.status=="Closed"?(a(),r("div",mx,[hx,e("div",fx," Last updated "+m(u.last_update_formatted_month_date)+" at "+m(u.last_update_formatted_time),1)])):(a(),r("div",px,[_x,e("div",gx," Last updated "+m(u.last_update_formatted_month_date)+" at "+m(u.last_update_formatted_time),1)])),u.notes?(a(),r("button",{key:2,class:g(["inline-block text-xs mx-1 px-2 md:px-8 my-auto rounded-full cursor-pointer border text-white",["bg-"+l.domain_color]]),onClick:P(y=>i.chooseLocation(u),["prevent"])},"Notes ",10,yx)):f("",!0)]),e("td",bx,[u.is_raining?(a(),r("img",xx)):(a(),r("img",vx))]),e("td",{class:g(["text-2xl px-4",["text-"+l.domain_color]])},m(u.current_temp)+"° ",3)])):f("",!0)],64))),256))])])])])):f("",!0)])):f("",!0),wx,kx,l.domain_color=="pickleball-green"?(a(),r("div",Fx,[t.loadingLeagues?f("",!0):(a(),H(c,{key:0,currentLeagues:t.currentLeagues,showAllLeagues:t.allLeagues,user:i.user,market:l.market,domain_color:l.domain_color},null,8,["currentLeagues","showAllLeagues","user","market","domain_color"])),t.loadingLeagues?(a(),r("div",Lx,Tx)):f("",!0)])):(a(),r("div",Ox,[!t.loadingLeagues&&l.market.type=="standard"?(a(),H(c,{key:0,currentLeagues:t.currentLeagues,showAllLeagues:t.allLeagues,user:i.user,market:l.market,domain_color:l.domain_color},null,8,["currentLeagues","showAllLeagues","user","market","domain_color"])):f("",!0),t.loadingLeagues&&l.market.type=="standard"?(a(),r("div",Sx,[e("div",Ix,[e("h2",{class:g(["leading-none font-header text-center text-6xl mb-10",["text-"+l.domain_color]])},"MY CURRENT LEAGUES",2),Px])])):f("",!0)])),!t.loadingLeagues||t.onlyCurrentLeaguesLoading?(a(),H(h,{key:6,domain_color:l.domain_color,market:l.market,upcomingLeagueOptions:t.upcomingLeagueOptions},null,8,["domain_color","market","upcomingLeagueOptions"])):f("",!0),t.loadingLeagues&&!t.onlyCurrentLeaguesLoading?(a(),r("div",Ex,[e("div",{class:g(["m-auto mb-10",{"mt-10":l.market.type=="flex"}])},[e("h2",{class:g(["leading-none font-header text-center text-6xl mb-10",["text-"+l.domain_color]])}," Upcoming Leagues",2),Mx],2)])):f("",!0),l.market.type=="standard"?(a(),r("div",Ax," ")):f("",!0),l.market.type=="standard"?j((a(),r("div",Dx,[e("div",jx,[Vx,e("div",Rx,[(a(!0),r(C,null,R(l.market.social_media,u=>(a(),r("a",{class:g(["mx-2",["text-"+l.domain_color]]),href:u.pivot.url,target:"_blank"},[e("img",{class:"h-12 w-12 bg-transparent",src:u.icon_url,alt:u.name},null,8,Ux)],10,Nx))),256))])])],512)),[[q,l.market.social_media.length]]):f("",!0),l.market.type=="standard"&&i.events.length?(a(),r("div",{key:10,id:"outings",class:g(["w-full",{"red-divider-top":l.domain_color==="red","cornhole-orange-divider-top":l.domain_color==="cornhole-orange"}])},null,2)):f("",!0),l.market.type=="standard"&&i.events.length?(a(),r("div",{key:11,class:g(["w-full py-10 h-auto",["bg-"+l.domain_color]])},[e("div",Bx,[Hx,i.events.length?(a(),r("div",zx,[(a(!0),r(C,null,R(i.events,u=>(a(),r("div",{key:u.id,class:"w-full md:w-1/2 px-4 text-center mb-4"},[e("a",{href:u.url,target:"_blank"},[u.image?(a(),r("img",{key:0,class:"mb-4 block mx-auto",src:u.image_url,alt:u.name},null,8,Kx)):f("",!0),e("p",$x,m(u.name),1)],8,Wx)]))),128))])):f("",!0)])],2)):f("",!0),l.market.type=="standard"&&i.events.length?(a(),r("div",{key:12,id:"what",class:g(["w-full",{"red-divider-bottom":l.domain_color==="red","cornhole-orange-divider-bottom":l.domain_color==="cornhole-orange"}])},null,2)):f("",!0),l.market.type=="standard"?(a(),r("div",{key:13,class:g(["w-full container bg-white mx-auto flex flex-wrap",{"mt-20":!i.events.length}])},[e("div",Yx,[e("div",Xx,[l.domain_color=="red"?(a(),r("img",Jx)):f("",!0),l.domain_color=="cornhole-orange"?(a(),r("img",Zx)):f("",!0)])]),l.domain_color=="cornhole-orange"?(a(),r("div",Qx,[Gx,qx,ev,tv,e("div",lv,[e("div",sv,[iv,e("p",ov,[L("Co-ed adult "),l.domain_color=="red"?(a(),r("span",nv,"kickball")):(a(),r("span",av,"cornhole"))]),rv,cv]),dv,uv])])):f("",!0),l.domain_color=="red"?(a(),r("div",mv,[e("h2",hv,[L(" What is "),e("span",{class:g(["text-"+l.domain_color])},"GO Kickball",2)]),e("h6",{class:g(["text-xl font-semibold",["text-"+l.domain_color]])},"Co-ed Adult Social Sports",2),fv,pv,e("div",_v,[e("div",gv,[e("h6",{class:g(["text-lg font-semibold",["text-"+l.domain_color]])},"The Active Life",2),yv,bv,xv]),e("div",vv,[e("h6",{class:g(["text-lg font-semibold",["text-"+l.domain_color]])},"The Social Life",2),wv,kv,Fv]),e("div",Lv,[e("h6",{class:g(["text-lg font-semibold",["text-"+l.domain_color]])},"The Purpose-Driven Life",2),Cv,Tv,Ov])])])):f("",!0)],2)):f("",!0),l.market.type=="standard"?(a(),r("div",Sv)):f("",!0),l.market.type=="standard"?(a(),r("div",Iv,Ev)):f("",!0),l.market.type=="standard"?(a(),r("div",Mv)):f("",!0),l.market.type=="standard"?(a(),r("div",Av,[e("div",Dv,[jv,e("div",Vv,[e("div",Rv,[e("h5",{class:g(["font-bold text-3xl",["text-"+l.domain_color]])},"$2.45M (Since 2006)",2),e("div",Nv,[e("div",{class:g(["w-4/5 h-full rounded-full",["bg-"+l.domain_color]])},null,2)])]),Uv]),e("h6",{class:g(["text-xl font-semibold",["text-"+l.domain_color]])},"Live Life Fun Together",2),Bv,e("h6",{class:g(["text-xl font-semibold",["text-"+l.domain_color]])},"Causes Served",2),Hv,zv])])):f("",!0),l.market.type=="standard"?(a(),r("div",{key:18,class:g(["w-full",[l.domain_color+"-divider-top-small"]])},null,2)):f("",!0),l.market.type=="standard"?(a(),r("div",{key:19,class:g(["w-full py-10 h-auto",["bg-"+l.domain_color]])},[e("div",Wv,[Kv,e("div",$v,[Yv,Xv,e("div",Jv,[e("div",Zv,[e("img",{onClick:s[4]||(s[4]=P(u=>i.visitPage("premium-t-shirt-styles"),["prevent"])),src:"https://kickball-assets.s3.amazonaws.com/banner_shirt.jpg"})]),Qv]),e("div",Gv,[e("div",qv,[e("img",{onClick:s[5]||(s[5]=P(u=>i.visitPage("talent-scout"),["prevent"])),src:"https://kickball-assets.s3.amazonaws.com/banner_talent_scout_v2.jpg"})]),e2])])])],2)):f("",!0),l.market.type=="standard"?(a(),r("div",{key:20,class:g(["w-full",[l.domain_color+"-divider-bottom"]])},null,2)):f("",!0),l.market.type=="standard"&&i.sponsors.length?(a(),r("div",t2,[e("div",l2,[s2,e("div",i2,[(a(!0),r(C,null,R(i.sponsors,u=>(a(),r("div",{key:u.id,class:"w-full md:w-1/5 p-5"},[e("a",{href:u.url,target:"_blank"},[u.image?(a(),r("img",{key:0,class:"block mx-auto",src:u.image_url},null,8,n2)):f("",!0)],8,o2)]))),128))])])])):f("",!0),w(_,{ref:"selectedNoteModal",note:i.selectedLocationNote,date:i.selectedLocationDate},null,8,["note","date"]),t.loadingLeagues?f("",!0):(a(),H(x,{key:22,ref:"signUpModal",domain_color:l.domain_color,market:l.market,upcomingLeagueOptions:t.upcomingLeagueOptions,onAcceptedInvite:i.openLeagueAccessCodeModal},null,8,["domain_color","market","upcomingLeagueOptions","onAcceptedInvite"])),w(n,{ref:"marketLeagueAccessCodeModal",domain_color:l.domain_color,league:t.privateLeague,onCode:s[6]||(s[6]=u=>i.goToPrivateRegistration(t.privateLeague))},null,8,["domain_color","league"])])]),_:1},40,["loadingLeagues"])}const O2=Y(Jy,[["render",a2]]);export{O2 as default};