1import{r as a,j as s}from"./index-Bd0yfiIk.js";/* empty css */import{A as g,L as l,S as P}from"./auth-page-template-BxqveKgY.js";import{P as N}from"./base-CpUadHfj.js";import"./i18nInstance-CSCEjc5j.js";const v=({kcContext:r,i18n:o})=>{const{url:i}=r,{msgStr:t}=o,[n,d]=a.useState(""),[m,c]=a.useState(""),[p,u]=a.useState(""),[w,f]=a.useState(""),h=e=>{n.length<6?(u("ÐаÑÐ¾Ð»Ñ ÑлиÑком коÑоÑкий, минималÑÐ½Ð°Ñ Ð´Ð»Ð¸Ð½Ð° 6."),e.preventDefault()):n!==m&&(f("Ðва Ð¿Ð¾Ð»Ñ Ñ Ð¿Ð°ÑолÑми не ÑовпадаÑÑ."),e.preventDefault())};return s.jsx(N,{kcContext:r,i18n:o,children:s.jsx(g,{className:"update-password-page-content",children:s.jsx("div",{className:"auth-wrapper",children:s.jsxs("div",{className:"auth-section",children:[s.jsx("div",{className:"rel_title",children:s.jsx("span",{className:"rel_title__label",children:t("updatePasswordTitle")})}),s.jsxs("form",{method:"post",action:i.loginAction,onSubmit:h,children:[s.jsx(l,{className:"auth-section__labeled-input",label:t("newPassword"),name:"password-new",autoComplete:"off",type:"password",onChange:e=>d(e.target.value),errorMessage:p}),s.jsx(l,{className:"auth-section__labeled-input",label:t("confirmNewPassword"),name:"password-confirm",autoComplete:"off",type:"password",onChange:e=>c(e.target.value),errorMessage:w}),s.jsx(P,{type:"submit",children:t("updatePasswordSubmitButton")})]})]})})})})};export{v 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.