PageSourceSearch

https://fight24.tv/build/assets/AppLayout.vue_vue_type_script_setup_true_lang-Dgi0I-wl.js

js fight24.tv collected 2026-10-08 09:04:57 UTC 134,137 bytes, 1 lines download raw bytes

1import{o as s,c as l,a as e,d as we,z as Ee,U as Oe,p as Be,j as ge,G as Se,B as Te,h as se,A as be,f as L,T as fe,w as J,q as X,u as t,t as r,s as ue,x as ke,b as W,e as x,M as Ge,y as Ae,F as he,r as $e,n as ee,g as A,i as f,m as Ce,K as De,V as Ue,l as xe,P as Qe,I as He,N as ot,W as Ie,R as Le,X as rt,Y as st,O as at}from"./app-BIP_zfhU.js";import{u as et,r as We,S as nt}from"./Snackbar-ChpvL8ve.js";import{_ as Pe}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{_ as lt}from"./CookieConsent.vue_vue_type_script_setup_true_lang-TPSQ4mLX.js";function it(T,n){return s(),l("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e("path",{d:"M12.75 12.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM7.5 15.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM8.25 17.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM9.75 15.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM10.5 17.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12 15.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM12.75 17.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM14.25 15.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM15 17.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM16.5 15.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM15 12.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM16.5 13.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z"}),e("path",{"fill-rule":"evenodd",d:"M6.75 2.25A.75.75 0 0 1 7.5 3v1.5h9V3A.75.75 0 0 1 18 3v1.5h.75a3 3 0 0 1 3 3v11.25a3 3 0 0 1-3 3H5.25a3 3 0 0 1-3-3V7.5a3 3 0 0 1 3-3H6V3a.75.75 0 0 1 .75-.75Zm13.5 9a1.5 1.5 0 0 0-1.5-1.5H5.25a1.5 1.5 0 0 0-1.5 1.5v7.5a1.5 1.5 0 0 0 1.5 1.5h13.5a1.5 1.5 0 0 0 1.5-1.5v-7.5Z","clip-rule":"evenodd"})])}function Ye(T,n){return s(),l("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e("path",{d:"M3.53 2.47a.75.75 0 0 0-1.06 1.06l18 18a.75.75 0 1 0 1.06-1.06l-18-18ZM22.676 12.553a11.249 11.249 0 0 1-2.631 4.31l-3.099-3.099a5.25 5.25 0 0 0-6.71-6.71L7.759 4.577a11.217 11.217 0 0 1 4.242-.827c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113Z"}),e("path",{d:"M15.75 12c0 .18-.013.357-.037.53l-4.244-4.243A3.75 3.75 0 0 1 15.75 12ZM12.53 15.713l-4.243-4.244a3.75 3.75 0 0 0 4.244 4.243Z"}),e("path",{d:"M6.75 12c0-.619.107-1.213.304-1.764l-3.1-3.1a11.25 11.25 0 0 0-2.63 4.31c-.12.362-.12.752 0 1.114 1.489 4.467 5.704 7.69 10.675 7.69 1.5 0 2.933-.294 4.242-.827l-2.477-2.477A5.25 5.25 0 0 1 6.75 12Z"})])}function Ke(T,n){return s(),l("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}),e("path",{"fill-rule":"evenodd",d:"M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a1.762 1.762 0 0 1 0-1.113ZM17.25 12a5.25 5.25 0 1 1-10.5 0 5.25 5.25 0 0 1 10.5 0Z","clip-rule":"evenodd"})])}function Xe(T,n){return s(),l("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e("path",{"fill-rule":"evenodd",d:"M10.5 3.75a6.75 6.75 0 1 0 0 13.5 6.75 6.75 0 0 0 0-13.5ZM2.25 10.5a8.25 8.25 0 1 1 14.59 5.28l4.69 4.69a.75.75 0 1 1-1.06 1.06l-4.69-4.69A8.25 8.25 0 0 1 2.25 10.5Z","clip-rule":"evenodd"})])}const dt={key:0,class:"fixed top-16 md:top-20 left-0 right-0 bottom-0 z-[1001] flex items-start justify-center bg-black/80 backdrop-blur-sm px-3 sm:px-4 py-4 sm:py-6 overflow-y-auto"},ut={class:"relative px-4 py-4 sm:px-5 sm:py-5 lg:px-6 lg:py-6"},ct={key:0,class:"flex flex-col gap-5"},pt={class:"flex flex-col gap-1.5 text-center"},mt={class:"text-2xl font-extrabold uppercase tracking-tight bg-gradient-to-r from-white to-neutral-300 bg-clip-text text-transparent"},vt={class:"text-neutral-400 text-xs"},ft={class:"flex flex-col gap-2"},ht={class:"sr-only",for:"login-email"},gt={class:"relative"},yt=["placeholder","disabled"],bt={key:0,class:"text-red-400 text-sm flex items-center gap-1.5"},xt={key:1,class:"mt-1 rounded-lg overflow-hidden border border-amber-500/30 bg-amber-500/8"},wt={class:"px-4 py-3 flex items-start gap-3 border-b border-amber-500/20"},_t={class:"flex-1 min-w-0"},kt={class:"text-amber-300 text-sm font-semibold leading-snug"},$t={class:"text-amber-200/70 text-xs mt-0.5 leading-relaxed"},Ct={class:"px-4 py-3 flex flex-col gap-2"},Mt=["disabled"],St={key:0,class:"h-3 w-3 border-2 border-amber-400 border-t-transparent roun
1ded-full animate-spin"},Et={key:1,class:"h-3.5 w-3.5 text-green-400",fill:"currentColor",viewBox:"0 0 20 20"},Pt={key:2,class:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},zt={key:3,class:"text-green-400"},jt={key:4},Rt={key:0,class:"text-xs text-green-400 flex items-center gap-1.5"},Bt={class:"flex flex-col gap-2"},Tt={class:"sr-only",for:"login-password"},Vt={class:"relative"},Lt=["type","placeholder","disabled"],Ft={key:0,class:"text-red-400 text-sm flex items-center gap-1.5"},At={class:"flex flex-wrap items-center justify-between gap-3 text-sm"},It={class:"flex items-center gap-2.5 cursor-pointer group"},Dt={class:"text-neutral-400 group-hover:text-neutral-300 transition-colors"},Ht=["disabled"],Ut={class:"relative z-10 flex items-center gap-2"},qt={key:0,class:"h-3.5 w-3.5 border-2 border-secondary border-t-transparent rounded-full animate-spin"},Ot={class:"mt-4 flex flex-col gap-4"},Wt={class:"flex items-center gap-3 text-xs font-semibold uppercase tracking-wider text-neutral-500"},Nt={class:"auth-social-grid"},Zt=["aria-label","onClick"],Gt=["src","alt"],Yt={key:1,class:"flex flex-col gap-5"},Kt={class:"flex flex-col gap-1.5 text-center"},Xt={class:"text-2xl font-extrabold uppercase tracking-tight bg-gradient-to-r from-white to-neutral-300 bg-clip-text text-transparent"},Jt={class:"text-neutral-400 text-xs"},Qt={class:"grid grid-cols-1 sm:grid-cols-2 gap-3"},eo={class:"flex flex-col gap-2"},to={class:"sr-only",for:"register-first-name"},oo={class:"relative"},ro=["placeholder","disabled"],so={key:0,class:"text-red-400 text-sm flex items-center gap-1.5"},ao={class:"flex flex-col gap-2"},no={class:"sr-only",for:"register-last-name"},lo={class:"relative"},io=["placeholder","disabled"],uo={key:0,class:"text-red-400 text-sm flex items-center gap-1.5"},co={class:"flex flex-col gap-2"},po={class:"sr-only",for:"register-email"},mo={class:"relative"},vo=["placeholder","disabled"],fo={key:0,class:"text-red-400 text-sm flex items-center gap-1.5"},ho={class:"flex flex-col gap-2"},go={class:"sr-only",for:"register-password"},yo={class:"relative"},bo=["type","placeholder","disabled"],xo={key:0,class:"text-red-400 text-sm flex items-center gap-1.5"},wo={class:"flex flex-col gap-2"},_o={class:"relative flex-shrink-0 mt-0.5"},ko={key:0,class:"w-3 h-3 text-secondary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},$o={class:"flex-1 flex items-start gap-2"},Co={class:"flex-1"},Mo={class:"text-white text-xs font-medium leading-snug block"},So={class:"relative flex-shrink-0 mt-0.5"},Eo={key:0,class:"w-3 h-3 text-secondary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},Po={class:"flex-1 flex items-start gap-2"},zo={class:"flex-1"},jo={class:"text-white text-xs font-medium leading-snug block"},Ro={class:"relative flex-shrink-0 mt-0.5"},Bo={key:0,class:"w-3 h-3 text-secondary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},To={class:"flex-1 flex items-start gap-2"},Vo={class:"flex-1"},Lo={class:"text-white text-xs font-medium leading-snug block"},Fo={key:0,class:"mt-2 p-3 rounded-lg bg-red-500/10 border border-red-500/20"},Ao={class:"text-red-400 text-sm flex items-center gap-2"},Io={class:"mt-1 flex items-center gap-2 text-xs text-neutral-500"},Do=["disabled"],Ho={class:"relative z-10 flex items-center gap-2"},Uo={key:0,class:"h-3.5 w-3.5 border-2 border-secondary border-t-transparent rounded-full animate-spin"},qo={class:"mt-4 flex flex-col gap-4"},Oo={class:"flex items-center gap-2 text-xs font-semibold uppercase tracking-wider text-neutral-500"},Wo={class:"auth-social-grid"},No=["aria-label","onClick"],Zo=["src","alt"],Go={key:2,class:"flex flex-col gap-5"},Yo={class:"flex flex-col gap-1.5 text-center"},Ko={class:"text-2xl font-extrabold uppercase tracking-tight bg-gradient-to-r from-white to-neutral-300 bg-clip-text text-transparent"},Xo={class:"text-neutral-400 text-xs"},Jo={class:"flex flex-col gap-2"},Qo={class:"sr-only",for:"forgot-email"},er={class:"relative"},tr=["placeholder","disabled"],or={key:0,class:"text-red-400 text-sm flex items-center gap-1.5"},rr=["disabled"],sr={class:"relative z-10 flex items-center gap-2"},ar={key:0,class:"h-3.5 w-3.5 border-2 border-secondary border-t-transparent roun
1ded-full animate-spin"},nr={key:3,class:"flex flex-col items-center gap-4 text-center"},lr={class:"text-xl font-extrabold tracking-tight"},ir={class:"text-sm leading-relaxed text-neutral-400 max-w-sm"},dr={class:"relative z-10"},ur={key:4,class:"flex flex-col gap-5"},cr={class:"flex flex-col gap-1.5 text-center"},pr={class:"text-2xl font-extrabold uppercase tracking-tight bg-gradient-to-r from-white to-neutral-300 bg-clip-text text-transparent"},mr={class:"flex flex-col gap-2"},vr={class:"sr-only",for:"change-password"},fr={class:"relative"},hr=["placeholder","disabled"],gr={key:0,class:"text-red-400 text-sm flex items-center gap-1.5"},yr={class:"flex flex-col gap-2"},br={class:"sr-only",for:"change-confirm"},xr={class:"relative"},wr=["placeholder","disabled"],_r={key:0,class:"text-red-400 text-sm flex items-center gap-1.5"},kr=["disabled"],$r={class:"relative z-10 flex items-center gap-2"},Cr={key:0,class:"h-3.5 w-3.5 border-2 border-secondary border-t-transparent rounded-full animate-spin"},Mr={key:5,class:"flex flex-col items-center gap-5 text-center"},Sr={class:"flex flex-col gap-2"},Er={class:"text-xl font-extrabold uppercase tracking-tight bg-gradient-to-r from-white to-neutral-300 bg-clip-text text-transparent"},Pr={class:"text-neutral-400 text-sm max-w-sm leading-relaxed"},zr={key:0,class:"text-primary font-semibold text-sm break-all"},jr={class:"text-neutral-500 text-xs mt-1"},Rr={class:"w-full flex flex-col gap-3 mt-2"},Br={class:"p-3 rounded-lg bg-neutral-800/50 border border-neutral-700/50 text-left"},Tr={class:"text-neutral-400 text-xs flex items-start gap-2"},Vr=["disabled"],Lr={class:"flex items-center gap-2"},Fr={key:0,class:"h-3.5 w-3.5 border-2 border-primary border-t-transparent rounded-full animate-spin"},Ar={key:1,class:"h-4 w-4 text-green-400",fill:"currentColor",viewBox:"0 0 20 20"},Ir={key:2,class:"h-4 w-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},Dr={key:3,class:"text-green-400"},Hr={key:4},Ur={key:6,class:"flex flex-col items-center gap-4 text-center"},qr={class:"text-xl font-extrabold uppercase tracking-tight"},Or={class:"text-neutral-400 max-w-sm"},Wr=!0,Nr=we({__name:"AuthModal",setup(T){const{t:n,locale:h}=Ee(),y=["de","en","fr","nl"];function D(q){var g;const o=(g=String(q??"").split("-")[0])==null?void 0:g.toLowerCase();return o&&y.includes(o)?o:"de"}const v=Oe(),V=et(),M=A(()=>v.isVisible),b=A(()=>v.mode),H=A(()=>v.emailForReset),R=A(()=>{var q;return(q=H.value)!=null&&q.trim()?H.value.trim():"—"}),w=f(!1),G=f(!1),_=f(null),P=[{id:"google",labelKey:"home-page.LoginwithGoogle",icon:"/images/Google.svg"},{id:"facebook",labelKey:"home-page.LoginwithFacebook",icon:"/images/SVG/F24_Icons_F24_Facebook.svg"},{id:"apple",labelKey:"home-page.LoginwithApple",icon:"/images/Apple.svg"}].filter(q=>Wr),S=Be({email:"",password:"",remember:!1}),i=Be({first_name:"",last_name:"",email:"",password:"",password_confirmation:"",certifyAge:!1,dataPrivacy:!1,newsletter:!1}),I=Be({email:""}),E=Be({password:"",password_confirmation:""}),B=f(!1),F=f(!1);let ae=0,Q="",ce="";const le=q=>{if(!(typeof document>"u"||typeof window>"u"))if(q){const o=window.innerWidth-document.documentElement.clientWidth;ae=window.scrollY||window.pageYOffset||document.documentElement.scrollTop;const g=getComputedStyle(document.body);Q=document.body.style.width||g.width,ce=document.body.style.marginRight||g.marginRight,document.body.style.position="fixed",document.body.style.top=`-${ae}px`,document.body.style.width=Q,o>0&&(document.body.style.marginRight=`${o}px`),document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden",document.documentElement.style.height="100%"}else document.body.style.position="",document.body.style.top="",document.body.style.width=Q||"",document.body.style.marginRight=ce||"",document.body.style.overflow="",document.documentElement.style.overflow="",document.documentElement.style.height="",window.scrollTo(0,ae),ae=0,Q="",ce=""},de=()=>{S.reset(),i.reset(),I.reset(),E.reset(),_.value=null,w.value=!1,G.value=!1,B.value=!1,F.value=!1};ge(()=>M.value,q=>{le(q),q||de()},{immediate:!0}),Se(()=>le(!1));const oe=()=>{v.close()},Z=q=>{q.key==="Escape"&&M.value&&oe()};Te(()=>{document.addEventListener("keydown",Z)}),Se(()=>{document.removeEventListener("keydown",Z),le(!1)});const ie=q=>{_.value=null,v.setMode(q)},K=()=>{S.post(route("login"),{preserveScroll:!0,onSuccess:()=>{oe(),S.reset("password")},onFinish:()=>{w.value=!1}})},Y=()=>{if(!i.certifyAge||!i.dataPrivacy){_.value=n("home-page.requiredforregistration");return}const q=i.email;i.transform(o=>({first_name:o.first_name,last_name:o.last_name,email:o.email,password:o.password,password_confirmation:o.password,newsletter:o.newsletter??!1,data_privacy:o.dataPrivacy??!1,certify_age:o.certifyAge??!1,language:D(typeof h.value=="string"?h.value:void 0)})).post(route("register"),{preserveScroll:!0,preserveState:!0,onSuccess:()=>
1{i.reset(),v.setMode("verifyPending",{registeredEmail:q})},onError:o=>{o.error&&(_.value=o.error)}})},C=()=>{const q=I.email;I.post(route("password.email"),{preserveScroll:!0,onSuccess:()=>{v.setMode("emailSent",{emailForReset:q}),I.reset()}})},U=()=>{E.put(route("password.update"),{preserveScroll:!0,onSuccess:()=>{E.reset(),oe(),V.success("Password updated successfully")}})},re=q=>{window.location.assign(route("socialite.redirect",{provider:q}))},j=()=>{const q=v.registeredEmail;if(!q)return;F.value=!0,B.value=!1,Be({email:q}).post(route("verification.send"),{preserveScroll:!0,preserveState:!0,onSuccess:()=>{B.value=!0,F.value=!1,setTimeout(()=>{B.value=!1},5e3)},onError:()=>{F.value=!1},onFinish:()=>{F.value=!1}})},me=()=>{if(!S.email)return;F.value=!0,Be({email:S.email}).post(route("verification.send"),{preserveScroll:!0,preserveState:!0,onSuccess:()=>{B.value=!0,F.value=!1,setTimeout(()=>{B.value=!1},5e3)},onError:o=>{F.value=!1},onFinish:()=>{F.value=!1}})};return(q,o)=>(s(),se(be,{to:"body"},[L(fe,{"enter-active-class":"transition-all duration-300 ease-out","leave-active-class":"transition-all duration-200 ease-in","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:J(()=>[M.value?(s(),l("div",dt,[L(fe,{"enter-active-class":"transition-all duration-300 ease-out","leave-active-class":"transition-all duration-200 ease-in","enter-from-class":"opacity-0 scale-95 translate-y-4","enter-to-class":"opacity-100 scale-100 translate-y-0","leave-from-class":"opacity-100 scale-100 translate-y-0","leave-to-class":"opacity-0 scale-95 translate-y-4"},{default:J(()=>[M.value?(s(),l("div",{key:0,class:"relative w-full max-w-[90vw] sm:max-w-[500px] lg:max-w-[560px] rounded-lg sm:rounded-xl bg-gradient-to-br from-neutral-900 via-neutral-900 to-neutral-950 text-white shadow-2xl border border-neutral-800/50 overflow-hidden mt-4 sm:mt-6",role:"dialog","aria-modal":"true",onClick:o[21]||(o[21]=X(()=>{},["stop"]))},[o[70]||(o[70]=e("div",{class:"absolute inset-0 bg-gradient-to-br from-primary/5 via-transparent to-transparent pointer-events-none"},null,-1)),e("button",{class:"absolute right-2 top-2 sm:right-3 sm:top-3 z-10 inline-flex h-7 w-7 sm:h-8 sm:w-8 items-center justify-center rounded-lg bg-neutral-800/50 hover:bg-neutral-700/50 text-white/70 hover:text-white transition-all duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary/50 backdrop-blur-sm",type:"button","aria-label":"Close",onClick:oe},[L(t(We),{class:"h-3.5 w-3.5 sm:h-4 sm:w-4"})]),e("div",ut,[b.value==="login"?(s(),l("div",ct,[e("div",pt,[e("h1",mt,r(t(n)("home-page.Login")),1),e("p",vt,r(t(n)("home-page.Tousefight24")),1)]),e("form",{class:"flex flex-col gap-4",autocomplete:"on",onSubmit:X(K,["prevent"])},[e("div",ft,[e("label",ht,r(t(n)("home-page.Enteryouremail")),1),e("div",gt,[o[22]||(o[22]=e("div",{class:"absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none"},[e("svg",{class:"h-4 w-4 text-neutral-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M16 12a4 4 0 10-8 0 4 4 0 008 0zm0 0v1.5a2.5 2.5 0 005 0V12a9 9 0 10-9 9m4.5-1.206a8.959 8.959 0 01-4.5 1.207"})])],-1)),ue(e("input",{id:"login-email","onUpdate:modelValue":o[0]||(o[0]=g=>t(S).email=g),type:"email",autocomplete:"email",required:"",placeholder:t(n)("home-page.Enteryouremail"),class:"w-full pl-11 pr-4 py-3 rounded-lg border border-neutral-700/50 bg-neutral-800/50 text-white text-sm placeholder:text-neutral-500 focus:border-primary focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed backdrop-blur-sm",disabled:t(S).processing},null,8,yt),[[ke,t(S).email]])]),t(S).errors.email?(s(),l("p",bt,[o[23]||(o[23]=e("svg",{class:"h-4 w-4 flex-shrink-0",fill:"currentColor",viewBox:"0 0 20 20"},[e("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"})],-1)),W(" "+r(t(S).errors.email),1)])):x("",!0),t(S).errors.email_unverified?(s(),l("div",xt,[e("div",wt,[o[24]||(o[24]=e("div",{class:"flex-shrink-0 mt-0.5 h-8 w-8 rounded-full bg-amber-400/15 flex items-center justify-center"},[e("svg",{class:"h-4 w-4 text-amber-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})])],-1)),e("div",_t,[e("p",kt,r(t(n)("home-page.EmailNotVerified")),1),e("p",$t,r(t(n)("home-page.PleaseVerifyBeforeLogin")),1)])]),e("div",Ct,[e("button",{type:"button",disabled:F.value||B.value,class:"w-full inline-flex items-center justify-center gap-2 rounded-lg bg-amber-500/15 hover:bg-amber-500/25 border border-amber-500/30 px-3 py-2 text-xs font-semibold text-amber-300 transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed",onClick:me},[F.value?(s(),l("span",St)):B.value?(s(),l("svg",Et,[...o[25]||(o[25]=[e("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"},null,-1)])])):(s(),l("svg",Pt,[...o[26]||(o[26]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"},null,-1)])])),B.value?(s(),l("span",zt,r(t(n)("home-page.VerificationEmailResent")),1)):(s(),l("span",jt,r(F.value?t(n)("home-page.Processing"):t(n)("home-page.ResendVerificationEmail")),1))],8,Mt),B.value?(s(),l("p",Rt,[o[27]||(o[27]=e("svg",{class:"h-3.5 w-3.5 flex-shrink-0",fill:"currentColor",viewBox:"0 0 20 20"},[e("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"})],-1)),W(" "+r(t(n)("home-page.VerificationEmailSentCheckInbox")),1)])):x("",!0)])])):x("",!0)]),e("div",Bt,[e("label",Tt,r(t(n)("home-page.Password")),1),e("div",Vt,[o[28]||(o[28]=e("div",{class:"absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none"},[e("svg",{class:"h-4 w-4 text-neutral-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})])],-1)),ue(e("input",{id:"login-password","onUpdate:modelValue":o[1]||(o[1]=g=>t(S).password=g),type:w.value?"text":"password",autocomplete:"current-password",required:"",placeholder:t(n)("home-page.Password"),class:"w-full pl-11 pr-11 py-3 rounded-lg border border-neutral-700/50 bg-neutral-800/50 text-white text-sm placeholder:text-neutral-500 focus:border-primary focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed backdrop-blur-sm",disabled:t(S).processing},null,8,Lt),[[Ge,t(S).password]]),e("button",{type:"button",class:"absolute inset-y-0 right-0 pr-3 flex items-center text-neutral-500 hover:text-white transition-colors duration-200 focus:outline-none",onClick:o[2]||(o[2]=g=>w.value=!w.value)},[w.value?(s(),se(t(Ke),{key:0,class:"h-4 w-4"})):(s(),se(t(Ye),{key:1,class:"h-4 w-4"}))])]),t(S).errors.password?(s(),l("p",Ft,[o[29]||(o[29]=e("svg",{class:"h-4 w-4",fill:"
1currentColor",viewBox:"0 0 20 20"},[e("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"})],-1)),W(" "+r(t(S).errors.password),1)])):x("",!0)]),e("div",At,[e("label",It,[ue(e("input",{"onUpdate:modelValue":o[3]||(o[3]=g=>t(S).remember=g),type:"checkbox",class:"h-4 w-4 rounded border-neutral-600 bg-neutral-800/50 text-primary focus:ring-2 focus:ring-primary/50 focus:ring-offset-0 focus:ring-offset-transparent cursor-pointer transition-all duration-200"},null,512),[[Ae,t(S).remember]]),e("span",Dt,r(t(n)("home-page.Rememberme")),1)]),e("button",{type:"button",class:"font-semibold text-primary hover:text-primary/80 transition-colors duration-200",onClick:o[4]||(o[4]=g=>ie("forgotPassword"))},r(t(n)("home-page.Forgotyourpassword")),1)]),e("button",{class:"relative inline-flex items-center justify-center rounded-lg bg-gradient-to-r from-primary to-primary/90 px-5 py-3 text-sm font-bold uppercase text-secondary shadow-md shadow-primary/20 hover:shadow-lg hover:shadow-primary/30 transition-all duration-200 disabled:opacity-60 disabled:cursor-not-allowed overflow-hidden group",type:"submit",disabled:t(S).processing},[e("span",Ut,[t(S).processing?(s(),l("span",qt)):x("",!0),W(" "+r(t(S).processing?t(n)("home-page.Processing"):t(n)("home-page.Login")),1)]),o[30]||(o[30]=e("span",{class:"absolute inset-0 bg-gradient-to-r from-primary/80 to-primary/60 opacity-0 group-hover:opacity-100 transition-opacity duration-200"},null,-1))],8,Ht),e("button",{class:"inline-flex items-center justify-center rounded-lg border border-neutral-700/50 bg-neutral-800/30 px-5 py-3 text-sm font-semibold uppercase text-white hover:bg-neutral-800/50 hover:border-neutral-600 transition-all duration-200",type:"button",onClick:o[5]||(o[5]=g=>ie("register"))},r(t(n)("home-page.Register")),1)],32),e("div",Ot,[e("div",Wt,[o[31]||(o[31]=e("span",{class:"h-px flex-1 bg-gradient-to-r from-transparent via-neutral-700 to-transparent"}
1,null,-1)),e("span",null,r(t(n)("home-page.Orcontinuewith")),1),o[32]||(o[32]=e("span",{class:"h-px flex-1 bg-gradient-to-r from-transparent via-neutral-700 to-transparent"},null,-1))]),e("div",Nt,[(s(!0),l(he,null,$e(t(P),g=>(s(),l("button",{key:g.id,type:"button",class:ee(["auth-social-btn group",{"auth-social-btn--apple":g.id==="apple"}]),"aria-label":t(n)(g.labelKey),onClick:_e=>re(g.id)},[e("img",{src:g.icon,alt:t(n)(g.labelKey),class:"auth-social-icon"},null,8,Gt)],10,Zt))),128))])])])):b.value==="register"?(s(),l("div",Yt,[e("div",Kt,[e("h1",Xt,r(t(n)("home-page.Register")),1),e("p",Jt,r(t(n)("home-page.CreateYourAccountToGetStarted")),1)]),e("form",{class:"flex flex-col gap-4",autocomplete:"off",onSubmit:X(Y,["prevent"])},[e("div",Qt,[e("div",eo,[e("label",to,r(t(n)("translation.firstname")),1),e("div",oo,[o[33]||(o[33]=e("div",{class:"absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none"},[e("svg",{class:"h-4.5 w-4.5 text-neutral-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})])],-1)),ue(e("input",{id:"register-first-name","onUpdate:modelValue":o[6]||(o[6]=g=>t(i).first_name=g),type:"text",autocomplete:"given-name",required:"",placeholder:t(n)("translation.firstname"),class:"w-full pl-11 pr-4 py-3 rounded-lg border border-neutral-700/50 bg-neutral-800/50 text-white text-sm placeholder:text-neutral-500 focus:border-primary focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed backdrop-blur-sm",disabled:t(i).processing},null,8,ro),[[ke,t(i).first_name]])]),t(i).errors.first_name?(s(),l("p",so,[o[34]||(o[34]=e("svg",{class:"h-4 w-4",fill:"currentColor",viewBox:"0 0 20 20"},[e("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"})],-1)),W(" "+r(t(i).errors.first_name),1)])):x("",!0)]),e("div",ao,[e("label",no,r(t(n)("translation.lastname")),1),e("div",lo,[o[35]||(o[35]=e("div",{class:"absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none"},[e("svg",{class:"h-4.5 w-4.5 text-neutral-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})])],-1)),ue(e("input",{id:"register-last-name","onUpdate:modelValue":o[7]||(o[7]=g=>t(i).last_name=g),type:"text",autocomplete:"family-name",required:"",placeholder:t(n)("translation.lastname"),class:"w-full pl-11 pr-4 py-3 rounded-lg border border-neutral-700/50 bg-neutral-800/50 text-white text-sm placeholder:text-neutral-500 focus:border-primary focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed backdrop-blur-sm",disabled:t(i).processing},null,8,io),[[ke,t(i).last_name]])]),t(i).errors.last_name?(s(),l("p",uo,[o[36]||(o[36]=e("svg",{class:"h-4 w-4",fill:"currentColor",viewBox:"0 0 20 20"},[e("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"})],-1)),W(" "+r(t(i).errors.last_name),1)])):x("",!0)])]),e("div",co,[e("label",po,r(t(n)("home-page.Enteryouremail")),1),e("div",mo,[o[37]||(o[37]=e("div",{class:"absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none"},[e("svg",{class:"h-4 w-4 text-neutral-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M16 12a4 4 0 10-8 0 4 4 0 008 0zm0 0v1.5a2.5 2.5 0 005 0V12a9 9 0 10-9 9m4.5-1.206a8.959 8.959 0 01-4.5 1.207"})])],-1)),ue(e("input",{id:"register-email","onUpdate:modelValue":o[8]||(o[8]=g=>t(i).email=g),type:"email",autocomplete:"email",required:"",placeholder:t(n)("home-page.Enteryouremail"),class:"w-full pl-11 pr-4 py-3 rounded-lg border border-neutral-700/50 bg-neutral-800/50 text-white text-sm placeholder:text-neutral-500 focus:border-primary focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed backdrop-blur-sm",disabled:t(i).processing},null,8,vo),[[ke,t(i).email]])]),t(i).errors.email?(s(),l("p",fo,[o[38]||(o[38]=e("svg",{class:"h-4 w-4",fill:"
1currentColor",viewBox:"0 0 20 20"},[e("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"})],-1)),W(" "+r(t(i).errors.email),1)])):x("",!0)]),e("div",ho,[e("label",go,r(t(n)("home-page.Password")),1),e("div",yo,[o[39]||(o[39]=e("div",{class:"absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none"},[e("svg",{class:"h-4 w-4 text-neutral-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})])],-1)),ue(e("input",{id:"register-password","onUpdate:modelValue":o[9]||(o[9]=g=>t(i).password=g),type:G.value?"text":"password",autocomplete:"new-password",required:"",placeholder:t(n)("home-page.Password"),class:"w-full pl-11 pr-11 py-3 rounded-lg border border-neutral-700/50 bg-neutral-800/50 text-white text-sm placeholder:text-neutral-500 focus:border-primary focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed backdrop-blur-sm",disabled:t(i).processing},null,8,bo),[[Ge,t(i).password]]),e("button",{type:"button",class:"absolute inset-y-0 right-0 pr-3 flex items-center text-neutral-500 hover:text-white transition-colors duration-200 focus:outline-none",onClick:o[10]||(o[10]=g=>G.value=!G.value)},[G.value?(s(),se(t(Ke),{key:0,class:"h-4 w-4"})):(s(),se(t(Ye),{key:1,class:"h-4 w-4"}))])]),t(i).errors.password?(s(),l("p",xo,[o[40]||(o[40]=e("svg",{class:"h-4 w-4",fill:"currentColor",viewBox:"0 0 20 20"},[e("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"})],-1)),W(" "+r(t(i).errors.password),1)])):x("",!0)]),e("div",wo,[e("label",{class:ee(["relative flex items-start gap-3 p-3 rounded-lg border border-neutral-700/50 bg-neutral-800/30 hover:bg-neutral-800/50 hover:border-neutral-600/50 cursor-pointer group transition-all duration-200",{"border-primary/50 bg-primary/5":t(i).certifyAge}])},[e("div",_o,[ue(e("input",{"onUpdate:modelValue":o[11]||(o[11]=g=>t(i).certifyAge=g),type:"checkbox",class:"absolute opacity-0 w-0 h-0 peer"},null,512),[[Ae,t(i).certifyAge]]),e("div",{class:ee(["w-4 h-4 rounded border-2 transition-all duration-200 flex items-center justify-center",t(i).certifyAge?"border-primary bg-primary":"border-neutral-600 bg-neutral-800/50 group-hover:border-primary/50"])},[t(i).certifyAge?(s(),l("svg",ko,[...o[41]||(o[41]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"3",d:"M5 13l4 4L19 7"},null,-1)])])):x("",!0)],2)]),e("div",$o,[o[43]||(o[43]=e("div",{class:"flex-shrink-0 mt-0.5"},[e("svg",{class:"w-4 h-4 text-primary/70",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})])],-1)),e("div",Co,[e("span",Mo,[W(r(t(n)("home-page.IcertifythatIam18yearsofageorolder"))+" ",1),o[42]||(o[42]=e("span",{class:"text-primary ml-1"},"*",-1))])])])],2),e("label",{class:ee(["relative flex items-start gap-3 p-3 rounded-lg border border-neutral-700/50 bg-neutral-800/30 hover:bg-neutral-800/50 hover:border-neutral-600/50 cursor-pointer group transition-all duration-200",{"border-primary/50 bg-primary/5":t(i).dataPrivacy}])},[e("div",So,[ue(e("input",{"onUpdate:modelValue":o[12]||(o[12]=g=>t(i).dataPrivacy=g),type:"checkbox",class:"absolute opacity-0 w-0 h-0 peer"},null,512),[[Ae,t(i).dataPrivacy]]),e("div",{class:ee(["w-4 h-4 rounded border-2 transition-all duration-200 flex items-center justify-center",t(i).dataPrivacy?"border-primary bg-primary":"border-neutral-600 bg-neutral-800/50 group-hover:border-primary/50"])},[t(i).dataPrivacy?(s(),l("svg",Eo,[...o[44]||(o[44]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"3",d:"M5 13l4 4L19 7"},null,-1)])])):x("",!0)],2)]),e("div",Po,[o[46]||(o[46]=e("div",{class:"flex-shrink-0 mt-0.5"},[e("svg",{class:"w-4 h-4 text-primary/70",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})])],-1)),e("div",zo,[e("span",jo,[W(r(t(n)("home-page.IaccepttheTermsand"))+" ",1),o[45]||(o[45]=e("span",{class:"text-primary ml-1"},"*",-1))])])])],2),e("label",{class:ee(["relative flex items-start gap-3 p-3 rounded-lg border border-neutral-700/50 bg-neutral-800/30 hover:bg-neutral-800/50 hover:border-neutral-600/50 cursor-pointer group transition-all duration-200",{"border-primary/50 bg-primary/5":t(i).newsletter}])},[e("div",Ro,[ue(e("input",{"onUpdate:modelValue":o[13]||(o[13]=g=>t(i).newsletter=g),type:"checkbox",class:"absolute opacity-0 w-0 h-0 peer"},null,512),[[Ae,t(i).newsletter]]),e("div",{class:ee(["w-4 h-4 rounded border-2 transition-all duration-200 flex items-center justify-center",t(i).newsletter?"border-primary bg-primary":"border-neutral-600 bg-neutral-800/50 group-hover:border-primary/50"])},[t(i).newsletter?(s(),l("svg",Bo,[...o[47]||(o[47]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"3",d:"M5 13l4 4L19 7"},null,-1)])])):x("",!0)],2)]),e("div",To,[o[48]||(o[48]=e("div",{class:"flex-shrink-0 mt-0.5"},[e("svg",{class:"w-4 h-4 text-primary/70",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})])],-1)),e("div",Vo,[e("span",Lo,r(t(n)("home-page.Iwanttoreceiveinformationaboutcurrenteventsandfightsbyemail")),1)])])],2),_.value?(s(),l("div",Fo,[e("p",Ao,[o[49]||(o[49]=e("svg",{class:"h-4 w-4 flex-shrink-0",fill:"currentColor",viewBox:"0 0 20 20"},[e("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"})],-1)),W(" "+r(_.value),1)])])):x("",!0),e("div",Io,[o[50]||(o[50]=e("svg",{class:"h-3.5 w-3.5 text-primary/60",fill:"currentColor",viewBox:"0 0 20 20"},[e("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"})],-1)),e("span",null,r(t(n)("home-page.requiredforregistration")),1)])]),e("button",{class:"relative inline-flex items-center justify-center rounded-lg bg-gradient-to-r from-primary to-primary/90 px-5 py-3 text-sm font-bold uppercase text-secondary shadow-md shadow-primary/20 hover:shadow-lg hover:shadow-
1primary/30 transition-all duration-200 disabled:opacity-60 disabled:cursor-not-allowed overflow-hidden group",type:"submit",disabled:t(i).processing},[e("span",Ho,[t(i).processing?(s(),l("span",Uo)):x("",!0),W(" "+r(t(i).processing?t(n)("home-page.Processing"):t(n)("home-page.Register")),1)]),o[51]||(o[51]=e("span",{class:"absolute inset-0 bg-gradient-to-r from-primary/80 to-primary/60 opacity-0 group-hover:opacity-100 transition-opacity duration-200"},null,-1))],8,Do),e("button",{class:"inline-flex items-center justify-center rounded-lg border border-neutral-700/50 bg-neutral-800/30 px-5 py-3 text-sm font-semibold uppercase text-white hover:bg-neutral-800/50 hover:border-neutral-600 transition-all duration-200",type:"button",onClick:o[14]||(o[14]=g=>ie("login"))},r(t(n)("home-page.Login")),1)],32),e("div",qo,[e("div",Oo,[o[52]||(o[52]=e("span",{class:"h-px flex-1 bg-gradient-to-r from-transparent via-neutral-700 to-transparent"},null,-1)),e("span",null,r(t(n)("home-page.Orcontinuewith")),1),o[53]||(o[53]=e("span",{class:"h-px flex-1 bg-gradient-to-r from-transparent via-neutral-700 to-transparent"},null,-1))]),e("div",Wo,[(s(!0),l(he,null,$e(t(P),g=>(s(),l("button",{key:g.id,type:"button",class:ee(["auth-social-btn group",{"auth-social-btn--apple":g.id==="apple"}]),"aria-label":t(n)(g.labelKey),onClick:_e=>re(g.id)},[e("img",{src:g.icon,alt:t(n)(g.labelKey),class:"auth-social-icon"},null,8,Zo)],10,No))),128))])])])):b.value==="forgotPassword"?(s(),l("div",Go,[e("div",Yo,[e("h1",Ko,r(t(n)("home-page.Resetpassword")),1),e("p",Xo,r(t(n)("home-page.Enteryouremail")),1)]),e("form",{class:"flex flex-col gap-4",onSubmit:X(C,["prevent"])},[e("div",Jo,[e("label",Qo,r(t(n)("home-page.Enteryouremail")),1),e("div",er,[o[54]||(o[54]=e("div",{class:"absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none"},[e("svg",{class:"h-4 w-4 text-neutral-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M16 12a4 4 0 10-8 0 4 4 0 008 0zm0 0v1.5a2.5 2.5 0 005 0V12a9 9 0 10-9 9m4.5-1.206a8.959 8.959 0 01-4.5 1.207"})])],-1)),ue(e("input",{id:"forgot-email","onUpdate:modelValue":o[15]||(o[15]=g=>t(I).email=g),type:"email",autocomplete:"email",required:"",placeholder:t(n)("home-page.Enteryouremail"),class:"w-full pl-11 pr-4 py-3 rounded-lg border border-neutral-700/50 bg-neutral-800/50 text-white text-sm placeholder:text-neutral-500 focus:border-primary focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed backdrop-blur-sm",disabled:t(I).processing},null,8,tr),[[ke,t(I).email]])]),t(I).errors.email?(s(),l("p",or,[o[55]||(o[55]=e("svg",{class:"h-4 w-4",fill:"currentColor",viewBox:"0 0 20 20"},[e("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"})],-1)),W(" "+r(t(I).errors.email),1)])):x("",!0)]),e("button",{class:"relative inline-flex items-center justify-center rounded-lg bg-gradient-to-r from-primary to-primary/90 px-5 py-3 text-sm font-bold uppercase text-secondary shadow-md shadow-primary/20 hover:shadow-lg hover:shadow-primary/30 transition-all duration-200 disabled:opacity-60 disabled:cursor-not-allowed overflow-hidden group",type:"submit",disabled:t(I).processing},[e("span",sr,[t(I).processing?(s(),l("span",ar)):x("",!0),W(" "+r(t(I).processing?t(n)("home-page.Processing"):t(n)("home-page.Resetpassword")),1)]),o[56]||(o[56]=e("span",{class:"absolute inset-0 bg-gradient-to-r from-primary/80 to-primary/60 opacity-0 group-hover:opacity-100 transition-opacity duration-200"},null,-1))],8,rr),e("button",{class:"inline-flex items-center justify-center rounded-lg border border-neutral-700/50 bg-neutral-800/30 px-5 py-3 text-sm font-semibold uppercase text-white hover:bg-neutral-800/50 hover:border-neutral-600 transition-all duration-200",type:"button",onClick:o[16]||(o[16]=g=>ie("login"))},r(t(n)("home-page.Tologinpage")),1)],32)])):b.value==="emailSent"?(s(),l("div",nr,[o[58]||(o[58]=e("div",{class:"rounded-full bg-primary/10 p-3"},[e("svg",{class:"h-10 w-10 text-primary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})])],-1)),e("h2",lr,r(t(n)("home-page.PasswordResetEmailTitle")),1),e("p",ir,r(t(n)("home-page.PasswordResetEmailBody",{email:R.value})),1),e("button",{class:"relative inline-flex items-center justify-center rounded-lg bg-gradient-to-r from-primary to-primary/90 px-5 py-3 text-sm font-bold uppercase text-secondary shadow-md shadow-primary/20 hover:shadow-lg hover:shadow-
1primary/30 transition-all duration-200 overflow-hidden group",type:"button",onClick:o[17]||(o[17]=g=>ie("login"))},[e("span",dr,r(t(n)("home-page.Tologinpage")),1),o[57]||(o[57]=e("span",{class:"absolute inset-0 bg-gradient-to-r from-primary/80 to-primary/60 opacity-0 group-hover:opacity-100 transition-opacity duration-200"},null,-1))])])):b.value==="changePassword"?(s(),l("div",ur,[e("div",cr,[e("h1",pr,r(t(n)("home-page.Resetpassword")),1)]),e("form",{class:"flex flex-col gap-4",onSubmit:X(U,["prevent"])},[e("div",mr,[e("label",vr,r(t(n)("home-page.Password")),1),e("div",fr,[o[59]||(o[59]=e("div",{class:"absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none"},[e("svg",{class:"h-4 w-4 text-neutral-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})])],-1)),ue(e("input",{id:"change-password","onUpdate:modelValue":o[18]||(o[18]=g=>t(E).password=g),type:"password",autocomplete:"new-password",required:"",placeholder:t(n)("home-page.Password"),class:"w-full pl-11 pr-4 py-3 rounded-lg border border-neutral-700/50 bg-neutral-800/50 text-white text-sm placeholder:text-neutral-500 focus:border-primary focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed backdrop-blur-sm",disabled:t(E).processing},null,8,hr),[[ke,t(E).password]])]),t(E).errors.password?(s(),l("p",gr,[o[60]||(o[60]=e("svg",{class:"h-4 w-4",fill:"currentColor",viewBox:"0 0 20 20"},[e("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"})],-1)),W(" "+r(t(E).errors.password),1)])):x("",!0)]),e("div",yr,[e("label",br,r(t(n)("home-page.Confirmpassword")),1),e("div",xr,[o[61]||(o[61]=e("div",{class:"absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none"},[e("svg",{class:"h-4 w-4 text-neutral-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})])],-1)),ue(e("input",{id:"change-confirm","onUpdate:modelValue":o[19]||(o[19]=g=>t(E).password_confirmation=g),type:"password",autocomplete:"new-password",required:"",placeholder:t(n)("home-page.Confirmpassword"),class:"w-full pl-11 pr-4 py-3 rounded-lg border border-neutral-700/50 bg-neutral-800/50 text-white text-sm placeholder:text-neutral-500 focus:border-primary focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed backdrop-blur-sm",disabled:t(E).processing},null,8,wr),[[ke,t(E).password_confirmation]])]),t(E).errors.password_confirmation?(s(),l("p",_r,[o[62]||(o[62]=e("svg",{class:"h-4 w-4",fill:"currentColor",viewBox:"0 0 20 20"},[e("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"})],-1)),W(" "+r(t(E).errors.password_confirmation),1)])):x("",!0)]),e("button",{class:"relative inline-flex items-center justify-center rounded-lg bg-gradient-to-r from-primary to-primary/90 px-5 py-3 text-sm font-bold uppercase text-secondary shadow-md shadow-primary/20 hover:shadow-lg hover:shadow-primary/30 transition-all duration-200 disabled:opacity-60 disabled:cursor-not-allowed overflow-hidden group",type:"submit",disabled:t(E).processing},[e("span",$r,[t(E).processing?(s(),l("span",Cr)):x("",!0),W(" "+r(t(E).processing?t(n)("home-page.Processing"):t(n)("home-page.Resetpassword")),1)]),o[63]||(o[63]=e("span",{class:"absolute inset-0 bg-gradient-to-r from-primary/80 to-primary/60 opacity-0 group-hover:opacity-100 transition-opacity duration-200"},null,-1))],8,kr)],32)])):b.value==="verifyPending"?(s(),l("div",Mr,[o[67]||(o[67]=e("div",{class:"rounded-full bg-primary/10 p-4"},[e("svg",{class:"h-10 w-10 text-primary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})])],-1)),e("div",Sr,[e("h2",Er,r(t(n)("home-page.CheckYourEmail")),1),e("p",Pr,r(t(n)("home-page.VerificationEmailSentTo")),1),t(v).registeredEmail?(s(),l("p",zr,r(t(v).registeredEmail),1)):x("",!0),e("p",jr,r(t(n)("home-page.ClickTheLinkToVerify")),1)]),e("div",Rr,[e("div",Br,[e("p",Tr,[o[64]||(o[64]=e("svg",{class:"h-4 w-4 text-primary/70 flex-shrink-0 mt-0.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),W(" "+r(t(n)("home-page.CheckSpamFolder")),1)])]),e("button",{type:"button",disabled:F.value||B.value,class:"relative inline-flex items-center justify-center rounded-lg border border-primary/40 bg-primary/10 px-5 py-3 text-sm font-semibold text-primary hover:bg-primary/20 transition-all duration-200 disabled:opacity-60 disabled:cursor-not-allowed",onClick:j},[e("span",Lr,[F.value?(s(),l("span",Fr)):B.value?(s(),l("svg",Ar,[...o[65]||(o[65]=[e("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"},null,-1)])])):(s(),l("svg",Ir,[...o[66]||(o[66]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"},null,-1)])])),B.value?(s(),l("span",Dr,r(t(n)("home-page.VerificationEmailResent")),1)):(s(),l("span",Hr,r(F.value?t(n)("home-page.Processing"):t(n)("home-page.ResendVerificationEmail")),1))])],8,Vr),e("button",{type:"button",class:"inline-flex items-center justify-center rounded-lg border border-neutral-700/50 bg-neutral-800/30 px-5 py-3 text-sm font-semibold uppercase text-white hover:bg-neutral-800/50 hover:border-neutral-600 transition-all duration-200",onClick:o[20]||(o[20]=g=>ie("login"))},r(t(n)("home-page.Tologinpage")),1)])])):b.value==="support"?(s(),l("div",Ur,[o[69]||(o[69]=e("div",{class:"rounded-full bg-primary/10 p-3"},[e("svg",{class:"h-10 w-10 text-primary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18.364 5.636l-3.536 3.536m0 5.656l3.536 3.536M9.172 9.172L5.636 5.636m3.536 9.192l-3.536 3.536M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-5 0a4 4 0 11-8 0 4 4 0 018 0z"})])],-1)),e("h2",qr,r(t(n)("translation.support_title")),1),e("p",Or,[W(r(t(n)("translation.support_message_before"))+" ",1),o[68]||(o[68]=e("a",{class:"text-primary hover:text-primary/80 underline transition-colors",href:"mailto:[email protected]"},"[email protected]",-1)),W(r(t(n)("translation.support_message_after")),1)])])):x("",!0)])])):x("",!0)]),_:1})])):x("",!0)]),_:1})]))}}),Zr=Pe(Nr,[["__scopeId","data-v-316ca685"]]),Gr={class:"relative px-6 pt-7 pb-2 sm:px-8 sm:pt-8"},Yr={class:"flex gap-4"},Kr={class:"min-w-0 flex-1 pt-0.5"},Xr={id:"website-relaunch-title",class:"mt-1 text-xl font-semibold leading-tight text-white sm:text-2xl"},Jr={class:"relative max-h-[min(52vh,28rem)] overflow-y-auto px-6 sm:px-8"},Qr={class:"text-sm leading-relaxed text-neutral-300 sm:text-[0.9375rem] sm:leading-7"},es={class:"mt-4 text-sm leading-relaxed text-neutral-300 sm:text-[0.9375rem] sm:leading-7"},ts={class:"relative mt-6 flex flex-col gap-3 border-t border-neutral-800/80 bg-black/20 px-6 py-5 sm:flex-row sm:items-center sm:justify-end sm:px-8"},os=["disabled"],rs={key:0,class:"mr-2 h-4 w-4 animate-spin rounded-full border-2 border-secondary/40 border-t-secondary","aria-hidden":"true"},ss=we({__name:"WebsiteRelaunchNoticeModal",setup(T){const n=De(),{t:h}=Ee(),y=f(!1),D=A(()=>n.props.showWebsiteRelaunchNotice===!0),v=()=>{y.value||!D.value||(y.value=!0,Ce.post(route("website-relaunch-notice.acknowledge"),{},{preserveScroll:!0,onFinish:()=>{y.value=!1}}))},V=M=>{M.key==="Escape"&&D.value&&(M.preventDefault(),v())};return ge(D,M=>{typeof document>"u"||(document.body.style.overflow=M?"hidden":"")}),Te(()=>{document.addEventListener("keydown",V)}),Se(()=>{document.removeEventListener("keydown",V),typeof document<"u"&&(document.body.style.overflow="")}),(M,b)=>(s(),se(be,{to:"body"},[L(fe,{"enter-active-class":"transition duration-300 ease-out","leave-active-class":"transition duration-200 ease-in","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:J(()=>[D.value?(s(),l("div",{key:0,class:"fixed inset-0 z-[10003] flex items-center justify-center bg-black/80 backdrop-blur-md p-4 sm:p-6",role:"dialog","aria-modal":"true","aria-labelledby":"website-relaunch-title",onClick:X(v,["self"])},[e("div",{class:"relative w-full max-w-lg overflow-hidden rounded-2xl border border-primary/20 bg-gradient-to-b from-neutral-900 via-neutral-950 to-black shadow-[0_0_80px_-20px_rgba(250,230,0,0.35)]",onClick:b[0]||(b[0]=X(()=>{},["stop"]))},[b[4]||(b[4]=e("div",{class:"pointer-events-none absolute -right-20 -top-24 h-56 w-56 rounded-full bg-primary/[0.07] blur-3xl","aria-hidden":"true"},null,-1)),b[5]||(b[5]=e("div",{class:"pointer-events-none absolute -bottom-16 -left-16 h-48 w-48 rounded-full bg-primary/[0.05] blur-2xl","aria-hidden":"true"},null,-1)),b[6]||(b[6]=e("div",{class:"h-1 w-full bg-gradient-to-r from-transparent via-primary/90 to-transparent"},null,-1)),e("div",Gr,[e("div",Yr,[b[2]||(b[2]=e("div",{class:"flex h-14 w-14 flex-shrink-0 items-center justify-center rounded-2xl border border-primary/25 bg-primary/10 shadow-inner","aria-hidden":"true"},[e("svg",{class:"h-7 w-7 text-primary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.75",d:"M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"})])],-1)),e("div",Kr,[b[1]||(b[1]=e("p",{class:"text-xs font-semibold uppercase tracking-[0.2em] text-primary/90"}," Fight24 ",-1)),e("h2",Xr,r(t(h)("translation.website_relaunch_title")),1)])])]),e("div",Jr,[e("p",Qr,r(t(h)("translation.website_relaunch_body_main")),1
1),e("p",es,[W(r(t(h)("translation.website_relaunch_body_feedback_before"))+" ",1),b[3]||(b[3]=e("a",{href:"mailto:[email protected]",class:"font-medium text-primary underline decoration-primary/40 underline-offset-2 transition-colors hover:text-primary hover:decoration-primary"}," [email protected] ",-1)),W(" "+r(t(h)("translation.website_relaunch_body_feedback_after")),1)])]),e("div",ts,[e("button",{type:"button",class:"inline-flex w-full items-center justify-center rounded-xl bg-primary px-5 py-3 text-sm font-semibold text-secondary shadow-lg shadow-primary/10 transition hover:brightness-105 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:ring-offset-neutral-950 disabled:cursor-not-allowed disabled:opacity-60 sm:w-auto sm:min-w-[9rem]",disabled:y.value,onClick:v},[y.value?(s(),l("span",rs)):x("",!0),W(" "+r(t(h)("translation.website_relaunch_cta")),1)],8,os)])])])):x("",!0)]),_:1})]))}}),as={class:"relative overflow-hidden border-t border-neutral-800 bg-gradient-to-b from-neutral-900 via-neutral-950 to-black"},ns={class:"relative mx-auto max-w-7xl px-4 pb-[max(2rem,env(safe-area-inset-bottom))] pt-6 sm:px-6 sm:pt-7 md:px-8 md:pb-8 md:pt-8 lg:px-12 lg:pb-8 lg:pt-10"},ls={class:"mb-5 grid grid-cols-1 items-start gap-6 sm:mb-6 sm:gap-7 md:mb-6 md:grid-cols-3 md:gap-8 lg:gap-12"},is={class:"flex min-w-0 flex-col"},ds={class:"relative mb-3 inline-block text-xs font-bold uppercase tracking-wider text-white sm:mb-4 sm:text-sm md:mb-5 md:text-sm"},us={class:"flex flex-wrap items-center gap-2.5 sm:gap-3"},cs=["href","aria-label"],ps=["alt","src"],ms={class:"pointer-events-none absolute -bottom-8 left-1/2 hidden -translate-x-1/2 whitespace-nowrap text-xs text-neutral-400 opacity-0 transition-opacity duration-300 group-hover:opacity-100 md:block","aria-hidden":"true"},vs={class:"flex min-w-0 flex-col"},fs={class:"relative mb-3 inline-block text-xs font-bold uppercase tracking-wider text-white sm:mb-4 sm:text-sm md:mb-5 md:text-sm"},hs={class:"border-t border-neutral-800/80 pt-4 md:border-0 md:pt-0"},gs={class:"flex flex-col items-stretch justify-between gap-3 md:flex-row md:items-center md:gap-4"},ys={class:"text-left text-xs text-neutral-500 sm:text-sm"},bs={"aria-label":"Legal",class:"flex max-w-full flex-wrap items-center justify-start gap-x-2 gap-y-1.5 text-xs sm:gap-x-3 sm:gap-y-2 sm:text-sm md:justify-end md:gap-x-4"},xs=we({__name:"Footer",setup(T){const{t:n}=Ee(),h=new Date().getFullYear(),y=A(()=>n("home-page.Imprint")),D=A(()=>n("home-page.Protectionofminors")),v=A(()=>n("home-page.Allrightsreserved")),V=[{icon:"/images/SVG/F24_Icons_F24_YouTube.svg",url:"https://m.youtube.com/@fight24tv",alt:"YouTube"},{icon:"/images/SVG/F24_Icons_F24_Instagram.svg",url:"https://www.instagram.com/fight24.tv?igsh=dWc3MTI3cTFuaGlh",alt:"Instagram"},{icon:"/images/SVG/F24_Icons_F24_Facebook.svg",url:"https://www.facebook.com/fight24.tv",alt:"Facebook"},{icon:"/images/SVG/F24_Icons_F24_X.svg",url:"https://x.com/fight24tv?s=21&t=SinGnsUHPA_ipcWPblaT-Q",alt:"X / Twitter"},{icon:"/images/SVG/F24_Icons_F24_TikTok.svg",url:"https://www.tiktok.com/@fight24.tv?_t=8pFATMcaQnR&_r=1",alt:"TikTok"}];return(M,b)=>(s(),l("footer",as,[b[6]||(b[6]=e("div",{class:"pointer-events-none absolute inset-x-0 top-0 h-px bg-gradient-to-r from-transparent via-primary to-transparent opacity-50 sm:h-0.5 md:h-1","aria-hidden":"true"},null,-1)),e("div",ns,[e("div",ls,[e("div",is,[e("h3",ds,[W(r(t(n)("home-page.footer_follow_us")||"Follow Us")+" ",1),b[0]||(b[0]=e("span",{class:"absolute -bottom-1 left-0 h-0.5 w-6 bg-primary sm:w-8"},null,-1))]),e("div",us,[(s(),l(he,null,$e(V,H=>e("a",{key:H.alt,href:H.url,"aria-label":H.alt,class:"group relative flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-neutral-800 transition-all duration-300 hover:bg-primary hover:shadow-lg hover:shadow-primary/20 sm:h-10 sm:w-10 md:h-10 md:w-10 md:hover:scale-110 active:scale-95",rel:"noreferrer",target:"_blank"},[e("img",{alt:H.alt,src:H.icon,class:"h-[18px] w-[18px] object-contain transition-all duration-300 group-hover:brightness-0 group-hover:invert sm:h-5 sm:w-5"},null,8,ps),e("span",ms,r(H.alt),1)],8,cs)),64))])]),b[3]||(b[3]=Ue('<div class="flex min-w-0 flex-col items-start" data-v-d69c92eb><h3 class="relative mb-3 inline-block text-xs font-bold uppercase tracking-wider text-white sm:mb-4 sm:text-sm md:mb-5 md:text-sm" data-v-d69c92eb> Powered By <span class="absolute -bottom-1 left-0 h-0.5 w-6 bg-primary sm:w-8" data-v-d69c92eb></span></h3><a href="https://fightcard.live/promoters/" target="_blank" rel="noopener noreferrer" class="inline-block max-w-full self
1-start transition-opacity hover:opacity-90" aria-label="Fightcard.live – Run your entire fight show from one control panel" data-v-d69c92eb><img src="/images/vector.png" alt="Fightcard Live" class="h-14 w-auto max-w-[min(220px,100%)] object-contain object-left sm:h-16 md:h-24 md:max-w-none" data-v-d69c92eb></a></div>',1)),e("div",vs,[e("h3",fs,[W(r(t(n)("home-page.contact"))+" ",1),b[1]||(b[1]=e("span",{class:"absolute -bottom-1 left-0 h-0.5 w-6 bg-primary sm:w-8"},null,-1))]),b[2]||(b[2]=Ue('<ul class="space-y-2.5 text-sm text-neutral-400 sm:space-y-3" data-v-d69c92eb><li class="flex items-start gap-2" data-v-d69c92eb><svg class="mt-0.5 h-4 w-4 shrink-0 text-primary" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true" data-v-d69c92eb><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" data-v-d69c92eb></path></svg><a href="mailto:[email protected]" class="min-w-0 break-all transition-colors duration-300 hover:text-primary sm:break-normal" data-v-d69c92eb> [email protected] </a></li><li class="flex items-start gap-2" data-v-d69c92eb><svg class="mt-0.5 h-4 w-4 shrink-0 text-primary" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true" data-v-d69c92eb><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" data-v-d69c92eb></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z" data-v-d69c92eb></path></svg><span class="text-pretty" data-v-d69c92eb>Hausen 9, 85551 Kirchheim bei München</span></li></ul>',1))])]),e("div",hs,[e("div",gs,[e("p",ys," © "+r(t(h))+" Fight24.tv. "+r(v.value),1),e("nav",bs,[L(t(xe),{href:M.route("imprint"),class:"text-neutral-500 transition-colors duration-300 hover:text-primary"},{default:J(()=>[W(r(y.value),1)]),_:1},8,["href"]),b[4]||(b[4]=e("span",{class:"select-none text-neutral-700","aria-hidden":"true"},"·",-1)),L(t(xe),{href:M.route("youth-protection"),class:"text-neutral-500 transition-colors duration-300 hover:text-primary"},{default:J(()=>[W(r(D.value),1)]),_:1},8,["href"]),b[5]||(b[5]=e("span",{class:"select-none text-neutral-700","aria-hidden":"true"},"·",-1)),L(t(xe),{href:M.route("privacy-policy"),class:"text-neutral-500 transition-colors duration-300 hover:text-primary"},{default:J(()=>[W(r(t(n)("home-page.privacy-policy")),1)]),_:1},8,["href"])])])])]),b[7]||(b[7]=e("div",{class:"pointer-events-none absolute bottom-6 left-0 right-0 h-px bg-gradient-to-r from-transparent via-primary/30 to-transparent sm:bottom-7","aria-hidden":"true"},null,-1))]))}}),ws=Pe(xs,[["__scopeId","data-v-d69c92eb"]]),Fe="__fight24SearchModal",qe="fight24-search-modal-restore",Ne=Qe("search-modal",{state:()=>({isOpen:!1,sportsList:{},yearlyEvents:{},latestVideos:[],liveSearchSnapshot:null}),actions:{open(){this.isOpen=!0},close(){this.isOpen=!1},toggle(){this.isOpen=!this.isOpen},setLiveSearchSnapshot(T){this.liveSearchSnapshot=T},persistLiveSearchSnapshotToSession(){if(this.liveSearchSnapshot)try{sessionStorage.setItem(qe,JSON.stringify(this.liveSearchSnapshot))}catch{}},setContext(T){T.sportsList&&(this.sportsList=T.sportsList),T.yearlyEvents&&(this.yearlyEvents=T.yearlyEvents),T.latestVideos&&(this.latestVideos=T.latestVideos)}}});function _s(T){if(!T)return null;const n=T.match(/^(\d{4})-(\d{2})-(\d{2})[T ](\d{1,2}):(\d{2})/);if(n)return{year:n[1],month:n[2],day:n[3],time:`${n[4].padStart(2,"0")}:${n[5]}`};const h=new Date(T);if(Number.isNaN(h.getTime()))return null;const y=h.getUTCFullYear().toString(),D=(h.getUTCMonth()+1).toString().padStart(2,"0"),v=h.getUTCDate().toString().padStart(2,"0"),V=h.getUTCHours().toString().padStart(2,"0"),M=h.getUTCMinutes().toString().padStart(2,"0");return{year:y,month:D,day:v,time:`${V}:${M}`}}const ks=["src","alt","loading","fetchpriority"],$s={class:"fightpass__meta"},Cs={class:"fightpass__date"},Ms={class:"fightpass__title"},Ss=we({__name:"FightPassCard",props:{data:{},locale:{},for:{},preferEventImage:{type:Boolean},preferFightpassImage:{type:Boolean},priority:{type:Boolean}
1,useSearchHistory:{type:Boolean},hideButton:{type:Boolean}},setup(T){const n=T,{t:h}=Ee(),y=A(()=>n.locale==="de"?"de":n.locale==="fr"?"fr":"en"),D=(z,P)=>z?typeof z=="string"?z:z[P]??z.en??z.de??z.fr??"":"",v=A(()=>{var P;if(n.for==="event")return n.data;const z=n.data;return z.event??((P=z.events)==null?void 0:P[0])??null}),V=A(()=>{var z;return D(((z=v.value)==null?void 0:z.name)??null,y.value)||D(n.data.name??null,y.value)}),M=A(()=>"/images/card_placeholder.jpg"),b=A(()=>{var S;const z=((S=v.value)==null?void 0:S.start_date)??null,P=_s(z);return P?`${P.day}.${P.month}.${P.year}`:""}),H=A(()=>{var P,S,i,I;const z=((P=n.data)==null?void 0:P.heroImage)||((S=v.value)==null?void 0:S.hero_image);if(z)return z;if(n.for==="event"){const E=(i=n.data)==null?void 0:i.thumbnail_url;if(E)return E}else{const E=n.data,B=E.events??(E.event?[E.event]:[]);if(n.preferFightpassImage){const Q=(E==null?void 0:E.thumbnail_url)??null;return Q||M.value}const F=((I=B.find(Q=>!!(Q!=null&&Q.thumbnail_url)))==null?void 0:I.thumbnail_url)??null;if(F)return F;const ae=(E==null?void 0:E.thumbnail_url)??null;if(ae)return ae}return M.value}),R=f(!1);ge(H,()=>{R.value=!1});const w=A(()=>R.value?M.value:H.value),G=()=>{R.value=!0},_=()=>{if(n.useSearchHistory){const z=Ne();z.persistLiveSearchSnapshotToSession(),z.close()}n.for==="event"?Ce.visit(`/events/${n.data.uuid}`):Ce.visit(`/fightpasses/${n.data.uuid}`)};return(z,P)=>(s(),l("article",{class:"fightpass",onClick:_},[e("div",{class:"fightpass__media",onClick:X(_,["stop"])},[e("img",{src:w.value,alt:V.value,class:"fightpass__image",width:"260",height:"360",loading:T.priority?"eager":"lazy",fetchpriority:T.priority?"high":void 0,decoding:"async",referrerpolicy:"no-referrer",onError:G},null,40,ks)]),e("div",{class:"fightpass__body",onClick:P[0]||(P[0]=X(()=>{},["stop"]))},[e("div",$s,[e("span",Cs,r(b.value),1),e("h3",Ms,r(V.value),1)]),T.hideButton?x("",!0):(s(),l("button",{key:0,class:"fightpass__button box-border flex w-full shrink-0 cursor-pointer items-center justify-center border-0 py-2 px-3 text-base font-bold uppercase leading-tight text-base-black transition-colors bg-base-yellow rounded-[6px] hover:bg-[#ffe24a] md:px-5",type:"button",onClick:_},r(t(h)("home-page.list_card_section_see_more")),1))])]))}}),Es=Pe(Ss,[["__scopeId","data-v-8e13cca3"]]),Ps={class:"search-modal-header"},zs={class:"flex items-center justify-end"},js={class:"bg-[#0c0c0c] rounded-lg p-1 shadow-md"},Rs={class:"w-full h-full"},Bs={class:"px-2 sm:px-3 mb-4"},Ts={class:"search-input-row"},Vs=["placeholder"],Ls={class:"search-date-actions"},Fs={class:"search-date-filter"},As={class:"search-date-input-wrap"},Is=["value","aria-label"],Ds={class:"search-date-placeholder","aria-hidden":"true"},Hs={class:"search-tabs-row"},Us={class:"p-2 sm:block md:flex flex-col lg:flex-row justify-between"},qs={class:"w-full"},Os={class:"text-primary font-bold mb-4"},Ws={class:"w-full"},Ns={key:0,class:"flex min-h-[300px] items-center justify-center text-white/70"},Zs={key:1,class:"no-results-container"},Gs={class:"no-results-icon-wrapper"},Ys={class:"no-results-title"},Ks={class:"no-results-subtitle"},Xs={key:2,class:"no-results-container"},Js={class:"no-results-icon-wrapper"},Qs={class:"no-results-title"},ea={class:"no-results-subtitle"},ta={class:"no-results-title"},oa={class:"no-results-subtitle"},ra={key:3,class:"search-events-grid"},sa={key:4,class:"search-videos-grid"},aa=["onClick"],na={class:"relative overflow-hidden",style:{background:"url('/images/card_placeholder.jpg') center center / 100% no-repeat"}},la={key:0,class:"absolute top-0 left-0 py-1 px-3 text-white bg-[#0c0c0c] z-20 text-xs"},ia={key:2,class:"absolute top-0 right-0 py-1 px-3 bg-primary text-[#0c0c0c] z-20"},da={class:"relative w-full",style:{"padding-top":"56.25%"}},ua={class:"absolute top-0 left-0 right-0 bottom-0 overflow-hidden"},ca=["src","alt"],pa={class:"absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2 z-10",type:"button"},ma=["alt"],va={class:"bg-[#0c0c0c] px-2 flex flex-col justify-between text-left pb-3",style:{"min-height":"150px"}},fa={class:"mt-3"},ha={key:0,class:"text-gray-400 text-sm uppercase"},ga={type:"button",class:"max-h-16 w-[95%] font-bold md:text-[18px] text-[14px] text-left search-title-clamp uppercase text-white"},ya={class:"text-primary text-sm uppercase"},ba={key:0,class:"bg-[#0c0c0c] w-full flex items-center justify-between flex-wrap gap-1"},xa=["onClick"],wa={class:"text-base-yellow text-sm"},_a=we({__name:"SearchModal",props:{isOpen:{type:Boolean}},emits:["close","search"],setup(T,{emit:n}){const{t:h,locale:y}=Ee(),D=T,v=A(()=>y.value==="de"?"de":y.value==="fr"?"fr":y.value==="nl"?"nl":"en"),V=n,M=Ne(),b=f(!1),H=f(!1),R=f(""),w=f(null),G=f(!1),_=f(!1),z=f(!1),P=f("events"),S=f(null),i=f([]),I=f([]);let E=0,B="",F="";const ae=De(),Q=A(()=>{var c;return((c=ae.props.auth)==null?void 0:c.user)??null}),ce=A(()=>{var c;return((c=Q.value)==null?void 0:c.is_paywall_bypassed)===!0}),le=()=>{var k;if(typeof window>"u"||(k=window.history.state)!=null&&k[Fe])return;const c=typeof window.history.state=="object"&&window.history.state!==null?{...window.history.state}:{};window.history.pushState({...c,[Fe]:!0},"",window.location.href)},de=()=>{var c;if(typeof window<"u"&&((c=window.history.state)!=null&&c[Fe])){b.value=!0,window.history.back();return}V("close")},oe=()=>{V("close")},Z=c=>{var k;if(b.value){b.value=!1,M.close();return}if((k=c.state)!=null&&k[Fe]){H.value=!0,M.open();return}M.isOpen&&M.close()},ie=c=>{const k=c.target.value;w.value=k||null,He(()=>{me()})},K=()=>{w.value=null,He(()=>{me()})},Y=c=>c.trim().toLowerCase();let C;const U=f(!1),re=c=>{R.value=typeof c.query=="string"?c.query:"",w.value=c.selectedDate??null,P.value=c.activeTab==="videos"?"videos":"events",U.value=!!c.hasSearched,i.value=Array.isArray(c.eventResults)?c.eventResults:[],I.value=Array.isArray(c.videoResults)?c.videoResults:[],M.setLiveSearchSnapshot({query:R.value,selectedDate:w.value,activeTab:P.value,hasSearched:U.value,eventResults:i.value,videoResults:I.value})},j=()=>{try{const k=sessionStorage.getItem(qe);if(k){const $=JSON.parse(k);if($&&typeof $=="object")return re($),!0}}catch{}const c=M.liveSearchSnapshot;return c&&(c.hasSearched||c.eventResults.length>0||c.videoResults.length>0||Y(c.query)||c.selectedDate)?(re(c),!0):!1},me=()=>{const c=Y(R.value);if(!c&&!w.value){i.value=[],I.value=[],U.value=!1;return}C&&window.clearTimeout(C),z.value=!0;const k={limit:500};c&&(k.q=R.value),w.value&&(k.date=w.value),window.axios.get("/api/search",{params:k}).then($=>{var te,p;i.value=((te=$.data)==null?void 0:te.events)??[],I.value=((p=$.data)==null?void 0:p.videos)??[],U.value=!0}).finally(()=>{z.value=!1})},q=()=>{C&&window.clearTimeout(C),C=window.setTimeout(()=>{me()},1e3)};ge(R,()=>{q()}),ge([R,w,P,U,i,I],()=>{M.setLiveSearchSnapshot({query:R.value,selectedDate:w.value,activeTab:P.value,hasSearched:U.value,eventResults:i.value,videoResults:I.value})},{deep:!0});const o=A(()=>{if(!w.value)return"";const c=w.value.split("-");return c.length!==3?w.value:`${c[2]}.${c[1]}.${c[0]}`}),g=c=>{if(!c)return"";if(typeof c=="string")return c;const k=v.value;return c[k]??c.en??c.de??c.fr??c.nl??""},_e=c=>{var k,$;return g((($=(k=c.fight)==null?void 0:k.sport)==null?void 0:$.name)??null)},Ve=c=>{c.target.src="/images/card_placeholder.jpg"},Me=c=>
1{var te,p,d,u,a,m,O,N;M.persistLiveSearchSnapshotToSession();const k=c.is_fightpass_required,$=(p=(te=c.event)==null?void 0:te.fightpass)==null?void 0:p.is_orderable;k&&$?Q.value&&(ce.value||(u=(d=c.event)==null?void 0:d.fightpass)!=null&&u.is_purchased)?(oe(),Ce.visit(`/watch/${(a=c.event)==null?void 0:a.uuid}/${c.uuid}`)):(oe(),Ce.visit(`/fightpasses/${(O=(m=c.event)==null?void 0:m.fightpass)==null?void 0:O.uuid}`)):(oe(),Ce.visit(`/watch/${(N=c.event)==null?void 0:N.uuid}/${c.uuid}`))},ze=c=>{var k,$;M.persistLiveSearchSnapshotToSession(),oe(),Ce.visit(`/fightpasses/${($=(k=c.event)==null?void 0:k.fightpass)==null?void 0:$.uuid}`)};ge(()=>D.isOpen,async c=>{var k,$;if(c){if(typeof document<"u"&&typeof window<"u"){const d=window.innerWidth-document.documentElement.clientWidth;E=window.scrollY||window.pageYOffset||document.documentElement.scrollTop;const u=getComputedStyle(document.body);B=document.body.style.width||u.width,F=document.body.style.marginRight||u.marginRight,document.body.style.position="fixed",document.body.style.top=`-${E}px`,document.body.style.width=B,d>0&&(document.body.style.marginRight=`${d}px`),document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden",document.documentElement.style.height="100%"}const te=typeof window<"u"&&!!((k=window.history.state)!=null&&k[Fe]),p=H.value;if(p&&(H.value=!1),p||te)j();else{le();try{sessionStorage.removeItem(qe)}catch{}R.value="",w.value=null,i.value=[],I.value=[],U.value=!1,P.value="events"}await He(),($=S.value)==null||$.focus()}else typeof document<"u"&&typeof window<"u"&&(document.body.style.position="",document.body.style.top="",document.body.style.width=B||"",document.body.style.marginRight=F||"",document.body.style.overflow="",document.documentElement.style.overflow="",document.documentElement.style.height="",window.scrollTo(0,E),E=0,B="",F="")});const ye=c=>{c.key==="Escape"&&D.isOpen&&de()},Re=c=>{c.key==="Enter"&&me()};return Te(()=>{document.addEventListener("keydown",ye),window.addEventListener("popstate",Z)}),Se(()=>{if(document.removeEventListener("keydown",ye),window.removeEventListener("popstate",Z),typeof document<"u"&&typeof window<"u"){const c=document.body.style.top;document.body.style.position="",document.body.style.top="",document.body.style.width="",document.body.style.overflow="",document.documentElement.style.overflow="",document.documentElement.style.height="",document.documentElement.style.paddingRight="",c&&window.scrollTo(0,parseInt(c||"0")*-1)}}),(c,k)=>(s(),se(be,{to:"body"},[L(fe,{"enter-active-class":"transition-all duration-300 ease-out","leave-active-class":"transition-all duration-200 ease-in","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:J(()=>[T.isOpen?(s(),l("div",{key:0,class:"fixed inset-0 flex items-center justify-center bg-[rgba(0,0,0,0.7)] md:bg-[#000000B2] z-[9999]",role:"button",tabindex:"0",onClick:X(de,["self"])},[e("div",{class:"search-modal-panel scrollbar-hide mt-[8vh] md:mt-0",onClick:k[6]||(k[6]=X(()=>{},["stop"]))},[e("div",Ps,[e("div",zs,[e("div",{class:"cursor-pointer",onClick:de},[L(t(We),{class:"w-6 h-6 text-white"})])]),e("div",js,[e("div",Rs,[e("div",Bs,[e("div",Ts,[ue(e("input",{ref_key:"inputRef",ref:S,"onUpdate:modelValue":k[0]||(k[0]=$=>R.value=$),type:"search",autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",class:"search-query-field bg-[#0c0c0c] placeholder:text-gray-500 border rounded px-3 py-2 sm:px-4 flex-1 min-w-0 text-white outline-0 ring-0 focus:outline-0 focus:ring-0 focus:border-primary",placeholder:t(h)("home-page.Lookforfighter"),onFocus:k[1]||(k[1]=$=>_.value=!0),onKeydown:Re},null,40,Vs),[[ke,R.value]]),e("div",Ls,[e("div",Fs,[e("div",As,[e("input",{type:"date",value:w.value??"",class:ee(["search-date-input",{"search-date-input--show-hint":!w.value&&!G.value}]),"aria-label":t(h)("translation.search_modal_date_filter_aria"),onInput:ie,onFocus:k[2]||(k[2]=$=>G.value=!0),onBlur:k[3]||(k[3]=$=>G.value=!1)},null,42,Is),ue(e("span",Ds," dd/mm/yyyy ",512),[[ot,!w.value&&!G.value]])]),w.value?(s(),l("button",{key:0,t
1ype:"button",class:"search-date-clear",onClick:K}," × ")):x("",!0)])])])]),e("div",Hs,[e("button",{type:"button",class:ee(["px-4 py-2 rounded-l-lg uppercase font-semibold",P.value==="events"?"bg-primary text-black":"bg-gray-200 text-gray-500"]),onClick:k[4]||(k[4]=$=>P.value="events")},r(t(h)("translation.events")),3),e("button",{type:"button",class:ee(["px-4 py-2 rounded-r-lg uppercase font-semibold",P.value==="videos"?"bg-primary text-black":"bg-gray-200 text-gray-500"]),onClick:k[5]||(k[5]=$=>P.value="videos")},r(t(h)("translation.videos")),3)])])])]),e("div",Us,[e("div",qs,[e("h5",Os,r(P.value==="events"?t(h)("translation.events"):t(h)("translation.videos")),1),e("div",Ws,[z.value?(s(),l("div",Ns,r(t(h)("translation.searching")),1)):U.value?P.value==="events"&&i.value.length===0||P.value==="videos"&&I.value.length===0?(s(),l("div",Xs,[e("div",Js,[w.value&&P.value==="events"?(s(),se(t(it),{key:0,class:"no-results-icon"})):(s(),se(t(Xe),{key:1,class:"no-results-icon"}))]),w.value&&P.value==="events"?(s(),l(he,{key:0},[e("p",Qs,r(t(h)("translation.search_modal_no_events_on_date",{date:o.value})),1),e("p",ea,r(t(h)("translation.search_modal_no_events_on_date_hint")),1),e("button",{type:"button",class:"no-results-clear-btn",onClick:K},r(t(h)("translation.search_modal_show_all_events")),1)],64)):(s(),l(he,{key:1},[e("p",ta,r(t(h)("translation.noResultsFound")),1),e("p",oa,r(t(h)("translation.tryCheckingYourSpellingOrUseMoreGeneralTerms")),1),w.value?(s(),l("button",{key:0,type:"button",class:"no-results-clear-btn",onClick:K},r(t(h)("translation.search_modal_clear_date_filter")),1)):x("",!0)],64))])):P.value==="events"?(s(),l("div",ra,[(s(!0),l(he,null,$e(i.value,($,te)=>(s(),se(Es,{key:$.id,data:$,locale:v.value,for:"event",priority:te<4,"use-search-history":!0},null,8,["data","locale","priority"]))),128))])):P.value==="videos"?(s(),l("div",sa,[(s(!0),l(he,null,$e(I.value,$=>{var te,p,d,u,a,m,O,N;return s(),l("div",{key:$.id,class:"search-video-card"},[e("div",{class:"flex-shrink-0 border border-[#373232] rounded-lg overflow-hidden bg-[#0c0c0c] w-full cursor-pointer",onClick:ne=>Me($)},[e("div",na,[(te=$.fight)!=null&&te.is_knockout?(s(),l("span",la,r(t(h)("translation.search_badge_ko")),1)):x("",!0),(p=$.fight)!=null&&p.is_title_fight?(s(),l("span",{key:1,class:ee(["absolute top-0 left-0 py-1 px-3 text-[#0c0c0c] bg-white z-20 text-xs",{"ml-12":(d=$.fight)==null?void 0:d.is_knockout}])}
1,r(t(h)("translation.search_badge_title")),3)):x("",!0),$.is_fightpass_required?(s(),l("span",ia,"$")):x("",!0),e("div",da,[e("div",ua,[e("img",{class:"object-cover w-full h-full",src:$.thumbnail_url||"/images/card_placeholder.jpg",alt:g($.title),onError:Ve},null,40,ca)]),e("button",pa,[e("img",{src:"/images/Play_Circle.svg",alt:t(h)("translation.search_modal_play_video"),width:"92",height:"92"},null,8,ma)])])]),e("div",va,[e("div",fa,[_e($)?(s(),l("p",ha,r(_e($)),1)):x("",!0),e("button",ga,r(g($.title)),1),e("span",ya,r(g((u=$.event)==null?void 0:u.name)),1)]),$.is_fightpass_required&&((m=(a=$.event)==null?void 0:a.fightpass)!=null&&m.is_orderable)?(s(),l("div",ba,[e("button",{type:"button",class:"inline-flex items-center justify-center rounded-[6px] bg-base-yellow px-3 py-2 text-base font-bold uppercase text-base-black transition-colors hover:bg-[#ffe24a] md:px-5",onClick:X(ne=>ze($),["stop"])},r(t(h)("translation.fightpass")),9,xa),e("p",wa,r(t(h)("translation.search_video_price_only",{price:((N=(O=$.event)==null?void 0:O.fightpass)==null?void 0:N.price_formatted)??""})),1)])):x("",!0)])],8,aa)])}),128))])):x("",!0):(s(),l("div",Zs,[e("div",Gs,[L(t(Xe),{class:"no-results-icon"})]),e("p",Ys,r(t(h)("translation.search")),1),e("p",Ks,r(t(h)("home-page.Lookforfighter")),1)]))])])])])])):x("",!0)]),_:1})]))}}),ka=Pe(_a,[["__scopeId","data-v-3bb8486b"]]),$a={class:"fixed top-0 left-0 right-0 z-[1000] bg-gradient-to-b from-neutral-900 via-neutral-900 to-neutral-950 text-white border-b border-neutral-800/50 shadow-lg shadow-black/20 overflow-x-hidden overflow-y-hidden"},Ca={class:"hidden md:flex h-20 items-center justify-between px-4 md:px-6 lg:px-10 relative"},Ma={class:"hidden items-center ml-[37.5px] xl:flex"},Sa={class:"flex"},Ea={class:"flex items-center gap-2 md:gap-3 flex-1 justify-end min-w-0"},Pa={class:"text-base group-hover:text-primary transition-colors duration-200 whitespace-nowrap",style:{color:"#ffffff"}},za=["href"],ja={class:"text-xs sm:text-sm font-semibold uppercase text-neutral-400 group-hover:text-primary transition-colors duration-200 whitespace-nowrap"},Ra={class:"relative size-6 rounded-full flex items-center justify-center bg-gradient-to-br from-primary to-yellow-600 text-secondary font-bold text-xs shadow-md ring-2 ring-primary/20 group-hover:ring-primary/40 transition-all flex-shrink-0"},Ba={class:"px-5 pt-4 pb-4 border-b border-neutral-700/50 bg-gradient-to-r from-primary/10 via-primary/5 to-transparent"},Ta={class:"flex items-center gap-3"},Va={class:"relative w-12 h-12 rounded-full flex items-center justify-center bg-gradient-to-br from-primary to-yellow-600 text-secondary font-bold text-sm shadow-lg ring-2 ring-primary/30"},La={class:"flex-1 min-w-0"},Fa={class:"text-white font-bold text-sm uppercase truncate"},Aa={class:"text-neutral-400 text-xs truncate uppercase mt-0.5"},Ia={class:"py-2"},Da={class:"border-t border-neutral-700/50 pt-2"},Ha=["src","alt"],Ua={class:"hidden md:inline",style:{color:"#ffffff"}},qa=["onClick"],Oa=["src","alt"],Wa={class:"md:hidden"},Na={class:"flex h-16 items-center justify-between px-3 sm:px-4 relative"},Za={class:"flex items-center gap-2"},Ga=["href"],Ya={class:"text-xs font-semibold uppercase text-neutral-400 group-hover:text-primary transition-colors duration-200 whitespace-nowrap hidden sm:inline"},Ka={class:"relative size-6 rounded-full flex items-center justify-center bg-gradient-to-br from-primary to-yellow-600 text-secondary font-bold text-xs shadow-md ring-2 ring-primary/20 group-hover:ring-primary/40 transition-all"},Xa={class:"px-5 pt-4 pb-4 border-b border-neutral-700/50 bg-gradient-to-r from-primary/10 via-primary/5 to-transparent"},Ja={class:"flex items-center gap-3"},Qa={class:"relative w-12 h-12 rounded-full flex items-center justify-center bg-gradient-to-br from-primary to-yellow-600 text-secondary font-bold text-sm shadow-lg ring-2 ring-primary/30"},en={class:"flex-1 min-w-0"},tn={class:"text-white font-bold text-sm uppercase truncate"},on={class:"text-neutral-400 text-xs truncate uppercase mt-0.5"},rn={class:"py-2"},sn={class:"border-t border-neutral-700/50 pt-2"},an=["src","alt"],nn=["onClick"],ln=["src","alt"],dn={class:"flex items-center justify-center gap-3 sm:gap-4 bg-gradient-to-b from-neutral-900 to-neutral-950 border-t border-neutral-800/50 px-3 sm:px-4 py-3 text-sm uppercase"},un={class:"relative z-10"},cn={class:"px-6 pt-6 pb-4"},pn={class:"flex items-center gap-4"},mn={id:"delete-account-title",class:"text-lg font-semibold text-white"},vn={class:"px-6 pb-4"},fn={class:"text-sm text-neutral-300 leading-relaxed"},hn={class:"px-6 py-4 border-t border-neutral-700/50 flex items-center justify-end gap-3"},Je=10,gn=we({__name:"Header",props:{locale:{}},emits:["login","register"],setup(T){const n=De(),h=Oe(),y=["en","de","fr","nl"],D=A(()=>n.props.locale??"en"),v=f(D.value),V=f(!1),M=f(null),b=f(null),H=f(null),R=f(null),w=f(null),G=f(null),_=f(!1),z=f(null),P=f(null),S=f(null),i=f(null),I=f(null),E=f(null),B=f(!1),F=f(null),ae=f(null),Q=f(null),ce=Ne(),le=f(null),de=f(!1),oe=f({top:0,right:0}),Z=f({top:0,right:0}),ie=f({top:0,right:0}),K=f({top:0,right:0}),Y=f({top:0,right:0}),C=A(()=>{var u;return((u=n.props.auth)==null?void 0:u.user)??null}),U=f(typeof window<"u"?window.innerWidth>=768:!1),re=()=>{typeof window<"u"&&(U.value=window.innerWidth>=768)},{t:j,locale:me}=Ee(),q=A(()=>[{label:j("translation.events"),href:"/events"},{label:j("translation.fightpasses"),href:"/fightpasses"}]),o=()=>
1{if(!V.value){if(_.value=!1,B.value=!1,b.value&&U.value){const u=b.value.getBoundingClientRect();oe.value={top:u.bottom+8,right:Math.max(0,window.innerWidth-u.right-Je)}}if(w.value&&!U.value){const u=w.value.getBoundingClientRect();Z.value={top:u.bottom+8,right:Math.max(0,window.innerWidth-u.right-Je)}}}V.value=!V.value};ge(D,u=>{u&&(u==="de"||u==="en"||u==="fr"||u==="nl")&&(v.value=u,Ie(u))},{immediate:!0});const g=async u=>{if(u===v.value){V.value=!1;return}V.value=!1,me.value=u,v.value=u,Ie(u);try{await window.axios.post("/api/locale",{locale:u}),window.location.reload()}catch(a){console.error("Failed to update locale on backend:",a)}},_e=()=>{if(!B.value&&(V.value=!1,_.value=!1,ae.value&&!U.value)){const u=ae.value.getBoundingClientRect();Y.value={top:u.bottom+8,right:window.innerWidth-u.right}}B.value=!B.value},Ve=()=>{B.value=!1,h.open("login")},Me=()=>{B.value=!1,h.open("register")},ze=u=>{const a=u.target;M.value&&!M.value.contains(a)&&H.value&&!H.value.contains(a)&&(V.value=!1),R.value&&!R.value.contains(a)&&G.value&&!G.value.contains(a)&&(V.value=!1),z.value&&!z.value.contains(a)&&S.value&&!S.value.contains(a)&&(_.value=!1),i.value&&!i.value.contains(a)&&E.value&&!E.value.contains(a)&&(_.value=!1),F.value&&!F.value.contains(a)&&Q.value&&!Q.value.contains(a)&&(B.value=!1)},ye=()=>{if(!_.value){if(V.value=!1,B.value=!1,P.value){const u=P.value.getBoundingClientRect();ie.value={top:u.bottom+8,right:window.innerWidth-u.right}}if(I.value){const u=I.value.getBoundingClientRect();K.value={top:u.bottom+8,right:window.innerWidth-u.right}}}_.value=!_.value},Re=()=>{_.value=!1,h.open("changePassword")},c=()=>{_.value=!1,V.value=!1,h.open("support")},k=()=>{_.value=!1,de.value=!0},$=()=>{de.value=!1,Ce.post(route("account.schedule-deletion"))},te=()=>{_.value=!1,window.axios.post(route("logout")).then(()=>{window.location.href="/"}).catch(()=>{window.location.href="/"})},p=()=>{typeof window<"u"&&le.value&&(le.value.style.position="fixed",le.value.style.top="0",le.value.style.left="0",le.value.style.right="0",le.value.style.width="100vw",le.value.style.zIndex="1000")};Te(()=>{document.addEventListener("click",ze),re(),p(),D.value&&Ie(D.value),typeof window<"u"&&(window.addEventListener("resize",()=>{re(),p()}),window.addEventListener("scroll",p,{passive:!0}),setTimeout(p,0))}),Se(()=>{document.removeEventListener("click",ze),typeof window<"u"&&(window.removeEventListener("resize",re),window.removeEventListener("scroll",p))});const d=u=>{};return(u,a)=>(s(),l(he,null,[e("header",$a,[a[29]||(a[29]=e("div",{class:"absolute top-0 left-0 right-0 h-0.5 bg-gradient-to-r from-transparent via-primary/50 to-transparent"},null,-1)),e("div",Ca,[L(t(xe),{href:"/",class:"outline-none group relative z-10 flex-shrink-0"},{default:J(()=>[...a[8]||(a[8]=[e("img",{alt:"Fight24 Logo",class:"h-10 lg:h-12 w-auto object-contain transition-transform duration-300 group-hover:scale-105",src:"/images/nav-logo.png"},null,-1)])]),_:1}),e("nav",Ma,[e("ul",Sa,[(s(!0),l(he,null,$e(q.value,m=>(s(),l("li",{key:m.href,class:"cursor-pointer mx-[15px]"},[L(t(xe),{href:m.href,class:ee(["hover:text-primary hover:border-b-4 hover:border-b-primary md:pb-4 pb-2 text-base transition-all duration-300",{"text-primary border-b-4 border-b-primary":u.$page.url===m.href||u.$page.url.startsWith(m.href+"/"),"text-white":u.$page.url!==m.href&&!u.$page.url.startsWith(m.href+"/")}]),style:{color:"#ffffff"}},{default:J(()=>[W(r(m.label),1)]),_:2},1032,["href","class"])]))),128))])]),e("div",Ea,[e("button",{class:"flex items-center gap-2 rounded border border-neutral-700/50 bg-neutral-800/40 hover:bg-neutral-800/60 hover:border-primary/50 py-2 px-5 transition-all duration-200 group backdrop-blur-sm flex-shrink-0 lg:w-[30rem] mx-3",type:"button",onClick:a[0]||(a[0]=m=>t(ce).open())},[a[9]||(a[9]=e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",class:"h-6 w-6 mr-2 text-neutral-400 group-hover:text-primary transition-colors duration-200 flex-shrink-0"},[e("path",{"fill-rule":"evenodd",d:"M10.5 3.75a6.75 6.75 0 100 13.5 6.75 6.75 0 000-13.5zM2.25 10.5a8.25 8.25 0 1114.59 5.28l4.69 4.69a.75.75 0 11-1.06 1.06l-4.69-4.69A8.25 8.25 0 012.25 10.5z","clip-rule":"evenodd"})],-1)),e("span",Pa,r(t(j)("translation.search")),1)]),C.value&&Array.isArray(C.value.roles)&&C.value.roles.includes("admin")?(s(),l("a",{key:0,href:u.route("admin.dashboard.index"),target:"_blank",rel:"noopener noreferrer",class:"flex items-center gap-1.5 sm:gap-2 rounded-lg border border-neutral-700/50 bg-neutral-800/40 hover:bg-neutral-800/60 hover:border-primary/50 py-2 px-3 sm:px-4 transition-all duration-200 hover:shadow-lg hover:shadow-
1primary/10 group backdrop-blur-sm flex-shrink-0"},[e("span",ja,r(t(j)("translation.admin")),1),a[10]||(a[10]=e("svg",{class:"w-3.5 h-3.5 sm:w-4 sm:h-4 text-neutral-400 group-hover:text-primary transition-colors duration-200 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})],-1))],8,za)):x("",!0),C.value?(s(),l("div",{key:1,class:"relative z-[10001]",ref_key:"userDropdownRef",ref:z},[e("button",{type:"button",ref_key:"userDropdownButtonRef",ref:P,class:"flex items-center gap-1.5 sm:gap-2.5 rounded-lg bg-gradient-to-br from-neutral-800 to-neutral-900 hover:from-neutral-700 hover:to-neutral-800 border border-neutral-700/50 hover:border-primary/50 px-2 sm:px-3 py-2 font-bold uppercase text-white transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-primary/50 shadow-md hover:shadow-lg hover:shadow-primary/10 group flex-shrink-0",onClick:X(ye,["stop"])},[e("div",Ra,r(C.value.first_name?C.value.first_name.charAt(0).toUpperCase():"")+r(C.value.last_name?C.value.last_name.charAt(0).toUpperCase():""),1),a[11]||(a[11]=e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-3.5 w-3.5 sm:h-4 sm:w-4 text-neutral-400 group-hover:text-primary transition-colors flex-shrink-0 hidden sm:block"},[e("path",{"fill-rule":"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})],-1))],512),(s(),se(be,{to:"body"},[_.value&&U.value?(s(),l("div",{key:0,ref_key:"userDropdownMenuRef",ref:S,class:"fixed text-sm font-semibold uppercase z-[10000] w-64 sm:w-72 rounded-xl border border-neutral-700/50 bg-gradient-to-br from-neutral-900 to-neutral-950 backdrop-blur-xl shadow-2xl overflow-hidden",style:Le({top:`${ie.value.top}px`,right:`${ie.value.right}px`})},[e("div",Ba,[e("div",Ta,[e("div",Va,r(C.value.first_name?C.value.first_name.charAt(0).toUpperCase():"")+r(C.value.last_name?C.value.last_name.charAt(0).toUpperCase():""),1),e("div",La,[e("div",Fa,r(C.value.first_name)+" "+r(C.value.last_name),1),e("div",Aa,r(C.value.email),1)])])]),e("div",Ia,[L(t(xe),{href:u.route("purchases.index"),class:"flex w-full items-center gap-3 px-5 py-3 font-semibold text-sm text-neutral-300 transition-all duration-200 hover:bg-gradient-to-r hover:from-primary/10 hover:to-transparent hover:text-primary group"},{default:J(()=>[a[12]||(a[12]=e("svg",{class:"w-5 h-5 text-neutral-500 group-hover:text-primary transition-colors duration-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M17 9V7a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2m2 4h10a2 2 0 002-2v-6a2 2 0 00-2-2H9a2 2 0 00-2 2v6a2 2 0 002 2zm7-5a2 2 0 11-4 0 2 2 0 014 0z"})],-1)),e("span",null,r(t(j)("translation.purchases")),1)]),_:1},8,["href"]),e("button",{type:"button",class:"flex w-full items-center gap-3 px-5 py-3 font-semibold text-sm text-neutral-300 transition-all duration-200 hover:bg-gradient-to-r hover:from-primary/10 hover:to-transparent hover:text-primary group",onClick:Re},[a[13]||(a[13]=e("svg",{class:"w-5 h-5 text-neutral-500 group-hover:text-primary transition-colors duration-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 7a2 2 0 012 2v5a2 2 0 01-2 2H9a2 2 0 01-2-2V9a2 2 0 012-2h6zm0 0V5a2 2 0 00-2-2H9a2 2 0 00-2 2v2m7 0H9"})],-1)),e("span",null,r(t(j)("translation.change_password")),1)]),e("button",{type:"button",class:"flex w-full items-center gap-3 px-5 py-3 font-semibold text-sm text-neutral-300 transition-all duration-200 hover:bg-gradient-to-r hover:from-primary/10 hover:to-transparent hover:text-primary group",onClick:c},[a[14]||(a[14]=e("svg",{class:"w-5 h-5 text-neutral-500 group-hover:text-primary transition-colors duration-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8.228 9.247a4.75 4.75 0 014.75 4.75v.25A4.75 4.75 0 018.228 19.247H6.75a2 2 0 01-2-2v-2.5a2 2 0 012-2h1.478zM15.7
172 9.247a4.75 4.75 0 00-4.75 4.75v.25a4.75 4.75 0 004.75 4.75h1.478a2 2 0 002-2v-2.5a2 2 0 00-2-2h-1.478z"})],-1)),e("span",null,r(t(j)("translation.support")),1)])]),e("div",Da,[e("button",{type:"button",class:"flex w-full items-center gap-3 px-5 py-3 font-semibold text-sm text-red-400 transition-all duration-200 hover:bg-gradient-to-r hover:from-red-500/10 hover:to-transparent hover:text-red-300 group",onClick:k},[a[15]||(a[15]=e("svg",{class:"w-5 h-5 text-red-400 group-hover:text-red-300 transition-colors duration-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)),e("span",null,r(t(j)("translation.delete_account")),1)]),e("button",{type:"button",class:"flex w-full items-center gap-3 px-5 py-3 font-semibold text-sm text-red-400 transition-all duration-200 hover:bg-gradient-to-r hover:from-red-500/10 hover:to-transparent hover:text-red-300 group",onClick:te},[a[16]||(a[16]=e("svg",{class:"w-5 h-5 text-red-400 group-hover:text-red-300 transition-colors duration-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"})],-1)),e("span",null,r(t(j)("translation.logout")),1)])])],4)):x("",!0)]))],512)):(s(),l(he,{key:2},[e("button",{class:"rounded-lg border border-neutral-700/50 bg-neutral-800/40 hover:bg-neutral-800/60 hover:border-primary/50 px-4 py-2.5 font-bold uppercase text-sm text-white transition-all duration-200 hover:shadow-md hover:shadow-primary/10 backdrop-blur-sm flex-shrink-0",type:"button",onClick:a[1]||(a[1]=m=>t(h).open("login"))},r(t(j)("translation.login")),1),e("button",{class:"rounded-lg bg-gradient-to-r from-primary to-primary/90 hover:from-primary/90 hover:to-primary border border-primary/50 px-4 py-2.5 font-bold uppercase text-sm text-secondary shadow-md shadow-primary/20 hover:shadow-lg hover:shadow-primary/30 transition-all duration-200 flex-shrink-0",type:"button",onClick:a[2]||(a[2]=m=>t(h).open("register"))},r(t(j)("translation.register")),1)],64)),e("div",{class:"relative z-[10001]",ref_key:"dropdownRef",ref:M},[e("button",{type:"button",ref_key:"dropdownButtonRef",ref:b,class:"flex items-center gap-1.5 sm:gap-2 rounded-lg border border-neutral-700/50 bg-neutral-800/40 hover:bg-neutral-800/60 hover:border-primary/50 px-2 sm:px-3 py-2.5 font-bold uppercase text-xs sm:text-sm text-white transition-all duration-200 hover:shadow-md hover:shadow-primary/10 backdrop-blur-sm focus:outline-none focus:ring-2 focus:ring-primary/50 flex-shrink-0",onClick:X(o,["stop"])},[e("img",{src:`/images/flags/${v.value==="en"?"uk":v.value==="fr"?"fr":v.value==="nl"?"nl":"de"}.svg`,alt:v.value==="en"?"English":v.value==="fr"?"French":v.value==="nl"?"Dutch":"German",class:"h-4 w-4 sm:h-5 sm:w-5 object-cover rounded-sm flex-shrink-0"},null,8,Ha),e("span",Ua,r(v.value.toUpperCase()),1),(s(),l("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:ee(["h-3 w-3 sm:h-3.5 sm:w-3.5 text-neutral-400 transition-transform duration-200 flex-shrink-0",{"rotate-180":V.value}])},[...a[17]||(a[17]=[e("path",{"fill-rule":"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"},null,-1)])],2))],512),(s(),se(be,{to:"body"},[V.value&&U.value?(s(),l("div",{key:0,ref_key:"dropdownMenuRef",ref:H,class:"fixed text-sm font-semibold uppercase z-[10000] w-32 sm:w-36 rounded-lg border border-neutral-700/50 bg-gradient-to-br from-neutral-900 to-neutral-950 backdrop-blur-xl shadow-2xl overflow-hidden",style:Le({top:`${oe.value.top}px`,right:`${oe.value.right}px`})},[(s(),l(he,null,$e(y,m=>e("button",{key:m,type:"button",class:ee(["flex w-full items-center gap-3 px-4 py-2.5 font-bold uppercase text-sm transition-all duration-200",v.value===m?"bg-gradient-to-r from-primary/20 to-transparent text-primary":"hover:bg-gradient-to-r hover:from-primary/10 hover:to-transparent hover:text-primary"]),style:{color:"#ffffff"},onClick:X(O=>g(m),["stop"])},[e("img",{src:`/images/flags/${m==="en"?"uk":m==="fr"?"fr":m==="nl"?"nl":"de"}.svg`,alt:m==="en"?"English":m==="fr"?"French":m==="nl"?"Dutch":"German",class:"h-5 w-5 object-cover rounded-sm"},null,8,Oa),e("span",null,r(m.toUpperCase()),1)],10,qa)),64))],4)):x("",!0)]))],512)])]),e("div",Wa,[e("div",Na,[L(t(xe),{href:"/",class:"outline-none group relative z-10 flex-shrink-0"},{default:J(()=>[...a[18]||(a[18]=[e("img",{alt:"Fight24 Logo",class:"h-9 w-auto object-contain transition-transform duration-300 group-hover:scale-105",src:"/images/nav-logo.png"},null,-1)])]),_:1}),e("div",Za,[e("button",{class:"flex items-center justify-center rounded-lg border border-neutral-700/50 bg-neutral-800/40 hover:bg-neutral-800/60 hover:border-primary/50 p-2.5 transition-all duration-200 hover:shadow-lg hover:shadow-
1primary/10 group backdrop-blur-sm",type:"button",onClick:a[3]||(a[3]=m=>t(ce).open()),"aria-label":"Search"},[...a[19]||(a[19]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-5 w-5 text-neutral-400 group-hover:text-primary transition-colors duration-200"},[e("path",{"fill-rule":"evenodd",d:"M9 3.5a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11ZM2 9a7 7 0 1 1 12.452 4.391l3.328 3.329a.75.75 0 1 1-1.06 1.06l-3.329-3.328A7 7 0 0 1 2 9Z","clip-rule":"evenodd"})],-1)])]),C.value&&Array.isArray(C.value.roles)&&C.value.roles.includes("admin")?(s(),l("a",{key:0,href:u.route("admin.dashboard.index"),target:"_blank",rel:"noopener noreferrer",class:"flex items-center gap-1.5 rounded-lg border border-neutral-700/50 bg-neutral-800/40 hover:bg-neutral-800/60 hover:border-primary/50 p-2.5 transition-all duration-200 hover:shadow-lg hover:shadow-primary/10 group backdrop-blur-sm"},[e("span",Ya,r(t(j)("translation.admin")),1),a[20]||(a[20]=e("svg",{class:"size-5 text-neutral-400 group-hover:text-primary transition-colors duration-200 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})],-1))],8,Ga)):x("",!0),C.value?(s(),l("div",{key:1,class:"relative z-[10001]",ref_key:"mobileUserDropdownRef",ref:i},[e("button",{type:"button",ref_key:"mobileUserDropdownButtonRef",ref:I,class:"flex items-center justify-center rounded-lg bg-gradient-to-br from-neutral-800 to-neutral-900 hover:from-neutral-700 hover:to-neutral-800 border border-neutral-700/50 hover:border-primary/50 p-2 transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-primary/50 shadow-md hover:shadow-lg hover:shadow-primary/10 group",onClick:X(ye,["stop"]),"aria-label":"User menu"},[e("div",Ka,r(C.value.first_name?C.value.first_name.charAt(0).toUpperCase():"")+r(C.value.last_name?C.value.last_name.charAt(0).toUpperCase():""),1)],512),(s(),se(be,{to:"body"},[_.value&&!U.value?(s(),l("div",{key:0,ref_key:"mobileUserDropdownMenuRef",ref:E,class:"fixed text-sm font-semibold uppercase z-[10000] w-64 rounded-xl border border-neutral-700/50 bg-gradient-to-br from-neutral-900 to-neutral-950 backdrop-blur-xl shadow-2xl overflow-hidden",style:Le({top:`${K.value.top}px`,right:`${K.value.right}px`})},[e("div",Xa,[e("div",Ja,[e("div",Qa,r(C.value.first_name?C.value.first_name.charAt(0).toUpperCase():"")+r(C.value.last_name?C.value.last_name.charAt(0).toUpperCase():""),1),e("div",en,[e("div",tn,r(C.value.first_name)+" "+r(C.value.last_name),1),e("div",on,r(C.value.email),1)])])]),e("div",rn,[L(t(xe),{href:u.route("purchases.index"),class:"flex w-full items-center gap-3 px-5 py-3 font-semibold text-sm text-neutral-300 transition-all duration-200 hover:bg-gradient-to-r hover:from-primary/10 hover:to-transparent hover:text-primary group"},{default:J(()=>[a[21]||(a[21]=e("svg",{class:"w-5 h-5 text-neutral-500 group-hover:text-primary transition-colors duration-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M17 9V7a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2m2 4h10a2 2 0 002-2v-6a2 2 0 00-2-2H9a2 2 0 00-2 2v6a2 2 0 002 2zm7-5a2 2 0 11-4 0 2 2 0 014 0z"})],-1)),e("span",null,r(t(j)("translation.purchases")),1)]),_:1},8,["href"]),e("button",{type:"button",class:"flex w-full items-center gap-3 px-5 py-3 font-semibold text-sm text-neutral-300 transition-all duration-200 hover:bg-gradient-to-r hover:from-primary/10 hover:to-transparent hover:text-primary group",onClick:Re},[a[22]||(a[22]=e("svg",{class:"w-5 h-5 text-neutral-500 group-hover:text-primary transition-colors duration-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 7a2 2 0 012 2v5a2 2 0 01-2 2H9a2 2 0 01-2-2V9a2 2 0 012-2h6zm0 0V5a2 2 0 00-2-2H9a2 2 0 00-2 2v2m7 0H9"})],-1)),e("span",null,r(t(j)("translation.change_password")),1)]),e("button",{type:"button",class:"flex w-full items-center gap-3 px-5 py-3 font-semibold text-sm text-neutral-300 transition-all duration-200 hover:bg-gradient-to-r hover:from-primary/10 hover:to-transparent hover:text-primary group",onClick:c},[a[23]||(a[23]=e("svg",{class:"w-5 h-5 text-neutral-500 group-hover:text-primary transition-colors duration-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8.228 9.247a4.75 4.75 0 014.75 4.75v.25A4.75 4.75 0 018.228 19.247H6.75a2 2 0 01-2-2v-2.5a2 2 0 012-2h1.478zM15.7
172 9.247a4.75 4.75 0 00-4.75 4.75v.25a4.75 4.75 0 004.75 4.75h1.478a2 2 0 002-2v-2.5a2 2 0 00-2-2h-1.478z"})],-1)),e("span",null,r(t(j)("translation.support")),1)])]),e("div",sn,[e("button",{type:"button",class:"flex w-full items-center gap-3 px-5 py-3 font-semibold text-sm text-red-400 transition-all duration-200 hover:bg-gradient-to-r hover:from-red-500/10 hover:to-transparent hover:text-red-300 group",onClick:k},[a[24]||(a[24]=e("svg",{class:"w-5 h-5 text-red-400 group-hover:text-red-300 transition-colors duration-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)),e("span",null,r(t(j)("translation.delete_account")),1)]),e("button",{type:"button",class:"flex w-full items-center gap-3 px-5 py-3 font-semibold text-sm text-red-400 transition-all duration-200 hover:bg-gradient-to-r hover:from-red-500/10 hover:to-transparent hover:text-red-300 group",onClick:te},[a[25]||(a[25]=e("svg",{class:"w-5 h-5 text-red-400 group-hover:text-red-300 transition-colors duration-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"})],-1)),e("span",null,r(t(j)("translation.logout")),1)])])],4)):x("",!0)]))],512)):(s(),l("div",{key:2,class:"relative z-[10001]",ref_key:"authMenuRef",ref:F},[e("button",{ref_key:"authMenuButtonRef",ref:ae,class:"flex items-center justify-center rounded-lg bg-gradient-to-r from-primary to-primary/90 hover:from-primary/90 hover:to-primary border border-primary/50 p-2.5 transition-all duration-200 shadow-md shadow-primary/20 hover:shadow-lg hover:shadow-primary/30",type:"button",onClick:X(_e,["stop"]),"aria-label":"Account menu"},[...a[26]||(a[26]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",class:"h-5 w-5 text-secondary"},[e("path",{"fill-rule":"evenodd",d:"M18.685 19.097A9.723 9.723 0 0 0 21.75 12c0-5.385-4.365-9.75-9.75-9.75S2.25 6.615 2.25 12a9.723 9.723 0 0 0 3.065 7.097A9.716 9.716 0 0 0 12 21.75a9.716 9.716 0 0 0 6.685-2.653Zm-12.54-1.285A7.486 7.486 0 0 1 12 15a7.486 7.486 0 0 1 5.855 2.812A8.224 8.224 0 0 1 12 20.25a8.224 8.224 0 0 1-5.855-2.438ZM15.75 9a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z","clip-rule":"evenodd"})],-1)])],512),(s(),se(be,{to:"body"},[B.value&&!U.value?(s(),l("div",{key:0,ref_key:"authMenuDropdownRef",ref:Q,class:"fixed text-sm font-semibold uppercase z-[10000] w-48 rounded-xl border border-neutral-700/50 bg-gradient-to-br from-neutral-900 to-neutral-950 backdrop-blur-xl shadow-2xl overflow-hidden",style:Le({top:`${Y.value.top}px`,right:`${Y.value.right}px`})},[e("button",{class:"flex w-full items-center gap-3 px-5 py-3.5 font-semibold text-sm text-neutral-300 transition-all duration-200 hover:bg-gradient-to-r hover:from-primary/10 hover:to-transparent hover:text-primary group border-b border-neutral-700/50",type:"button",onClick:Ve},[a[27]||(a[27]=e("svg",{class:"w-5 h-5 text-neutral-500 group-hover:text-primary transition-colors duration-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1"})],-1)),e("span",null,r(t(j)("translation.login")),1)]),e("button",{class:"flex w-full items-center gap-3 px-5 py-3.5 font-semibold text-sm text-primary transition-all duration-200 hover:bg-gradient-to-r hover:from-primary/10 hover:to-transparent group",type:"button",onClick:Me},[a[28]||(a[28]=e("svg",{class:"w-5 h-5 text-primary group-hover:text-primary transition-colors duration-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18 9v3m0 0v3m0-3h3m-3 0h-3m-2-5a4 4 0 11-8 0 4 4 0 018 0zM3 20a6 6 0 0112 0v1H3v-1z"})],-1)),e("span",null,r(t(j)("translation.register")),1)])],4)):x("",!0)]))],512)),e("div",{class:"relative z-[10001]",ref_key:"mobileDropdownRef",ref:R},[e("button",{type:"button",ref_key:"mobileDropdownButtonRef",ref:w,class:"flex items-center justify-center rounded-lg border border-neutral-700/50 bg-neutral-800/40 hover:bg-neutral-800/60 hover:border-primary/50 p-2.5 transition-all duration-200 hover:shadow-md hover:shadow-
1primary/10 backdrop-blur-sm focus:outline-none focus:ring-2 focus:ring-primary/50",onClick:X(o,["stop"]),"aria-label":"Language selector"},[e("img",{src:`/images/flags/${v.value==="en"?"uk":v.value==="fr"?"fr":v.value==="nl"?"nl":"de"}.svg`,alt:v.value==="en"?"English":v.value==="fr"?"French":v.value==="nl"?"Dutch":"German",class:"h-5 w-5 object-cover rounded-sm"},null,8,an)],512),(s(),se(be,{to:"body"},[V.value&&!U.value?(s(),l("div",{key:0,ref_key:"mobileDropdownMenuRef",ref:G,class:"fixed text-sm font-semibold uppercase z-[10000] w-32 rounded-lg border border-neutral-700/50 bg-gradient-to-br from-neutral-900 to-neutral-950 backdrop-blur-xl shadow-2xl overflow-hidden",style:Le({top:`${Z.value.top}px`,right:`${Z.value.right}px`})},[(s(),l(he,null,$e(y,m=>e("button",{key:m,type:"button",class:ee(["flex w-full items-center gap-3 px-4 py-2.5 font-bold uppercase text-sm transition-all duration-200",v.value===m?"bg-gradient-to-r from-primary/20 to-transparent text-primary":"hover:bg-gradient-to-r hover:from-primary/10 hover:to-transparent hover:text-primary"]),style:{color:"#ffffff"},onClick:X(O=>g(m),["stop"])},[e("img",{src:`/images/flags/${m==="en"?"uk":m==="fr"?"fr":m==="nl"?"nl":"de"}.svg`,alt:m==="en"?"English":m==="fr"?"French":m==="nl"?"Dutch":"German",class:"h-5 w-5 object-cover rounded-sm"},null,8,ln),e("span",null,r(m.toUpperCase()),1)],10,nn)),64))],4)):x("",!0)]))],512)])]),e("div",dn,[(s(!0),l(he,null,$e(q.value,m=>(s(),se(t(xe),{key:`mobile-${m.href}`,href:m.href,class:ee(["font-semibold transition-all duration-200 hover:text-primary relative px-3 sm:px-4 py-2 whitespace-nowrap rounded-lg hover:bg-neutral-800/50",{"text-primary bg-primary/10":u.$page.url===m.href}]),style:{color:"#ffffff"}},{default:J(()=>[e("span",un,r(m.label),1)]),_:2},1032,["href","class"]))),128))])])]),L(ka,{"is-open":t(ce).isOpen,onClose:a[4]||(a[4]=()=>t(ce).close()),onSearch:d},null,8,["is-open"]),(s(),se(be,{to:"body"},[L(fe,{"enter-active-class":"transition-opacity duration-200 ease-out","leave-active-class":"transition-opacity duration-200 ease-in","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:J(()=>[de.value?(s(),l("div",{key:0,class:"fixed inset-0 z-[10002] flex items-center justify-center bg-black/70 backdrop-blur-sm p-4",role:"dialog","aria-modal":"true","aria-labelledby":"delete-account-title",onClick:a[7]||(a[7]=X(m=>de.value=!1,["self"]))},[e("div",{class:"relative w-full max-w-md rounded-xl border border-neutral-700/50 bg-gradient-to-br from-neutral-900 to-neutral-950 shadow-2xl overflow-hidden",onClick:a[6]||(a[6]=X(()=>{},["stop"]))},[e("div",cn,[e("div",pn,[a[30]||(a[30]=e("div",{class:"flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-500/20 text-red-400"},[e("svg",{class:"h-6 w-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})])],-1)),e("h3",mn,r(t(j)("translation.delete_account_confirm_title")),1)])]),e("div",vn,[e("p",fn,r(t(j)("translation.delete_account_confirm_message")),1)]),e("div",hn,[e("button",{type:"button",onClick:a[5]||(a[5]=m=>de.value=!1),class:"px-4 py-2.5 text-sm font-medium text-neutral-300 bg-neutral-800 border border-neutral-600 rounded-lg hover:bg-neutral-700 focus:outline-none focus:ring-2 focus:ring-primary/50 transition-all"},r(t(j)("translation.cancel")),1),e("button",{type:"button",onClick:$,class:"px-4 py-2.5 text-sm font-medium text-white bg-red-600 rounded-lg hover:bg-red-500 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 focus:ring-offset-neutral-900 transition-all"},r(t(j)("translation.delete_account")),1)])])])):x("",!0)]),_:1})]))],64))}}),yn=Pe(gn,[["__scopeId","data-v-df0e6982"]]);function bn(T,n){return s(),l("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}const xn={class:"confirmation"},wn=we({__name:"PaymentConfirmation",setup(T){return(n,h)=>(s(),l("div",xn,[h[1]||(h[1]=e("h3",{class:"confirmation__title"},"PAYMENT METHOD",-1)),h[2]||(h[2]=e("p",{class:"confirmation__message"}," Your payment has been successfully completed, you can review the content. Within 24 hours, the ticket will be sent to your e-mail address. If you have any difficulties, please contact us. ",-1)),L(t(bn),{class:"confirmation__icon"}),L(t(xe),{class:"confirmation__link",href:"/"},{default:J(()=>[...h[0]||(h[0]=[W(" TO HOME PAGE ",-1)])]),_:1})]))}}),_n=Pe(wn,[["__scopeId","data-v-a39cbcbc"]]),tt=Qe("payment-modal",{state:()=>({isVisible:!1,step:"method",fightpass:null}),actions:{open(T){this.fightpass=T,this.step="method",this.isVisible=!0},close(){this.isVisible=!1,this.step="method",this.fightpass=null},setStep(T){this.step=T}}}),kn={class:"w-full mx-auto text-white font-sans"},$n={class:"flex flex-col gap-1.5 text-center mb-6"},Cn={class:"text-2xl font-extrabold uppercase tracking-tight bg-gradient-to-r from-white to-neutral-300 bg-clip-text text-transparent"},Mn={key:0,class:"flex flex-col gap-6"},Sn={key:0,class:"bg-transparent grid gap-[18px]"},En={class:"text-[28px] font-extrabold uppercase mt-5"},Pn={class:"flex items-center justify-between text-sm"},zn=["placeholder"],jn={class:"relative inline-flex items-center justify-center rounded-lg bg-gradient-to-r from-primary to-primary/90 px-6 py-3 text-sm font-bold uppercase text-secondary shadow-md shadow-primary/20 hover:shadow-lg hover:shadow-
1primary/30 transition-all duration-200 overflow-hidden group w-full sm:w-auto",type:"submit"},Rn={class:"relative z-10"},Bn={key:0,class:"text-red-400 text-center text-[13px]"},Tn={key:1,class:"text-green-400 text-center text-[13px]"},Vn={class:"flex items-center justify-between text-lg font-bold px-5 py-4 rounded-lg border border-neutral-700/50 bg-neutral-800/30"},Ln={class:"text-primary"},Fn={class:"flex justify-end gap-3 mt-3 sm:flex-row flex-col sm:items-auto items-stretch"},An=["disabled"],In={key:0,class:"relative z-10"},Dn={key:1,class:"relative z-10 w-[18px] h-[18px] border-2 border-secondary border-t-transparent rounded-full animate-spin"},Hn={key:1,class:"grid gap-4"},Un={class:"flex items-center justify-between gap-3"},qn={class:"text-[13px] text-gray-400 text-right"},On={key:0,class:"mt-[18px] text-sm text-gray-300"},Wn={class:"flex items-center justify-between gap-3"},Nn={class:"text-[13px] text-gray-400 text-right"},Zn={key:0,class:"mt-[18px] text-sm text-gray-300"},Gn={class:"flex items-center justify-between gap-3"},Yn={class:"text-[13px] text-gray-400 text-right"},Kn={key:0,class:"mt-[18px] text-sm text-gray-300"},Xn={class:"flex items-center justify-between gap-3"},Jn={class:"text-[13px] text-gray-400 text-right"},Qn={key:0,class:"mt-[18px] text-sm text-gray-300"},el={class:"flex items-center justify-between gap-3"},tl={class:"text-[13px] text-gray-400 text-right"},ol={key:0,class:"mt-[18px] text-sm text-gray-300"},rl={class:"mt-1 text-[13px] text-gray-400"},sl={key:0},al={class:"flex items-center justify-between gap-3"},nl={class:"text-lg font-bold shrink-0"},ll={key:0,class:"mt-[18px] text-sm text-gray-300"},il={class:"flex items-center gap-3 text-sm text-gray-400"},dl={class:"flex justify-end gap-3 mt-3 sm:flex-row flex-col sm:items-auto items-stretch"},ul=["disabled"],cl={key:0},pl={key:1,class:"w-[18px] h-[18px] border-2 border-white/40 border-t-[#0c0c0c] rounded-full animate-spin"},ml={key:1,class:"text-center text-white"},vl=we({__name:"PaymentMethod",setup(T){const n=tt(),h=et(),{t:y,locale:D}=Ee(),v=A(()=>n.fightpass??null),V=A(()=>D.value==="de"?"de":D.value==="fr"?"fr":"en"),M=A(()=>{var p;return Number(((p=v.value)==null?void 0:p.price)??0)}),b=A(()=>M.value.toFixed(2)),H=f(""),R=f(""),w=f(""),G=f(0),_=f(null),z=A(()=>Math.max(M.value-G.value,0)),P=A(()=>z.value.toFixed(2)),S=f(!1),i=f(""),I=f(null),E=f("eur"),B=f(!1),F=f(!1),ae=f(!1),Q=f(!1),ce=f(!1),le=f(!1),de=f(!1),oe=f(""),Z=f(null),ie=f(null),K=f(null),Y=f(null),C=f(null),U=f(null),re=f(null),j=f(null),me=(p,d)=>new Promise((u,a)=>{rt.post(p,d,{headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(m=>{m.data.error?a(new Error(m.data.error||m.data.message||"Request failed")):u(m.data)}).catch(m=>{if(m.response){const O=m.response.data,N=(O==null?void 0:O.error)||(O==null?void 0:O.message)||(typeof O=="string"?O:"Request failed");a(new Error(N))}else m.request?a(new Error("No response from server. Please check your connection.")):a(new Error(m.message||"Request failed"))})}),q=p=>{const u=String(route(p)).replace(/^https\/\//i,"https://").replace(/^http\/\//i,"http://");return/^https?:\/\//i.test(u)?u:new URL(u,window.location.origin).toString()},o=()=>{H.value="",R.value="",w.value="",G.value=0,_.value=null,S.value=!1,i.value="",B.value=!1,F.value=!1,re.value=null,j.value=null,I.value=null,E.value="eur",K.value&&(K.value.unmount(),K.value=null),U.value&&(U.value.unmount(),U.value=null),Y.value&&(Y.value.unmount(),Y.value=null),C.value=null,ae.value=!1,Q.value=!1,ce.value=!1,le.value=!1,de.value=!1,oe.value=""};ge(()=>n.isVisible,p=>{p&&o()}),ge(i,async p=>{if((p==="card"||p==="apple"||p==="google"||p==="ideal"||p==="paypal"||p==="twint")&&S.value)try{ae.value=!0,oe.value="",Q.value=!1,ce.value=!1,le.value=!1,de.value=!1,await Me(!0,p==="ideal"?"ideal":p==="paypal"?"paypal":p==="twint"?"twint":"card"),(p==="google"||p==="apple")&&await ze(),ae.value=!1}catch(d){h.error(d.message||"Failed to initialize payment system. Please try again."),i.value="",ae.value=!1}}),ge(z,async p=>{if((i.value==="google"||i.value==="apple")&&S.value)try{await Me(!0,"card"),C.value&&U.value&&(U.value.unmount(),U.value=null),await ze()}catch{}});const g=async()=>
1{if(!H.value.trim()||!v.value){R.value=y("home-page.Invalidpromotioncode"),w.value="",G.value=0;return}B.value=!0,R.value="",w.value="";try{const p=await me(route("payment.apply-coupon"),{fightpass_uuid:v.value.uuid,coupon_code:H.value.trim()});G.value=p.discount_amount,_.value=H.value.trim().toUpperCase(),w.value=y("home-page.Discountappliedsuccessfully"),R.value=""}catch(p){R.value=p.message||y("home-page.Invalidpromotioncode"),w.value="",G.value=0,_.value=null}finally{B.value=!1}},_e=()=>{n.close()},Ve=()=>{B.value=!0,setTimeout(()=>{S.value=!0,B.value=!1},600)},Me=async(p=!1,d)=>{if(v.value&&!(Z.value&&!p&&!d)){window.Stripe||await new Promise((u,a)=>{const m=setInterval(()=>{window.Stripe&&(clearInterval(m),u(!0))},100);setTimeout(()=>{clearInterval(m),a(new Error("Stripe.js failed to load"))},5e3)});try{const u=await me(route("payment.stripe.initialize"),{fightpass_uuid:v.value.uuid,coupon_code:_.value,payment_method_type:d});if(Z.value=window.Stripe(u.public_key),re.value=u.payment_intent_id,j.value=u.client_secret,I.value=u.charge_amount??u.amount,E.value=u.charge_currency??"eur",K.value){try{K.value.unmount()}catch{}K.value=null}if(Y.value){try{Y.value.unmount()}catch{}Y.value=null}if(ie.value=Z.value.elements({clientSecret:u.client_secret}),i.value==="card"){const a=ie.value.create("card",{style:{base:{color:"#ffffff",fontFamily:"system-ui, sans-serif",fontSize:"16px","::placeholder":{color:"#8f8f8f"}},invalid:{color:"#ef4444"}}});let m=0;const O=50,N=()=>{const ne=document.getElementById("stripe-card-element");if(ne){ne.innerHTML="";try{a.mount(ne),K.value=a,a.on("change",pe=>{Q.value=!!pe.complete;const ve=document.getElementById("stripe-card-errors");ve&&(pe.error?(ve.textContent=pe.error.message,oe.value=pe.error.message||""):(ve.textContent="",oe.value=""))})}catch(pe){console.error("Failed to mount Stripe card element:",pe),setTimeout(()=>{try{a.mount(ne),K.value=a}catch(ve){console.error("Failed to mount Stripe card element on retry:",ve)}},200)}}else m++,m<O?setTimeout(N,100):console.error("Stripe card element container not found after multiple retries")};setTimeout(N,100)}if(i.value==="ideal"||i.value==="paypal"||i.value==="twint"){if(Y.value){try{Y.value.unmount()}catch{}Y.value=null}const a=ie.value.create("payment",{fields:{billingDetails:"auto"},appearance:{theme:"night",variables:{colorPrimary:"#fae600",colorBackground:"#131313",colorText:"#ffffff",colorDanger:"#ef4444",fontFamily:"system-ui, sans-serif",spacingUnit:"4px",borderRadius:"8px"}}});let m=0;const O=50,N=()=>{const ne=i.value==="paypal"?"stripe-paypal-element":i.value==="twint"?"stripe-twint-element":"stripe-ideal-element",pe=document.getElementById(ne);if(pe){pe.innerHTML="";try{a.mount(pe),Y.value=a,a.on("ready",()=>{ce.value=!0}),a.on("change",ve=>{var je;le.value=!!ve.complete,(je=ve.error)!=null&&je.message?oe.value=ve.error.message:oe.value=""})}catch(ve){console.error("Failed to mount Stripe payment element:",ve),setTimeout(()=>{try{a.mount(pe),Y.value=a}catch(je){console.error("Failed to mount Stripe payment element on retry:",je)}},200)}}else m++,m<O?setTimeout(N,100):console.error("Stripe payment element container not found after multiple retries")};setTimeout(N,100)}}catch(u){throw u}}},ze=async()=>{if(!Z.value||!v.value||!j.value)throw new Error("Stripe not initialized");try{const p=Z.value.paymentRequest({country:"DE",currency:"eur",total:{label:(typeof v.value.name=="object"?v.value.name[V.value]:v.value.name)||"Fight Pass",amount:Math.round(z.value*100)},requestPayerName:!0,requestPayerEmail:!0});C.value=p;const d=await p.canMakePayment();if(d){if(i.value==="google"&&!d.googlePay){h.error(y("home-page.GooglePaynotavailable")||"Google Pay is not available on this device"),i.value="";return}if(i.value==="apple"&&!d.applePay){h.error(y("home-page.ApplePaynotavailable")||"Apple Pay is not available on this device"),i.value="";return}}else{if(i.value==="google"){h.error(y("home-page.GooglePaynotavailable")||"Google Pay is not available on this device"),i.value="";return}if(i.value==="apple"){h.error(y("home-page.ApplePaynotavailable")||"Apple Pay is not available on this device"),i.value="";return}}const a=Z.value.elements().create("paymentRequestButton",{paymentRequest:p,style:{paymentRequestButton:{type:"default",theme:"dark",height:"48px"}}});setTimeout(()=>{const m=i.value==="google"?"stripe-payment-request-google":"stripe-payment-request-apple",O=document.getElementById(m);O&&(U.value&&U.value.unmount(),a.mount(O),U.value=a,de.value=!0,p.on("paymentmethod",async N=>{try{F.value=!0;const{error:ne,paymentIntent:pe}=await Z.value.confirmCardPayment(j.value,{payment_method:N.paymentMethod.id},{handleActions:!1});if(ne)throw N.complete("fail"),new Error(ne.message);if(N.complete("success"),pe.status==="requires_action"){const{error:ve}=await Z.value.handleCardAction(j.value);if(ve)throw new Error(ve.message);const{error:je,paymentIntent:Ze}=await Z.value.confirmCardPayment(j.value);if(je)throw new Error(je.message);Ze.status==="succeeded"&&await te("stripe",Ze.id)}else if(pe.status==="succeeded")await te("stripe",pe.id);else throw new Error("Payment not completed")}catch(ne){h.error(ne.message||y("home-page.Paymentfailed")),F.value=!1}}))},100)}catch(p){throw p}},ye=p=>{F.value||(i.value=p)},Re=A(()=>!S.value||!i.value||F.value||ae.value?!0:i.value==="card"?!K.value||!Q.value:i.value==="ideal"||i.value==="paypal"||i.value==="twint"?!Y.value||!ce.value||!le.value:i.value==="apple"||i.value==="google"?!C.value||!de.value:!0),c=async()=>
1{if(!(!i.value||!v.value)){F.value=!0;try{i.value==="paypal"?await k("paypal"):i.value==="ideal"?await k("ideal"):i.value==="twint"?await k("twint"):i.value==="card"?await $():(i.value==="apple"||i.value==="google")&&(C.value?C.value.show():await $())}catch(p){h.error(p.message||y("home-page.Paymentfailed")),F.value=!1}}},k=async p=>{var u;if(!v.value)throw new Error("Fightpass not found");if(!Z.value||!j.value||!re.value||!Y.value)try{await Me(!0,p)}catch{throw new Error("Payment system not ready. Please try again.")}let d=0;for(;!Y.value&&d<10;)await new Promise(a=>setTimeout(a,100)),d++;if(!Z.value||!Y.value||!re.value)throw new Error("Payment system not ready. Please select the payment method again.");try{let a=j.value;if(!a||!re.value){const ne=await me(route("payment.stripe.initialize"),{fightpass_uuid:v.value.uuid,coupon_code:_.value,payment_method_type:p});re.value=ne.payment_intent_id,a=ne.client_secret,j.value=a}const{error:m}=await ie.value.submit();if(m)throw new Error(m.message);const{error:O,paymentIntent:N}=await Z.value.confirmPayment({elements:ie.value,clientSecret:a,confirmParams:{return_url:q("payment.stripe.return")},redirect:"if_required"});if(O)throw new Error(O.message);if(N.status==="requires_action"&&((u=N.next_action)==null?void 0:u.type)==="redirect_to_url")window.location.href=N.next_action.redirect_to_url.url;else if(N.status==="succeeded")await te("stripe",N.id);else throw new Error(`Unexpected payment status: ${N.status}`)}catch(a){throw a}},$=async()=>{if(!v.value)throw new Error("Fightpass not found");if(!Z.value||!K.value||!re.value){try{await Me(!0,"card")}catch{throw new Error("Payment system not ready. Please select card payment again.")}let p=0;for(;!K.value&&p<10;)await new Promise(d=>setTimeout(d,100)),p++;if(!Z.value||!K.value||!re.value)throw new Error("Payment system not ready. Please select card payment again.")}try{let p=j.value;if(!p||!re.value){const a=await me(route("payment.stripe.initialize"),{fightpass_uuid:v.value.uuid,coupon_code:_.value,payment_method_type:"card"});re.value=a.payment_intent_id,p=a.client_secret,j.value=p}const{error:d,paymentIntent:u}=await Z.value.confirmCardPayment(p,{payment_method:{card:K.value}},{handleActions:!1});if(d)throw new Error(d.message);if(u.status==="succeeded")await te("stripe",u.id);else if(u.status==="requires_action"){const{error:a,paymentIntent:m}=await Z.value.handleCardAction(p);if(a)throw new Error(a.message);const{error:O,paymentIntent:N}=await Z.value.confirmCardPayment(p);if(O)throw new Error(O.message);if(N.status==="succeeded")await te("stripe",N.id);else throw new Error("Payment not completed after authentication")}else if(u.status==="requires_confirmation"){const{error:a,paymentIntent:m}=await Z.value.confirmCardPayment(p);if(a)throw new Error(a.message);if(m.status==="succeeded")await te("stripe",m.id);else throw new Error("Payment not completed")}else throw new Error(`Payment status: ${u.status}`)}catch(p){throw p}},te=async(p,d)=>{var m,O,N;if(!v.value)return;const u=v.value,a=((m=u.event)==null?void 0:m.uuid)??((N=(O=u.events)==null?void 0:O[0])==null?void 0:N.uuid);try{await me(route("payment.confirm"),{payment_method:p,fightpass_uuid:u.uuid,payment_intent_id:p==="str
1ipe"?d:void 0,paypal_order_id:p==="paypal"?d:void 0}),h.success(y("home-page.Paymentcompletedsuccessfully")||"Payment completed successfully"),a?(n.close(),Ce.visit(`/events/${a}`)):n.setStep("confirmation")}catch(ne){throw ne}};return Te(()=>{if(typeof window<"u"&&!window.Stripe&&!document.querySelector('script[src="https://js.stripe.com/v3/"]')){const d=document.createElement("script");d.src="https://js.stripe.com/v3/",d.async=!0,document.head.appendChild(d)}}),Se(()=>{K.value&&K.value.unmount(),Y.value&&Y.value.unmount(),U.value&&U.value.unmount()}),(p,d)=>(s(),l("div",kn,[e("div",$n,[e("h3",Cn,r(S.value?t(y)("home-page.Payment"):t(y)("home-page.Checkout")),1)]),v.value?(s(),l("div",Mn,[S.value?(s(),l("div",Hn,[e("div",{class:ee(["border rounded-md p-5 bg-[#131313] cursor-pointer transition-colors duration-200",i.value==="paypal"?"border-primary":"border-[#2b2b2b]"]),onClick:d[1]||(d[1]=u=>ye("paypal"))},[e("div",Un,[d[10]||(d[10]=e("h5",{class:"text-lg font-bold shrink-0"},"PayPal",-1)),e("p",qn,r(t(y)("home-page.YouwillberedirectedtothePayPalwebsite")),1)]),L(fe,{name:"collapse"},{default:J(()=>[i.value==="paypal"?(s(),l("div",On,[e("p",null,r(t(y)("home-page.PaywithPayPal")),1),d[11]||(d[11]=e("div",{id:"stripe-paypal-element",class:"mt-3 min-h-[140px]"},null,-1)),d[12]||(d[12]=e("img",{src:"/images/payment-method/PayPal.svg",alt:"PayPal",class:"mt-3 h-[34px] object-contain"},null,-1))])):x("",!0)]),_:1})],2),e("div",{class:ee(["border rounded-md p-5 bg-[#131313] cursor-pointer transition-colors duration-200",i.value==="apple"?"border-primary":"border-[#2b2b2b]"]),onClick:d[2]||(d[2]=u=>ye("apple"))},[e("div",Wn,[d[13]||(d[13]=e("h5",{class:"text-lg font-bold shrink-0"},"Apple Pay",-1)),e("p",Nn,r(t(y)("home-page.ApplePay-yourpaymentwillbeprocessedinEUR")),1)]),L(fe,{name:"collapse"},{default:J(()=>[i.value==="apple"?(s(),l("div",Zn,[...d[14]||(d[14]=[e("div",{id:"stripe-payment-request-apple",class:"mt-3"},null,-1)])])):x("",!0)]),_:1})],2),e("div",{class:ee(["border rounded-md p-5 bg-[#131313] cursor-pointer transition-colors duration-200",i.value==="google"?"border-primary":"border-[#2b2b2b]"]),onClick:d[3]||(d[3]=u=>ye("google"))},[e("div",Gn,[d[15]||(d[15]=e("h5",{class:"text-lg font-bold shrink-0"},"Google Pay",-1)),e("p",Yn,r(t(y)("home-page.GooglePay-yourpaymentwillbeprocessedinEUR")),1)]),L(fe,{name:"collapse"},{default:J(()=>[i.value==="google"?(s(),l("div",Kn,[...d[16]||(d[16]=[e("div",{id:"stripe-payment-request-google",class:"mt-3"},null,-1)])])):x("",!0)]),_:1})],2),e("div",{class:ee(["border rounded-md p-5 bg-[#131313] cursor-pointer transition-colors duration-200",i.value==="ideal"?"border-primary":"border-[#2b2b2b]"]),onClick:d[4]||(d[4]=u=>ye("ideal"))},[e("div",Xn,[d[17]||(d[17]=e("h5",{class:"text-lg font-bold shrink-0"},"iDEAL",-1)),e("p",Jn,r(t(y)("home-page.Youwillberedirectedtoyourbank")),1)]),L(fe,{name:"collapse"},{default:J(()=>[i.value==="ideal"?(s(),l("div",Qn,[e("p",null,r(t(y)("home-page.PaywithiDEAL")),1),d[18]||(d[18]=e("div",{id:"stripe-ideal-element",class:"mt-3 min-h-[200px]"},null,-1)),d[19]||(d[19]=e("img",{src:"/images/payment-method/iDEAL.svg",alt:"iDEAL",class:"mt-3 h-[34px] object-contain",onerror:"this.style.display='none'"},null,-1))])):x("",!0)]),_:1})],2),e("div",{class:ee(["border rounded-md p-5 bg-[#131313] cursor-pointer transition-colors duration-200",i.value==="twint"?"border-primary":"border-[#2b2b2b]"]),onClick:d[5]||(d[5]=u=>ye("twint"))},[e("div",el,[d[20]||(d[20]=e("h5",{class:"text-lg font-bold shrink-0"},"TWINT",-1)),e("p",tl,r(t(y)("home-page.YouwillberedirectedtoTWINT")),1)]),L(fe,{name:"collapse"},{default:J(()=>[i.value==="twint"?(s(),l("div",ol,[e("p",null,r(t(y)("home-page.PaywithTWINT")),1),e("p",rl,[W(r(t(y)("home-page.TWINTischargedinCHF"))+" ",1),E.value==="chf"&&I.value?(s(),l("span",sl,r(t(y)("home-page.Youwillbecharged"))+" CHF "+r(Number(I.value).toFixed(2))+". ",1)):x("",!0)]),d[21]||(d[21]=e("div",{id:"stripe-twint-element",class:"mt-3 min-h-[140px]"},null,-1)),d[22]||(d[22]=e("img",{src:"/images/payment-method/TWINT.svg",alt:"TWINT",class:"mt-3 h-[34px] object-contain",onerror:"this.style.display='none'"},null,-1))])):x("",!0)]),_:1})],2),e("div",{class:ee(["border rounded-md p-5 bg-[#131313] cursor-pointer transition-colors duration-200",i.value==="card"?"border-primary":"border-[#2b2b2b]"]),onClick:d[6]||(d[6]=u
1=>ye("card"))},[e("div",al,[e("h5",nl,r(t(y)("home-page.CreditCard")),1),d[23]||(d[23]=Ue('<div class="flex items-center gap-2" data-v-94156e6c><img src="/images/payment-method/Visa.svg" alt="Visa" class="h-[22px] w-auto" data-v-94156e6c><img src="/images/payment-method/Mastercard.svg" alt="Mastercard" class="h-[22px] w-auto" data-v-94156e6c><img src="/images/payment-method/Maestro.svg" alt="Maestro" class="h-[22px] w-auto" data-v-94156e6c><img src="/images/payment-method/Discover.svg" alt="Discover" class="h-[22px] w-auto" data-v-94156e6c></div>',1))]),L(fe,{name:"collapse"},{default:J(()=>[i.value==="card"?(s(),l("div",ll,[...d[24]||(d[24]=[e("div",{id:"stripe-card-element",class:"mt-3 p-3 bg-[#0f0f0f] border border-[#3a3a3a] rounded-md"},null,-1),e("div",{id:"stripe-card-errors",class:"mt-2 text-red-400 text-xs"},null,-1)])])):x("",!0)]),_:1})],2),e("div",il,[d[25]||(d[25]=e("img",{src:"/images/payment-method/Protect icon.svg",alt:"Secure",class:"w-10"},null,-1)),e("p",null,r(t(y)("home-page.Weprotectyourpaymentinformationusingencryptiontoprovidesecurity")),1)]),e("div",dl,[e("button",{type:"button",class:"rounded-md px-6 py-3 bg-transparent border border-white/20 text-white font-bold uppercase min-w-[140px] inline-flex items-center justify-center w-full sm:w-auto",onClick:_e},r(t(y)("home-page.Cancel")),1),e("button",{type:"button",class:"rounded-md px-6 py-3 bg-[#fae600] text-[#0c0c0c] font-bold uppercase min-w-[140px] inline-flex items-center justify-center disabled:opacity-60 w-full sm:w-auto",disabled:Re.value,onClick:c},[F.value?(s(),l("span",pl)):(s(),l("span",cl,r(t(y)("home-page.Pay")),1))],8,ul)])])):(s(),l("div",Sn,[e("h4",En,r(typeof v.value.name=="object"?v.value.name[V.value]:v.value.name),1),e("div",Pn,[e("span",null,r(t(y)("home-page.Price"))+":",1),e("span",null,r(b.value)+" €",1)]),d[9]||(d[9]=e("hr",{class:"w-full h-px bg-[#8f8f8f] border-0 my-1"},null,-1)),e("form",{class:"flex gap-3 items-center justify-center sm:flex-row flex-col",onSubmit:X(g,["prevent"])},[ue(e("input",{"onUpdate:modelValue":d[0]||(d[0]=u=>H.value=u),class:"flex-1 min-w-0 rounded-lg px-4 py-3 text-center border border-neutral-700/50 bg-neutral-800/50 text-white text-sm placeholder:text-neutral-500 focus:border-primary focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all duration-200 backdrop-blur-sm w-full sm:w-auto",placeholder:t(y)("home-page.Addpromotioncode"),type:"text"},null,8,zn),[[ke,H.value]]),e("button",jn,[e("span",Rn,r(t(y)("home-page.Submit")),1),d[7]||(d[7]=e("span",{class:"absolute inset-0 bg-gradient-to-r from-primary/80 to-primary/60 opacity-0 group-hover:opacity-100 transition-opacity duration-200"},null,-1))])],32),R.value?(s(),l("p",Bn,r(R.value),1)):x("",!0),w.value?(s(),l("p",Tn,r(w.value),1)):x("",!0),e("div",Vn,[e("span",null,r(t(y)("home-page.Total"))+":",1),e("span",Ln,r(P.value)+" €",1)]),e("div",Fn,[e("button",{type:"button",class:"inline-flex items-center justify-center rounded-lg border border-neutral-700/50 bg-neutral-800/30 px-6 py-3 text-sm font-semibold uppercase text-white hover:bg-neutral-800/50 hover:border-neutral-600 transition-all duration-200 min-w-[140px] w-full sm:w-auto",onClick:_e},r(t(y)("home-page.Cancel")),1),e("button",{type:"button",class:"relative inline-flex items-center justify-center rounded-lg bg-gradient-to-r from-primary to-primary/90 px-6 py-3 text-sm font-bold uppercase text-secondary shadow-md shadow-primary/20 hover:shadow-lg hover:shadow-primary/30 transition-all duration-200 disabled:opacity-60 disabled:cursor-not-allowed overflow-hidden group min-w-[140px] w-full sm:w-auto",disabled:B.value,onClick:Ve},[B.value?(s(),l("span",Dn)):(s(),l("span",In,r(t(y)("home-page.Next")),1)),d[8]||(d[8]=e("span",{class:"absolute inset-0 bg-gradient-to-r from-primary/80 to-primary/60 opacity-0 group-hover:opacity-100 transition-opacity duration-200"},null,-1))],8,An)])]))])):(s(),l("div",ml,[e("p",null,r(t(y)("home-page.NoResultsFound")),1)]))]))}}),fl=Pe(vl,[["__scopeId","data-v-94156e6c"]]),hl={key:0,class:"payment-overlay"},gl={class:"relative"},yl=we({__name:"PaymentModal",setup(T){const n=tt(),h=A(()=>n.isVisible),y=A(()=>n.step==="confirmation"?_n:fl);let D=0,v="",V="";const M=R=>{if(!(typeof document>"u"||typeof window>"u"))if(R){const w=window.innerWidth-document.documentElement.clientWidth;D=window.scrollY||window.pageYOffset||document.documentElement.scrollTop;const G=getComputedStyle(document.body);v=document.body.style.width||G.width,V=document.body.style.marginRight||G.marginRight,document.body.style.position="fixed",document.body.style.top=`-${D}px`,document.body.style.width=v,w>0&&(document.body.style.marginRight=`${w}px`),document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden",document.documentElement.style.height="100%"}else document.body.style.position="",document.body.style.top="",document.body.style.width=v||"",document.body.style.marginRight=V||"",document.body.style.overflow="",document.documentElement.style.overflow="",document.documentElement.style.height="",window.scrollTo(0,D),D=0,v="",V=""};ge(()=>h.value,R=>{M(R)},{immediate:!0}),Se(()=>M(!1));const b=()=>{n.close()},H=R=>{R.key==="Escape"&&h.value&&b()};return Te(()=>{document.addEventListener("keydown",H)}),Se(()=>{document.removeEventListener("keydown",H),M(!1)}),(R,w)=>(s(),se(be,{to:"body"},[L(fe,{"enter-active-class":"transition-all duration-300 ease-out","leave-active-class":"transition-all duration-200 ease-in","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:J(()=>
1[h.value?(s(),l("div",hl,[L(fe,{"enter-active-class":"transition-all duration-300 ease-out","leave-active-class":"transition-all duration-200 ease-in","enter-from-class":"opacity-0 scale-95 translate-y-4","enter-to-class":"opacity-100 scale-100 translate-y-0","leave-from-class":"opacity-100 scale-100 translate-y-0","leave-to-class":"opacity-0 scale-95 translate-y-4"},{default:J(()=>[h.value?(s(),l("div",{key:0,class:"payment-shell",role:"dialog","aria-modal":"true",onClick:w[0]||(w[0]=X(()=>{},["stop"]))},[w[1]||(w[1]=e("div",{class:"absolute inset-0 bg-gradient-to-br from-primary/5 via-transparent to-transparent pointer-events-none rounded-lg sm:rounded-xl"},null,-1)),e("button",{class:"payment-close",type:"button","aria-label":"Close",onClick:b},[L(t(We),{class:"h-3.5 w-3.5 sm:h-4 sm:w-4"})]),e("div",gl,[(s(),se(st(y.value)))])])):x("",!0)]),_:1})])):x("",!0)]),_:1})]))}}),bl=Pe(yl,[["__scopeId","data-v-c43d474e"]]),xl={class:"flex min-h-screen w-full max-w-full flex-col overflow-x-hidden text-white"},wl={class:"flex-1 w-full min-w-0 max-w-full overflow-x-hidden bg-neutral-900 bg-[url('/images/bgDoubleLines.svg')] bg-top bg-cover bg-no-repeat pt-28 md:pt-20"},_l={class:"px-6 pt-6 pb-4"},kl={class:"flex items-center gap-4"},$l={id:"deletion-scheduled-title",class:"text-lg font-semibold text-white"},Cl={class:"px-6 pb-4"},Ml={class:"text-sm text-neutral-300 leading-relaxed"},Sl={class:"px-6 py-4 border-t border-neutral-700/50 flex justify-end"},Rl=we({__name:"AppLayout",setup(T){const n=Oe(),{locale:h,t:y}=Ee(),D=De(),v=f(!1),V=A(()=>{var _;return((_=D.props.flash)==null?void 0:_.deletion_scheduled)===!0&&!v.value});ge(()=>{var _;return(_=D.props.flash)==null?void 0:_.email_verified},_=>{_===!0&&n.open("login")});const M=A(()=>y("translation.delete_account_scheduled_title")),b=A(()=>y("translation.delete_account_scheduled_message")),H=A(()=>y("translation.delete_account_scheduled_dismiss")),R=()=>{v.value=!0};ge(()=>D.props.locale,_=>{_&&(_==="de"||_==="en"||_==="fr"||_==="nl")&&(h.value=_,Ie(_))});const w=()=>{n.open("login")},G=()=>{n.open("register")};return(_,z)=>(s(),l("div",xl,[L(yn,{onLogin:w,onRegister:G}),e("main",wl,[at(_.$slots,"default")]),L(Zr),L(ss),L(bl),L(lt),L(nt),L(ws),(s(),se(be,{to:"body"},[L(fe,{"enter-active-class":"transition-opacity duration-200 ease-out","leave-active-class":"transition-opacity duration-200 ease-in","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:J(()=>[V.value?(s(),l("div",{key:0,class:"fixed inset-0 z-[10002] flex items-center justify-center bg-black/70 backdrop-blur-sm p-4",role:"dialog","aria-modal":"true","aria-labelledby":"deletion-scheduled-title",onClick:X(R,["self"])},[e("div",{class:"relative w-full max-w-md rounded-xl border border-neutral-700/50 bg-gradient-to-br from-neutral-900 to-neutral-950 shadow-2xl overflow-hidden",onClick:z[0]||(z[0]=X(()=>{},["stop"]))},[e("div",_l,[e("div",kl,[z[1]||(z[1]=e("div",{class:"flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-primary/20 text-primary"},[e("svg",{class:"h-6 w-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})])],-1)),e("h3",$l,r(M.value),1)])]),e("div",Cl,[e("p",Ml,r(b.value),1)]),e("div",Sl,[e("button",{type:"button",onClick:R,class:"px-4 py-2.5 text-sm font-medium text-white bg-primary rounded-lg hover:opacity-90 focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2 focus:ring-offset-neutral-900 transition-all"},r(H.value),1)])])])):x("",!0)]),_:1})]))]))}});export{Es as F,Rl as _,Ne as a,_s as p,tt as u};

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.