PageSourceSearch

https://redbullsport.com/_nuxt/DQvZQwDz.js

js redbullsport.com collected 2026-10-07 20:49:29 UTC 5,082 bytes, 1 lines download raw bytes

1import{x as M,aa as R,a4 as U,af as T,ao as F,P as I,s as P,p as s,v as o,aw as t,c as S,u as d,$ as r,a0 as e,A as y,d as q,a as D,_ as H,f as z,g as O,q as G,r as J,F as K,V as u,j as Q}from"./DQIkdDWl.js";import{_ as W}from"./CkobgwMp.js";import{_ as X}from"./BdIzqLJq.js";import{u as Y}from"./B3bp7SI6.js";const Z={class:"flex flex-1 w-full items-start lg:items-center justify-center bg-brand-navy pt-[88px] sm:pt-[96px] xl:pt-[118px]"},ee={class:"w-full max-w-[1094px] md:h-[700px] flex flex-col md:flex-row bg-white shadow-2xl relative z-10 overflow-hidden self-center"},ae={class:"w-full md:w-1/2 p-8 md:px-[20px] lg:p-14 h-full flex flex-col justify-start"},le={key:"login"},oe={class:"mb-[20px] md:mb-[32px]"},se={class:"space-y-6"},te={class:"mb-[20px] lg:mb-[32px]"},ne={class:"mb-[20px] lg:mb-[32px]"},ie={class:"flex flex-col gap-[20px] lg:gap-[24px] mb-[12px] lg:mb-[32px]"},de={class:"text-center"},re={class:"text-center py-4 space-y-4 flex flex-col items-center"},ue={class:"text-center py-4 space-y-4 flex flex-col items-center"},ce={class:"flex flex-col gap-3"},pe=M({__name:"index",setup(_e){const{t:l}=R(),{login:$,resendVerification:j}=U(),v=T(),w=F();Y("auth");const p=u(""),x=u(""),V=u(!1),c=u(!1),_=u(""),m=u(!1),k=u(!1),f=u(!1),b=u(""),E=async()=>{if(!p.value){_.value=l("common.errors.required_email"),c.value=!0;return}V.value=!0,_.value="";try{const i=await $({email:p.value,password:x.value});i&&i.success&&w.push(v("/"))}catch(i){if(i.data?.error==="EMAIL_NOT_VERIFIED")m.value=!0;else if(i.data&&i.data.message){const a=i.data.message;
1_.value=Array.isArray(a)?a.filter(Boolean).join(", "):a,c.value=!!_.value}else _.value=l("pages.login.login_failed"),c.value=!0}finally{V.value=!1}},L=async()=>{k.value=!0,b.value="",f.value=!1;try{await j(p.value),f.value=!0}catch(i){const a=i.data?.message;b.value=Array.isArray(a)?a.join(", "):a||l("pages.login.login_failed")}finally{k.value=!1}};return(i,a)=>{const h=S,B=W,g=q,C=H,N=z,A=O;return I(),P(K,null,[s("div",Z,[s("div",ee,[a[8]||(a[8]=s("div",{class:"aspect-[375/200] md:aspect-auto md:w-1/2 relative bg-gray-100"},[s("img",{src:X,alt:"Login Hero",class:"absolute inset-0 w-full h-full object-cover"})],-1)),s("div",ae,[o(D,{name:"fade",mode:"out-in"},{default:t(()=>[s("div",le,[s("div",oe,[o(h,{as:"h1",variant:"h2",family:"condensed",weight:"bold",color:"brand-navy"},{default:t(()=>[d(r(e(l)("pages.login.title")),1)]),_:1})]),s("div",se,[s("div",te,[o(B,{modelValue:e(p),"onUpdate:modelValue":a[0]||(a[0]=n=>y(p)?p.value=n:null),type:"email",name:"user_email_field",autocomplete:"login_user_email_field",label:e(l)("common.labels.email_address"),placeholder:e(l)("common.labels.email_address_placeholder"),"text-eng":""},null,8,["modelValue","label","placeholder"])]),s("div",ne,[o(B,{modelValue:e(x),"onUpdate:modelValue":a[1]||(a[1]=n=>y(x)?x.value=n:null),name:"user_pass_field",autocomplete:"login_user_pass_field",type:"password",label:e(l)("pages.login.password"),placeholder:e(l)("pages.login.password"),hint:e(l)("pages.login.forgot_password"),onHintClick:a[2]||(a[2]=n=>e(w).push(e(v)("/account-recovery")))},null,8,["modelValue","label","placeholder","hint"])]),s("div",ie,[o(g,{block:"",variant:"red-solid",onClick:E,loading:e(V),class:"w-full"},{default:t(()=>[d(r(e(l)("pages.login.title")),1)]),_:1},8,["loading"]),s("div",de,[o(h,{variant:"label",weight:"bold",color:"brand-placeholder"},{default:t(()=>[d(r(e(l)("pages.login.dont_have_an_account")),1)]),_:1})]),o(g,{block:"",variant:"outline-black",onClick:a[3]||(a[3]=n=>e(w).push(e(v)("/register")))},{default:t(()=>[d(r(e(l)("pages.login.sign_up")),1)]),_:1})])])])]),_:1})])])]),o(A,{modelValue:e(c),"onUpdate:modelValue":a[5]||(a[5]=n=>y(c)?c.value=n:null),title:e(l)("pages.login.login_failed"),width:"sm"},{footer:t(()=>[o(N,{to:e(v)("/account-recovery")},{default:t(()=>[o(g,{block:"",variant:"red-solid",onClick:a[4]||(a[4]=n=>c.value=!1)},{default:t(()=>[d(r(e(l)("pages.login.forgot_password")),1)]),_:1})]),_:1},8,["to"])]),default:t(()=>[s("div",re,[o(C,{name:"lucide:alert-circle",class:"!w-12 !h-12 text-brand-red"}),o(h,{variant:"body-lg",weight:"bold",color:"brand-navy"},{default:t(()=>[d(r(e(_)),1)]),_:1})])]),_:1},8,["modelValue","title"]),o(A,{modelValue:e(m),"onUpdate:modelValue":a[7]||(a[7]=n=>y(m)?m.value=n:null),title:e(l)("pages.login.unverified_title"),width:"sm"},{footer:t(()=>[s("div",ce,[e(f)?J("",!0):(I(),G(g,{key:0,block:"",variant:"red-solid",loading:e(k),onClick:L},{default:t(()=>[d(r(e(l)("pages.login.unverified_resend")),1)]),_:1},8,["loading"])),o(g,{block:"",variant:"outline-black",onClick:a[6]||(a[6]=n=>{m.value=!1,f.value=!1,b.value=""})},{default:t(()=>[d(r(e(l)("common.buttons.close")),1)]),_:1})])]),default:t(()=>[s("div",ue,[o(C,{name:"lucide:mail",class:"!w-12 !h-12 text-brand-navy"}),o(h,{variant:"body-lg",weight:"bold",color:"brand-navy"},{default:t(()=>[d(r(e(f)?e(l)("pages.login.unverified_sent"):e(b)||e(l)("pages.login.unverified_message")),1)]),_:1})])]),_:1},8,["modelValue","title"])],64)}}}),xe=Q(pe,[["__scopeId","data-v-a5b3baac"]]);export{xe 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.