import{_ as f}from"./ButtonDefault-CghIUDY0.js";import{_ as w}from"./BasicInput-BYe5b9L8.js";import{_ as v}from"./ClausesKeeper-DVJgfLR3.js";import{_ as P}from"./BlockBalanceAgreement-2iQbaweR.js";import{u as g,r as d,c as h,b as e,a,x as V,o as b}from"./index-CipWZKo_.js";import{_ as C}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./component-DWBAga-C.js";import"./IconClose-ChC2G6HM.js";import"./contracts-CILh9uSu.js";const k={class:"tw-w-full"},B={class:"container"},x={class:"form-offset_label"},U={__name:"UserChangePassword",setup(N){const i=g(),m=V("emitter"),s=d({password:"",confirmPassword:""}),n=d(!1);function u(){s.value.password!==""&&s.value.confirmPassword!==""&&s.value.password===s.value.confirmPassword&&(n.value=!0,i.userPasswordChange({Password:s.value.password,_Password:s.value.confirmPassword}).then(t=>{n.value=!1,t==="success"&&(s.value.password="",s.value.confirmPassword="",m.emit("open-modal",{component:"PasswordChanged",data:{}}))}))}return(t,o)=>{const c=P,_=v,l=w,p=f;return b(),h("div",k,[e(c),a("div",B,[o[2]||(o[2]=a("div",{class:"section-header"},[a("h1",{class:"section-title"},"Сменить пароль")],-1)),e(_),e(l,{label:"Новый пароль",name:"New_password","is-password":!0,modelValue:s.value.password,"onUpdate:modelValue":o[0]||(o[0]=r=>s.value.password=r)},null,8,["modelValue"]),e(l,{label:"Подтвердить пароль",name:"Confirm_Password","is-password":!0,modelValue:s.value.confirmPassword,"onUpdate:modelValue":o[1]||(o[1]=r=>s.value.confirmPassword=r)},null,8,["modelValue"]),a("div",x,[e(p,{"is-loading":n.value,label:"Изменить пароль",onClick:u},null,8,["is-loading"])])])])}}},y=C(U,[["__scopeId","data-v-a1f3ef77"]]);export{y as default};
