import{_ as w,E as h,r as i,c as f,a as s,t as n,w as _,b as l,v as c,f as v,o as g,z as b,S as d}from"./app-Cn5Lr4xA.js";/* empty css            */const y={class:"bg-light vh-100 d-flex align-items-center justify-content-center"},S={class:"login-wizard bg-white col-8 theme-shadow"},P={class:"row"},x={class:"col-6 px-5 py-4"},B={class:"d-flex h-100"},$={class:"my-auto w-100"},j={class:"fw-bold mb-3"},C={class:"text-muted"},N={class:"mb-2"},k=["placeholder"],z=["placeholder"],A={type:"submit",class:"btn btn-primary w-100 rounded-pill mt-3"},E={__name:"NewPassword",setup(V){const p=v(),u=h(),o=i(""),a=i(""),m=async()=>{try{const t=await b.patch("/update-password",{password:o.value,password_confirmation:a.value},{headers:{Accept:"application/json",Authorization:"Bearer "+u.authToken}});d.fire({icon:"success",title:"Success",text:"Password updated successfully",showConfirmButton:!1,timer:1500}),p.push("/")}catch(t){d.fire({icon:"error",title:"Error",text:t.response.data.message,showConfirmButton:!1,timer:1500})}};return(t,e)=>(g(),f("section",y,[s("section",S,[s("div",P,[s("div",x,[e[2]||(e[2]=s("img",{src:"/assets/images/logo-new.png",class:"object-fit-cover",alt:"Login",height:"50px"},null,-1)),s("div",B,[s("div",$,[s("h3",j,n(t.$t("Set Password")),1),s("span",C,n(t.$t("Create a new and strong password that you can remember"))+".",1),s("form",{onSubmit:_(m,["prevent"]),class:"my-4"},[s("div",N,[l(s("input",{type:"password","onUpdate:modelValue":e[0]||(e[0]=r=>o.value=r),class:"form-control mb-4",placeholder:t.$t("New Password")},null,8,k),[[c,o.value]]),l(s("input",{type:"password","onUpdate:modelValue":e[1]||(e[1]=r=>a.value=r),class:"form-control",placeholder:t.$t("Confirm Password")},null,8,z),[[c,a.value]])]),s("button",A,n(t.$t("Save Password")),1)],32)])])]),e[3]||(e[3]=s("div",{class:"col-6"},[s("img",{src:"/assets/images/login-bg.png",class:"side-image object-fit-cover w-100"})],-1))])])]))}},T=w(E,[["__scopeId","data-v-ae125633"]]);export{T as default};
