1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1951],{6649:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/locations/[code]/corp",function(){return n(9159)}])},2897:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var l=n(5893);function r(e){var t=e.noUppercase,n=e.size,r=e.borderColor,i=e.title,a=e.details,s=e.extraText,o=e.children,c=e.titleColor,d=e.center,u=e.extraClasses,m=e.smTitle,f=e.imageCarousel;return(0,l.jsx)("div",{className:"w-full border-t-4 bg-white ".concat("xs"==n?"md:w-[319px]":"mediumSmall"==n?"md:w-[375px]":"md:w-[573px]"," md:border-t-8 ").concat(r," ").concat("big"===n?"py-12 px-10 md:py-[72px] md:px-[84px]":"medium"===n?"py-12 px-14":"small"===n||"mediumSmall"===n?"p-8":"xs"===n?"py-8 px-10":null," ").concat(void 0===u?"":u),children:(0,l.jsxs)("div",{className:"".concat(f?"animate-[imgAnim_0.2s_ease_0.2s_1_normal_both_running]":""),children:[i?(0,l.jsxs)("h3",{className:"".concat(c," mb-4 flex items-center ").concat(d?"justify-center":"justify-between"," font-urw-din-condensed font-medium"),children:[(0,l.jsx)("span",{className:"text-left text-[32px] leading-[1.1] ".concat(t?"":"uppercase"," ").concat(m?"sm:text-[32px]":"sm:text-[40px]"),children:i}),s?(0,l.jsx)("span",{className:"text-[24px] sm:text-[32px]",children:s}):null]}):null,a?(0,l.jsx)("div",{className:"mt-4 mb-6 font-proxima-nova text-lg leading-[1.33] md:mt-5 md:mb-10",children:a}):null,o]})})}},5876:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var l=n(6042),r=n(9396),i=n(5893),a=n(7294),s=n(4462);function o(e){var t,n=e.type,o=e.label,c=e.href,d=e.value,u=e.target,m=e.linkLabel,f=e.name,x=void 0===f?"":f,p=e.title,h=e.selectData,v=void 0===h?null:h,b=e.conditions,g=e.register,y=void 0===g?function(){}:g,j=e.errors,N=e.noPlaceholder,w=e.checked,C=e.checkBoxClick,S=e.defaultValue,k=void 0===S?"":S,Z=e.disabled,F=void 0!==Z&&Z,I=e.extraClasses,A=void 0===I?"":I,P=e.required,T=void 0!==P&&P,M=(0,a.useState)(""),U=M[0],_=M[1],O=function(e){var t=e.replace(/\D/g,"").slice(0,10);return 0===t.length?"":t.length<=3?"(".concat(t):t.length<=6?"(".concat(t.slice(0,3),") ").concat(t.slice(3)):"(".concat(t.slice(0,3),") ").concat(t.slice(3,6),"-").concat(t.slice(6))},E="phone"===x&&y?y(x,(0,r.Z)((0,l.Z)({},b),{setValueAs:function(e){return e.replace(/\D/g,"")}})):null,q=function(e){var t=O(e.target.value);_(t);var n=t.replace(/\D/g,"");E&&E.onChange&&E.onChange({target:{name:x,value:n},type:"change"})};(0,a.useEffect)(function(){if("phone"===x){if(k){var e=O(k);_(e)}else _("")}},[k,x]);var L=function(e){var t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)},Y="text-basetext-ufc-gray-153 rounded-none border-2 border-ufc-gray-246 bg-ufc-gray-246 p-4 outline-none focus:border-2 focus:border-black";return(console.log("required",T),"hidden"==n)?(0,i.jsx)("input",(0,l.Z)({type:"hidden",name:x,value:d},y(x))):(0,i.jsxs)("div",{children:["checkbox"==n?(0,i.jsxs)("label",{className:"customCheckbox mb-1 font-urw-din-condensed text-2xl font-medium leading-[1.33]",children:[(0,i.jsxs)("p",{className:"ml-2",children:[o," ",c?(0,i.jsx)(s.Z,{className:"border-b border-ufc-gray-153 no-underline",href:c,target:void 0===u?"_blank":u,children:m}):null]}),(0,i.jsx)("input",(0,l.Z)({type:"checkbox",id:x,checked:w,className:"".concat("checkbox"==n?"w-0":"w-full"," ").concat(Y," ").concat(A||""),placeholder:L(x),disabled:F,onClick:C||null},y(x,b))),(0,i.jsx)("span",{className:"checkmark"})]}):(0,i.jsxs)("div",{className:"relative flex ".concat("checkbox"==n?"flex-row-reverse items-center justify-end":"flex-col"),children:[(0,i.jsxs)("label",{htmlFor:x,className:"".concat("checkbox"==n?"ml-10":"ml-0"," mb-1 font-urw-din-condensed text-2xl font-medium leading-[1.33]"),children:["checkbox"==n?o:(void 0===p?"":p)||L(x),(0,i.jsx)("span",{className:"text-ufc-red",children:!1!==T?"*":""})]}),"textarea"==n?(0,i.jsx)("textarea",(0,l.Z)({rows:"5",id:x,className:"w-full ".concat(Y," ").concat(A||""),placeholder:L(x)},y(x,b))):"select"==n?(0,i.jsx)("div",{className:"bg-ufc-gray-246",children:(0,i.jsx)("select",(0,r.Z)((0,l.Z)({name:x,id:x,className:"inline-block h-[60px] w-full appearance-none overflow-hidden rounded-none border-2 border-ufc-gray-26 bg-transparent bg-[url('/images/baseline-arrow_drop_down.svg')] bg-[position:100%] bg-no-repeat py-[5px] px-4 text-sm font-bold leading-loose outline-none"},y(x,{required:"This field is required."}
1)),{children:null==v?void 0:v.map(function(e){return(0,i.jsx)("option",{hidden:""==e.value,value:e.value,selected:e.value==k?"selected":"",children:e.label},e.value)})}))}):"phone"===x?(0,i.jsx)("input",(0,r.Z)((0,l.Z)({id:x},E?{ref:E.ref}:{}),{type:"tel",className:"w-full ".concat(Y," ").concat(A||""),placeholder:N?null:"(###) ###-####",value:U,onChange:q,onBlur:null==E?void 0:E.onBlur,disabled:F,maxLength:14})):(0,i.jsx)("input",(0,r.Z)((0,l.Z)({id:x,type:n||null,className:" ".concat("checkbox"==n?"w-0":"w-full"," ").concat(Y," ").concat(A||""),placeholder:N?null:L(x)},y(x,b)),{disabled:F,defaultValue:k}))]}),(null==j?void 0:j[x])?(0,i.jsx)("p",{className:"!mt-2 text-sm text-ufc-red",children:null==j?void 0:null===(t=j[x])||void 0===t?void 0:t.message}):""]})}},5610:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var l=n(5893);function r(e){var t=e.children,n=e.leftInMobile,r=e.extra,i=e.align;return(0,l.jsx)("p",{className:" ".concat(void 0!==n&&n?"text-left md:text-center mx-[unset] md:mx-auto":""," ").concat(i?"text-left":""," text-lg leading-snug sm:text-xl ").concat(r||""),children:t})}n(7294)},4466:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var l=n(5893),r=n(5610);function i(e){var t=e.title,n=e.children,i=e.extra,a=e.color,s=e.titleStyle;return(0,l.jsxs)("div",{className:"pb-12 text-center sm:pb-8 flex flex-col items-center",children:[(0,l.jsx)("h3",{className:"".concat(s||"font-medium"," mb-4 font-urw-din-condensed text-[32px] leading-[1.2] lg:mb-6 lg:text-[40px] ").concat(a),children:t}),(0,l.jsx)(r.Z,{extra:i,children:n})]})}},9159:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return el},default:function(){return er}});var l=n(7568),r=n(6042),i=n(9396),a=n(7582),s=n(5893),o=n(7294),c=n(2962),d=n(2130),u=n(259),m=n(4466),f=n(1163),x=n(8100),p=n(7066),h=n(9815),v=n(7536),b=n(1664),g=n.n(b),y=n(2897),j=n(6005),N=n(1954),w=n(3966),C=function(e){var t=w.find(function(t){return t.plans.some(function(t){return t===e})});return!t&&(t=(0,h.Z)(w).sort(function(e,t){var n=e.plans.reduce(function(e,t){return t.length>e.length?t:e},"");return t.plans.reduce(function(e,t){return t.length>e.length?t:e},"").length-n.length}).find(function(t){return t.plans.some(function(t){return e.includes(t)})})),(t&&t.name?t.name:e).replace(" PIF","")},S=function(e){var t=w.find(function(t){return t.plans.some(function(t){return e.includes(t)})});return t&&t.sortOrder?t.sortOrder:0},k=function(e){return(null==e?void 0:e.contractTerm)==="PIF"},Z=function(e){return(null==e?void 0:e.contractTerm)==="MONTHLY"},F=function(e){var t=k(e)?null==e?void 0:e.totalDueTodayPreTax:(null==e?void 0:e.monthlyDuesDisplay)||(null==e?void 0:e.monthlyDues);if(!t)return"Contact Club";var n=Number.isInteger(t)?t.toString():t.toFixed(2);return"$ ".concat(n).concat(k(e)?"":" /mo")},I=function(e){var t=e.typeCheck,n=e.features,l=e.offer,r=e.location;return(0,s.jsx)("div",{className:"pt-3 pb-6",children:n.map(function(e,n){return(0,s.jsxs)("div",{children:[Z(l)&&(0,s.jsxs)("div",{className:"mb-4 flex items-center text-sm leading-[1.33] md:text-base",children:[(0,s.jsx)(N.JO,{icon:"gridicons:checkmark",color:"".concat(t?"#d20a0a":"#14416a"),width:"28",className:"mr-4"}),(0,s.jsx)("div",{children:"Month-to-Month No Commitment"})]},n),!Z(l)&&(0,s.jsxs)("div",{className:"mb-4 flex items-center text-sm leading-[1.33] md:text-base",children:[(0,s.jsx)(N.JO,{icon:"gridicons:checkmark",color:"".concat(t?"#d20a0a":"#14416a"),width:"28",className:"mr-4"}),(0,s.jsxs)("div",{children:["Contract Term",(null==l?void 0:l.contractLength)>0?" ".concat(null==l?void 0:l.contractLength," months"):" (check with club)"]})]},n),e.list.map(function(e,n){return(0,s.jsxs)("div",{className:"mb-4 flex items-center text-sm leading-[1.33] md:text-base",children:[(0,s.jsx)(N.JO,{icon:"gridicons:checkmark",color:"".concat(t?"#d20a0a":"#14416a"),width:"28",className:"mr-4"}),"Access at Home Club"==e?(0,s.jsxs)("span",{children:["Access at Home Club"," ",(0,s.jsx)(g(),{href:"/locations/".concat(r.code),children:(0,s.jsx)("a",{className:"underline hover:text-lightAccent",children:"(see hours)"})})]}):e]},n)})]},n)})})},A=function(e){var t=e.items;return(0,s.jsxs)("div",{className:"p-4 mb-8 bg-gray-100 rounded md:mx-4",children:[(0,s.jsx)("div",{className:"mb-1 text-sm font-bold",children:"Due at Sign Up *"}),(0,s.jsx)("div",{children:t.map(function(e,t){return(0,s.jsxs)("div",{className:"flex justify-between text-sm",children:[(0,s.jsx)("span",{children:e.name.replace(/^\d+\.\s*/,"")}),(0,s.jsxs)("span",{children:["$",e.amount.toFixed(2)]})]},t)})})]})},P=function(e){var t=e.typeCheck,n=e.offerName,l=e.offer,r=e.location,i=w.find(function(e){return e.plans.some(function(e){return e===n})});return!i&&(i=(0,h.Z)(w).sort(function(e,t){var n=e.plans.reduce(function(e,t){return t.length>e.length?t:e},"");return t.plans.reduce(function(e,t){return t.length>e.length?t:e},"").length-n.length}).find(function(e){return e.plans.some(function(e){return n.includes(e)})})),i?(0,s.jsx)(I,{typeCheck:t,features:i.features,offer:l,location:r}):null},T=function(e){var t=e.memberships_cta,n=e.offer,l=t.find(function(e){return e.planId===n.info.planId});return l?(0,s.jsx)("div",{className:"mx-auto w-fit",children:(0,s.jsx)("div",{className:"px-4 py-2 my-4 text-base font-bold text-white bg-ufc-red",children:l.copy})}):null},M=function(e){var t=e.typeCheck,n=e.offer,l=e.onClick,r=e.location;return(0,s.jsx)("div",{className:"w-fill !mb-8 p-4 md:w-auto",children:(0,s.jsxs)(y.Z,{noUppercase:!0,size:"mediumSmall",title:C(n.name),extraText:F(n),titleColor:t?"black":"text-ufc-blue",borderColor:"".concat(t?"border-ufc-red":"border-ufc-blue"),extraClasse
1s:"bg-gray-100",children:[(null==r?void 0:r.memberships_cta)&&(0,s.jsx)(T,{memberships_cta:r.memberships_cta,offer:n}),(0,s.jsx)(P,{typeCheck:t,offerName:n.name,offer:n,location:r}),n.items&&(0,s.jsx)(A,{items:n.items}),(0,s.jsx)(j.Z,{size:"big",variant:t?"black":"blue",text:"select",extraClasses:"w-full",onClick:function(){return l(n)}})]})})},U=function(e){var t=e.active,n=e.onClick,l=e.label;return(0,s.jsx)("button",{className:"px-6 py-2 text-sm font-medium transition-colors ".concat(t?"bg-[#1e3a5c] text-white":"bg-gray-200 text-gray-700 hover:bg-gray-300"),onClick:n,children:l})},_=function(e){var t=e.offers,n=e.activeFilter,l=e.setActiveFilter,r=(0,o.useState)([]),i=r[0],a=r[1];if((0,o.useEffect)(function(){var e;if((null==t?void 0:null===(e=t.offers)||void 0===e?void 0:e.length)>0){var r=t.offers.reduce(function(e,t){return t.contractTerm&&!e.includes(t.contractTerm)&&e.push(t.contractTerm),e},[]);a(r),r.length>0&&!n&&l(r[0])}},[t,n,l]),i.length<=1)return null;var c={MONTHLY:"Monthly",TERM:"Term",PIF:"Paid In Full"};return(0,s.jsxs)("div",{className:"mb-8 mt-4 flex flex-col items-center",children:[(0,s.jsx)("p",{className:"mb-3 text-sm font-medium leading-[1.33] text-gray-800 md:text-base",children:"Filter by Membership Type:"}),(0,s.jsx)("div",{className:"inline-flex overflow-hidden shadow-md",children:i.map(function(e){return(0,s.jsx)(U,{label:c[e]||e,active:n===e,onClick:function(){return l(e)}},e)})})]})},O=function(){return(0,s.jsx)("div",{className:"mt-48 inline-block size-24 animate-spin rounded-full border-4 border-solid border-current border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite]",role:"status",children:(0,s.jsx)("span",{className:"!absolute !-m-px !h-px !w-px !overflow-hidden !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]",children:"Loading..."})})},E=function(e){var t,n=e.location;return(null==n?void 0:null===(t=n.joinPage)||void 0===t?void 0:t.promoMessage)?(0,s.jsx)("div",{className:"-mt-4 mb-8 text-xl text-center md:text-2xl",children:(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:n.joinPage.promoMessage}})}):null},q=function(e){var t=e.location,n=(0,v.cI)(),l=n.register,i=n.handleSubmit,a=n.reset,o=(0,f.useRouter)(),c=function(e){var n=e.promoCode;a(),o.push({pathname:"/locations/".concat(t.code,"/join"),query:{promoCode:n.trim()}})};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(E,{location:t}),(0,s.jsx)("div",{className:"text-center",children:"Got a Promo Code? Enter it here:"}),(0,s.jsx)("div",{className:"flex justify-center items-center mt-4 bg-transparent",children:(0,s.jsx)("form",{onSubmit:i(c),children:(0,s.jsxs)("div",{className:"relative text-gray-600 focus-within:text-gray-400",children:[(0,s.jsx)("span",{className:"flex absolute inset-y-0 left-0 items-center pl-2",children:(0,s.jsx)("button",{type:"submit",className:"p-1 focus:shadow-outline focus:outline-none",children:(0,s.jsx)("svg",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",className:"size-6",children:(0,s.jsx)("path",{d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})})}),(0,s.jsx)("input",(0,r.Z)({name:"promoCode",type:"search",className:"py-2 pl-10 text-black bg-gray-100 focus:bg-gray-100 focus:text-gray-900 focus:outline-none",placeholder:"Search..."},l("promoCode",{})))]})})})]})},L=function(e){return(e.thePromoCode,"PRESALE"===e.location.status)?(0,s.jsx)("div",{className:"mt-16 text-4xl font-bold text-center font-urw-din-condensed",children:"Coming Soon!"}):(0,s.jsx)("div",{className:"mt-48 text-2xl",children:"No online offers at this location."})},Y=function(e){var t=e.location,n=e.typeCheck,l=e.thePromoCode,a=e.showPromoCodeForm,c=e.offers,d=e.onClickOffer,u=(0,o.useState)(null),f=u[0],x=u[1],p=(0,o.useState)(c),v=p[0],b=p[1];return(0,o.useEffect)(function(){if(!c||!c.offers){b(null);return}var e=(0,i.Z)((0,r.Z)({},c),{offers:c.offers.filter(function(e){return"Youth"!==e.name})});if(!f||0===e.offers.length){b(e);return}b((0,i.Z)((0,r.Z)({},e),{offers:e.offers.filter(function(e){return e.contractTerm===f})}))},[c,f]),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"flex justify-center pb-10 w-full",children:(0,s.jsx)("iframe",{src:"https://www.veed.io/embed/869169b1-4ac1-4152-9fc9-c3dbfea18c3e",width:"750",height:"425",className:"w-full max-w-full md:w-[744px]",frameborder:"0",title:"Unlock Your UFC Membership Benefits Today!",webkitallowfullscreen:!0,mozallowfullscreen:!0,allowFullScreen:!0})}),(0,s.jsxs)(m.Z,{title:"Experience the Train Different Lifestyle",titleStyle:"font-bold",extra:"max-w-[592px] my-5",color:n?"black":"text-ufc-blue",children:["Join us at the"," ",(0,s.jsxs)("span",{className:"font-bold",children:[(null==t?void 0:t.name)===(null==t?void 0:t.city)?null==t?void 0:t.name:"".concat(t.name," ").concat(null==t?void 0:t.city),", ",null==t?void 0:t.state]})," ","gym and unlock the benefits of MMA-inspired fitness.*"]}),(void 0===a||a)&&(0,s.jsx)(q,{location:t}),"PRESALE"===t.status&&(0,s.jsx)("div",{className:"mt-16 text-4xl font-bold text-center font-urw-din-condensed",children:"Presale Specials"}),c&&c.offers&&c.offers.length>0&&(0,s.jsx)(_,{offers:c,activeFilter:f,setActiveFilter:x}),(0,s.jsxs)("div",{className:"mt-8 flex min-h-[480px] flex-wrap justify-center",children:[!v&&(0,s.jsx)(O,{}),v&&v.offers&&v.offers.length>0&&v.offers.sort(function(e,t){return S(e.name)-S(t.name)}).map(function(e){return(0,s.jsx)(M,{location:t,typeCheck:n,offer:e,onClick:d},e.info.planId)}),v&&v.offers&&0===v.offers.length&&(0,s.jsx)(L,{thePromoCode:l,location:t})]}),c&&c.offers&&c.offers.length>0&&(0,s.jsxs)("div",{className:"mb-8 text-sm text-center",children:["*"," ",function(){var e=(0,h.Z)(new Set(c.offers.map(function(e){return e.enhancementFee}
1).filter(Boolean)));if(1===e.length)return 0===e[0]||"0"===e[0]?"":"$".concat(e[0]," annual assessment fee 30 days after enrollment. ");if(!(e.length>1))return"";var t,n,l=(t=Math).min.apply(t,(0,h.Z)(e)),r=(n=Math).max.apply(n,(0,h.Z)(e));return"$".concat(l).concat(l!==r?"-$".concat(r):""," annual assessment fee 30 days after enrollment. ")}(),"Amenities vary by location. Some memberships may display amenities not available at your selected home gym."]})]})},D=n(5876),G=function(){return(0,s.jsx)("div",{className:"mx-auto mt-12 mb-8 size-16 animate-spin rounded-full border-4 border-solid border-current border-r-transparent align-[-0.125em] first-letter:inline-block motion-reduce:animate-[spin_1.5s_linear_infinite]",role:"status",children:(0,s.jsx)("span",{className:"!absolute !-m-px !h-px !w-px !overflow-hidden !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]",children:"Please wait..."})})},R=function(e){var t,n,r,i,c,d,u,m,f,x,p,h,b,g,y,N,w,C,S,k=e.setStep,Z=e.step,F=e.cart,I=e.hasSubmittedCartLead,A=e.onSubmitMemberInfoForm,P=(0,v.cI)({defaultValues:{firstName:null!==(x=null==F?void 0:null===(t=F.member)||void 0===t?void 0:t.firstName)&&void 0!==x?x:"",lastName:null!==(p=null==F?void 0:null===(n=F.member)||void 0===n?void 0:n.lastName)&&void 0!==p?p:"",email:null!==(h=null==F?void 0:null===(r=F.member)||void 0===r?void 0:r.email)&&void 0!==h?h:"",phone:null!==(b=null==F?void 0:null===(i=F.member)||void 0===i?void 0:i.phone)&&void 0!==b?b:""}}),T=P.register,M=P.handleSubmit,U=P.formState.errors,_=(0,o.useState)(!1),O=_[0],E=_[1],q=(S=(0,l.Z)(function(e){return(0,a.__generator)(this,function(t){switch(t.label){case 0:return E(!0),[4,A(e)];case 1:return t.sent(),E(!1),[2]}})}),function(e){return S.apply(this,arguments)});return(0,s.jsxs)("form",{className:"container grid grid-cols-1 gap-4 mx-auto max-w-4xl md:gap-16",onSubmit:M(q),children:[(0,s.jsxs)("div",{className:"col-span-full space-y-8 lg:col-span-2",children:[(0,s.jsx)("h3",{className:"font-urw-din-condensed text-[32px] font-semibold leading-none lg:text-[40px]",children:"YOUR INFORMATION"}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:[(0,s.jsx)(D.Z,{noPlaceholder:!0,name:"firstName",conditions:{required:"First Name is required.",pattern:{value:/^[A-Za-z][A-Za-z0-9' -]{0,18}$/,message:"First Name must be between 1 and 19 characters."}},defaultValue:null!==(g=null==F?void 0:null===(c=F.member)||void 0===c?void 0:c.firstName)&&void 0!==g?g:"",value:null!==(y=null==F?void 0:null===(d=F.member)||void 0===d?void 0:d.firstName)&&void 0!==y?y:"",disabled:I||O,register:T,errors:U}),(0,s.jsx)(D.Z,{noPlaceholder:!0,name:"lastName",conditions:{required:"Last Name is required.",pattern:{value:/^[A-Za-z][A-Za-z0-9' -]{0,18}$/,message:"Last Name must be between 1 and 19 characters."}},defaultValue:null!==(N=null==F?void 0:null===(u=F.member)||void 0===u?void 0:u.lastName)&&void 0!==N?N:"",disabled:I||O,register:T,errors:U})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:[(0,s.jsx)(D.Z,{noPlaceholder:!0,name:"email",conditions:{required:"Email is required.",pattern:{value:/^\S+@\S+\.\S+$/i,message:"The email field must be a valid email."}},defaultValue:null!==(w=null==F?void 0:null===(m=F.member)||void 0===m?void 0:m.email)&&void 0!==w?w:"",disabled:I||O,register:T,errors:U}),(0,s.jsx)(D.Z,{noPlaceholder:!0,name:"phone",conditions:{required:"Phone number is required.",pattern:{value:/^\d+$/i,message:"The phone number field may only contain numeric characters."}},defaultValue:null!==(C=null==F?void 0:null===(f=F.member)||void 0===f?void 0:f.phone)&&void 0!==C?C:"",disabled:I||O,register:T,errors:U})]}),(0,s.jsx)("br",{}),(0,s.jsx)("div",{className:"text-md my-8 leading-[1.33] lg:text-lg",children:"Stay updated on club news! By checking the box below titled âI Agree to Text Messagesâ you are providing your signature as your acknowledgment that you give your express written consent to receive SMS text alerts from UFC GYM (which includes UFC FIT and CLASS UFC GYM), even if such communications are considered advertisements, and you further confirm that you are the authorized subscriber or customary user of any phone number you submit through the UFC GYM website. Message frequency may vary. You further acknowledge that by checking the box below you agree to have your information used as described herein and according to the UFC GYM Privacy Policy and Terms of Service contained herein. Your acknowledgment below indicates your express written consent that you understand and agree that text alerts may be sent using an automated dialing system, that message and data rates may apply, that your consent is not a condition to purchasing any goods or services, and that you may revoke your consent at any time by responding STOP to any SMS text alerts you receive. If you opt-out of receiving SMS text alerts, we may send you one final SMS text alert as confirmation and provide you with information on how to opt back in."}),(0,s.jsx)("div",{className:"my-8 space-y-4",children:I?(0,s.jsx)(D.Z,{type:"checkbox",label:"I Agree to Text Messages",href:null,linkLabel:null,name:"textMessages",checked:!0,disabled:!0}):(0,s.jsx)(D.Z,{type:"checkbox",label:"I Agree to Text Messages",href:null,linkLabel:null,name:"textMessages",conditions:{required:"This field is required."},register:T,errors:U})})]}),O?(0,s.jsx)(G,{}):(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"flex justify-center mt-5",children:(0,s.jsx)(j.Z,{extraClasse
1s:"w-[300px]",type:"submit",text:"continue to Billing",variant:"red",size:"big",disabled:O})}),(0,s.jsx)("div",{className:"flex justify-center mt-5",children:(0,s.jsx)(j.Z,{extraClasses:"w-[300px]",text:"back",variant:"whiteBtnBlackBorder",size:"big",onClick:function(){return k(Z-1)}})})]})]})},$={offer:{clubSlug:null,offerInfo:null,totalDueToday:null},leadId:null,member:{firstName:null,lastName:null,email:null,phone:null,street:null,city:null,state:null,postalCode:null,birthdate:null,gender:null},billing:{accountNumber:null,expiresMonth:null,expiresYear:null,cvvCode:null,firstName:null,lastName:null,street:null,city:null,state:null,postalCode:null}},B=function(e){var t=e.items;return t?Number(t.reduce(function(e,t){return e+t.taxAmount},0).toFixed(2)):0},V=function(e){var t,n=e.selectedOffer;return(0,s.jsxs)("div",{className:"col-span-full mx-auto max-w-md items-center justify-center md:col-span-1 md:mt-0",children:[(0,s.jsx)("div",{className:"bg-ufc-red p-5 text-center font-urw-din-condensed text-2xl font-bold text-white md:px-10",children:"DUE TODAY"}),(0,s.jsx)("div",{className:"bg-ufc-gray-246 p-5 leading-[3] md:px-10",children:null==n?void 0:null===(t=n.items)||void 0===t?void 0:t.map(function(e,t){return(0,s.jsxs)("div",{className:"flex justify-between text-base",children:[(0,s.jsx)("div",{children:null==e?void 0:e.name}),(0,s.jsx)("div",{children:(0,s.jsxs)("b",{children:["$",null==e?void 0:e.amount.toFixed(2)]})})]},t)})}),(0,s.jsx)("div",{className:"bg-ufc-gray-246 px-5 pb-5 leading-[3] md:px-10",children:(0,s.jsxs)("div",{className:"flex justify-between text-base",children:[(0,s.jsx)("div",{children:"Taxes"}),(0,s.jsx)("div",{children:(0,s.jsxs)("b",{children:["$",B(n).toFixed(2)]})})]})}),(0,s.jsx)("div",{className:"bg-ufc-gray-204 p-5 md:px-10",children:(0,s.jsxs)("div",{className:"flex justify-between text-base",children:[(0,s.jsx)("div",{children:"TOTAL DUE TODAY"}),(0,s.jsx)("div",{children:(0,s.jsxs)("b",{children:["$",null==n?void 0:n.totalDueToday.toFixed(2)]})})]})}),(0,s.jsxs)("div",{className:"my-4 text-xs",children:["Annual enhancement fee of $",null==n?void 0:n.enhancementFee," for facility updates will be billed in the second month of your membership."]})]})},z=[{value:"",label:"Select Gender"},{value:"male",label:"Male"},{value:"female",label:"Female"},{value:"not_specified",label:"Not specified"},],H=[{value:"",label:"Select Month"},{value:1,label:"Jan"},{value:2,label:"Feb"},{value:3,label:"Mar"},{value:4,label:"Apr"},{value:5,label:"May"},{value:6,label:"Jun"},{value:7,label:"Jul"},{value:8,label:"Aug"},{value:9,label:"Sept"},{value:10,label:"Oct"},{value:11,label:"Nov"},{value:12,label:"Dec"},],J=[{value:"",label:"Select Year"},{value:2024,label:2024},{value:2025,label:2025},{value:2026,label:2026},{value:2027,label:2027},{value:2028,label:2028},{value:2029,label:2029},{value:2030,label:2030},{value:2031,label:2031},{value:2032,label:2032},],X=function(e){var t,n,l,r,i,a,c,d,u,m,f,x,p,h,b,g,y,N,w,C,S,k,Z,F,I,A,P,T,M,U,_,O,E,q,L,Y,G,R,$,B,X=e.setStep,K=e.cart,W=e.selectedOffer,Q=e.onSubmitPaymentForm,ee=(0,v.cI)({defaultValues:{street:null!==(S=null==K?void 0:null===(t=K.member)||void 0===t?void 0:t.street)&&void 0!==S?S:"",city:null!==(k=null==K?void 0:null===(n=K.member)||void 0===n?void 0:n.city)&&void 0!==k?k:"",state:null!==(Z=null==K?void 0:null===(l=K.member)||void 0===l?void 0:l.state)&&void 0!==Z?Z:"",postalCode:null!==(F=null==K?void 0:null===(r=K.member)||void 0===r?void 0:r.postalCode)&&void 0!==F?F:"",gender:null!==(I=null==K?void 0:null===(i=K.member)||void 0===i?void 0:i.gender)&&void 0!==I?I:"",birthdate:null!==(A=null==K?void 0:null===(a=K.member)||void 0===a?void 0:a.birthdate)&&void 0!==A?A:"",accountNumber:null!==(P=null==K?void 0:null===(c=K.billing)||void 0===c?void 0:c.accountNumber)&&void 0!==P?P:"",expiresMonth:null!==(T=null==K?void 0:null===(d=K.billing)||void 0===d?void 0:d.expiresMonth)&&void 0!==T?T:"",expiresYear:null!==(M=null==K?void 0:null===(u=K.billing)||void 0===u?void 0:u.expiresYear)&&void 0!==M?M:"",cvvCode:null!==(U=null==K?void 0:null===(m=K.billing)||void 0===m?void 0:m.cvvCode)&&void 0!==U?U:""}}),et=ee.register,en=ee.handleSubmit,el=ee.formState.errors,er=ee.setValue,ei=(0,ee.watch)("state");(0,o.useEffect)(function(){if(ei){var e=ei.toUpperCase().replace(/[^A-Z]/g,"").slice(0,2);e!==ei&&er("state",e)}},[ei,er]);var ea=function(e){return Q(e)};return(0,s.jsxs)("form",{className:"container mx-auto grid max-w-4xl grid-cols-1 gap-4 md:gap-16",onSubmit:en(ea),children:[(0,s.jsx)(V,{selectedOffer:W}),(0,s.jsxs)("div",{className:"col-span-full space-y-8 lg:col-span-2",children:[(0,s.jsx)("h3",{className:"mt-4 font-urw-din-condensed text-[32px] font-semibold leading-none md:mt-0 lg:text-[40px]",children:"YOUR INFORMATION"}),(0,s.jsx)("div",{className:"grid grid-cols-1",children:(0,s.jsx)(D.Z,{noPlaceholder:!0,name:"street",conditions:{required:"Street is required."},defaultValue:null!==(_=null==K?void 0:null===(f=K.member)||void 0===f?void 0:f.street)&&void 0!==_?_:"",register:et,errors:el})}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:[(0,s.jsx)(D.Z,{noPlaceholder:!0,name:"city",conditions:{required:"City is required.",pattern:{value:RegExp("^(?![\\s\\-'])([a-zA-Z0-9\\s\\-']{1,23})(?<![\\s\\-'])$"),message:"City must be between 1 and 23 alphanumeric characters (spaces, dashes, and apostrophes are allowed, but cannot start or end with them)."}},defaultValue:null!==(O=null==K?void 0:null===(x=K.member)||void 0===x?void 0:x.city)&&void 0!==O?O:"",register:et,errors:el}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:[(0,s.jsx)(D.Z,{noPlaceholder:!0,name:"state",conditions:{required:"State is required.",pattern:{value:/^[A-Z]{2}$/,message:"State must be 2 uppercase letters."}},defaultValue:null!==(E=null==K?void 0:null===(p=K.member)||void 0===p?void 0:p.state)&&void 0!==E?E:"",register:et,errors:el}),(0,s.jsx)(D.Z,{noPlaceholder:!0,name:"postalCode",conditions:{required:"Postal code is required.",pattern:{value:/^\d{5}(-\d{4})?$/,message:"Please enter a valid US postal code (e.g., 12345 or 12345-6789)."}},defaultValue:null!==(q=null==K?void 0:null===(h=K.member)||void 0===h?void 0:h.postalCode)&&void 0!==q?q:"",register:et,errors:el})]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:[(0,s.jsx)(D.Z,{noPlaceholder:!0,type:"select",name:"gender",conditions:{required:"Gender is required."},selectData:z,defaultValue:null!==(L=null==K?void 0:null===(b=K.member)||void 0===b?void 0:b.gender)&&void 0!==L?L:"",register:et,errors:el}),(0,s.jsx)(D.Z,{noPlaceholder:!0,type:"date",name:"birthdate",conditions:{required:"Birthdate is required.",validate:{age:function(e){var t=new Date(e),n=new Date,l=n.getFullYear()-t.getFullYear(),r=n.getMonth()-t.getMonth();return(r<0||0===r&&n.getDate()<t.getDate())&&l--,l>
1=18||"You must be at least 18 years old to join online. Please come visit us in person."}}},defaultValue:null!==(Y=null==K?void 0:null===(g=K.member)||void 0===g?void 0:g.birthdate)&&void 0!==Y?Y:"",register:et,errors:el})]}),(0,s.jsx)("br",{}),(0,s.jsx)("h3",{className:"font-urw-din-condensed text-[32px] font-semibold lg:text-[40px]",children:"BILLING INFORMATION"}),(0,s.jsx)("div",{className:"grid grid-cols-1",children:(0,s.jsx)(D.Z,{noPlaceholder:!0,name:"accountNumber",title:"Card Number",conditions:{required:"Card number is required."},defaultValue:null!==(G=null==K?void 0:null===(y=K.billing)||void 0===y?void 0:y.accountNumber)&&void 0!==G?G:"",register:et,errors:el})}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-3",children:[(0,s.jsx)(D.Z,{noPlaceholder:!0,type:"select",name:"expiresMonth",title:"Expiration Month",conditions:{required:"Expiration month is required."},defaultValue:null!==(R=null==K?void 0:null===(N=K.billing)||void 0===N?void 0:N.expiresMonth)&&void 0!==R?R:"",selectData:H,register:et,errors:el}),(0,s.jsx)(D.Z,{noPlaceholder:!0,type:"select",name:"expiresYear",title:"Expiration Year",conditions:{required:"Expiration year is required."},defaultValue:null!==($=null==K?void 0:null===(w=K.billing)||void 0===w?void 0:w.expiresYear)&&void 0!==$?$:"",selectData:J,register:et,errors:el}),(0,s.jsx)(D.Z,{noPlaceholder:!0,name:"cvvCode",title:"Security Code",conditions:{required:"Security code is required."},defaultValue:null!==(B=null==K?void 0:null===(C=K.billing)||void 0===C?void 0:C.cvvCode)&&void 0!==B?B:"",register:et,errors:el})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"mt-12 flex justify-center md:mt-8",children:(0,s.jsx)(j.Z,{extraClasses:"w-[300px]",type:"submit",text:"continue to review",variant:"red",size:"big"})}),(0,s.jsx)("div",{className:"mt-5 flex justify-center",children:(0,s.jsx)(j.Z,{extraClasses:"w-[300px]",text:"back",variant:"whiteBtnBlackBorder",size:"big",onClick:function(){return X(2)}})})]})]})},K=function(){return(0,s.jsx)("div",{className:"mx-auto mt-12 mb-8 size-16 animate-spin rounded-full border-4 border-solid border-current border-r-transparent align-[-0.125em] first-letter:inline-block motion-reduce:animate-[spin_1.5s_linear_infinite]",role:"status",children:(0,s.jsx)("span",{className:"!absolute !-m-px !h-px !w-px !overflow-hidden !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]",children:"Please wait..."})})},W=[{name:"terms",label:"I Agree to ",href:"/docs/UFC_Gym_Terms_and_Conditions.pdf",linkLabel:"Terms and Conditions",conditions:{required:"This field is required."}},{name:"consent",label:"I Agree to ",href:"/docs/UFC_Gym_Consent_and_Release.pdf",linkLabel:"Member Consent and Release",conditions:{required:"This field is required."}},{name:"hygiene",label:"I Agree to ",href:"/docs/UFC_Gym_Hygiene_Policy.pdf",linkLabel:"Hygiene Policy",conditions:{required:"This field is required."}},],Q=function(e){var t=e.setStep,n=(e.step,e.cart),l=e.location,r=e.selectedOffer,i=e.purchaseStatus,a=e.onSubmitReviewForm,o=(0,v.cI)(),c=o.register,d=o.handleSubmit,u=o.formState.errors,m=(null==l?void 0:l.type)==="UFCFIT"?"UFC FIT":"UFC GYM",f=(null==l?void 0:l.name.includes(null==l?void 0:l.city))?"".concat(null==l?void 0:l.city):"".concat(null==l?void 0:l.name," ").concat(null==l?void 0:l.city),x=function(e){a(e)};return(0,s.jsxs)("div",{className:"container mx-auto grid max-w-4xl grid-cols-1 gap-4 md:grid-cols-2 md:gap-16",children:[(0,s.jsxs)("div",{className:"col-span-full space-y-4 md:col-span-1",children:[(0,s.jsxs)("div",{className:"col-span-full mx-auto max-w-md bg-ufc-gray-246 px-12 py-4 md:col-span-1",children:[(0,s.jsx)("div",{className:"mb-4 font-urw-din-condensed text-[32px] font-medium leading-[1.2] lg:text-3xl",children:"Membership"}),(0,s.jsxs)("div",{className:"font-urw-din-condensed text-[22px] font-light leading-[1.29] lg:text-lg xl:text-[24px]",children:[(0,s.jsx)("div",{children:null==r?void 0:r.name}),(0,s.jsxs)("div",{className:"mt-4",children:[m," ",f]}),(0,s.jsxs)("div",{children:[l.street," ",l.city,", ",l.state," ",l.postalCode]})]})]}),(0,s.jsxs)("div",{className:"col-span-full mx-auto max-w-md bg-ufc-gray-246 px-12 py-4 ",children:[(0,s.jsx)("div",{className:"mb-4 font-urw-din-condensed text-[32px] font-medium leading-[1.2] lg:text-3xl",children:"Personal Info"}),(0,s.jsxs)("div",{className:"font-urw-din-condensed text-[22px] font-light leading-[1.29] lg:text-lg xl:text-[24px]",children:[(0,s.jsxs)("div",{children:[n.member.firstName," ",n.member.lastName]}),(0,s.jsx)("div",{className:"mt-4",children:n.member.email}),(0,s.jsx)("div",{className:"mt-4",children:n.member.phone.replace(/(\d{3})(\d{3})(\d{4})/,"$1-$2-$3")}),(0,s.jsx)("div",{className:"mt-4",children:n.member.street}),(0,s.jsxs)("div",{children:[n.member.city,", ",n.member.state," ",n.member.postalCode]})]})]}),(0,s.jsxs)("div",{className:"col-span-full mx-auto max-w-md bg-ufc-gray-246 px-12 py-4 ",children:[(0,s.jsx)("div",{className:"mb-4 font-urw-din-condensed text-[32px] font-medium leading-[1.2] lg:text-3xl",children:"Billing Info"}),(0,s.jsxs)("div",{className:"font-urw-din-condensed text-[22px] font-light leading-[1.29] lg:text-lg xl:text-[24px]",children:[(0,s.jsxs)("div",{children:["**** **** **** ",n.billing.accountNumber.slice(-4)]}),(0,s.jsxs)("div",{children:["Expires ",n.billing.expiresMonth,"/",n.billing.expiresYear]})]})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(V,{selectedOffer:r}),(0,s.jsx)("div",{className:"col-span-full mx-auto mt-4 max-w-md items-center justify-center md:col-span-1 md:mt-0",children:(0,s.jsxs)("form",{onSubmit:d(x),children:[(0,s.jsx)("div",{className:"my-8 mb-12 space-y-4",children:W.map(function(e,t){return(0,s.jsx)(D.Z,{type:"checkbox",label:e.label?e.label:null,href:e.href?e.href:null,linkLabel:e.linkLabel?e.linkLabel:null,name:e.name,conditions:e.conditions,register:c,errors:u},t)})}),i.loading?(0,s.jsx)(K,{}):(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"mt-5 flex justify-center",children:(0,s.jsx)(j.Z,{extraClasse
1s:"w-[300px]",type:"submit",text:"Pay Now",size:"big",disabled:i.loading})}),(0,s.jsx)("div",{className:"mt-5 flex justify-center",children:(0,s.jsx)(j.Z,{extraClasses:"w-[300px]",text:"Go Back",variant:"whiteBtnBlackBorder",size:"big",onClick:function(){return t(3)}})}),(0,s.jsx)("div",{className:"mx-auto mt-5 text-center text-red-500",children:i.message})]})]})})]})]})},ee=n(8665),et=function(e,t,n){return p.Z.post(e,{clubSlug:t,promoCode:n}).then(function(e){return e.data})},en=function(e){var t=e.location,n=e.showPromoCodeForm,c=e.promoCode,m=(0,d.mr)().leadSource,h=(0,o.useState)(1),v=h[0],b=h[1],g=(0,o.useState)($),y=g[0],j=g[1],N=(0,o.useState)(void 0),w=N[0],C=N[1],S=(0,o.useState)(!1),k=S[0],Z=S[1],F=(0,o.useState)({loading:!1,message:null}),I=F[0],A=F[1],P=(0,f.useRouter)(),T=(void 0===c?null:c)||P.query.promoCode,M=(null==t?void 0:t.type)=="SIGNATURE"||(null==t?void 0:t.type)=="UFCGYM",U=(0,x.ZP)(["https://ufcgym-fitcms.netlify.app/.netlify/functions/offers-abc",t.code,T],et),_=U.data;U.error;var O=(0,u.xX)().executeRecaptcha;(0,o.useEffect)(function(){if(!O){console.log("Execute recaptcha not yet available");return}},[O]);var E,q,L=function(e){C(e),b(2),window.scrollTo(0,0)},D=(E=(0,l.Z)(function(e){var n,l,s,o,c,d,u,f;return(0,a.__generator)(this,function(a){switch(a.label){case 0:if(!O)return console.log("Execute recaptcha not yet available"),[2];return[4,O("prospect_form")];case 1:if(n=a.sent(),k)return[3,5];a.label=2;case 2:var o,x;return a.trys.push([2,4,,5]),(s={clubSlug:(o=l=(0,i.Z)((0,r.Z)({},y),{offer:{clubSlug:t.code,offerInfo:w.info,totalDueToday:w.totalDueToday},member:{firstName:e.firstName,lastName:e.lastName,email:e.email,phone:e.phone.replace(/\D/g,"")}})).offer.clubSlug,firstName:o.member.firstName,lastName:o.member.lastName,email:o.member.email,phone:o.member.phone.replace(/\D/g,""),salesFunnelStageId:2,tags:"checkout:cart",source:{marketingSourceId:m.marketingSourceId,channelSourceId:m.channelSourceId,analytics:m.analytics},recaptcha:{token:"Token!2020",action:"prospect"}}).token=n,[4,p.Z.post("/api/prospect",s)];case 3:return c=a.sent().data.lead.id,j((0,i.Z)((0,r.Z)({},l),{leadId:c})),Z(!0),[3,5];case 4:return d=a.sent(),console.error("onSubmitMemberInfoForm Error",d),u="Unable to submit your information. Please try again.",A({loading:!1,message:u=d.response?(null===(f=d.response.data)||void 0===f?void 0:f.message)||u:d.request?"Unable to connect to the server. Please check your internet connection.":"An unexpected error occurred. Please try again."}),[2];case 5:return b(3),window.scrollTo(0,0),[2]}})}),function(e){return E.apply(this,arguments)}),G=function(e){var t=(0,i.Z)((0,r.Z)({},y),{member:(0,i.Z)((0,r.Z)({},y.member),{street:null==e?void 0:e.street,city:null==e?void 0:e.city,state:null==e?void 0:e.state,postalCode:null==e?void 0:e.postalCode,gender:null==e?void 0:e.gender,birthdate:null==e?void 0:e.birthdate}),billing:{accountNumber:null==e?void 0:e.accountNumber,expiresMonth:+(null==e?void 0:e.expiresMonth),expiresYear:+(null==e?void 0:e.expiresYear),cvvCode:null==e?void 0:e.cvvCode}});j(t),b(4),window.scrollTo(0,0)},B=(q=(0,l.Z)(function(e){var n,l,r,i,s,o,c;return(0,a.__generator)(this,function(e){switch(e.label){case 0:if(!O)return console.log("Execute recaptcha not yet available"),[2];return[4,O("contact_form")];case 1:n=e.sent(),A({loading:!0,message:"Please wait..."}),e.label=2;case 2:var a,d;return e.trys.push([2,4,,5]),(l={leadId:y.leadId,firstName:y.member.firstName,lastName:y.member.lastName,street:y.member.street,city:y.member.city,state:y.member.state,postalCode:y.member.postalCode,email:y.member.email,phone:y.member.phone.replace(/\D/g,""),gender:y.member.gender,birthdate:y.member.birthdate,billing:{accountNumber:y.billing.accountNumber,expiresMonth:y.billing.expiresMonth,expiresYear:y.billing.expiresYear,cvvCode:y.billing.cvvCode,firstName:y.member.firstName,lastName:y.member.lastName,street:y.member.street,city:y.member.city,state:y.member.state,postalCode:y.member.postalCode},salesFunnelStageId:3,tags:"checkout:done",source:{marketingSourceId:m.marketingSourceId,channelSourceId:m.channelSourceId,analytics:m.analytics},clubSlug:y.offer.clubSlug,offer:{system:y.offer.offerInfo.system,planId:y.offer.offerInfo.planId},totalDueToday:y.offer.totalDueToday}).token=n,[4,p.Z.post("/api/membership",l)];case 3:return i=(r=e.sent()).data,200===r.status?((0,ee.f)(null==t?void 0:t.id,null==i?void 0:i.externalId),P.push("/locations/".concat(t.code,"/corp/thanks")).then(function(){return window.scrollTo(0,0)})):A({loading:!1,message:"ERROR: ".concat(r.status," ").concat(i.message||"Unknown error")}),[3,5];case 4:return s=e.sent(),console.error("onSubmitReviewForm Error",s),o="Unable to complete your membership purchase. Please call the club.",A({loading:!1,message:o=s.response?(null===(c=s.response.data)||void 0===c?void 0:c.message)||o:s.request?"Unable to connect to the server. Please check your internet connection.":"An unexpected error occurred. Please call the club."}),[3,5];case 5:return[2]}})}),function(e){return q.apply(this,arguments)}),V=[{id:1,name:"membership",status:1===v?"active":"completed",content:(0,s.jsx)(Y,{setStep:b,step:v,location:t,typeCheck:M,thePromoCode:T,showPromoCodeForm:void 0===n||n,offers:_,onClickOffer:function(e){return L(e)}})},{id:2,name:"info",status:2===v?"active":v>2?"completed":"todo",content:(0,s.jsx)(R,{setStep:b,step:v,cart:y,selectedOffer:w,hasSubmittedCartLead:k,purchaseStatus:I,onSubmitMemberInfoForm:function(e){return D(e)}})},{id:3,name:"billing",status:3===v?"active":v>3?"completed":"todo",content:(0,s.jsx)(X,{setStep:b,cart:y,selectedOffer:w,onSubmitPaymentForm:G})},{id:4,name:"review",status:4===v?"active":v>4?"completed":"todo",content:(0,s.jsx)(Q,{setStep:b,step:v,cart:y,location:t,selectedOffer:w,purchaseStatus:I,onSubmitReviewForm:B})},],z=(null==t?void 0:t.type)==="UFCFIT"?"ufc-blue":"ufc-red";return(0,s.jsxs)("nav",{className:"px-5 py-10 sm:px-10 md:py-14 lg:py-[72px]",children:[(0,s.jsx)("div",{className:"mx-auto max-w-4xl",children:(0,s.jsx)("ol",{className:"flex space-x-8 space-y-0",children:V.map(function(e){return(0,s.jsx)("li",{className:"flex-1",children:(0,s.jsxs)("div",{className:"flex flex-col ".concat("todo"==e.status?"border-gray-200":"border-"+z," border-t-4 py-2 pl-0 md:pb-0 md:pt-4"),children:[(0,s.jsxs)("span",{className:"font-urw-din-condensed text-[13px] font-bold uppercase leading-tight tracking-[1px] ".concat("todo"==e.status?"text-gray-500":"text-"+z),children:["step ",e.id]}),(0,s.jsx)("span",{className:"text-sm font-bold capitalize sm:text-base",children:e.name})]})},e.name)})})}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsx)("div",{className:"mx-auto max-w-[1400px]",children:V[v-1].content})]})},el=!0,er=function(e){var t=e.location,n=(0,d.TL)(),f=(0,o.useState)(!1),x=f[0],p=f[1],h=(0,o.useState)({email:"",code:""}),v=h[0],b=h[1],g=(0,o.useState)(""),y=g[0],j=g[1],N=(0,o.useState)(!1),w=N[0],C=N[1],S=(0,o.useState)(""),k=S[0],Z=S[1];(0,o.useEffect)(function(){n({type:"SET_LOCATION",payload:t})},[]);var F,I=(0,u.xX)().executeRecaptcha;(0,o.useEffect)(function(){if(!I){console.log("Execute recaptcha not yet available");return}},[I]);var A=(F=(0,l.Z)(function(e){var t,n,l,s,o;return(0,a.__generator)(this,function(a){switch(a.label){case 0:if(e.preventDefault(),j(""),C(!0),!I)return console.log("Execute recaptcha not yet available"),C(!1),[2];a.label=1;case 1:return a.trys.push([1,5,6,7]),[4,I("verify_corp_code")];case 2:return t=a.sent(),n=(0,i.Z)((0,r.Z)({},v),{token:t}),[4,fetch("/api/verify-corp-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})];case 3:return[4,(l=a.sent()).json()];case 4:if(s=a.sent(),l.ok)Z(s.membershipCode.promoCode),p(!0);else switch(l.status){case 400:j("Security verification failed. Please refresh the page and try again.");break;case 405:j("Invalid request method. Please refresh the page and try again.");break;case 500:j("A server error occurred. Please try again later.");break;default:j(s.error||"An unexpected error occurred. Please try again.")}return[3,7];case 5:return o=a.sent(),console.error("Error verifying corporate code:",o),j("Unable to connect to the server. Please check your internet connection and try again."),[3,7];case 6:return C(!1),[7];case 7:return[2]}})}),function(e){return F.apply(this,arguments)});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.PB,{title:"Gym Memberships | Train Different | UFC GYM/FIT",description:"UFC GYM/FIT offers gym memberships for individuals, couples and even families. Learn more about our ".concat(t.name," gym membership options, here.")}),x?(0,s.jsx)(en,{location:t,showPromoCodeForm:!1,promoCode:k}):(0,s.jsx)("div",{className:"py-10 md:py-14 lg:py-[72px]",children:(0,s.jsxs)("div",{className:"mx-auto text-center max-w-7xl",children:[(0,s.jsx)(m.Z,{title:"EXCLUSIVE CORPORATE RATES",extra:"mx-auto max-w-[560px] lg:max-w-[800px] my-5",children:"Train Different at UFC GYM ".concat(t.name,". Enter your unique membership code below to verify your account. If you don't have a code, please contact your HR representative.")}),(0,s.jsx)("div",{className:"max-w-md p-6 mx-auto",children:(0,s.jsxs)("form",{onSubmit:A,children:[(0,s.jsx)("div",{className:"mb-4",children:(0,s.jsx)("input",{type:"email",placeholder:"Email Address",className:"w-full p-2 border rounded",value:v.email,onChange:function(e){return b(function(t){return(0,i.Z)((0,r.Z)({},t),{email:e.target.value})})},required:!0})}),(0,s.jsx)("div",{className:"mb-4",children:(0,s.jsx)("input",{type:"text",placeholder:"Corporate Code",className:"w-full p-2 border rounded",value:v.code,onChange:function(e){return b(function(t){return(0,i.Z)((0,r.Z)({},t),{code:e.target.value})})},required:!0})}),(0,s.jsx)("button",{type:"submit",disabled:w,className:"w-full rounded px-4 py-2 text-lg text-white ".concat(w?"cursor-not-allowed bg-ufc-red":"bg-ufc-red hover:bg-ufc-dark-red"),children:w?"Verifying...":"
1Verify Membership Code"}),y&&(0,s.jsx)("div",{className:"mt-4 text-red-500",children:y})]})})]})})]})}},8665:function(e,t,n){"use strict";function l(e,t){e&&t&&fetch("/api/join/ensure-club-account",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({clubNumber:String(e),memberId:String(t)}),keepalive:!0}).catch(function(e){console.error("Club account setup failed to start:",e)})}n.d(t,{f:function(){return l}})},7568:function(e,t,n){"use strict";function l(e,t,n,l,r,i,a){try{var s=e[i](a),o=s.value}catch(c){n(c);return}s.done?t(o):Promise.resolve(o).then(l,r)}function r(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function s(e){l(a,r,i,s,o,"next",e)}function o(e){l(a,r,i,s,o,"throw",e)}s(void 0)})}}n.d(t,{Z:function(){return r}})},9815:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var l=n(943),r=n(3375),i=n(1566);function a(e){return function(e){if(Array.isArray(e))return(0,l.Z)(e)}(e)||(0,r.Z)(e)||(0,i.Z)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},3966:function(e){"use strict";e.exports=JSON.parse('[{"plans":["Access Only Plus","Access Plus"],"name":"Access Plus","sortOrder":1,"features":[{"title":"Amenities","list":["UFC GYM & MyZone App","All Hours Access","Full Strength & Cardio","Full Locker Room Access"]}]},{"plans":["Access"],"name":"Access","sortOrder":1,"features":[{"title":"Amenities","list":["UFC GYM & MyZone App","All Hours Access","Full Strength & Cardio","Full Locker Room Access"]}]},{"plans":["Performance"],"name":"Performance+","sortOrder":2,"features":[{"title":"Amenities","list":["UFC GYM & MyZone App","All Hours Access","Full Strength & Cardio","Full Locker Room Access","Unlimited Group Fitness","Unlimited Boxing & Kickboxing","Unlimited HIIT & Conditioning","Unlimited Guest Passes ($30/mo)","MyZone at Cost ($159)"]}]},{"plans":["Signature"],"name":"Signature","sortOrder":2,"features":[{"title":"Amenities","list":["UFC GYM & MyZone App","All Hours Access","Full Strength & Cardio","Full Locker Room Access","Unlimited Group Fitness","Unlimited Boxing & Kickboxing","Unlimited HIIT & Conditioning","Unlimited Guest Passes ($30/mo)","MyZone at Cost ($159)","Unlimited Kids Club","Unlimited BJJ Classes","90-Day Fight Pass ($40)","BOX.HIIT.LIVE ($15/mo)","All Signature Locations Access"]}]},{"plans":["Elite"],"name":"Elite","sortOrder":3,"features":[{"title":"Amenities","list":["UFC GYM & MyZone App","All Hours Access","Full Strength & Cardio","Full Locker Room Access","Unlimited Group Fitness","Unlimited Boxing & Kickboxing","Unlimited HIIT & Conditioning","Unlimited Guest Passes ($30/mo)","MyZone at Cost ($159)","Unlimited Recovery Services","Unlimited Kids Club","Unlimited BJJ Classes","90-Day Fight Pass ($40)","BOX.HIIT.LIVE ($15/mo)"]}]},{"plans":["Champion VIP"],"name":"Champion VIP","sortOrder":4,"features":[{"title":"Amenities","list":["UFC GYM & MyZone App","All Hours Access","Full Strength & Cardio","Full Locker Room Access","Unlimited Group Fitness","Unlimited Boxing & Kickboxing","Unlimited HIIT & Conditioning","Unlimited Guest Passes ($30/mo)","MyZone at Cost ($159)","Unlimited Recovery Services","Unlimited Kids Club","Unlimited BJJ Classes","90-Day Fight Pass ($40)","BOX.HIIT.LIVE ($15/mo)","All Global Locations Access"]}]}]')}},function(e){e.O(0,[7536,7066,8100,9774,2888,179],function(){return e(e.s=6649)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.