import{_ as y}from"./client-only-CuDeK6DU.js";import{a as V,_ as I}from"../server.mjs";import{ref as h,computed as A,watch as H,resolveComponent as g,unref as c,isRef as P,withCtx as z,createVNode as B,toDisplayString as D,useSSRContext as L}from"vue";import{ssrRenderAttrs as N,ssrRenderComponent as a,ssrInterpolate as o,ssrIncludeBooleanAttr as U}from"vue/server-renderer";import{u as j}from"./car-BMObURKw.js";import{a as q,u as E}from"./individuals-LQmhfgW9.js";const C={__name:"otpContainer",__ssrInlineRender:!0,props:["changeStat2","otp","sendOtp","reSendOtp","errorOtp","pendingOtp1"],setup(n){const d=V();let r=j(),u=q(),f=E(),m=n;const O=()=>{r.page=3,r.filteredCar=[],u.checkOtp=1,f.checkOtp=1,u.changeStat2=1,f.changeStat2=1};let l=h(""),p=A(()=>m.changeStat2);return H([()=>m.otp,()=>m.changeStat2],([t,e])=>{p.value=e}),(t,e,s,b)=>{const v=y,k=g("v-otp-input"),w=g("v-progress-circular"),R=I;e(`<div${N(b)}><div class="confirm-container">`),c(p)==1?(e('<div class="confirm-text">'),e(a(v,null,{},s)),e(`<h4>${o(t.$t("otp1"))}</h4><p>${o(t.$t("otp2"))}</p>`),e(a(k,{modelValue:c(l),"onUpdate:modelValue":i=>P(l)?l.value=i:l=i,style:{direction:"ltr !important"},length:4,placeholder:"-"},null,s)),n.errorOtp?e(`<span class="text-danger">${o(n.errorOtp)}</span>`):e("<!---->"),e(`<button class="resend">${o(t.$t("reOtp"))}</button><button${U(n.pendingOtp1)?" disabled":""} class="send align-items-center gap-3">${o(t.$t("follow"))} `),n.pendingOtp1?e(a(w,{indeterminate:"",size:30,width:4},null,s)):e("<!---->"),e("</button></div>")):e("<!---->"),c(p)==2?(e('<div class="confirm-text">'),e(a(v,null,{},s)),e(`<h4>${o(t.$t("otp3"))}</h4>`),e(a(R,{to:c(d)("/"),onClick:i=>O(),class:"nav-link"},{default:z((i,$,F,x)=>{if($)$(`<button class="send home"${x}>${o(t.$t("backHome"))}</button>`);else return[B("button",{class:"send home"},D(t.$t("backHome")),1)]}),_:1},s)),e("</div>")):e("<!---->"),e("</div></div>")}}},S=C.setup;C.setup=(n,d)=>{const r=L();return(r.modules||(r.modules=new Set)).add("components/otpContainer.vue"),S?S(n,d):void 0};export{C as _};
