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