PageSourceSearch

https://www.vivastreet.co.uk/_nuxt/DylPRIWZ.js

js vivastreet.co.uk collected 2026-10-03 23:00:36 UTC 6,498 bytes, 1 lines download raw bytes

1import{L as re,o as b,e as ie,f as t,g as n,K as le,t as c,T as ue,k as a,G as ce,_ as G,d as de,u as z,aw as B,N as _e,D as me,a as pe,h as fe,F as ve,y as ge,w as C,z as x,l as u,A as p,n as $,cE as ye,aL as he,J as we,cF as be,B as D,at as ke,R as E,p as T,av as xe}from"./DueOjiqX.js";import{_ as $e}from"./BUrkYI_r.js";import{_ as Te}from"./zPyYM4g3.js";import{_ as Ie}from"./D5Cglv31.js";import{_ as Ve}from"./D-TlRGKN.js";import{o as Ae,p as L,n as U,a as q,e as Se,s as Re}from"./C2mG-YVC.js";import{A as Be}from"./BAHXUjDz.js";import{k as Ce}from"./CFOq9Gzj.js";import{u as De}from"./BO44Jnii.js";import{u as Ee}from"./CcAoXga2.js";import"./C7m3VfuV.js";import"./D9_waTeN.js";import"./DnxJZdtu.js";import"./BJohW98y.js";const Le={},Ue={class:"flex flex-col gap-2 border-2 border-neutral-50 !shadow-lg rounded-2xl text-base"},qe={class:"flex gap-2 items-center my-1 mx-4 pt-2"},Fe={class:"text-lg font-semibold"},Ne={class:"bg-neutral-50 rounded-2xl p-4 text-center mx-4"},Pe={class:"flex gap-4 justify-center items-center mt-4"},He={class:"my-4 flex flex-col gap-4 w-full border-t border-neutral-100 pt-4 px-4"};function je(_,s){const d=le,f=ue,v=G;return b(),ie("div",Ue,[t("div",qe,[n(d,{name:"mdi:warning-circle-outline",class:"size-6"}),t("p",Fe,c(_.$t("osa_age_check_required")),1)]),t("div",Ne,[t("p",null,c(_.$t("osa_age_check_message")),1),t("div",Pe,[n(f,{src:"/incode-logo.png",class:"w-20",alt:"Incode logo",width:"80",height:"20"}),t("p",null,c(_.$t("osa_powered_by_incode")),1)])]),t("div",He,[n(v,{label:_.$t("osa_verify_now_cta"),class:"flex justify-center",to:"/user/verification",onClick:s[0]||(s[0]=i=>("GATracking"in _?_.GATracking:a(ce)).pushEvent("osa_verify_now_cta"))},null,8,["label"])])])}const ze=Object.assign(re(Le,[["render",je]]),{__name:"VerificationBanner"}),Ge=Ae({email:L(q(),U(),Se()),password:L(q(),U()),turnstileToken:L(q(),U())}),Oe={class:"text-base"},Ke={class:"text-xl font-semibold","data-automation":"urD_LoginTitle"},Me={class:"mt-6"},We={class:"space-y-1"},Je={class:"text-base !my-2"},Qe={class:"flex items-center justify-center"},Xe={class:"text-base py-4"},Ye={class:"pt-5 border-t border-gray-200"},mt=de({__name:"index",async setup(_){let s,d;const f=p(""),v=p(""),i=p(""),O=z().$turnstileKey,{$authHydration:K}=z(),F=B(),M=_e(),W=me(),I=p(!1),g=pe(),{t:h}=fe(),V=we(()=>({email:f.value,password:v.value,turnstileToken:i.value})),m=p({}),N=p(!1),J=(e,o)=>h(e==="email"&&o==="email"?"validation_valid_email":"validation_field_required"),P=()=>{const e=Re(Ge,V.value,{abortPipeEarly:!0}),o={};return e.success||e.issues.forEach(r=>{const l=r.path?.[0]?.key;l&&!o[l]&&(o[l]=J(l,r.type))}),m.value=o,e.success};ve(V,()=>{N.value&&P()});const Q=!g.query.osa,H=g.query.create_email_alert?"/user/registration/lite":"/user/registration/user-type",k=typeof g.query.authorize_refer=="string"?g.query.authorize_refer:null,X=k&&k.startsWith("/")?{path:H,query:{redirect:k}}:H,Y=ge(),{execute:Z,error:A}=([s,d]=C(async()=>De("/api/nuxt/auth/login",{immediate:!1,watch:!1,method:"POST",body:V,onResponse:async({response:e})=>{if(e.ok&&e._data){if(!Ee()){Y.debug("kiwii_session cookie not set correctly",e),F.add({title:h("login_failed"),color:"error",icon:"mdi:alert-circle-outline"});return}const{_data:o}=e;M.$patch({accessToken:o.accessToken,refreshToken:o.refreshToken}),await K();const r=k;if(g.query.osa){await $("/user/verification");return}if(r){const l=ye(r);if(r.startsWith("https://")&&l)await $(r,{external:!0});else{const w=W.resolve(r);await $(w)}}else await $("/user/account/ads")}},onResponseError:async()=>{i.value=""}},"$35tHV1AU-A")),s=await s,d(),s),ee=async()=>{if(F.clear(),N.value=!0,!!P()&&(I.value=!0,await Z(),I.value=!1,A.value)){if(A.value.status===401||A.value.status===400){B().add({title:h("invalid_credentials"),color:"error",icon:"mdi:alert-circle-outline"});return}B().add({title:h("unexpected_error"),color:"error",icon:"mdi:alert-circle-outline"})}},j=p(!1);let S=null;const{execute:te,data:oe}=([s,d]=C(()=>he("/avs/status",{immediate:!1,method:"GET",headers:{"Turnstile-Token":i.value},onResponse({response:e}){S=e.headers.get("set-cookie")}})),s=await s,d(),s);return g.query.osa&&([s,d]=C(()=>te()),await s,d(),S&&(be().value=S),oe.value?.state!==Be.FINISHED&&(j.value=!0)),(e,o)=>{const r=ze,l=$e,w=Te,R=Ie,ae=xe,se=G,ne=Ve;return b(),x(ne,null,{default:u(()=>[a(j)?(b(),x(r,{key:0,class:"mb-6"})):D("",!0),t("div",Oe,[t("h1",Ke,c(e.$t("login_to_vivastreet")),1),t("div",Me,[t("form",{method:"POST",class:"space-y-6",novalidate:"",onSubmit:o[3]||(o[3]=ke(y=>ee(),["prevent"]))},[t("div",null,[n(w,{errors:a(m).email?[a(m).email]:void 0,label:e.$t("email")},{default:u(()=>[n(l,{id:"email",modelValue:a(f),"onUpdate:modelValue":o[0]||(o[0]=y=>E(f)?f.value=y:null),modelModifiers:{trim:!0},type:"email","data-automation":"urD_LoginEmailInput",autocomplete:"username",name:"email",error:a(m).email?!0:void 0},null,8,["modelValue","error"])]),_:1},8,["errors","label"])]),t("div",We,[n(w,{errors:a(m).password?[a(m).password]:void 0,label:e.$t("password")},{default:u(()=>[n(l,{id:"current-password",modelValue:a(v),"onUpdate:modelValue":o[1]||(o[1]=y=>E(v)?v.value=y:null),"data-automation":"urD_Password",type:"password",name:"password",autocomplete:"current-password",error:a(m).password?!0:void 0},null,8,["modelValue","error"])]),_:1},8,["errors","label"]),t("div",Je,[n(R,{to:"/user/forgot-password","data-automation":"urD_ForgotPassword",underlined:!0,color:"tertiary"},{default:u(()=>[T(c(e.$t("forgotten_your_password")),1)]),_:1})])]),a(i).length===0?(b(),x(ae,{key:0},{default:u(()=>[n(w,null,{default:u(()=>[n(a(Ce),{modelValue:a(i),"onUpdate:modelValue":o[2]||(o[2]=y=>E(i)?i.value=y:null),"site-key":a(O)},null,8,["modelValue","site-key"])]),_:1})]),_:1})):D("",!0),t("div",null,[n(se,{type:"submit","data-automation":"urD_Login",block:"",loading:a(I),disabled:a(i)===""},{default:u(()=>[T(c(e.$t("login")),1)]),_:1},8,["loading","disabled"])])],32)]),t("div",null,[t("div",Qe,[t("div",Xe,[Q?(b(),x(R,{key:0,to:a(X),class:"font-semibold","data-automation":"urD_RegisterLink",underlined:!0,color:"tertiary"},{default:u(()=>[T(c(e.$t("create_an_account")),1)]),_:1},8,["to"])):D("",!0)])])]),t("div",Ye,[t("span",null,c(e.$t("having_trouble_logging_in")),1),t("span",null,[n(R,{href:"/s/help","data-automation":"urD_TroubleLoggingInLink",underlined:!0,color:"tertiary",class:"ml-2",external:"","no-prefetch":""},{default:u(()=>[T(c(e.$t("contact_us")),1)]),_:1})])])])]),_:1})}}});
1export{mt 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.