@dcrackel/meyersquaredui 1.0.143 → 1.0.145

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.
@@ -6522,7 +6522,7 @@ const tc = /* @__PURE__ */ S(li, [["render", ci]]), ui = {
6522
6522
  }, mi = { class: "md:w-full mb-8" };
6523
6523
  function hi(r, e, t, i, n, s) {
6524
6524
  return h(), f("div", mi, [
6525
- (h(), f(T, null, M(6, (o) => a("div", {
6525
+ (h(), f(T, null, M(1, (o) => a("div", {
6526
6526
  key: o,
6527
6527
  class: "animate-pulse"
6528
6528
  }, e[0] || (e[0] = [
@@ -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)}}},bn={class:"w-full pb-2 rounded-lg"},un={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"},yn={class:"flex"},wn={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 Cn(n,t,o,l,s,r){const a=e.resolveComponent("BaseText"),c=e.resolveComponent("Icon"),i=e.resolveComponent("Tooltip"),d=e.resolveComponent("GridLayout");return e.openBlock(),e.createElementBlock("div",bn,[e.createElementVNode("div",un,[e.createVNode(a,{color:"primary",size:"",tag:"h3",weight:"bold",class:"text-sm md:text-xl"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(`Fencers in ${o.pools[s.selectedTab].Name}`),1)]),_:1}),e.createElementVNode("div",yn,[e.createVNode(a,{color:"primary",size:"",tag:"h3",weight:"bold",class:"text-sm md:text-xl"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(`${o.pools[s.selectedTab].poolStrengthInd} Strength Indicator`),1)]),_:1}),e.createVNode(i,{text:s.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",wn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.pools,(m,h)=>(e.openBlock(),e.createElementBlock("span",{key:m.PoolId},[e.createVNode(a,{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",s.selectedTab===h?"border-accent":"border-white"]),onClick:g=>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 kn=b(xn,[["render",Cn]]),Nn={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:U}},mounted(){this.timerStatus==="running"&&this.startTimer()},beforeDestroy(){this.stopTimer()},watch:{timerStatus(n){n==="running"?this.startTimer():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}}},Vn={key:0,class:"text-left"},En={class:"flex items-center justify-between rounded-lg w-full"},_n={class:"flex space-x-4 items-center"},Sn=["src"],Bn={key:0,class:"w-2/12 h-16 pt-3 text-center bg-primary"},Tn={class:"flex justify-between space-x-4 ml-4 w-full"},zn={class:"flex"},An={class:"pt-1"},In={class:"pl-2"},Ln=["src"];function Pn(n,t,o,l,s,r){const a=e.resolveComponent("BaseText");return e.openBlock(),e.createElementBlock("section",null,[o.bout.customStatus&&r.status!=="Active"?(e.openBlock(),e.createElementBlock("div",Vn,[e.createVNode(a,{size:"sm",color:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.bout.customStatus),1)]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",En,[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",_n,[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,Sn)]),e.createElementVNode("div",null,[e.createVNode(a,{size:"md",color:"primary",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer1Name),1)]),_:1}),e.createVNode(a,{size:"xs",color:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer1Team),1)]),_:1})])]),e.createVNode(a,{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",Bn,[e.createVNode(a,{size:"2xl",color:"white",weight:"bold",class:"font-sourceCodePro"},{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",Tn,[e.createVNode(a,{size:"3xl",weight:"bold",class:"pl-3 pt-0.5"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer2Score),1)]),_:1}),e.createElementVNode("div",zn,[e.createElementVNode("div",An,[e.createVNode(a,{size:"md",color:"primary",weight:"bold",class:"text-right"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer2Name),1)]),_:1}),e.createVNode(a,{size:"xs",color:"primary",class:"text-right"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer2Team),1)]),_:1})]),e.createElementVNode("div",In,[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,Ln)])])])],2)])])}const Dn=b(Nn,[["render",Pn]]),Mn={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:U}},mounted(){this.timerStatus==="running"&&this.startTimer()},beforeDestroy(){this.stopTimer()},watch:{timerStatus(n){n==="running"?this.startTimer():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}}},jn={class:"flex flex-col items-center w-full space-y-2 p-4 bg-poolBox rounded-lg relative"},On={key:0,class:"text-center"},Fn={class:"flex items-center justify-between w-full relative"},Rn={class:"flex flex-col items-center p-1"},Hn={class:"flex justify-between w-full"},Un=["src"],Gn={class:"text-left"},Wn={class:"absolute top-2 inset-x-0 text-center z-10 flex justify-center"},qn={key:0,class:"bg-primary p-2 rounded-lg"},Kn={key:1,class:"w-4"},Yn={class:"flex flex-col items-center"},Zn={class:"flex justify-end w-full"},Qn=["src"],Jn={class:"text-right"};function Xn(n,t,o,l,s,r){const a=e.resolveComponent("BaseText");return e.openBlock(),e.createElementBlock("section",jn,[o.bout.customStatus&&r.status!=="Active"?(e.openBlock(),e.createElementBlock("div",On,[e.createVNode(a,{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",Fn,[e.createElementVNode("div",Rn,[e.createElementVNode("div",Hn,[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,Un)]),e.createElementVNode("div",Gn,[e.createVNode(a,{size:"sm",color:"primary",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer1Name),1)]),_:1}),e.createVNode(a,{size:"xs",color:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer1Club),1)]),_:1})])]),e.createElementVNode("div",Wn,[e.createVNode(a,{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",qn,[e.createVNode(a,{size:"sm",color:"white",weight:"bold",class:"font-sourceCodePro"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.displayTime),1)]),_:1})])):e.createCommentVNode("",!0),r.status!=="Active"?(e.openBlock(),e.createElementBlock("div",Kn)):e.createCommentVNode("",!0),e.createVNode(a,{size:"4xl",weight:"bold",class:"pl-4 -mt-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer1Score),1)]),_:1})]),e.createElementVNode("div",Yn,[e.createElementVNode("div",Zn,[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,Qn)]),e.createElementVNode("div",Jn,[e.createVNode(a,{size:"sm",color:"primary",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer2Name),1)]),_:1}),e.createVNode(a,{size:"xs",color:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer2Club),1)]),_:1})])])])])}const $n={name:"GridLivePool",components:{BoutCardMobile:b(Mn,[["render",Xn]]),BoutCard:Dn,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}}},vn={key:0},ea={class:"w-full flex flex-col items-center"},ta={key:0,class:"w-full md:w-3/4 md:my-4"},oa={key:1},ra={class:"flex flex-row justify-between"},na={class:"flex mr-1"},aa={class:"w-full flex flex-col items-center"},sa={key:2},la={class:"flex flex-row"},ia={class:"w-full flex flex-col items-center"};function ca(n,t,o,l,s,r){const a=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",vn,[t[0]||(t[0]=e.createElementVNode("div",{class:"border-b border-dropdownSelect mb-8"},null,-1)),e.createElementVNode("div",ea,[r.hasActiveBout?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ta,[s.isMobile?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a,{key:0,bout:{},hostingClubColors:o.hostingClubColors,isWaiting:!0},null,8,["hostingClubColors"])),s.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"},[s.isMobile?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a,{key:0,bout:d,hostingClubColors:o.hostingClubColors,timerStatus:d.TimerStatus},null,8,["bout","hostingClubColors","timerStatus"])),s.isMobile?(e.openBlock(),e.createBlock(c,{key:1,bout:d,hostingClubColors:o.hostingClubColors,timerStatus:d.TimerStatus},null,8,["bout","hostingClubColors","timerStatus"])):e.createCommentVNode("",!0)]))),128))])])):e.createCommentVNode("",!0),r.remainingBoutsCount>0?(e.openBlock(),e.createElementBlock("section",oa,[e.createElementVNode("div",ra,[e.createVNode(i,{class:"mt-5",color:"primaryHighlight",size:"md",text:"Upcoming",weight:"bold"}),e.createElementVNode("div",na,[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",aa,[(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"},[s.isMobile?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a,{key:0,bout:d,hostingClubColors:o.hostingClubColors},null,8,["bout","hostingClubColors"])),s.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",sa,[e.createElementVNode("div",la,[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",ia,[(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"},[s.isMobile?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a,{key:0,bout:d,hostingClubColors:o.hostingClubColors},null,8,["bout","hostingClubColors"])),s.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 da=b($n,[["render",ca]]),ma={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(" ");return`${t?t.charAt(0):""}. ${o}`},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,s=o.Score2;return o.Status==="Completed"?l>s?o.Person1Id===n?`W${l}`:`L${s}`:s>l?o.Person1Id===n?`L${l}`:`W${s}`:`T${l}`:o.Person1Id===n?l:s}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:"bg-accent",text:"text-white"}:{bg:"border-accent border bg-white",text:"text-primary"};if(o.Score2>o.Score1)return t===o.Person2Id?{bg:"border-accent border bg-white",text:"text-primary"}:{bg:"bg-accent",text:"text-white"};if(o.Score2===o.Score1)return{bg:"bg-primary",text:"text-white"}}if(o.Status==="Active")return{bg:"bg-blue",text:"text-white"}}return{bg:"",text:""}},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,s=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),a=s-r;return{WP:`${t.length>0?(o/t.length*100).toFixed(0):"0.00"}%`,HS:s,HR:r,IND:a,W:o,L:l}}}},ha={class:"flex w-full justify-center mb-4 overflow-x-auto"},ga={class:"border-separate border-spacing-1"},pa={class:"bg-primary rounded-md md:rounded-lg px-1 py-1 md:px-4 md:py-2"},fa={key:0,class:"w-1"},xa={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"},ba={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"},ua={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"},ya={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"},wa={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"},Ca={class:"border border-primary rounded-md md:rounded-lg text-right align-middle px-1 md:px-4 w-auto"},ka={class:"bg-primary rounded-md md:rounded-lg text-center align-middle h-6 w-6 md:h-10 md:w-10"},Na=["rowspan"],Va={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"},Ea={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"},_a={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"},Sa={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 Ta(n,t,o,l,s,r){const a=e.resolveComponent("BaseText"),c=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock("div",ha,[e.createElementVNode("table",ga,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",pa,[e.createVNode(a,{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-primary 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(a,{size:"",weight:"bold",color:"white",class:"text-xs md:text-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d+1),1)]),_:2},1024)]))),128)),s.showStats?(e.openBlock(),e.createElementBlock("th",fa)):e.createCommentVNode("",!0),s.showStats?(e.openBlock(),e.createElementBlock("th",xa,[e.createVNode(a,{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),s.showStats?(e.openBlock(),e.createElementBlock("th",ba,[e.createVNode(a,{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),s.showStats?(e.openBlock(),e.createElementBlock("th",ua,[e.createVNode(a,{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),s.showStats?(e.openBlock(),e.createElementBlock("th",ya,[e.createVNode(a,{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),s.showStats?(e.openBlock(),e.createElementBlock("th",wa,[e.createVNode(a,{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",Ca,[e.createVNode(a,{size:"",color:"primary",class:"hidden md:block text-xs md:text-sm min-w-48"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.DisplayName),1)]),_:2},1024),e.createVNode(a,{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",ka,[e.createVNode(a,{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-primary 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).bg],"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(a,{class:e.normalizeClass([r.getBoutClass(i.PersonId,m.PersonId).text,"text-xs md:text-sm"]),size:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.getScore(i.PersonId,m.PersonId)),1)]),_:2},1032,["class"])],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=>s.showStats=!s.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":s.showStats}])},null,8,["class"])],8,Na)):e.createCommentVNode("",!0),t[10]||(t[10]=e.createElementVNode("th",{class:"hidden md:block w-1"},null,-1)),s.showStats?(e.openBlock(),e.createElementBlock("td",Va,[e.createVNode(a,{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),s.showStats?(e.openBlock(),e.createElementBlock("td",Ea,[e.createVNode(a,{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),s.showStats?(e.openBlock(),e.createElementBlock("td",_a,[e.createVNode(a,{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),s.showStats?(e.openBlock(),e.createElementBlock("td",Sa,[e.createVNode(a,{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),s.showStats?(e.openBlock(),e.createElementBlock("td",Ba,[e.createVNode(a,{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 za=b(ma,[["render",Ta]]),Aa={name:"ArticleCardSkeleton"},Ia={class:"w-full bg-secondary rounded-lg flex flex-col items-start animate-pulse"};function La(n,t,o,l,s,r){return e.openBlock(),e.createElementBlock("div",Ia,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 Pa={name:"ArticleCard",components:{ArticleCardSkeleton:b(Aa,[["render",La]]),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)}}},Da={key:0,class:"w-72 p-4 bg-secondary rounded-lg flex flex-col items-start"},Ma={key:1,class:"min-w-72 p-4 bg-secondary rounded-lg flex flex-col items-start"},ja=["src"];function Oa(n,t,o,l,s,r){const a=e.resolveComponent("ArticleCardSkeleton"),c=e.resolveComponent("BaseText");return e.openBlock(),e.createElementBlock(e.Fragment,null,[o.isLoading?(e.openBlock(),e.createElementBlock("div",Da,[e.createVNode(a)])):e.createCommentVNode("",!0),o.isLoading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ma,[e.createElementVNode("img",{src:r.image,alt:"Article Image",class:"w-full h-40 object-cover rounded-t-md mb-4"},null,8,ja),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(Pa,[["render",Oa]]),Fa={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)}}},Ra={class:"flex flex-col md:flex-row w-full"},Ha={class:"flex flex-grow-0 flex-shrink-0 md:w-auto"},Ua=["src"],Ga={class:"flex flex-col ml-2 md:hidden"},Wa={class:"flex-grow md:ml-4"},qa={class:"flex flex-col mt-4 md:mt-0 md:w-48 md:flex-shrink-0"},Ka={class:"flex md:justify-end"},Ya={class:"flex md:justify-end mt-2"};function Za(n,t,o,l,s,r){const a=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",Ra,[e.createElementVNode("section",Ha,[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,Ua),e.createElementVNode("div",Ga,[e.createVNode(a,{color:"primary",tag:"h2",size:"lg",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.Name),1)]),_:1}),e.createVNode(a,{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",Wa,[e.createVNode(a,{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(a,{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(a,{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",qa,[e.createElementVNode("div",Ka,[e.createVNode(c,{icon:"fa-users",size:"xs",color:"accent",class:"mr-3"}),e.createVNode(a,{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",Ya,[e.createVNode(c,{icon:"fa-house-blank",type:"fa-regular",size:"xs",color:"accent",class:"mr-3"}),e.createVNode(a,{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 Qa=b(Fa,[["render",Za]]),Ja={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:U},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)}}},Xa={class:"flex justify-center mb-4"},$a=["src"];function va(n,t,o,l,s,r){const a=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",Xa,[e.createElementVNode("img",{src:r.portrait,alt:"User Portrait",class:"w-[150px] h-[150px] rounded-full object-cover"},null,8,$a)]),e.createVNode(a,{tag:"h2",size:"md",weight:"bold",class:"mb-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.displayName),1)]),_:1}),e.createVNode(a,{tag:"p",size:"xs",weight:"semibold",class:"text-accent"},{default:e.withCtx(()=>[e.createTextVNode("M2: "+e.toDisplayString(r.m2Rating),1)]),_:1})])}const es=b(Ja,[["render",va],["__scopeId","data-v-bae6ab08"]]),ts={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)}}},os={class:"flex space-x-4 w-full cursor-pointer"},rs={class:"w-10 pt-1 md:pt-0"},ns={class:"h-10 w-10 rounded-full flex justify-center items-center border border-accent z-1"},as={key:0,class:"h-6 w-6 bg-accent rounded-full -mt-4 ml-7 pt-1 z-10 absolute items-center"},ss={class:"flex w-full flex-col md:flex-row"},ls={class:"flex flex-col pl-2 items-start flex-grow"},is={class:"flex flex-col md:flex-row"},cs={class:"flex row mt-1 md:mt-0"},ds={class:"flex row mt-1 md:mt-0"},ms={class:"w-full md:w-20 flex justify-end md:pt-3"},hs={class:"flex border-b border-white hover:border-accent md:h-8"},gs={class:"hidden md:flex"},ps={class:"flex md:hidden"};function fs(n,t,o,l,s,r){const a=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",os,[e.createElementVNode("section",rs,[e.createElementVNode("div",ns,[e.createVNode(a,{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",as,[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",ss,[e.createElementVNode("section",ls,[e.createVNode(c,{color:"primary",size:"lg",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.EventName),1)]),_:1}),e.createElementVNode("div",is,[e.createElementVNode("div",cs,[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",ds,[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",ms,[e.createElementVNode("div",hs,[e.createElementVNode("div",gs,[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(a,{icon:"fa-arrow-right",color:"primary",type:"fa-thin",size:"xl"})]),e.createElementVNode("div",ps,[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(a,{icon:"fa-arrow-right",color:"primary",type:"fa-thin",size:"xs",class:""})])])])])])])}const xs=b(ts,[["render",fs]]),bs={name:"FencerCard",components:{FencerCardSkeleton:Fe,BaseText:w,defaultPortrait:U},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:U},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)}}},us={key:0,class:"max-w-72 p-2 bg-secondary rounded-lg flex flex-col items-start"},ys={class:"flex flex-col m-auto justify-center mb-4 items-center w-[130px]"},ws=["src"],Cs={class:"flex flex-col md:flex-row justify-center md:justify-around -mt-2 border-b border-borderGray z-10 pb-2 mb-2"},ks={class:"flex items-center justify-center"};function Ns(n,t,o,l,s,r){const a=e.resolveComponent("FencerCardSkeleton"),c=e.resolveComponent("BaseText");return e.openBlock(),e.createElementBlock(e.Fragment,null,[o.isLoading?(e.openBlock(),e.createElementBlock("div",us,[e.createVNode(a)])):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",ys,[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,ws)]),e.createElementVNode("div",Cs,[e.createElementVNode("div",ks,[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(bs,[["render",Ns]]),Vs={name:"FencerPoolStatsCard",components:{BaseText:w},props:{data:{type:Object,required:!0},index:{type:Number,required:!0}},data(){return{showLongName:!1}},mounted(){this.checkScreenSize(),window.addEventListener("resize",this.checkScreenSize)},beforeDestroy(){window.removeEventListener("resize",this.checkScreenSize)},computed:{FencerName(){return!this.showLongName&&!this.data.isHeader?this.getFencerShortName(this.data.Name):this.data.Name}},methods:{checkScreenSize(){this.showLongName=window.matchMedia("(min-width: 768px)").matches},getFencerShortName(n){const[t,o]=n.split(" ");return`${t?t.charAt(0):""}. ${o}`}}},Es={class:"grid grid-cols-2 p-2 md:p-4 border-b w-full"},_s={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},Ss={class:"flex items-center"},Bs={key:0,class:"w-5 h-5 rounded-full bg-accent flex items-center justify-center mr-2 md:mr-4 flex-shrink-0"},Ts={key:1,class:"w-5 h-5 rounded-full flex items-center justify-center min-w-8 overflow-hidden"},zs={class:"items-center hidden md:flex"},As={class:"grid grid-cols-5 gap-4"},Is={class:"text-center w-full"},Ls={class:"text-center w-full"},Ps={class:"text-center w-full"},Ds={class:"text-center w-full"},Ms={class:"text-center w-full"};function js(n,t,o,l,s,r){const a=e.resolveComponent("BaseText");return e.openBlock(),e.createElementBlock("section",Es,[e.createElementVNode("div",_s,[e.createElementVNode("div",Ss,[o.data.isHeader?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Bs,[e.createVNode(a,{tag:"p",size:"xs",color:"white",weight:"normal",class:"text-center font-sourceCodePro"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.index),1)]),_:1})])),o.data.isHeader?(e.openBlock(),e.createElementBlock("div",Ts)):e.createCommentVNode("",!0),e.createVNode(a,{tag:"h3",size:"md",weight:"bold",class:"min-w-52"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.FencerName),1)]),_:1})]),e.createElementVNode("div",zs,[e.createVNode(a,{tag:"p",size:"sm",weight:o.data.isHeader?"bold":"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.Club),1)]),_:1},8,["weight"])])]),e.createElementVNode("div",As,[e.createElementVNode("div",Is,[e.createVNode(a,{size:"sm",weight:o.data.isHeader?"bold":"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.WP),1)]),_:1},8,["weight"])]),e.createElementVNode("div",Ls,[o.data.isHeader?(e.openBlock(),e.createBlock(a,{key:0,size:"sm",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.Wins),1)]),_:1})):e.createCommentVNode("",!0),o.data.isHeader?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a,{key:1,size:"sm",weight:"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.Wins)+"/"+e.toDisplayString(o.data.Losses),1)]),_:1}))]),e.createElementVNode("div",Ps,[e.createVNode(a,{size:"sm",weight:o.data.isHeader?"bold":"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.HS),1)]),_:1},8,["weight"])]),e.createElementVNode("div",Ds,[e.createVNode(a,{size:"sm",weight:o.data.isHeader?"bold":"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.HR),1)]),_:1},8,["weight"])]),e.createElementVNode("div",Ms,[e.createVNode(a,{size:"sm",weight:o.data.isHeader?"bold":"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.IND),1)]),_:1},8,["weight"])])])])}const Os=b(Vs,[["render",js]]),Fs={name:"PhotoCard",props:{data:{type:Object,required:!0}}},Rs={class:"w-[250px] h-[150px]"},Hs=["src","alt"];function Us(n,t,o,l,s,r){return e.openBlock(),e.createElementBlock("div",Rs,[e.createElementVNode("img",{src:o.data.URL,alt:o.data.AltText,class:"object-cover w-full h-full"},null,8,Hs)])}const Gs=b(Fs,[["render",Us]]),Ws={name:"RatingSystemAnnouncement",components:{BaseText:w}},qs={class:"w-full flex justify-center mx-auto mt-10 mb-20"},Ks={class:"max-w-[1200px] w-full flex justify-center mx-auto mt-8 flex-col"},Ys={class:"w-full flex py-4 md:pb-10 ml-2 md:ml-0 mb-4 justify-center"},Zs={class:"flex"},Qs={class:"md:w-1/2 flex justify-center"};function Js(n,t,o,l,s,r){const a=e.resolveComponent("BaseText");return e.openBlock(),e.createElementBlock("section",qs,[e.createElementVNode("section",null,[e.createElementVNode("div",Ks,[e.createElementVNode("div",Ys,[e.createVNode(a,{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",Qs,[e.createVNode(a,{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(Ws,[["render",Js]]),Xs={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")}}},$s={class:"md:w-64 m-2 flex flex-col mb-20"};function vs(n,t,o,l,s,r){const a=e.resolveComponent("BaseButton");return e.openBlock(),e.createElementBlock("aside",$s,[(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(a,{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 el=b(Xs,[["render",vs]]),tl={name:"TournamentCardSkeleton"},ol={class:"md:w-full mb-8"};function rl(n,t,o,l,s,r){return e.openBlock(),e.createElementBlock("div",ol,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(6,a=>e.createElementVNode("div",{key:a,class:"animate-pulse"},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)]))),64))])}const nl={name:"TournamentCard",components:{TournamentCardSkeleton:b(tl,[["render",rl]]),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)}}},al={key:0,class:"max-w-80 md:w-full mb-8"},sl={class:"hidden md:block"},ll={class:"relative w-full h-52"},il=["src"],cl={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"},dl={class:"flex items-center mb-1"},ml={class:"flex w-6 justify-center"},hl={key:0,class:"flex items-center"},gl={class:"flex w-6 justify-center"},pl={key:1,class:"flex items-center"},fl={class:"flex w-6 justify-center"},xl={class:"w-full md:hidden flex-col items-start gap-2 border-b border-borderGray"},bl={class:"flex flex-row"},ul=["src"],yl={class:"flex flex-col h-16 justify-center pl-3"},wl={class:"flex justify-between pt-4 pb-2"},Cl={class:"flex justify-start w-5/12"},kl={class:"flex justify-start mb-1 w-7/12"};function Nl(n,t,o,l,s,r){const a=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",al,[e.createVNode(a)])):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",sl,[e.createElementVNode("div",ll,[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,il),o.data.HostedOnM2?(e.openBlock(),e.createElementBlock("img",cl)):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",dl,[e.createElementVNode("span",ml,[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",hl,[e.createElementVNode("span",gl,[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",pl,[e.createElementVNode("span",fl,[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",xl,[e.createElementVNode("div",bl,[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,ul),e.createElementVNode("div",yl,[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",wl,[e.createElementVNode("div",Cl,[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",kl,[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 He=b(nl,[["render",Nl]]),Vl={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)}}},El={class:"w-full max-w-4xl mx-auto md:p-4"},_l={class:"w-full h-96 md:mb-4"},Sl=["src"],Bl={class:"flex justify-end items-center w-full md:h-10 rounded-md p-2"},Tl=["href"],zl={class:"w-full flex md:py-4 pb-4 md:pb-10"},Al={class:"bg-white p-4 m-2 rounded-lg"},Il=["innerHTML"];function Ll(n,t,o,l,s,r){const a=e.resolveComponent("BaseText"),c=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock("section",El,[e.createElementVNode("div",_l,[e.createElementVNode("img",{src:o.imageSrc,alt:"Tournament Image",class:"w-full h-full object-cover md:rounded-lg"},null,8,Sl)]),e.createElementVNode("div",Bl,[o.shareLinks&&o.shareLinks.length>0?(e.openBlock(),e.createBlock(a,{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,Tl))),128))]),e.createElementVNode("div",zl,[e.createVNode(a,{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",Al,[e.createElementVNode("div",{innerHTML:o.description,class:"text-base text-gray-800"},null,8,Il)])])}const Pl=b(Vl,[["render",Ll]]),Dl={name:"SkeletonTournamentCard"},Ml={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"};function jl(n,t,o,l,s,r){return e.openBlock(),e.createElementBlock("section",Ml,t[0]||(t[0]=[e.createStaticVNode('<div class="flex pt-1 w-full"><div class="w-24 md:w-32"><div class="relative w-24 h-16 md:w-32 md:h-20 mr-3 bg-gray-300 animate-pulse rounded-lg"></div></div><div class="flex flex-col pl-2"><div class="flex items-center mb-2 w-full"><div class="h-6 w-48 bg-gray-300 animate-pulse rounded"></div></div><div class="hidden md:flex items-center text-sm text-gray-600 mb-2"><div class="h-4 w-64 bg-gray-300 animate-pulse rounded"></div></div></div></div><div class="hidden md:flex mt-3 mb-1"><div class="flex flex-row w-full"><div class="flex items-center mr-10"><div class="h-4 w-16 bg-gray-300 animate-pulse rounded"></div></div><div class="flex items-center"><div class="h-4 w-32 bg-gray-300 animate-pulse rounded"></div></div></div></div><div class="flex flex-col md:hidden mt-2"><div class="flex items-center pb-2"><div class="h-4 w-28 bg-gray-300 animate-pulse rounded"></div></div><div class="flex flex-row"><div class="flex items-center mr-4"><div class="h-4 w-20 bg-gray-300 animate-pulse rounded"></div></div><div class="flex items-center"><div class="h-4 w-24 bg-gray-300 animate-pulse rounded"></div></div></div></div>',3)]))}const Ol={name:"TournamentListCard",components:{TournamentListCardSkeleton:b(Dl,[["render",jl]]),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)}}},Fl={key:0,class:"max-w-80 md:w-full mb-8"},Rl={class:"flex pt-1"},Hl={class:"relative w-24 h-16 md:w-32 md:h-20 mr-3"},Ul=["src","alt"],Gl={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"},Wl={class:"flex flex-col"},ql={class:"flex items-center mb-0"},Kl={class:"hidden md:flex items-center text-sm text-gray-600 mb-2"},Yl={class:"hidden md:flex mt-3 mb-1"},Zl={class:"flex flex-row w-full"},Ql={key:0,class:"flex items-center mr-10"},Jl={key:1,class:"flex items-center mr-4"},Xl={class:"flex w-6 justify-center"},$l={class:"flex items-center"},vl={class:"flex flex-col md:hidden mt-2"},ei={class:"flex items-center pb-2"},ti={class:"flex flex-row"},oi={key:0,class:"flex items-center mr-4"},ri={key:1,class:"flex items-center mr-4"},ni={class:"flex w-6 justify-center mr-2"},ai={class:"flex items-center"};function si(n,t,o,l,s,r){const a=e.resolveComponent("TournamentListCardSkeleton"),c=e.resolveComponent("BaseText"),i=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock(e.Fragment,null,[o.isLoading?(e.openBlock(),e.createElementBlock("div",Fl,[e.createVNode(a)])):e.createCommentVNode("",!0),o.isLoading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("section",{key:1,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]=(...d)=>r.handleCardClick&&r.handleCardClick(...d))},[e.createElementVNode("div",Rl,[e.createElementVNode("div",Hl,[e.createElementVNode("img",{src:r.tournamentImage,alt:r.imageAltText,class:"w-full h-full object-cover rounded-lg"},null,8,Ul),o.data.HostedOnM2?(e.openBlock(),e.createElementBlock("img",Gl)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Wl,[e.createElementVNode("div",ql,[e.createVNode(c,{color:"primary",tag:"h2",size:"2xl",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.tournamentName),1)]),_:1})]),e.createElementVNode("div",Kl,[e.createVNode(c,{color:"primary",tag:"p",size:"md",weight:"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.addressName),1)]),_:1})])])]),e.createElementVNode("div",Yl,[e.createElementVNode("div",Zl,[o.data.HostedOnM2?(e.openBlock(),e.createElementBlock("div",Ql,[e.createVNode(i,{type:o.data.HostedOnM2?"fa-solid":"fa-regular",icon:"fa-user-friends",size:"sm",color:"accent",class:"mr-4"},null,8,["type"]),e.createVNode(c,{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",Jl,[e.createElementVNode("span",Xl,[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.participants)+" Bookmarked",1)]),_:1})])),e.createElementVNode("div",$l,[e.createVNode(i,{type:o.data.HostedOnM2?"fa-solid":"fa-regular",icon:"fa-calendar",size:"sm",color:"accent",class:"mr-4"},null,8,["type"]),e.createVNode(c,{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",vl,[e.createElementVNode("div",ei,[e.createVNode(c,{color:"primary",tag:"p",size:"sm",weight:"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.addressName),1)]),_:1})]),e.createElementVNode("div",ti,[o.data.HostedOnM2?(e.openBlock(),e.createElementBlock("div",oi,[e.createVNode(i,{type:o.data.HostedOnM2?"fa-solid":"fa-regular",icon:"fa-user-friends",size:"sm",color:"accent",class:"mr-2"},null,8,["type"]),e.createVNode(c,{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",ri,[e.createElementVNode("span",ni,[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.participants)+" Bookmarked",1)]),_:1})])),e.createElementVNode("div",ai,[e.createVNode(i,{type:o.data.HostedOnM2?"fa-solid":"fa-regular",icon:"fa-calendar",size:"sm",color:"accent",class:"mr-2"},null,8,["type"]),e.createVNode(c,{color:"primary",tag:"p",size:"xs",weight:"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.startDate)+" | "+e.toDisplayString(r.startTime),1)]),_:1})])])])]))],64)}const li=b(Ol,[["render",si]]),ii={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)}}},ci={class:"relative w-full md:border-b md:border-l md:border-r border-lineGrey"},di=["src"],mi={class:"hidden md:flex absolute inset-0 items-center justify-start px-8 mt-40"},hi={class:"text-left text-white max-w-lg"},gi={key:1,class:"flex justify-center text-left w-full px-6 py-4"},pi={class:"w-full"};function fi(n,t,o,l,s,r){const a=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",ci,[s.isMobile?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("img",{key:0,src:o.imageSrc,alt:"Hero Image",class:"w-full h-full object-cover",loading:"lazy"},null,8,di)),e.createElementVNode("section",mi,[e.createElementVNode("div",hi,[e.createVNode(a,{color:"secondary",tag:"h1",size:"4xl",weight:"bold",class:"mb-4"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.title),1)]),_:1}),e.createVNode(a,{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"])])]),s.isMobile?(e.openBlock(),e.createElementBlock("div",gi,[e.createElementVNode("div",pi,[e.createVNode(a,{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(a,{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(ii,[["render",fi]]),xi={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)}}},bi={class:"w-full bg-white py-4 flex justify-center h-24"},ui={class:"container flex justify-between items-center w-full md:w-3/4 overflow-x-auto md:overflow-x-visible"},yi={class:"flex space-x-4 w-full justify-start md:justify-around whitespace-nowrap mx-4 md:mx-0"},wi=["onClick"];function Ci(n,t,o,l,s,r){const a=e.resolveComponent("BaseText");return e.openBlock(),e.createElementBlock("header",bi,[e.createElementVNode("section",ui,[e.createElementVNode("nav",yi,[(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(a,{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":s.selectedWeapon===c,"hover:border-accent":s.selectedWeapon!==c,"border-transparent px-4 md:p-0":s.selectedWeapon!==c}])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c),1)]),_:2},1032,["onClick","class"])],8,wi))),128))])])])}const ki=b(xi,[["render",Ci]]),Ni={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")}}},Vi={class:"relative h-80 max-w-[1200px] mx-4 md:mx-auto rounded-lg overflow-hidden mb-10 bg-primary"},Ei={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 _i(n,t,o,l,s,r){const a=e.resolveComponent("BaseText"),c=e.resolveComponent("BaseButton");return e.openBlock(),e.createElementBlock("section",Vi,[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",Ei,[e.createVNode(a,{color:"secondary",tag:"h3",size:"5xl",weight:"normal",class:"hidden md:block mb-8",innerHTML:o.description},null,8,["innerHTML"]),e.createVNode(a,{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(Ni,[["render",_i]]),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")}}},Bi={class:"max-w-[1200px] mx-auto"},Ti={class:"relative w-full h-3/4 flex justify-center bg-primary m-0"},zi={class:"relative w-full border-b border-l border-r border-lineGrey"},Ai={class:"hidden md:flex h-80 justify-between items-center p-14"},Ii={class:"text-left text-white max-w-lg w-96"},Li={class:"flex flex-col w-1/3 align-right"},Pi={class:"flex justify-center md:hidden text-left bg-primary w-full"},Di={class:"w-full px-6 py-8 text-center flex flex-col justify-center items-center"};function Mi(n,t,o,l,s,r){const a=e.resolveComponent("BaseText"),c=e.resolveComponent("BaseButton");return e.openBlock(),e.createElementBlock("section",Bi,[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",Ti,[t[0]||(t[0]=e.createElementVNode("div",{class:"w-[150px] bg-primary border-b border-lineGrey flex-shrink-0"},null,-1)),e.createElementVNode("div",zi,[e.createElementVNode("section",Ai,[e.createElementVNode("div",Ii,[e.createVNode(a,{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",Li,[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",Di,[e.createVNode(a,{color:"secondary",tag:"h1",size:"2xl",weight:"normal",class:"mb-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.title),1)]),_:1}),e.createVNode(a,{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",Mi]]),ji={name:"Footer",components:{Icon:V,InputField:G,BaseButton:T,BaseText:w},data(){return{logo:le}},methods:{pageChange(n){this.$emit("changePage",n)}}},Oi={class:"hidden md:flex flex-col bg-primary"},Fi={class:"w-full hidden md:flex"},Ri={class:"w-1/3"},Hi={class:"items-center w-full flex justify-center"},Ui=["src"],Gi={class:"w-1/3 flex flex-col"},Wi={class:"w-full flex justify-around"},qi={class:"flex w-1/3"},Ki={class:"flex w-1/3"},Yi={class:"flex items-center w-1/3"},Zi={class:"w-full flex justify-around"},Qi={class:"flex items-center w-1/3"},Ji={class:"flex items-center w-1/3"},Xi={class:"flex items-center w-1/3"},$i={class:"w-full flex justify-around"},vi={class:"flex items-center w-1/3"},ec={class:"flex items-center w-1/3"},tc={class:"flex w-1/3"},oc={class:"w-1/3 flex flex-col"},rc={class:"w-full flex justify-end"},nc={class:"w-30 mr-16"},ac={class:"w-full flex justify-end mt-12"},sc={class:"w-48 mr-16"},lc={class:"h-32 border border-t mt-10 pb-10 border-lineGrey flex flex-col justify-center items-center"},ic={class:"flex md:hidden flex-col items-center bg-primary pb-10"},cc={class:"w-full flex flex-col items-center"},dc={class:"w-full max-w-xs flex justify-between items-center"},mc={class:"flex justify-center w-1/2"},hc=["src"],gc={class:"flex flex-col w-1/2"},pc={class:"w-full flex flex-col items-center"},fc={class:"w-full max-w-xs flex flex-col items-center pt-8 px-6"},xc={class:"w-full max-w-xs flex flex-col items-center pt-8"},bc={class:"flex justify-center"};function uc(n,t,o,l,s,r){const a=e.resolveComponent("BaseText"),c=e.resolveComponent("InputField"),i=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("section",Oi,[t[25]||(t[25]=e.createElementVNode("div",{class:"h-20"},null,-1)),e.createElementVNode("section",Fi,[e.createElementVNode("div",Ri,[e.createElementVNode("div",Hi,[e.createElementVNode("img",{src:s.logo,alt:"Logo",class:"w-[71px] h-[56px]"},null,8,Ui)])]),e.createElementVNode("div",Gi,[e.createElementVNode("div",Wi,[e.createElementVNode("div",qi,[e.createElementVNode("a",{href:"#",onClick:t[0]||(t[0]=e.withModifiers(d=>r.pageChange("tournaments"),["prevent"]))},[e.createVNode(a,{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",Ki,[e.createElementVNode("a",{href:"#",onClick:t[1]||(t[1]=e.withModifiers(d=>r.pageChange("clubs"),["prevent"]))},[e.createVNode(a,{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",Yi,[e.createElementVNode("a",{href:"#",onClick:t[2]||(t[2]=e.withModifiers(d=>r.pageChange("leaderboard"),["prevent"]))},[e.createVNode(a,{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",Zi,[e.createElementVNode("div",Qi,[e.createElementVNode("a",{href:"#",onClick:t[3]||(t[3]=e.withModifiers(d=>r.pageChange("tournaments"),["prevent"]))},[e.createVNode(a,{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",Ji,[e.createElementVNode("a",{href:"#",onClick:t[4]||(t[4]=e.withModifiers(d=>r.pageChange("clubs"),["prevent"]))},[e.createVNode(a,{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",Xi,[e.createElementVNode("a",{href:"#",onClick:t[5]||(t[5]=e.withModifiers(d=>r.pageChange("leaderboard"),["prevent"]))},[e.createVNode(a,{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",$i,[e.createElementVNode("div",vi,[e.createElementVNode("a",{href:"#",onClick:t[6]||(t[6]=e.withModifiers(d=>r.pageChange("tournaments"),["prevent"]))},[e.createVNode(a,{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",ec,[e.createElementVNode("a",{href:"#",onClick:t[7]||(t[7]=e.withModifiers(d=>r.pageChange("clubs"),["prevent"]))},[e.createVNode(a,{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",tc,[e.createElementVNode("a",{href:"#",onClick:t[8]||(t[8]=e.withModifiers(d=>r.pageChange("leaderboard"),["prevent"]))},[e.createVNode(a,{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",oc,[e.createElementVNode("div",rc,[e.createElementVNode("div",nc,[e.createVNode(a,{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",ac,[e.createElementVNode("div",sc,[e.createVNode(a,{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",lc,[e.createVNode(a,{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",ic,[t[31]||(t[31]=e.createElementVNode("div",{class:"h-8"},null,-1)),e.createElementVNode("div",cc,[e.createElementVNode("div",dc,[e.createElementVNode("div",mc,[e.createElementVNode("img",{src:s.logo,alt:"Logo",class:"w-[94px] h-[74px]"},null,8,hc)]),e.createElementVNode("div",gc,[e.createElementVNode("a",{href:"#",onClick:t[9]||(t[9]=e.withModifiers(d=>r.pageChange("tournaments"),["prevent"]))},[e.createVNode(a,{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(a,{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(a,{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",pc,[e.createElementVNode("div",fc,[e.createVNode(a,{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",xc,[e.createVNode(a,{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",bc,[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 qe=b(ji,[["render",uc]]),yc={name:"HomePage",components:{RatingSystemAnnouncement:Re,BaseText:w,Footer:qe,DoubleButtonBanner:We,SingleButtonBanner:Ge,GridLayout:ie,ArticleCard:de,FencerCard:me,PageHeader:De,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(He),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)}}},wc={class:"m-0 w-full bg-secondary"};function Cc(n,t,o,l,s,r){const a=e.resolveComponent("PageHeader"),c=e.resolveComponent("HeroBanner"),i=e.resolveComponent("ScrollNav"),d=e.resolveComponent("GridLayout"),m=e.resolveComponent("SingleButtonBanner"),h=e.resolveComponent("RatingSystemAnnouncement"),g=e.resolveComponent("DoubleButtonBanner"),f=e.resolveComponent("Footer");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",wc,[e.createVNode(a,{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:s.TournamentCard,items:r.limitedTournaments,maxColumns:3,isLoading:o.tournamentsIsLoading,moreButtonLabel:"See All Tournaments",title:"Upcoming",onGridClick:t[0]||(t[0]=p=>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]=p=>r.changePage("clubs"))}),e.createVNode(h),e.createVNode(g,{title:"How Does Meyer Squared work?","button-label-two":"Run a tournament","button-label-one":"Submit Results",onHandleButtonClickOne:t[2]||(t[2]=p=>r.changePage("submitresults")),onHandleButtonClickTwo:t[3]||(t[3]=p=>r.changePage("runtournament"))}),e.createVNode(d,{cardComponent:r.ArticleCard,items:o.articles,maxColumns:3,mobileHorizontal:s.mobileHorizontal,isLoading:o.articlesIsLoading,moreButtonLabel:"See More",title:"Interesting Articles",onGridClick:t[4]||(t[4]=p=>r.changePage("articles")),onGridCardClick:r.handleGridCardClick},null,8,["cardComponent","items","mobileHorizontal","isLoading","onGridCardClick"])]),e.createVNode(f,{onChangePage:r.changePage},null,8,["onChangePage"])],64)}const kc=b(yc,[["render",Cc]]);u.ArticleCard=de,u.BaseButton=T,u.BaseText=w,u.BreadCrumbs=to,u.Calendar=ht,u.ClubHeader=Xo,u.ClubListCard=Qa,u.ClubMember=es,u.ContactUsForm=Hr,u.DoubleButtonBanner=We,u.EventListCard=xs,u.FencerCard=me,u.FencerListCard=ce,u.FencerPoolStatsCard=Os,u.Footer=qe,u.GridLayout=ie,u.GridLivePool=da,u.GridPool=za,u.GridTabs=kn,u.HeroBanner=Ue,u.HomePage=kc,u.HostColumn=Mo,u.Icon=V,u.InputField=G,u.LeaderboardHeader=ki,u.Mapbox=Pe,u.PageHeader=De,u.PhotoCard=Gs,u.ProgressTracker=Jt,u.RatingSystemAnnouncement=Re,u.ScrollNav=je,u.SearchBox=X,u.SingleButtonBanner=Ge,u.SocialMediaLinkCard=el,u.TabHeader=wo,u.TournamentBanner=jr,u.TournamentCard=He,u.TournamentDetails=Pl,u.TournamentDetailsBanner=Br,u.TournamentHeader=rr,u.TournamentListCard=li,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)}}},bn={class:"w-full pb-2 rounded-lg"},un={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"},yn={class:"flex"},wn={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 Cn(n,t,o,l,s,r){const a=e.resolveComponent("BaseText"),c=e.resolveComponent("Icon"),i=e.resolveComponent("Tooltip"),d=e.resolveComponent("GridLayout");return e.openBlock(),e.createElementBlock("div",bn,[e.createElementVNode("div",un,[e.createVNode(a,{color:"primary",size:"",tag:"h3",weight:"bold",class:"text-sm md:text-xl"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(`Fencers in ${o.pools[s.selectedTab].Name}`),1)]),_:1}),e.createElementVNode("div",yn,[e.createVNode(a,{color:"primary",size:"",tag:"h3",weight:"bold",class:"text-sm md:text-xl"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(`${o.pools[s.selectedTab].poolStrengthInd} Strength Indicator`),1)]),_:1}),e.createVNode(i,{text:s.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",wn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.pools,(m,h)=>(e.openBlock(),e.createElementBlock("span",{key:m.PoolId},[e.createVNode(a,{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",s.selectedTab===h?"border-accent":"border-white"]),onClick:g=>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 kn=b(xn,[["render",Cn]]),Nn={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:U}},mounted(){this.timerStatus==="running"&&this.startTimer()},beforeDestroy(){this.stopTimer()},watch:{timerStatus(n){n==="running"?this.startTimer():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}}},Vn={key:0,class:"text-left"},En={class:"flex items-center justify-between rounded-lg w-full"},_n={class:"flex space-x-4 items-center"},Sn=["src"],Bn={key:0,class:"w-2/12 h-16 pt-3 text-center bg-primary"},Tn={class:"flex justify-between space-x-4 ml-4 w-full"},zn={class:"flex"},An={class:"pt-1"},In={class:"pl-2"},Ln=["src"];function Pn(n,t,o,l,s,r){const a=e.resolveComponent("BaseText");return e.openBlock(),e.createElementBlock("section",null,[o.bout.customStatus&&r.status!=="Active"?(e.openBlock(),e.createElementBlock("div",Vn,[e.createVNode(a,{size:"sm",color:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.bout.customStatus),1)]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",En,[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",_n,[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,Sn)]),e.createElementVNode("div",null,[e.createVNode(a,{size:"md",color:"primary",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer1Name),1)]),_:1}),e.createVNode(a,{size:"xs",color:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer1Team),1)]),_:1})])]),e.createVNode(a,{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",Bn,[e.createVNode(a,{size:"2xl",color:"white",weight:"bold",class:"font-sourceCodePro"},{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",Tn,[e.createVNode(a,{size:"3xl",weight:"bold",class:"pl-3 pt-0.5"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer2Score),1)]),_:1}),e.createElementVNode("div",zn,[e.createElementVNode("div",An,[e.createVNode(a,{size:"md",color:"primary",weight:"bold",class:"text-right"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer2Name),1)]),_:1}),e.createVNode(a,{size:"xs",color:"primary",class:"text-right"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer2Team),1)]),_:1})]),e.createElementVNode("div",In,[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,Ln)])])])],2)])])}const Dn=b(Nn,[["render",Pn]]),Mn={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:U}},mounted(){this.timerStatus==="running"&&this.startTimer()},beforeDestroy(){this.stopTimer()},watch:{timerStatus(n){n==="running"?this.startTimer():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}}},jn={class:"flex flex-col items-center w-full space-y-2 p-4 bg-poolBox rounded-lg relative"},On={key:0,class:"text-center"},Fn={class:"flex items-center justify-between w-full relative"},Rn={class:"flex flex-col items-center p-1"},Hn={class:"flex justify-between w-full"},Un=["src"],Gn={class:"text-left"},Wn={class:"absolute top-2 inset-x-0 text-center z-10 flex justify-center"},qn={key:0,class:"bg-primary p-2 rounded-lg"},Kn={key:1,class:"w-4"},Yn={class:"flex flex-col items-center"},Zn={class:"flex justify-end w-full"},Qn=["src"],Jn={class:"text-right"};function Xn(n,t,o,l,s,r){const a=e.resolveComponent("BaseText");return e.openBlock(),e.createElementBlock("section",jn,[o.bout.customStatus&&r.status!=="Active"?(e.openBlock(),e.createElementBlock("div",On,[e.createVNode(a,{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",Fn,[e.createElementVNode("div",Rn,[e.createElementVNode("div",Hn,[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,Un)]),e.createElementVNode("div",Gn,[e.createVNode(a,{size:"sm",color:"primary",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer1Name),1)]),_:1}),e.createVNode(a,{size:"xs",color:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer1Club),1)]),_:1})])]),e.createElementVNode("div",Wn,[e.createVNode(a,{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",qn,[e.createVNode(a,{size:"sm",color:"white",weight:"bold",class:"font-sourceCodePro"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.displayTime),1)]),_:1})])):e.createCommentVNode("",!0),r.status!=="Active"?(e.openBlock(),e.createElementBlock("div",Kn)):e.createCommentVNode("",!0),e.createVNode(a,{size:"4xl",weight:"bold",class:"pl-4 -mt-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer1Score),1)]),_:1})]),e.createElementVNode("div",Yn,[e.createElementVNode("div",Zn,[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,Qn)]),e.createElementVNode("div",Jn,[e.createVNode(a,{size:"sm",color:"primary",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer2Name),1)]),_:1}),e.createVNode(a,{size:"xs",color:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.fencer2Club),1)]),_:1})])])])])}const $n={name:"GridLivePool",components:{BoutCardMobile:b(Mn,[["render",Xn]]),BoutCard:Dn,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}}},vn={key:0},ea={class:"w-full flex flex-col items-center"},ta={key:0,class:"w-full md:w-3/4 md:my-4"},oa={key:1},ra={class:"flex flex-row justify-between"},na={class:"flex mr-1"},aa={class:"w-full flex flex-col items-center"},sa={key:2},la={class:"flex flex-row"},ia={class:"w-full flex flex-col items-center"};function ca(n,t,o,l,s,r){const a=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",vn,[t[0]||(t[0]=e.createElementVNode("div",{class:"border-b border-dropdownSelect mb-8"},null,-1)),e.createElementVNode("div",ea,[r.hasActiveBout?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ta,[s.isMobile?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a,{key:0,bout:{},hostingClubColors:o.hostingClubColors,isWaiting:!0},null,8,["hostingClubColors"])),s.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"},[s.isMobile?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a,{key:0,bout:d,hostingClubColors:o.hostingClubColors,timerStatus:d.TimerStatus},null,8,["bout","hostingClubColors","timerStatus"])),s.isMobile?(e.openBlock(),e.createBlock(c,{key:1,bout:d,hostingClubColors:o.hostingClubColors,timerStatus:d.TimerStatus},null,8,["bout","hostingClubColors","timerStatus"])):e.createCommentVNode("",!0)]))),128))])])):e.createCommentVNode("",!0),r.remainingBoutsCount>0?(e.openBlock(),e.createElementBlock("section",oa,[e.createElementVNode("div",ra,[e.createVNode(i,{class:"mt-5",color:"primaryHighlight",size:"md",text:"Upcoming",weight:"bold"}),e.createElementVNode("div",na,[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",aa,[(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"},[s.isMobile?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a,{key:0,bout:d,hostingClubColors:o.hostingClubColors},null,8,["bout","hostingClubColors"])),s.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",sa,[e.createElementVNode("div",la,[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",ia,[(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"},[s.isMobile?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a,{key:0,bout:d,hostingClubColors:o.hostingClubColors},null,8,["bout","hostingClubColors"])),s.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 da=b($n,[["render",ca]]),ma={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(" ");return`${t?t.charAt(0):""}. ${o}`},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,s=o.Score2;return o.Status==="Completed"?l>s?o.Person1Id===n?`W${l}`:`L${s}`:s>l?o.Person1Id===n?`L${l}`:`W${s}`:`T${l}`:o.Person1Id===n?l:s}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:"bg-accent",text:"text-white"}:{bg:"border-accent border bg-white",text:"text-primary"};if(o.Score2>o.Score1)return t===o.Person2Id?{bg:"border-accent border bg-white",text:"text-primary"}:{bg:"bg-accent",text:"text-white"};if(o.Score2===o.Score1)return{bg:"bg-primary",text:"text-white"}}if(o.Status==="Active")return{bg:"bg-blue",text:"text-white"}}return{bg:"",text:""}},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,s=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),a=s-r;return{WP:`${t.length>0?(o/t.length*100).toFixed(0):"0.00"}%`,HS:s,HR:r,IND:a,W:o,L:l}}}},ha={class:"flex w-full justify-center mb-4 overflow-x-auto"},ga={class:"border-separate border-spacing-1"},pa={class:"bg-primary rounded-md md:rounded-lg px-1 py-1 md:px-4 md:py-2"},fa={key:0,class:"w-1"},xa={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"},ba={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"},ua={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"},ya={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"},wa={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"},Ca={class:"border border-primary rounded-md md:rounded-lg text-right align-middle px-1 md:px-4 w-auto"},ka={class:"bg-primary rounded-md md:rounded-lg text-center align-middle h-6 w-6 md:h-10 md:w-10"},Na=["rowspan"],Va={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"},Ea={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"},_a={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"},Sa={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 Ta(n,t,o,l,s,r){const a=e.resolveComponent("BaseText"),c=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock("div",ha,[e.createElementVNode("table",ga,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",pa,[e.createVNode(a,{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-primary 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(a,{size:"",weight:"bold",color:"white",class:"text-xs md:text-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d+1),1)]),_:2},1024)]))),128)),s.showStats?(e.openBlock(),e.createElementBlock("th",fa)):e.createCommentVNode("",!0),s.showStats?(e.openBlock(),e.createElementBlock("th",xa,[e.createVNode(a,{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),s.showStats?(e.openBlock(),e.createElementBlock("th",ba,[e.createVNode(a,{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),s.showStats?(e.openBlock(),e.createElementBlock("th",ua,[e.createVNode(a,{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),s.showStats?(e.openBlock(),e.createElementBlock("th",ya,[e.createVNode(a,{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),s.showStats?(e.openBlock(),e.createElementBlock("th",wa,[e.createVNode(a,{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",Ca,[e.createVNode(a,{size:"",color:"primary",class:"hidden md:block text-xs md:text-sm min-w-48"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.DisplayName),1)]),_:2},1024),e.createVNode(a,{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",ka,[e.createVNode(a,{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-primary 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).bg],"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(a,{class:e.normalizeClass([r.getBoutClass(i.PersonId,m.PersonId).text,"text-xs md:text-sm"]),size:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.getScore(i.PersonId,m.PersonId)),1)]),_:2},1032,["class"])],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=>s.showStats=!s.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":s.showStats}])},null,8,["class"])],8,Na)):e.createCommentVNode("",!0),t[10]||(t[10]=e.createElementVNode("th",{class:"hidden md:block w-1"},null,-1)),s.showStats?(e.openBlock(),e.createElementBlock("td",Va,[e.createVNode(a,{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),s.showStats?(e.openBlock(),e.createElementBlock("td",Ea,[e.createVNode(a,{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),s.showStats?(e.openBlock(),e.createElementBlock("td",_a,[e.createVNode(a,{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),s.showStats?(e.openBlock(),e.createElementBlock("td",Sa,[e.createVNode(a,{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),s.showStats?(e.openBlock(),e.createElementBlock("td",Ba,[e.createVNode(a,{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 za=b(ma,[["render",Ta]]),Aa={name:"ArticleCardSkeleton"},Ia={class:"w-full bg-secondary rounded-lg flex flex-col items-start animate-pulse"};function La(n,t,o,l,s,r){return e.openBlock(),e.createElementBlock("div",Ia,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 Pa={name:"ArticleCard",components:{ArticleCardSkeleton:b(Aa,[["render",La]]),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)}}},Da={key:0,class:"w-72 p-4 bg-secondary rounded-lg flex flex-col items-start"},Ma={key:1,class:"min-w-72 p-4 bg-secondary rounded-lg flex flex-col items-start"},ja=["src"];function Oa(n,t,o,l,s,r){const a=e.resolveComponent("ArticleCardSkeleton"),c=e.resolveComponent("BaseText");return e.openBlock(),e.createElementBlock(e.Fragment,null,[o.isLoading?(e.openBlock(),e.createElementBlock("div",Da,[e.createVNode(a)])):e.createCommentVNode("",!0),o.isLoading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ma,[e.createElementVNode("img",{src:r.image,alt:"Article Image",class:"w-full h-40 object-cover rounded-t-md mb-4"},null,8,ja),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(Pa,[["render",Oa]]),Fa={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)}}},Ra={class:"flex flex-col md:flex-row w-full"},Ha={class:"flex flex-grow-0 flex-shrink-0 md:w-auto"},Ua=["src"],Ga={class:"flex flex-col ml-2 md:hidden"},Wa={class:"flex-grow md:ml-4"},qa={class:"flex flex-col mt-4 md:mt-0 md:w-48 md:flex-shrink-0"},Ka={class:"flex md:justify-end"},Ya={class:"flex md:justify-end mt-2"};function Za(n,t,o,l,s,r){const a=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",Ra,[e.createElementVNode("section",Ha,[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,Ua),e.createElementVNode("div",Ga,[e.createVNode(a,{color:"primary",tag:"h2",size:"lg",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.Name),1)]),_:1}),e.createVNode(a,{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",Wa,[e.createVNode(a,{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(a,{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(a,{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",qa,[e.createElementVNode("div",Ka,[e.createVNode(c,{icon:"fa-users",size:"xs",color:"accent",class:"mr-3"}),e.createVNode(a,{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",Ya,[e.createVNode(c,{icon:"fa-house-blank",type:"fa-regular",size:"xs",color:"accent",class:"mr-3"}),e.createVNode(a,{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 Qa=b(Fa,[["render",Za]]),Ja={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:U},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)}}},Xa={class:"flex justify-center mb-4"},$a=["src"];function va(n,t,o,l,s,r){const a=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",Xa,[e.createElementVNode("img",{src:r.portrait,alt:"User Portrait",class:"w-[150px] h-[150px] rounded-full object-cover"},null,8,$a)]),e.createVNode(a,{tag:"h2",size:"md",weight:"bold",class:"mb-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.displayName),1)]),_:1}),e.createVNode(a,{tag:"p",size:"xs",weight:"semibold",class:"text-accent"},{default:e.withCtx(()=>[e.createTextVNode("M2: "+e.toDisplayString(r.m2Rating),1)]),_:1})])}const es=b(Ja,[["render",va],["__scopeId","data-v-bae6ab08"]]),ts={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)}}},os={class:"flex space-x-4 w-full cursor-pointer"},rs={class:"w-10 pt-1 md:pt-0"},ns={class:"h-10 w-10 rounded-full flex justify-center items-center border border-accent z-1"},as={key:0,class:"h-6 w-6 bg-accent rounded-full -mt-4 ml-7 pt-1 z-10 absolute items-center"},ss={class:"flex w-full flex-col md:flex-row"},ls={class:"flex flex-col pl-2 items-start flex-grow"},is={class:"flex flex-col md:flex-row"},cs={class:"flex row mt-1 md:mt-0"},ds={class:"flex row mt-1 md:mt-0"},ms={class:"w-full md:w-20 flex justify-end md:pt-3"},hs={class:"flex border-b border-white hover:border-accent md:h-8"},gs={class:"hidden md:flex"},ps={class:"flex md:hidden"};function fs(n,t,o,l,s,r){const a=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",os,[e.createElementVNode("section",rs,[e.createElementVNode("div",ns,[e.createVNode(a,{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",as,[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",ss,[e.createElementVNode("section",ls,[e.createVNode(c,{color:"primary",size:"lg",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.EventName),1)]),_:1}),e.createElementVNode("div",is,[e.createElementVNode("div",cs,[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",ds,[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",ms,[e.createElementVNode("div",hs,[e.createElementVNode("div",gs,[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(a,{icon:"fa-arrow-right",color:"primary",type:"fa-thin",size:"xl"})]),e.createElementVNode("div",ps,[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(a,{icon:"fa-arrow-right",color:"primary",type:"fa-thin",size:"xs",class:""})])])])])])])}const xs=b(ts,[["render",fs]]),bs={name:"FencerCard",components:{FencerCardSkeleton:Fe,BaseText:w,defaultPortrait:U},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:U},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)}}},us={key:0,class:"max-w-72 p-2 bg-secondary rounded-lg flex flex-col items-start"},ys={class:"flex flex-col m-auto justify-center mb-4 items-center w-[130px]"},ws=["src"],Cs={class:"flex flex-col md:flex-row justify-center md:justify-around -mt-2 border-b border-borderGray z-10 pb-2 mb-2"},ks={class:"flex items-center justify-center"};function Ns(n,t,o,l,s,r){const a=e.resolveComponent("FencerCardSkeleton"),c=e.resolveComponent("BaseText");return e.openBlock(),e.createElementBlock(e.Fragment,null,[o.isLoading?(e.openBlock(),e.createElementBlock("div",us,[e.createVNode(a)])):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",ys,[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,ws)]),e.createElementVNode("div",Cs,[e.createElementVNode("div",ks,[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(bs,[["render",Ns]]),Vs={name:"FencerPoolStatsCard",components:{BaseText:w},props:{data:{type:Object,required:!0},index:{type:Number,required:!0}},data(){return{showLongName:!1}},mounted(){this.checkScreenSize(),window.addEventListener("resize",this.checkScreenSize)},beforeDestroy(){window.removeEventListener("resize",this.checkScreenSize)},computed:{FencerName(){return!this.showLongName&&!this.data.isHeader?this.getFencerShortName(this.data.Name):this.data.Name}},methods:{checkScreenSize(){this.showLongName=window.matchMedia("(min-width: 768px)").matches},getFencerShortName(n){const[t,o]=n.split(" ");return`${t?t.charAt(0):""}. ${o}`}}},Es={class:"grid grid-cols-2 p-2 md:p-4 border-b w-full"},_s={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},Ss={class:"flex items-center"},Bs={key:0,class:"w-5 h-5 rounded-full bg-accent flex items-center justify-center mr-2 md:mr-4 flex-shrink-0"},Ts={key:1,class:"w-5 h-5 rounded-full flex items-center justify-center min-w-8 overflow-hidden"},zs={class:"items-center hidden md:flex"},As={class:"grid grid-cols-5 gap-4"},Is={class:"text-center w-full"},Ls={class:"text-center w-full"},Ps={class:"text-center w-full"},Ds={class:"text-center w-full"},Ms={class:"text-center w-full"};function js(n,t,o,l,s,r){const a=e.resolveComponent("BaseText");return e.openBlock(),e.createElementBlock("section",Es,[e.createElementVNode("div",_s,[e.createElementVNode("div",Ss,[o.data.isHeader?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Bs,[e.createVNode(a,{tag:"p",size:"xs",color:"white",weight:"normal",class:"text-center font-sourceCodePro"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.index),1)]),_:1})])),o.data.isHeader?(e.openBlock(),e.createElementBlock("div",Ts)):e.createCommentVNode("",!0),e.createVNode(a,{tag:"h3",size:"md",weight:"bold",class:"min-w-52"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.FencerName),1)]),_:1})]),e.createElementVNode("div",zs,[e.createVNode(a,{tag:"p",size:"sm",weight:o.data.isHeader?"bold":"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.Club),1)]),_:1},8,["weight"])])]),e.createElementVNode("div",As,[e.createElementVNode("div",Is,[e.createVNode(a,{size:"sm",weight:o.data.isHeader?"bold":"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.WP),1)]),_:1},8,["weight"])]),e.createElementVNode("div",Ls,[o.data.isHeader?(e.openBlock(),e.createBlock(a,{key:0,size:"sm",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.Wins),1)]),_:1})):e.createCommentVNode("",!0),o.data.isHeader?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a,{key:1,size:"sm",weight:"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.Wins)+"/"+e.toDisplayString(o.data.Losses),1)]),_:1}))]),e.createElementVNode("div",Ps,[e.createVNode(a,{size:"sm",weight:o.data.isHeader?"bold":"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.HS),1)]),_:1},8,["weight"])]),e.createElementVNode("div",Ds,[e.createVNode(a,{size:"sm",weight:o.data.isHeader?"bold":"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.HR),1)]),_:1},8,["weight"])]),e.createElementVNode("div",Ms,[e.createVNode(a,{size:"sm",weight:o.data.isHeader?"bold":"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.IND),1)]),_:1},8,["weight"])])])])}const Os=b(Vs,[["render",js]]),Fs={name:"PhotoCard",props:{data:{type:Object,required:!0}}},Rs={class:"w-[250px] h-[150px]"},Hs=["src","alt"];function Us(n,t,o,l,s,r){return e.openBlock(),e.createElementBlock("div",Rs,[e.createElementVNode("img",{src:o.data.URL,alt:o.data.AltText,class:"object-cover w-full h-full"},null,8,Hs)])}const Gs=b(Fs,[["render",Us]]),Ws={name:"RatingSystemAnnouncement",components:{BaseText:w}},qs={class:"w-full flex justify-center mx-auto mt-10 mb-20"},Ks={class:"max-w-[1200px] w-full flex justify-center mx-auto mt-8 flex-col"},Ys={class:"w-full flex py-4 md:pb-10 ml-2 md:ml-0 mb-4 justify-center"},Zs={class:"flex"},Qs={class:"md:w-1/2 flex justify-center"};function Js(n,t,o,l,s,r){const a=e.resolveComponent("BaseText");return e.openBlock(),e.createElementBlock("section",qs,[e.createElementVNode("section",null,[e.createElementVNode("div",Ks,[e.createElementVNode("div",Ys,[e.createVNode(a,{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",Qs,[e.createVNode(a,{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(Ws,[["render",Js]]),Xs={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")}}},$s={class:"md:w-64 m-2 flex flex-col mb-20"};function vs(n,t,o,l,s,r){const a=e.resolveComponent("BaseButton");return e.openBlock(),e.createElementBlock("aside",$s,[(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(a,{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 el=b(Xs,[["render",vs]]),tl={name:"TournamentCardSkeleton"},ol={class:"md:w-full mb-8"};function rl(n,t,o,l,s,r){return e.openBlock(),e.createElementBlock("div",ol,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(1,a=>e.createElementVNode("div",{key:a,class:"animate-pulse"},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)]))),64))])}const nl={name:"TournamentCard",components:{TournamentCardSkeleton:b(tl,[["render",rl]]),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)}}},al={key:0,class:"max-w-80 md:w-full mb-8"},sl={class:"hidden md:block"},ll={class:"relative w-full h-52"},il=["src"],cl={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"},dl={class:"flex items-center mb-1"},ml={class:"flex w-6 justify-center"},hl={key:0,class:"flex items-center"},gl={class:"flex w-6 justify-center"},pl={key:1,class:"flex items-center"},fl={class:"flex w-6 justify-center"},xl={class:"w-full md:hidden flex-col items-start gap-2 border-b border-borderGray"},bl={class:"flex flex-row"},ul=["src"],yl={class:"flex flex-col h-16 justify-center pl-3"},wl={class:"flex justify-between pt-4 pb-2"},Cl={class:"flex justify-start w-5/12"},kl={class:"flex justify-start mb-1 w-7/12"};function Nl(n,t,o,l,s,r){const a=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",al,[e.createVNode(a)])):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",sl,[e.createElementVNode("div",ll,[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,il),o.data.HostedOnM2?(e.openBlock(),e.createElementBlock("img",cl)):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",dl,[e.createElementVNode("span",ml,[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",hl,[e.createElementVNode("span",gl,[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",pl,[e.createElementVNode("span",fl,[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",xl,[e.createElementVNode("div",bl,[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,ul),e.createElementVNode("div",yl,[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",wl,[e.createElementVNode("div",Cl,[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",kl,[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 He=b(nl,[["render",Nl]]),Vl={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)}}},El={class:"w-full max-w-4xl mx-auto md:p-4"},_l={class:"w-full h-96 md:mb-4"},Sl=["src"],Bl={class:"flex justify-end items-center w-full md:h-10 rounded-md p-2"},Tl=["href"],zl={class:"w-full flex md:py-4 pb-4 md:pb-10"},Al={class:"bg-white p-4 m-2 rounded-lg"},Il=["innerHTML"];function Ll(n,t,o,l,s,r){const a=e.resolveComponent("BaseText"),c=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock("section",El,[e.createElementVNode("div",_l,[e.createElementVNode("img",{src:o.imageSrc,alt:"Tournament Image",class:"w-full h-full object-cover md:rounded-lg"},null,8,Sl)]),e.createElementVNode("div",Bl,[o.shareLinks&&o.shareLinks.length>0?(e.openBlock(),e.createBlock(a,{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,Tl))),128))]),e.createElementVNode("div",zl,[e.createVNode(a,{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",Al,[e.createElementVNode("div",{innerHTML:o.description,class:"text-base text-gray-800"},null,8,Il)])])}const Pl=b(Vl,[["render",Ll]]),Dl={name:"SkeletonTournamentCard"},Ml={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"};function jl(n,t,o,l,s,r){return e.openBlock(),e.createElementBlock("section",Ml,t[0]||(t[0]=[e.createStaticVNode('<div class="flex pt-1 w-full"><div class="w-24 md:w-32"><div class="relative w-24 h-16 md:w-32 md:h-20 mr-3 bg-gray-300 animate-pulse rounded-lg"></div></div><div class="flex flex-col pl-2"><div class="flex items-center mb-2 w-full"><div class="h-6 w-48 bg-gray-300 animate-pulse rounded"></div></div><div class="hidden md:flex items-center text-sm text-gray-600 mb-2"><div class="h-4 w-64 bg-gray-300 animate-pulse rounded"></div></div></div></div><div class="hidden md:flex mt-3 mb-1"><div class="flex flex-row w-full"><div class="flex items-center mr-10"><div class="h-4 w-16 bg-gray-300 animate-pulse rounded"></div></div><div class="flex items-center"><div class="h-4 w-32 bg-gray-300 animate-pulse rounded"></div></div></div></div><div class="flex flex-col md:hidden mt-2"><div class="flex items-center pb-2"><div class="h-4 w-28 bg-gray-300 animate-pulse rounded"></div></div><div class="flex flex-row"><div class="flex items-center mr-4"><div class="h-4 w-20 bg-gray-300 animate-pulse rounded"></div></div><div class="flex items-center"><div class="h-4 w-24 bg-gray-300 animate-pulse rounded"></div></div></div></div>',3)]))}const Ol={name:"TournamentListCard",components:{TournamentListCardSkeleton:b(Dl,[["render",jl]]),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)}}},Fl={key:0,class:"max-w-80 md:w-full mb-8"},Rl={class:"flex pt-1"},Hl={class:"relative w-24 h-16 md:w-32 md:h-20 mr-3"},Ul=["src","alt"],Gl={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"},Wl={class:"flex flex-col"},ql={class:"flex items-center mb-0"},Kl={class:"hidden md:flex items-center text-sm text-gray-600 mb-2"},Yl={class:"hidden md:flex mt-3 mb-1"},Zl={class:"flex flex-row w-full"},Ql={key:0,class:"flex items-center mr-10"},Jl={key:1,class:"flex items-center mr-4"},Xl={class:"flex w-6 justify-center"},$l={class:"flex items-center"},vl={class:"flex flex-col md:hidden mt-2"},ei={class:"flex items-center pb-2"},ti={class:"flex flex-row"},oi={key:0,class:"flex items-center mr-4"},ri={key:1,class:"flex items-center mr-4"},ni={class:"flex w-6 justify-center mr-2"},ai={class:"flex items-center"};function si(n,t,o,l,s,r){const a=e.resolveComponent("TournamentListCardSkeleton"),c=e.resolveComponent("BaseText"),i=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock(e.Fragment,null,[o.isLoading?(e.openBlock(),e.createElementBlock("div",Fl,[e.createVNode(a)])):e.createCommentVNode("",!0),o.isLoading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("section",{key:1,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]=(...d)=>r.handleCardClick&&r.handleCardClick(...d))},[e.createElementVNode("div",Rl,[e.createElementVNode("div",Hl,[e.createElementVNode("img",{src:r.tournamentImage,alt:r.imageAltText,class:"w-full h-full object-cover rounded-lg"},null,8,Ul),o.data.HostedOnM2?(e.openBlock(),e.createElementBlock("img",Gl)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Wl,[e.createElementVNode("div",ql,[e.createVNode(c,{color:"primary",tag:"h2",size:"2xl",weight:"bold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.tournamentName),1)]),_:1})]),e.createElementVNode("div",Kl,[e.createVNode(c,{color:"primary",tag:"p",size:"md",weight:"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.addressName),1)]),_:1})])])]),e.createElementVNode("div",Yl,[e.createElementVNode("div",Zl,[o.data.HostedOnM2?(e.openBlock(),e.createElementBlock("div",Ql,[e.createVNode(i,{type:o.data.HostedOnM2?"fa-solid":"fa-regular",icon:"fa-user-friends",size:"sm",color:"accent",class:"mr-4"},null,8,["type"]),e.createVNode(c,{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",Jl,[e.createElementVNode("span",Xl,[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.participants)+" Bookmarked",1)]),_:1})])),e.createElementVNode("div",$l,[e.createVNode(i,{type:o.data.HostedOnM2?"fa-solid":"fa-regular",icon:"fa-calendar",size:"sm",color:"accent",class:"mr-4"},null,8,["type"]),e.createVNode(c,{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",vl,[e.createElementVNode("div",ei,[e.createVNode(c,{color:"primary",tag:"p",size:"sm",weight:"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.addressName),1)]),_:1})]),e.createElementVNode("div",ti,[o.data.HostedOnM2?(e.openBlock(),e.createElementBlock("div",oi,[e.createVNode(i,{type:o.data.HostedOnM2?"fa-solid":"fa-regular",icon:"fa-user-friends",size:"sm",color:"accent",class:"mr-2"},null,8,["type"]),e.createVNode(c,{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",ri,[e.createElementVNode("span",ni,[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.participants)+" Bookmarked",1)]),_:1})])),e.createElementVNode("div",ai,[e.createVNode(i,{type:o.data.HostedOnM2?"fa-solid":"fa-regular",icon:"fa-calendar",size:"sm",color:"accent",class:"mr-2"},null,8,["type"]),e.createVNode(c,{color:"primary",tag:"p",size:"xs",weight:"normal"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.startDate)+" | "+e.toDisplayString(r.startTime),1)]),_:1})])])])]))],64)}const li=b(Ol,[["render",si]]),ii={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)}}},ci={class:"relative w-full md:border-b md:border-l md:border-r border-lineGrey"},di=["src"],mi={class:"hidden md:flex absolute inset-0 items-center justify-start px-8 mt-40"},hi={class:"text-left text-white max-w-lg"},gi={key:1,class:"flex justify-center text-left w-full px-6 py-4"},pi={class:"w-full"};function fi(n,t,o,l,s,r){const a=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",ci,[s.isMobile?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("img",{key:0,src:o.imageSrc,alt:"Hero Image",class:"w-full h-full object-cover",loading:"lazy"},null,8,di)),e.createElementVNode("section",mi,[e.createElementVNode("div",hi,[e.createVNode(a,{color:"secondary",tag:"h1",size:"4xl",weight:"bold",class:"mb-4"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.title),1)]),_:1}),e.createVNode(a,{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"])])]),s.isMobile?(e.openBlock(),e.createElementBlock("div",gi,[e.createElementVNode("div",pi,[e.createVNode(a,{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(a,{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(ii,[["render",fi]]),xi={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)}}},bi={class:"w-full bg-white py-4 flex justify-center h-24"},ui={class:"container flex justify-between items-center w-full md:w-3/4 overflow-x-auto md:overflow-x-visible"},yi={class:"flex space-x-4 w-full justify-start md:justify-around whitespace-nowrap mx-4 md:mx-0"},wi=["onClick"];function Ci(n,t,o,l,s,r){const a=e.resolveComponent("BaseText");return e.openBlock(),e.createElementBlock("header",bi,[e.createElementVNode("section",ui,[e.createElementVNode("nav",yi,[(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(a,{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":s.selectedWeapon===c,"hover:border-accent":s.selectedWeapon!==c,"border-transparent px-4 md:p-0":s.selectedWeapon!==c}])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c),1)]),_:2},1032,["onClick","class"])],8,wi))),128))])])])}const ki=b(xi,[["render",Ci]]),Ni={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")}}},Vi={class:"relative h-80 max-w-[1200px] mx-4 md:mx-auto rounded-lg overflow-hidden mb-10 bg-primary"},Ei={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 _i(n,t,o,l,s,r){const a=e.resolveComponent("BaseText"),c=e.resolveComponent("BaseButton");return e.openBlock(),e.createElementBlock("section",Vi,[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",Ei,[e.createVNode(a,{color:"secondary",tag:"h3",size:"5xl",weight:"normal",class:"hidden md:block mb-8",innerHTML:o.description},null,8,["innerHTML"]),e.createVNode(a,{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(Ni,[["render",_i]]),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")}}},Bi={class:"max-w-[1200px] mx-auto"},Ti={class:"relative w-full h-3/4 flex justify-center bg-primary m-0"},zi={class:"relative w-full border-b border-l border-r border-lineGrey"},Ai={class:"hidden md:flex h-80 justify-between items-center p-14"},Ii={class:"text-left text-white max-w-lg w-96"},Li={class:"flex flex-col w-1/3 align-right"},Pi={class:"flex justify-center md:hidden text-left bg-primary w-full"},Di={class:"w-full px-6 py-8 text-center flex flex-col justify-center items-center"};function Mi(n,t,o,l,s,r){const a=e.resolveComponent("BaseText"),c=e.resolveComponent("BaseButton");return e.openBlock(),e.createElementBlock("section",Bi,[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",Ti,[t[0]||(t[0]=e.createElementVNode("div",{class:"w-[150px] bg-primary border-b border-lineGrey flex-shrink-0"},null,-1)),e.createElementVNode("div",zi,[e.createElementVNode("section",Ai,[e.createElementVNode("div",Ii,[e.createVNode(a,{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",Li,[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",Di,[e.createVNode(a,{color:"secondary",tag:"h1",size:"2xl",weight:"normal",class:"mb-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.title),1)]),_:1}),e.createVNode(a,{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",Mi]]),ji={name:"Footer",components:{Icon:V,InputField:G,BaseButton:T,BaseText:w},data(){return{logo:le}},methods:{pageChange(n){this.$emit("changePage",n)}}},Oi={class:"hidden md:flex flex-col bg-primary"},Fi={class:"w-full hidden md:flex"},Ri={class:"w-1/3"},Hi={class:"items-center w-full flex justify-center"},Ui=["src"],Gi={class:"w-1/3 flex flex-col"},Wi={class:"w-full flex justify-around"},qi={class:"flex w-1/3"},Ki={class:"flex w-1/3"},Yi={class:"flex items-center w-1/3"},Zi={class:"w-full flex justify-around"},Qi={class:"flex items-center w-1/3"},Ji={class:"flex items-center w-1/3"},Xi={class:"flex items-center w-1/3"},$i={class:"w-full flex justify-around"},vi={class:"flex items-center w-1/3"},ec={class:"flex items-center w-1/3"},tc={class:"flex w-1/3"},oc={class:"w-1/3 flex flex-col"},rc={class:"w-full flex justify-end"},nc={class:"w-30 mr-16"},ac={class:"w-full flex justify-end mt-12"},sc={class:"w-48 mr-16"},lc={class:"h-32 border border-t mt-10 pb-10 border-lineGrey flex flex-col justify-center items-center"},ic={class:"flex md:hidden flex-col items-center bg-primary pb-10"},cc={class:"w-full flex flex-col items-center"},dc={class:"w-full max-w-xs flex justify-between items-center"},mc={class:"flex justify-center w-1/2"},hc=["src"],gc={class:"flex flex-col w-1/2"},pc={class:"w-full flex flex-col items-center"},fc={class:"w-full max-w-xs flex flex-col items-center pt-8 px-6"},xc={class:"w-full max-w-xs flex flex-col items-center pt-8"},bc={class:"flex justify-center"};function uc(n,t,o,l,s,r){const a=e.resolveComponent("BaseText"),c=e.resolveComponent("InputField"),i=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("section",Oi,[t[25]||(t[25]=e.createElementVNode("div",{class:"h-20"},null,-1)),e.createElementVNode("section",Fi,[e.createElementVNode("div",Ri,[e.createElementVNode("div",Hi,[e.createElementVNode("img",{src:s.logo,alt:"Logo",class:"w-[71px] h-[56px]"},null,8,Ui)])]),e.createElementVNode("div",Gi,[e.createElementVNode("div",Wi,[e.createElementVNode("div",qi,[e.createElementVNode("a",{href:"#",onClick:t[0]||(t[0]=e.withModifiers(d=>r.pageChange("tournaments"),["prevent"]))},[e.createVNode(a,{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",Ki,[e.createElementVNode("a",{href:"#",onClick:t[1]||(t[1]=e.withModifiers(d=>r.pageChange("clubs"),["prevent"]))},[e.createVNode(a,{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",Yi,[e.createElementVNode("a",{href:"#",onClick:t[2]||(t[2]=e.withModifiers(d=>r.pageChange("leaderboard"),["prevent"]))},[e.createVNode(a,{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",Zi,[e.createElementVNode("div",Qi,[e.createElementVNode("a",{href:"#",onClick:t[3]||(t[3]=e.withModifiers(d=>r.pageChange("tournaments"),["prevent"]))},[e.createVNode(a,{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",Ji,[e.createElementVNode("a",{href:"#",onClick:t[4]||(t[4]=e.withModifiers(d=>r.pageChange("clubs"),["prevent"]))},[e.createVNode(a,{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",Xi,[e.createElementVNode("a",{href:"#",onClick:t[5]||(t[5]=e.withModifiers(d=>r.pageChange("leaderboard"),["prevent"]))},[e.createVNode(a,{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",$i,[e.createElementVNode("div",vi,[e.createElementVNode("a",{href:"#",onClick:t[6]||(t[6]=e.withModifiers(d=>r.pageChange("tournaments"),["prevent"]))},[e.createVNode(a,{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",ec,[e.createElementVNode("a",{href:"#",onClick:t[7]||(t[7]=e.withModifiers(d=>r.pageChange("clubs"),["prevent"]))},[e.createVNode(a,{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",tc,[e.createElementVNode("a",{href:"#",onClick:t[8]||(t[8]=e.withModifiers(d=>r.pageChange("leaderboard"),["prevent"]))},[e.createVNode(a,{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",oc,[e.createElementVNode("div",rc,[e.createElementVNode("div",nc,[e.createVNode(a,{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",ac,[e.createElementVNode("div",sc,[e.createVNode(a,{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",lc,[e.createVNode(a,{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",ic,[t[31]||(t[31]=e.createElementVNode("div",{class:"h-8"},null,-1)),e.createElementVNode("div",cc,[e.createElementVNode("div",dc,[e.createElementVNode("div",mc,[e.createElementVNode("img",{src:s.logo,alt:"Logo",class:"w-[94px] h-[74px]"},null,8,hc)]),e.createElementVNode("div",gc,[e.createElementVNode("a",{href:"#",onClick:t[9]||(t[9]=e.withModifiers(d=>r.pageChange("tournaments"),["prevent"]))},[e.createVNode(a,{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(a,{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(a,{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",pc,[e.createElementVNode("div",fc,[e.createVNode(a,{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",xc,[e.createVNode(a,{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",bc,[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 qe=b(ji,[["render",uc]]),yc={name:"HomePage",components:{RatingSystemAnnouncement:Re,BaseText:w,Footer:qe,DoubleButtonBanner:We,SingleButtonBanner:Ge,GridLayout:ie,ArticleCard:de,FencerCard:me,PageHeader:De,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(He),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)}}},wc={class:"m-0 w-full bg-secondary"};function Cc(n,t,o,l,s,r){const a=e.resolveComponent("PageHeader"),c=e.resolveComponent("HeroBanner"),i=e.resolveComponent("ScrollNav"),d=e.resolveComponent("GridLayout"),m=e.resolveComponent("SingleButtonBanner"),h=e.resolveComponent("RatingSystemAnnouncement"),g=e.resolveComponent("DoubleButtonBanner"),f=e.resolveComponent("Footer");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",wc,[e.createVNode(a,{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:s.TournamentCard,items:r.limitedTournaments,maxColumns:3,isLoading:o.tournamentsIsLoading,moreButtonLabel:"See All Tournaments",title:"Upcoming",onGridClick:t[0]||(t[0]=p=>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]=p=>r.changePage("clubs"))}),e.createVNode(h),e.createVNode(g,{title:"How Does Meyer Squared work?","button-label-two":"Run a tournament","button-label-one":"Submit Results",onHandleButtonClickOne:t[2]||(t[2]=p=>r.changePage("submitresults")),onHandleButtonClickTwo:t[3]||(t[3]=p=>r.changePage("runtournament"))}),e.createVNode(d,{cardComponent:r.ArticleCard,items:o.articles,maxColumns:3,mobileHorizontal:s.mobileHorizontal,isLoading:o.articlesIsLoading,moreButtonLabel:"See More",title:"Interesting Articles",onGridClick:t[4]||(t[4]=p=>r.changePage("articles")),onGridCardClick:r.handleGridCardClick},null,8,["cardComponent","items","mobileHorizontal","isLoading","onGridCardClick"])]),e.createVNode(f,{onChangePage:r.changePage},null,8,["onChangePage"])],64)}const kc=b(yc,[["render",Cc]]);u.ArticleCard=de,u.BaseButton=T,u.BaseText=w,u.BreadCrumbs=to,u.Calendar=ht,u.ClubHeader=Xo,u.ClubListCard=Qa,u.ClubMember=es,u.ContactUsForm=Hr,u.DoubleButtonBanner=We,u.EventListCard=xs,u.FencerCard=me,u.FencerListCard=ce,u.FencerPoolStatsCard=Os,u.Footer=qe,u.GridLayout=ie,u.GridLivePool=da,u.GridPool=za,u.GridTabs=kn,u.HeroBanner=Ue,u.HomePage=kc,u.HostColumn=Mo,u.Icon=V,u.InputField=G,u.LeaderboardHeader=ki,u.Mapbox=Pe,u.PageHeader=De,u.PhotoCard=Gs,u.ProgressTracker=Jt,u.RatingSystemAnnouncement=Re,u.ScrollNav=je,u.SearchBox=X,u.SingleButtonBanner=Ge,u.SocialMediaLinkCard=el,u.TabHeader=wo,u.TournamentBanner=jr,u.TournamentCard=He,u.TournamentDetails=Pl,u.TournamentDetailsBanner=Br,u.TournamentHeader=rr,u.TournamentListCard=li,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dcrackel/meyersquaredui",
3
3
  "private": false,
4
- "version": "1.0.143",
4
+ "version": "1.0.145",
5
5
  "type": "module",
6
6
  "main": "dist/meyersquaredui.cjs.js",
7
7
  "module": "dist/meyersquaredui.esm.js",
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="md:w-full mb-8">
3
3
  <!-- Loop to display 6 skeleton cards -->
4
- <div v-for="n in 6" :key="n" class="animate-pulse">
4
+ <div v-for="n in 1" :key="n" class="animate-pulse">
5
5
  <!-- Desktop Version Skeleton -->
6
6
  <section class="hidden md:block">
7
7
  <div class="w-full h-52 bg-gray-300 mb-2 rounded-md"></div>