1import{n as m,h as u,l as f,w as n,k as v,o as w,b as e,p as h,q as _,v as g,e as b,u as y,R as x,d as k,t as V,s as N}from"./index-djJMlqlh.js";import{c as R}from"./CheckFunctions-8nTnhWpQ.js";import{n as o}from"./notify-3HJcEM3b.js";import{A as q}from"./AuthShell-CDjPP0_9.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const A={class:"t-inputgroup input-group-lg"},B={class:"t-inputgroup input-group-lg"},S=["value","disabled"],C={class:"t-bottom-text"},F={__name:"NewPasswordView",setup(E){const l=m(),p=v(),i=String(l.query.code||""),s=u(""),a=u(!1),d=async()=>{if(!i){o("ÐÑÑÑÑÑÑвÑÐµÑ ÐºÐ¾Ð´ воÑÑÑановлениÑ. ÐеÑейдиÑе по ÑÑÑлке из пиÑÑма.");return}const r=R(s.value);if(r!==!0){o(r);return}a.value=!0;try{await V.post("/api/auth/reset-password",{code:i,password:s.value,passwordConfirmation:s.value}),await o("ÐаÑÐ¾Ð»Ñ ÑÑпеÑно изменен","success"),p.push("/entrance")}catch(t){o(N(t))}finally{a.value=!1}};return(r,t)=>(w(),f(q,{bg:"#1F63AE",cover:"/img/fon4.jpg",title:"ÐзмениÑÑ Ð¿Ð°ÑолÑ"},{default:n(()=>[e("form",{onSubmit:h(d,["prevent"])},[e("div",A,[_(e("input",{placeholder:"ÐведиÑе новÑй паÑолÑ",class:"form-control height_50",id:"password",type:"password",name:"password","onUpdate:modelValue":t[0]||(t[0]=c=>s.value=c),required:""},null,512),[[g,s.value]])]),e("div",B,[e("input",{class:"submit-button btn-lg height_50",type:"submit",id:"register",value:a.value?"СÐХРÐÐЯÐÐâ¦":"ÐÐÐÐÐÐТЬ",disabled:a.value},null,8,S)])],32),e("div",C,[b(y(x),{class:"t-a",to:"/entrance"},{default:n(()=>t[1]||(t[1]=[k("ÐеÑнÑÑÑÑÑ ÐºÐ¾ вÑ
одÑ")])),_:1})])]),_:1}))}};export{F as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.