import{_ as w,E as h,r as n,c as f,o as _,a as s,t as i,w as v,d as l,v as c,e as g,i as b,S as d}from"./app-L4cdeQDO.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"],A=["placeholder"],E={type:"submit",class:"btn btn-primary w-100 rounded-pill mt-3"},V={__name:"NewPassword",setup(z){const p=g(),u=h(),o=n(""),a=n(""),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)=>(_(),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,i(t.$t("Set Password")),1),s("span",C,i(t.$t("Create a new and strong password that you can remember"))+".",1),s("form",{onSubmit:v(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,A),[[c,a.value]])]),s("button",E,i(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(V,[["__scopeId","data-v-ae125633"]]);export{T as default};
