@dcrackel/meyersquaredui 1.0.128 → 1.0.129
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -34,4 +34,4 @@
|
|
|
34
34
|
- A negative score means this pool is weaker than the average.<br/>
|
|
35
35
|
- A positive score means this pool is stronger than the average.<br/><br/>
|
|
36
36
|
<em>Note:</em> Ideally, all pools would be 0. However, A small difference is expected, as tournament organizers aim to separate club members.
|
|
37
|
-
`}},methods:{selectTab(n){this.selectedTab=n},mapEventPersonsToPersons(n){return n.map(o=>({...o.Person,PoolPosition:o.PoolPosition,Status:o.Status,DEPosition:o.DEPosition})).sort((o,l)=>o.PoolPosition-l.PoolPosition)}}},fn={class:"w-full pb-2 rounded-lg"},xn={class:"max-w-[1200px] w-full flex justify-between mx-auto py-4 md:py-8 pl-4 pr-4 rounded-tr-lg rounded-tl-lg"},bn={class:"flex"},un={class:"max-w-[1200px] md:w-full flex mx-2 md:mx-auto pt-4 pb-4 pl-4 bg-white rounded-tr-lg rounded-tl-lg"};function yn(n,t,o,l,a,r){const s=e.resolveComponent("BaseText"),c=e.resolveComponent("Icon"),i=e.resolveComponent("Tooltip"),d=e.resolveComponent("GridLayout");return e.openBlock(),e.createElementBlock("div",fn,[e.createElementVNode("div",xn,[e.createVNode(s,{color:"primary",size:"",tag:"h3",weight:"bold",class:"text-sm md:text-xl"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(`Fencers in ${o.pools[a.selectedTab].Name}`),1)]),_:1}),e.createElementVNode("div",bn,[e.createVNode(s,{color:"primary",size:"",tag:"h3",weight:"bold",class:"text-sm md:text-xl"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(`${o.pools[a.selectedTab].poolStrengthInd} Strength Indicator`),1)]),_:1}),e.createVNode(i,{text:a.tooltipContent,width:"w-[500px]",position:"left"},{default:e.withCtx(()=>[e.createVNode(c,{icon:"fa-circle-info",color:"primary",size:"md",class:"hidden md:block ml-2"})]),_:1},8,["text"])])]),e.createElementVNode("div",un,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.pools,(m,h)=>(e.openBlock(),e.createElementBlock("span",{key:m.PoolId},[e.createVNode(s,{color:"primary",size:"",tag:"p",weight:"",title:"",class:e.normalizeClass(["mr-10 border-b-2 hover:border-accent pb-2 duration-300 ease-in-out text-sm md:text-lg",a.selectedTab===h?"border-accent":"border-white"]),onClick:p=>r.selectTab(h)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.Name),1)]),_:2},1032,["class","onClick"])]))),128))]),e.createVNode(d,{cardComponent:r.FencerListCard,items:r.mappedPersons,maxColumns:1,isLoading:!1,whiteStyle:!0,class:"-mt-1"},null,8,["cardComponent","items"])])}const wn=b(gn,[["render",yn]]),Cn={components:{BaseButton:T,BaseText:w},props:{bout:{type:Object,required:!0},isWaiting:{type:Boolean,required:!1,default:!1},timerStatus:{type:String,required:!1,default:"stopped"},hostingClubColors:{type:Object,required:!0}},data(){var n;return{remainingTime:((n=this.bout)==null?void 0:n.TimeLeft)||0,interval:null,missingPortrait:G}},mounted(){this.timerStatus==="running"&&this.startTimer()},beforeDestroy(){this.stopTimer()},computed:{status(){return this.isWaiting?"waiting":this.bout.Status},fencer1Name(){return this.isWaiting?"Waiting to be selected":this.bout.Person1.DisplayName},fencer1Team(){return this.isWaiting?"starting soon":this.bout.Person1.Club.Name},fencer1Portrait(){return this.isWaiting?this.missingPortrait:this.bout.Person1.Images.length?this.bout.Person1.Images[0].URL:this.missingPortrait},fencer1Score(){return this.isWaiting||this.bout.Status==="Scheduled"?"-":this.bout.Score1},fencer2Name(){return this.isWaiting?"Waiting to be selected":this.bout.Person2.DisplayName},fencer2Team(){return this.isWaiting?"starting soon":this.bout.Person2.Club.Name},fencer2Portrait(){return this.isWaiting?this.missingPortrait:this.bout.Person2.Images.length?this.bout.Person2.Images[0].URL:this.missingPortrait},fencer2Score(){return this.isWaiting||this.bout.Status==="Scheduled"?"-":this.bout.Score2},displayTime(){const n=Math.floor(this.remainingTime/60).toString().padStart(2,"0"),t=(this.remainingTime%60).toString().padStart(2,"0");return`${n}:${t}`}},methods:{startTimer(){this.interval&&clearInterval(this.interval),this.interval=setInterval(()=>{this.remainingTime>0?this.remainingTime--:this.stopTimer()},1e3)},stopTimer(){this.interval&&clearInterval(this.interval),this.interval=null}}},kn={class:"flex items-center justify-between rounded-lg w-full"},Nn={class:"flex space-x-4 items-center"},Vn=["src"],En={key:0,class:"w-2/12 h-16 pt-3 text-center bg-primary"},Bn={class:"flex justify-between space-x-4 ml-4 w-full"},_n={class:"flex"},Sn={class:"pt-1"},Tn={class:"pl-2"},An=["src"],zn={key:0,class:"text-left"};function In(n,t,o,l,a,r){const s=e.resolveComponent("BaseText");return e.openBlock(),e.createElementBlock("section",null,[e.createElementVNode("div",kn,[e.createElementVNode("div",{class:e.normalizeClass(["w-5/12 flex justify-between border-l border-t border-b p-2 bg-poolBox rounded-l-xl",[r.status!=="Active"?"border-r":""]])},[e.createElementVNode("div",Nn,[e.createElementVNode("div",null,[e.createElementVNode("div",{class:e.normalizeClass(`w-4 h-4 rounded-full bg-${o.hostingClubColors.Color1} absolute mt-8 ml-9`)},null,2),e.createElementVNode("img",{src:r.fencer1Portrait,alt:"Portrait",class:"w-12 h-12 rounded-full"},null,8,Vn)]),e.createElementVNode("div",null,[e.createVNode(s,{size:"md",color:"primary",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer1Name),1)]),_:1}),e.createVNode(s,{size:"xs",color:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer1Team),1)]),_:1})])]),e.createVNode(s,{size:"3xl",weight:"bold",class:"align-middle pr-3 pt-0.5"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer1Score),1)]),_:1})],2),o.bout.Status==="Active"?(e.openBlock(),e.createElementBlock("div",En,[e.createVNode(s,{size:"2xl",color:"white",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.displayTime),1)]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["w-5/12 flex justify-between border-r border-t border-b p-2 bg-poolBox rounded-r-xl",[r.status!=="Active"?"border-l":""]])},[e.createElementVNode("div",Bn,[e.createVNode(s,{size:"3xl",weight:"bold",class:"pl-3 pt-0.5"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer2Score),1)]),_:1}),e.createElementVNode("div",_n,[e.createElementVNode("div",Sn,[e.createVNode(s,{size:"md",color:"primary",weight:"bold",class:"text-right"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer2Name),1)]),_:1}),e.createVNode(s,{size:"xs",color:"primary",class:"text-right"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer2Team),1)]),_:1})]),e.createElementVNode("div",Tn,[e.createElementVNode("div",{class:e.normalizeClass(`w-4 h-4 rounded-full bg-${o.hostingClubColors.Color2} absolute mt-8 mr-14`)},null,2),e.createElementVNode("img",{src:r.fencer2Portrait,alt:"Portrait",class:"w-12 h-12 rounded-full"},null,8,An)])])])],2)]),o.bout.customStatus&&r.status!=="Active"?(e.openBlock(),e.createElementBlock("div",zn,[e.createVNode(s,{size:"sm",color:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.bout.customStatus),1)]),_:1})])):e.createCommentVNode("",!0)])}const Pn=b(Cn,[["render",In]]),Ln={components:{BaseText:w},props:{bout:{type:Object,required:!0},isWaiting:{type:Boolean,required:!1,default:!1},timerStatus:{type:String,required:!1,default:"stopped"},hostingClubColors:{type:Object,required:!0}},data(){var n;return{remainingTime:((n=this.bout)==null?void 0:n.TimeLeft)||0,interval:null,missingPortrait:G}},mounted(){this.timerStatus==="running"&&this.startTimer()},beforeDestroy(){this.stopTimer()},computed:{status(){return this.isWaiting?"waiting":this.bout.Status},fencer1Name(){return this.isWaiting?"Waiting to be selected":this.bout.Person1.DisplayName},fencer1Club(){return this.isWaiting?"starting soon":this.bout.Person1.Club.Name},fencer1Portrait(){return this.isWaiting?this.missingPortrait:this.bout.Person1.Images.length?this.bout.Person1.Images[0].URL:this.missingPortrait},fencer1Score(){return this.isWaiting||this.bout.Status==="Scheduled"?"-":this.bout.Score1},fencer2Name(){return this.isWaiting?"Waiting to be selected":this.bout.Person2.DisplayName},fencer2Club(){return this.isWaiting?"starting soon":this.bout.Person2.Club.Name},fencer2Portrait(){return this.isWaiting?this.missingPortrait:this.bout.Person2.Images.length?this.bout.Person2.Images[0].URL:this.missingPortrait},fencer2Score(){return this.isWaiting||this.bout.Status==="Scheduled"?"-":this.bout.Score2},displayTime(){const n=Math.floor(this.remainingTime/60).toString().padStart(2,"0"),t=(this.remainingTime%60).toString().padStart(2,"0");return`${n}:${t}`}},methods:{startTimer(){this.interval&&clearInterval(this.interval),this.interval=setInterval(()=>{this.remainingTime>0?this.remainingTime--:this.stopTimer()},1e3)},stopTimer(){this.interval&&clearInterval(this.interval),this.interval=null}}},Mn={class:"flex flex-col items-center w-full space-y-2 p-4 bg-poolBox rounded-lg relative"},Dn={key:0,class:"text-center"},jn={class:"flex items-center justify-between w-full relative"},On={class:"flex flex-col items-center p-1"},Rn={class:"flex justify-between w-full"},Fn=["src"],Un={class:"text-left"},Gn={class:"absolute top-2 inset-x-0 text-center z-10 flex justify-center"},Wn={key:0,class:"bg-primary p-2 rounded-lg"},Hn={key:1,class:"w-4"},qn={class:"flex flex-col items-center"},Kn={class:"flex justify-end w-full"},Yn=["src"],Zn={class:"text-right"};function Qn(n,t,o,l,a,r){const s=e.resolveComponent("BaseText");return e.openBlock(),e.createElementBlock("section",Mn,[o.bout.customStatus&&r.status!=="Active"?(e.openBlock(),e.createElementBlock("div",Dn,[e.createVNode(s,{size:"sm",color:"primary",weight:"bold",class:"pb-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.bout.customStatus),1)]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",jn,[e.createElementVNode("div",On,[e.createElementVNode("div",Rn,[e.createElementVNode("img",{src:r.fencer1Portrait,alt:"Portrait",class:e.normalizeClass(`w-12 h-12 rounded-full mb-2 border-2 border-${o.hostingClubColors.Color1}`)},null,10,Fn)]),e.createElementVNode("div",Un,[e.createVNode(s,{size:"sm",color:"primary",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer1Name),1)]),_:1}),e.createVNode(s,{size:"xs",color:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer1Club),1)]),_:1})])]),e.createElementVNode("div",Gn,[e.createVNode(s,{size:"4xl",weight:"bold",class:"pr-4 -mt-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer1Score),1)]),_:1}),r.status==="Active"?(e.openBlock(),e.createElementBlock("div",Wn,[e.createVNode(s,{size:"sm",color:"white",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.displayTime),1)]),_:1})])):e.createCommentVNode("",!0),r.status!=="Active"?(e.openBlock(),e.createElementBlock("div",Hn)):e.createCommentVNode("",!0),e.createVNode(s,{size:"4xl",weight:"bold",class:"pl-4 -mt-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer1Score),1)]),_:1})]),e.createElementVNode("div",qn,[e.createElementVNode("div",Kn,[e.createElementVNode("img",{src:r.fencer2Portrait,alt:"Portrait",class:e.normalizeClass(`w-12 h-12 rounded-full mb-2 border-2 border-${o.hostingClubColors.Color2}`)},null,10,Yn)]),e.createElementVNode("div",Zn,[e.createVNode(s,{size:"sm",color:"primary",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer2Name),1)]),_:1}),e.createVNode(s,{size:"xs",color:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer2Club),1)]),_:1})])])])])}const Jn={name:"GridLivePool",components:{BoutCardMobile:b(Ln,[["render",Qn]]),BoutCard:Pn,BaseText:w},props:{bouts:{type:Array,required:!0},eventRules:{type:Object,required:!0},hostingClubColors:{type:Object,required:!0}},data(){return{isMobile:!1}},computed:{upcomingBouts(){return this.bouts.filter(n=>n.Status==="Scheduled")},completedBouts(){return this.bouts.filter(n=>n.Status==="Completed")},activeBouts(){return this.bouts.filter(n=>n.Status==="Active")},hasActiveBout(){return this.activeBouts.length>0},hasCompletedBout(){return this.completedBouts.length>0},remainingBoutsCount(){return this.upcomingBouts.length},markedUpcomingBouts(){const n=["On Deck","In The Hole","Preparing"];return this.upcomingBouts.map((t,o)=>o<n.length?{...t,customStatus:n[o]}:t)}},watch:{bouts:{handler(){this.$forceUpdate()},deep:!0}},mounted(){this.checkViewport(),window.addEventListener("resize",this.checkViewport)},beforeDestroy(){window.removeEventListener("resize",this.checkViewport)},methods:{checkViewport(){console.log("checkViewport",window.innerWidth),this.isMobile=window.innerWidth<=768}}},Xn={key:0},$n={class:"w-full flex flex-col items-center"},vn={key:0,class:"w-full md:w-3/4 md:my-4"},ea={key:1},ta={class:"flex flex-row justify-between"},oa={class:"flex mr-1"},ra={class:"w-full flex flex-col items-center"},na={key:2},aa={class:"flex flex-row"},sa={class:"w-full flex flex-col items-center"};function la(n,t,o,l,a,r){const s=e.resolveComponent("BoutCard"),c=e.resolveComponent("BoutCardMobile"),i=e.resolveComponent("BaseText");return e.openBlock(),e.createElementBlock("section",null,[r.remainingBoutsCount>0?(e.openBlock(),e.createElementBlock("section",Xn,[t[0]||(t[0]=e.createElementVNode("div",{class:"border-b border-dropdownSelect mb-8"},null,-1)),e.createElementVNode("div",$n,[r.hasActiveBout?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",vn,[a.isMobile?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(s,{key:0,bout:{},hostingClubColors:o.hostingClubColors,isWaiting:!0},null,8,["hostingClubColors"])),a.isMobile?(e.openBlock(),e.createBlock(c,{key:1,bout:{},hostingClubColors:o.hostingClubColors,isWaiting:!0},null,8,["hostingClubColors"])):e.createCommentVNode("",!0)])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.activeBouts,d=>(e.openBlock(),e.createElementBlock("div",{key:d.BoutId,class:"w-full md:w-3/4 md:my-4"},[a.isMobile?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(s,{key:0,bout:d,hostingClubColors:o.hostingClubColors},null,8,["bout","hostingClubColors"])),a.isMobile?(e.openBlock(),e.createBlock(c,{key:1,bout:d,hostingClubColors:o.hostingClubColors},null,8,["bout","hostingClubColors"])):e.createCommentVNode("",!0)]))),128))])])):e.createCommentVNode("",!0),r.remainingBoutsCount>0?(e.openBlock(),e.createElementBlock("section",ea,[e.createElementVNode("div",ta,[e.createVNode(i,{class:"mt-5",color:"primaryHighlight",size:"md",text:"Upcoming",weight:"bold"}),e.createElementVNode("div",oa,[e.createVNode(i,{class:"mt-5 ml-5",color:"primaryHighlight",size:"md"},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("Remaining bouts:")])),_:1}),e.createVNode(i,{class:"mt-5 ml-2",color:"primaryHighlight",size:"md",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.remainingBoutsCount),1)]),_:1})])]),t[2]||(t[2]=e.createElementVNode("div",{class:"border-b border-dropdownSelect mb-5"},null,-1)),e.createElementVNode("div",ra,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.markedUpcomingBouts,d=>(e.openBlock(),e.createElementBlock("div",{key:d.BoutId,class:"w-full md:w-3/4 md:my-4"}))),128))])])):e.createCommentVNode("",!0),r.hasCompletedBout>0?(e.openBlock(),e.createElementBlock("section",na,[e.createElementVNode("div",aa,[r.remainingBoutsCount===0?(e.openBlock(),e.createBlock(i,{key:0,class:"mt-8",color:"primaryHighlight",size:"md",weight:"bold"},{default:e.withCtx(()=>t[3]||(t[3]=[e.createTextVNode("All Bouts Are Complete")])),_:1})):e.createCommentVNode("",!0),r.remainingBoutsCount>0?(e.openBlock(),e.createBlock(i,{key:1,class:"mt-5",color:"primaryHighlight",size:"md",weight:"bold"},{default:e.withCtx(()=>t[4]||(t[4]=[e.createTextVNode("Completed")])),_:1})):e.createCommentVNode("",!0)]),t[5]||(t[5]=e.createElementVNode("div",{class:"hidden md:block border-b border-dropdownSelect mb-5"},null,-1)),e.createElementVNode("div",sa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.completedBouts,d=>(e.openBlock(),e.createElementBlock("div",{key:d.BoutId,class:"w-full md:w-3/4 md:my-4"}))),128))])])):e.createCommentVNode("",!0)])}const ia=b(Jn,[["render",la]]),ca={name:"GridPool",components:{BaseText:w,Icon:V},props:{bouts:{type:Array,required:!0}},data(){return{showStats:!1}},computed:{participants(){const n={};return this.bouts.forEach(t=>{n[t.Person1Id]=t.Person1,n[t.Person2Id]=t.Person2}),Object.values(n)}},mounted(){this.checkScreenSize(),window.addEventListener("resize",this.checkScreenSize)},beforeDestroy(){window.removeEventListener("resize",this.checkScreenSize)},methods:{checkScreenSize(){this.showStats=window.matchMedia("(min-width: 768px)").matches},getFencerShortName(n){const[t,o]=n.split(" "),l=o?o.charAt(0):"";return`${t} ${l}.`},getScore(n,t){const o=this.bouts.find(l=>l.Person1Id===n&&l.Person2Id===t||l.Person1Id===t&&l.Person2Id===n);if(o){if(o.Status==="Scheduled")return"";const l=o.Score1,a=o.Score2;return o.Status==="Completed"?l>a?o.Person1Id===n?`W${l}`:`L${a}`:a>l?o.Person1Id===n?`L${l}`:`W${a}`:`T${l}`:o.Person1Id===n?l:a}return""},getBoutClass(n,t){const o=this.bouts.find(l=>l.Person1Id===n&&l.Person2Id===t||l.Person1Id===t&&l.Person2Id===n);if(o){if(o.Status==="Completed"){if(o.Score1>o.Score2)return n===o.Person1Id?"bg-accent":"bg-gray-400";if(o.Score2>o.Score1)return t===o.Person2Id?"bg-gray-400":"bg-accent";if(o.Score2===o.Score1)return t===o.Person2Id,"bg-primary"}if(o.Status==="Active")return"bg-blue"}return""},getStats(n){const t=this.bouts.filter(i=>(i.Person1Id===n.PersonId||i.Person2Id===n.PersonId)&&i.Status==="Completed"),o=t.filter(i=>i.Person1Id===n.PersonId&&i.Score1>i.Score2||i.Person2Id===n.PersonId&&i.Score2>i.Score1).length,l=t.filter(i=>i.Person1Id===n.PersonId&&i.Score1<i.Score2||i.Person2Id===n.PersonId&&i.Score2<i.Score1).length,a=t.reduce((i,d)=>i+(d.Person1Id===n.PersonId?d.Score1:d.Score2),0),r=t.reduce((i,d)=>i+(d.Person1Id===n.PersonId?d.Score2:d.Score1),0),s=a-r;return{WP:`${t.length>0?(o/t.length*100).toFixed(0):"0.00"}%`,HS:a,HR:r,IND:s,W:o,L:l}}}},da={class:"flex w-full justify-center mb-4 overflow-x-auto"},ma={class:"border-separate border-spacing-1"},ha={class:"bg-primary rounded-md md:rounded-lg px-1 py-1 md:px-4 md:py-2"},pa={key:0,class:"w-1"},ga={key:1,class:"bg-primary rounded-md md:rounded-lg table-cell text-center align-middle h-6 w-6 md:h-10 md:w-10"},fa={key:2,class:"bg-primary rounded-md md:rounded-lg table-cell text-center align-middle h-6 w-6 md:h-10 md:w-10"},xa={key:3,class:"bg-primary rounded-md md:rounded-lg table-cell text-center align-middle h-6 w-6 md:h-10 md:w-10"},ba={key:4,class:"bg-primary rounded-md md:rounded-lg table-cell text-center align-middle h-6 w-6 md:h-10 md:w-10"},ua={key:5,class:"bg-primary rounded-md md:rounded-lg able-cell text-center align-middle h-6 w-6 md:h-10 md:w-10"},ya={class:"border border-primary rounded-md md:rounded-lg text-right align-middle px-1 md:px-4"},wa={class:"bg-primary rounded-md md:rounded-lg text-center align-middle h-6 w-6 md:h-10 md:w-10"},Ca=["rowspan"],ka={key:1,class:"border border-primary rounded-md md:rounded-lg table-cell text-center align-middle h-6 w-6 md:h-10 md:w-10"},Na={key:2,class:"border border-primary rounded-md md:rounded-lg table-cell text-center align-middle h-6 w-6 md:h-10 md:w-10"},Va={key:3,class:"border border-primary rounded-md md:rounded-lg table-cell text-center align-middle h-6 w-6 md:h-10 md:w-10"},Ea={key:4,class:"border border-primary rounded-md md:rounded-lg table-cell text-center align-middle h-6 w-6 md:h-10 md:w-10"},Ba={key:5,class:"border border-primary rounded-md md:rounded-lg table-cell text-center align-middle h-6 w-6 md:h-10 md:w-10"};function _a(n,t,o,l,a,r){const s=e.resolveComponent("BaseText"),c=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock("div",da,[e.createElementVNode("table",ma,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",ha,[e.createVNode(s,{size:"",weight:"bold",color:"white",class:"text-xs md:text-sm"},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("Name")])),_:1})]),t[7]||(t[7]=e.createElementVNode("th",{class:"w-1"},null,-1)),t[8]||(t[8]=e.createElementVNode("th",{class:"bg-gray-800 rounded-md md:rounded-lg px-1 py-1 md:px-4 md:py-2"},null,-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.participants,(i,d)=>(e.openBlock(),e.createElementBlock("th",{key:i.PersonId,class:"bg-primary rounded-md md:rounded-lg text-center align-middle"},[e.createVNode(s,{size:"",weight:"bold",color:"white",class:"text-xs md:text-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d+1),1)]),_:2},1024)]))),128)),a.showStats?(e.openBlock(),e.createElementBlock("th",pa)):e.createCommentVNode("",!0),a.showStats?(e.openBlock(),e.createElementBlock("th",ga,[e.createVNode(s,{size:"",weight:"bold",color:"white",class:"text-xs md:text-sm"},{default:e.withCtx(()=>t[2]||(t[2]=[e.createTextVNode("W%")])),_:1})])):e.createCommentVNode("",!0),a.showStats?(e.openBlock(),e.createElementBlock("th",fa,[e.createVNode(s,{size:"",weight:"bold",color:"white",class:"text-xs md:text-sm"},{default:e.withCtx(()=>t[3]||(t[3]=[e.createTextVNode("W/L")])),_:1})])):e.createCommentVNode("",!0),a.showStats?(e.openBlock(),e.createElementBlock("th",xa,[e.createVNode(s,{size:"",weight:"bold",color:"white",class:"text-xs md:text-sm"},{default:e.withCtx(()=>t[4]||(t[4]=[e.createTextVNode("HS")])),_:1})])):e.createCommentVNode("",!0),a.showStats?(e.openBlock(),e.createElementBlock("th",ba,[e.createVNode(s,{size:"",weight:"bold",color:"white",class:"text-xs md:text-sm"},{default:e.withCtx(()=>t[5]||(t[5]=[e.createTextVNode("HR")])),_:1})])):e.createCommentVNode("",!0),a.showStats?(e.openBlock(),e.createElementBlock("th",ua,[e.createVNode(s,{size:"",weight:"bold",color:"white",class:"text-xs md:text-sm"},{default:e.withCtx(()=>t[6]||(t[6]=[e.createTextVNode("IND")])),_:1})])):e.createCommentVNode("",!0)])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.participants,(i,d)=>(e.openBlock(),e.createElementBlock("tr",{key:i.PersonId,class:"even:bg-gray-100"},[e.createElementVNode("td",ya,[e.createVNode(s,{size:"",color:"primary",class:"hidden md:block text-xs md:text-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.DisplayName),1)]),_:2},1024),e.createVNode(s,{size:"",color:"primary",class:"bock md:hidden text-xs md:text-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.getFencerShortName(i.DisplayName)),1)]),_:2},1024)]),t[9]||(t[9]=e.createElementVNode("th",{class:"w-1"},null,-1)),e.createElementVNode("td",wa,[e.createVNode(s,{size:"",weight:"bold",color:"white",class:"text-xs md:text-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d+1),1)]),_:2},1024)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.participants,m=>(e.openBlock(),e.createElementBlock("td",{key:m.PersonId,class:e.normalizeClass([{"bg-gray-800 rounded-md md:rounded-lg ":i.PersonId===m.PersonId,"bg-secondary rounded-lg":i.PersonId!==m.PersonId},"rounded-md md:rounded-lg h-6 w-6 md:h-10 md:w-10"])},[i.PersonId!==m.PersonId?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([r.getBoutClass(i.PersonId,m.PersonId),"rounded-md md:rounded-lg text-center pt-1 md:pt-2.5 h-6 w-6 md:h-10 md:w-10"])},[e.createVNode(s,{size:"",color:"white",class:"text-xs md:text-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.getScore(i.PersonId,m.PersonId)),1)]),_:2},1024)],2)):e.createCommentVNode("",!0)],2))),128)),d===0?(e.openBlock(),e.createElementBlock("td",{key:0,rowspan:r.participants.length,class:"md:hidden bg-primary cursor-pointer rounded-xl",onClick:t[0]||(t[0]=m=>a.showStats=!a.showStats)},[e.createVNode(c,{icon:"fa-chevron-right",color:"secondary",size:"xs",class:e.normalizeClass(["p-0.5 transition-transform duration-300 transform",{"rotate-180":a.showStats}])},null,8,["class"])],8,Ca)):e.createCommentVNode("",!0),t[10]||(t[10]=e.createElementVNode("th",{class:"hidden md:block w-1"},null,-1)),a.showStats?(e.openBlock(),e.createElementBlock("td",ka,[e.createVNode(s,{size:"",color:"primary",class:"text-xs md:text-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.getStats(i).WP),1)]),_:2},1024)])):e.createCommentVNode("",!0),a.showStats?(e.openBlock(),e.createElementBlock("td",Na,[e.createVNode(s,{size:"",color:"primary",class:"text-xs md:text-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.getStats(i).W)+"/"+e.toDisplayString(r.getStats(i).L),1)]),_:2},1024)])):e.createCommentVNode("",!0),a.showStats?(e.openBlock(),e.createElementBlock("td",Va,[e.createVNode(s,{size:"",color:"primary",class:"text-xs md:text-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.getStats(i).HS),1)]),_:2},1024)])):e.createCommentVNode("",!0),a.showStats?(e.openBlock(),e.createElementBlock("td",Ea,[e.createVNode(s,{size:"",color:"primary",class:"text-xs md:text-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.getStats(i).HR),1)]),_:2},1024)])):e.createCommentVNode("",!0),a.showStats?(e.openBlock(),e.createElementBlock("td",Ba,[e.createVNode(s,{size:"",color:"primary",class:"text-xs md:text-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.getStats(i).IND),1)]),_:2},1024)])):e.createCommentVNode("",!0)]))),128))])])])}const Sa=b(ca,[["render",_a]]),Ta={name:"ArticleCardSkeleton"},Aa={class:"w-full bg-secondary rounded-lg flex flex-col items-start animate-pulse"};function za(n,t,o,l,a,r){return e.openBlock(),e.createElementBlock("div",Aa,t[0]||(t[0]=[e.createStaticVNode('<div class="w-full h-40 bg-gray-200 rounded-t-md mb-4"></div><div class="w-3/4 h-6 bg-gray-200 rounded mb-2"></div><div class="w-full h-4 bg-gray-200 rounded mb-2"></div><div class="w-full h-4 bg-gray-200 rounded mb-2"></div><div class="w-1/2 h-4 bg-gray-200 rounded mb-4"></div><div class="w-full flex justify-end"><div class="w-1/4 h-4 bg-gray-200 rounded"></div></div>',6)]))}const Ia={name:"ArticleCard",components:{ArticleCardSkeleton:b(Ta,[["render",za]]),BaseText:w},props:{data:{type:Object,required:!0},index:{type:Number,required:!0},isLoading:{type:Boolean,default:!1}},emits:["grid-card-click"],computed:{image(){return this.data.image},articleTitle(){return this.data.articleTitle},truncatedDescription(){return this.data.description.length>120?this.data.description.substring(0,120)+" ...":this.data.description}},methods:{onReadMore(){this.$emit("grid-card-click",this.data)}}},Pa={key:0,class:"w-72 p-4 bg-secondary rounded-lg flex flex-col items-start"},La={key:1,class:"min-w-72 p-4 bg-secondary rounded-lg flex flex-col items-start"},Ma=["src"];function Da(n,t,o,l,a,r){const s=e.resolveComponent("ArticleCardSkeleton"),c=e.resolveComponent("BaseText");return e.openBlock(),e.createElementBlock(e.Fragment,null,[o.isLoading?(e.openBlock(),e.createElementBlock("div",Pa,[e.createVNode(s)])):e.createCommentVNode("",!0),o.isLoading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",La,[e.createElementVNode("img",{src:r.image,alt:"Article Image",class:"w-full h-40 object-cover rounded-t-md mb-4"},null,8,Ma),e.createVNode(c,{tag:"h3",size:"xl",weight:"bold",class:"mb-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.articleTitle),1)]),_:1}),e.createVNode(c,{tag:"p",size:"sm",weight:"normal",class:"mb-4 h-20"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.truncatedDescription),1)]),_:1}),e.createElementVNode("a",{href:"#",onClick:t[0]||(t[0]=e.withModifiers((...i)=>r.onReadMore&&r.onReadMore(...i),["prevent"])),class:"w-full flex justify-end pr-2"},[e.createVNode(c,{tag:"p",size:"sm",weight:"bold",class:"mb-4 border-b border-secondary hover:border-accent"},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("Read More →")])),_:1})])]))],64)}const de=b(Ia,[["render",Da]]),ja={name:"ClubListCard",components:{Icon:V,BaseText:w},props:{data:{type:Object,required:!0}},computed:{clubDescription(){return this.data.Description?this.data.Description.slice(0,120):""},clubImage(){return this.data.Images.length>0&&this.data.Images[0].URL?this.data.Images[0].URL:"https://via.placeholder.com/150"}},methods:{handleCardClick(){this.$emit("grid-card-click",this.data)}}},Oa={class:"flex flex-col md:flex-row w-full"},Ra={class:"flex flex-grow-0 flex-shrink-0 md:w-auto"},Fa=["src"],Ua={class:"flex flex-col ml-2 md:hidden"},Ga={class:"flex-grow md:ml-4"},Wa={class:"flex flex-col mt-4 md:mt-0 md:w-48 md:flex-shrink-0"},Ha={class:"flex md:justify-end"},qa={class:"flex md:justify-end mt-2"};function Ka(n,t,o,l,a,r){const s=e.resolveComponent("BaseText"),c=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock("div",{class:"w-full flex flex-row p-4 bg-white md:bg-cloud cursor-pointer border-b pb-6 mb-2 last:border-b-0",onClick:t[0]||(t[0]=(...i)=>r.handleCardClick&&r.handleCardClick(...i))},[e.createElementVNode("div",Oa,[e.createElementVNode("section",Ra,[e.createElementVNode("img",{src:r.clubImage,class:"w-16 h-16 md:w-24 md:h-24 object-cover rounded-full mr-2 md:mr-4",alt:""},null,8,Fa),e.createElementVNode("div",Ua,[e.createVNode(s,{color:"primary",tag:"h2",size:"lg",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.Name),1)]),_:1}),e.createVNode(s,{color:"primary",tag:"h3",size:"xs",weight:"bold",class:"mb-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.Address.City)+" | "+e.toDisplayString(o.data.Address.State),1)]),_:1})])]),e.createElementVNode("section",Ga,[e.createVNode(s,{color:"primary",tag:"h2",size:"lg",weight:"bold",class:"hidden md:flex"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.Name),1)]),_:1}),e.createVNode(s,{color:"primary",tag:"h3",size:"xs",weight:"bold",class:"hidden md:flex justify-start"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.Address.City)+" | "+e.toDisplayString(o.data.Address.State),1)]),_:1}),e.createVNode(s,{color:"primary",tag:"p",size:"xs",weight:"normal",class:"flex justify-start mt-2 md:text-sm",innerHTML:r.clubDescription},null,8,["innerHTML"])]),e.createElementVNode("section",Wa,[e.createElementVNode("div",Ha,[e.createVNode(c,{icon:"fa-users",size:"xs",color:"accent",class:"mr-3"}),e.createVNode(s,{color:"primary",tag:"h2",size:"xs",weight:"normal",class:"md:text-sm w-40"},{default:e.withCtx(()=>[e.createTextVNode(" M2 Active Members: "+e.toDisplayString(o.data.MemberCount),1)]),_:1})]),e.createElementVNode("div",qa,[e.createVNode(c,{icon:"fa-house-blank",type:"fa-regular",size:"xs",color:"accent",class:"mr-3"}),e.createVNode(s,{color:"primary",tag:"h3",size:"xs",weight:"normal",class:"md:text-sm w-40"},{default:e.withCtx(()=>[e.createTextVNode(" Hosted: "+e.toDisplayString(o.data.HostedTournamentsCount)+" Tournaments ",1)]),_:1})])])])])}const Ya=b(ja,[["render",Ka]]),Za={name:"ClubMember",components:{BaseText:w},props:{data:{type:Object,required:!0},isLoading:{type:Boolean,default:!1}},computed:{portrait(){return this.data.ProfileImage&&this.data.ProfileImage.URL?this.data.ProfileImage.URL:G},displayName(){return this.data.DisplayName||"Unknown Member"},m2Rating(){const n=this.data.M2Ratings.find(t=>t.WeaponId===1);return n?n.FormattedRating:"U"}},methods:{onCardClick(){this.$emit("card-click",this.data)}}},Qa={class:"flex justify-center mb-4"},Ja=["src"];function Xa(n,t,o,l,a,r){const s=e.resolveComponent("BaseText");return e.openBlock(),e.createElementBlock("section",{class:"mx-auto pt-4 items-center hover:cursor-pointer text-center",onClick:t[0]||(t[0]=(...c)=>r.onCardClick&&r.onCardClick(...c))},[e.createElementVNode("div",Qa,[e.createElementVNode("img",{src:r.portrait,alt:"User Portrait",class:"w-[150px] h-[150px] rounded-full object-cover"},null,8,Ja)]),e.createVNode(s,{tag:"h2",size:"md",weight:"bold",class:"mb-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.displayName),1)]),_:1}),e.createVNode(s,{tag:"p",size:"xs",weight:"semibold",class:"text-accent"},{default:e.withCtx(()=>[e.createTextVNode("M2: "+e.toDisplayString(r.m2Rating),1)]),_:1})])}const $a=b(Za,[["render",Xa],["__scopeId","data-v-bae6ab08"]]),va={name:"EventListCard",components:{BaseText:w,Icon:V},props:{data:{type:Object,required:!0}},computed:{weaponIcon(){console.log(this.data.Weapon);const n=this.data.Weapon.Name.toLowerCase();return n==="military saber"?"fa-saber":`fa-${n.toLowerCase()}`}},methods:{handleCardClick(){this.$emit("grid-card-click",this.data)}}},es={class:"flex space-x-4 w-full cursor-pointer"},ts={class:"w-10 pt-1 md:pt-0"},os={class:"h-10 w-10 rounded-full flex justify-center items-center border border-accent z-1"},rs={key:0,class:"h-6 w-6 bg-accent rounded-full -mt-4 ml-7 pt-1 z-10 absolute items-center"},ns={class:"flex w-full flex-col md:flex-row"},as={class:"flex flex-col pl-2 items-start flex-grow"},ss={class:"flex flex-col md:flex-row"},ls={class:"flex row mt-1 md:mt-0"},is={class:"flex row mt-1 md:mt-0"},cs={class:"w-full md:w-20 flex justify-end md:pt-3"},ds={class:"flex border-b border-white hover:border-accent md:h-8"},ms={class:"hidden md:flex"},hs={class:"flex md:hidden"};function ps(n,t,o,l,a,r){const s=e.resolveComponent("Icon"),c=e.resolveComponent("BaseText"),i=e.resolveComponent("icon");return e.openBlock(),e.createElementBlock("div",{class:"p-2 w-full border-b md:py-6 last:border-b-0",onClick:t[0]||(t[0]=(...d)=>r.handleCardClick&&r.handleCardClick(...d))},[e.createElementVNode("div",es,[e.createElementVNode("section",ts,[e.createElementVNode("div",os,[e.createVNode(s,{icon:r.weaponIcon,color:"primary",type:"fa-kit",size:"3xl",class:"rotate-45 z-1"},null,8,["icon"])]),o.data.Rating?(e.openBlock(),e.createElementBlock("div",rs,[e.createVNode(c,{color:"secondary",size:"xs",weight:"normal",class:"text-center"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.Rating),1)]),_:1})])):e.createCommentVNode("",!0)]),e.createElementVNode("div",ns,[e.createElementVNode("section",as,[e.createVNode(c,{color:"primary",size:"lg",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.EventName),1)]),_:1}),e.createElementVNode("div",ss,[e.createElementVNode("div",ls,[e.createVNode(i,{icon:"fa-calendar-day",color:"accent",type:"fa-regular",size:"xs",class:"mr-2"}),e.createVNode(c,{color:"primary",size:"xs",weight:"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.Date)+" | "+e.toDisplayString(o.data.StartTime),1)]),_:1})]),e.createElementVNode("div",is,[e.createVNode(i,{icon:"fa-person",color:"accent",type:"fa-solid",size:"xs",class:"md:ml-6 mr-2"}),e.createVNode(c,{color:"primary",size:"xs",weight:"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.ParticipantsCount)+" Fencers Registered",1)]),_:1})])])]),e.createElementVNode("section",cs,[e.createElementVNode("div",ds,[e.createElementVNode("div",ms,[e.createVNode(c,{color:"primary",size:"md",weight:"normal",class:"mr-3 pt-0.5"},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("More")])),_:1}),e.createVNode(s,{icon:"fa-arrow-right",color:"primary",type:"fa-thin",size:"xl"})]),e.createElementVNode("div",hs,[e.createVNode(c,{color:"primary",size:"xs",weight:"normal",class:"mr-3"},{default:e.withCtx(()=>t[2]||(t[2]=[e.createTextVNode("More")])),_:1}),e.createVNode(s,{icon:"fa-arrow-right",color:"primary",type:"fa-thin",size:"xs",class:""})])])])])])])}const gs=b(va,[["render",ps]]),fs={name:"FencerCard",components:{FencerCardSkeleton:Oe,BaseText:w,defaultPortrait:G},props:{data:{type:Object,required:!0},index:{type:Number,required:!0},isLoading:{type:Boolean,default:!1}},data(){return{}},emits:["grid-card-click"],computed:{portrait(){return this.data.ProfileImage&&this.data.ProfileImage.URL?this.data.ProfileImage.URL:G},displayName(){return this.data.DisplayName},clubName(){return this.data.Club.Name},m2Rating(){const n=this.data.M2Ratings.find(t=>t.WeaponId===1);return n?n.FormattedRating:"U"}},methods:{onCardClick(){this.$emit("grid-card-click",this.data)}}},xs={key:0,class:"max-w-72 p-2 bg-secondary rounded-lg flex flex-col items-start"},bs={class:"flex flex-col m-auto justify-center mb-4 items-center w-[130px]"},us=["src"],ys={class:"flex flex-col md:flex-row justify-center md:justify-around -mt-2 border-b border-borderGray z-10 pb-2 mb-2"},ws={class:"flex items-center justify-center"};function Cs(n,t,o,l,a,r){const s=e.resolveComponent("FencerCardSkeleton"),c=e.resolveComponent("BaseText");return e.openBlock(),e.createElementBlock(e.Fragment,null,[o.isLoading?(e.openBlock(),e.createElementBlock("div",xs,[e.createVNode(s)])):e.createCommentVNode("",!0),o.isLoading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("section",{key:1,class:"max-w-72 mr-4 md:mr-2 pt-4 items-center border border-secondary hover:border-accent hover:cursor-pointer rounded-lg",onClick:t[0]||(t[0]=(...i)=>r.onCardClick&&r.onCardClick(...i))},[e.createElementVNode("div",bs,[e.createElementVNode("img",{src:r.portrait,alt:"Fencer Portrait",class:"w-[120px] h-[120px] md:w-32 md:h-32 rounded-full object-cover z-1 flex-shrink-0"},null,8,us)]),e.createElementVNode("div",ys,[e.createElementVNode("div",ws,[e.createVNode(c,{tag:"p",size:"xs md:sm",weight:"semibold",class:"primary mr-1 block"},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("M2: ")])),_:1}),e.createVNode(c,{tag:"p",size:"sm md:md",weight:"bold",class:"text-accent"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.m2Rating),1)]),_:1})])]),e.createVNode(c,{tag:"h3",size:"sm md:2xl",weight:"bold",class:"text-center pb-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.displayName),1)]),_:1}),e.createVNode(c,{tag:"p",size:"xs md:sm",weight:"normal",class:"text-center h-10"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.clubName),1)]),_:1})]))],64)}const me=b(fs,[["render",Cs]]),ks={name:"PhotoCard",props:{data:{type:Object,required:!0}}},Ns={class:"w-[250px] h-[150px]"},Vs=["src","alt"];function Es(n,t,o,l,a,r){return e.openBlock(),e.createElementBlock("div",Ns,[e.createElementVNode("img",{src:o.data.URL,alt:o.data.AltText,class:"object-cover w-full h-full"},null,8,Vs)])}const Bs=b(ks,[["render",Es]]),_s={name:"RatingSystemAnnouncement",components:{BaseText:w}},Ss={class:"w-full flex justify-center mx-auto mt-10 mb-20"},Ts={class:"max-w-[1200px] w-full flex justify-center mx-auto mt-8 flex-col"},As={class:"w-full flex py-4 md:pb-10 ml-2 md:ml-0 mb-4 justify-center"},zs={class:"flex"},Is={class:"md:w-1/2 flex justify-center"};function Ps(n,t,o,l,a,r){const s=e.resolveComponent("BaseText");return e.openBlock(),e.createElementBlock("section",Ss,[e.createElementVNode("section",null,[e.createElementVNode("div",Ts,[e.createElementVNode("div",As,[e.createVNode(s,{color:"primary",size:"xl",tag:"h3",weight:"bold"},{default:e.withCtx(()=>t[0]||(t[0]=[e.createTextVNode(" Coming Soon: The M² Fencing Rating System! ")])),_:1})]),e.createElementVNode("div",zs,[t[2]||(t[2]=e.createElementVNode("div",{class:"w-1/2 hidden md:flex justify-end mr-10"},[e.createElementVNode("img",{src:"https://meyersquaredimages.com/images/trophy.png",alt:"Rating System Announcement",class:"w-96 h-96 rounded-lg"})],-1)),e.createElementVNode("div",Is,[e.createVNode(s,{color:"primary",size:"md",tag:"p",weight:"normal",class:"w-3/4"},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode(" Our new M² Rating System will give you deeper insights into your performance, track your progress, and help you see how you measure up against competitors nationwide."),e.createElementVNode("br",null,null,-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("b",null,"Key Advantages:",-1),e.createElementVNode("br",null,null,-1),e.createTextVNode(" It's a rating system, not a ranking system. You won’t lose progress just because others improve."),e.createElementVNode("br",null,null,-1),e.createElementVNode("br",null,null,-1),e.createTextVNode(" Ratings are earned by competing in tournaments. Once earned, a rating stays with you for four years, after which it gradually decreases by one level every four years. Having a bad tournament, or even a bad year doesn't cost you your rating. "),e.createElementVNode("br",null,null,-1),e.createElementVNode("br",null,null,-1),e.createTextVNode(" The more competitive the tournament, the greater the rewards. "),e.createElementVNode("br",null,null,-1),e.createElementVNode("br",null,null,-1),e.createTextVNode(" Stay tuned for more details! ")])),_:1})])])])])])}const Re=b(_s,[["render",Ps]]),Ls={name:"SocialMediaLinkCard",components:{BaseButton:T},props:{socialMedia:{type:Array,default:()=>[{Type:"Discord",Link:"https://discord.com",Label:null},{Type:"Instagram",Link:"https://instagram.com",Label:null},{Type:"Facebook",Link:"https://facebook.com",Label:null},{Type:"Web",Link:"https://www.hemaalliance.com/event-calendar",Label:null}]}},methods:{getIconName(n){return{Discord:"fa-discord",Instagram:"fa-instagram",Facebook:"fa-facebook",Web:"fa-globe"}[n]||"fa-globe"},openLink(n){window.open(n,"_blank")}}},Ms={class:"md:w-64 m-2 flex flex-col mb-20"};function Ds(n,t,o,l,a,r){const s=e.resolveComponent("BaseButton");return e.openBlock(),e.createElementBlock("aside",Ms,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.socialMedia,(c,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:"mb-4"},[e.createVNode(s,{label:c.Label||c.Type,size:"md",color:"secondary",border:"gradient1",weight:"normal",class:"w-full h-16 pl-8",iconName:r.getIconName(c.Type),iconColor:"secondary",iconSize:"xl",iconType:c.Type==="Web"?"fa-solid":"fa-brands",align:"between",onClick:d=>r.openLink(c.Link)},null,8,["label","iconName","iconType","onClick"])]))),128))])}const js=b(Ls,[["render",Ds]]),Os={name:"TournamentCardSkeleton"},Rs={class:"md:w-full mb-8 animate-pulse"};function Fs(n,t,o,l,a,r){return e.openBlock(),e.createElementBlock("div",Rs,t[0]||(t[0]=[e.createStaticVNode('<section class="hidden md:block"><div class="w-full h-52 bg-gray-300 mb-2 rounded-md"></div><div class="w-3/4 h-6 bg-gray-300 mb-1 rounded"></div><div class="w-2/3 h-4 bg-gray-300 mb-2 rounded"></div><div class="flex items-center mb-1"><div class="w-6 h-6 bg-gray-300 rounded-full mr-3"></div><div class="w-2/3 h-4 bg-gray-300 rounded"></div></div><div class="flex items-center"><div class="w-6 h-6 bg-gray-300 rounded-full mr-3"></div><div class="w-2/3 h-4 bg-gray-300 rounded"></div></div></section><section class="md:hidden flex-col items-start gap-2 border-b border-borderGray"><div class="flex flex-row"><div class="w-28 h-16 bg-gray-300 rounded-md"></div><div class="flex flex-col h-16 justify-center pl-2"><div class="w-3/4 h-6 bg-gray-300 rounded mb-1"></div><div class="w-1/2 h-4 bg-gray-300 rounded"></div></div></div><div class="flex justify-between pt-4 pb-2"><div class="flex justify-start w-5/12"><div class="w-2 h-2 bg-gray-300 rounded-full mr-1"></div><div class="w-2/3 h-4 bg-gray-300 rounded"></div></div><div class="flex justify-start mb-1 w-7/12"><div class="w-2 h-2 bg-gray-300 rounded-full mr-1"></div><div class="w-2/3 h-4 bg-gray-300 rounded"></div></div></div></section>',2)]))}const Us={name:"TournamentCard",components:{TournamentCardSkeleton:b(Os,[["render",Fs]]),BaseText:w,Icon:V},props:{data:{type:Object,required:!0},index:{type:Number,required:!1},isLoading:{type:Boolean,default:!1}},data(){return{isImageError:!1}},emits:["grid-card-click"],computed:{image(){return!this.isImageError&&this.data.ImagesURLs&&this.data.ImagesURLs.length>0?this.data.ImagesURLs:"https://via.placeholder.com/300x200"},fallbackStyle(){return this.isImageError?{backgroundColor:"#f5f5f5",display:"flex",alignItems:"center",justifyContent:"center"}:{}},title(){return this.data&&this.data.Name||""},location(){return this.data&&this.data.Address?`${this.data.Address.Name} • ${this.data.Address.City}, ${this.data.Address.State}`:"Location Unavailable"},startDate(){return this.data&&this.formatDate(this.data.StartDate)},endDate(){return this.data&&this.formatDate(this.data.EndDate)},numberOfFencers(){return this.data&&this.data.NumberOfFencers?this.data.NumberOfFencers:0}},methods:{formatDate(n){return new Date(n).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})},imageError(){this.isImageError=!0},onCardClick(){this.$emit("grid-card-click",this.data)}}},Gs={key:0,class:"max-w-80 md:w-full mb-8"},Ws={class:"hidden md:block"},Hs={class:"relative w-full h-52"},qs=["src"],Ks={key:0,src:"https://meyersquaredimages.com/images/banners/m2-white.png",alt:"Bookmark Icon",class:"w-8 absolute top-2 right-2 p-1 bg-white rounded"},Ys={class:"flex items-center mb-1"},Zs={class:"flex w-6 justify-center"},Qs={key:0,class:"flex items-center"},Js={class:"flex w-6 justify-center"},Xs={key:1,class:"flex items-center"},$s={class:"flex w-6 justify-center"},vs={class:"w-full md:hidden flex-col items-start gap-2 border-b border-borderGray"},el={class:"flex flex-row"},tl=["src"],ol={class:"flex flex-col h-16 justify-center pl-3"},rl={class:"flex justify-between pt-4 pb-2"},nl={class:"flex justify-start w-5/12"},al={class:"flex justify-start mb-1 w-7/12"};function sl(n,t,o,l,a,r){const s=e.resolveComponent("TournamentCardSkeleton"),c=e.resolveComponent("BaseText"),i=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock(e.Fragment,null,[o.isLoading?(e.openBlock(),e.createElementBlock("div",Gs,[e.createVNode(s)])):e.createCommentVNode("",!0),o.isLoading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:"w-full md:w-full md:mb-8 border border-secondary hover:border-accent hover:cursor-pointer p-2 rounded-lg overflow-hidden",onClick:t[2]||(t[2]=(...d)=>r.onCardClick&&r.onCardClick(...d))},[e.createElementVNode("section",Ws,[e.createElementVNode("div",Hs,[e.createElementVNode("img",{src:r.image,alt:"Tournament Image",class:"w-full h-full object-cover mb-2 rounded-md",onError:t[0]||(t[0]=(...d)=>r.imageError&&r.imageError(...d)),style:e.normalizeStyle(r.fallbackStyle)},null,44,qs),o.data.HostedOnM2?(e.openBlock(),e.createElementBlock("img",Ks)):e.createCommentVNode("",!0)]),e.createVNode(c,{tag:"h3",size:"xl",weight:"semibold",class:"mb-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.title),1)]),_:1}),e.createVNode(c,{tag:"p",size:"sm",weight:"semibold",class:"mb-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.location),1)]),_:1}),e.createElementVNode("div",Ys,[e.createElementVNode("span",Zs,[e.createVNode(i,{icon:"fa-calendar",type:o.data.HostedOnM2?"fa-solid":"fa-regular",color:"accent",size:"sm",class:"mr-3 w-4"},null,8,["type"])]),e.createVNode(c,{tag:"p",size:"sm",class:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.startDate)+" to "+e.toDisplayString(r.endDate),1)]),_:1})]),o.data.HostedOnM2?(e.openBlock(),e.createElementBlock("div",Qs,[e.createElementVNode("span",Js,[e.createVNode(i,{icon:"fa-user-friends",color:"accent",size:"sm",class:"mr-3"})]),e.createVNode(c,{tag:"p",size:"sm",class:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.numberOfFencers)+" Registered Fencers",1)]),_:1})])):e.createCommentVNode("",!0),o.data.HostedOnM2?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Xs,[e.createElementVNode("span",$s,[e.createVNode(i,{icon:"fa-bookmark",type:"fa-regular",color:"accent",size:"sm",class:"mr-3"})]),e.createVNode(c,{tag:"p",size:"sm",class:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.numberOfFencers)+" Bookmarked",1)]),_:1})]))]),e.createElementVNode("section",vs,[e.createElementVNode("div",el,[e.createElementVNode("img",{src:r.image,alt:"Tournament Image",class:"w-28 h-16 object-cover rounded-md",onError:t[1]||(t[1]=(...d)=>r.imageError&&r.imageError(...d)),style:e.normalizeStyle(r.fallbackStyle)},null,44,tl),e.createElementVNode("div",ol,[e.createVNode(c,{tag:"h3",size:"lg",weight:"semibold",class:"mb-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.title),1)]),_:1}),e.createVNode(c,{tag:"p",size:"xs",weight:"semibold",class:"mb-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.location),1)]),_:1})])]),e.createElementVNode("div",rl,[e.createElementVNode("div",nl,[e.createVNode(i,{icon:"fa-user-friends",color:"accent",size:"xs",class:"mr-1"}),e.createVNode(c,{tag:"p",size:"xs",class:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.numberOfFencers)+" Registered",1)]),_:1})]),e.createElementVNode("div",al,[e.createVNode(i,{icon:"fa-calendar",color:"accent",size:"xs",class:"mr-1 w-4"}),e.createVNode(c,{tag:"p",size:"xs",class:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.startDate)+" to "+e.toDisplayString(r.endDate),1)]),_:1})])])])]))],64)}const Fe=b(Us,[["render",sl]]),ll={name:"TournamentDetails",components:{BaseText:w,Icon:V},props:{imageSrc:{type:String,default:"https://via.placeholder.com/800x500"},description:{type:String,default:"<p>This is a sample tournament description. It can be long and may contain HTML.</p>"},shareLinks:{type:Array,default:()=>[{name:"web",url:"https://facebook.com",icon:"fa-globe"},{name:"Facebook",url:"https://facebook.com",icon:"fa-facebook"},{name:"Instagram",url:"https://twitter.com",icon:"fa-instagram"},{name:"Discord",url:"https://linkedin.com",icon:"fa-discord"}]}},mounted(){this.preloadImage(this.imageSrc)},data(){return{}},methods:{preloadImage(n){const t=document.createElement("link");t.rel="preload",t.as="image",t.href=n,document.head.appendChild(t)}}},il={class:"w-full max-w-4xl mx-auto md:p-4"},cl={class:"w-full h-96 md:mb-4"},dl=["src"],ml={class:"flex justify-end items-center w-full md:h-10 rounded-md p-2"},hl=["href"],pl={class:"w-full flex md:py-4 pb-4 md:pb-10"},gl={class:"bg-white p-4 m-2 rounded-lg"},fl=["innerHTML"];function xl(n,t,o,l,a,r){const s=e.resolveComponent("BaseText"),c=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock("section",il,[e.createElementVNode("div",cl,[e.createElementVNode("img",{src:o.imageSrc,alt:"Tournament Image",class:"w-full h-full object-cover md:rounded-lg"},null,8,dl)]),e.createElementVNode("div",ml,[o.shareLinks&&o.shareLinks.length>0?(e.openBlock(),e.createBlock(s,{key:0,color:"primary",size:"md",weight:"normal",class:"mr-2 mt-0.5"},{default:e.withCtx(()=>t[0]||(t[0]=[e.createTextVNode("Links")])),_:1})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.shareLinks,i=>(e.openBlock(),e.createElementBlock("a",{key:i.name,href:i.url,target:"_blank",class:"mx-2 hover:text-accent transition duration-200"},[e.createVNode(c,{type:i.icon==="fa-globe"?"fa-solid":"fa-brands",color:"primary",icon:i.icon,size:"md",class:"hover:text-accent"},null,8,["type","icon"])],8,hl))),128))]),e.createElementVNode("div",pl,[e.createVNode(s,{color:"primary",size:"xl",tag:"h3",weight:"bold",class:"pl-2"},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("Details")])),_:1})]),e.createElementVNode("div",gl,[e.createElementVNode("div",{innerHTML:o.description,class:"text-base text-gray-800"},null,8,fl)])])}const bl=b(ll,[["render",xl]]),ul={name:"TournamentListCard",components:{BaseText:w,Icon:V},props:{data:{type:Object,required:!0},isLoading:{type:Boolean,default:!1}},computed:{tournamentName(){return this.data.Name||"Tournament Name"},addressName(){return this.data.Address?`${this.data.Address.Name}, ${this.data.Address.City}, ${this.data.Address.State}`:"Address Name"},startDate(){return this.formatDate(this.data.StartDate)},startTime(){return"00:00 AM"},tournamentImage(){return this.data.ImagesURLs||"https://meyersquared.com/uploads/defaulttournament.png"},imageAltText(){return this.data.ImagesAltTexts||"Tournament Image"},isBookmarked(){return!1},participants(){return this.data.TotalParticipants||0}},methods:{toggleBookmark(){this.$emit("toggle-bookmark",!this.isBookmarked)},formatDate(n){const t={year:"numeric",month:"short",day:"numeric"};return new Date(n).toLocaleDateString(void 0,t)},handleCardClick(){this.$emit("grid-card-click",this.data)}}},yl={class:"flex pt-1"},wl={class:"relative w-24 h-16 md:w-32 md:h-20 mr-3"},Cl=["src","alt"],kl={key:0,src:"https://meyersquaredimages.com/images/banners/m2-white.png",alt:"Hosted M²",class:"w-6 absolute top-2 left-16 md:left-24 p-1 bg-white rounded"},Nl={class:"flex flex-col"},Vl={class:"flex items-center mb-0"},El={class:"hidden md:flex items-center text-sm text-gray-600 mb-2"},Bl={class:"hidden md:flex mt-3 mb-1"},_l={class:"flex flex-row w-full"},Sl={key:0,class:"flex items-center mr-10"},Tl={key:1,class:"flex items-center mr-4"},Al={class:"flex w-6 justify-center"},zl={class:"flex items-center"},Il={class:"flex flex-col md:hidden mt-2"},Pl={class:"flex items-center pb-2"},Ll={class:"flex flex-row"},Ml={key:0,class:"flex items-center mr-4"},Dl={key:1,class:"flex items-center mr-4"},jl={class:"flex w-6 justify-center mr-2"},Ol={class:"flex items-center"};function Rl(n,t,o,l,a,r){const s=e.resolveComponent("BaseText"),c=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock("section",{class:"flex flex-col md:bg-white w-full border-b pb-2 mb-2 pl-1 pt-1 cursor-pointer last:border-b-0",onClick:t[0]||(t[0]=(...i)=>r.handleCardClick&&r.handleCardClick(...i))},[e.createElementVNode("div",yl,[e.createElementVNode("div",wl,[e.createElementVNode("img",{src:r.tournamentImage,alt:r.imageAltText,class:"w-full h-full object-cover rounded-lg"},null,8,Cl),o.data.HostedOnM2?(e.openBlock(),e.createElementBlock("img",kl)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Nl,[e.createElementVNode("div",Vl,[e.createVNode(s,{color:"primary",tag:"h2",size:"2xl",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.tournamentName),1)]),_:1})]),e.createElementVNode("div",El,[e.createVNode(s,{color:"primary",tag:"p",size:"md",weight:"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.addressName),1)]),_:1})])])]),e.createElementVNode("div",Bl,[e.createElementVNode("div",_l,[o.data.HostedOnM2?(e.openBlock(),e.createElementBlock("div",Sl,[e.createVNode(c,{type:o.data.HostedOnM2?"fa-solid":"fa-regular",icon:"fa-user-friends",size:"sm",color:"accent",class:"mr-4"},null,8,["type"]),e.createVNode(s,{color:"primary",tag:"p",size:"sm",weight:"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.participants)+" signed up",1)]),_:1})])):e.createCommentVNode("",!0),o.data.HostedOnM2?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Tl,[e.createElementVNode("span",Al,[e.createVNode(c,{icon:"fa-bookmark",type:"fa-regular",color:"accent",size:"sm",class:"mr-3"})]),e.createVNode(s,{tag:"p",size:"sm",class:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.participants)+" Bookmarked",1)]),_:1})])),e.createElementVNode("div",zl,[e.createVNode(c,{type:o.data.HostedOnM2?"fa-solid":"fa-regular",icon:"fa-calendar",size:"sm",color:"accent",class:"mr-4"},null,8,["type"]),e.createVNode(s,{color:"primary",tag:"p",size:"sm",weight:"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.startDate)+" | "+e.toDisplayString(r.startTime),1)]),_:1})])])]),e.createElementVNode("div",Il,[e.createElementVNode("div",Pl,[e.createVNode(s,{color:"primary",tag:"p",size:"sm",weight:"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.addressName),1)]),_:1})]),e.createElementVNode("div",Ll,[o.data.HostedOnM2?(e.openBlock(),e.createElementBlock("div",Ml,[e.createVNode(c,{type:o.data.HostedOnM2?"fa-solid":"fa-regular",icon:"fa-user-friends",size:"sm",color:"accent",class:"mr-2"},null,8,["type"]),e.createVNode(s,{color:"primary",tag:"p",size:"xs",weight:"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.participants)+" signed up",1)]),_:1})])):e.createCommentVNode("",!0),o.data.HostedOnM2?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Dl,[e.createElementVNode("span",jl,[e.createVNode(c,{icon:"fa-bookmark",type:"fa-regular",color:"accent",size:"sm",class:"mr-3"})]),e.createVNode(s,{tag:"p",size:"sm",class:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.participants)+" Bookmarked",1)]),_:1})])),e.createElementVNode("div",Ol,[e.createVNode(c,{type:o.data.HostedOnM2?"fa-solid":"fa-regular",icon:"fa-calendar",size:"sm",color:"accent",class:"mr-2"},null,8,["type"]),e.createVNode(s,{color:"primary",tag:"p",size:"xs",weight:"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.startDate)+" | "+e.toDisplayString(r.startTime),1)]),_:1})])])])])}const Fl=b(ul,[["render",Rl]]),Ul={name:"HeroBanner",components:{BaseText:w,BaseButton:T},props:{imageSrc:{type:String,required:!0},title:{type:String,required:!0},description:{type:String,required:!0},buttonLabel:{type:String,required:!0}},data(){return{isMobile:!1}},computed:{backgroundStyle(){return{backgroundImage:`url(${this.imageSrc})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}}},mounted(){this.checkScreenSize(),window.addEventListener("resize",this.checkScreenSize),this.preloadImage(this.imageSrc)},beforeDestroy(){window.removeEventListener("resize",this.checkScreenSize)},methods:{checkScreenSize(){this.isMobile=window.innerWidth<768},onClick(){this.$emit("button-click")},preloadImage(n){const t=document.createElement("link");t.rel="preload",t.as="image",t.href=n,document.head.appendChild(t)}}},Gl={class:"relative w-full md:border-b md:border-l md:border-r border-lineGrey"},Wl=["src"],Hl={class:"hidden md:flex absolute inset-0 items-center justify-start px-8 mt-40"},ql={class:"text-left text-white max-w-lg"},Kl={key:1,class:"flex justify-center text-left w-full px-6 py-4"},Yl={class:"w-full"};function Zl(n,t,o,l,a,r){const s=e.resolveComponent("BaseText"),c=e.resolveComponent("BaseButton");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("section",{id:"hero",class:"relative w-full md:min-h-[500px] flex justify-center bg-primary md:m-0 mt-6",style:e.normalizeStyle(r.backgroundStyle)},[t[0]||(t[0]=e.createElementVNode("div",{class:"hidden md:block w-[150px] bg-primary border-b border-lineGrey flex-shrink-0"},null,-1)),e.createElementVNode("div",Gl,[a.isMobile?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("img",{key:0,src:o.imageSrc,alt:"Hero Image",class:"w-full h-full object-cover"},null,8,Wl)),e.createElementVNode("section",Hl,[e.createElementVNode("div",ql,[e.createVNode(s,{color:"secondary",tag:"h1",size:"4xl",weight:"bold",class:"mb-4"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.title),1)]),_:1}),e.createVNode(s,{color:"secondary",tag:"p",size:"lg",weight:"normal",class:"mb-6"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.description),1)]),_:1}),e.createVNode(c,{label:o.buttonLabel,color:"secondary",border:"gradient1",onClick:r.onClick},null,8,["label","onClick"])])]),a.isMobile?(e.openBlock(),e.createElementBlock("div",Kl,[e.createElementVNode("div",Yl,[e.createVNode(s,{color:"secondary",tag:"h1",size:"md",weight:"bold",class:"mb-2 w-40 mt-16"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.title),1)]),_:1}),e.createVNode(s,{color:"secondary",tag:"p",size:"xs",weight:"normal",class:"mb-2 w-48"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.description),1)]),_:1}),e.createVNode(c,{label:o.buttonLabel,size:"xs",color:"secondary",border:"gradient1",class:"w-32 m-auto",onClick:r.onClick},null,8,["label","onClick"])])])):e.createCommentVNode("",!0)]),t[1]||(t[1]=e.createElementVNode("div",{class:"hidden md:block w-[150px] bg-primary border-b border-lineGrey flex-shrink-0"},null,-1))],4),t[2]||(t[2]=e.createElementVNode("section",{class:"hidden md:flex border-t border-lineGrey w-full bg-primary"},[e.createElementVNode("div",{class:"w-[150px] bg-primary border-b border-lineGrey flex-shrink-0"}),e.createElementVNode("div",{class:"relative w-full border-b border-l border-r border-lineGrey h-36"}),e.createElementVNode("div",{class:"w-[150px] bg-primary border-b border-lineGrey flex-shrink-0"})],-1))],64)}const Ue=b(Ul,[["render",Zl]]),Ql={name:"LeaderboardHeader",components:{BaseText:w,BaseButton:T},props:{weapons:{type:Array,required:!0,default:()=>["Longsword","Rapier","Saber"]}},data(){return{logo:le,selectedWeapon:"Longsword"}},methods:{onWeaponClick(n){this.selectedWeapon=n,this.$emit("weapon-selected",n)}}},Jl={class:"w-full bg-white py-4 flex justify-center h-24"},Xl={class:"container flex justify-between items-center w-full md:w-3/4 overflow-x-auto md:overflow-x-visible"},$l={class:"flex space-x-4 w-full justify-start md:justify-around whitespace-nowrap mx-4 md:mx-0"},vl=["onClick"];function ei(n,t,o,l,a,r){const s=e.resolveComponent("BaseText");return e.openBlock(),e.createElementBlock("header",Jl,[e.createElementVNode("section",Xl,[e.createElementVNode("nav",$l,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.weapons,c=>(e.openBlock(),e.createElementBlock("div",{key:c,onClick:i=>r.onWeaponClick(c),class:"cursor-pointer"},[e.createVNode(s,{color:"primary",size:"md",tag:"p",weight:"normal",onClick:i=>r.onWeaponClick(c),class:e.normalizeClass(["cursor-pointer border-b-2 pb-1 duration-300 ease-in-out px-4 md:p-0",{"border-accent":a.selectedWeapon===c,"hover:border-accent":a.selectedWeapon!==c,"border-transparent px-4 md:p-0":a.selectedWeapon!==c}])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c),1)]),_:2},1032,["onClick","class"])],8,vl))),128))])])])}const ti=b(Ql,[["render",ei]]),oi={name:"SingleButtonBanner",components:{BaseText:w,BaseButton:T},props:{imageUrl:{type:String,default:"https://via.placeholder.com/1200x400"},description:{type:String,default:"Look for a Club? We can help."},buttonLabel:{type:String,default:"Learn More"}},methods:{onClick(){this.$emit("handleButtonClick")}}},ri={class:"relative h-80 max-w-[1200px] mx-4 md:mx-auto rounded-lg overflow-hidden mb-10 bg-primary"},ni={class:"absolute inset-0 flex flex-col justify-center items-center md:items-start text-center md:text-left px-6 md:px-20"};function ai(n,t,o,l,a,r){const s=e.resolveComponent("BaseText"),c=e.resolveComponent("BaseButton");return e.openBlock(),e.createElementBlock("section",ri,[e.createElementVNode("div",{class:"hidden md:block bg-cover bg-top h-full w-full",style:e.normalizeStyle({backgroundImage:"url("+o.imageUrl+")"})},null,4),t[0]||(t[0]=e.createElementVNode("div",{class:"block md:hidden bg-black"},null,-1)),e.createElementVNode("div",ni,[e.createVNode(s,{color:"secondary",tag:"h3",size:"5xl",weight:"normal",class:"hidden md:block mb-8",innerHTML:o.description},null,8,["innerHTML"]),e.createVNode(s,{color:"secondary",tag:"h3",size:"3xl",weight:"normal",class:"md:hidden mb-8",innerHTML:o.description},null,8,["innerHTML"]),e.createVNode(c,{label:o.buttonLabel,size:"xs",color:"secondary",border:"gradient1",onClick:r.onClick,class:"w-40"},null,8,["label","onClick"])])])}const Ge=b(oi,[["render",ai]]),si={name:"DoubleButtonBanner",components:{BaseText:w,BaseButton:T},props:{title:{type:String,required:!0},description:{type:String,default:""},buttonLabelOne:{type:String,required:!0},buttonLabelTwo:{type:String,required:!0}},methods:{onClickOne(){this.$emit("handle-button-click-one")},onClickTwo(){this.$emit("handle-button-click-two")}}},li={class:"max-w-[1200px] mx-auto"},ii={class:"relative w-full h-3/4 flex justify-center bg-primary m-0"},ci={class:"relative w-full border-b border-l border-r border-lineGrey"},di={class:"hidden md:flex h-80 justify-between items-center p-14"},mi={class:"text-left text-white max-w-lg w-96"},hi={class:"flex flex-col w-1/3 align-right"},pi={class:"flex justify-center md:hidden text-left bg-primary w-full"},gi={class:"w-full px-6 py-8 text-center flex flex-col justify-center items-center"};function fi(n,t,o,l,a,r){const s=e.resolveComponent("BaseText"),c=e.resolveComponent("BaseButton");return e.openBlock(),e.createElementBlock("section",li,[t[2]||(t[2]=e.createElementVNode("section",{class:"hidden md:flex border-t border-lineGrey w-full bg-primary"},[e.createElementVNode("div",{class:"w-[150px] h-[150px] bg-primary border-b border-lineGrey flex-shrink-0"}),e.createElementVNode("div",{class:"flex-grow h-[150px] border-b border-l border-r border-lineGrey"}),e.createElementVNode("div",{class:"w-[150px] h-[150px] bg-primary border-b border-lineGrey flex-shrink-0"})],-1)),e.createElementVNode("section",ii,[t[0]||(t[0]=e.createElementVNode("div",{class:"w-[150px] bg-primary border-b border-lineGrey flex-shrink-0"},null,-1)),e.createElementVNode("div",ci,[e.createElementVNode("section",di,[e.createElementVNode("div",mi,[e.createVNode(s,{color:"secondary",tag:"h1",size:"5xl",weight:"normal",class:"mb-4"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.title),1)]),_:1})]),e.createElementVNode("div",hi,[e.createVNode(c,{label:o.buttonLabelOne,size:"xs",color:"secondary",border:"gradient1",weight:"normal",align:"between",class:"mb-4 w-52 h-16 pl-8",iconName:"fa-arrow-right-long",iconColor:"secondary",iconSize:"lg",iconType:"fa-thin",onClick:r.onClickOne},null,8,["label","onClick"]),e.createVNode(c,{label:o.buttonLabelTwo,size:"xs",color:"secondary",border:"gradient2",weight:"normal",class:"w-52 h-16 pl-8",iconName:"fa-arrow-right-long",iconColor:"secondary",iconSize:"lg",iconType:"fa-thin",align:"between",onClick:r.onClickOne},null,8,["label","onClick"])])])]),t[1]||(t[1]=e.createElementVNode("div",{class:"w-[150px] bg-primary border-b border-lineGrey flex-shrink-0"},null,-1))]),t[3]||(t[3]=e.createElementVNode("section",{class:"hidden md:flex border-t border-lineGrey w-full bg-primary"},[e.createElementVNode("div",{class:"w-[150px] h-[150px] bg-primary border-b border-lineGrey flex-shrink-0"}),e.createElementVNode("div",{class:"flex-grow h-[150px] border-b border-l border-r border-lineGrey"}),e.createElementVNode("div",{class:"w-[150px] h-[150px] bg-primary border-b border-lineGrey flex-shrink-0"})],-1)),e.createElementVNode("section",pi,[e.createElementVNode("div",gi,[e.createVNode(s,{color:"secondary",tag:"h1",size:"2xl",weight:"normal",class:"mb-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.title),1)]),_:1}),e.createVNode(s,{color:"secondary",tag:"p",size:"sm",weight:"normal",class:"mb-6"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.description),1)]),_:1}),e.createVNode(c,{label:o.buttonLabelOne,size:"xs",color:"secondary",border:"gradient1",weight:"normal",align:"between",class:"mb-4 w-full h-16 pl-8",iconName:"fa-arrow-right-long",iconColor:"secondary",iconSize:"lg",iconType:"fa-thin",onClick:r.onClickOne},null,8,["label","onClick"]),e.createVNode(c,{label:o.buttonLabelTwo,size:"xs",color:"secondary",border:"gradient2",weight:"normal",class:"w-full h-16 pl-8",iconName:"fa-arrow-right-long",iconColor:"secondary",iconSize:"lg",iconType:"fa-thin",align:"between",onClick:r.onClickOne},null,8,["label","onClick"])])])])}const We=b(si,[["render",fi]]),xi={name:"Footer",components:{Icon:V,InputField:W,BaseButton:T,BaseText:w},data(){return{logo:le}},methods:{pageChange(n){this.$emit("changePage",n)}}},bi={class:"hidden md:flex flex-col bg-primary"},ui={class:"w-full hidden md:flex"},yi={class:"w-1/3"},wi={class:"items-center w-full flex justify-center"},Ci=["src"],ki={class:"w-1/3 flex flex-col"},Ni={class:"w-full flex justify-around"},Vi={class:"flex w-1/3"},Ei={class:"flex w-1/3"},Bi={class:"flex items-center w-1/3"},_i={class:"w-full flex justify-around"},Si={class:"flex items-center w-1/3"},Ti={class:"flex items-center w-1/3"},Ai={class:"flex items-center w-1/3"},zi={class:"w-full flex justify-around"},Ii={class:"flex items-center w-1/3"},Pi={class:"flex items-center w-1/3"},Li={class:"flex w-1/3"},Mi={class:"w-1/3 flex flex-col"},Di={class:"w-full flex justify-end"},ji={class:"w-30 mr-16"},Oi={class:"w-full flex justify-end mt-12"},Ri={class:"w-48 mr-16"},Fi={class:"h-32 border border-t mt-10 pb-10 border-lineGrey flex flex-col justify-center items-center"},Ui={class:"flex md:hidden flex-col items-center bg-primary pb-10"},Gi={class:"w-full flex flex-col items-center"},Wi={class:"w-full max-w-xs flex justify-between items-center"},Hi={class:"flex justify-center w-1/2"},qi=["src"],Ki={class:"flex flex-col w-1/2"},Yi={class:"w-full flex flex-col items-center"},Zi={class:"w-full max-w-xs flex flex-col items-center pt-8 px-6"},Qi={class:"w-full max-w-xs flex flex-col items-center pt-8"},Ji={class:"flex justify-center"};function Xi(n,t,o,l,a,r){const s=e.resolveComponent("BaseText"),c=e.resolveComponent("InputField"),i=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("section",bi,[t[25]||(t[25]=e.createElementVNode("div",{class:"h-20"},null,-1)),e.createElementVNode("section",ui,[e.createElementVNode("div",yi,[e.createElementVNode("div",wi,[e.createElementVNode("img",{src:a.logo,alt:"Logo",class:"w-[71px] h-[56px]"},null,8,Ci)])]),e.createElementVNode("div",ki,[e.createElementVNode("div",Ni,[e.createElementVNode("div",Vi,[e.createElementVNode("a",{href:"#",onClick:t[0]||(t[0]=e.withModifiers(d=>r.pageChange("tournaments"),["prevent"]))},[e.createVNode(s,{color:"secondary",size:"md",tag:"p",weight:"normal",class:"pb-2"},{default:e.withCtx(()=>t[12]||(t[12]=[e.createTextVNode("Tournaments")])),_:1})])]),e.createElementVNode("div",Ei,[e.createElementVNode("a",{href:"#",onClick:t[1]||(t[1]=e.withModifiers(d=>r.pageChange("clubs"),["prevent"]))},[e.createVNode(s,{color:"secondary",size:"md",tag:"p",weight:"normal",class:"pb-2"},{default:e.withCtx(()=>t[13]||(t[13]=[e.createTextVNode("Clubs")])),_:1})]),t[14]||(t[14]=e.createTextVNode("a "))]),e.createElementVNode("div",Bi,[e.createElementVNode("a",{href:"#",onClick:t[2]||(t[2]=e.withModifiers(d=>r.pageChange("leaderboard"),["prevent"]))},[e.createVNode(s,{color:"secondary",size:"md",tag:"p",weight:"normal",class:"pb-2"},{default:e.withCtx(()=>t[15]||(t[15]=[e.createTextVNode("Leaderboard")])),_:1})])])]),e.createElementVNode("div",_i,[e.createElementVNode("div",Si,[e.createElementVNode("a",{href:"#",onClick:t[3]||(t[3]=e.withModifiers(d=>r.pageChange("tournaments"),["prevent"]))},[e.createVNode(s,{color:"secondary",size:"sm",tag:"p",weight:"thin",class:"pb-2"},{default:e.withCtx(()=>t[16]||(t[16]=[e.createTextVNode("Upcoming")])),_:1})])]),e.createElementVNode("div",Ti,[e.createElementVNode("a",{href:"#",onClick:t[4]||(t[4]=e.withModifiers(d=>r.pageChange("clubs"),["prevent"]))},[e.createVNode(s,{color:"secondary",size:"sm",tag:"p",weight:"thin",class:"pb-2"},{default:e.withCtx(()=>t[17]||(t[17]=[e.createTextVNode("Club List")])),_:1})])]),e.createElementVNode("div",Ai,[e.createElementVNode("a",{href:"#",onClick:t[5]||(t[5]=e.withModifiers(d=>r.pageChange("leaderboard"),["prevent"]))},[e.createVNode(s,{color:"secondary",size:"sm",tag:"p",weight:"thin",class:"pb-2"},{default:e.withCtx(()=>t[18]||(t[18]=[e.createTextVNode("Top Fencers")])),_:1})])])]),e.createElementVNode("div",zi,[e.createElementVNode("div",Ii,[e.createElementVNode("a",{href:"#",onClick:t[6]||(t[6]=e.withModifiers(d=>r.pageChange("tournaments"),["prevent"]))},[e.createVNode(s,{color:"secondary",size:"sm",tag:"p",weight:"thin",class:"pb-2"},{default:e.withCtx(()=>t[19]||(t[19]=[e.createTextVNode("Past")])),_:1})])]),e.createElementVNode("div",Pi,[e.createElementVNode("a",{href:"#",onClick:t[7]||(t[7]=e.withModifiers(d=>r.pageChange("clubs"),["prevent"]))},[e.createVNode(s,{color:"secondary",size:"sm",tag:"p",weight:"thin",class:"pb-2"},{default:e.withCtx(()=>t[20]||(t[20]=[e.createTextVNode("Local Clubs")])),_:1})])]),e.createElementVNode("div",Li,[e.createElementVNode("a",{href:"#",onClick:t[8]||(t[8]=e.withModifiers(d=>r.pageChange("leaderboard"),["prevent"]))},[e.createVNode(s,{color:"secondary",size:"sm",tag:"p",weight:"thin",class:"pb-2"},{default:e.withCtx(()=>t[21]||(t[21]=[e.createTextVNode("By Weapon")])),_:1})])])])]),e.createElementVNode("div",Mi,[e.createElementVNode("div",Di,[e.createElementVNode("div",ji,[e.createVNode(s,{color:"secondary",size:"md",tag:"p",weight:"thin",class:"pb-4"},{default:e.withCtx(()=>t[22]||(t[22]=[e.createTextVNode("Subscribe")])),_:1}),e.createVNode(c,{placeholder:"Email",type:"email",class:"w-52"})])]),e.createElementVNode("div",Oi,[e.createElementVNode("div",Ri,[e.createVNode(s,{color:"secondary",size:"md",tag:"p",weight:"thin",class:"pb-2"},{default:e.withCtx(()=>t[23]||(t[23]=[e.createTextVNode("Follow Us")])),_:1}),e.createElementVNode("div",null,[e.createVNode(i,{type:"fa-brands",icon:"fa-facebook",color:"secondary",size:"lg",class:"mr-4"}),e.createVNode(i,{type:"fa-brands",icon:"fa-discord",color:"secondary",size:"lg",class:"mr-4"}),e.createVNode(i,{type:"fa-brands",icon:"fa-instagram",color:"secondary",size:"lg",class:"mr-4"}),e.createVNode(i,{type:"fa-brands",icon:"fa-youtube",color:"secondary",size:"lg",class:"mr-4"})])])])])]),e.createElementVNode("div",Fi,[e.createVNode(s,{color:"secondary",size:"sm",tag:"p",weight:"normal",class:"text-center pt-4"},{default:e.withCtx(()=>t[24]||(t[24]=[e.createTextVNode("© Copyright Meyer Squared 2024. All rights reserved.")])),_:1})])]),e.createElementVNode("section",Ui,[t[31]||(t[31]=e.createElementVNode("div",{class:"h-8"},null,-1)),e.createElementVNode("div",Gi,[e.createElementVNode("div",Wi,[e.createElementVNode("div",Hi,[e.createElementVNode("img",{src:a.logo,alt:"Logo",class:"w-[94px] h-[74px]"},null,8,qi)]),e.createElementVNode("div",Ki,[e.createElementVNode("a",{href:"#",onClick:t[9]||(t[9]=e.withModifiers(d=>r.pageChange("tournaments"),["prevent"]))},[e.createVNode(s,{color:"secondary",size:"md",tag:"p",weight:"normal",class:"mb-2"},{default:e.withCtx(()=>t[26]||(t[26]=[e.createTextVNode("Tournaments")])),_:1})]),e.createElementVNode("a",{href:"#",onClick:t[10]||(t[10]=e.withModifiers(d=>r.pageChange("tournaments"),["prevent"]))},[e.createVNode(s,{color:"secondary",size:"sm",tag:"p",weight:"normal",class:"mb-2"},{default:e.withCtx(()=>t[27]||(t[27]=[e.createTextVNode("Upcoming")])),_:1})]),e.createElementVNode("a",{href:"#",onClick:t[11]||(t[11]=e.withModifiers(d=>r.pageChange("tournaments"),["prevent"]))},[e.createVNode(s,{color:"secondary",size:"sm",tag:"p",weight:"normal",class:"mb-2"},{default:e.withCtx(()=>t[28]||(t[28]=[e.createTextVNode("Past")])),_:1})])])])]),e.createElementVNode("div",Yi,[e.createElementVNode("div",Zi,[e.createVNode(s,{color:"secondary",size:"md",tag:"p",weight:"thin",class:"pb-4 w-full"},{default:e.withCtx(()=>t[29]||(t[29]=[e.createTextVNode("Subscribe for Updates")])),_:1}),e.createVNode(c,{placeholder:"Email",type:"email",class:"w-full"})]),e.createElementVNode("div",Qi,[e.createVNode(s,{color:"secondary",size:"md",tag:"p",weight:"thin",class:"pb-2"},{default:e.withCtx(()=>t[30]||(t[30]=[e.createTextVNode("Follow Us")])),_:1}),e.createElementVNode("div",Ji,[e.createVNode(i,{type:"fa-brands",icon:"fa-facebook",color:"secondary",size:"lg",class:"mr-4"}),e.createVNode(i,{type:"fa-brands",icon:"fa-discord",color:"secondary",size:"lg",class:"mr-4"}),e.createVNode(i,{type:"fa-brands",icon:"fa-instagram",color:"secondary",size:"lg",class:"mr-4"}),e.createVNode(i,{type:"fa-brands",icon:"fa-youtube",color:"secondary",size:"lg",class:"mr-4"})])])])])],64)}const He=b(xi,[["render",Xi]]),$i={name:"HomePage",components:{RatingSystemAnnouncement:Re,BaseText:w,Footer:He,DoubleButtonBanner:We,SingleButtonBanner:Ge,GridLayout:ie,ArticleCard:de,FencerCard:me,PageHeader:Me,HeroBanner:Ue,ScrollNav:je},props:{title:{type:String,default:"Hero Banner Title"},description:{type:String,default:"This is the description that goes under the hero banner."},buttonLabel:{type:String,default:"Click Here"},imageSrc:{type:String,default:"https://meyersquared.com/images/Banner2.png"},tournaments:{type:Array,default:()=>[]},tournamentsIsLoading:{type:Boolean,default:!1},articles:{type:Array,default:()=>[]},articlesIsLoading:{type:Boolean,default:!1},topFencers:{type:Array,default:()=>[]},topFencersIsLoading:{type:Boolean,default:!1}},computed:{ArticleCard(){return de},FencerCard(){return me},limitedTournaments(){return this.tournaments.slice(0,6)}},mounted(){this.checkScreenSize(),window.addEventListener("resize",this.checkScreenSize)},beforeUnmount(){window.removeEventListener("resize",this.checkScreenSize)},data(){return{TournamentCard:e.markRaw(Fe),mobileHorizontal:!0}},methods:{checkScreenSize(){this.mobileHorizontal=window.matchMedia("(max-width: 768px)").matches},handleGridCardClick(){console.log("Grid Card Clicked")},changePage(n){console.log("Change Page",n)}}},vi={class:"m-0 w-full bg-secondary"};function ec(n,t,o,l,a,r){const s=e.resolveComponent("PageHeader"),c=e.resolveComponent("HeroBanner"),i=e.resolveComponent("ScrollNav"),d=e.resolveComponent("GridLayout"),m=e.resolveComponent("SingleButtonBanner"),h=e.resolveComponent("RatingSystemAnnouncement"),p=e.resolveComponent("DoubleButtonBanner"),f=e.resolveComponent("Footer");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",vi,[e.createVNode(s,{onChangePage:r.changePage},null,8,["onChangePage"]),e.createVNode(c,{title:o.title,buttonLabel:o.buttonLabel,description:o.description,imageSrc:o.imageSrc},null,8,["title","buttonLabel","description","imageSrc"]),e.createVNode(i,{buffer:200}),e.createVNode(d,{cardComponent:a.TournamentCard,items:r.limitedTournaments,maxColumns:3,isLoading:o.articlesIsLoading,moreButtonLabel:"See All Tournaments",title:"Upcoming",onGridClick:t[0]||(t[0]=g=>r.changePage("tournaments")),onGridCardClick:r.handleGridCardClick},null,8,["cardComponent","items","isLoading","onGridCardClick"]),e.createVNode(m,{buttonLabel:"Learn More",description:"Look for a Club? <br> We can help.",imageUrl:"https://meyersquared.com/images/banners/largebanner03.jpg",onHandleButtonClick:t[1]||(t[1]=g=>r.changePage("clubs"))}),e.createVNode(h),e.createVNode(p,{title:"How Does Meyer Squared work?","button-label-two":"Run a tournament","button-label-one":"Submit Results",onHandleButtonClickOne:t[2]||(t[2]=g=>r.changePage("submitresults")),onHandleButtonClickTwo:t[3]||(t[3]=g=>r.changePage("runtournament"))}),e.createVNode(d,{cardComponent:r.ArticleCard,items:o.articles,maxColumns:3,mobileHorizontal:a.mobileHorizontal,isLoading:o.articlesIsLoading,moreButtonLabel:"See More",title:"Interesting Articles",onGridClick:t[4]||(t[4]=g=>r.changePage("articles")),onGridCardClick:r.handleGridCardClick},null,8,["cardComponent","items","mobileHorizontal","isLoading","onGridCardClick"])]),e.createVNode(f,{onChangePage:r.changePage},null,8,["onChangePage"])],64)}const tc=b($i,[["render",ec]]);u.ArticleCard=de,u.BaseButton=T,u.BaseText=w,u.BreadCrumbs=eo,u.Calendar=mt,u.ClubHeader=Jo,u.ClubListCard=Ya,u.ClubMember=$a,u.ContactUsForm=Fr,u.DoubleButtonBanner=We,u.EventListCard=gs,u.FencerCard=me,u.FencerListCard=ce,u.Footer=He,u.GridLayout=ie,u.GridLivePool=ia,u.GridPool=Sa,u.GridTabs=wn,u.HeroBanner=Ue,u.HomePage=tc,u.HostColumn=Mo,u.Icon=V,u.InputField=W,u.LeaderboardHeader=ti,u.Mapbox=Le,u.PageHeader=Me,u.PhotoCard=Bs,u.ProgressTracker=Qt,u.RatingSystemAnnouncement=Re,u.ScrollNav=je,u.SearchBox=X,u.SingleButtonBanner=Ge,u.SocialMediaLinkCard=js,u.TabHeader=yo,u.TournamentBanner=Dr,u.TournamentCard=Fe,u.TournamentDetails=bl,u.TournamentDetailsBanner=_r,u.TournamentHeader=or,u.TournamentListCard=Fl,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})});
|
|
37
|
+
`}},methods:{selectTab(n){this.selectedTab=n},mapEventPersonsToPersons(n){return n.map(o=>({...o.Person,PoolPosition:o.PoolPosition,Status:o.Status,DEPosition:o.DEPosition})).sort((o,l)=>o.PoolPosition-l.PoolPosition)}}},fn={class:"w-full pb-2 rounded-lg"},xn={class:"max-w-[1200px] w-full flex justify-between mx-auto py-4 md:py-8 pl-4 pr-4 rounded-tr-lg rounded-tl-lg"},bn={class:"flex"},un={class:"max-w-[1200px] md:w-full flex mx-2 md:mx-auto pt-4 pb-4 pl-4 bg-white rounded-tr-lg rounded-tl-lg"};function yn(n,t,o,l,a,r){const s=e.resolveComponent("BaseText"),c=e.resolveComponent("Icon"),i=e.resolveComponent("Tooltip"),d=e.resolveComponent("GridLayout");return e.openBlock(),e.createElementBlock("div",fn,[e.createElementVNode("div",xn,[e.createVNode(s,{color:"primary",size:"",tag:"h3",weight:"bold",class:"text-sm md:text-xl"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(`Fencers in ${o.pools[a.selectedTab].Name}`),1)]),_:1}),e.createElementVNode("div",bn,[e.createVNode(s,{color:"primary",size:"",tag:"h3",weight:"bold",class:"text-sm md:text-xl"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(`${o.pools[a.selectedTab].poolStrengthInd} Strength Indicator`),1)]),_:1}),e.createVNode(i,{text:a.tooltipContent,width:"w-[500px]",position:"left"},{default:e.withCtx(()=>[e.createVNode(c,{icon:"fa-circle-info",color:"primary",size:"md",class:"hidden md:block ml-2"})]),_:1},8,["text"])])]),e.createElementVNode("div",un,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.pools,(m,h)=>(e.openBlock(),e.createElementBlock("span",{key:m.PoolId},[e.createVNode(s,{color:"primary",size:"",tag:"p",weight:"",title:"",class:e.normalizeClass(["mr-10 border-b-2 hover:border-accent pb-2 duration-300 ease-in-out text-sm md:text-lg",a.selectedTab===h?"border-accent":"border-white"]),onClick:p=>r.selectTab(h)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.Name),1)]),_:2},1032,["class","onClick"])]))),128))]),e.createVNode(d,{cardComponent:r.FencerListCard,items:r.mappedPersons,maxColumns:1,isLoading:!1,whiteStyle:!0,class:"-mt-1"},null,8,["cardComponent","items"])])}const wn=b(gn,[["render",yn]]),Cn={components:{BaseButton:T,BaseText:w},props:{bout:{type:Object,required:!0},isWaiting:{type:Boolean,required:!1,default:!1},timerStatus:{type:String,required:!1,default:"stopped"},hostingClubColors:{type:Object,required:!0}},data(){var n;return{remainingTime:((n=this.bout)==null?void 0:n.TimeLeft)||0,interval:null,missingPortrait:G}},mounted(){this.timerStatus==="running"&&this.startTimer()},beforeDestroy(){this.stopTimer()},computed:{status(){return this.isWaiting?"waiting":this.bout.Status},fencer1Name(){return this.isWaiting?"Waiting to be selected":this.bout.Person1.DisplayName},fencer1Team(){return this.isWaiting?"starting soon":this.bout.Person1.Club.Name},fencer1Portrait(){return this.isWaiting?this.missingPortrait:this.bout.Person1.Images.length?this.bout.Person1.Images[0].URL:this.missingPortrait},fencer1Score(){return this.isWaiting||this.bout.Status==="Scheduled"?"-":this.bout.Score1},fencer2Name(){return this.isWaiting?"Waiting to be selected":this.bout.Person2.DisplayName},fencer2Team(){return this.isWaiting?"starting soon":this.bout.Person2.Club.Name},fencer2Portrait(){return this.isWaiting?this.missingPortrait:this.bout.Person2.Images.length?this.bout.Person2.Images[0].URL:this.missingPortrait},fencer2Score(){return this.isWaiting||this.bout.Status==="Scheduled"?"-":this.bout.Score2},displayTime(){const n=Math.floor(this.remainingTime/60).toString().padStart(2,"0"),t=(this.remainingTime%60).toString().padStart(2,"0");return`${n}:${t}`}},methods:{startTimer(){this.interval&&clearInterval(this.interval),this.interval=setInterval(()=>{this.remainingTime>0?this.remainingTime--:this.stopTimer()},1e3)},stopTimer(){this.interval&&clearInterval(this.interval),this.interval=null}}},kn={class:"flex items-center justify-between rounded-lg w-full"},Nn={class:"flex space-x-4 items-center"},Vn=["src"],En={key:0,class:"w-2/12 h-16 pt-3 text-center bg-primary"},Bn={class:"flex justify-between space-x-4 ml-4 w-full"},_n={class:"flex"},Sn={class:"pt-1"},Tn={class:"pl-2"},An=["src"],zn={key:0,class:"text-left"};function In(n,t,o,l,a,r){const s=e.resolveComponent("BaseText");return e.openBlock(),e.createElementBlock("section",null,[e.createElementVNode("div",kn,[e.createElementVNode("div",{class:e.normalizeClass(["w-5/12 flex justify-between border-l border-t border-b p-2 bg-poolBox rounded-l-xl",[r.status!=="Active"?"border-r":""]])},[e.createElementVNode("div",Nn,[e.createElementVNode("div",null,[e.createElementVNode("div",{class:e.normalizeClass(`w-4 h-4 rounded-full bg-${o.hostingClubColors.Color1} absolute mt-8 ml-9`)},null,2),e.createElementVNode("img",{src:r.fencer1Portrait,alt:"Portrait",class:"w-12 h-12 rounded-full"},null,8,Vn)]),e.createElementVNode("div",null,[e.createVNode(s,{size:"md",color:"primary",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer1Name),1)]),_:1}),e.createVNode(s,{size:"xs",color:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer1Team),1)]),_:1})])]),e.createVNode(s,{size:"3xl",weight:"bold",class:"align-middle pr-3 pt-0.5"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer1Score),1)]),_:1})],2),o.bout.Status==="Active"?(e.openBlock(),e.createElementBlock("div",En,[e.createVNode(s,{size:"2xl",color:"white",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.displayTime),1)]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["w-5/12 flex justify-between border-r border-t border-b p-2 bg-poolBox rounded-r-xl",[r.status!=="Active"?"border-l":""]])},[e.createElementVNode("div",Bn,[e.createVNode(s,{size:"3xl",weight:"bold",class:"pl-3 pt-0.5"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer2Score),1)]),_:1}),e.createElementVNode("div",_n,[e.createElementVNode("div",Sn,[e.createVNode(s,{size:"md",color:"primary",weight:"bold",class:"text-right"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer2Name),1)]),_:1}),e.createVNode(s,{size:"xs",color:"primary",class:"text-right"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer2Team),1)]),_:1})]),e.createElementVNode("div",Tn,[e.createElementVNode("div",{class:e.normalizeClass(`w-4 h-4 rounded-full bg-${o.hostingClubColors.Color2} absolute mt-8 mr-14`)},null,2),e.createElementVNode("img",{src:r.fencer2Portrait,alt:"Portrait",class:"w-12 h-12 rounded-full"},null,8,An)])])])],2)]),o.bout.customStatus&&r.status!=="Active"?(e.openBlock(),e.createElementBlock("div",zn,[e.createVNode(s,{size:"sm",color:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.bout.customStatus),1)]),_:1})])):e.createCommentVNode("",!0)])}const Pn=b(Cn,[["render",In]]),Ln={components:{BaseText:w},props:{bout:{type:Object,required:!0},isWaiting:{type:Boolean,required:!1,default:!1},timerStatus:{type:String,required:!1,default:"stopped"},hostingClubColors:{type:Object,required:!0}},data(){var n;return{remainingTime:((n=this.bout)==null?void 0:n.TimeLeft)||0,interval:null,missingPortrait:G}},mounted(){this.timerStatus==="running"&&this.startTimer()},beforeDestroy(){this.stopTimer()},computed:{status(){return this.isWaiting?"waiting":this.bout.Status},fencer1Name(){return this.isWaiting?"Waiting to be selected":this.bout.Person1.DisplayName},fencer1Club(){return this.isWaiting?"starting soon":this.bout.Person1.Club.Name},fencer1Portrait(){return this.isWaiting?this.missingPortrait:this.bout.Person1.Images.length?this.bout.Person1.Images[0].URL:this.missingPortrait},fencer1Score(){return this.isWaiting||this.bout.Status==="Scheduled"?"-":this.bout.Score1},fencer2Name(){return this.isWaiting?"Waiting to be selected":this.bout.Person2.DisplayName},fencer2Club(){return this.isWaiting?"starting soon":this.bout.Person2.Club.Name},fencer2Portrait(){return this.isWaiting?this.missingPortrait:this.bout.Person2.Images.length?this.bout.Person2.Images[0].URL:this.missingPortrait},fencer2Score(){return this.isWaiting||this.bout.Status==="Scheduled"?"-":this.bout.Score2},displayTime(){const n=Math.floor(this.remainingTime/60).toString().padStart(2,"0"),t=(this.remainingTime%60).toString().padStart(2,"0");return`${n}:${t}`}},methods:{startTimer(){this.interval&&clearInterval(this.interval),this.interval=setInterval(()=>{this.remainingTime>0?this.remainingTime--:this.stopTimer()},1e3)},stopTimer(){this.interval&&clearInterval(this.interval),this.interval=null}}},Mn={class:"flex flex-col items-center w-full space-y-2 p-4 bg-poolBox rounded-lg relative"},Dn={key:0,class:"text-center"},jn={class:"flex items-center justify-between w-full relative"},On={class:"flex flex-col items-center p-1"},Rn={class:"flex justify-between w-full"},Fn=["src"],Un={class:"text-left"},Gn={class:"absolute top-2 inset-x-0 text-center z-10 flex justify-center"},Wn={key:0,class:"bg-primary p-2 rounded-lg"},Hn={key:1,class:"w-4"},qn={class:"flex flex-col items-center"},Kn={class:"flex justify-end w-full"},Yn=["src"],Zn={class:"text-right"};function Qn(n,t,o,l,a,r){const s=e.resolveComponent("BaseText");return e.openBlock(),e.createElementBlock("section",Mn,[o.bout.customStatus&&r.status!=="Active"?(e.openBlock(),e.createElementBlock("div",Dn,[e.createVNode(s,{size:"sm",color:"primary",weight:"bold",class:"pb-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.bout.customStatus),1)]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",jn,[e.createElementVNode("div",On,[e.createElementVNode("div",Rn,[e.createElementVNode("img",{src:r.fencer1Portrait,alt:"Portrait",class:e.normalizeClass(`w-12 h-12 rounded-full mb-2 border-2 border-${o.hostingClubColors.Color1}`)},null,10,Fn)]),e.createElementVNode("div",Un,[e.createVNode(s,{size:"sm",color:"primary",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer1Name),1)]),_:1}),e.createVNode(s,{size:"xs",color:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer1Club),1)]),_:1})])]),e.createElementVNode("div",Gn,[e.createVNode(s,{size:"4xl",weight:"bold",class:"pr-4 -mt-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer1Score),1)]),_:1}),r.status==="Active"?(e.openBlock(),e.createElementBlock("div",Wn,[e.createVNode(s,{size:"sm",color:"white",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.displayTime),1)]),_:1})])):e.createCommentVNode("",!0),r.status!=="Active"?(e.openBlock(),e.createElementBlock("div",Hn)):e.createCommentVNode("",!0),e.createVNode(s,{size:"4xl",weight:"bold",class:"pl-4 -mt-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer1Score),1)]),_:1})]),e.createElementVNode("div",qn,[e.createElementVNode("div",Kn,[e.createElementVNode("img",{src:r.fencer2Portrait,alt:"Portrait",class:e.normalizeClass(`w-12 h-12 rounded-full mb-2 border-2 border-${o.hostingClubColors.Color2}`)},null,10,Yn)]),e.createElementVNode("div",Zn,[e.createVNode(s,{size:"sm",color:"primary",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer2Name),1)]),_:1}),e.createVNode(s,{size:"xs",color:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer2Club),1)]),_:1})])])])])}const Jn={name:"GridLivePool",components:{BoutCardMobile:b(Ln,[["render",Qn]]),BoutCard:Pn,BaseText:w},props:{bouts:{type:Array,required:!0},eventRules:{type:Object,required:!0},hostingClubColors:{type:Object,required:!0}},data(){return{isMobile:!1}},computed:{upcomingBouts(){return this.bouts.filter(n=>n.Status==="Scheduled")},completedBouts(){return this.bouts.filter(n=>n.Status==="Completed")},activeBouts(){return this.bouts.filter(n=>n.Status==="Active")},hasActiveBout(){return this.activeBouts.length>0},hasCompletedBout(){return this.completedBouts.length>0},remainingBoutsCount(){return this.upcomingBouts.length},markedUpcomingBouts(){const n=["On Deck","In The Hole","Preparing"];return this.upcomingBouts.map((t,o)=>o<n.length?{...t,customStatus:n[o]}:t)}},watch:{bouts:{handler(){this.$forceUpdate()},deep:!0}},mounted(){this.checkViewport(),window.addEventListener("resize",this.checkViewport)},beforeDestroy(){window.removeEventListener("resize",this.checkViewport)},methods:{checkViewport(){console.log("checkViewport",window.innerWidth),this.isMobile=window.innerWidth<=768}}},Xn={key:0},$n={class:"w-full flex flex-col items-center"},vn={key:0,class:"w-full md:w-3/4 md:my-4"},ea={key:1},ta={class:"flex flex-row justify-between"},oa={class:"flex mr-1"},ra={class:"w-full flex flex-col items-center"},na={key:2},aa={class:"flex flex-row"},sa={class:"w-full flex flex-col items-center"};function la(n,t,o,l,a,r){const s=e.resolveComponent("BoutCard"),c=e.resolveComponent("BoutCardMobile"),i=e.resolveComponent("BaseText");return e.openBlock(),e.createElementBlock("section",null,[r.remainingBoutsCount>0?(e.openBlock(),e.createElementBlock("section",Xn,[t[0]||(t[0]=e.createElementVNode("div",{class:"border-b border-dropdownSelect mb-8"},null,-1)),e.createElementVNode("div",$n,[r.hasActiveBout?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",vn,[a.isMobile?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(s,{key:0,bout:{},hostingClubColors:o.hostingClubColors,isWaiting:!0},null,8,["hostingClubColors"])),a.isMobile?(e.openBlock(),e.createBlock(c,{key:1,bout:{},hostingClubColors:o.hostingClubColors,isWaiting:!0},null,8,["hostingClubColors"])):e.createCommentVNode("",!0)])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.activeBouts,d=>(e.openBlock(),e.createElementBlock("div",{key:d.BoutId,class:"w-full md:w-3/4 md:my-4"},[a.isMobile?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(s,{key:0,bout:d,hostingClubColors:o.hostingClubColors},null,8,["bout","hostingClubColors"])),a.isMobile?(e.openBlock(),e.createBlock(c,{key:1,bout:d,hostingClubColors:o.hostingClubColors},null,8,["bout","hostingClubColors"])):e.createCommentVNode("",!0)]))),128))])])):e.createCommentVNode("",!0),r.remainingBoutsCount>0?(e.openBlock(),e.createElementBlock("section",ea,[e.createElementVNode("div",ta,[e.createVNode(i,{class:"mt-5",color:"primaryHighlight",size:"md",text:"Upcoming",weight:"bold"}),e.createElementVNode("div",oa,[e.createVNode(i,{class:"mt-5 ml-5",color:"primaryHighlight",size:"md"},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("Remaining bouts:")])),_:1}),e.createVNode(i,{class:"mt-5 ml-2",color:"primaryHighlight",size:"md",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.remainingBoutsCount),1)]),_:1})])]),t[2]||(t[2]=e.createElementVNode("div",{class:"border-b border-dropdownSelect mb-5"},null,-1)),e.createElementVNode("div",ra,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.markedUpcomingBouts,d=>(e.openBlock(),e.createElementBlock("div",{key:d.BoutId,class:"w-full md:w-3/4 md:my-4"},[a.isMobile?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(s,{key:0,bout:d,hostingClubColors:o.hostingClubColors},null,8,["bout","hostingClubColors"])),a.isMobile?(e.openBlock(),e.createBlock(c,{key:1,bout:d,hostingClubColors:o.hostingClubColors},null,8,["bout","hostingClubColors"])):e.createCommentVNode("",!0)]))),128))])])):e.createCommentVNode("",!0),r.hasCompletedBout>0?(e.openBlock(),e.createElementBlock("section",na,[e.createElementVNode("div",aa,[r.remainingBoutsCount===0?(e.openBlock(),e.createBlock(i,{key:0,class:"mt-8",color:"primaryHighlight",size:"md",weight:"bold"},{default:e.withCtx(()=>t[3]||(t[3]=[e.createTextVNode("All Bouts Are Complete")])),_:1})):e.createCommentVNode("",!0),r.remainingBoutsCount>0?(e.openBlock(),e.createBlock(i,{key:1,class:"mt-5",color:"primaryHighlight",size:"md",weight:"bold"},{default:e.withCtx(()=>t[4]||(t[4]=[e.createTextVNode("Completed")])),_:1})):e.createCommentVNode("",!0)]),t[5]||(t[5]=e.createElementVNode("div",{class:"hidden md:block border-b border-dropdownSelect mb-5"},null,-1)),e.createElementVNode("div",sa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.completedBouts,d=>(e.openBlock(),e.createElementBlock("div",{key:d.BoutId,class:"w-full md:w-3/4 md:my-4"},[a.isMobile?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(s,{key:0,bout:d,hostingClubColors:o.hostingClubColors},null,8,["bout","hostingClubColors"])),a.isMobile?(e.openBlock(),e.createBlock(c,{key:1,bout:d,hostingClubColors:o.hostingClubColors},null,8,["bout","hostingClubColors"])):e.createCommentVNode("",!0)]))),128))])])):e.createCommentVNode("",!0)])}const ia=b(Jn,[["render",la]]),ca={name:"GridPool",components:{BaseText:w,Icon:V},props:{bouts:{type:Array,required:!0}},data(){return{showStats:!1}},computed:{participants(){const n={};return this.bouts.forEach(t=>{n[t.Person1Id]=t.Person1,n[t.Person2Id]=t.Person2}),Object.values(n)}},mounted(){this.checkScreenSize(),window.addEventListener("resize",this.checkScreenSize)},beforeDestroy(){window.removeEventListener("resize",this.checkScreenSize)},methods:{checkScreenSize(){this.showStats=window.matchMedia("(min-width: 768px)").matches},getFencerShortName(n){const[t,o]=n.split(" "),l=o?o.charAt(0):"";return`${t} ${l}.`},getScore(n,t){const o=this.bouts.find(l=>l.Person1Id===n&&l.Person2Id===t||l.Person1Id===t&&l.Person2Id===n);if(o){if(o.Status==="Scheduled")return"";const l=o.Score1,a=o.Score2;return o.Status==="Completed"?l>a?o.Person1Id===n?`W${l}`:`L${a}`:a>l?o.Person1Id===n?`L${l}`:`W${a}`:`T${l}`:o.Person1Id===n?l:a}return""},getBoutClass(n,t){const o=this.bouts.find(l=>l.Person1Id===n&&l.Person2Id===t||l.Person1Id===t&&l.Person2Id===n);if(o){if(o.Status==="Completed"){if(o.Score1>o.Score2)return n===o.Person1Id?"bg-accent":"bg-gray-400";if(o.Score2>o.Score1)return t===o.Person2Id?"bg-gray-400":"bg-accent";if(o.Score2===o.Score1)return t===o.Person2Id,"bg-primary"}if(o.Status==="Active")return"bg-blue"}return""},getStats(n){const t=this.bouts.filter(i=>(i.Person1Id===n.PersonId||i.Person2Id===n.PersonId)&&i.Status==="Completed"),o=t.filter(i=>i.Person1Id===n.PersonId&&i.Score1>i.Score2||i.Person2Id===n.PersonId&&i.Score2>i.Score1).length,l=t.filter(i=>i.Person1Id===n.PersonId&&i.Score1<i.Score2||i.Person2Id===n.PersonId&&i.Score2<i.Score1).length,a=t.reduce((i,d)=>i+(d.Person1Id===n.PersonId?d.Score1:d.Score2),0),r=t.reduce((i,d)=>i+(d.Person1Id===n.PersonId?d.Score2:d.Score1),0),s=a-r;return{WP:`${t.length>0?(o/t.length*100).toFixed(0):"0.00"}%`,HS:a,HR:r,IND:s,W:o,L:l}}}},da={class:"flex w-full justify-center mb-4 overflow-x-auto"},ma={class:"border-separate border-spacing-1"},ha={class:"bg-primary rounded-md md:rounded-lg px-1 py-1 md:px-4 md:py-2"},pa={key:0,class:"w-1"},ga={key:1,class:"bg-primary rounded-md md:rounded-lg table-cell text-center align-middle h-6 w-6 md:h-10 md:w-10"},fa={key:2,class:"bg-primary rounded-md md:rounded-lg table-cell text-center align-middle h-6 w-6 md:h-10 md:w-10"},xa={key:3,class:"bg-primary rounded-md md:rounded-lg table-cell text-center align-middle h-6 w-6 md:h-10 md:w-10"},ba={key:4,class:"bg-primary rounded-md md:rounded-lg table-cell text-center align-middle h-6 w-6 md:h-10 md:w-10"},ua={key:5,class:"bg-primary rounded-md md:rounded-lg able-cell text-center align-middle h-6 w-6 md:h-10 md:w-10"},ya={class:"border border-primary rounded-md md:rounded-lg text-right align-middle px-1 md:px-4"},wa={class:"bg-primary rounded-md md:rounded-lg text-center align-middle h-6 w-6 md:h-10 md:w-10"},Ca=["rowspan"],ka={key:1,class:"border border-primary rounded-md md:rounded-lg table-cell text-center align-middle h-6 w-6 md:h-10 md:w-10"},Na={key:2,class:"border border-primary rounded-md md:rounded-lg table-cell text-center align-middle h-6 w-6 md:h-10 md:w-10"},Va={key:3,class:"border border-primary rounded-md md:rounded-lg table-cell text-center align-middle h-6 w-6 md:h-10 md:w-10"},Ea={key:4,class:"border border-primary rounded-md md:rounded-lg table-cell text-center align-middle h-6 w-6 md:h-10 md:w-10"},Ba={key:5,class:"border border-primary rounded-md md:rounded-lg table-cell text-center align-middle h-6 w-6 md:h-10 md:w-10"};function _a(n,t,o,l,a,r){const s=e.resolveComponent("BaseText"),c=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock("div",da,[e.createElementVNode("table",ma,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",ha,[e.createVNode(s,{size:"",weight:"bold",color:"white",class:"text-xs md:text-sm"},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("Name")])),_:1})]),t[7]||(t[7]=e.createElementVNode("th",{class:"w-1"},null,-1)),t[8]||(t[8]=e.createElementVNode("th",{class:"bg-gray-800 rounded-md md:rounded-lg px-1 py-1 md:px-4 md:py-2"},null,-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.participants,(i,d)=>(e.openBlock(),e.createElementBlock("th",{key:i.PersonId,class:"bg-primary rounded-md md:rounded-lg text-center align-middle"},[e.createVNode(s,{size:"",weight:"bold",color:"white",class:"text-xs md:text-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d+1),1)]),_:2},1024)]))),128)),a.showStats?(e.openBlock(),e.createElementBlock("th",pa)):e.createCommentVNode("",!0),a.showStats?(e.openBlock(),e.createElementBlock("th",ga,[e.createVNode(s,{size:"",weight:"bold",color:"white",class:"text-xs md:text-sm"},{default:e.withCtx(()=>t[2]||(t[2]=[e.createTextVNode("W%")])),_:1})])):e.createCommentVNode("",!0),a.showStats?(e.openBlock(),e.createElementBlock("th",fa,[e.createVNode(s,{size:"",weight:"bold",color:"white",class:"text-xs md:text-sm"},{default:e.withCtx(()=>t[3]||(t[3]=[e.createTextVNode("W/L")])),_:1})])):e.createCommentVNode("",!0),a.showStats?(e.openBlock(),e.createElementBlock("th",xa,[e.createVNode(s,{size:"",weight:"bold",color:"white",class:"text-xs md:text-sm"},{default:e.withCtx(()=>t[4]||(t[4]=[e.createTextVNode("HS")])),_:1})])):e.createCommentVNode("",!0),a.showStats?(e.openBlock(),e.createElementBlock("th",ba,[e.createVNode(s,{size:"",weight:"bold",color:"white",class:"text-xs md:text-sm"},{default:e.withCtx(()=>t[5]||(t[5]=[e.createTextVNode("HR")])),_:1})])):e.createCommentVNode("",!0),a.showStats?(e.openBlock(),e.createElementBlock("th",ua,[e.createVNode(s,{size:"",weight:"bold",color:"white",class:"text-xs md:text-sm"},{default:e.withCtx(()=>t[6]||(t[6]=[e.createTextVNode("IND")])),_:1})])):e.createCommentVNode("",!0)])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.participants,(i,d)=>(e.openBlock(),e.createElementBlock("tr",{key:i.PersonId,class:"even:bg-gray-100"},[e.createElementVNode("td",ya,[e.createVNode(s,{size:"",color:"primary",class:"hidden md:block text-xs md:text-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.DisplayName),1)]),_:2},1024),e.createVNode(s,{size:"",color:"primary",class:"bock md:hidden text-xs md:text-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.getFencerShortName(i.DisplayName)),1)]),_:2},1024)]),t[9]||(t[9]=e.createElementVNode("th",{class:"w-1"},null,-1)),e.createElementVNode("td",wa,[e.createVNode(s,{size:"",weight:"bold",color:"white",class:"text-xs md:text-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d+1),1)]),_:2},1024)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.participants,m=>(e.openBlock(),e.createElementBlock("td",{key:m.PersonId,class:e.normalizeClass([{"bg-gray-800 rounded-md md:rounded-lg ":i.PersonId===m.PersonId,"bg-secondary rounded-lg":i.PersonId!==m.PersonId},"rounded-md md:rounded-lg h-6 w-6 md:h-10 md:w-10"])},[i.PersonId!==m.PersonId?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([r.getBoutClass(i.PersonId,m.PersonId),"rounded-md md:rounded-lg text-center pt-1 md:pt-2.5 h-6 w-6 md:h-10 md:w-10"])},[e.createVNode(s,{size:"",color:"white",class:"text-xs md:text-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.getScore(i.PersonId,m.PersonId)),1)]),_:2},1024)],2)):e.createCommentVNode("",!0)],2))),128)),d===0?(e.openBlock(),e.createElementBlock("td",{key:0,rowspan:r.participants.length,class:"md:hidden bg-primary cursor-pointer rounded-xl",onClick:t[0]||(t[0]=m=>a.showStats=!a.showStats)},[e.createVNode(c,{icon:"fa-chevron-right",color:"secondary",size:"xs",class:e.normalizeClass(["p-0.5 transition-transform duration-300 transform",{"rotate-180":a.showStats}])},null,8,["class"])],8,Ca)):e.createCommentVNode("",!0),t[10]||(t[10]=e.createElementVNode("th",{class:"hidden md:block w-1"},null,-1)),a.showStats?(e.openBlock(),e.createElementBlock("td",ka,[e.createVNode(s,{size:"",color:"primary",class:"text-xs md:text-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.getStats(i).WP),1)]),_:2},1024)])):e.createCommentVNode("",!0),a.showStats?(e.openBlock(),e.createElementBlock("td",Na,[e.createVNode(s,{size:"",color:"primary",class:"text-xs md:text-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.getStats(i).W)+"/"+e.toDisplayString(r.getStats(i).L),1)]),_:2},1024)])):e.createCommentVNode("",!0),a.showStats?(e.openBlock(),e.createElementBlock("td",Va,[e.createVNode(s,{size:"",color:"primary",class:"text-xs md:text-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.getStats(i).HS),1)]),_:2},1024)])):e.createCommentVNode("",!0),a.showStats?(e.openBlock(),e.createElementBlock("td",Ea,[e.createVNode(s,{size:"",color:"primary",class:"text-xs md:text-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.getStats(i).HR),1)]),_:2},1024)])):e.createCommentVNode("",!0),a.showStats?(e.openBlock(),e.createElementBlock("td",Ba,[e.createVNode(s,{size:"",color:"primary",class:"text-xs md:text-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.getStats(i).IND),1)]),_:2},1024)])):e.createCommentVNode("",!0)]))),128))])])])}const Sa=b(ca,[["render",_a]]),Ta={name:"ArticleCardSkeleton"},Aa={class:"w-full bg-secondary rounded-lg flex flex-col items-start animate-pulse"};function za(n,t,o,l,a,r){return e.openBlock(),e.createElementBlock("div",Aa,t[0]||(t[0]=[e.createStaticVNode('<div class="w-full h-40 bg-gray-200 rounded-t-md mb-4"></div><div class="w-3/4 h-6 bg-gray-200 rounded mb-2"></div><div class="w-full h-4 bg-gray-200 rounded mb-2"></div><div class="w-full h-4 bg-gray-200 rounded mb-2"></div><div class="w-1/2 h-4 bg-gray-200 rounded mb-4"></div><div class="w-full flex justify-end"><div class="w-1/4 h-4 bg-gray-200 rounded"></div></div>',6)]))}const Ia={name:"ArticleCard",components:{ArticleCardSkeleton:b(Ta,[["render",za]]),BaseText:w},props:{data:{type:Object,required:!0},index:{type:Number,required:!0},isLoading:{type:Boolean,default:!1}},emits:["grid-card-click"],computed:{image(){return this.data.image},articleTitle(){return this.data.articleTitle},truncatedDescription(){return this.data.description.length>120?this.data.description.substring(0,120)+" ...":this.data.description}},methods:{onReadMore(){this.$emit("grid-card-click",this.data)}}},Pa={key:0,class:"w-72 p-4 bg-secondary rounded-lg flex flex-col items-start"},La={key:1,class:"min-w-72 p-4 bg-secondary rounded-lg flex flex-col items-start"},Ma=["src"];function Da(n,t,o,l,a,r){const s=e.resolveComponent("ArticleCardSkeleton"),c=e.resolveComponent("BaseText");return e.openBlock(),e.createElementBlock(e.Fragment,null,[o.isLoading?(e.openBlock(),e.createElementBlock("div",Pa,[e.createVNode(s)])):e.createCommentVNode("",!0),o.isLoading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",La,[e.createElementVNode("img",{src:r.image,alt:"Article Image",class:"w-full h-40 object-cover rounded-t-md mb-4"},null,8,Ma),e.createVNode(c,{tag:"h3",size:"xl",weight:"bold",class:"mb-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.articleTitle),1)]),_:1}),e.createVNode(c,{tag:"p",size:"sm",weight:"normal",class:"mb-4 h-20"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.truncatedDescription),1)]),_:1}),e.createElementVNode("a",{href:"#",onClick:t[0]||(t[0]=e.withModifiers((...i)=>r.onReadMore&&r.onReadMore(...i),["prevent"])),class:"w-full flex justify-end pr-2"},[e.createVNode(c,{tag:"p",size:"sm",weight:"bold",class:"mb-4 border-b border-secondary hover:border-accent"},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("Read More →")])),_:1})])]))],64)}const de=b(Ia,[["render",Da]]),ja={name:"ClubListCard",components:{Icon:V,BaseText:w},props:{data:{type:Object,required:!0}},computed:{clubDescription(){return this.data.Description?this.data.Description.slice(0,120):""},clubImage(){return this.data.Images.length>0&&this.data.Images[0].URL?this.data.Images[0].URL:"https://via.placeholder.com/150"}},methods:{handleCardClick(){this.$emit("grid-card-click",this.data)}}},Oa={class:"flex flex-col md:flex-row w-full"},Ra={class:"flex flex-grow-0 flex-shrink-0 md:w-auto"},Fa=["src"],Ua={class:"flex flex-col ml-2 md:hidden"},Ga={class:"flex-grow md:ml-4"},Wa={class:"flex flex-col mt-4 md:mt-0 md:w-48 md:flex-shrink-0"},Ha={class:"flex md:justify-end"},qa={class:"flex md:justify-end mt-2"};function Ka(n,t,o,l,a,r){const s=e.resolveComponent("BaseText"),c=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock("div",{class:"w-full flex flex-row p-4 bg-white md:bg-cloud cursor-pointer border-b pb-6 mb-2 last:border-b-0",onClick:t[0]||(t[0]=(...i)=>r.handleCardClick&&r.handleCardClick(...i))},[e.createElementVNode("div",Oa,[e.createElementVNode("section",Ra,[e.createElementVNode("img",{src:r.clubImage,class:"w-16 h-16 md:w-24 md:h-24 object-cover rounded-full mr-2 md:mr-4",alt:""},null,8,Fa),e.createElementVNode("div",Ua,[e.createVNode(s,{color:"primary",tag:"h2",size:"lg",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.Name),1)]),_:1}),e.createVNode(s,{color:"primary",tag:"h3",size:"xs",weight:"bold",class:"mb-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.Address.City)+" | "+e.toDisplayString(o.data.Address.State),1)]),_:1})])]),e.createElementVNode("section",Ga,[e.createVNode(s,{color:"primary",tag:"h2",size:"lg",weight:"bold",class:"hidden md:flex"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.Name),1)]),_:1}),e.createVNode(s,{color:"primary",tag:"h3",size:"xs",weight:"bold",class:"hidden md:flex justify-start"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.Address.City)+" | "+e.toDisplayString(o.data.Address.State),1)]),_:1}),e.createVNode(s,{color:"primary",tag:"p",size:"xs",weight:"normal",class:"flex justify-start mt-2 md:text-sm",innerHTML:r.clubDescription},null,8,["innerHTML"])]),e.createElementVNode("section",Wa,[e.createElementVNode("div",Ha,[e.createVNode(c,{icon:"fa-users",size:"xs",color:"accent",class:"mr-3"}),e.createVNode(s,{color:"primary",tag:"h2",size:"xs",weight:"normal",class:"md:text-sm w-40"},{default:e.withCtx(()=>[e.createTextVNode(" M2 Active Members: "+e.toDisplayString(o.data.MemberCount),1)]),_:1})]),e.createElementVNode("div",qa,[e.createVNode(c,{icon:"fa-house-blank",type:"fa-regular",size:"xs",color:"accent",class:"mr-3"}),e.createVNode(s,{color:"primary",tag:"h3",size:"xs",weight:"normal",class:"md:text-sm w-40"},{default:e.withCtx(()=>[e.createTextVNode(" Hosted: "+e.toDisplayString(o.data.HostedTournamentsCount)+" Tournaments ",1)]),_:1})])])])])}const Ya=b(ja,[["render",Ka]]),Za={name:"ClubMember",components:{BaseText:w},props:{data:{type:Object,required:!0},isLoading:{type:Boolean,default:!1}},computed:{portrait(){return this.data.ProfileImage&&this.data.ProfileImage.URL?this.data.ProfileImage.URL:G},displayName(){return this.data.DisplayName||"Unknown Member"},m2Rating(){const n=this.data.M2Ratings.find(t=>t.WeaponId===1);return n?n.FormattedRating:"U"}},methods:{onCardClick(){this.$emit("card-click",this.data)}}},Qa={class:"flex justify-center mb-4"},Ja=["src"];function Xa(n,t,o,l,a,r){const s=e.resolveComponent("BaseText");return e.openBlock(),e.createElementBlock("section",{class:"mx-auto pt-4 items-center hover:cursor-pointer text-center",onClick:t[0]||(t[0]=(...c)=>r.onCardClick&&r.onCardClick(...c))},[e.createElementVNode("div",Qa,[e.createElementVNode("img",{src:r.portrait,alt:"User Portrait",class:"w-[150px] h-[150px] rounded-full object-cover"},null,8,Ja)]),e.createVNode(s,{tag:"h2",size:"md",weight:"bold",class:"mb-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.displayName),1)]),_:1}),e.createVNode(s,{tag:"p",size:"xs",weight:"semibold",class:"text-accent"},{default:e.withCtx(()=>[e.createTextVNode("M2: "+e.toDisplayString(r.m2Rating),1)]),_:1})])}const $a=b(Za,[["render",Xa],["__scopeId","data-v-bae6ab08"]]),va={name:"EventListCard",components:{BaseText:w,Icon:V},props:{data:{type:Object,required:!0}},computed:{weaponIcon(){console.log(this.data.Weapon);const n=this.data.Weapon.Name.toLowerCase();return n==="military saber"?"fa-saber":`fa-${n.toLowerCase()}`}},methods:{handleCardClick(){this.$emit("grid-card-click",this.data)}}},es={class:"flex space-x-4 w-full cursor-pointer"},ts={class:"w-10 pt-1 md:pt-0"},os={class:"h-10 w-10 rounded-full flex justify-center items-center border border-accent z-1"},rs={key:0,class:"h-6 w-6 bg-accent rounded-full -mt-4 ml-7 pt-1 z-10 absolute items-center"},ns={class:"flex w-full flex-col md:flex-row"},as={class:"flex flex-col pl-2 items-start flex-grow"},ss={class:"flex flex-col md:flex-row"},ls={class:"flex row mt-1 md:mt-0"},is={class:"flex row mt-1 md:mt-0"},cs={class:"w-full md:w-20 flex justify-end md:pt-3"},ds={class:"flex border-b border-white hover:border-accent md:h-8"},ms={class:"hidden md:flex"},hs={class:"flex md:hidden"};function ps(n,t,o,l,a,r){const s=e.resolveComponent("Icon"),c=e.resolveComponent("BaseText"),i=e.resolveComponent("icon");return e.openBlock(),e.createElementBlock("div",{class:"p-2 w-full border-b md:py-6 last:border-b-0",onClick:t[0]||(t[0]=(...d)=>r.handleCardClick&&r.handleCardClick(...d))},[e.createElementVNode("div",es,[e.createElementVNode("section",ts,[e.createElementVNode("div",os,[e.createVNode(s,{icon:r.weaponIcon,color:"primary",type:"fa-kit",size:"3xl",class:"rotate-45 z-1"},null,8,["icon"])]),o.data.Rating?(e.openBlock(),e.createElementBlock("div",rs,[e.createVNode(c,{color:"secondary",size:"xs",weight:"normal",class:"text-center"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.Rating),1)]),_:1})])):e.createCommentVNode("",!0)]),e.createElementVNode("div",ns,[e.createElementVNode("section",as,[e.createVNode(c,{color:"primary",size:"lg",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.EventName),1)]),_:1}),e.createElementVNode("div",ss,[e.createElementVNode("div",ls,[e.createVNode(i,{icon:"fa-calendar-day",color:"accent",type:"fa-regular",size:"xs",class:"mr-2"}),e.createVNode(c,{color:"primary",size:"xs",weight:"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.Date)+" | "+e.toDisplayString(o.data.StartTime),1)]),_:1})]),e.createElementVNode("div",is,[e.createVNode(i,{icon:"fa-person",color:"accent",type:"fa-solid",size:"xs",class:"md:ml-6 mr-2"}),e.createVNode(c,{color:"primary",size:"xs",weight:"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.ParticipantsCount)+" Fencers Registered",1)]),_:1})])])]),e.createElementVNode("section",cs,[e.createElementVNode("div",ds,[e.createElementVNode("div",ms,[e.createVNode(c,{color:"primary",size:"md",weight:"normal",class:"mr-3 pt-0.5"},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("More")])),_:1}),e.createVNode(s,{icon:"fa-arrow-right",color:"primary",type:"fa-thin",size:"xl"})]),e.createElementVNode("div",hs,[e.createVNode(c,{color:"primary",size:"xs",weight:"normal",class:"mr-3"},{default:e.withCtx(()=>t[2]||(t[2]=[e.createTextVNode("More")])),_:1}),e.createVNode(s,{icon:"fa-arrow-right",color:"primary",type:"fa-thin",size:"xs",class:""})])])])])])])}const gs=b(va,[["render",ps]]),fs={name:"FencerCard",components:{FencerCardSkeleton:Oe,BaseText:w,defaultPortrait:G},props:{data:{type:Object,required:!0},index:{type:Number,required:!0},isLoading:{type:Boolean,default:!1}},data(){return{}},emits:["grid-card-click"],computed:{portrait(){return this.data.ProfileImage&&this.data.ProfileImage.URL?this.data.ProfileImage.URL:G},displayName(){return this.data.DisplayName},clubName(){return this.data.Club.Name},m2Rating(){const n=this.data.M2Ratings.find(t=>t.WeaponId===1);return n?n.FormattedRating:"U"}},methods:{onCardClick(){this.$emit("grid-card-click",this.data)}}},xs={key:0,class:"max-w-72 p-2 bg-secondary rounded-lg flex flex-col items-start"},bs={class:"flex flex-col m-auto justify-center mb-4 items-center w-[130px]"},us=["src"],ys={class:"flex flex-col md:flex-row justify-center md:justify-around -mt-2 border-b border-borderGray z-10 pb-2 mb-2"},ws={class:"flex items-center justify-center"};function Cs(n,t,o,l,a,r){const s=e.resolveComponent("FencerCardSkeleton"),c=e.resolveComponent("BaseText");return e.openBlock(),e.createElementBlock(e.Fragment,null,[o.isLoading?(e.openBlock(),e.createElementBlock("div",xs,[e.createVNode(s)])):e.createCommentVNode("",!0),o.isLoading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("section",{key:1,class:"max-w-72 mr-4 md:mr-2 pt-4 items-center border border-secondary hover:border-accent hover:cursor-pointer rounded-lg",onClick:t[0]||(t[0]=(...i)=>r.onCardClick&&r.onCardClick(...i))},[e.createElementVNode("div",bs,[e.createElementVNode("img",{src:r.portrait,alt:"Fencer Portrait",class:"w-[120px] h-[120px] md:w-32 md:h-32 rounded-full object-cover z-1 flex-shrink-0"},null,8,us)]),e.createElementVNode("div",ys,[e.createElementVNode("div",ws,[e.createVNode(c,{tag:"p",size:"xs md:sm",weight:"semibold",class:"primary mr-1 block"},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("M2: ")])),_:1}),e.createVNode(c,{tag:"p",size:"sm md:md",weight:"bold",class:"text-accent"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.m2Rating),1)]),_:1})])]),e.createVNode(c,{tag:"h3",size:"sm md:2xl",weight:"bold",class:"text-center pb-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.displayName),1)]),_:1}),e.createVNode(c,{tag:"p",size:"xs md:sm",weight:"normal",class:"text-center h-10"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.clubName),1)]),_:1})]))],64)}const me=b(fs,[["render",Cs]]),ks={name:"PhotoCard",props:{data:{type:Object,required:!0}}},Ns={class:"w-[250px] h-[150px]"},Vs=["src","alt"];function Es(n,t,o,l,a,r){return e.openBlock(),e.createElementBlock("div",Ns,[e.createElementVNode("img",{src:o.data.URL,alt:o.data.AltText,class:"object-cover w-full h-full"},null,8,Vs)])}const Bs=b(ks,[["render",Es]]),_s={name:"RatingSystemAnnouncement",components:{BaseText:w}},Ss={class:"w-full flex justify-center mx-auto mt-10 mb-20"},Ts={class:"max-w-[1200px] w-full flex justify-center mx-auto mt-8 flex-col"},As={class:"w-full flex py-4 md:pb-10 ml-2 md:ml-0 mb-4 justify-center"},zs={class:"flex"},Is={class:"md:w-1/2 flex justify-center"};function Ps(n,t,o,l,a,r){const s=e.resolveComponent("BaseText");return e.openBlock(),e.createElementBlock("section",Ss,[e.createElementVNode("section",null,[e.createElementVNode("div",Ts,[e.createElementVNode("div",As,[e.createVNode(s,{color:"primary",size:"xl",tag:"h3",weight:"bold"},{default:e.withCtx(()=>t[0]||(t[0]=[e.createTextVNode(" Coming Soon: The M² Fencing Rating System! ")])),_:1})]),e.createElementVNode("div",zs,[t[2]||(t[2]=e.createElementVNode("div",{class:"w-1/2 hidden md:flex justify-end mr-10"},[e.createElementVNode("img",{src:"https://meyersquaredimages.com/images/trophy.png",alt:"Rating System Announcement",class:"w-96 h-96 rounded-lg"})],-1)),e.createElementVNode("div",Is,[e.createVNode(s,{color:"primary",size:"md",tag:"p",weight:"normal",class:"w-3/4"},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode(" Our new M² Rating System will give you deeper insights into your performance, track your progress, and help you see how you measure up against competitors nationwide."),e.createElementVNode("br",null,null,-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("b",null,"Key Advantages:",-1),e.createElementVNode("br",null,null,-1),e.createTextVNode(" It's a rating system, not a ranking system. You won’t lose progress just because others improve."),e.createElementVNode("br",null,null,-1),e.createElementVNode("br",null,null,-1),e.createTextVNode(" Ratings are earned by competing in tournaments. Once earned, a rating stays with you for four years, after which it gradually decreases by one level every four years. Having a bad tournament, or even a bad year doesn't cost you your rating. "),e.createElementVNode("br",null,null,-1),e.createElementVNode("br",null,null,-1),e.createTextVNode(" The more competitive the tournament, the greater the rewards. "),e.createElementVNode("br",null,null,-1),e.createElementVNode("br",null,null,-1),e.createTextVNode(" Stay tuned for more details! ")])),_:1})])])])])])}const Re=b(_s,[["render",Ps]]),Ls={name:"SocialMediaLinkCard",components:{BaseButton:T},props:{socialMedia:{type:Array,default:()=>[{Type:"Discord",Link:"https://discord.com",Label:null},{Type:"Instagram",Link:"https://instagram.com",Label:null},{Type:"Facebook",Link:"https://facebook.com",Label:null},{Type:"Web",Link:"https://www.hemaalliance.com/event-calendar",Label:null}]}},methods:{getIconName(n){return{Discord:"fa-discord",Instagram:"fa-instagram",Facebook:"fa-facebook",Web:"fa-globe"}[n]||"fa-globe"},openLink(n){window.open(n,"_blank")}}},Ms={class:"md:w-64 m-2 flex flex-col mb-20"};function Ds(n,t,o,l,a,r){const s=e.resolveComponent("BaseButton");return e.openBlock(),e.createElementBlock("aside",Ms,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.socialMedia,(c,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:"mb-4"},[e.createVNode(s,{label:c.Label||c.Type,size:"md",color:"secondary",border:"gradient1",weight:"normal",class:"w-full h-16 pl-8",iconName:r.getIconName(c.Type),iconColor:"secondary",iconSize:"xl",iconType:c.Type==="Web"?"fa-solid":"fa-brands",align:"between",onClick:d=>r.openLink(c.Link)},null,8,["label","iconName","iconType","onClick"])]))),128))])}const js=b(Ls,[["render",Ds]]),Os={name:"TournamentCardSkeleton"},Rs={class:"md:w-full mb-8 animate-pulse"};function Fs(n,t,o,l,a,r){return e.openBlock(),e.createElementBlock("div",Rs,t[0]||(t[0]=[e.createStaticVNode('<section class="hidden md:block"><div class="w-full h-52 bg-gray-300 mb-2 rounded-md"></div><div class="w-3/4 h-6 bg-gray-300 mb-1 rounded"></div><div class="w-2/3 h-4 bg-gray-300 mb-2 rounded"></div><div class="flex items-center mb-1"><div class="w-6 h-6 bg-gray-300 rounded-full mr-3"></div><div class="w-2/3 h-4 bg-gray-300 rounded"></div></div><div class="flex items-center"><div class="w-6 h-6 bg-gray-300 rounded-full mr-3"></div><div class="w-2/3 h-4 bg-gray-300 rounded"></div></div></section><section class="md:hidden flex-col items-start gap-2 border-b border-borderGray"><div class="flex flex-row"><div class="w-28 h-16 bg-gray-300 rounded-md"></div><div class="flex flex-col h-16 justify-center pl-2"><div class="w-3/4 h-6 bg-gray-300 rounded mb-1"></div><div class="w-1/2 h-4 bg-gray-300 rounded"></div></div></div><div class="flex justify-between pt-4 pb-2"><div class="flex justify-start w-5/12"><div class="w-2 h-2 bg-gray-300 rounded-full mr-1"></div><div class="w-2/3 h-4 bg-gray-300 rounded"></div></div><div class="flex justify-start mb-1 w-7/12"><div class="w-2 h-2 bg-gray-300 rounded-full mr-1"></div><div class="w-2/3 h-4 bg-gray-300 rounded"></div></div></div></section>',2)]))}const Us={name:"TournamentCard",components:{TournamentCardSkeleton:b(Os,[["render",Fs]]),BaseText:w,Icon:V},props:{data:{type:Object,required:!0},index:{type:Number,required:!1},isLoading:{type:Boolean,default:!1}},data(){return{isImageError:!1}},emits:["grid-card-click"],computed:{image(){return!this.isImageError&&this.data.ImagesURLs&&this.data.ImagesURLs.length>0?this.data.ImagesURLs:"https://via.placeholder.com/300x200"},fallbackStyle(){return this.isImageError?{backgroundColor:"#f5f5f5",display:"flex",alignItems:"center",justifyContent:"center"}:{}},title(){return this.data&&this.data.Name||""},location(){return this.data&&this.data.Address?`${this.data.Address.Name} • ${this.data.Address.City}, ${this.data.Address.State}`:"Location Unavailable"},startDate(){return this.data&&this.formatDate(this.data.StartDate)},endDate(){return this.data&&this.formatDate(this.data.EndDate)},numberOfFencers(){return this.data&&this.data.NumberOfFencers?this.data.NumberOfFencers:0}},methods:{formatDate(n){return new Date(n).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})},imageError(){this.isImageError=!0},onCardClick(){this.$emit("grid-card-click",this.data)}}},Gs={key:0,class:"max-w-80 md:w-full mb-8"},Ws={class:"hidden md:block"},Hs={class:"relative w-full h-52"},qs=["src"],Ks={key:0,src:"https://meyersquaredimages.com/images/banners/m2-white.png",alt:"Bookmark Icon",class:"w-8 absolute top-2 right-2 p-1 bg-white rounded"},Ys={class:"flex items-center mb-1"},Zs={class:"flex w-6 justify-center"},Qs={key:0,class:"flex items-center"},Js={class:"flex w-6 justify-center"},Xs={key:1,class:"flex items-center"},$s={class:"flex w-6 justify-center"},vs={class:"w-full md:hidden flex-col items-start gap-2 border-b border-borderGray"},el={class:"flex flex-row"},tl=["src"],ol={class:"flex flex-col h-16 justify-center pl-3"},rl={class:"flex justify-between pt-4 pb-2"},nl={class:"flex justify-start w-5/12"},al={class:"flex justify-start mb-1 w-7/12"};function sl(n,t,o,l,a,r){const s=e.resolveComponent("TournamentCardSkeleton"),c=e.resolveComponent("BaseText"),i=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock(e.Fragment,null,[o.isLoading?(e.openBlock(),e.createElementBlock("div",Gs,[e.createVNode(s)])):e.createCommentVNode("",!0),o.isLoading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:"w-full md:w-full md:mb-8 border border-secondary hover:border-accent hover:cursor-pointer p-2 rounded-lg overflow-hidden",onClick:t[2]||(t[2]=(...d)=>r.onCardClick&&r.onCardClick(...d))},[e.createElementVNode("section",Ws,[e.createElementVNode("div",Hs,[e.createElementVNode("img",{src:r.image,alt:"Tournament Image",class:"w-full h-full object-cover mb-2 rounded-md",onError:t[0]||(t[0]=(...d)=>r.imageError&&r.imageError(...d)),style:e.normalizeStyle(r.fallbackStyle)},null,44,qs),o.data.HostedOnM2?(e.openBlock(),e.createElementBlock("img",Ks)):e.createCommentVNode("",!0)]),e.createVNode(c,{tag:"h3",size:"xl",weight:"semibold",class:"mb-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.title),1)]),_:1}),e.createVNode(c,{tag:"p",size:"sm",weight:"semibold",class:"mb-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.location),1)]),_:1}),e.createElementVNode("div",Ys,[e.createElementVNode("span",Zs,[e.createVNode(i,{icon:"fa-calendar",type:o.data.HostedOnM2?"fa-solid":"fa-regular",color:"accent",size:"sm",class:"mr-3 w-4"},null,8,["type"])]),e.createVNode(c,{tag:"p",size:"sm",class:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.startDate)+" to "+e.toDisplayString(r.endDate),1)]),_:1})]),o.data.HostedOnM2?(e.openBlock(),e.createElementBlock("div",Qs,[e.createElementVNode("span",Js,[e.createVNode(i,{icon:"fa-user-friends",color:"accent",size:"sm",class:"mr-3"})]),e.createVNode(c,{tag:"p",size:"sm",class:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.numberOfFencers)+" Registered Fencers",1)]),_:1})])):e.createCommentVNode("",!0),o.data.HostedOnM2?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Xs,[e.createElementVNode("span",$s,[e.createVNode(i,{icon:"fa-bookmark",type:"fa-regular",color:"accent",size:"sm",class:"mr-3"})]),e.createVNode(c,{tag:"p",size:"sm",class:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.numberOfFencers)+" Bookmarked",1)]),_:1})]))]),e.createElementVNode("section",vs,[e.createElementVNode("div",el,[e.createElementVNode("img",{src:r.image,alt:"Tournament Image",class:"w-28 h-16 object-cover rounded-md",onError:t[1]||(t[1]=(...d)=>r.imageError&&r.imageError(...d)),style:e.normalizeStyle(r.fallbackStyle)},null,44,tl),e.createElementVNode("div",ol,[e.createVNode(c,{tag:"h3",size:"lg",weight:"semibold",class:"mb-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.title),1)]),_:1}),e.createVNode(c,{tag:"p",size:"xs",weight:"semibold",class:"mb-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.location),1)]),_:1})])]),e.createElementVNode("div",rl,[e.createElementVNode("div",nl,[e.createVNode(i,{icon:"fa-user-friends",color:"accent",size:"xs",class:"mr-1"}),e.createVNode(c,{tag:"p",size:"xs",class:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.numberOfFencers)+" Registered",1)]),_:1})]),e.createElementVNode("div",al,[e.createVNode(i,{icon:"fa-calendar",color:"accent",size:"xs",class:"mr-1 w-4"}),e.createVNode(c,{tag:"p",size:"xs",class:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.startDate)+" to "+e.toDisplayString(r.endDate),1)]),_:1})])])])]))],64)}const Fe=b(Us,[["render",sl]]),ll={name:"TournamentDetails",components:{BaseText:w,Icon:V},props:{imageSrc:{type:String,default:"https://via.placeholder.com/800x500"},description:{type:String,default:"<p>This is a sample tournament description. It can be long and may contain HTML.</p>"},shareLinks:{type:Array,default:()=>[{name:"web",url:"https://facebook.com",icon:"fa-globe"},{name:"Facebook",url:"https://facebook.com",icon:"fa-facebook"},{name:"Instagram",url:"https://twitter.com",icon:"fa-instagram"},{name:"Discord",url:"https://linkedin.com",icon:"fa-discord"}]}},mounted(){this.preloadImage(this.imageSrc)},data(){return{}},methods:{preloadImage(n){const t=document.createElement("link");t.rel="preload",t.as="image",t.href=n,document.head.appendChild(t)}}},il={class:"w-full max-w-4xl mx-auto md:p-4"},cl={class:"w-full h-96 md:mb-4"},dl=["src"],ml={class:"flex justify-end items-center w-full md:h-10 rounded-md p-2"},hl=["href"],pl={class:"w-full flex md:py-4 pb-4 md:pb-10"},gl={class:"bg-white p-4 m-2 rounded-lg"},fl=["innerHTML"];function xl(n,t,o,l,a,r){const s=e.resolveComponent("BaseText"),c=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock("section",il,[e.createElementVNode("div",cl,[e.createElementVNode("img",{src:o.imageSrc,alt:"Tournament Image",class:"w-full h-full object-cover md:rounded-lg"},null,8,dl)]),e.createElementVNode("div",ml,[o.shareLinks&&o.shareLinks.length>0?(e.openBlock(),e.createBlock(s,{key:0,color:"primary",size:"md",weight:"normal",class:"mr-2 mt-0.5"},{default:e.withCtx(()=>t[0]||(t[0]=[e.createTextVNode("Links")])),_:1})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.shareLinks,i=>(e.openBlock(),e.createElementBlock("a",{key:i.name,href:i.url,target:"_blank",class:"mx-2 hover:text-accent transition duration-200"},[e.createVNode(c,{type:i.icon==="fa-globe"?"fa-solid":"fa-brands",color:"primary",icon:i.icon,size:"md",class:"hover:text-accent"},null,8,["type","icon"])],8,hl))),128))]),e.createElementVNode("div",pl,[e.createVNode(s,{color:"primary",size:"xl",tag:"h3",weight:"bold",class:"pl-2"},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("Details")])),_:1})]),e.createElementVNode("div",gl,[e.createElementVNode("div",{innerHTML:o.description,class:"text-base text-gray-800"},null,8,fl)])])}const bl=b(ll,[["render",xl]]),ul={name:"TournamentListCard",components:{BaseText:w,Icon:V},props:{data:{type:Object,required:!0},isLoading:{type:Boolean,default:!1}},computed:{tournamentName(){return this.data.Name||"Tournament Name"},addressName(){return this.data.Address?`${this.data.Address.Name}, ${this.data.Address.City}, ${this.data.Address.State}`:"Address Name"},startDate(){return this.formatDate(this.data.StartDate)},startTime(){return"00:00 AM"},tournamentImage(){return this.data.ImagesURLs||"https://meyersquared.com/uploads/defaulttournament.png"},imageAltText(){return this.data.ImagesAltTexts||"Tournament Image"},isBookmarked(){return!1},participants(){return this.data.TotalParticipants||0}},methods:{toggleBookmark(){this.$emit("toggle-bookmark",!this.isBookmarked)},formatDate(n){const t={year:"numeric",month:"short",day:"numeric"};return new Date(n).toLocaleDateString(void 0,t)},handleCardClick(){this.$emit("grid-card-click",this.data)}}},yl={class:"flex pt-1"},wl={class:"relative w-24 h-16 md:w-32 md:h-20 mr-3"},Cl=["src","alt"],kl={key:0,src:"https://meyersquaredimages.com/images/banners/m2-white.png",alt:"Hosted M²",class:"w-6 absolute top-2 left-16 md:left-24 p-1 bg-white rounded"},Nl={class:"flex flex-col"},Vl={class:"flex items-center mb-0"},El={class:"hidden md:flex items-center text-sm text-gray-600 mb-2"},Bl={class:"hidden md:flex mt-3 mb-1"},_l={class:"flex flex-row w-full"},Sl={key:0,class:"flex items-center mr-10"},Tl={key:1,class:"flex items-center mr-4"},Al={class:"flex w-6 justify-center"},zl={class:"flex items-center"},Il={class:"flex flex-col md:hidden mt-2"},Pl={class:"flex items-center pb-2"},Ll={class:"flex flex-row"},Ml={key:0,class:"flex items-center mr-4"},Dl={key:1,class:"flex items-center mr-4"},jl={class:"flex w-6 justify-center mr-2"},Ol={class:"flex items-center"};function Rl(n,t,o,l,a,r){const s=e.resolveComponent("BaseText"),c=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock("section",{class:"flex flex-col md:bg-white w-full border-b pb-2 mb-2 pl-1 pt-1 cursor-pointer last:border-b-0",onClick:t[0]||(t[0]=(...i)=>r.handleCardClick&&r.handleCardClick(...i))},[e.createElementVNode("div",yl,[e.createElementVNode("div",wl,[e.createElementVNode("img",{src:r.tournamentImage,alt:r.imageAltText,class:"w-full h-full object-cover rounded-lg"},null,8,Cl),o.data.HostedOnM2?(e.openBlock(),e.createElementBlock("img",kl)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Nl,[e.createElementVNode("div",Vl,[e.createVNode(s,{color:"primary",tag:"h2",size:"2xl",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.tournamentName),1)]),_:1})]),e.createElementVNode("div",El,[e.createVNode(s,{color:"primary",tag:"p",size:"md",weight:"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.addressName),1)]),_:1})])])]),e.createElementVNode("div",Bl,[e.createElementVNode("div",_l,[o.data.HostedOnM2?(e.openBlock(),e.createElementBlock("div",Sl,[e.createVNode(c,{type:o.data.HostedOnM2?"fa-solid":"fa-regular",icon:"fa-user-friends",size:"sm",color:"accent",class:"mr-4"},null,8,["type"]),e.createVNode(s,{color:"primary",tag:"p",size:"sm",weight:"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.participants)+" signed up",1)]),_:1})])):e.createCommentVNode("",!0),o.data.HostedOnM2?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Tl,[e.createElementVNode("span",Al,[e.createVNode(c,{icon:"fa-bookmark",type:"fa-regular",color:"accent",size:"sm",class:"mr-3"})]),e.createVNode(s,{tag:"p",size:"sm",class:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.participants)+" Bookmarked",1)]),_:1})])),e.createElementVNode("div",zl,[e.createVNode(c,{type:o.data.HostedOnM2?"fa-solid":"fa-regular",icon:"fa-calendar",size:"sm",color:"accent",class:"mr-4"},null,8,["type"]),e.createVNode(s,{color:"primary",tag:"p",size:"sm",weight:"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.startDate)+" | "+e.toDisplayString(r.startTime),1)]),_:1})])])]),e.createElementVNode("div",Il,[e.createElementVNode("div",Pl,[e.createVNode(s,{color:"primary",tag:"p",size:"sm",weight:"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.addressName),1)]),_:1})]),e.createElementVNode("div",Ll,[o.data.HostedOnM2?(e.openBlock(),e.createElementBlock("div",Ml,[e.createVNode(c,{type:o.data.HostedOnM2?"fa-solid":"fa-regular",icon:"fa-user-friends",size:"sm",color:"accent",class:"mr-2"},null,8,["type"]),e.createVNode(s,{color:"primary",tag:"p",size:"xs",weight:"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.participants)+" signed up",1)]),_:1})])):e.createCommentVNode("",!0),o.data.HostedOnM2?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Dl,[e.createElementVNode("span",jl,[e.createVNode(c,{icon:"fa-bookmark",type:"fa-regular",color:"accent",size:"sm",class:"mr-3"})]),e.createVNode(s,{tag:"p",size:"sm",class:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.participants)+" Bookmarked",1)]),_:1})])),e.createElementVNode("div",Ol,[e.createVNode(c,{type:o.data.HostedOnM2?"fa-solid":"fa-regular",icon:"fa-calendar",size:"sm",color:"accent",class:"mr-2"},null,8,["type"]),e.createVNode(s,{color:"primary",tag:"p",size:"xs",weight:"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.startDate)+" | "+e.toDisplayString(r.startTime),1)]),_:1})])])])])}const Fl=b(ul,[["render",Rl]]),Ul={name:"HeroBanner",components:{BaseText:w,BaseButton:T},props:{imageSrc:{type:String,required:!0},title:{type:String,required:!0},description:{type:String,required:!0},buttonLabel:{type:String,required:!0}},data(){return{isMobile:!1}},computed:{backgroundStyle(){return{backgroundImage:`url(${this.imageSrc})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}}},mounted(){this.checkScreenSize(),window.addEventListener("resize",this.checkScreenSize),this.preloadImage(this.imageSrc)},beforeDestroy(){window.removeEventListener("resize",this.checkScreenSize)},methods:{checkScreenSize(){this.isMobile=window.innerWidth<768},onClick(){this.$emit("button-click")},preloadImage(n){const t=document.createElement("link");t.rel="preload",t.as="image",t.href=n,document.head.appendChild(t)}}},Gl={class:"relative w-full md:border-b md:border-l md:border-r border-lineGrey"},Wl=["src"],Hl={class:"hidden md:flex absolute inset-0 items-center justify-start px-8 mt-40"},ql={class:"text-left text-white max-w-lg"},Kl={key:1,class:"flex justify-center text-left w-full px-6 py-4"},Yl={class:"w-full"};function Zl(n,t,o,l,a,r){const s=e.resolveComponent("BaseText"),c=e.resolveComponent("BaseButton");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("section",{id:"hero",class:"relative w-full md:min-h-[500px] flex justify-center bg-primary md:m-0 mt-6",style:e.normalizeStyle(r.backgroundStyle)},[t[0]||(t[0]=e.createElementVNode("div",{class:"hidden md:block w-[150px] bg-primary border-b border-lineGrey flex-shrink-0"},null,-1)),e.createElementVNode("div",Gl,[a.isMobile?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("img",{key:0,src:o.imageSrc,alt:"Hero Image",class:"w-full h-full object-cover"},null,8,Wl)),e.createElementVNode("section",Hl,[e.createElementVNode("div",ql,[e.createVNode(s,{color:"secondary",tag:"h1",size:"4xl",weight:"bold",class:"mb-4"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.title),1)]),_:1}),e.createVNode(s,{color:"secondary",tag:"p",size:"lg",weight:"normal",class:"mb-6"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.description),1)]),_:1}),e.createVNode(c,{label:o.buttonLabel,color:"secondary",border:"gradient1",onClick:r.onClick},null,8,["label","onClick"])])]),a.isMobile?(e.openBlock(),e.createElementBlock("div",Kl,[e.createElementVNode("div",Yl,[e.createVNode(s,{color:"secondary",tag:"h1",size:"md",weight:"bold",class:"mb-2 w-40 mt-16"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.title),1)]),_:1}),e.createVNode(s,{color:"secondary",tag:"p",size:"xs",weight:"normal",class:"mb-2 w-48"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.description),1)]),_:1}),e.createVNode(c,{label:o.buttonLabel,size:"xs",color:"secondary",border:"gradient1",class:"w-32 m-auto",onClick:r.onClick},null,8,["label","onClick"])])])):e.createCommentVNode("",!0)]),t[1]||(t[1]=e.createElementVNode("div",{class:"hidden md:block w-[150px] bg-primary border-b border-lineGrey flex-shrink-0"},null,-1))],4),t[2]||(t[2]=e.createElementVNode("section",{class:"hidden md:flex border-t border-lineGrey w-full bg-primary"},[e.createElementVNode("div",{class:"w-[150px] bg-primary border-b border-lineGrey flex-shrink-0"}),e.createElementVNode("div",{class:"relative w-full border-b border-l border-r border-lineGrey h-36"}),e.createElementVNode("div",{class:"w-[150px] bg-primary border-b border-lineGrey flex-shrink-0"})],-1))],64)}const Ue=b(Ul,[["render",Zl]]),Ql={name:"LeaderboardHeader",components:{BaseText:w,BaseButton:T},props:{weapons:{type:Array,required:!0,default:()=>["Longsword","Rapier","Saber"]}},data(){return{logo:le,selectedWeapon:"Longsword"}},methods:{onWeaponClick(n){this.selectedWeapon=n,this.$emit("weapon-selected",n)}}},Jl={class:"w-full bg-white py-4 flex justify-center h-24"},Xl={class:"container flex justify-between items-center w-full md:w-3/4 overflow-x-auto md:overflow-x-visible"},$l={class:"flex space-x-4 w-full justify-start md:justify-around whitespace-nowrap mx-4 md:mx-0"},vl=["onClick"];function ei(n,t,o,l,a,r){const s=e.resolveComponent("BaseText");return e.openBlock(),e.createElementBlock("header",Jl,[e.createElementVNode("section",Xl,[e.createElementVNode("nav",$l,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.weapons,c=>(e.openBlock(),e.createElementBlock("div",{key:c,onClick:i=>r.onWeaponClick(c),class:"cursor-pointer"},[e.createVNode(s,{color:"primary",size:"md",tag:"p",weight:"normal",onClick:i=>r.onWeaponClick(c),class:e.normalizeClass(["cursor-pointer border-b-2 pb-1 duration-300 ease-in-out px-4 md:p-0",{"border-accent":a.selectedWeapon===c,"hover:border-accent":a.selectedWeapon!==c,"border-transparent px-4 md:p-0":a.selectedWeapon!==c}])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c),1)]),_:2},1032,["onClick","class"])],8,vl))),128))])])])}const ti=b(Ql,[["render",ei]]),oi={name:"SingleButtonBanner",components:{BaseText:w,BaseButton:T},props:{imageUrl:{type:String,default:"https://via.placeholder.com/1200x400"},description:{type:String,default:"Look for a Club? We can help."},buttonLabel:{type:String,default:"Learn More"}},methods:{onClick(){this.$emit("handleButtonClick")}}},ri={class:"relative h-80 max-w-[1200px] mx-4 md:mx-auto rounded-lg overflow-hidden mb-10 bg-primary"},ni={class:"absolute inset-0 flex flex-col justify-center items-center md:items-start text-center md:text-left px-6 md:px-20"};function ai(n,t,o,l,a,r){const s=e.resolveComponent("BaseText"),c=e.resolveComponent("BaseButton");return e.openBlock(),e.createElementBlock("section",ri,[e.createElementVNode("div",{class:"hidden md:block bg-cover bg-top h-full w-full",style:e.normalizeStyle({backgroundImage:"url("+o.imageUrl+")"})},null,4),t[0]||(t[0]=e.createElementVNode("div",{class:"block md:hidden bg-black"},null,-1)),e.createElementVNode("div",ni,[e.createVNode(s,{color:"secondary",tag:"h3",size:"5xl",weight:"normal",class:"hidden md:block mb-8",innerHTML:o.description},null,8,["innerHTML"]),e.createVNode(s,{color:"secondary",tag:"h3",size:"3xl",weight:"normal",class:"md:hidden mb-8",innerHTML:o.description},null,8,["innerHTML"]),e.createVNode(c,{label:o.buttonLabel,size:"xs",color:"secondary",border:"gradient1",onClick:r.onClick,class:"w-40"},null,8,["label","onClick"])])])}const Ge=b(oi,[["render",ai]]),si={name:"DoubleButtonBanner",components:{BaseText:w,BaseButton:T},props:{title:{type:String,required:!0},description:{type:String,default:""},buttonLabelOne:{type:String,required:!0},buttonLabelTwo:{type:String,required:!0}},methods:{onClickOne(){this.$emit("handle-button-click-one")},onClickTwo(){this.$emit("handle-button-click-two")}}},li={class:"max-w-[1200px] mx-auto"},ii={class:"relative w-full h-3/4 flex justify-center bg-primary m-0"},ci={class:"relative w-full border-b border-l border-r border-lineGrey"},di={class:"hidden md:flex h-80 justify-between items-center p-14"},mi={class:"text-left text-white max-w-lg w-96"},hi={class:"flex flex-col w-1/3 align-right"},pi={class:"flex justify-center md:hidden text-left bg-primary w-full"},gi={class:"w-full px-6 py-8 text-center flex flex-col justify-center items-center"};function fi(n,t,o,l,a,r){const s=e.resolveComponent("BaseText"),c=e.resolveComponent("BaseButton");return e.openBlock(),e.createElementBlock("section",li,[t[2]||(t[2]=e.createElementVNode("section",{class:"hidden md:flex border-t border-lineGrey w-full bg-primary"},[e.createElementVNode("div",{class:"w-[150px] h-[150px] bg-primary border-b border-lineGrey flex-shrink-0"}),e.createElementVNode("div",{class:"flex-grow h-[150px] border-b border-l border-r border-lineGrey"}),e.createElementVNode("div",{class:"w-[150px] h-[150px] bg-primary border-b border-lineGrey flex-shrink-0"})],-1)),e.createElementVNode("section",ii,[t[0]||(t[0]=e.createElementVNode("div",{class:"w-[150px] bg-primary border-b border-lineGrey flex-shrink-0"},null,-1)),e.createElementVNode("div",ci,[e.createElementVNode("section",di,[e.createElementVNode("div",mi,[e.createVNode(s,{color:"secondary",tag:"h1",size:"5xl",weight:"normal",class:"mb-4"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.title),1)]),_:1})]),e.createElementVNode("div",hi,[e.createVNode(c,{label:o.buttonLabelOne,size:"xs",color:"secondary",border:"gradient1",weight:"normal",align:"between",class:"mb-4 w-52 h-16 pl-8",iconName:"fa-arrow-right-long",iconColor:"secondary",iconSize:"lg",iconType:"fa-thin",onClick:r.onClickOne},null,8,["label","onClick"]),e.createVNode(c,{label:o.buttonLabelTwo,size:"xs",color:"secondary",border:"gradient2",weight:"normal",class:"w-52 h-16 pl-8",iconName:"fa-arrow-right-long",iconColor:"secondary",iconSize:"lg",iconType:"fa-thin",align:"between",onClick:r.onClickOne},null,8,["label","onClick"])])])]),t[1]||(t[1]=e.createElementVNode("div",{class:"w-[150px] bg-primary border-b border-lineGrey flex-shrink-0"},null,-1))]),t[3]||(t[3]=e.createElementVNode("section",{class:"hidden md:flex border-t border-lineGrey w-full bg-primary"},[e.createElementVNode("div",{class:"w-[150px] h-[150px] bg-primary border-b border-lineGrey flex-shrink-0"}),e.createElementVNode("div",{class:"flex-grow h-[150px] border-b border-l border-r border-lineGrey"}),e.createElementVNode("div",{class:"w-[150px] h-[150px] bg-primary border-b border-lineGrey flex-shrink-0"})],-1)),e.createElementVNode("section",pi,[e.createElementVNode("div",gi,[e.createVNode(s,{color:"secondary",tag:"h1",size:"2xl",weight:"normal",class:"mb-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.title),1)]),_:1}),e.createVNode(s,{color:"secondary",tag:"p",size:"sm",weight:"normal",class:"mb-6"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.description),1)]),_:1}),e.createVNode(c,{label:o.buttonLabelOne,size:"xs",color:"secondary",border:"gradient1",weight:"normal",align:"between",class:"mb-4 w-full h-16 pl-8",iconName:"fa-arrow-right-long",iconColor:"secondary",iconSize:"lg",iconType:"fa-thin",onClick:r.onClickOne},null,8,["label","onClick"]),e.createVNode(c,{label:o.buttonLabelTwo,size:"xs",color:"secondary",border:"gradient2",weight:"normal",class:"w-full h-16 pl-8",iconName:"fa-arrow-right-long",iconColor:"secondary",iconSize:"lg",iconType:"fa-thin",align:"between",onClick:r.onClickOne},null,8,["label","onClick"])])])])}const We=b(si,[["render",fi]]),xi={name:"Footer",components:{Icon:V,InputField:W,BaseButton:T,BaseText:w},data(){return{logo:le}},methods:{pageChange(n){this.$emit("changePage",n)}}},bi={class:"hidden md:flex flex-col bg-primary"},ui={class:"w-full hidden md:flex"},yi={class:"w-1/3"},wi={class:"items-center w-full flex justify-center"},Ci=["src"],ki={class:"w-1/3 flex flex-col"},Ni={class:"w-full flex justify-around"},Vi={class:"flex w-1/3"},Ei={class:"flex w-1/3"},Bi={class:"flex items-center w-1/3"},_i={class:"w-full flex justify-around"},Si={class:"flex items-center w-1/3"},Ti={class:"flex items-center w-1/3"},Ai={class:"flex items-center w-1/3"},zi={class:"w-full flex justify-around"},Ii={class:"flex items-center w-1/3"},Pi={class:"flex items-center w-1/3"},Li={class:"flex w-1/3"},Mi={class:"w-1/3 flex flex-col"},Di={class:"w-full flex justify-end"},ji={class:"w-30 mr-16"},Oi={class:"w-full flex justify-end mt-12"},Ri={class:"w-48 mr-16"},Fi={class:"h-32 border border-t mt-10 pb-10 border-lineGrey flex flex-col justify-center items-center"},Ui={class:"flex md:hidden flex-col items-center bg-primary pb-10"},Gi={class:"w-full flex flex-col items-center"},Wi={class:"w-full max-w-xs flex justify-between items-center"},Hi={class:"flex justify-center w-1/2"},qi=["src"],Ki={class:"flex flex-col w-1/2"},Yi={class:"w-full flex flex-col items-center"},Zi={class:"w-full max-w-xs flex flex-col items-center pt-8 px-6"},Qi={class:"w-full max-w-xs flex flex-col items-center pt-8"},Ji={class:"flex justify-center"};function Xi(n,t,o,l,a,r){const s=e.resolveComponent("BaseText"),c=e.resolveComponent("InputField"),i=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("section",bi,[t[25]||(t[25]=e.createElementVNode("div",{class:"h-20"},null,-1)),e.createElementVNode("section",ui,[e.createElementVNode("div",yi,[e.createElementVNode("div",wi,[e.createElementVNode("img",{src:a.logo,alt:"Logo",class:"w-[71px] h-[56px]"},null,8,Ci)])]),e.createElementVNode("div",ki,[e.createElementVNode("div",Ni,[e.createElementVNode("div",Vi,[e.createElementVNode("a",{href:"#",onClick:t[0]||(t[0]=e.withModifiers(d=>r.pageChange("tournaments"),["prevent"]))},[e.createVNode(s,{color:"secondary",size:"md",tag:"p",weight:"normal",class:"pb-2"},{default:e.withCtx(()=>t[12]||(t[12]=[e.createTextVNode("Tournaments")])),_:1})])]),e.createElementVNode("div",Ei,[e.createElementVNode("a",{href:"#",onClick:t[1]||(t[1]=e.withModifiers(d=>r.pageChange("clubs"),["prevent"]))},[e.createVNode(s,{color:"secondary",size:"md",tag:"p",weight:"normal",class:"pb-2"},{default:e.withCtx(()=>t[13]||(t[13]=[e.createTextVNode("Clubs")])),_:1})]),t[14]||(t[14]=e.createTextVNode("a "))]),e.createElementVNode("div",Bi,[e.createElementVNode("a",{href:"#",onClick:t[2]||(t[2]=e.withModifiers(d=>r.pageChange("leaderboard"),["prevent"]))},[e.createVNode(s,{color:"secondary",size:"md",tag:"p",weight:"normal",class:"pb-2"},{default:e.withCtx(()=>t[15]||(t[15]=[e.createTextVNode("Leaderboard")])),_:1})])])]),e.createElementVNode("div",_i,[e.createElementVNode("div",Si,[e.createElementVNode("a",{href:"#",onClick:t[3]||(t[3]=e.withModifiers(d=>r.pageChange("tournaments"),["prevent"]))},[e.createVNode(s,{color:"secondary",size:"sm",tag:"p",weight:"thin",class:"pb-2"},{default:e.withCtx(()=>t[16]||(t[16]=[e.createTextVNode("Upcoming")])),_:1})])]),e.createElementVNode("div",Ti,[e.createElementVNode("a",{href:"#",onClick:t[4]||(t[4]=e.withModifiers(d=>r.pageChange("clubs"),["prevent"]))},[e.createVNode(s,{color:"secondary",size:"sm",tag:"p",weight:"thin",class:"pb-2"},{default:e.withCtx(()=>t[17]||(t[17]=[e.createTextVNode("Club List")])),_:1})])]),e.createElementVNode("div",Ai,[e.createElementVNode("a",{href:"#",onClick:t[5]||(t[5]=e.withModifiers(d=>r.pageChange("leaderboard"),["prevent"]))},[e.createVNode(s,{color:"secondary",size:"sm",tag:"p",weight:"thin",class:"pb-2"},{default:e.withCtx(()=>t[18]||(t[18]=[e.createTextVNode("Top Fencers")])),_:1})])])]),e.createElementVNode("div",zi,[e.createElementVNode("div",Ii,[e.createElementVNode("a",{href:"#",onClick:t[6]||(t[6]=e.withModifiers(d=>r.pageChange("tournaments"),["prevent"]))},[e.createVNode(s,{color:"secondary",size:"sm",tag:"p",weight:"thin",class:"pb-2"},{default:e.withCtx(()=>t[19]||(t[19]=[e.createTextVNode("Past")])),_:1})])]),e.createElementVNode("div",Pi,[e.createElementVNode("a",{href:"#",onClick:t[7]||(t[7]=e.withModifiers(d=>r.pageChange("clubs"),["prevent"]))},[e.createVNode(s,{color:"secondary",size:"sm",tag:"p",weight:"thin",class:"pb-2"},{default:e.withCtx(()=>t[20]||(t[20]=[e.createTextVNode("Local Clubs")])),_:1})])]),e.createElementVNode("div",Li,[e.createElementVNode("a",{href:"#",onClick:t[8]||(t[8]=e.withModifiers(d=>r.pageChange("leaderboard"),["prevent"]))},[e.createVNode(s,{color:"secondary",size:"sm",tag:"p",weight:"thin",class:"pb-2"},{default:e.withCtx(()=>t[21]||(t[21]=[e.createTextVNode("By Weapon")])),_:1})])])])]),e.createElementVNode("div",Mi,[e.createElementVNode("div",Di,[e.createElementVNode("div",ji,[e.createVNode(s,{color:"secondary",size:"md",tag:"p",weight:"thin",class:"pb-4"},{default:e.withCtx(()=>t[22]||(t[22]=[e.createTextVNode("Subscribe")])),_:1}),e.createVNode(c,{placeholder:"Email",type:"email",class:"w-52"})])]),e.createElementVNode("div",Oi,[e.createElementVNode("div",Ri,[e.createVNode(s,{color:"secondary",size:"md",tag:"p",weight:"thin",class:"pb-2"},{default:e.withCtx(()=>t[23]||(t[23]=[e.createTextVNode("Follow Us")])),_:1}),e.createElementVNode("div",null,[e.createVNode(i,{type:"fa-brands",icon:"fa-facebook",color:"secondary",size:"lg",class:"mr-4"}),e.createVNode(i,{type:"fa-brands",icon:"fa-discord",color:"secondary",size:"lg",class:"mr-4"}),e.createVNode(i,{type:"fa-brands",icon:"fa-instagram",color:"secondary",size:"lg",class:"mr-4"}),e.createVNode(i,{type:"fa-brands",icon:"fa-youtube",color:"secondary",size:"lg",class:"mr-4"})])])])])]),e.createElementVNode("div",Fi,[e.createVNode(s,{color:"secondary",size:"sm",tag:"p",weight:"normal",class:"text-center pt-4"},{default:e.withCtx(()=>t[24]||(t[24]=[e.createTextVNode("© Copyright Meyer Squared 2024. All rights reserved.")])),_:1})])]),e.createElementVNode("section",Ui,[t[31]||(t[31]=e.createElementVNode("div",{class:"h-8"},null,-1)),e.createElementVNode("div",Gi,[e.createElementVNode("div",Wi,[e.createElementVNode("div",Hi,[e.createElementVNode("img",{src:a.logo,alt:"Logo",class:"w-[94px] h-[74px]"},null,8,qi)]),e.createElementVNode("div",Ki,[e.createElementVNode("a",{href:"#",onClick:t[9]||(t[9]=e.withModifiers(d=>r.pageChange("tournaments"),["prevent"]))},[e.createVNode(s,{color:"secondary",size:"md",tag:"p",weight:"normal",class:"mb-2"},{default:e.withCtx(()=>t[26]||(t[26]=[e.createTextVNode("Tournaments")])),_:1})]),e.createElementVNode("a",{href:"#",onClick:t[10]||(t[10]=e.withModifiers(d=>r.pageChange("tournaments"),["prevent"]))},[e.createVNode(s,{color:"secondary",size:"sm",tag:"p",weight:"normal",class:"mb-2"},{default:e.withCtx(()=>t[27]||(t[27]=[e.createTextVNode("Upcoming")])),_:1})]),e.createElementVNode("a",{href:"#",onClick:t[11]||(t[11]=e.withModifiers(d=>r.pageChange("tournaments"),["prevent"]))},[e.createVNode(s,{color:"secondary",size:"sm",tag:"p",weight:"normal",class:"mb-2"},{default:e.withCtx(()=>t[28]||(t[28]=[e.createTextVNode("Past")])),_:1})])])])]),e.createElementVNode("div",Yi,[e.createElementVNode("div",Zi,[e.createVNode(s,{color:"secondary",size:"md",tag:"p",weight:"thin",class:"pb-4 w-full"},{default:e.withCtx(()=>t[29]||(t[29]=[e.createTextVNode("Subscribe for Updates")])),_:1}),e.createVNode(c,{placeholder:"Email",type:"email",class:"w-full"})]),e.createElementVNode("div",Qi,[e.createVNode(s,{color:"secondary",size:"md",tag:"p",weight:"thin",class:"pb-2"},{default:e.withCtx(()=>t[30]||(t[30]=[e.createTextVNode("Follow Us")])),_:1}),e.createElementVNode("div",Ji,[e.createVNode(i,{type:"fa-brands",icon:"fa-facebook",color:"secondary",size:"lg",class:"mr-4"}),e.createVNode(i,{type:"fa-brands",icon:"fa-discord",color:"secondary",size:"lg",class:"mr-4"}),e.createVNode(i,{type:"fa-brands",icon:"fa-instagram",color:"secondary",size:"lg",class:"mr-4"}),e.createVNode(i,{type:"fa-brands",icon:"fa-youtube",color:"secondary",size:"lg",class:"mr-4"})])])])])],64)}const He=b(xi,[["render",Xi]]),$i={name:"HomePage",components:{RatingSystemAnnouncement:Re,BaseText:w,Footer:He,DoubleButtonBanner:We,SingleButtonBanner:Ge,GridLayout:ie,ArticleCard:de,FencerCard:me,PageHeader:Me,HeroBanner:Ue,ScrollNav:je},props:{title:{type:String,default:"Hero Banner Title"},description:{type:String,default:"This is the description that goes under the hero banner."},buttonLabel:{type:String,default:"Click Here"},imageSrc:{type:String,default:"https://meyersquared.com/images/Banner2.png"},tournaments:{type:Array,default:()=>[]},tournamentsIsLoading:{type:Boolean,default:!1},articles:{type:Array,default:()=>[]},articlesIsLoading:{type:Boolean,default:!1},topFencers:{type:Array,default:()=>[]},topFencersIsLoading:{type:Boolean,default:!1}},computed:{ArticleCard(){return de},FencerCard(){return me},limitedTournaments(){return this.tournaments.slice(0,6)}},mounted(){this.checkScreenSize(),window.addEventListener("resize",this.checkScreenSize)},beforeUnmount(){window.removeEventListener("resize",this.checkScreenSize)},data(){return{TournamentCard:e.markRaw(Fe),mobileHorizontal:!0}},methods:{checkScreenSize(){this.mobileHorizontal=window.matchMedia("(max-width: 768px)").matches},handleGridCardClick(){console.log("Grid Card Clicked")},changePage(n){console.log("Change Page",n)}}},vi={class:"m-0 w-full bg-secondary"};function ec(n,t,o,l,a,r){const s=e.resolveComponent("PageHeader"),c=e.resolveComponent("HeroBanner"),i=e.resolveComponent("ScrollNav"),d=e.resolveComponent("GridLayout"),m=e.resolveComponent("SingleButtonBanner"),h=e.resolveComponent("RatingSystemAnnouncement"),p=e.resolveComponent("DoubleButtonBanner"),f=e.resolveComponent("Footer");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",vi,[e.createVNode(s,{onChangePage:r.changePage},null,8,["onChangePage"]),e.createVNode(c,{title:o.title,buttonLabel:o.buttonLabel,description:o.description,imageSrc:o.imageSrc},null,8,["title","buttonLabel","description","imageSrc"]),e.createVNode(i,{buffer:200}),e.createVNode(d,{cardComponent:a.TournamentCard,items:r.limitedTournaments,maxColumns:3,isLoading:o.articlesIsLoading,moreButtonLabel:"See All Tournaments",title:"Upcoming",onGridClick:t[0]||(t[0]=g=>r.changePage("tournaments")),onGridCardClick:r.handleGridCardClick},null,8,["cardComponent","items","isLoading","onGridCardClick"]),e.createVNode(m,{buttonLabel:"Learn More",description:"Look for a Club? <br> We can help.",imageUrl:"https://meyersquared.com/images/banners/largebanner03.jpg",onHandleButtonClick:t[1]||(t[1]=g=>r.changePage("clubs"))}),e.createVNode(h),e.createVNode(p,{title:"How Does Meyer Squared work?","button-label-two":"Run a tournament","button-label-one":"Submit Results",onHandleButtonClickOne:t[2]||(t[2]=g=>r.changePage("submitresults")),onHandleButtonClickTwo:t[3]||(t[3]=g=>r.changePage("runtournament"))}),e.createVNode(d,{cardComponent:r.ArticleCard,items:o.articles,maxColumns:3,mobileHorizontal:a.mobileHorizontal,isLoading:o.articlesIsLoading,moreButtonLabel:"See More",title:"Interesting Articles",onGridClick:t[4]||(t[4]=g=>r.changePage("articles")),onGridCardClick:r.handleGridCardClick},null,8,["cardComponent","items","mobileHorizontal","isLoading","onGridCardClick"])]),e.createVNode(f,{onChangePage:r.changePage},null,8,["onChangePage"])],64)}const tc=b($i,[["render",ec]]);u.ArticleCard=de,u.BaseButton=T,u.BaseText=w,u.BreadCrumbs=eo,u.Calendar=mt,u.ClubHeader=Jo,u.ClubListCard=Ya,u.ClubMember=$a,u.ContactUsForm=Fr,u.DoubleButtonBanner=We,u.EventListCard=gs,u.FencerCard=me,u.FencerListCard=ce,u.Footer=He,u.GridLayout=ie,u.GridLivePool=ia,u.GridPool=Sa,u.GridTabs=wn,u.HeroBanner=Ue,u.HomePage=tc,u.HostColumn=Mo,u.Icon=V,u.InputField=W,u.LeaderboardHeader=ti,u.Mapbox=Le,u.PageHeader=Me,u.PhotoCard=Bs,u.ProgressTracker=Qt,u.RatingSystemAnnouncement=Re,u.ScrollNav=je,u.SearchBox=X,u.SingleButtonBanner=Ge,u.SocialMediaLinkCard=js,u.TabHeader=yo,u.TournamentBanner=Dr,u.TournamentCard=Fe,u.TournamentDetails=bl,u.TournamentDetailsBanner=_r,u.TournamentHeader=or,u.TournamentListCard=Fl,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
<div class="border-b border-dropdownSelect mb-5"></div>
|
|
29
29
|
<div class="w-full flex flex-col items-center">
|
|
30
30
|
<div v-for="bout in markedUpcomingBouts" :key="bout.BoutId" class="w-full md:w-3/4 md:my-4">
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
<BoutCard v-if="!isMobile" :bout="bout" :hostingClubColors="hostingClubColors" />
|
|
32
|
+
<BoutCardMobile v-if="isMobile" :bout="bout" :hostingClubColors="hostingClubColors" />
|
|
33
33
|
</div>
|
|
34
34
|
</div>
|
|
35
35
|
</section>
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
<div class="hidden md:block border-b border-dropdownSelect mb-5"></div>
|
|
43
43
|
<div class="w-full flex flex-col items-center">
|
|
44
44
|
<div v-for="bout in completedBouts" :key="bout.BoutId" class="w-full md:w-3/4 md:my-4">
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
<BoutCard v-if="!isMobile" :bout="bout" :hostingClubColors="hostingClubColors" />
|
|
46
|
+
<BoutCardMobile v-if="isMobile" :bout="bout" :hostingClubColors="hostingClubColors" />
|
|
47
47
|
</div>
|
|
48
48
|
</div>
|
|
49
49
|
</section>
|