PageSourceSearch

https://www.getgoodtix.com/assets/AuthOverlay-B_dFNCrm.js

js getgoodtix.com collected 2026-10-08 22:42:07 UTC 25,572 bytes, 1 lines download raw bytes

1import{w as _e,c as h,r as u,h as ht,u as yt,E as gt,s as bt,o as xt,e as _t,x as le,k as v,q as a,H as L,G as se,t as r,p as o,l as m,I as J,m as E,n as T,T as wt,F as oe,a9 as re,K as be,a$ as kt,v as M,J as $e,B as j,a_ as Ct,Q as St,j as i,L as Vt,z as Ue,y as Tt}from"./carousel-17pKdu0m.js";import{y as At,z as Et,I as ne,C as Fe}from"./index-4XjfWIcv.js";import{S as Pt}from"./SuccessSplash-BKwQYBCF.js";import{_ as De}from"./Modal.vue_vue_type_script_setup_true_lang-BxSGcOB2.js";import{U as Gt}from"./UserB2CTermsContent-DUTYSB0C.js";import{P as Nt}from"./PromoterB2BTermsContent-7ZaD5ch0.js";import{P as Ht}from"./PrivacyPolicyContent-DLPQi1VD.js";import{f as je}from"./geoApi-CspvPdFN.js";import"./FloatingIconsBackground-DsQp-SRn.js";const xe=5,Lt=5;function Mt(q){return q.trim().replace(/\s+/g," ").toLowerCase()}function Ot(q,W,P){const O=u(xe);_e(()=>Array.from(W.value).sort().join("\0"),()=>{O.value=xe});const l=h(()=>{const d=O.value;for(const w of W.value)if(q.value.filter(n=>n.categorySlug===w).length>d)return!0;return!1}),y=h(()=>{const d=Array.from(W.value);if(d.length===0)return[];const w=O.value,x=[];for(const b of d){const g=q.value.filter(_=>_.categorySlug===b).slice().sort((_,B)=>_.name.localeCompare(B.name,void 0,{sensitivity:"base"}));x.push(...g.slice(0,w))}const n=new Map;for(const b of x){const g=Mt(b.name);if(!g)continue;let _=n.get(g);_||(_={label:b.name.trim(),slugs:new Set},n.set(g,_)),_.slugs.add(b.slug)}return Array.from(n.entries()).map(([b,g])=>({dedupeKey:b,label:g.label,slugs:Array.from(g.slugs).sort()})).sort((b,g)=>b.label.localeCompare(g.label,void 0,{sensitivity:"base"}))});function G(){O.value+=Lt}function ue(){O.value=xe}function Z(d){return d.length>0&&d.every(w=>P.value.has(w))}function ce(d){if(d.length===0)return;const w=d.every(n=>P.value.has(n)),x=new Set(P.value);if(w)for(const n of d)x.delete(n);else for(const n of d)x.add(n);P.value=x}return{genrePills:y,hasMoreGenres:l,loadMoreGenres:G,resetGenrePagination:ue,isGenreGroupFullySelected:Z,toggleGenrePillGroup:ce}}const Rt={class:"relative h-full grid place-items-center px-[var(--space-sm)] py-[var(--space-lg)]"},It={class:"flex items-center justify-between px-[var(--space-lg)] py-[var(--space-md)] border-b border-[var(--color-border)]"},zt=["aria-label"],Bt={class:"flex-1 overflow-y-auto overflow-x-hidden p-[var(--space-lg)] relative"},$t=["aria-valuemax"],Ut={key:1,class:"mb-[var(--space-md)] p-3 bg-red-50 border border-red-200 text-red-600 rounded text-sm flex items-start gap-2 animate-in fade-in slide-in-from-top-1"},Ft={key:2,class:"animate-in fade-in slide-in-from-right-4 duration-300"},Dt={class:"text-center mb-[var(--space-lg)]"},jt={class:"ty-h2 mb-1"},qt={class:"ty-body text-[var(--ty-muted)]"},Kt={class:"grid grid-cols-2 gap-[var(--space-md)] mb-[var(--space-lg)]"},Yt=["disabled"],Qt=["disabled"],Jt={class:"grid gap-[var(--space-md)]"},Wt={class:"grid grid-cols-2 gap-[var(--space-md)]"},Zt={for:"signup-password",class:"text-[var(--fs-sm)] font-medium mb-1 block"},Xt=["type","disabled"],ea=["aria-label","disabled"],ta={class:"flex items-center gap-2 mt-2 h-1"},aa={class:"flex-1 rounded-full bg-gray-200 h-full overflow-hidden"},la={for:"auth-accept-terms",class:"flex items-start gap-3 cursor-pointer p-3 rounded-[var(--radius-md)] border border-[var(--color-border)] hover:bg-[var(--color-bg)] transition-colors"},sa={class:"text-xs text-[var(--color-text-muted)] leading-snug"},oa=["disabled"],ra=["disabled"],na={for:"auth-marketing-optin",class:"flex items-start gap-3 cursor-pointer p-3 rounded-[var(--radius-md)] border border-[var(--color-border)] hover:bg-[var(--color-bg)] transition-colors"},ua={class:"text-xs text-[var(--color-text-muted)] leading-snug"},ia={class:"mt-[var(--space-lg)]"},da={key:0},va={key:1},ca={key:3,class:"animate-in fade-in slide-in-from-right-4 duration-300"},ma={class:"text-center mb-[var(--space-lg)]"},pa={class:"ty-h2 mb-1"},fa={class:"ty-body text-[var(--ty-muted)]"},ha={class:"grid gap-[var(--space-lg)]"},ya={class:"grid gap-[0.4rem]"},ga={for:"auth-host-type",class:"text-[var(--fs-sm)] font-medium text-[var(--color-text)]"},ba={class:"relative"},xa={class:"gtx-select-wrap flex items-center border border-[var(--input-border)] rounded-[var(--input-radius)] bg-[var(--input-bg)] relative transition-all duration-200"},_a=["disabled"],wa={value:"",disabled:"",selected:"",hidden:""},ka=["value"],Ca={class:"absolute right-3 pointer-events-none text-[var(--ty-muted)]"},Sa={class:"gtx-field"},Va={class:"text-xs text-[var(--ty-muted)] mt-1"},Ta={class:"mt-[var(--space-xl)] flex gap-3"},Aa={key:4,class:"animate-in fade-in slide-in-from-right-4 duration-300"},Ea={class:"text-center mb-[var(--space-lg)]"},Pa={class:"ty-h2 mb-1"},Ga={class:"ty-body text-[var(--ty-muted)]"},Na={class:"grid gap-[var(--space-md)]"},Ha={class:"grid gap-[0.4rem]"},La={for:"auth-home-city",class:"text-[var(--fs-sm)] font-medium text-[var(--color-text)]"},Ma={class:"relative z-[15]"},Oa={key:0,class:"absolute left-0 right-0 top-[calc(100%+6px)] z-20 rounded-[var(--radius-md)] border border-[var(--color-border)] bg-white shadow-lg max-h-56 overflow-auto"},Ra={key:0,class:"flex items-center gap-2 px-3 py-3 text-xs text-[var(--ty-muted)]"},Ia=["onClick"],za={key:1,class:"px-3 py-2 text-xs text-[var(--ty-muted)]"},Ba={key:2,class:"px-3 py-2 text-xs text-[var(--ty-muted)]"},$a={class:"text-xs text-[var(--ty-muted)]"},Ua={class:"text-sm font-medium mb-3"},Fa={class:"flex flex-wrap gap-2"},Da=["onClick"],ja={key:0,class:"animate-in fade-in slide-in-from-top-2 pt-4 border-t border-[var(--color-border)]"},qa={class:"text-sm font-medium mb-3 text-[var(--color-text-muted)]"},Ka={class:"flex flex-wrap gap-2"},Ya=["onClick"],Qa={key:0,class:"mt-3 flex w-full justify-center"},Ja={class:"mt-[var(--space-xl)] flex justify-between items-center"},Wa=["disabled"],Za={key:5,class:"text-center py-10 animate-in zoom-in-95 duration-500"},Xa={class:"inline-flex items-center justify-center w-20 h-20 rounded-full bg-green-100 text-green-600 mb-6 shadow-sm"},el={class:"ty-h2 mb-2"},tl={class:"ty-body text-[var(--ty-muted)] mb-8"},al={class:"grid grid-cols-2 gap-4"},ll={class:"max-h-[70vh] overflow-y-auto pr-1"},sl={class:"max-h-[70vh] overflow-y-auto pr-1"},qe="auth-overlay-title",ol=ht({__name:"AuthOverlay",props:{modelValue:{type:Boolean},mode:{default:"signup"}},emits:["update:modelValue","complete"],setup(q,{emit:W}){const P=q,O=W,{t:l}
1=yt(),y=gt(),G=u(P.modelValue&&(P.mode??"signup")==="signup");_e(()=>P.modelValue,s=>{const e=(P.mode??"signup")==="signup";G.value=!!s&&e});const ue=u(null),Z=u(null),ce=At(ue,{onEscape:()=>fe(),restoreFocus:!0});Et(ce,G);const d=u(1),w=u(!1),x=u(null),n=u(!1),b=u(!1),g=u(""),_=u(""),B=u(""),Ke=u(""),f=u("user"),R=u(""),K=u(""),we=h(()=>[{value:"PROMOTER",label:l("overlays.auth.step1Host.types.PROMOTER")},{value:"AGENCY",label:l("overlays.auth.step1Host.types.AGENCY")},{value:"MANAGEMENT",label:l("overlays.auth.step1Host.types.MANAGEMENT")},{value:"VENUE",label:l("overlays.auth.step1Host.types.VENUE")},{value:"ARTIST",label:l("overlays.auth.step1Host.types.ARTIST")},{value:"BOOKER",label:l("overlays.auth.step1Host.types.BOOKER")},{value:"OTHER",label:l("overlays.auth.step1Host.types.OTHER")}]),Ye=h(()=>{const s=we.value.find(e=>e.value===R.value);return s?.value==="VENUE"?"Venue":s?.value==="AGENCY"?"Agentur":s?.label||"Promoter"}),S=u(""),$=u(!1),X=u(null),ie=u(!1),ee=u(!1),de=u(!1),ve=u(!1),me=h(()=>f.value==="promoter"),Qe=h(()=>me.value?l("overlays.auth.legalTermsLinkPromoter"):l("overlays.auth.legalTermsLink")),U=h(()=>f.value==="promoter"?"var(--secondary-500)":"var(--primary-500)"),te=h(()=>f.value==="promoter"?"secondary":"primary"),Je=h(()=>f.value==="promoter"?"var(--secondary-500)":"var(--primary-500)"),ke=h(()=>S.value.length>=8),Ce=h(()=>/[A-Za-z]/.test(S.value)),Se=h(()=>/\d/.test(S.value)),We=h(()=>!/\s/.test(S.value)),Ve=h(()=>ke.value&&Ce.value&&Se.value&&We.value),N=h(()=>{if(!S.value)return"none";if(!Ve.value)return"weak";let s=0;return ke.value&&s++,Ce.value&&Se.value&&s++,S.value.length>=12&&s++,s<=1?"medium":"strong"}),Ze=h(()=>{switch(N.value){case"weak":return l("settings.profile.password.strength.weak");case"medium":return l("settings.profile.password.strength.medium");case"strong":return l("settings.profile.password.strength.strong");default:return""}}),Te=h(()=>g.value.trim().length>0&&_.value.trim().length>0&&/\S+@\S+\.\S+/.test(B.value)&&ie.value===!0&&Ve.value),k=u(""),F=u(null),Y=u(""),V=u([]),C=u(!1),A=u(!1),I=u(""),z=u("");let H=null;const Q=u(new Set),ae=u(new Set),{genres:Xe}=bt(y),{genrePills:Ae,hasMoreGenres:et,loadMoreGenres:tt,resetGenrePagination:at,isGenreGroupFullySelected:Ee,toggleGenrePillGroup:lt}=Ot(Xe,Q,ae);function Pe(s){const e=[];return s.city&&e.push(s.city),s.state&&s.state!==s.city&&e.push(s.state),e.length===0?s.label:e.join(", ")}function Ge(){V.value=[],A.value=!1,C.value=!1,I.value=""}function st(s){if(H&&window.clearTimeout(H),z.value=s,s.trim().length<1){Ge();return}A.value=!0,C.value=!0,H=window.setTimeout(async()=>{const t=z.value.trim();if(t.length<1){A.value=!1,C.value=!1;return}if(t.length<2){V.value=[],I.value=t,C.value=!1;return}const c=t;V.value=[];try{const p=await je(c);if(z.value.trim()!==c)return;V.value=Array.isArray(p)?p:[],I.value=c,A.value=!0}catch{if(z.value.trim()!==c)return;V.value=[],I.value=c,A.value=!0}finally{z.value.trim()===c&&(C.value=!1)}},320)}function ot(s){k.value=s,s!==Y.value&&(F.value=null,Y.value=""),st(s)}function Ne(s){const e=Pe(s);k.value=e,F.value={lat:s.lat,lng:s.lng},Y.value=e,z.value=e,V.value=[],A.value=!1,C.value=!1}async function rt(){const s=k.value.trim();if(s.length<2)return;H&&(window.clearTimeout(H),H=null),z.value=s,A.value=!0,C.value=!0,V.value=[];const e=s;try{const t=await je(e);if(k.value.trim()!==e)return;const c=Array.isArray(t)?t:[];if(V.value=c,I.value=e,c.length===1){Ne(c[0]);return}A.value=!0}catch{if(k.value.trim()!==e)return;V.value=[],I.value=e,A.value=!0}finally{C.value=!1}}function nt(s){s.key==="Enter"&&(s.preventDefault(),rt())}const ut=h(()=>y.categories||[]);function it(s){const e=new Set(Q.value);if(e.has(s)){e.delete(s);const t=y.genres.filter(p=>p.categorySlug===s).map(p=>p.slug),c=new Set(ae.value);t.forEach(p=>c.delete(p)),ae.value=c}else e.add(s);Q.value=e}function He(s){X.value||s&&(f.value=s)}function dt(s){return s==="promoter"?"HOST":"DISCOVER"}function vt(){const e=f.value==="promoter";y.setRoles({hasDiscover:!0,hasPromoter:e}),y.setMode(e?"promote":"discover")}function pe(){d.value=1,w.value=!1,x.value=null,n.value=!1,b.value=!1,g.value="",_.value="",B.value="",Ke.value="",f.value="user",X.value=null,ie.value=!1,ee.value=!1,Q.value=new Set,ae.value=new Set,at(),k.value="",F.value=null,Y.value="",z.value="",H&&(window.clearTimeout(H),H=null),Ge(),S.value="",$.value=!1,de.value=!1,ve.value=!1,R.value="",K.value=""}function Le(){G.value=!1,pe()}function fe(){Le()}async function ct(){if(!(!Te.value||n.value)){if(f.value==="promoter"){d.value="1-host";return}await Me()}}async function mt(){!R.value||!K.value.trim()||n.value||await Me()}async function Me(){x.value=null,n.value=!0;const s=`${g.value.trim()} ${_.value.trim()}`.trim(),e=B.value.trim(),t=S.value,c=dt(f.value);try{const D=await y.registerWithPassword({email:e,password:t,name:s||void 0,role:c,termsAccepted:!0,goodtixNewsletterOptIn:!!ee.value,organizerNewsletterOptIn:!!ee.value,hostType:f.value==="promoter"?R.value:void 0,publicDisplayName:f.value==="promoter"?K.value.trim():void 0});if(D?.ok===!1||D?.error||D?.statusCode&&D?.statusCode>=400)throw D;vt(),w.value=!0,n.value=!1,await new Promise(ye=>setTimeout(ye,1200)),w.value=!1,d.value=2,await Ue()}catch(p){console.error("Signup process error:",p),n.value=!1;const D=p?.status||p?.statusCode||p?.response?.status||0,ye=[p?.error,p?.message].filter(
1Boolean).map(ft=>String(ft).toLowerCase()).join(" ");let Be="";try{Be=JSON.stringify(p).toLowerCase()}catch{}const ge=`${ye} ${Be}`;p?.emailInUse===!0||D===409||ge.includes("email already in use")||ge.includes("email already registered")||ge.includes("http 409")?x.value=l("overlays.auth.errors.emailTaken"):x.value=l("overlays.auth.errors.generic")}}async function Oe(){b.value=!0;try{const s=k.value.trim()||void 0;if(s&&y.isAuthenticated){const p=F.value&&Y.value&&Y.value===k.value&&F.value?{city:s,lat:F.value.lat,lng:F.value.lng}:{city:s};await y.updateProfile(p)}const e=Array.from(Q.value),t=Array.from(ae.value);if((e.length||t.length)&&y.isAuthenticated)try{await y.updatePreferences({categorySlugs:e,genreSlugs:t})}catch(c){console.error(c)}d.value=3}catch(s){console.error("Prefs update error",s),d.value=3}finally{b.value=!1}}function Re(s){O("complete",{route:s}),Le()}function Ie(s){const e=s.detail||{};if(e?.mode!=="signup")return;pe(),d.value=1,G.value=!0;const t=e?.presetRole??null,c=!!e?.lockRole;t&&(f.value=t),X.value=c?t??null:null}function ze(){G.value=!1}_e(G,async s=>{O("update:modelValue",s),s?(y.fetchCategories(),y.fetchGenres(),S.value="",await Ue(),Z.value&&(Z.value.value="")):pe()}),xt(()=>{y.fetchCategories(),y.fetchGenres(),window.addEventListener("open-auth",Ie),window.addEventListener("open-login",ze)}),_t(()=>{window.removeEventListener("open-auth",Ie),window.removeEventListener("open-login",ze)});const he=h(()=>f.value==="promoter"?3:2),pt=h(()=>d.value===1?1:d.value==="1-host"?2:d.value===2?f.value==="promoter"?3:2:he.value);return(s,e)=>(i(),le(St,{to:"#overlay-root"},[G.value?(i(),v("div",{key:0,class:"fixed inset-0 z-[var(--z-modal)]",style:se({"--accent":U.value,"--input-focus":U.value})},[a("div",{class:"absolute inset-0 backdrop-blur-sm bg-[var(--overlay-scrim)] transition-opacity duration-300","aria-hidden":"true",onClick:fe}),a("div",Rt,[a("div",{ref_key:"dialogEl",ref:ue,class:L(["relative w-full max-w-[500px] bg-white rounded-[var(--radius-lg)] shadow-2xl overflow-hidden flex flex-col transition-all duration-500 ease-in-out",[w.value?"scale-105":"scale-100"]]),role:"dialog","aria-modal":"true","aria-labelledby":qe,tabindex:"-1",style:{"max-height":"90vh"}},[a("div",{class:"h-1.5 w-full transition-colors duration-500",style:se({background:U.value})},null,4),a("div",It,[a("h2",{id:qe,class:"text-[var(--fs-md)] font-bold tracking-tight text-[var(--color-text)]"},r(o(l)("overlays.auth.headerBrand")),1),a("button",{type:"button",class:"w-8 h-8 grid place-items-center rounded-full text-[var(--color-text-muted)] hover:text-[var(--color-text)] hover:bg-[rgba(0,0,0,0.05)] transition-colors","aria-label":o(l)("common.close"),onClick:fe},[m(J,{name:"x",size:"sm"})],8,zt)]),m(wt,{name:"fade"},{default:E(()=>[w.value?(i(),le(Pt,{key:0,headline:o(l)("overlays.auth.success.title"),subtitle:o(l)("overlays.auth.success.subtitle"),bg:Je.value,"show-floating-icons":!0,class:"z-50"},null,8,["headline","subtitle","bg"])):T("",!0)]),_:1}),a("div",Bt,[d.value!==3?(i(),v("div",{key:0,class:"flex gap-2 mb-[var(--space-lg)]",role:"progressbar","aria-valuemin":"1","aria-valuemax":he.value},[(i(!0),v(oe,null,re(he.value,t=>(i(),v("div",{key:t,class:"h-1 flex-1 rounded-full transition-colors duration-500",style:se({background:t<=pt.value?U.value:"var(--color-border)"})},null,4))),128))],8,$t)):T("",!0),x.value?(i(),v("div",Ut,[m(J,{name:"alert-circle",size:"sm",class:"shrink-0 mt-0.5"}),a("span",null,r(x.value),1)])):T("",!0),d.value===1?(i(),v("div",Ft,[a("div",Dt,[a("h3",jt,r(o(l)("overlays.auth.step1.title")),1),a("p",qt,r(o(l)("overlays.auth.step1.subtitle")),1)]),a("div",Kt,[a("button",{type:"button",class:L(["py-3 text-sm font-bold border-2 rounded-[var(--btn-radius)] transition-all duration-200 focus-visible:ring-2 focus-visible:ring-offset-2",f.value==="user"?"bg-black text-white border-black":"bg-white text-black border-black hover:bg-gray-50"]),disabled:!!X.value||n.value,onClick:e[0]||(e[0]=t=>He("user"))},r(o(l)("overlays.auth.role.fan")),11,Yt),a("button",{type:"button",class:L(["py-3 text-sm font-bold border-2 rounded-[var(--btn-radius)] transition-all duration-200 focus-visible:ring-2 focus-visible:ring-offset-2",f.value==="promoter"?"bg-black text-white border-black":"bg-white text-black border-black hover:bg-gray-50"]),disabled:!!X.value||n.value,onClick:e[1]||(e[1]=t=>He("promoter"))},r(o(l)("overlays.auth.role.promoter")),11,Qt)]),a("div",Jt,[a("div",Wt,[m(ne,{modelValue:g.value,"onUpdate:modelValue":e[2]||(e[2]=t=>g.value=t),label:o(l)("overlays.auth.fields.firstName"),disabled:n.value,"focus-variant":te.value},null,8,["modelValue","label","disabled","focus-variant"]),m(ne,{modelValue:_.value,"onUpdate:modelValue":e[3]||(e[3]=t=>_.value=t),label:o(l)("overlays.auth.fields.lastName"),disabled:n.value,"focus-variant":te.value},null,8,["modelValue","label","disabled","focus-variant"])]),m(ne,{modelValue:B.value,"onUpdate:modelValue":e[4]||(e[4]=t=>B.value=t),type:"email",label:o(l)("overlays.auth.fields.email"),disabled:n.value,"focus-variant":te.value},null,8,["modelValue","label","disabled","focus-variant"]),a("div",null,[a("label",Zt,r(o(l)("overlays.login.fields.password")),1),a("div",{class:L(["gtx-pw-wrap flex items-center gap-[var(--space-sm)] border border-[var(--input-border)] rounded-[var(--input-radius)] px-[var(--input-pad-x)] bg-[var(--input-bg)]",{"opacity-60 pointer-events-none":n.value}]),style:se({"--ring-color":U.value})},[be(a("input",{id:"signup-password",ref_key:"pwInputEl",ref:Z,"onUpdate:modelValue":e[5]||(e[5]=t=>S.value=t),type:$.value?"text":"password",class:"w-full h-[var(--nav-control-height)] bg-transparent outline-none text-[var(--color-text)]",autocomplete:"new-password",disabled:n.value},null,8,Xt),[[kt,S.value]]),a("button",{type:"button",class:"opacity-50 hover:opacity-100 p-1","aria-label":$.value?o(l)("overlays.login.a11y.hidePassword"):o(l)("overlays.login.a11y.showPassword"),disabled:n.value,onClick:e[6]||(e[6]=t=>$.value=!$.value)},[(i(),le(J,{key:$.value?"eye":"noview",name:$.value?"eye":"noview",size:"sm"},null,8,["name"]))],8,ea)],6),a("div",ta,[a("div",aa,[a("div",{class:L(["h-full transition-all duration-500",{"bg-red-500 w-1/3":N.value==="weak","bg-amber-500 w-2/3":N.value==="medium","bg-green-500 w-full":N.value==="strong","w-0":N.value==="none"}])},null,2)]),a("span",{class:L(["text-[10px] uppercase font-bold tracking-wider",{"text-red-600":N.value==="weak","text-amber-600":N.value==="medium","text-green-600":N.value==="strong","text-gray-400":N.value==="none"}])},r(Ze.value||"Passwort"),3)])]),a("label",la,[m(Fe,{id:"auth-accept-terms",modelValue:ie.value,"onUpdate:modelValue":e[7]||
1(e[7]=t=>ie.value=t),class:"mt-0.5",disabled:n.value},null,8,["modelValue","disabled"]),a("span",sa,[M(r(o(l)("overlays.auth.legalPrefix"))+" ",1),a("button",{type:"button",class:"underline text-black font-semibold cursor-pointer",disabled:n.value,onClick:e[8]||(e[8]=$e(t=>de.value=!0,["stop","prevent"]))},r(Qe.value),9,oa),M(" "+r(o(l)("overlays.auth.legalAnd"))+" ",1),a("button",{type:"button",class:"underline text-black font-semibold cursor-pointer",disabled:n.value,onClick:e[9]||(e[9]=$e(t=>ve.value=!0,["stop","prevent"]))},r(o(l)("overlays.auth.legalPrivacyLink")),9,ra),M(" "+r(o(l)("overlays.auth.legalSuffix")),1)])]),a("label",na,[m(Fe,{id:"auth-marketing-optin",modelValue:ee.value,"onUpdate:modelValue":e[10]||(e[10]=t=>ee.value=t),class:"mt-0.5",disabled:n.value},null,8,["modelValue","disabled"]),a("span",ua,r(o(l)("overlays.auth.marketingOptIn")),1)])]),a("div",ia,[m(j,{variant:f.value==="promoter"?"secondary":"primary",size:"lg",class:"w-full shadow-md",disabled:!Te.value||n.value,loading:n.value,onClick:ct},{default:E(()=>[f.value==="promoter"?(i(),v("span",da,r(o(l)("common.next")),1)):(i(),v("span",va,r(o(l)("overlays.auth.actions.create")),1))]),_:1},8,["variant","disabled","loading"])])])):d.value==="1-host"?(i(),v("div",ca,[a("div",ma,[a("h3",pa,r(o(l)("overlays.auth.step1Host.title")),1),a("p",fa,r(o(l)("overlays.auth.step1Host.subtitle")),1)]),a("div",ha,[a("div",ya,[a("label",ga,[M(r(o(l)("overlays.auth.step1Host.roleLabel"))+" ",1),e[19]||(e[19]=a("span",{class:"text-[var(--primary-500)]"},"*",-1))]),a("div",ba,[a("div",xa,[be(a("select",{id:"auth-host-type","onUpdate:modelValue":e[11]||(e[11]=t=>R.value=t),class:L(["w-full h-[var(--nav-control-height)] bg-transparent px-[var(--input-pad-x)] appearance-none outline-none cursor-pointer text-[var(--color-text)]",{"text-[var(--ty-muted)]":!R.value}]),disabled:n.value},[a("option",wa,r(o(l)("overlays.auth.step1Host.selectPlaceholder")),1),(i(!0),v(oe,null,re(we.value,t=>(i(),v("option",{key:t.value,value:t.value},r(t.label),9,ka))),128))],10,_a),[[Ct,R.value]]),a("div",Ca,[m(J,{name:"chevron-down",size:"sm"})])])])]),a("div",Sa,[m(ne,{modelValue:K.value,"onUpdate:modelValue":e[12]||(e[12]=t=>K.value=t),label:o(l)("overlays.auth.step1Host.nameLabel",{type:Ye.value}),placeholder:o(l)("overlays.auth.step1Host.namePH"),disabled:n.value,required:"","focus-variant":te.value},null,8,["modelValue","label","placeholder","disabled","focus-variant"]),a("p",Va,r(o(l)("overlays.auth.step1Host.nameHint")),1)])]),a("div",Ta,[m(j,{variant:"default",class:"flex-1",disabled:n.value,onClick:e[13]||(e[13]=t=>d.value=1)},{default:E(()=>[M(r(o(l)("common.back")),1)]),_:1},8,["disabled"]),m(j,{variant:"secondary",class:"flex-[2]",disabled:!R.value||!K.value.trim()||n.value,loading:n.value,onClick:mt},{default:E(()=>[a("span",null,r(o(l)("overlays.auth.actions.create")),1)]),_:1},8,["disabled","loading"])])])):d.value===2?(i(),v("div",Aa,[a("div",Ea,[a("h3",Pa,r(o(l)("overlays.auth.step2.title")),1),a("p",Ga,r(o(l)("overlays.auth.step2.subtitle")),1)]),a("div",Na,[a("div",Ha,[a("label",La,r(o(l)("overlays.auth.fields.city")),1),a("div",Ma,[m(ne,{id:"auth-home-city","model-value":k.value,placeholder:o(l)("overlays.auth.step2.cityPlaceholder"),autocomplete:"off","focus-variant":te.value,"onUpdate:modelValue":e[14]||(e[14]=t=>ot(String(t))),onKeydown:nt},null,8,["model-value","placeholder","focus-variant"]),A.value?(i(),v("div",Oa,[C.value?(i(),v("div",Ra,[m(J,{name:"loader",size:"sm",class:"animate-spin shrink-0"}),a("span",null,r(o(l)("overlays.auth.step2.citySuggestLoading")),1)])):T("",!0),(i(!0),v(oe,null,re(V.value,(t,c)=>be((i(),v("button",{key:`city-sg-${c}-${t.lat}-${t.lng}`,type:"button",class:"w-full px-3 py-2 text-left text-sm hover:bg-gray-50 border-b border-gray-100 last:border-b-0",onClick:p=>Ne(t)},r(Pe(t)),9,Ia)),[[Vt,!C.value]])),128)),!C.value&&k.value.trim().length===1&&I.value===k.value.trim()?(i(),v("div",za,r(o(l)("overlays.auth.step2.citySuggestMinChars")),1)):T("",!0),!C.value&&!V.value.length&&I.value===k.value.trim()&&k.value.trim().length>=2?(i(),v("div",Ba,r(o(l)("overlays.auth.step2.citySuggestEmpty")),1)):T("",!0)])):T("",!0)]),a("p",$a,r(o(l)("overlays.auth.step2.cityHint")),1)]),a("div",null,[a("div",Ua,r(o(l)("overlays.auth.step2.questionCat")),1),a("div",Fa,[(i(!0),v(
1oe,null,re(ut.value,t=>(i(),v("button",{key:t.slug,class:L(["px-4 py-2 rounded-full border text-sm font-medium transition-all duration-200",Q.value.has(t.slug)?"bg-black text-white border-black transform scale-105 shadow-sm":"bg-white text-[var(--color-text)] border-[var(--color-border)] hover:border-gray-400"]),onClick:c=>it(t.slug)},r(t.name),11,Da))),128))])]),o(Ae).length>0?(i(),v("div",ja,[a("div",qa,r(o(l)("overlays.auth.step2.refine")),1),a("div",Ka,[(i(!0),v(oe,null,re(o(Ae),t=>(i(),v("button",{key:t.dedupeKey,type:"button",class:L(["px-3 py-1.5 rounded-full border text-xs font-medium transition-all",o(Ee)(t.slugs)?"ring-1":"bg-white text-[var(--color-text-muted)] border-[var(--color-border)] hover:text-black"]),style:se(o(Ee)(t.slugs)?{borderColor:U.value,color:U.value,backgroundColor:"rgba(0,0,0,0.03)"}:{}),onClick:c=>o(lt)(t.slugs)},r(t.label),15,Ya))),128))]),o(et)?(i(),v("div",Qa,[m(j,{variant:"default",size:"sm",type:"button",class:"!font-normal !text-[var(--color-text-muted)] !border-[var(--color-border)] hover:!text-[var(--color-text)]",onClick:o(tt)},{default:E(()=>[M(r(o(l)("common.loadMore")),1)]),_:1},8,["onClick"])])):T("",!0)])):T("",!0)]),a("div",Ja,[a("button",{class:"text-sm text-[var(--color-text-muted)] hover:text-black underline underline-offset-4",disabled:b.value,onClick:Oe},r(o(l)("overlays.auth.actions.skip")),9,Wa),m(j,{variant:f.value==="promoter"?"secondary":"primary",loading:b.value,onClick:Oe},{default:E(()=>[M(r(o(l)("overlays.auth.actions.finish")),1)]),_:1},8,["variant","loading"])])])):d.value===3?(i(),v("div",Za,[a("div",Xa,[m(J,{name:"check",size:"lg"})]),a("h3",el,r(o(l)("overlays.auth.step3.title")),1),a("p",tl,r(o(l)("overlays.auth.step3.subtitle")),1),a("div",al,[m(j,{variant:"default",class:"w-full justify-center btn-outline-black",onClick:e[15]||(e[15]=t=>Re("browse"))},{default:E(()=>[M(r(o(l)("overlays.auth.step3.browse")),1)]),_:1}),m(j,{variant:f.value==="promoter"?"secondary":"primary",class:"w-full justify-center",onClick:e[16]||(e[16]=t=>Re("dashboard"))},{default:E(()=>[M(r(o(l)("overlays.auth.step3.dashboard")),1)]),_:1},8,["variant"])])])):T("",!0)])],2)])],4)):T("",!0),m(De,{modelValue:de.value,"onUpdate:modelValue":e[17]||(e[17]=t=>de.value=t),title:me.value?"AGB für Veranstalter:innen (B2B)":"AGB für Nutzer:innen",width:"xl","close-on-backdrop":!0},{default:E(()=>[a("div",ll,[me.value?(i(),le(Nt,{key:0})):(i(),le(Gt,{key:1}))])]),_:1},8,["modelValue","title"]),m(De,{modelValue:ve.value,"onUpdate:modelValue":e[18]||(e[18]=t=>ve.value=t),title:o(l)("legal.privacy.title"),width:"xl","close-on-backdrop":!0},{default:E(()=>[a("div",sl,[m(Ht)])]),_:1},8,["modelValue","title"])]))}}),fl=Tt(ol,[["__scopeId","data-v-4c8dba0b"]]);export{fl as default};

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.