import{_ as b}from"./CvoWGCnH.js";import{_ as w}from"./DoIUUBea.js";import{a as B,_ as N}from"./9wDxnFtt.js";import{u as j}from"./qvRVwB86.js";import{a as P,u as z}from"./DrP6Q7og.js";import{b as D,l as E,c as G,B as O,Y as p,Z as i,_ as e,a1 as d,u as c,G as l,a6 as _,a4 as a,x as S,a3 as H,a0 as L}from"./pvhYMo2c.js";const R={class:"confirm-container"},T={key:0,class:"confirm-text"},U={style:{width:"200px",height:"200px"}},Y={key:0,class:"text-danger"},Z=["disabled"],q={key:1,class:"confirm-text"},A={style:{width:"200px",height:"200px"}},F={class:"send home"},X={__name:"otpContainer",props:["changeStat2","otp","sendOtp","reSendOtp","errorOtp","pendingOtp1"],setup(n){const x=B();let h=j(),v=P(),f=z(),u=n;const y=()=>{h.page=3,h.filteredCar=[],v.checkOtp=1,f.checkOtp=1,v.changeStat2=1,f.changeStat2=1};let o=D(""),m=E(()=>u.changeStat2);return G([()=>u.otp,()=>u.changeStat2],([s,t])=>{m.value=t}),(s,t)=>{const g=b,k=w,C=O("v-otp-input"),$=O("v-progress-circular"),V=N;return i(),p("div",null,[e("div",R,[c(m)==1?(i(),p("div",T,[l(k,null,{default:_(()=>[e("div",U,[l(g,{src:"/animations/otp.json"})])]),_:1}),e("h4",null,a(s.$t("otp1")),1),e("p",null,a(s.$t("otp2")),1),l(C,{modelValue:c(o),"onUpdate:modelValue":t[0]||(t[0]=r=>S(o)?o.value=r:o=r),style:{direction:"ltr !important"},length:4,placeholder:"-"},null,8,["modelValue"]),n.errorOtp?(i(),p("span",Y,a(n.errorOtp),1)):d("",!0),e("button",{class:"resend",onClick:t[1]||(t[1]=r=>(n.reSendOtp(),S(o)?o.value="":o=""))},a(s.$t("reOtp")),1),e("button",{onClick:t[2]||(t[2]=r=>n.sendOtp(c(o))),disabled:n.pendingOtp1,class:"send align-items-center gap-3"},[H(a(s.$t("follow"))+" ",1),n.pendingOtp1?(i(),L($,{key:0,indeterminate:"",size:30,width:4})):d("",!0)],8,Z)])):d("",!0),c(m)==2?(i(),p("div",q,[l(k,null,{default:_(()=>[e("div",A,[l(g,{src:"/animations/success.json"})])]),_:1}),e("h4",null,a(s.$t("otp3")),1),l(V,{to:c(x)("/"),onClick:t[3]||(t[3]=r=>y()),class:"nav-link"},{default:_(()=>[e("button",F,a(s.$t("backHome")),1)]),_:1},8,["to"])])):d("",!0)])])}}};export{X as _};
