PageSourceSearch

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

js vivastreet.co.uk collected 2026-09-25 19:52:26 UTC 4,065 bytes, 1 lines download raw bytes

1import{_ as w}from"./BQtIHUhQ.js";import{_ as B}from"./SDuCV4ab.js";import{_ as D}from"./Bkvy7wa7.js";import{_ as E}from"./FOkCSXzy.js";import{L as P,e as S,f as l,t as p,p as b,g as r,l as _,z as U,B as q,at as F,D as $,cF as K,u as L,b7 as M,h as N,ap as G,av as j,_ as z,A as h,J as C,c as H,aK as J,aa as Q,o as R,k as W,G as X}from"./Da8mETzA.js";import{k as Y}from"./DWAHkEx0.js";import{c as V,a as I,r as Z,u as tt}from"./Cc2IPWSx.js";import{u as et}from"./DfyTL7eJ.js";import{u as ot}from"./DItTE2OY.js";import"./KzFf-jUO.js";import"./BOpaJqAy.js";import"./C6Y-ieo6.js";import"./Cq2poSBx.js";import"./B0GSFqv5.js";import"./C8ME3oCe.js";import"./DvfaLSax.js";const nt={components:{VueTurnstile:Y},async setup(){const e=h(null),o=$(),u=K(),t=h(""),k=L().$turnstileKey,{phone:x,uuid:f}=M(u),m=h(null),v=J({otpCode:m,recaptcha:e,turnstileToken:t}),{t:a}=N();G({title:a("registration_title")});const g=C(()=>u.getPhoneOtp.data.otpValidationAttempts),y=C(()=>g.value>2),c=h({}),n={otpCode:{required:V.withMessage(a("validation_field_required"),Z),minLength:V.withMessage(a("validation_field_required"),I(4))},recaptcha:{required:V.withMessage(a("validation_recaptcha_required"),I(1))}},T=h(!1),d=tt(n,v,{$externalResults:c});return{v$:d,uuid:f,phone:x,submit:async()=>{if(d.value.$clearExternalResults(),d.value.$validate(),d.value.$error){const s=[];d.value.$errors.forEach(i=>{s.push(i.$property)});return}const O={uuid:f.value,otpCode:m.value?.join(""),otpType:"sms",turnstileToken:t.value,turnstileKey:k};T.value=!0;try{await et("/otp/validate/",{method:"POST",body:O,headers:{"Turnstile-Token":t.value},onResponse({response:s}){if(s.ok){const{_data:i}=s,{otpStatus:A}=i.data;u.updateOtpStatus("sms",A),o.push({path:"/user/registration/details"})}},onResponseError({response:s}){t.value="";const i=ot(s,"sms");i&&(c.value=i,e.value=null,u.incrementOtp("sms"))}})}catch(s){if(Object.keys(c.value).length===0)throw H(s)}finally{T.value=!1}},showRecaptcha:y,otpValidationAttempts:g,otpCode:m,isFetching:T,recaptcha:e,turnstileToken:t,turnstileKey:k}}},st={class:"mt-8 text-xl font-semibold"},rt={class:"mt-2"},at={class:"inline-block font-semibold","data-automation":"urD_PhoneTitle"},it={class:"relative"},lt={class:"relative flex justify-left"};function ut(e,o,u,t,k,x){const f=w,m=B,v=D,a=E,g=Q("VueTurnstile"),y=j,c=z;return R(),S("div",null,[l("h1",st,p(e.$t("phone_otp_title")),1),l("h2",rt,[b(p(e.$t("phone_otp_message"))+" ",1),l("span",at,p(t.phone),1)]),r(f,{underlined:!0,color:"tertiary",tabindex:"0",class:"text-xs","data-automation":"urD_ChangePhoneLink",to:"/user/registration/phone"},{default:_(()=>[b(p(e.$t("change_phone_number")),1)]),_:1}),l("form",{class:"space-y-6",onSubmit:o[3]||(o[3]=F((...n)=>t.submit&&t.submit(...n),["prevent"]))},[r(v,{errors:t.v$.otpCode.$errors},{default:_(()=>[r(m,{modelValue:t.otpCode,"onUpdate:modelValue":o[0]||(o[0]=n=>t.otpCode=n),class:"mt-8",length:4,type:"number",otp:"",error:t.v$.$error&&t.v$.otpCode.$invalid,"data-automation":"urD_otpInput",onComplete:o[1]||(o[1]=n=>{t.otpCode=n,("GATracking"in e?e.GATracking:W(X)).formInteraction("registration","otp",`${t.otpCode.length} characters`,4),t.submit()})},null,8,["modelValue","error"])]),_:1},8,["errors"]),l("div",it,[l("div",lt,[r(a,{phone:t.phone,textmessage:e.$t("otp_mobile_code_message"),"otp-type":"sms","sms-resend":!0,uuid:t.uuid,"turnstile-token":t.turnstileToken,"turnstile-key":t.turnstileKey},null,8,["phone","textmessage","uuid","turnstile-token","turnstile-key"])])]),t.turnstileToken.length==0?(R(),U(y,{key:0},{default:_(()=>[r(v,{errors:t.v$.recaptcha.$errors},{default:_(()=>[r(g,{modelValue:t.turnstileToken,"onUpdate:modelValue":o[2]||(o[2]=n=>t.turnstileToken=n),"site-key":t.turnstileKey},null,8,["modelValue","site-key"])]),_:1},8,["errors"])]),_:1})):q("",!0),r(c,{block:"",color:"primary",type:"submit","data-automation":"urD_otpSubmit",loading:t.isFetching,disabled:t.turnstileToken===""},{default:_(()=>[b(p(e.$t("continue")),1)]),_:1},8,["loading","disabled"])],32)])}const It=P(nt,[["render",ut]]);export{It 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.