PageSourceSearch

https://iks.exchange/ru/chunk-P3OCO32F.js

js iks.exchange collected 2026-10-07 00:24:26 UTC 7,454 bytes, 1 lines download raw bytes

1import{a as te}from"./chunk-NWYCQAXS.js";import{a as Z}from"./chunk-UOGREAUG.js";import{a as Y}from"./chunk-4ZZOMHU2.js";import{a as ee}from"./chunk-2QTVFY53.js";import{a as j,b as K}from"./chunk-LCKNEIEJ.js";import{d as V,e as Q}from"./chunk-AL5K2QIR.js";import{a as w,c as k,d as W,g as J,m as y,o as q}from"./chunk-RXNVSDOQ.js";import"./chunk-CFVKXVIX.js";import{c as X,d as c}from"./chunk-6TJS5YZV.js";import{a as H}from"./chunk-SGHHZEQI.js";import{j as B}from"./chunk-T4JC26PK.js";import"./chunk-DACMO4W6.js";import"./chunk-S3XOGNHC.js";import"./chunk-SBYEVDVP.js";import"./chunk-ADLJEL26.js";import"./chunk-NFZDJHD2.js";import"./chunk-B5P6FSWY.js";import{h as $}from"./chunk-Z3M6BQAQ.js";import"./chunk-BIEQQ3RY.js";import"./chunk-I3IQJP76.js";import{b as z}from"./chunk-K25LCNNK.js";import"./chunk-53L27IS6.js";import"./chunk-ZLTBJ7EM.js";import{Ab as l,Cb as E,Db as N,Fb as M,Gb as f,Hb as m,Ib as r,Jb as _,Jc as U,Kb as g,Rc as x,Ta as a,Tb as o,Wb as I,Xa as T,Ya as A,Yb as S,ba as u,eb as O,ec as G,fc as F,lc as h,mc as v,q as p,ta as R,wb as b}from"./chunk-2L2WWPFT.js";import{a as L,b as D}from"./chunk-IK4C7FLP.js";function ne(i,t){if(i&1&&(r(0,"span"),h(1),_()),i&2){let e=t.$implicit;a(),v(e.message??e.kind);}}function re(i,t){if(i&1&&M(0,ne,2,1,"span",null,N),i&2){let e=S();f(e.resetForm.email().errors());}}function _e(i,t){if(i&1&&(r(0,"div"),h(1),_()),i&2){let e=t.$implicit;a(),v(e.message??e.kind);}}function ae(i,t){if(i&1&&(r(0,"div",20),M(1,_e,2,1,"div",null,N),_()),i&2){let e=S(2);a(),f(e.resetForm.recaptcha().errors());}}function oe(i,t){if(i&1&&(r(0,"div",18),g(1,"app-captcha",19),T(),_(),l(2,ae,3,0,"div",20)),i&2){let e=S();a(),m("formField",e.resetForm.recaptcha),A(),a(),E(e.resetForm.recaptcha().touched()&&e.resetForm.recaptcha().invalid()?2:-1);}}function se(i,t){i&1&&(r(0,"span",15),g(1,"ui-spinner",21),r(2,"span"),o(3,4),_()());}function ue(i,t){i&1&&(r(0,"span"),o(1,5),_());}var ie=class i{constructor(){this.authApi=u(te);this.seoService=u(H);this.toastService=u(B);this.captchaFormService=u(X);this.captcha=x(c);this.shouldRequireCaptcha=U(()=>this.captchaFormService.isRequired("reset"));this.isSubmitted=R(!1);this.resetModel=R({email:"",recaptcha:null});this.resetForm=w(this.resetModel,t=>{y(t.email,{message:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 E-mail \u0430\u0434\u0440\u0435\u0441"}),J(t.email,{message:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043E\u0440\u0440\u0435\u043A\u0442\u043D\u044B\u0439 E-mail \u0430\u0434\u0440\u0435\u0441"}),k(t.recaptcha,()=>this.shouldRequireCaptcha(),e=>{y(e,{message:this.captchaFormService.requiredMessage});});});this.canSubmit=U(()=>!this.resetForm().valid()||this.isSubmitted());this.seoService.updateSeoTags({title:()=>"\u0421\u0431\u0440\u043E\u0441 \u043F\u0430\u0440\u043E\u043B\u044F"});}async handleSubmit(t){if(t.preventDefault(),!(this.isSubmitted()||!(await W(this.resetForm,async()=>{})))){this.isSubmitted.set(!0);try{await p(this.authApi.getSanctumCsrf());let n=await p(this.authApi.resetPassword(this.createResetPayload()));this.toastService.success("\u041F\u0438\u0441\u044C\u043C\u043E \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043E",{description:n.message??"\u0418\u043D\u0441\u0442\u0440\u0443\u043A\u0446\u0438\u044F \u043F\u043E \u0441\u0431\u0440\u043E\u0441\u0443 \u043F\u0430\u0440\u043E\u043B\u044F \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0430 \u043D\u0430 \u0443\u043A\u0430\u0437\u0430\u043D\u043D\u044B\u0439 E-mail \u0430\u0434\u0440\u0435\u0441."}),this.resetFormState();}catch(n){this.handleResetError(n);}finally{this.isSubmitted.set(!1);}}}createResetPayload(){let t=this.resetModel();return{email:t.email,recaptcha:this.captchaFormService.token(t.recaptcha)};}resetFormState(){this.resetModel.set({email:"",recaptcha:null}),this.captcha()?.reset();}handleResetError(t){let e=t;this.toastService.error("\u041E\u0448\u0438\u0431\u043A\u0430 \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0438",{description:e.error?.message??e.error?.error??"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043F\u0438\u0441\u044C\u043C\u043E \u0434\u043B\u044F \u0441\u0431\u0440\u043E\u0441\u0430 \u043F\u0430\u0440\u043E\u043B\u044F."}),this.resetModel.update(n=>D(L({},n),{recaptcha:null})),this.captcha()?.reset();}static{this.ɵfac=function(e){return new(e||i)();};}static{this.ɵcmp=O({type:i,selectors:[["app-reset-credentials"]],viewQuery:function(e,n){e&1&&G(n.captcha,c,5),e&2&&F();},decls:22,vars:7,consts:()=>{let t;t=" \u0421\u0431\u0440\u043E\u0441 \u043F\u0430\u0440\u043E\u043B\u044F ";let e;e=" \u0423\u043A\u0430\u0436\u0438\u0442\u0435 E-mail \u0430\u0434\u0440\u0435\u0441, \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0432\u044B \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043B\u0438 \u043F\u0440\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438, \u0438 \u043C\u044B \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u043C \u0438\u043D\u0441\u0442\u0440\u0443\u043A\u0446\u0438\u044E \u0434\u043B\u044F \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u0430. ";let n;n=" \u0412\u0432\u0435\u0434\u0438\u0442\u0435 E-mail \u0430\u0434\u0440\u0435\u0441 ";let C;C=" \u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A\u043E \u0432\u0445\u043E\u0434\u0443 ";let d;d="\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443";let P;return P="\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443",[t,e,n,C,d,P,[1,"mx-auto","max-w-xl"],[1,"rounded-3xl","border","border-border","bg-card","p-8","text-card-foreground","shadow-xs","lg:rounded-4xl","lg:p-10"],[1,"text-center","text-xl","font-semibold","tracking-tight","lg:text-2xl"],[1,"mt-3","text-center","text-sm","text-muted-foreground"],["novalidate","",1,"mt-8","space-y-5",3,"submit"],["name","email"],["id","reset-email","autocomplete","email","inputClass","h-13 px-4",1,"w-full",3,"formField","clearable"],["for","reset-email","uiInputOverlayLabel",""],["uiButton","","type","submit","size","lg",1,"mt-1","h-12","w-full","rounded-2xl",3,"disabled"],[1,"inline-flex","items-center","gap-2"],[1,"mt-5","text-center"],["routerLink","/auth/login",1,"text-primary","transition-opacity","hover:opacity-80","hover:underline"],[1,"flex","justify-center","pt-1"],["action","reset",3,"formField"],[1,"text-center","text-sm","text-destructive"],["size","sm","tone","current"]];},template:function(e,n){e&1&&(r(0,"div",6)(1,"div",7)(2,"h1",8),o(3,0),_(),r(4,"div",9),o(5,1),_(),r(6,"form",10),I("submit",function(d){return n.handleSubmit(d);}),r(7,"ui-form-field",11)(8,"ui-form-item")(9,"ui-form-control")(10,"ui-text-input",12)(11,"label",13),o(12,2),_()(),T(),_(),r(13,"ui-form-message"),l(14,re,2,0),_()()(),l(15,oe,3,2),r(16,"button",14),l(1
17,se,4,0,"span",15)(18,ue,2,0,"span"),_()(),r(19,"div",16)(20,"a",17),o(21,3),_()()()()),e&2&&(a(10),m("formField",n.resetForm.email)("clearable",!0),A(),a(4),E(n.resetForm.email().touched()&&n.resetForm.email().invalid()?14:-1),a(),E(n.shouldRequireCaptcha()?15:-1),a(),m("disabled",n.canSubmit()),b("aria-busy",n.isSubmitted()),a(),E(n.isSubmitted()?17:18));},dependencies:[$,q,c,V,Q,j,K,Y,Z,z,ee],encapsulation:2});}};export{ie as ResetCredentialsComponent};/**i18n:e8297896982e5553d46dfb1a66aae4dfd7c33dd3229f67da2820ba9853ade856*/

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.