PageSourceSearch

https://proobruch.ru/assets/ResetPasswordPage-BoT27Rxw.js

js proobruch.ru collected 2026-10-09 22:38:56 UTC 2,301 bytes, 1 lines download raw bytes

1import{F as s,am as P,j as e,$ as n,a3 as p,L as i,B as d,S as g}from"./vendor-0v--kTIY.js";import{u as f,P as l,a as c}from"./index-D44GA20K.js";import{P as m}from"./PasswordInput-BZTIpF21.js";const z=()=>{const[u]=s.useForm(),[h]=P(),a=h.get("token"),{resetPassword:w,isLoading:j}=f();if(!a)return e.jsxs(l,{width:"narrow",children:[e.jsx(c,{title:"Ссылка для сброса пароля недействительна"}),e.jsx(n,{children:e.jsx(p,{status:"error",subTitle:"Возможно, срок действия ссылки истёк или она скопирована из письма не полностью. Запросите новую — мы пришлём её на вашу почту.",extra:e.jsx(i,{to:"/forgot-password",children:e.jsx(d,{type:"primary",children:"Запросить новую ссылку"})})})})]});const x=r=>{const t={token:a,newPassword:r.newPassword,confirmPassword:r.confirmPassword};w(t)};return e.jsxs(l,{width:"narrow",children:[e.jsx(c,{title:"Новый пароль",subtitle:"Введите новый пароль для вашего аккаунта"}),e.jsx(n,{children:e.jsxs(s,{form:u,layout:"vertical",onFinish:x,children:[e.jsx(s.Item,{name:"newPassword",label:"Новый пароль",rules:[{required:!0,message:"Введите пароль"},{min:5,message:"Минимум 5 символов"},{pattern:/^(?=.*[A-Za-zА-Яа-яЁё])(?=.*\d).+$/,message:"Должен содержать буквы и цифры"}],children:e.jsx(m,{placeholder:"Новый пароль",size:"large"})}),e.jsx(s.Item,{name:"confirmPassword",label:"Повторите пароль",dependencies:["newPassword"],rules:[{required:!0,message:"Подтвердите пароль"},({getFieldValue:r})=>({validator(t,o){return!o||r("newPassword")===o?Promise.resolve():Promise.reject(new Error("Пароли не совпадают"))}})],children:e.jsx(m,{placeholder:"Повторите пароль",size:"large"})}),e.jsx(s.Item,{children:e.jsx(d,{type:"primary",htmlType:"submit",loading:j,block:!0,size:"large",children:"Сохранить пароль"})}),e.jsx(g,{style:{width:"100%",justifyContent:"center"},children:e.jsx(i,{to:"/login",children:"Вернуться на страницу входа"})})]})})]})};export{z 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.