1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,74588,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},176177,(e,t,r)=>{t.exports=e.r(71757)},51210,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=e.r(894796);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=l(e,n)),t&&(s.current=l(t,n))},[e,t])}function l(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},672368,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return i},searchParamsToUrlQuery:function(){return l},urlQueryToSearchParams:function(){return o}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});function l(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function a(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,a(e));else t.set(r,a(n));return t}function i(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},398602,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return o},formatWithValidation:function(){return u},urlObjectKeys:function(){return i}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let l=e.r(744066)._(e.r(672368)),a=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",o=e.hash||"",i=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),i&&"object"==typeof i&&(i=String(l.urlQueryToSearchParams(i)));let c=e.search||i&&`?${i}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||a.test(n))&&!1!==u?(u="//"+(u||""),s&&"/"!==s[0]&&(s="/"+s)):u||(u=""),o&&"#"!==o[0]&&(o="#"+o),c&&"?"!==c[0]&&(c="?"+c),s=s.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${s}${c}${o}`}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return o(e)}},454516,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return g},MiddlewareNotFoundError:function(){return j},MissingStaticPage:function(){return v},NormalizeError:function(){return b},PageNotFoundError:function(){return y},SP:function(){return h},ST:function(){return x},WEB_VITALS:function(){return l},execOnce:function(){return a},getDisplayName:function(){return d},getLocationOrigin:function(){return u},getURL:function(){return c},isAbsoluteUrl:function(){return i},isResSent:function(){return f},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return m},stringifyError:function(){return w}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let l=["CLS","FCP","FID","INP","LCP","TTFB"];function a(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=e=>o.test(e);function u(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=u();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function m(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}
1" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let h="u">typeof performance,x=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class g extends Error{}class b extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class v extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class j extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(e){return JSON.stringify({message:e.message,stack:e.stack})}},90193,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return l}});let n=e.r(454516),s=e.r(579555);function l(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},356346,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},876974,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return g},useLinkStatus:function(){return y}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let l=e.r(744066),a=e.r(177382),o=l._(e.r(894796)),i=e.r(398602),u=e.r(62248),c=e.r(51210),d=e.r(454516),f=e.r(776254);e.r(74588);let m=e.r(693631),p=e.r(90193),h=e.r(942883);function x(e){return"string"==typeof e?e:(0,i.formatUrl)(e)}function g(t){var r;let n,s,l,[i,g]=(0,o.useOptimistic)(m.IDLE_LINK_STATUS),y=(0,o.useRef)(null),{href:v,as:j,children:w,prefetch:N=null,passHref:P,replace:C,shallow:O,scroll:_,onClick:E,onMouseEnter:S,onTouchStart:k,legacyBehavior:T=!1,onNavigate:L,ref:R,unstable_dynamicOnHover:I,...U}=t;n=w,T&&("string"==typeof n||"number"==typeof n)&&(n=(0,a.jsx)("a",{children:n}));let A=o.default.useContext(u.AppRouterContext),M=!1!==N,$=!1!==N?null===(r=N)||"auto"===r?h.FetchStrategy.PPR:h.FetchStrategy.Full:h.FetchStrategy.PPR,{href:F,as:B}=o.default.useMemo(()=>{let e=x(v);return{href:e,as:j?x(j):e}},[v,j]);if(T){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=o.default.Children.only(n)}let z=T?s&&"object"==typeof s&&s.ref:R,D=o.default.useCallback(e=>(null!==A&&(y.current=(0,m.mountLinkInstance)(e,F,A,$,M,g)),()=>{y.current&&((0,m.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,m.unmountPrefetchableInstance)(e)}),[M,F,A,$,g]),K={ref:(0,c.useMergedRef)(D,z),onClick(t){T||"function"!=typeof E||E(t),T&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!A||t.defaultPrevented||function(t,r,n,s,l,a,i){if("u">typeof window){let u,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,p.isLocalURL)(r)){l&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(510626);o.default.startTransition(()=>{d(n||r,l?"replace":"push",a??!0,s.current)})}}(t,F,B,y,C,_,L)},onMouseEnter(e){T||"function"!=typeof S||S(e),T&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),A&&M&&(0,m.onNavigationIntent)(e.currentTarget,!0===I)},onTouchStart:function(e){T||"function"!=typeof k||k(e),T&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),A&&M&&(0,m.onNavigationIntent)(e.currentTarget,!0===I)}};return(0,d.isAbsoluteUrl)(B)?K.href=B:T&&!P&&("a"!==s.type||"href"in s.props)||(K.href=(0,f.addBasePath)(B)),l=T?o.default.cloneElement(s,K):(0,a.jsx)("a",{...U,...
1K,children:n}),(0,a.jsx)(b.Provider,{value:i,children:l})}e.r(356346);let b=(0,o.createContext)(m.IDLE_LINK_STATUS),y=()=>(0,o.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},23750,e=>{"use strict";var t=e.i(177382),r=e.i(420851);let n=e.i(894796).forwardRef(({className:e,label:n,error:s,textarea:l,...a},o)=>{let i="w-full border border-neutral-300 bg-white px-4 text-black outline-none transition focus-visible:ring-2 focus-visible:ring-black/20",u=(0,r.cn)(i,"h-12",s&&"border-red-500 focus-visible:ring-red-500/30",e),c=(0,r.cn)(i,"min-h-[140px] resize-none py-3",s&&"border-red-500 focus-visible:ring-red-500/30",e);return(0,t.jsxs)("div",{className:"w-full",children:[n?(0,t.jsx)("label",{className:"mb-2 block text-xs font-semibold tracking-wider text-neutral-600 uppercase",children:n}):null,l?(0,t.jsx)("textarea",{ref:o,className:c,...a}):(0,t.jsx)("input",{ref:o,className:u,...a}),s?(0,t.jsx)("p",{className:"mt-2 text-sm font-medium text-red-600",children:s}):null]})});n.displayName="Input",e.s(["Input",0,n])},260065,e=>{"use strict";var t=e.i(177382),r=e.i(894796),n=e.i(751683),s=e.i(333341),l=e.i(167881),a=e.i(23750),o=e.i(829615);let i=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function u({open:e,gym:r,onOpenChange:n,onClosed:s}){return e&&r?(0,t.jsx)(c,{gym:r,onOpenChange:n,onClosed:s},r.id):null}function c({gym:e,onOpenChange:u,onClosed:c}){let d,f=(0,s.useTranslations)("vote-modal"),[m,p]=(0,r.useState)(""),[h,x]=(0,r.useState)(""),[g,b]=(0,r.useState)(""),[y,v]=(0,r.useState)("idle"),[j,w]=(0,r.useState)(null),N=[e.cidade,e.estado].filter(Boolean).join(", "),P=(d=e.thumbnail)&&"object"==typeof d&&(!d.mimeType||d.mimeType.startsWith("image/"))&&(d.url||d.thumbnailURL)||null,C=m.trim().length>1&&i.test(h);function O(){u(!1),c()}async function _(){if(C&&"submitting"!==y){v("submitting"),w(null);try{let t=await fetch("/api/top-three-votes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({gym:e.id,name:m.trim(),email:h.trim(),website:g})});if(!t.ok){429===t.status?w("rateLimited"):403===t.status?w((0,o.hasVotingStarted)()?"closed":"notOpen"):w("generic"),v("idle");return}v("success")}catch{w("generic"),v("idle")}}}return(0,t.jsxs)("div",{className:"fixed inset-0 z-100 flex items-center justify-center p-3 sm:p-6",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black/70",onClick:O,role:"button",tabIndex:-1}),(0,t.jsxs)("div",{className:"relative flex max-h-[calc(100vh-1.5rem)] w-full max-w-135 flex-col overflow-hidden bg-white shadow-2xl sm:max-h-[calc(100vh-3rem)]",children:[(0,t.jsxs)("div",{className:"grid h-14 grid-cols-[1fr_auto_1fr] items-center bg-black px-4 text-white sm:h-16 sm:px-6",children:[(0,t.jsx)("div",{}),(0,t.jsx)("div",{className:"relative h-7 w-56 sm:h-8 sm:w-64",children:(0,t.jsx)(n.default,{src:"/logos/ultimateupgrade.svg",alt:"Ultimate Gym Upgrade",fill:!0,className:"object-contain",priority:!0})}),(0,t.jsx)(l.Button,{variant:"outline",className:"ml-auto h-9 px-4",onClick:O,children:f("exit")})]}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto px-6 py-8 sm:px-10 sm:py-10",children:"success"===y?(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-red-600 uppercase",children:f("eyebrow")}),(0,t.jsx)("h2",{className:"mt-3 text-2xl font-extrabold text-black uppercase sm:text-3xl",children:f("thanksTitle")}),(0,t.jsx)("p",{className:"text-muted mt-3",children:f("thanksSubtitle",{name:e.name})}),(0,t.jsx)(l.Button,{className:"mt-8 min-w-35",onClick:O,children:f("done")})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[P?(0,t.jsx)("div",{className:"relative size-16 shrink-0 overflow-hidden bg-[#24242a]",children:(0,t.jsx)(n.default,{src:P,alt:e.name,fill:!0,unoptimized:!0,className:"object-cover"})}):null,(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-red-600 uppercase",children:f("eyebrow")}),(0,t.jsx)("h2",{className:"mt-1 text-xl font-extrabold text-black uppercase sm:text-2xl",children:e.name}),N?(0,t.jsx)("p",{className:"text-muted mt-1 text-sm uppercase",children:N}):null]})]}),(0,t.jsx)("p",{className:"text-muted mt-6",children:f("subtitle")}),(0,t.jsxs)("div",{className:"mt-6 space-y-4",children:[(0,t.jsx)(a.Input,{label:f("nameLabel"),placeholder:f("namePlaceholder"),value:m,onChange:e=>p(e.target.value),disabled:"submitting"===y}),(0,t.jsx)(a.Input,{type:"email",label:f("emailLabel"),placeholder:f("emailPlaceholder"),value:h,onChange:e=>x(e.target.value),disabled:"submitting"===y}),(0,t.jsxs)("div",{className:"sr-only","aria-hidden":"true",children:[(0,t.jsx)("label",{htmlFor:"vote-website",children:"Leave this field empty"}),(0,t.jsx)("input",{id:"vote-website",name:"website",type:"text",tabIndex:-1,autoComplete:"off",value:g,onChange:e=>b(e.target.value)})]}),j?(0,t.jsx)("p",{className:"text-sm font-medium text-red-600",children:f(`errors.${j}`)}):null]}),(0,t.jsx)(l.Button,{className:"mt-8 w-full",onClick:_,disabled:!C||"submitting"===y,children:f("submitting"===y?"submitting":"submit")})]})})]})]})}let d=(0,r.createContext)(null);function f({children:e}){let[n,s]=(0,r.useState)(!1),[l,a]=(0,r.useState)(null),o=(0,r.useMemo)(()=>({open:e=>{a(e),s(!0)},close:()=>s(!1)}),[]);return(0,r.useEffect)(()=>
1{if(!n)return;let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[n]),(0,t.jsxs)(d.Provider,{value:o,children:[e,(0,t.jsx)(u,{open:n,gym:l,onOpenChange:s,onClosed:()=>a(null)})]})}function m(){let e=(0,r.useContext)(d);if(!e)throw Error("useVoteLauncher must be used within VoteLauncherProvider");return e}e.s(["VoteLauncherProvider",()=>f,"useVoteLauncher",()=>m],260065)},849415,e=>{"use strict";var t=e.i(177382),r=e.i(456904),n=e.i(726940);function s(){let e=(0,n.useLocale)(),s=(0,r.useRouter)(),a=(0,r.usePathname)(),o=t=>{t!==e&&(s.replace(a,{locale:t}),s.refresh())};return(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("span",{className:"text-muted text-sm font-semibold",children:"LANGUAGE"}),(0,t.jsxs)("div",{className:"border-muted inline-flex border bg-black/20",children:[(0,t.jsx)(l,{active:"pt"===e,onClick:()=>o("pt"),children:"PT"}),(0,t.jsx)(l,{active:"en"===e,onClick:()=>o("en"),children:"EN"})]})]})}function l({active:e,onClick:r,children:n}){return(0,t.jsx)("button",{type:"button",onClick:r,"aria-pressed":e,className:`px-3 py-1 text-sm font-semibold transition ${e?"bg-white text-black":"bg-transparent text-white/70 hover:bg-white/10"}`,children:n})}e.s(["default",()=>s])},220770,e=>{"use strict";var t=e.i(177382),r=e.i(751683),n=e.i(333341),s=e.i(456904);function l(){let e=(0,n.useTranslations)("footer");return(0,t.jsx)("footer",{className:"bg-base px-4 pt-16 pb-24 sm:px-6 md:px-12 md:pt-24 md:pb-48",children:(0,t.jsxs)("div",{className:"mx-auto flex w-full max-w-7xl flex-col items-center gap-12 md:flex-row md:items-start md:justify-between md:gap-16",children:[(0,t.jsxs)("div",{className:"flex items-center gap-8 sm:gap-12 md:items-start",children:[(0,t.jsx)(r.default,{src:"/logos/ufclogo.svg",alt:"UFC Logo",width:180,height:90,className:"h-auto w-35 sm:w-45"}),(0,t.jsx)(r.default,{src:"/logos/alltroo.webp",alt:"Alltroo Logo",width:180,height:90,className:"h-auto w-35 sm:w-45"})]}),(0,t.jsxs)("div",{className:"grid w-full max-w-md grid-cols-1 gap-10 sm:max-w-lg sm:grid-cols-2 sm:gap-x-16 md:w-auto md:max-w-none md:gap-x-24",children:[(0,t.jsx)(a,{title:e("support.title"),items:[{label:e("support.gyms"),href:"/gyms"},{label:e("support.documentation"),href:"/rules"}]}),(0,t.jsx)(a,{title:e("legal.title"),items:[{label:e("legal.terms"),href:"https://www.ufc.com/terms",target:"_blank"},{label:e("legal.privacy"),href:"https://www.ufc.com/privacy-policy",target:"_blank"}]})]})]})})}function a({title:e,items:r}){return(0,t.jsxs)("div",{className:"space-y-4 text-center sm:text-left",children:[(0,t.jsx)("h3",{className:"text-2xl font-semibold text-white uppercase",children:e}),(0,t.jsx)("div",{className:"text-muted flex flex-col gap-2 text-lg",children:r.map((e,r)=>(0,t.jsx)(s.Link,{href:e.href,className:"transition-colors duration-150 hover:text-white/70",target:e.target,children:e.label},r))})]})}e.s(["Footer",()=>l])},784832,e=>{"use strict";var t=e.i(726940),r=e.i(177382);function n({locale:e,...n}){if(!e)throw Error(void 0);return(0,r.jsx)(t.IntlProvider,{locale:e,...n})}e.s(["default",()=>n])}]);
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.