import{g as d,N as C}from"./Notification-15e980db.js";import{M as N}from"./ModalMixin-f1c0fe4e.js";import{_ as v,O as M,o as s,c as l,a as e,j as _,d as m,t as c,f as h,F as f,i as b,s as I,r as w,k,q as y,v as A,e as O,g as x,x as L,w as T}from"./app-9daf7b25.js";const E={emit:["openMarketSignUp"],props:["loadingLeagues"],data(){return{defaultLeague:!1,showMainMenu:!1,showAboutSubmenu:!1,showMarketSubmenu:!1,showOtherSportsSubmenu:!1}},mounted(){this.getDefaultLeague()},methods:{getDefaultLeague(){this.market&&this.market.slug&&axios.get(`/default-cornhole-league/${this.market.slug}`).then(t=>{this.defaultLeague=t.data})},toggleMainMenu(){this.showMainMenu=!this.showMainMenu},toggleAboutSubmenu(){this.showAboutSubmenu=!this.showAboutSubmenu},toggleMarketSubmenu(){this.showMarketSubmenu=!this.showMarketSubmenu},toggleOtherSportsSubmenu(){this.showOtherSportsSubmenu=!this.showOtherSportsSubmenu},registerNowLink(){if(this.$page.props.showModal)this.$emit("openMarketSignUp");else{const t=[].concat.apply([],Object.values(this.cornholeMarkets).map(r=>r));this.user&&t.find(r=>r.id===this.user.market_id)?window.location=route("markets",[this.user.market_slug,"sign-up"]):window.location=route("city-finder")}},logout(){localStorage.clear(),M.visit(route("logout"))}},computed:{user(){return d(this.$page.props,"auth.user",null)},cornholeMarkets(){return d(this.$page.props,"cornhole_markets_list",[])},market(){var t=d(this.$page.props,"market",null);return t&&(t.name=t.name.replace(" Cornhole","")),t}},watch:{showMainMenu(t){t&&(this.showAboutSubmenu=!1,this.showMarketSubmenu=!1,this.showOtherSportsSubmenu=!1)},showAboutSubmenu(t){t&&(this.showMarketSubmenu=!1,this.showOtherSportsSubmenu=!1)},showMarketSubmenu(t){t&&(this.showAboutSubmenu=!1,this.showOtherSportsSubmenu=!1)},showOtherSportsSubmenu(t){t&&(this.showAboutSubmenu=!1,this.showMarketSubmenu=!1)}}},H={class:"w-full flex items-center flex-wrap py-4 fixed top-0 z-50 bg-cornhole-orange"},R={class:"justify-between container mx-auto flex flex-wrap lg:flex-no-wrap items-center"},F={class:"flex items-center flex-shrink-0 text-white mr-6 lg:mr-3 xl:mr-6 h-10 lg:h-6 xl:h-10"},V=["href"],U=e("img",{class:"flex items-center max-h-full",src:"https://kickball-assets.s3.amazonaws.com/go-cornhole-logo-reverse-white-black-rgb_website_100h.png"},null,-1),D=[U],W={class:"block my-auto ml-auto lg:hidden"},G=e("svg",{class:"fill-current h-3 w-3",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[e("title",null,"Menu"),e("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})],-1),K=[G],P={class:"hidden lg:flex flex-no-wrap items-center text-right w-auto"},B={class:"text-sm lg:flex-grow"},Y={class:"inline-block mt-0 mr-6 lg:mr-3 xl:mr-6 text-white"},j=["href"],z={class:"group py-4 inline-block text-teal-200 hover:text-white mr-6 relative"},J=e("span",{class:"caret inline-block ml-1"},"∨",-1),q={key:1,href:"#",class:"font-normal"},Q=e("span",{class:"caret inline-block ml-1"},"∨",-1),X={key:2,href:"#",class:"font-normal text-white"},$=e("span",{class:"caret inline-block ml-1"},"∨",-1),Z={class:"w-56 mt-4 text-left absolute bg-cornhole-orange border-t-2 border-black py-3 pl-3 px-8 text-white font-semibold hidden group-hover:block overflow-auto max-h-[90vh]"},ee={class:"transition duration-300 ease-in-out py-2"},te=["href"],oe=e("p",{class:"text-black"},"__",-1),se={class:"py-2 text-black"},le=["href"],re={class:"group py-4 inline-block text-white mr-6 lg:mr-3 xl:mr-6 relative"},ne=e("a",{href:"#",class:"font-normal"},[m(" About/FAQs "),e("span",{class:"caret inline-block ml-1"},"∨")],-1),ae={class:"w-56 mt-4 -ml-3 text-left absolute border-t-2 border-black py-3 pl-3 px-8 text-black font-semibold hidden group-hover:block overflow-auto bg-cornhole-orange"},ie={class:"transition duration-300 ease-in-out text-black mt-0 py-2"},he=["href"],ce={class:"transition duration-300 ease-in-out text-black mt-0 py-2"},ue=["href"],me={class:"transition duration-300 ease-in-out text-black mt-0 py-2"},de=["href"],ge={class:"transition duration-300 ease-in-out text-black mt-0 py-2"},_e=["href"],fe={class:"transition duration-300 ease-in-out text-black mt-0 py-2"},be=["href"],pe={class:"transition duration-300 ease-in-out text-black mt-0 py-2"},ke=["href"],we={class:"transition duration-300 ease-in-out text-black mt-0 py-2"},ye=["href"],xe={class:"transition duration-300 ease-in-out text-black mt-0 py-2"},ve=["href"],Se={class:"transition duration-300 ease-in-out text-black mt-0 py-2"},Ae=["href"],Me={class:"transition duration-300 ease-in-out text-black mt-0 py-2"},Ce=["href"],Ne={class:"transition duration-300 ease-in-out text-black mt-0 py-2"},Ie=["href"],Oe={class:"transition duration-300 ease-in-out text-black mt-0 py-2"},Le=["href"],Te={key:0,class:"inline-block text-white mr-6 lg:mr-3 xl:mr-6"},Ee=["href"],He={key:1,class:"inline-block text-white mr-6"},Re=["href"],Fe={key:2,class:"inline-block text-white mr-6"},Ve=e("a",{href:"/ballstand",class:"font-semibold lg:font-normal text-white"},"Ballstand",-1),Ue=[Ve],De={class:"inline-block mt-4 mr-6 lg:mr-3 xl:mr-6"},We={key:0,class:"bg-white px-4 py-2 rounded-full"},Ge=e("svg",{class:"h-4 w-4 animate-spin inline",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1),Ke=[Ge],Pe={key:1,class:"text-sm px-4 py-2 leading-none border rounded-full text-black bg-white border-white hover:border-transparent hover:text-white hover:bg-black"},Be={key:3,class:"inline-block mt-4"},Ye=e("button",{class:"text-sm px-4 py-2 leading-none border rounded-full text-black bg-white border-white hover:border-transparent hover:text-white hover:bg-black"},"Logout",-1),je=[Ye],ze={key:0,class:"w-full block lg:hidden flex-grow flex-wrap"},Je={class:"text-sm"},qe={class:"block mt-6 text-white"},Qe=["href"],Xe={class:"group block mt-4 text-teal-200 hover:text-white relative"},$e=e("span",{class:"caret inline-block ml-1"},"∨",-1),Ze=e("span",{class:"caret inline-block ml-1"},"∨",-1),et=e("span",{class:"caret inline-block ml-1"},"∨",-1),tt={key:3,class:"w-56 text-left relative py-3 pl-3 bg-cornhole-orange font-normal overflow-auto h-64"},ot={class:"py-2"},st=["href"],lt=e("p",{class:"text-black"},"__",-1),rt={class:"py-2 text-black"},nt=["href"],at={class:"group block mt-4 text-white relative"},it=e("span",{class:"caret inline-block ml-1"},"∨",-1),ht={key:0,class:"w-56 text-left relative py-3 pl-3 bg-cornhole-orange font-normal overflow-auto"},ct={class:"mt-4"},ut=["href"],mt={class:"mt-4"},dt=["href"],gt={class:"mt-4"},_t=["href"],ft={class:"mt-4"},bt=["href"],pt={class:"mt-4"},kt=["href"],wt={class:"mt-4"},yt=["href"],xt={class:"mt-4"},vt=["href"],St={class:"mt-4"},At=["href"],Mt={class:"mt-4"},Ct=["href"],Nt={class:"mt-4"},It=["href"],Ot={class:"mt-4"},Lt=["href"],Tt={class:"mt-4"},Et=["href"],Ht={key:0,class:"block mt-4 text-white"},Rt=["href"],Ft={key:1,class:"block mt-4 text-white"},Vt=["href"],Ut={key:2,class:"block mt-4 text-white"},Dt={class:"inline-block text-sm px-4 py-2 leading-none border rounded-full text-black bg-white border-white hover:border-transparent hover:text-white hover:bg-black mt-4"},Wt={key:0,class:"bg-white px-4 py-2 rounded-full"},Gt=e("svg",{class:"h-4 w-4 animate-spin inline",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1),Kt=[Gt],Pt={key:3,class:"inline-block text-sm px-4 py-2 leading-none border rounded-full text-black bg-white border-white hover:border-transparent hover:text-white hover:bg-black mt-4 ml-4"},Bt=["href"];function Yt(t,r,g,S,n,o){return s(),l("nav",H,[e("div",R,[e("div",F,[e("a",{href:t.route("home")+"?ref=header_logo",class:"h-10 xl:h-10"},D,8,V)]),e("div",W,[e("button",{onClick:r[0]||(r[0]=_((...i)=>o.toggleMainMenu&&o.toggleMainMenu(...i),["prevent"])),class:"flex items-center px-3 py-2 border rounded text-white border-white hover:border-white"},K)]),e("div",P,[e("ul",B,[e("li",Y,[e("a",{href:t.route("home",{ref:"market_only"}),class:"font-normal"},"Home",8,j)]),e("li",z,[o.market!=null&&o.market.name.length<20?(s(),l("a",{key:0,href:"#",onClick:r[1]||(r[1]=_((...i)=>o.toggleMarketSubmenu&&o.toggleMarketSubmenu(...i),["prevent"])),class:"font-normal text-white"},[m(c(o.market.name)+", "+c(o.market.state)+" ",1),J])):h("",!0),o.market!=null&&o.market.name.length>=20?(s(),l("a",q,[m(c(o.market.name.substring(0,20)+"...")+", "+c(o.market.state)+" ",1),Q])):o.market==null?(s(),l("a",X,[m(" Choose a City "),$])):h("",!0),e("ul",Z,[e("li",ee,[e("a",{class:"text-black",href:t.route("start-a-league")},"Start a League",8,te),oe]),(s(!0),l(f,null,b(o.cornholeMarkets,(i,a,p)=>(s(),l("div",{key:p},[e("li",se,c(a),1),(s(!0),l(f,null,b(i,u=>(s(),l("li",{class:"transition duration-300 ease-in-out py-2 px-4 text-black",key:u.id},[e("a",{href:t.route("markets",u.slug)},c(u.name)+", "+c(u.state),9,le)]))),128))]))),128))])]),e("li",re,[ne,e("ul",ae,[e("li",ie,[e("a",{href:t.route("cornhole.how-to-sign-up")},"How to Sign-up",8,he)]),e("li",ce,[e("a",{href:t.route("cornhole.join-email-list")},"Join Email List",8,ue)]),e("li",me,[e("a",{href:t.route("cornhole.about-gch")},"About Go Cornhole",8,de)]),e("li",ge,[e("a",{href:t.route("cornhole.faqs")},"FAQs",8,_e)]),e("li",fe,[e("a",{href:t.route("cornhole.cornhole-101")},"Cornhole 101",8,be)]),e("li",pe,[e("a",{href:t.route("cornhole.start-a-company-team")},"Start a Company Team",8,ke)]),e("li",we,[e("a",{href:t.route("cornhole.start-a-league")},"Start a League in Your City",8,ye)]),e("li",xe,[e("a",{href:t.route("premium-t-shirt-styles")},"Premium T-Shirt Styles",8,ve)]),e("li",Se,[e("a",{href:t.route("cornhole.partners")},"Partner with Go Cornhole",8,Ae)]),e("li",Me,[e("a",{href:t.route("cornhole.rules")},"Go Cornhole Rules",8,Ce)]),e("li",Ne,[e("a",{href:t.route("player-waiver")},"Player Waiver",8,Ie)]),e("li",Oe,[e("a",{href:t.route("cornhole.contact")},"Contact Us",8,Le)])])]),o.user?h("",!0):(s(),l("li",Te,[e("a",{href:t.route("login"),class:"font-semibold lg:font-normal"},"Login",8,Ee)])),o.user?(s(),l("li",He,[e("a",{href:t.route("my-profile"),class:"font-semibold lg:font-normal"},"My Account",8,Re)])):h("",!0),o.user&&o.user.is_admin?(s(),l("li",Fe,Ue)):h("",!0),e("li",De,[e("a",{onClick:r[2]||(r[2]=i=>o.registerNowLink()),href:"#"},[g.loadingLeagues?(s(),l("div",We,Ke)):(s(),l("button",Pe,"Sign Up"))])]),o.user?(s(),l("li",Be,[e("a",{href:"#",onClick:r[3]||(r[3]=(...i)=>o.logout&&o.logout(...i))},je)])):h("",!0)])]),n.showMainMenu?(s(),l("div",ze,[e("ul",Je,[e("li",qe,[e("a",{href:t.route("home",{ref:"market_only"}),class:"font-semibold lg:font-normal"},"Home",8,Qe)]),e("li",Xe,[o.market!=null&&o.market.name.length<20?(s(),l("a",{key:0,href:"#",onClick:r[4]||(r[4]=_((...i)=>o.toggleMarketSubmenu&&o.toggleMarketSubmenu(...i),["prevent"])),class:"font-semibold text-white"},[m(c(o.market.name)+", "+c(o.market.state)+" ",1),$e])):h("",!0),o.market!=null&&o.market.name.length>=20?(s(),l("a",{key:1,href:"#",onClick:r[5]||(r[5]=_((...i)=>o.toggleMarketSubmenu&&o.toggleMarketSubmenu(...i),["prevent"])),class:"font-semibold"},[m(c(o.market.name.substring(0,20)+"...")+", "+c(o.market.state)+" ",1),Ze])):o.market==null?(s(),l("a",{key:2,href:"#",onClick:r[6]||(r[6]=_((...i)=>o.toggleMarketSubmenu&&o.toggleMarketSubmenu(...i),["prevent"])),class:"font-semibold text-white"},[m(" Choose a City "),et])):h("",!0),n.showMarketSubmenu?(s(),l("ul",tt,[e("li",ot,[e("a",{class:"text-black",href:t.route("start-a-league")},"Start a League",8,st),lt]),(s(!0),l(f,null,b(o.cornholeMarkets,(i,a,p)=>(s(),l("div",{key:p},[e("li",rt,c(a),1),(s(!0),l(f,null,b(i,u=>(s(),l("li",{class:"py-2 px-4 text-black",key:u.id},[e("a",{href:t.route("markets",u.slug)},c(u.name)+", "+c(u.state),9,nt)]))),128))]))),128))])):h("",!0)]),e("li",at,[e("a",{href:"#",onClick:r[7]||(r[7]=_((...i)=>o.toggleAboutSubmenu&&o.toggleAboutSubmenu(...i),["prevent"])),class:"font-semibold"},[m(" About/FAQs "),it]),n.showAboutSubmenu?(s(),l("ul",ht,[e("li",ct,[e("a",{href:t.route("cornhole.how-to-sign-up")},"How to Sign-up",8,ut)]),e("li",mt,[e("a",{href:t.route("cornhole.join-email-list")},"Join Email List",8,dt)]),e("li",gt,[e("a",{href:t.route("cornhole.about-gch")},"About GO Cornhole",8,_t)]),e("li",ft,[e("a",{href:t.route("cornhole.faqs")},"FAQs",8,bt)]),e("li",pt,[e("a",{href:t.route("cornhole.cornhole-101")},"Cornhole 101",8,kt)]),e("li",wt,[e("a",{href:t.route("cornhole.start-a-company-team")},"Start a Company Team",8,yt)]),e("li",xt,[e("a",{href:t.route("cornhole.start-a-league")},"Start a League in Your City",8,vt)]),e("li",St,[e("a",{href:t.route("premium-t-shirt-styles")},"Premium T-Shirt Styles",8,At)]),e("li",Mt,[e("a",{href:t.route("cornhole.partners")},"Partner with Go Cornhole",8,Ct)]),e("li",Nt,[e("a",{href:t.route("cornhole.rules")},"Go Cornhole Rules",8,It)]),e("li",Ot,[e("a",{href:t.route("player-waiver")},"Player Waiver",8,Lt)]),e("li",Tt,[e("a",{href:t.route("cornhole.contact")},"Contact Us",8,Et)])])):h("",!0)]),o.user?h("",!0):(s(),l("li",Ht,[e("a",{href:t.route("login"),class:"font-semibold lg:font-normal"},"Login",8,Rt)])),o.user?(s(),l("li",Ft,[e("a",{href:t.route("my-profile"),class:"font-semibold lg:font-normal"},"My Account",8,Vt)])):h("",!0),o.user&&o.user.is_admin?(s(),l("li",Ut,[e("a",{href:"/ballstand",class:I(["font-semibold lg:font-normal",t.is_cornhole?"text-white":""])},"Ballstand",2)])):h("",!0),e("li",Dt,[g.loadingLeagues?(s(),l("div",Wt,Kt)):(s(),l("a",{key:1,onClick:r[8]||(r[8]=i=>o.registerNowLink()),href:"#"},"Sign Up"))]),o.user?(s(),l("li",Pt,[e("a",{href:t.route("logout")},"Logout",8,Bt)])):h("",!0)])])):h("",!0)])])}const jt=v(E,[["render",Yt]]),zt={components:{Notification:C},data(){return{contactForm:{name:null,email:null,state:null,message:null,type:null,market_id:null},errors:{},notification:{enabled:!1,type:"success",message:null},messageTypes:[{id:0,name:"General Inquiry"},{id:1,name:"Partner with Go Cornhole"},{id:2,name:"Start a Company Team"},{id:3,name:"Start a League"},{id:4,name:"Become a Ref"}],states:["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Carolina","North Dakota","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"]}},methods:{async submitContactForm(){this.errors={};let t=route("submit-contact-form");try{await axios.post(t,this.contactForm),this.contactForm={name:null,email:null,state:null,message:null,type:null},this.notification.enabled=!0,this.notification.message="Contact form has been submitted.",setTimeout(()=>{this.notification.enabled=!1,this.notification.message=null},2500)}catch(r){let g=d(r,"response.data.errors");this.errors=g}}},computed:{market(){return d(this.$page,"market",null)},currentUrl(){return d(this.$page,"url",null)},currentMarket(){return this.market?this.market.id:""}}},Jt={id:"footer",class:"bg-black pt-8 pb-12 w-full"},qt={class:"container mx-auto"},Qt={class:"flex flex-wrap flex-col lg:flex-row mb-4 w-full"},Xt={class:"w-full lg:w-1/3 h-auto items-center pr-10"},$t=e("img",{class:"mb-5",src:"https://kickball-assets.s3.amazonaws.com/go-cornhole-logo-orange.png"},null,-1),Zt=["href"],eo={key:0,class:"w-full lg:w-2/3 lg:pl-10 h-auto"},to=e("h3",{class:"pt-6 lg:py-6 text-lg text-gray lg:pl-16"},"Have a question - send us a Message:",-1),oo=e("a",{name:"contact-form"},null,-1),so={class:"w-full md:w-1/2 mb-5 md:pr-3"},lo={key:0,class:"flex items-center w-full p-2 bg-cornhole-orange shadow text-white mb-1 mt-1 text-sm"},ro={class:"ml-1"},no={class:"w-full md:w-1/2 mb-5 md:pl-3"},ao={key:0,class:"flex items-center w-full p-2 bg-cornhole-orange shadow text-white mb-1 mt-1 text-sm"},io={class:"ml-1"},ho={class:"w-full mb-5"},co={key:null,value:null},uo=["value"],mo={key:0,class:"flex items-center w-full p-2 bg-cornhole-orange shadow text-white mb-1 mt-1 text-sm"},go=e("span",{class:"ml-1"},"The city field is required.",-1),_o=[go],fo={class:"w-full mb-5"},bo={key:null,value:null},po=["value"],ko={key:0,class:"flex items-center w-full p-2 bg-cornhole-orange shadow text-white mb-1 mt-1 text-sm"},wo=e("span",{class:"ml-1"},"The city field is required.",-1),yo=[wo],xo={class:"w-full mb-5"},vo={key:0,class:"flex items-center w-full p-2 bg-cornhole-orange shadow text-white mb-1 text-sm"},So={class:"ml-1"},Ao={class:"flex w-full mb-5 justify-end space-x-6"},Mo=e("button",{type:"submit",class:"text-md px-4 py-2 leading-none border rounded-full text-white bg-cornhole-orange border-cornhole-orange hover:border-transparent hover:text-black hover:bg-white mt-4 lg:mt-0"},"Submit",-1),Co={class:"w-full h-auto text-center pt-5"},No={class:"mb-5 text-xs text-gray"},Io=["href"],Oo=["href"],Lo={class:"text-xs text-gray"};function To(t,r,g,S,n,o){const i=w("Notification");return s(),l("div",Jt,[e("div",qt,[e("div",Qt,[e("div",Xt,[$t,e("a",{href:t.route("join-email-list")+"?market="+o.currentMarket,class:"inline-block text-sm px-4 py-2 leading-none border rounded-full text-white hover:border-transparent hover:text-black hover:bg-white mt-4 lg:mt-0 bg-cornhole-orange border-cornhole-orange"},"Join our Email List",8,Zt)]),o.currentUrl!="/contact"?(s(),l("div",eo,[to,oo,e("form",{class:"w-full mt-10 lg:mt-0 lg:float-right lg:pl-16 flex flex-wrap",onSubmit:r[5]||(r[5]=_((...a)=>o.submitContactForm&&o.submitContactForm(...a),["prevent"]))},[e("div",so,[k(e("input",{class:"py-4 px-3 w-full text-gray-700 leading-tight focus:outline-none focus:shadow-outline bg-grey-500",type:"text",placeholder:"Full Name","onUpdate:modelValue":r[0]||(r[0]=a=>n.contactForm.name=a)},null,512),[[y,n.contactForm.name]]),n.errors.name?(s(),l("div",lo,[e("span",ro,c(n.errors.name[0]),1)])):h("",!0)]),e("div",no,[k(e("input",{class:"py-4 px-3 w-full text-gray-700 leading-tight focus:outline-none focus:shadow-outline bg-grey-500",type:"email",placeholder:"Email Address","onUpdate:modelValue":r[1]||(r[1]=a=>n.contactForm.email=a)},null,512),[[y,n.contactForm.email]]),n.errors.email?(s(),l("div",ao,[e("span",io,c(n.errors.email[0]),1)])):h("",!0)]),e("div",ho,[k(e("select",{class:"px-3 h-12 w-full text-gray-700 leading-tight focus:outline-none focus:shadow-outline bg-grey-500",placeholder:"What city are you in?","onUpdate:modelValue":r[2]||(r[2]=a=>n.contactForm.market_id=a)},[(s(),l("option",co,"Select City to Contact")),(s(!0),l(f,null,b(t.$page.props.markets_list,a=>(s(),l("option",{key:a.id,value:a.id},c(a.name)+", "+c(a.state),9,uo))),128))],512),[[A,n.contactForm.market_id]]),n.errors.market_id?(s(),l("div",mo,_o)):h("",!0)]),e("div",fo,[k(e("select",{class:"px-3 h-12 w-full text-gray-700 leading-tight focus:outline-none focus:shadow-outline bg-grey-500",placeholder:"What city are you in?","onUpdate:modelValue":r[3]||(r[3]=a=>n.contactForm.type=a)},[(s(),l("option",bo,"Purpose")),(s(!0),l(f,null,b(n.messageTypes,a=>(s(),l("option",{key:a.id,value:a.name},c(a.name),9,po))),128))],512),[[A,n.contactForm.type]]),n.errors.market_id?(s(),l("div",ko,yo)):h("",!0)]),e("div",xo,[k(e("textarea",{class:"py-4 px-3 w-full text-gray-700 leading-tight focus:outline-none focus:shadow-outline bg-grey-500",placeholder:"Message",rows:"4","onUpdate:modelValue":r[4]||(r[4]=a=>n.contactForm.message=a)},null,512),[[y,n.contactForm.message]]),n.errors.message?(s(),l("div",vo,[e("span",So,c(n.errors.message[0]),1)])):h("",!0)]),e("div",Ao,[n.notification.enabled?(s(),O(i,{key:0,type:n.notification.type,message:n.notification.message},null,8,["type","message"])):h("",!0),Mo])],32)])):h("",!0)]),e("div",Co,[e("p",No,[e("a",{href:t.route("privacy-policy")},"Privacy Policy",8,Io),m(" | "),e("a",{href:t.route("terms")},"Terms and Conditions",8,Oo)]),e("p",Lo," © Copyright "+c(new Date().getFullYear())+" LiveLifeFun. All Rights Reserved. ",1)])])])}const Eo=v(zt,[["render",To]]);const Ho={props:{title:String,loadingLeagues:Boolean},components:{GoCornholeHeader:jt,GoCornholeFooter:Eo},mixins:[N],created(){},mounted(){!this.user&&window.location.pathname=="/"&&(localStorage.getItem("wasVisited")===null?(this.showModal(),localStorage.setItem("wasVisited","1")):localStorage.getItem("wasVisited")!==null&&localStorage.getItem("wasVisited")<5&&(this.showModal(),localStorage.setItem("wasVisited",parseInt(localStorage.getItem("wasVisited"))+1))),this.emitter.on("market-active",t=>{this.defaultLeague=t})},watch:{flashMessage(t,r){t&&t!==r&&setTimeout(()=>{this.$page.flash={message:null}},2500)}},computed:{user(){return d(this.$page.props,"auth.user",null)},flashMessage(){return d(this.$page,"flash.message",null)},market(){return d(this.$page,"market",null)},activeLeagues(){return d(this.market,"activeLeagues",[])},activeLeague(){return this.activeLeagues[0]||null},currentMarket(){return this.market?this.market.id:""}},data(){return{}},methods:{showModal(){this.$refs.modal.show()},hideModal(){this.$refs.modal.hide()},convertStateName(t){return{AZ:"ARIZONA",AL:"ALABAMA",AK:"ALASKA",AR:"ARKANSAS",CA:"CALIFORNIA",CO:"COLORADO",CT:"CONNECTICUT",DC:"DISTRICT OF COLUMBIA",DE:"DELAWARE",FL:"FLORIDA",GA:"GEORGIA",HI:"HAWAII",ID:"IDAHO",IL:"ILLINOIS",IN:"INDIANA",IA:"IOWA",KS:"KANSAS",KY:"KENTUCKY",LA:"LOUISIANA",ME:"MAINE",MD:"MARYLAND",MA:"MASSACHUSETTS",MI:"MICHIGAN",MN:"MINNESOTA",MS:"MISSISSIPPI",MO:"MISSOURI",MT:"MONTANA",NE:"NEBRASKA",NV:"NEVADA",NH:"NEW HAMPSHIRE",NJ:"NEW JERSEY",NM:"NEW MEXICO",NY:"NEW YORK",NC:"NORTH CAROLINA",ND:"NORTH DAKOTA",OH:"OHIO",OK:"OKLAHOMA",OR:"OREGON",PA:"PENNSYLVANIA",RI:"RHODE ISLAND",SC:"SOUTH CAROLINA",SD:"SOUTH DAKOTA",TN:"TENNESSEE",TX:"TEXAS",UT:"UTAH",VT:"VERMONT",VA:"VIRGINIA",WA:"WASHINGTON",WV:"WEST VIRGINIA",WI:"WISCONSIN",WY:"WYOMING"}[t]},registerNow(){this.defaultLeague&&M.visit(route("register-now",this.defaultLeague)+"?market_type=flex")}}},Ro={id:"app",class:"app h-screen"},Fo={class:"content h-auto mt-16 lg:mt-20"},Vo={key:0,class:"w-56 fixed right-0 top-0 p-6 text-sm shadow text-white bg-blue rounded mr-4 mt-4 z-50 text-center"},Uo=e("div",{class:"top-divider w-full"},null,-1),Do=e("h1",{class:"text-6xl leading-none font-header uppercase mb-8 text-cornhole-orange"},[m("Stay in the loop! "),e("br"),e("span",{class:"text-pickleball-gray"},"Join our email list!")],-1),Wo=e("p",{class:"mb-1 text-pickleball-gray font-semibold text-base"},"We promise not to spam you 🙂",-1),Go=e("p",{class:"mb-8 text-pickleball-gray text-base"},"We only send you an email when we have something we think you really need.",-1),Ko=["href"],Po=e("button",{class:"bg-white border-2 border-cornhole-orange button rounded-full text-cornhole-orange py-2 mt-6 px-10 block"}," Join Email List ",-1),Bo=[Po];function Yo(t,r,g,S,n,o){const i=w("go-cornhole-header"),a=w("go-cornhole-footer"),p=w("modal");return s(),l("div",Ro,[x(i,{loadingLeagues:g.loadingLeagues,onOpenMarketSignUp:r[0]||(r[0]=u=>t.$emit("openMarketSignUp"))},null,8,["loadingLeagues"]),e("div",Fo,[L(t.$slots,"default"),o.flashMessage?(s(),l("div",Vo,c(o.flashMessage),1)):h("",!0)]),Uo,x(a),e("div",null,[x(p,{ref:"modal",clickToClose:!0,escToClose:!0,overlayClass:"bg-cornhole-orange z-40 overflow-auto left-0 top-0 bottom-0 right-0 w-full h-full fixed opacity-50"},{default:T(()=>[Do,Wo,Go,e("a",{href:t.route("cornhole.join-email-list")},Bo,8,Ko)]),_:1},512)])])}const qo=v(Ho,[["render",Yo]]);export{qo as G};