{"title":"Авторизация","template":"\n\u003cdiv class=\"account-pages my-5 pt-sm-5\"\u003e\n \u003cdiv class=\"container\"\u003e\n \u003cdiv class=\"row justify-content-center\"\u003e\n \u003cdiv class=\"col-md-6\"\u003e\n \u003cdiv class=\"text-center mb-5\" *ngIf=\"appComponent.params\"\u003e\n \u003ca routerLink=\"/\"\u003e\n \u003cimg [src]=\"appComponent.params.login_logo\" alt=\"\" height=\"48\" class=\"m-auto\"\u003e\n \u003c!-- \u003cimg [src]=\"appComponent.params.angular_logo_2\" alt=\"\" height=\"48\" class=\"m-auto\"\u003e --\u003e\n \u003c/a\u003e\n \u003c!-- \u003cp class=\"font-size-15 text-muted mt-3\"\u003e\u003cb\u003eDamuCRM\u003c/b\u003e\u003c/p\u003e --\u003e\n \u003c/div\u003e\n \u003crouter-outlet\u003e\u003c/router-outlet\u003e\n \u003c!-- end card --\u003e\n \u003cdiv class=\"mt-5 text-center\"\u003e\n \u003c!-- \u003cp\u003eСоздать аккаунт? \u003ca routerLink=\"/auth/register\"\n class=\"fw-semibold text-decoration-underline text-primary\" translate=\"Sign up\"\u003e\u003c/a\u003e\n \u003c/p\u003e --\u003e\n \u003cp\u003e© 2021 \u003cb\u003eB-Apps\u003c/b\u003e\n \u003c!-- Сделал \u003cspan class=\"material-icons text-danger\"\u003eheart\u003c/span\u003e Данияр Саумбаев --\u003e\n \u003c/p\u003e\n \u003c/div\u003e\n \u003c/div\u003e\n \u003c!-- end col --\u003e\n \u003c/div\u003e\n \u003c!-- end row --\u003e\n \u003c/div\u003e\n \u003c!-- end container --\u003e\n\u003c/div\u003e\n\u003c!-- end account page --\u003e","json":"const vm = this; \n\n\nconst {map,take} = rxjs;\nconst {QueryOptions} = Models;\n\nreturn class GenClass extends vm.constructor {\n \n user_subs = this.accountService.user.subscribe(user =\u003e {\n \n // get return url from query parameters or default to home page\n if(user) {\n const returnUrl = this.route.snapshot.queryParams['returnUrl'];\n if (returnUrl) {\n this.router.navigateByUrl(returnUrl);\n } else {\n if(this.appComponent.params) {\n this.router.navigate([this.appComponent.params['angular_start_url']],{queryParams: this.route.snapshot.queryParams});\n } else {\n this.router.navigate(['/'],{queryParams: this.route.snapshot.queryParams});\n }\n };\n }\n });\n \n\n ngOnDestroy() {\n this.user_subs.unsubscribe();\n }\n}"}