PageSourceSearch

https://matchabit.com/_next/static/chunks/3cihchiqypyz3.js

js matchabit.com collected 2026-10-02 16:03:04 UTC 27,506 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,75254,e=>{"use strict";var t=e.i(71645);let r=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),a=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let n=(0,t.forwardRef)(({color:e="currentColor",size:a=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:s="",children:o,iconNode:c,...u},d)=>(0,t.createElement)("svg",{ref:d,...l,width:a,height:a,stroke:e,strokeWidth:i?24*Number(n)/Number(a):n,className:r("lucide",s),...!o&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(u)&&{"aria-hidden":"true"},...u},[...c.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(o)?o:[o]]));e.s(["default",0,(e,l)=>{let i=(0,t.forwardRef)(({className:i,...s},o)=>(0,t.createElement)(n,{ref:o,iconNode:l,className:r(`lucide-${a(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...s}));return i.displayName=a(e),i}],75254)},7486,e=>{"use strict";let t=(0,e.i(75254).default)("building-2",[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]]);e.s(["Building2",0,t],7486)},70756,e=>{"use strict";let t=(0,e.i(75254).default)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);e.s(["Lock",0,t],70756)},81418,60298,e=>{"use strict";let t=(0,e.i(75254).default)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["ShieldCheck",0,t],81418);let r="0x4AAAAAADEheNzd90r7d60u".trim(),a=null,l=async e=>{await new Promise(t=>setTimeout(t,e))},n=async()=>{let e=Date.now();for(;Date.now()-e<5e3;){let e=window.turnstile;if(e&&"function"==typeof e.render&&"function"==typeof e.execute)return e;await l(100)}return null},i=async e=>{let t,a,l;if(!r||"u"<typeof document)return null;let i=await n();if(!i||!document.body)return null;let s=((t=document.createElement("div")).style.position="fixed",t.style.inset="0",t.style.zIndex="2147483647",t.style.background="rgba(2, 6, 23, 0.56)",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.padding="16px",(a=document.createElement("div")).style.width="100%",a.style.maxWidth="420px",a.style.background="#ffffff",a.style.borderRadius="12px",a.style.border="1px solid #e2e8f0",a.style.boxShadow="0 22px 55px rgba(15, 23, 42, 0.24)",a.style.padding="16px",(l=document.createElement("div")).style.width="100%",l.style.minHeight="72px",l.style.display="flex",l.style.alignItems="center",l.style.justifyContent="center",a.appendChild(l),t.appendChild(a),document.body.appendChild(t),{container:l,cleanup:()=>{t.parentNode&&t.parentNode.removeChild(t)}});return new Promise(t=>{let a=null,l=!1,n=!1,o=!1,c=e=>{if(!l){if(l=!0,clearTimeout(d),null!==a)try{i.remove(a)}catch{}s.cleanup(),t(("string"==typeof e?e.trim():"")||null)}},u=()=>{if(null===a||"function"!=typeof i.reset)return!1;try{return i.reset(a),i.execute(a),!0}catch{return!1}},d=setTimeout(()=>c(null),12e4);try{a=i.render(s.container,{sitekey:r,size:"flexible",appearance:"always",execution:"execute",action:e.trim().toLowerCase().replace(/[^a-z0-9_-]/g,"_").slice(0,32)||"auth",callback:e=>c(e),"error-callback":()=>{!n&&(n=!0,u())||c(null)},"expired-callback":()=>{!o&&(o=!0,u())||c(null)}}),i.execute(a)}catch{c(null)}})},s=async e=>!r||"u"<typeof document?null:a||(a=i(e).finally(()=>{a=null})),o=async e=>{let t=await s(e);
1return t?{"x-turnstile-token":t}:{}};e.s(["resolveTurnstileHeaders",0,o],60298)},8341,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={cancelIdleCallback:function(){return i},requestIdleCallback:function(){return n}};for(var l in a)Object.defineProperty(r,l,{enumerable:!0,get:a[l]});let n="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},i="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("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)},19083,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={ESCAPE_REGEX:function(){return i},htmlEscapeAttributeString:function(){return u},htmlEscapeJsonString:function(){return c}};for(var l in a)Object.defineProperty(r,l,{enumerable:!0,get:a[l]});let n={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},i=/[&><\u2028\u2029]/g,s={"&":"&amp;",'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;"},o=/[&"'<>]/g;function c(e){return e.replace(i,e=>n[e])}function u(e){return e.replace(o,e=>s[e])}},79520,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={default:function(){return w},handleClientScriptLoad:function(){return b},initScriptLoader:function(){return y}};for(var l in a)Object.defineProperty(r,l,{enumerable:!0,get:a[l]});let n=e.r(55682),i=e.r(90809),s=e.r(43476),o=n._(e.r(74080)),c=i._(e.r(71645)),u=e.r(42732),d=e.r(22737),g=e.r(8341),m=e.r(19083),p=new Map,h=new Set,f=e=>{let{src:t,id:r,onLoad:a=()=>{},onReady:l=null,dangerouslySetInnerHTML:n,children:i="",strategy:s="afterInteractive",onError:c,stylesheets:u}=e,g=r||t;if(g&&h.has(g))return;if(p.has(t)){h.add(g),p.get(t).then(a,c);return}let m=()=>{l&&l(),h.add(g)},f=document.createElement("script"),b=new Promise((e,t)=>{f.addEventListener("load",function(t){e(),a&&a.call(this,t),m()}),f.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});n?(f.innerHTML=n.__html||"",m()):i?(f.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):"",m()):t&&(f.src=t,p.set(t,b)),(0,d.setAttributesFromProps)(f,e),"w
1orker"===s&&f.setAttribute("type","text/partytown"),f.setAttribute("data-nscript",s),u&&(e=>{if(o.default.preinit)return e.forEach(e=>{o.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(u),document.body.appendChild(f)};function b(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,g.requestIdleCallback)(()=>f(e))}):f(e)}function y(e){e.forEach(b),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");h.add(t)})}function x(e){let{id:t,src:r="",onLoad:a=()=>{},onReady:l=null,strategy:n="afterInteractive",onError:i,stylesheets:d,...p}=e,{updateScripts:b,scripts:y,getIsSsr:x,appDir:w,nonce:v}=(0,c.useContext)(u.HeadManagerContext);v=p.nonce||v;let _=(0,c.useRef)(!1);(0,c.useEffect)(()=>{let e=t||r;_.current||(l&&e&&h.has(e)&&l(),_.current=!0)},[l,t,r]);let j=(0,c.useRef)(!1);if((0,c.useEffect)(()=>{if(!j.current){if("afterInteractive"===n)f(e);else"lazyOnload"===n&&("complete"===document.readyState?(0,g.requestIdleCallback)(()=>f(e)):window.addEventListener("load",()=>{(0,g.requestIdleCallback)(()=>f(e))}));j.current=!0}},[e,n]),("beforeInteractive"===n||"worker"===n)&&(b?(y[n]=(y[n]||[]).concat([{id:t,src:r,onLoad:a,onReady:l,onError:i,...p,nonce:v}]),b(y)):x&&x()?h.add(t||r):x&&!x()&&f({...e,nonce:v})),w){if(d&&d.forEach(e=>{o.default.preinit(e,{as:"style"})}),"beforeInteractive"===n)if(!r)return p.dangerouslySetInnerHTML&&(p.children=p.dangerouslySetInnerHTML.__html,delete p.dangerouslySetInnerHTML),(0,s.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,m.htmlEscapeJsonString)(JSON.stringify([0,{...p,id:t}]))})`}});else return o.default.preload(r,p.integrity?{as:"script",integrity:p.integrity,nonce:v,crossOrigin:p.crossOrigin}:{as:"script",nonce:v,crossOrigin:p.crossOrigin}),(0,s.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,m.htmlEscapeJsonString)(JSON.stringify([r,{...p,id:t}]))})`}});"afterInteractive"===n&&r&&o.default.preload(r,p.integrity?{as:"script",integrity:p.integrity,nonce:v,crossOrigin:p.crossOrigin}:{as:"script",nonce:v,crossOrigin:p.crossOrigin})}return null}Object.defineProperty(x,"__nextScript",{value:!0});let w=x;("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)},24055,e=>{"use strict";var t=e.i(47167),r=e.i(43476),a=e.i(71645),l=e.i(75254);let n=(0,l.default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);var i=e.i(7486);let s=(0,l.default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),o=(0,l.default)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);var c=e.i(70756);let u=(0,l.default)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]),d=(0,l.default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]),g=(0,l.default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);var m=e.i(81418),p=e.i(60298);
1class h extends Error{status;translationKey;constructor(e,t,r){super(t),this.name="ApiResponseError",this.status=e,this.translationKey=r}}let f=e=>e instanceof h&&403===e.status&&(!e.translationKey||"errors.general.forbidden"===e.translationKey),b=e=>!e||0===Object.keys(e).length,y=async e=>{e.onTurnstileStart?.();try{let t=await e.resolveTurnstileHeaders(e.turnstileAction);try{return await e.postJson(e.path,e.body,{headers:{...e.headers||{},...t}})}catch(r){if(!f(r))throw r;let t=await e.resolveTurnstileHeaders(e.turnstileAction);if(b(t))throw Error(e.turnstileRequiredMessage||"");try{return await e.postJson(e.path,e.body,{headers:{...e.headers||{},...t}})}catch(t){if(f(t)&&e.turnstileRequiredMessage)throw Error(e.turnstileRequiredMessage);throw t}}}finally{e.onTurnstileEnd?.()}},x=()=>{let e=window.location.hostname.toLowerCase();return"localhost"===e||"127.0.0.1"===e?"http://localhost:3001/api":"/api"},w=async(e,t)=>{try{let t=await e.json();if("string"==typeof t&&t.trim())return{message:t.trim()};if(t&&"object"==typeof t){let e="string"==typeof t.translationKey&&t.translationKey.trim()?t.translationKey.trim():void 0;if("string"==typeof t.error&&t.error.trim())return{message:t.error.trim(),translationKey:e};if("string"==typeof t.message&&t.message.trim())return{message:t.message.trim(),translationKey:e}}}catch{}return{message:t}},v=e=>e.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "),_=async(e,t,r)=>{let a=await fetch(`${x()}${e}`,{method:"POST",credentials:"include",headers:{"content-type":"application/json",...r?.headers||{}},body:JSON.stringify(t)});if(!a.ok){let{message:e,translationKey:t}=await w(a,"");throw new h(a.status,e,t)}return await a.json()},j=async e=>y({...e,postJson:_,resolveTurnstileHeaders:p.resolveTurnstileHeaders}),k=async e=>{let t=await fetch(`${x()}${e}`,{method:"GET",credentials:"include",headers:{accept:"application/json"}});if(!t.ok){let{message:e}=await w(t,"");throw Error(e)}return await t.json()};e.s(["default",0,function({copy:e}){let[l,h]=(0,a.useState)("loading"),[f,y]=(0,a.useState)(""),[x,w]=(0,a.useState)(""),[N,S]=(0,a.useState)(!1),[C,E]=(0,a.useState)(""),[z,M]=(0,a.useState)(null),[A,O]=(0,a.useState)([]),[T,I]=(0,a.useState)([]),[L,$]=(0,a.useState)(null),[q,R]=(0,a.useState)(null),[P,H]=(0,a.useState)(null),[D,K]=(0,a.useState)(!1),[J,U]=(0,a.useState)(!1),[B,V]=(0,a.useState)(!1),[W,F]=(0,a.useState)(null),[G,X]=(0,a.useState)(null),Z=e.security_checking?.trim()||"Running security checks...",Q=(0,a.useMemo)(()=>{let e=new URLSearchParams(window.location.search).get("organization"),t=e?.trim().toLowerCase()||"";return/^[a-z0-9]{3,63}$/.test(t)?t:null},[]),Y=A.length+T.length===1,ee="organization"===P?"Enter the 5-digit code sent to the active organization owner emails.":e.otp_help,et=e=>{if(!e)return null;let t="string"==typeof e.name?e.name.trim():"";if(t.length>0)return t;let r="string"==typeof e.email?e.email.trim():"";if(0===r.length)return null;let a=r.split("@")[0]?.trim()??"";return a.length>0?a:null},er=e=>Q?[...e].sort((e,t)=>{let r=e.slug.toLowerCase()===Q;return r===(t.slug.toLowerCase()===Q)?0:r?-1:1}):e;(0,a.useEffect)(()=>{let e=!0;return(async()=>{try{let t=await k("/club-auth/global/chooser");if(!e)return;O(Array.isArray(t.clubs)?t.clubs:[]),I(er(Array.isArray(t.organizations)?t.organizations:[])),X(et(t.principal)),h("clubs")}catch{if(!e)return;h("login")}})(),()=>{e=!1}},[Q]);let ea=(0,a.useMemo)(()=>/^\d{5}$/.test(C.trim()),[C]),el=e=>{let t,r;h("redirecting"),window.location.assign((t=window.location.hostname.toLowerCase(),r=window.location.protocol,"localhost"===t||"127.0.0.1"===t?`${r}//${t}:5174/c/${e}/club`:"prelive.matchabit.com"===t?`${window.location.origin}/c/${e}/club`:`https://${e}.matchabit.com/club`))},en=e=>{h("redirecting"),window.location.assign((e=>{let r=window.location.hostname.toLowerCase();if("localhost"===r||"127.0.0.1"===r)return`${window.location.protocol}//${r}:5174/organization`;if("prelive.matchabit.com"===r)return`${window.location.origin}/o/${e}/organization`;let a=t.default.env.NEXT_PUBLIC_LIVE_ROOT_DOMAIN||"matchabit.com";return`${window.location.protocol}//${e}.${a}/organization`})(e))},ei=async t=>{if(t.preventDefault(),!D){K(!0),F(null);
1try{let t=await j({path:"/club-auth/global/login",body:{email:f.trim(),password:x},turnstileAction:"club_global_login",turnstileRequiredMessage:e.error_connection,onTurnstileStart:()=>U(!0),onTurnstileEnd:()=>U(!1)});O(Array.isArray(t.clubs)?t.clubs:[]),I(er(Array.isArray(t.organizations)?t.organizations:[])),X(et(t.principal)),M(null),E(""),$(null),R(null),H(null),h("clubs")}catch(t){F((t instanceof Error&&t.message?t.message:e.error_connection)||e.error_connection)}finally{U(!1),K(!1)}}},es=async t=>{if(!D){K(!0),F(null),R(t),$(null);try{let r=await j({path:"/club-auth/global/select-organization",body:{organizationId:t.id},turnstileAction:"organization_global_select",turnstileRequiredMessage:e.error_connection,onTurnstileStart:()=>U(!0),onTurnstileEnd:()=>U(!1)});if(r.otpRequired){M(r.challengeId),H("organization"),E(""),h("otp");return}let a=r.principal?.activeOrganizationSlug&&r.principal.activeOrganizationSlug.trim().length>0?r.principal.activeOrganizationSlug.trim():t.slug;en(a)}catch(t){F((t instanceof Error&&t.message?t.message:e.error_generic)||e.error_generic)}finally{U(!1),K(!1)}}},eo=async t=>{if(!D){K(!0),F(null),$(t),R(null),H(null);try{let r=await j({path:"/club-auth/global/select-club",body:{clubId:t.id},turnstileAction:"club_global_select_club",turnstileRequiredMessage:e.error_connection,onTurnstileStart:()=>U(!0),onTurnstileEnd:()=>U(!1)});if(r.otpRequired){M(r.challengeId),H("club"),E(""),h("otp");return}let a=r.principal?.activeClubSlug&&r.principal.activeClubSlug.trim().length>0?r.principal.activeClubSlug.trim():t.slug;el(a)}catch(t){F((t instanceof Error&&t.message?t.message:e.error_generic)||e.error_generic)}finally{U(!1),K(!1)}}},ec=async t=>{if(t.preventDefault(),!D&&z&&ea){K(!0),F(null);try{let t="organization"===P,r=await j({path:t?"/club-auth/global/select-organization/verify-otp":"/club-auth/global/select-club/verify-otp",body:{challengeId:z,code:C.trim()},turnstileAction:t?"organization_global_select_otp":"club_global_select_club_otp",turnstileRequiredMessage:e.error_connection,onTurnstileStart:()=>U(!0),onTurnstileEnd:()=>U(!1)});if(t){let t=r.principal?.activeOrganizationSlug&&r.principal.activeOrganizationSlug.trim().length>0?r.principal.activeOrganizationSlug.trim():q?.slug||null;if(!t)throw Error(e.error_generic);en(t);return}let a=r.principal?.activeClubSlug&&r.principal.activeClubSlug.trim().length>0?r.principal.activeClubSlug.trim():L?.slug||null;if(!a)throw Error(e.error_generic);el(a)}catch(t){F((t instanceof Error&&t.message?t.message:e.error_generic)||e.error_generic)}finally{U(!1),K(!1)}}},eu=async()=>{if(z&&!B){V(!0),F(null);try{let t="organization"===P,r=await (0,p.resolveTurnstileHeaders)(t?"organization_global_resend_otp":"club_global_resend_otp");if(b(r))throw Error(e.error_connection);await _(t?"/club-auth/global/select-organization/resend-otp":"/club-auth/global/select-club/resend-otp",{challengeId:z},{headers:r})}catch(t){F((t instanceof Error&&t.message?t.message:e.error_generic)||e.error_generic)}finally{V(!1)}}},ed=async()=>{if(!D&&!B){K(!0),F(null);try{await j({path:"/club-auth/global/logout",body:{},turnstileAction:"club_global_logout",turnstileRequiredMessage:e.error_connection,onTurnstileStart:()=>U(!0),onTurnstileEnd:()=>U(!1)}),h("login"),y(""),w(""),S(!1),E(""),M(null),O([]),I([]),$(null),R(null),H(null),X(null)}catch(t){F((t instanceof Error&&t.message?t.message:e.error_connection)||e.error_connection)}finally{K(!1)}}};return(0,r.jsxs)("main",{className:"relative min-h-screen overflow-hidden px-4 py-8",children:[(0,r.jsxs)("div",{className:"absolute inset-0",children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-cover bg-center bg-no-repeat",style:{backgroundImage:"image-set(url('/img_court_background.webp') type('image/webp'), url('/img_court_background.jpeg') type('image/jpeg'))"}}),(0,r.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-slate-950/70 via-slate-900/55 to-blue-900/45"})]}),(0,r.jsx)("div",{className:"relative z-10 flex min-h-[calc(100vh-4rem)] items-center justify-center",children:(0,r.jsxs)("div",{className:`w-full overflow-hidden rounded-2xl border border-gray-100 bg-white/95 shadow-2xl backdrop-blur-sm ${"clubs"===l?"max-w-md md:max-w-3xl":"max-w-md"}`,children:[(0,r.jsx)("div",{className:"bg-gradient-to-br from-gray-50 to-gray-100 px-8 pb-4 pt-6 text-center",children:(0,r.jsx)("img",{src:"/new_logo_with_name.svg",alt:e.title,className:"mx-auto h-9 w-auto sm:h-11"})}),(0,r.jsx)("div",{className:"border-b border-gray-200 bg-gradient-to-br from-gray-50 to-gray-100 px-8 pb-10 pt-10 text-center",children:"clubs"===l?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h1",{className:"break-words text-3xl font-black tracking-tight text-gray-900",children:(()=>
1{if(G){let t;return(t=e.choose_welcome?.trim()||"Welcome {{name}}").includes("{{name}}")?t.replace("{{name}}",G):`${t} ${G}`}let t=e.choose_welcome?.trim()||"";if(t.includes("{{name}}")){let e=t.replace("{{name}}","").trim();if(e.length>0)return e}return t||e.choose_title})()}),(0,r.jsx)("p",{className:"mt-2 text-sm text-gray-600",children:e.choose_subtitle})]}):"otp"===l?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.2em] text-gray-500",children:e.title}),(0,r.jsx)("h1",{className:"mt-3 break-words text-3xl font-black tracking-tight text-gray-900",children:e.otp_title}),(0,r.jsx)("p",{className:"mt-2 text-sm text-gray-600",children:ee})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h1",{className:"break-words text-3xl font-black tracking-tight text-gray-900",children:e.title}),(0,r.jsx)("p",{className:"mt-3 text-sm text-gray-600",children:e.subtitle})]})}),(0,r.jsxs)("div",{className:"px-8 py-8",children:[W?(0,r.jsxs)("div",{className:"mb-6 flex items-center gap-2 rounded-lg border-l-4 border-red-500 bg-red-50 px-4 py-3 text-red-700",children:[(0,r.jsx)(n,{size:18}),(0,r.jsx)("span",{className:"text-sm font-medium",children:W})]}):null,"loading"===l?(0,r.jsx)("p",{className:"text-sm text-gray-600",children:e.loading}):null,"redirecting"===l?(0,r.jsx)("p",{className:"text-sm text-gray-600",children:e.redirecting}):null,"login"===l?(0,r.jsxs)("form",{className:"space-y-6",onSubmit:ei,children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("label",{className:"flex items-center gap-2 text-sm font-semibold text-gray-700",children:[(0,r.jsx)(d,{size:16,className:"text-gray-500"}),e.email_label]}),(0,r.jsx)("input",{type:"email",value:f,onChange:e=>y(e.target.value),required:!0,className:"w-full rounded-xl border-2 border-gray-200 bg-gray-50 px-4 py-3 transition-all hover:bg-white focus:border-blue-500 focus:ring-2 focus:ring-blue-500",placeholder:e.email_placeholder})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("label",{className:"flex items-center gap-2 text-sm font-semibold text-gray-700",children:[(0,r.jsx)(c.Lock,{size:16,className:"text-gray-500"}),e.password_label]}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("input",{type:N?"text":"password",value:x,onChange:e=>w(e.target.value),required:!0,className:"w-full rounded-xl border-2 border-gray-200 bg-gray-50 px-4 py-3 pr-12 transition-all hover:bg-white focus:border-blue-500 focus:ring-2 focus:ring-blue-500",placeholder:e.password_placeholder}),(0,r.jsx)("button",{type:"button",onClick:()=>S(e=>!e),className:"absolute inset-y-0 right-3 inline-flex items-center text-gray-500 hover:text-gray-700","aria-label":e.password_label,title:e.password_label,children:N?(0,r.jsx)(o,{size:18}):(0,r.jsx)(s,{size:18})})]})]}),(0,r.jsx)("button",{type:"submit",disabled:D,className:"flex w-full items-center justify-center gap-2 rounded-xl bg-gradient-to-r from-blue-600 to-indigo-600 px-4 py-3 font-semibold text-white shadow-lg transition-all hover:from-blue-700 hover:to-indigo-700 disabled:cursor-not-allowed disabled:opacity-50",children:D?J?Z:e.logging_in:e.login_button})]}):null,"clubs"===l&&D&&J?(0,r.jsx)("p",{className:"mb-4 text-sm font-medium text-blue-700",children:Z}):null,"clubs"===l?A.length+T.length===0?(0,r.jsx)("div",{className:"rounded-xl border border-gray-200 bg-gray-50 px-4 py-3 text-sm text-gray-600",children:e.no_clubs}):(0,r.jsxs)("div",{className:`grid gap-3 ${Y?"mx-auto max-w-md grid-cols-1":"md:grid-cols-2"}`,children:[A.map(t=>(0,r.jsxs)("button",{type:"button",onClick:()=>eo(t),disabled:D,className:"overflow-hidden rounded-xl border-2 border-gray-200 bg-white text-left transition hover:border-blue-300 hover:shadow-md disabled:cursor-not-allowed disabled:opacity-70",children:[t.coverImage?(0,r.jsx)("img",{src:t.coverImage,alt:`${e.club_cover_alt}: ${t.name}`,className:"h-28 w-full object-cover"}):(0,r.jsx)("div",{className:"flex h-28 items-center justify-center bg-gray-100 px-4 text-sm font-medium text-gray-600",children:t.name}),(0,r.jsx)("div",{className:"px-4 py-3",children:(0,r.jsxs)("p",{className:"flex flex-wrap items-baseline gap-1 text-gray-900",children:[(0,r.jsx)("span",{className:"text-sm font-bold",children:t.name}),(0,r.jsxs)("span",{className:"text-xs font-normal text-gray-500",children:["| ",v(t.role)]})]})})]},t.id)),T.map(e=>(0,r.jsxs)("button",{type:"button",onClick:()=>es(e),disabled:D,className:"overflow-hidden rounded-xl border-2 border-gray-200 bg-white text-left transition hover:border-emerald-300 hover:shadow-md disabled:cursor-not-allowed disabled:opacity-70",children:[(0,r.jsx)("div",{className:"flex h-28 items-center justify-center bg-emerald-50",children:(0,r.jsx)(i.Building2,{size:38,className:"text-emerald-700"})}),(0,r.jsxs)("div",{className:"px-4 py-3",children:[(0,r.jsx)("p",{className:"text-sm font-bold text-gray-900",children:e.name}),(0,r.jsxs)("p",{className:"mt-1 text-xs text-gray-500",children:["Organization | ",v(e.role)]})]})]},e.id))]}):null,"clubs"===l?(0,r.jsx)("div",{className:"mt-5 flex justify-end",children:(0,r.jsxs)("button",{type:"button",onClick:ed,disabled:D,className:"group inline-flex items-center gap-3 rounded-xl border border-transparent px-3 py-2 text-red-600 transition-all duration-200 hover:scale-[1.01] hover:border-red-200 hover:bg-red-50 hover:shadow-md disabled:cursor-not-allowed disabled:opacity-50",children:[(0,r.jsx)("span",{className:"rounded-lg bg-red-100 p-2 transition-all duration-200 group-hover:bg-red-200",children:(0,r.jsx)(u,{size:16,className:"text-red-600 transition-colors duration-200 group-hover:text-red-700"})}),(0,r.jsx)("span",{className:"text-sm font-semibold",children:e.logout_button||"Log out"})]})}):null,"otp"===l?(0,r.jsxs)("form",{className:"space-y-6",onSubmit:ec,children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("label",{className:"flex items-center gap-2 text-sm font-semibold text-gray-700",children:[(0,r.jsx)(m.ShieldCheck,{size:16,className:"text-gray-500"}),e.otp_label]}),(0,r.jsx)("input",{type:"text",inputMode:"numeric",pattern:"[0-9]{5}",maxLength:5,value:C,onChange:e=>E(e.target.value.replace(/\D/g,"").slice(0,5)),required:!0,className:"w-full rounded-xl border-2 border-gray-200 bg-gray-50 px-4 py-3 tracking-[0.35em] transition-all hover:bg-white focus:border-blue-500 focus:ring-2 focus:ring-blue-500",placeholder:e.otp_placeholder})]}),(0,r.jsx)("button",{type:"submit",disabled:D||!ea,className:"flex w-full items-center justify-center gap-2 rounded-xl bg-gradient-to-r from-blue-600 to-indigo-600 px-4 py-3 font-semibold text-white shadow-lg transition-all hover:from-blue-700 hover:to-indigo-700 disabled:cursor-not-allowed disabled:opacity-50",children:D&&J?Z:e.verify_button}),(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2 text-xs",children:[(0,r.jsx)("button",{type:"button",onClick:()=>{h("clubs"),M(null),E(""),H(null)},className:"font-medium text-gray-600 hover:text-gray-900",children:e.back_to_clubs}),(0,r.jsx)("button",{type:"button",onClick:()=>{h("login"),M(null),E(""),H(null)},className:"font-medium text-gray-600 hover:text-gray-900",children:e.back_to_login}),(0,r.jsxs)("button",{type:"button",onClick:eu,disabled:B,className:"inline-flex items-center gap-1 font-medium text-blue-700 hover:text-blue-900 disabled:cursor-not-allowed disabled:opacity-50",children:[B?(0,r.jsx)(g,{size:14,className:"animate-spin"}):(0,r.jsx)(g,{size:14}),B?e.resending_button:e.resend_button]})]})]}):null,(0,r.jsx)("div",{className:"mt-6 text-center",children:(0,r.jsx)("p",{className:"text-xs text-gray-500",children:e.copyright})})]})]})})]})}],24055)}]);

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.