1System.register(["./index-legacy-BtJkYB7P.js","./hostAppBar-legacy-Dd_Gp-C8.js","./date-legacy-2fQ2xcEB.js","./customInputNew-legacy-TmoYJEBZ.js","./customInput-legacy-coPiPdsV.js","./timePicker-legacy-DbaT_WZ4.js","./dateTimeFormater-legacy-DPtF6gIF.js","./customSearch-legacy-DCvJFPQA.js","./drawerIcon-legacy-BXXlzKEg.js"],function(e,a){"use strict";var t,l,s,n,o,i,r,u,d,c,p,m,g,f,v,h,b,y,w,x,_,T,k,$,V,D,S,Y,C,L,I,M,O,E,U,j,W,F,A,P,R,N,z,B,q,H,K,Z,X,J,G,Q,ee,ae,te,le,se;return{setters:[e=>{t=e._,l=e.a3,s=e.r,n=e.m,o=e.g,i=e.n,r=e.f,u=e.t,d=e.x,c=e.a8,p=e.W,m=e.Q,g=e.R,f=e.S,v=e.M,h=e.an,b=e.T,y=e.U,w=e.E,x=e.X,_=e.k,T=e.ar,k=e.c,$=e.y,V=e.a4,D=e.e,S=e.G,Y=e.aq,C=e.at,L=e.a6,I=e.j,M=e.u,O=e.ah,E=e.w,U=e.o,j=e.a5,W=e.a9,F=e.aa,A=e.F,P=e.v,R=e.z,N=e.q,z=e.C,B=e.Z,q=e.b,H=e.V,K=e.d,Z=e.aU,X=e.ac,J=e.aV,G=e.aW},e=>{Q=e.H},e=>{ee=e.a},e=>{ae=e.C},e=>{te=e.C},e=>{le=e.T},e=>{se=e.g},null,null],execute:function(){var a=document.createElement("style");a.textContent='@charset "UTF-8";.wrapper[data-v-de2c8314]{display:block!important;width:600px;max-width:100%;background:#fff;margin:auto;border-radius:10px;font-family:Poppins}.wrapper .cardTitle[data-v-de2c8314]{font-weight:500;font-size:20px;line-height:30px}.wrapper .close[data-v-de2c8314]{position:absolute;top:20px;right:20px;height:24px;transition:.2s}.wrapper .close[data-v-de2c8314]:hover{color:#000;opacity:.7}.wrapper label[data-v-de2c8314]{color:var(--clr-light-grey)}.wrapper .invalidDate[data-v-de2c8314]{color:red}.wrapper .linkExample[data-v-de2c8314]{font-size:12px;letter-spacing:.01}.nonCompliantLeaguesDialog[data-v-38a11059] input{margin:0 10px;color:#000!important;border-bottom:1px solid #ccc!important;width:70px}.nonCompliantLeaguesDialog .cardWrapper[data-v-38a11059]{display:block!important;width:520px;max-width:100%;background:#fff;margin:auto;border-radius:10px;font-family:Poppins}.nonCompliantLeaguesDialog .cardWrapper .cardTitle[data-v-38a11059]{font-weight:500;font-size:20px;line-height:30px}.nonCompliantLeaguesDialog .cardWrapper .legueCompetitiorsRequirements .noValid[data-v-38a11059]{color:red}.nonCompliantLeaguesDialog .cardWrapper .legueCompetitiorsRequirements li[data-v-38a11059]{margin-bottom:10px;list-style-type:disc;margin-left:25px;display:flex;align-items:center;position:relative}.nonCompliantLeaguesDialog .cardWrapper .legueCompetitiorsRequirements li[data-v-38a11059]:before{content:"â¢";position:absolute;left:-15px;top:50%;transform:translateY(-50%);width:10px}.nonCompliantLeaguesDialog .cardWrapper .subTitle[data-v-38a11059]{color:#000}.nonCompliantLeaguesDialog .cardWrapper .close[data-v-38a11059]{position:absolute;top:20px;right:20px;height:24px;transition:.2s}.nonCompliantLeaguesDialog .cardWrapper .close[data-v-38a11059]:hover{color:#000;opacity:.7}.nonCompliantLeaguesDialog .cardWrapper label[data-v-38a11059]{color:var(--clr-light-grey)}[data-v-a3d2a514]{font-family:Poppins}.content .contentTitle[data-v-a3d2a514]{font-size:20px;font-weight:500;line-height:30px;color:var(--clr-title)}.content .seasons[data-v-a3d2a514]{padding:24px 24px 50px;background-color:#fff}.content .seasons .yearFilter[data-v-a3d2a514]{max-width:200px}.content .seasons .seasonTable[data-v-a3d2a514]{border-top:1px solid var(--bg-gray-darker);border-bottom:1px solid var(--bg-gray-darker)}.content .seasons .seasonTable tr td[data-v-a3d2a514],.content .seasons .seasonTable tr th[data-v-a3d2a514]{font-size:16px;font-weight:400}.content .seasons .seasonTable tr td[data-v-a3d2a514]:not(:last-child),.content .seasons .seasonTable tr th[data-v-a3d2a514]:not(:last-child){border-right:1px solid var(--bg-gray-darker)}.content .seasons .seasonTable .tableHead[data-v-a3d2a514]{text-transform:uppercase;color:var(--clr-light-grey)}.content .seasons .seasonTable .tableBody .moreIcon[data-v-a3d2a514]{cursor:pointer;transition:.2s}.content .seasons .seasonTable .tableBody .moreIcon[data-v-a3d2a514]:hover:not(.disableEdit){opacity:.6}.content .seasons .seasonTable .tableBody .disableEdit[data-v-a3d2a514]{cursor:default;color:var(--clr-light-grey)!important}.actionsItem[data-v-a3d2a514]{cursor:pointer;transition:.2s;text-transform:capitalize}.actionsItem[data-v-a3d2a514]:hover:not(.disableEdit){opacity:.6}.wrapper[data-v-a3d2a514]{display:block!important;width:520px;max-width:100%;background:#fff;margin:auto;border-radius:10px;font-family:Poppins}.wrapper .cardTitle[data-v-a3d2a514]{font-weight:500;font-size:20px;line-height:30px}.wrapper .close[data-v-a3d2a514]{position:absolute;top:20px;right:20px;height:24px;transition:.2s}.wrapper .close[data-v-a3d2a514]:hover{color:#000;opacity:.7}.wrapper label[data-v-a3d2a514]{color:var(--clr-light-grey)}
1.wrapper .invalidDate[data-v-a3d2a514]{color:red}.wrapper .input[data-v-a3d2a514]{max-width:200px;height:50px;border-radius:10px;border:1px solid #ccc!important;font-size:16px;color:#000}.wrapper .input[data-v-a3d2a514]::placeholder{font-size:16px}.seasonDialog .v-card-text[data-v-a3d2a514]{color:#000!important}.dateInputs[data-v-a3d2a514]{display:flex;flex-wrap:wrap}.dateItem[data-v-a3d2a514]{display:flex;flex-direction:column;width:180px;margin-right:20px}\n/*$vite$:1*/',document.head.appendChild(a);const ne={__name:"removeParticipant",props:{value:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:a}){const t=a,{notify:x}=h();function _(){t("update:modelValue",!1),D()}const T=l(""),k=l("");async function $(){const{venue:e,leagueName:a}=function(e){const a=new URL(e).pathname.split("/");return{venue:a[1],leagueName:a[3]}}(k.value),t=await p(m(v(`venues/${e}/event-list/league`),f("slug"),g(a))).then(e=>Object.values(e.val()||{})[0]);if(t)if(t?.isOfficial){const a=await p(b(`venues/watl/league/${t.officialLeague}/${t.currentSeason}`)).then(e=>e.val());a&&function(e,a,t,l){if(!t?.standings)return x({group:"notifyMessages",type:"error",title:`League ${a?.title||""} has no standings â nothing to remove`});let s,n;for(let[o,i]of Object.entries(t.standings))if(i.code===l){s=i,n=o;break}if(!n)return x({group:"notifyMessages",type:"error",title:`Participant ${l} in ${a.title} not found`});if(s.leagues){const t=V(s,e,a);console.log("updatedStandings",t),w(b(`venues/watl/league/${a.officialLeague}/${a.currentSeason}/standings/${n}`),t).then(()=>{x({group:"notifyMessages",type:"success",title:`Participant ${l} in ${a.title} has been removed`})})}else console.log("standings single league",s),y(b(`venues/watl/league/${a.officialLeague}/${a.currentSeason}/standings/${n}`)).then(()=>{x({group:"notifyMessages",type:"success",title:`Participant ${l} has been completely removed`})});for(let o=1;o<=8;o++){const l=t?.[`Week${o}`];if(!l?.players)continue;const s=l.players[n];if(s)if(s.leagues){const t=V(s,e,a);console.log("updatedWeek",t),w(b(`venues/watl/league/${a.officialLeague}/${a.currentSeason}/Week${o}/players/${n}`),t)}else console.log("weekData single league",s),y(b(`venues/watl/league/${a.officialLeague}/${a.currentSeason}/Week${o}/players/${n}`))}}(e,t,a,T.value)}else x({group:"notifyMessages",type:"error",title:`League ${a} from ${e} is not official`});else x({group:"notifyMessages",type:"error",title:`League ${a} from ${e} not found`,text:"Please check correct league link"})}function V(e,a,t){const l=JSON.parse(JSON.stringify(e));delete l.leagues;let s=[...e.leagues,l].filter(e=>e.venue!==a||e.leagueSlug!==t.slug),n={...s[0],leagues:null};if(s.length>1){let e=s.sort((e,a)=>a.score-e.score);n={...e[0],leagues:e.slice(1)}}return n}const D=()=>{T.value="",k.value=""};return(a,l)=>{const p=s("v-card-title"),m=s("v-icon"),g=s("v-card-text"),f=s("v-card-actions"),v=s("v-card"),h=s("v-dialog");return o(),n(h,{modelValue:e.value,"onUpdate:modelValue":l[2]||(l[2]=e=>t("update:modelValue",e))},{default:i(()=>[r(v,{tile:"",class:"wrapper"},{default:i(()=>[r(p,{class:"px-6 pt-8 cardTitle"},{default:i(()=>[...l[3]||(l[3]=[d("Remove participants from global leaderboard",-1)])]),_:1}),u("button",{class:"close",onClick:_},[r(m,{size:"24"},{default:i(()=>[...l[4]||(l[4]=[d("mdi-close",-1)])]),_:1})]),r(g,null,{default:i(()=>[u("div",null,[r(ae,{topText:"Participant code",placeholder:"EX: SL73 or TSL73",class:"mb-4",modelValue:T.value,"onUpdate:modelValue":l[0]||(l[0]=e=>T.value=e),modelModifiers:{trim:!0}},null,8,["modelValue"]),r(ae,{topText:"Sanctioned League link",placeholder:"https://axethrowing.org...",class:"leagueInput",modelValue:k.value,"onUpdate:modelValue":l[1]||(l[1]=e=>k.value=e),modelModifiers:{trim:!0}},null,8,["modelValue"]),l[5]||(l[5]=u("p",{class:"linkExample"}," EX: https://axethrowing.org/angry-birds/league/2025_official_season_2_hatchet ",-1))])]),_:1}),r(f,{class:"buttons px-4"},{default:i(()=>[r(c,{variant:"outlined",width:"120",color:"var(--clr-light-grey)",onClick:D},{default:i(()=>[...l[6]||(l[6]=[d("clear",-1)])]),_:1}),r(c,{disabled:T.value.length<4||!k.value.length,variant:"outlined",width:"120",color:"var(--clr-light-grey)",onClick:$},{default:i(()=>[...l[7]||(l[7]=[d("remove",-1)])]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}}},oe=t(ne,[["__scopeId","data-v-de2c8314"]]),ie={class:"d-flex flex-column"},re={class:"legueCompetitiorsRequirements"},ue={key:1}
1,de={__name:"nonCompliantLeagues",props:{value:{type:Boolean,required:!0},season:{type:Object,required:!0},selectedYear:{type:Number,required:!0}},emits:["update:modelValue"],setup(e,{emit:a}){const t=x(),h=_(),y=a,w=e;let C=T({"watl_standard-league":4,"watl_big-axe-league":4,"watl_duals-league":2,"wktl_standard-league":4,"wktl_duals-league":2});const L=l(!1);async function I(){L.value=!0;const e=await p(S("venues")).then(e=>e.val()),a=await async function(e){let a,l=[];for(let s in t.seasonYears)t.seasonYears[s]===+w.selectedYear&&(a=s);return Object.keys(e).forEach(e=>{["watl","admin-test-test"].includes(e)||l.push(new Promise(async(t,l)=>{const s=await p(m(v(`venues/${e}/event-list/league`),f("currentSeason"),g(a))).then(e=>e.val()||{});t(Object.values(s).filter(e=>e.seasonName===w.season.value&&e.isOfficial).map(a=>({...a,venue:e})))}))}),await Promise.all(l).then(e=>{let a=[];return e.filter(e=>e.length>0).forEach(e=>{a.push(...e)}),a})}(e),l=await async function(e){let a=[];return e.forEach(e=>{a.push(new Promise((a,t)=>{p(b(`venues/${e.venue}/league/${e.slug}/${e.currentSeason}/standings`)).then(t=>{const l=t.val()||{},s=Object.values(l).filter(e=>e.gp>0).length;a({...e,competitors:s})})}))}),await Promise.all(a).then(e=>e.filter(e=>e.competitors>0&&e.competitors<+C[`${e.rules}_${e.leagueType}`]))}(a);!function(e){const a=[["Venue","venue"],["Discipline","discipline"],["League","title"],["Participants","competitors"],["Link","link"]].filter(Boolean);let t="";for(let s in a)t+=a[s][0]+",";t+="\n",e.forEach(e=>{for(const l of a){let a="";a="discipline"===l[1]?h.disciplines[`${e.rules}_${e.leagueType}`]:"link"===l[1]?`https://axethrowing.org/${e.venue}/league/${e.slug}`:e[l[1]],t+=`${(""+a).replaceAll(",","").replaceAll('"',"").replaceAll("â","")},`}t+="\n"});const l=`non-compliant-leagues-${w.selectedYear}-${w.season.title}`;Y(t,l)}(l),L.value=!1,y("update:modelValue",!1)}const M=k(()=>Object.values(C).some(e=>!e||0===+e||+e<0));function O(){y("update:modelValue",!1),C={"watl_standard-league":4,"watl_big-axe-league":4,"watl_duals-league":2,"wktl_standard-league":4,"wktl_duals-league":2}}return(a,t)=>{const l=s("v-card-title"),p=s("v-icon"),m=s("v-card-text"),g=s("v-progress-circular"),f=s("v-card-actions"),v=s("v-card"),h=s("v-dialog");return o(),n(h,{modelValue:e.value,"onUpdate:modelValue":t[5]||(t[5]=e=>y("update:modelValue",e)),class:"nonCompliantLeaguesDialog",onAfterLeave:O},{default:i(()=>[r(v,{tile:"",class:"cardWrapper"},{default:i(()=>[r(l,null,{default:i(()=>[...t[6]||(t[6]=[d("Export non-compliant leagues",-1)])]),_:1}),u("button",{class:"close",onClick:O},[r(p,{size:"24"},{default:i(()=>[...t[7]||(t[7]=[d("mdi-close",-1)])]),_:1})]),r(m,null,{default:i(()=>[u("div",ie,[t[18]||(t[18]=u("p",{class:"mb-2 subTitle"},[d(" League minimums "),u("a",{href:"https://worldaxethrowingleague.com/how-to-run-a-watl-league/",target:"_blank"},"(source)")],-1)),t[19]||(t[19]=u("p",{class:"mb-2"}," The number of unique competitors required for a discipline in league to be sanctioned are: ",-1)),u("ul",re,[u("li",{class:$({noValid:+V(C)["watl_standard-league"]<=0})},[t[8]||(t[8]=d(" Hatchet: ",-1)),r(te,{modelValue:V(C)["watl_standard-league"],"onUpdate:modelValue":t[0]||(t[0]=e=>V(C)["watl_standard-league"]=e),modelModifiers:{number:!0},inputType:"number",class:"participantsInput"},null,8,["modelValue"]),t[9]||(t[9]=u("span",null,"participants",-1))],2),u("li",{class:$({noValid:+V(C)["watl_big-axe-league"]<=0})},[t[10]||(t[10]=d(" Big Axe: ",-1)),r(te,{modelValue:V(C)["watl_big-axe-league"],"onUpdate:modelValue":t[1]||(t[1]=e=>V(C)["watl_big-axe-league"]=e),modelModifiers:{number:!0},inputType:"number",class:"participantsInput"},null,8,["modelValue"]),t[11]||(t[11]=u("span",null,"participants",-1))],2),u("li",{class:$({noValid:+V(C)["watl_duals-league"]<=0})},[t[12]||(t[12]=d(" Hatchet Duals: ",-1)),r(te,{modelValue:V(C)["watl_duals-league"],"onUpdate:modelValue":t[2]||(t[2]=e=>V(C)["watl_duals-league"]=e),inputType:"number",class:"participantsInput"},null,8,["modelValue"]),t[13]||(t[13]=u("span",null,"participants",-1))],2),u("li",{class:$({noValid:+V(C)["wktl_standard-league"]<=0})},[t[14]||(t[14]=d(" Knife: ",-1)),r(te,{modelValue:V(C)["wktl_standard-league"],"onUpdate:modelValue":t[3]||(t[3]=e=>V(C)["wktl_standard-league"]=e),modelModifiers:{number:!0},inputType:"number",class:"participantsInput"},null,8,["modelValue"]),t[15]||(t[15]=u("span",null,"participants",-1))],2),u("li",{class:$({noValid:+V(C)["wktl_duals-league"]<=0})}
1,[t[16]||(t[16]=d(" Knife Duals: ",-1)),r(te,{modelValue:V(C)["wktl_duals-league"],"onUpdate:modelValue":t[4]||(t[4]=e=>V(C)["wktl_duals-league"]=e),modelModifiers:{number:!0},inputType:"number",class:"participantsInput"},null,8,["modelValue"]),t[17]||(t[17]=u("span",null,"participants",-1))],2)])])]),_:1}),r(f,{class:"buttons px-4"},{default:i(()=>[r(c,{variant:"outlined",width:"120",color:"var(--clr-light-grey)",disabled:M.value,onClick:I},{default:i(()=>[L.value?(o(),n(g,{key:0,color:"var(--clr-light-grey)",height:"2",indeterminate:""})):(o(),D("span",ue,"export"))]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}}},ce=t(de,[["__scopeId","data-v-38a11059"]]),pe={class:"newContainer content"},me={class:"d-flex justify-space-between align-center mb-6"},ge={class:"seasons"},fe={class:"d-flex align-center mb-6"},ve={class:"tableBody"},he={class:"d-flex flex-column"},be={class:"dateInputs"},ye={class:"dateItem"},we=["min","max"],xe={class:"dateItem"},_e={class:"dateInputs"},Te={class:"dateItem"},ke=["min","max"],$e={class:"dateItem"},Ve={class:"dateInputs"},De={class:"dateItem"},Se=["min"],Ye={class:"dateItem"},Ce={key:0,style:{color:"red"}},Le={key:1,style:{color:"red"}};e("default",t({__name:"hostsSeasons",setup(e){K();const a=q(),t=x(),{mobile:g}=C();let f=L(!1);const h=I(),b=M();let y=L(!1),_=l({show:!1,season:null}),ae=T({start:!0,end:!0,publish:!0,wrongOrder:!1});const te=[{title:"Season 1",value:"Winter"},{title:"Season 2",value:"Spring"},{title:"Season 3",value:"Summer"},{title:"Season 4",value:"Fall"}],ne=k(()=>{if(f.value)return te;{let e=b.venueSeasons[re.value],a=Object.keys(e||{});return a.length?te.filter(e=>!a.includes(e.value)):te}}),ie=L(!1);let re=L(t.currentYear),ue=(new Date).getTime();O(ue).format("YYYY-MM-DD");const de=k(()=>Object.values(b.venueSeasons[re.value]||{}).sort((e,a)=>e.dates.start<a.dates.start?-1:1).map(e=>{let a=new Date(e.dates.publish).toLocaleString("en-US",{timeZone:"America/New_York",hour12:!1}),t=new Date(e.dates.start).toLocaleString("en-US",{timeZone:"America/New_York",hour12:!1}),l=new Date(e.dates.end).toLocaleString("en-US",{timeZone:"America/New_York",hour12:!1}),s={publish:O(a).format("MMMM D, YYYY"),start:O(t).format("MMMM D, YYYY"),end:O(l).format("MMMM D, YYYY"),publishTime:je(a),startTime:je(t),endTime:je(l)};return{...e,dates:s}})),Ie=k(()=>{const e=(new Date).getFullYear();let a=[String(e),String(e+1)],t=Object.keys(b.venueSeasons||{});return[...new Set([...a,...t])].map(e=>({title:e,value:e}))}),Me=k(()=>Object.keys(b.venueSeasons[re.value]||{}).length?ne.value[0]?.value:"Winter");let Oe=T({year:re.value,value:Me.value,start:"",end:"",publish:"",publishTime:"00:00",startTime:"00:00",endTime:"23:59"});E(()=>re.value,e=>{Oe.year=e});const Ee=k(()=>![ae.publish,ae.start,ae.end].includes(!1)&&!ae.wrongOrder);function Ue(){if(function(){["publish","start","end"].forEach(e=>{ae[e]=!!Oe[e].length});let e=new Date(`${Oe.end}, ${Oe.endTime}`).getTime(),a=new Date(`${Oe.start}, ${Oe.startTime}`).getTime(),t=new Date(`${Oe.publish}, ${Oe.publishTime}`).getTime();ae.publish=t<=a&&t<=e,ae.start=a>=t&&a<=e,ae.end=e>=a&&e>=t,Oe.end.length&&Oe.start.length&&Oe.publish.length&&[ae.publish,ae.start,ae.end].includes(!1)?ae.wrongOrder=!0:ae.wrongOrder=!1}(),!Ee.value)return;let e=te.find(e=>e.value===Oe.value).title,l={};Fe.value.forEach(e=>{l[`${e.rules}_${e.leagueType}`]=e.slug});let s={start:ee(Oe.start,Oe.startTime),end:ee(Oe.end,Oe.endTime),publish:ee(Oe.publish,Oe.publishTime)},n={[Oe.value]:{title:e,value:Oe.value,dates:s,..."custom"!==b.venue.type&&{globalLeagues:l}||{}}},o="custom"!==b.venue.type?"watl":a.params.locationSlug;w(S(`/${b.venue.rules}/seasons/${o}/${Oe.year}`),n).then(()=>{"custom"===b.venue.type||f.value||Fe.value.forEach(e=>{let a="";for(let[s,n]of Object.entries(t.seasonYears))+n===+Oe.year&&(a=s);let l={...e,currentSeason:a,currentWeek:{completed:!0,name:"Week1",type:"Round Robin"},completed:!1,date:"",time:"",pin:!1,isOfficial:!0,officialLeague:"",hide:!1,archive:!1,seasonName:Oe.value,type:"League",suffix:"",createdBy:h.user[".key"]};H(v("/venues/watl/event-list/league/"),l).then(()=>{let t={};for(let e=1;e<=7;e++)t[`Week${e}`]={name:`Week${e}`,type:"Round Robin",completed:!0};w(v(`/venues/watl/league-list/${e.slug}/${a}`),t)})}),y.value=!1})}function je(e){const a=new Date(e),t="0"+a.getHours(),l="0"+a.getMinutes();return t.slice(-2)+":"+l.slice(-2)}E(()=>y.value,e=>{e||(Oe.value=Me.value,Oe.year=re.value,Oe.start="",Oe.end="",Oe.publish="",Oe.publishTime="00:00",Oe.startTime="00:00",Oe.endTime="23:59",ae.start=!0,ae.end=!0,ae.publish=!0,ae.wrongOrder=!1,f.value=!1,function(e){let a=Object.keys(e[re.value]||{});Oe.value=a.length?ne.value[0]?.value:"Fall"}(b.venueSeasons))});const We=k(()=>{let e=te.find(e=>e.value===Oe.value).title;return{title:e,slug:e.toLowerCase().replaceAll(" ","_")}}),Fe=k(()=>[{title:`Official WKTL ${We.value.title} ${Oe.year}`,slug:`official_wktl_${We.value.slug}_${Oe.year}`,rules:"wktl",leagueType:"standard-league",gamePlayRules:"before_2024",img:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/wktl-logo.png?alt=media&token=956e2f88-c0bf-4060-9b63-7456f412f41d"},{title:`Official WKTL Duals ${We.value.title} ${Oe.year}`,slug:`official_wktl_duals_${We.value.slug}_${Oe.year}`,rules:"wktl",leagueType:"duals-league",gamePlayRules:"before_2024",img:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/wktl-logo.png?alt=media&token=956e2f88-c0bf-4060-9b63-7456f412f41d"},{title:`Official Hatchet ${We.value.title} ${Oe.year}`,slug:`official_hatchet_${We.value.slug}_${Oe.year}`,rules:"watl",leagueType:"standard-league",gamePlayRules:"since_2025",img:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fundefined%2Fplayers%2Fundefined%2FWATL-flag-graphic-butcher.webp?alt=media&token=cc34c2b3-87f1-45b5-9499-10d808ef146f"},{title:`Official Duals ${We.value.title} ${Oe.year}`,slug:`official_duals_${We.value.slug}_${Oe.year}`,rules:"watl",leagueType:"duals-league",gamePlayRules:"since_2025",img:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fundefined%2Fplayers%2Fundefined%2FWATL-flag-graphic-butcher.webp?alt=media&token=cc34c2b3-87f1-45b5-9499-10d808ef146f"},{title:`Official Big Axe ${We.value.title} ${Oe.year}`,slug:`official_big_axe_${We.value.slug}_${Oe.year}`,rules:"watl",leagueType:"big-axe-league",gamePlayRules:"since_2025",img:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fundefined%2Fplayers%2Fundefined%2FWATL-flag-graphic-butcher.webp?alt=media&token=cc34c2b3-87f1-45b5-9499-10d808ef146f"}]);async function Ae(e){const a=await async function(e){const a=await p(m(S("/watl/players"),X(),Z(5e3))).then(e=>e.val()),t=new Date(e.dates.publish).getTime(),l=new Date(e.dates.end).getTime();let s,n=(new Date).getTime();if(n>=t&&n<=l)s=l;else if(n>l){const a=te.findIndex(a=>a.value===e.value),t=te[a+1]?.value;t&&b.venueSeasons[re.value][t]?s=b.venueSeasons[re.value][t].dates.start:(!t||t&&!b.venueSeasons[re.value][t])&&(s=n+864e5)}let o=[];for(let[i,r]of Object.entries(a)){const e=se(i);e>=t&&e<=s&&o.push(r)}return o}(e),t=function(e){const a=[["Player ID","code"],["Division","division"],["First name","first"],["Last name","last"],["Full Name","fullName"],["Email","email"],["COUNTRY","country"],["STATE","state"],["Venue","venue"]].filter(
1Boolean);let t="";for(let l in a)t+=a[l][0]+",";return t+="\n",e.forEach(e=>{for(const l of a){let a="";"code"===l[1]?a=e.code:"venue"===l[1]?a=e.venue||"":"division"===l[1]?a=e.division||"-":"first"===l[1]?a=e.first||"":"last"===l[1]?a=e.last||"":"email"===l[1]?a=e.email||"":"fullName"===l[1]?a=`${e.first} ${e.last}`:"country"===l[1]?a=e.country?J[e.country]:"":"state"===l[1]&&(a=e.state?G[e.country]?.split("|")[e.state]:""),t+=`${(""+a).replaceAll(",","").replaceAll('"',"").replaceAll("â","")},`}t+="\n"}),t}(a),l=`${re.value}_${e.title}`;Y(t,l)}function Pe(){ie.value=!0}return U(()=>{}),(e,a)=>{const l=s("v-spacer"),p=s("v-icon"),m=s("v-list-item"),v=s("v-list"),h=s("v-menu"),w=s("v-tooltip"),x=s("v-divider"),T=s("v-btn"),k=s("v-table"),S=s("v-card-title"),Y=s("v-card-text"),C=s("v-card-actions"),L=s("v-card"),I=s("v-dialog");return o(),D("div",null,[r(Q,{title:"Seasons","hide-search-input":""}),u("div",pe,[u("div",me,[a[19]||(a[19]=u("div",{class:"contentTitle"},"Season Management",-1)),r(c,{variant:"flat",class:"mr-0",onClick:a[0]||(a[0]=e=>j(y)?y.value=!0:y=!0),disabled:4===Object.keys(V(b).venueSeasons[V(re)]||{}).length},{default:i(()=>[...a[18]||(a[18]=[u("span",null,"add season",-1)])]),_:1},8,["disabled"])]),u("div",ge,[u("div",fe,[r(W,{items:Ie.value,value:V(re),onUpdatedSelectValue:a[1]||(a[1]=e=>j(re)?re.value=e:re=e),class:"yearFilter"},null,8,["items","value"]),r(l),V(g)?(o(),n(h,{key:0},{activator:i(({props:e})=>[r(p,F(e,{class:"ml-2 text-h4",color:"#1CA4F1",icon:"mdi-information-outline"}),null,16)]),default:i(()=>[r(v,null,{default:i(()=>[r(m,null,{default:i(()=>[...a[20]||(a[20]=[u("p",null,"Commissioners can add a maximum of four seasons per year",-1),u("p",null," Commissioners can edit seasons, but only for the current year ",-1)])]),_:1})]),_:1})]),_:1})):(o(),n(w,{key:1},{activator:i(({props:e})=>[r(p,F(e,{class:"ml-2 text-h3 pointer",color:"#1CA4F1",icon:"mdi-information-outline"}),null,16)]),default:i(()=>[a[21]||(a[21]=u("p",null,"A maximum of four seasons can be added per year.",-1)),a[22]||(a[22]=u("p",null,"All dates and times are displayed in Eastern Time (ET).",-1))]),_:1}))]),r(k,{class:"seasonTable"},{default:i(()=>[a[28]||(a[28]=u("thead",{class:"tableHead"},[u("tr",null,[u("th",null,"season name"),u("th",null,"publish date"),u("th",null,"Start date"),u("th",null,"end date"),u("th",null,"actions")])],-1)),u("tbody",ve,[(o(!0),D(A,null,P(de.value,e=>(o(),D("tr",null,[u("td",null,R(e.title),1),u("td",null,R(e.dates.publish),1),u("td",null,R(e.dates.start),1),u("td",null,R(e.dates.end),1),u("td",null,[r(T,{icon:""},{default:i(()=>[r(p,{color:"#0B2E7D",class:"moreIcon"},{default:i(()=>[...a[23]||(a[23]=[d(" mdi-dots-horizontal",-1)])]),_:1}),r(h,{activator:"parent",location:"bottom end",transition:"fade-transition"},{default:i(()=>[r(v,{density:"compact","min-width":"120",rounded:"lg",slim:""},{default:i(()=>[r(m,{class:"actionsItem",onClick:a=>function(e){f.value=!0,Oe.year=re.value,Oe.value=e.value,Oe.start=O(e.dates.start).format("YYYY-MM-DD"),Oe.end=O(e.dates.end).format("YYYY-MM-DD"),Oe.publish=O(e.dates.publish).format("YYYY-MM-DD"),Oe.publishTime=e.dates.publishTime,Oe.startTime=e.dates.startTime,Oe.endTime=e.dates.endTime,y.value=!0}(e)},{default:i(()=>[...a[24]||(a[24]=[d(" edit",-1)])]),_:1},8,["onClick"]),r(x),r(m,{class:"actionsItem",disabled:V(t).currentYear-V(re)>2,onClick:a=>Ae(e)},{default:i(()=>[...a[25]||(a[25]=[d("export new players",-1)])]),_:1},8,["disabled","onClick"]),r(x),r(m,{class:"actionsItem",onClick:Pe},{default:i(()=>[...a[26]||(a[26]=[d("Remove participants from global leaderboard",-1)])]),_:1}),r(x),r(m,{class:"actionsItem",onClick:a=>function(e){_.value.season=e,_.value.show=!0}(e)},{default:i(()=>[...a[27]||(a[27]=[d("export non-compliant leagues",-1)])]),_:1},8,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)])]))),256))])]),_:1})])]),r(I,{class:"seasonDialog","max-width":"700",modelValue:V(y),"onUpdate:modelValue":a[15]||(a[15]=e=>j(y)?y.value=e:y=e)},{default:i(()=>[r(L,{tile:"",class:"wrapper"},{default:i(()=>[r(S,{class:"px-6 pt-8 cardTitle"},{default:i(()=>
1[d(R(V(f)?"Edit":"Add")+" Season",1)]),_:1}),r(Y,null,{default:i(()=>[u("div",he,[a[29]||(a[29]=u("label",null,"Season year",-1)),r(W,{class:"mb-5",items:[{title:V(re),value:V(re)}],value:V(Oe).year,disabled:V(f),onUpdatedSelectValue:a[2]||(a[2]=e=>V(Oe).year=e)},null,8,["items","value","disabled"]),a[30]||(a[30]=u("label",null,"Season name",-1)),r(W,{class:"mb-5",items:ne.value,value:V(Oe).value,disabled:V(f),onUpdatedSelectValue:a[3]||(a[3]=e=>V(Oe).value=e)},null,8,["items","value","disabled"]),u("div",be,[u("div",ye,[u("label",{class:$({invalidDate:!V(ae).publish})},"Publish Date",2),z(u("input",{class:"input mb-5 mr-2",type:"date",min:V(O)(V(ue)).format("YYYY-MM-DD"),max:V(Oe).start,placeholder:"mm/dd/yyyy",autocomplete:"off",onInput:a[4]||(a[4]=()=>V(ae).publish=!0),"onUpdate:modelValue":a[5]||(a[5]=e=>V(Oe).publish=e)},null,40,we),[[B,V(Oe).publish]])]),u("div",xe,[u("label",{class:$({invalidDate:!V(ae).publish})},"Publish Time",2),r(le,{modelValue:V(Oe).publishTime,"onUpdate:modelValue":a[6]||(a[6]=e=>V(Oe).publishTime=e),class:"mb-2"},null,8,["modelValue"])])]),u("div",_e,[u("div",Te,[u("label",{class:$({invalidDate:!V(ae).start})},"Start Date",2),z(u("input",{class:"input mb-5 mr-2",type:"date",min:V(Oe).publish,max:V(Oe).end,placeholder:"mm/dd/yyyy",autocomplete:"off",onInput:a[7]||(a[7]=()=>V(ae).start=!0),"onUpdate:modelValue":a[8]||(a[8]=e=>V(Oe).start=e)},null,40,ke),[[B,V(Oe).start]])]),u("div",$e,[u("label",{class:$({invalidDate:!V(ae).publish})},"Start Time",2),r(le,{modelValue:V(Oe).startTime,"onUpdate:modelValue":a[9]||(a[9]=e=>V(Oe).startTime=e),class:"mb-2"},null,8,["modelValue"])])]),u("div",Ve,[u("div",De,[u("label",{class:$({invalidDate:!V(ae).end})},"End Date ",2),z(u("input",{class:"input mb-5 mr-2",type:"date",min:V(Oe).start,placeholder:"mm/dd/yyyy",autocomplete:"off","onUpdate:modelValue":a[10]||(a[10]=e=>V(Oe).end=e),onInput:a[11]||(a[11]=()=>V(ae).end=!0)},null,40,Se),[[B,V(Oe).end]])]),u("div",Ye,[u("label",{class:$({invalidDate:!V(ae).publish})},"End Time",2),r(le,{modelValue:V(Oe).endTime,"onUpdate:modelValue":a[12]||(a[12]=e=>V(Oe).endTime=e),class:"mb-2"},null,8,["modelValue"])])]),[V(ae).end,V(ae).start,V(ae).publish].includes(!1)&&!V(ae).wrongOrder?(o(),D("p",Ce," Failed "+R(V(f)?"to save changes to the season":"to add the new season")+". Ensure all fields are correctly filled and try again. ",1)):V(ae).wrongOrder?(o(),D("p",Le," Please check the dates. The start date must come after the publish date, and the end date must be later than the start date. ")):N("",!0)]),u("button",{class:"close",onClick:a[13]||(a[13]=e=>j(y)?y.value=!1:y=!1)},[r(p,{size:"24"},{default:i(()=>[...a[31]||(a[31]=[d("mdi-close",-1)])]),_:1})]),r(p,F(e.props,{class:"ml-2 text-h4",color:"#1CA4F1",icon:"mdi-information-outline"}),null,16),a[32]||(a[32]=u("span",null," All dates and times are displayed in Eastern Time (ET).",-1))]),_:1}),r(C,{class:"buttons px-4"},{default:i(()=>[r(c,{variant:"outlined",width:"120",color:"var(--clr-light-grey)",onClick:a[14]||(a[14]=e=>j(y)?y.value=!1:y=!1)},{default:i(()=>[...a[33]||(a[33]=[d("Cancel",-1)])]),_:1}),r(c,{variant:"flat",width:"120",onClick:Ue},{default:i(()=>[d(R(V(f)?"save":"add"),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),r(oe,{modelValue:ie.value,"onUpdate:modelValue":a[16]||(a[16]=e=>ie.value=e)},null,8,["modelValue"]),r(ce,{modelValue:V(_).show,"onUpdate:modelValue":a[17]||(a[17]=e=>V(_).show=e),season:V(_).season,"selected-year":V(re)},null,8,["modelValue","season","selected-year"])])}}},[["__scopeId","data-v-a3d2a514"]]))}}});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.