1"use strict";(self.webpackChunktm_frontend=self.webpackChunktm_frontend||[]).push([[4535],{9345:(I,g,i)=>{i.r(g),i.d(g,{LoginModule:()=>U});var d=i(4004),h=i(3900);const v={fields:[{type:"input",inputType:"text",title:"\u0418\u043c\u0435\u0439\u043b",key:"email",id:"username",autocomplete:"username",validators:[{condition:"required"},{condition:"email"}]},{type:"input",inputType:"password",title:"\u041f\u0430\u0440\u043e\u043b\u0430",key:"password",id:"current-password",autocomplete:"current-password",validators:[{condition:"required"}]}]};var t=i(5e3),x=i(72),C=i(2650),c=i(4202),l=i(9808),y=i(7864);function L(o,e){if(1&o&&(t.TgZ(0,"div",13),t._uU(1),t.qZA()),2&o){const n=t.oxw().ngIf;t.xp6(1),t.Oqu(n.error)}}function Z(o,e){1&o&&(t.TgZ(0,"div",14)(1,"button",15),t._uU(2," \u0412\u0445\u043e\u0434 "),t.qZA()())}const T=function(o,e){return{loading:o,error:e}};function w(o,e){if(1&o){const n=t.EpF();t.TgZ(0,"section",2)(1,"h2")(2,"span"),t._uU(3,"\u0412\u0445\u043e\u0434 \u0432 \u0441\u0430\u0439\u0442\u0430"),t.qZA()(),t.TgZ(4,"div",3)(5,"div",4)(6,"h4"),t._uU(7,"\u041c\u043e\u043b\u044f, \u0432\u044a\u0432\u0435\u0434\u0435\u0442\u0435 \u0412\u0430\u0448\u0438\u0442\u0435 e-mail \u0430\u0434\u0440\u0435\u0441 \u0438 \u043f\u0430\u0440\u043e\u043b\u0430!"),t.qZA(),t.YNc(8,L,2,1,"div",5),t.TgZ(9,"form",6),t.NdJ("submit",function(a){const u=t.CHM(n).ngIf,p=t.MAs(11);return t.KtG(u.actions.checkCredentials(a,p))}),t._UZ(10,"tm-form",7,8),t.TgZ(12,"a",9),t._uU(13," \u0417\u0430\u0431\u0440\u0430\u0432\u0435\u043d\u0430 \u043f\u0430\u0440\u043e\u043b\u0430? "),t.qZA(),t.YNc(14,Z,3,0,"div",10),t.qZA(),t.TgZ(15,"p",11),t._uU(16,"\u0438\u043b\u0438"),t.qZA(),t.TgZ(17,"button",12),t._uU(18," \u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f "),t.qZA()()()()}if(2&o){const n=e.ngIf,r=t.oxw(),a=t.MAs(3);t.xp6(5),t.Q6J("ngClass",t.WLB(7,T,n.loading,!!n.error)),t.xp6(3),t.Q6J("ngIf",n.error),t.xp6(2),t.Q6J("config",r.loginFormConfig),t.xp6(2),t.Q6J("routerLink","/forgotten-password"),t.xp6(2),t.Q6J("ngIf",!n.loading)("ngIfElse",a),t.xp6(3),t.Q6J("routerLink","/register")}}function A(o,e){1&o&&(t.TgZ(0,"button",16),t._uU(1,"Loading..."),t.qZA())}let b=(()=>{class o{constructor(n,r){this.coreService=n,this.cssClass="tm-page",this.profileFacade$=this.coreService.profile$.pipe((0,d.U)(u=>u.profileFacade)),this.vm$=this.profileFacade$.pipe((0,h.w)(u=>{const p={checkCredentials:(m,s)=>{m.preventDefault(),s.canSave$.getValue()&&u.checkCredentials(s.getValue().email.trim(),s.getValue().password.trim(),"/")||s.markAllAsTouched()}};return u.state$.pipe((0,d.U)(({error:m,loading:s})=>({error:m,loading:s,actions:p})))})),this.loginFormConfig=v,r.updateSeo("\u0412\u0445\u043e\u0434 - \u0422\u0435\u0445\u043d\u043e\u043c\u0430\u0440\u043a\u0435\u0442","")}}return o.\u0275fac=function(n){return new(n||o)(t.Y36(x.p),t.Y36(C.Z))},o.\u0275cmp=t.Xpm({type:o,selectors:[["tm-login"]],hostVars:2,hostBindings:function(n,r){2&n&&t.Tol(r.cssClass)},decls:4,vars:3,consts:[["class","s-h-ornament",4,"ngIf"],["loading",""],[1,"s-h-ornament"],[1,"section-content"],[1,"form-wrapper",3,"ngClass"],["class","error",4,"ngIf"],[1,"search-header",3,"submit"],[1,"form-item",3,"config"],["formComponent",""],[1,"tm-button","forgot-pass",3,"routerLink"],["class","actions",4,"ngIf","ngIfElse"],[1,"or"],[1,"tm-button","secondary",3,"routerLink"],[1,"error"],[1,"actions"],["type","submit",1,"tm-button","primary"],[1,"tm-button"]],template:function(n,r){1&n&&(t.YNc(0,w,19,10,"section",0),t.ALo(1,"async"),t.YNc(2,A,2,0,"ng-template",null,1,t.W1O)),2&n&&t.Q6J("ngIf",t.lcZ(1,1,r.vm$))},dependencies:[c.rH,c.yS,l.mk,l.O5,y.U,l.Ov],styles:['tm-login{background:white}tm-login .form-wrapper{grid-gap:0;max-width:400px;min-width:unset;place-content:center}@media (min-width: 960px){tm-login .form-wrapper{padding-top:0}}tm-login .form-wrapper h4{max-width:300px;font-weight:400;text-align:center;font-style:italic;place-self:center;margin-top:0}tm-login .form-wrapper .actions .primary{font-size:1.2em;width:100%;margin-top:24px}tm-login .form-wrapper .forgot-pass{color:var(--secondary-color);font-weight:700;font-style:italic;place-self:end;padding:0}tm-login .or{text-align:center;font-size:.8rem;display:flex;line-height:4px;padding:16px 8px;color:var(--text2)}tm-login .or:after{flex:1 1 auto;content:"";display:block;background-color:unset;border-bottom:solid 1px var(--border-color2);margin-left:var(--space-xs)}tm-login .or:before{flex:1 1 auto;content:"";display:block;background-color:unset;border-bottom:solid 1px var(--border-color2);margin-right:var(--space-xs)}\n'],encapsulation:2,changeDetection:0}),o})();var F=i(4466);let U=(()=>{class o{constructor(){}}return o.\u0275fac=function(n){return new(n||o)}
1,o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[c.Bz.forChild([{path:"",component:b}]),F.m]}),o})()}}]);
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.