@snabcentr/client-ui 3.44.1 → 3.44.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/auth/sc-sign-in-form/sc-sign-in-form-by-email/sc-sign-in-form-by-email.component.d.ts +5 -0
- package/auth/sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component.d.ts +5 -0
- package/esm2022/auth/sc-sign-in-form/sc-sign-in-form-by-email/sc-sign-in-form-by-email.component.mjs +10 -2
- package/esm2022/auth/sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component.mjs +10 -2
- package/esm2022/services/sc-help-notification.service.mjs +11 -1
- package/fesm2022/snabcentr-client-ui.mjs +24 -0
- package/fesm2022/snabcentr-client-ui.mjs.map +1 -1
- package/package.json +2 -2
- package/services/sc-help-notification.service.d.ts +6 -0
package/auth/sc-sign-in-form/sc-sign-in-form-by-email/sc-sign-in-form-by-email.component.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { EventEmitter } from '@angular/core';
|
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
3
|
import { ScAuthService } from '@snabcentr/client-core';
|
|
4
4
|
import { Observable, Subject } from 'rxjs';
|
|
5
|
+
import { ScHelpNotificationService } from '../../../services/sc-help-notification.service';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* Компонент аутентификации по адресу электронной почты и паролю.
|
|
@@ -16,6 +17,10 @@ export declare class ScSignInFormByEmailComponent {
|
|
|
16
17
|
* {@link Subject} события отправки формы.
|
|
17
18
|
*/
|
|
18
19
|
readonly onSubmit: Subject<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Сервис для отображения Push-уведомлений с контактами для помощи клиенту.
|
|
22
|
+
*/
|
|
23
|
+
protected readonly helpNotificationService: ScHelpNotificationService;
|
|
19
24
|
/**
|
|
20
25
|
* {@link Observable} запроса данных аутентификации.
|
|
21
26
|
*/
|
package/auth/sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FormControl, FormGroup } from '@angular/forms';
|
|
2
2
|
import { ScAuthService } from '@snabcentr/client-core';
|
|
3
3
|
import { Observable, Subject } from 'rxjs';
|
|
4
|
+
import { ScHelpNotificationService } from '../../../services/sc-help-notification.service';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
7
|
* Компонент аутентификации по номеру телефона и коду подтверждения.
|
|
@@ -22,6 +23,10 @@ export declare class ScSignInFormByPhoneComponent {
|
|
|
22
23
|
* {@link Subject} события отправки формы.
|
|
23
24
|
*/
|
|
24
25
|
readonly onSubmit: Subject<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Сервис для отображения Push-уведомлений с контактами для помощи клиенту.
|
|
28
|
+
*/
|
|
29
|
+
protected readonly helpNotificationService: ScHelpNotificationService;
|
|
25
30
|
/**
|
|
26
31
|
* {@link Observable} запроса данных аутентификации.
|
|
27
32
|
*/
|
package/esm2022/auth/sc-sign-in-form/sc-sign-in-form-by-email/sc-sign-in-form-by-email.component.mjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/* eslint-disable no-restricted-syntax,@typescript-eslint/unbound-method */
|
|
2
2
|
import { HttpErrorResponse } from '@angular/common/http';
|
|
3
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, Output } from '@angular/core';
|
|
3
|
+
import { ChangeDetectionStrategy, Component, EventEmitter, inject, Output } from '@angular/core';
|
|
4
4
|
import { FormControl, FormGroup, Validators } from '@angular/forms';
|
|
5
5
|
import { tuiIsFalsy } from '@taiga-ui/cdk';
|
|
6
6
|
import { catchError, filter, map, of, share, startWith, Subject, switchMap } from 'rxjs';
|
|
7
|
+
import { ScHelpNotificationService } from '../../../services/sc-help-notification.service';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
import * as i1 from "@snabcentr/client-core";
|
|
9
10
|
import * as i2 from "@angular/forms";
|
|
@@ -34,6 +35,10 @@ export class ScSignInFormByEmailComponent {
|
|
|
34
35
|
* {@link Subject} события отправки формы.
|
|
35
36
|
*/
|
|
36
37
|
this.onSubmit = new Subject();
|
|
38
|
+
/**
|
|
39
|
+
* Сервис для отображения Push-уведомлений с контактами для помощи клиенту.
|
|
40
|
+
*/
|
|
41
|
+
this.helpNotificationService = inject(ScHelpNotificationService);
|
|
37
42
|
/**
|
|
38
43
|
* {@link Observable} запроса данных аутентификации.
|
|
39
44
|
*/
|
|
@@ -46,6 +51,9 @@ export class ScSignInFormByEmailComponent {
|
|
|
46
51
|
this.formByEmail.get(key)?.setErrors({ serverResponse: errors[key] });
|
|
47
52
|
}
|
|
48
53
|
}
|
|
54
|
+
if (message.includes('деактивирован')) {
|
|
55
|
+
this.helpNotificationService.helpNotificationByEmail(value.login);
|
|
56
|
+
}
|
|
49
57
|
if (!errors && message) {
|
|
50
58
|
this.formByEmail.setErrors({ serverResponse: [message] });
|
|
51
59
|
}
|
|
@@ -70,4 +78,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
70
78
|
}], ctorParameters: () => [{ type: i1.ScAuthService }], propDecorators: { forgotPassword: [{
|
|
71
79
|
type: Output
|
|
72
80
|
}] } });
|
|
73
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Mtc2lnbi1pbi1mb3JtLWJ5LWVtYWlsLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NsaWVudC11aS9hdXRoL3NjLXNpZ24taW4tZm9ybS9zYy1zaWduLWluLWZvcm0tYnktZW1haWwvc2Mtc2lnbi1pbi1mb3JtLWJ5LWVtYWlsLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb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SHR0cEVycm9yUmVzcG9uc2UpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IHsgZXJyb3JzLCBtZXNzYWdlIH0gPSBlcnJvci5lcnJvciBhcyBBcGlFcnJvclJlc3BvbnNlO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICBmb3IgKGNvbnN0IGtleSBpbiBlcnJvcnMpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoT2JqZWN0Lmhhc093bihlcnJvcnMsIGtleSkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIHNlY3VyaXR5L2RldGVjdC1vYmplY3QtaW5qZWN0aW9uXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZm9ybUJ5RW1haWwuZ2V0KGtleSk/LnNldEVycm9ycyh7IHNlcnZlclJlc3BvbnNlOiBlcnJvcnNba2V5XSB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIGlmICghZXJyb3JzICYmIG1lc3NhZ2UpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmZvcm1CeUVtYWlsLnNldEVycm9ycyh7IHNlcnZlclJlc3BvbnNlOiBbbWVzc2FnZV0gfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gb2Yoe30gYXMgSUF1dGhUb2tlbik7XG4gICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgc3RhcnRXaXRoKG51bGwpXG4gICAgICAgICAgICApXG4gICAgICAgICksXG4gICAgICAgIHNoYXJlKClcbiAgICApO1xuXG4gICAgLyoqXG4gICAgICoge0BsaW5rIE9ic2VydmFibGV9INC40LfQvNC10L3QtdC90LjRjyD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A8bGFiZWwgdHVpTGFiZWxcbiAgICAgICAgICAgID7QkNC00YDQtdGBINGN0LvQtdC60YLRgNC+0L3QvdC+0Lkg0L/QvtGH0YLRi1xuICAgICAgICAgICAgPHR1aS1pbnB1dCBmb3JtQ29udHJvbE5hbWU9XCJsb2dpblwiPlxuICAgICAgICAgICAgICAgINCQ0LTRgNC10YEg0Y3Qu9C10LrRgtGA0L7QvdC90L7QuSDQv9C+0YfRgtGLXG4gICAgICAgICAgICAgICAgPGlucHV0XG4gICAgICAgICAgICAgICAgICAgIHR1aVRleHRmaWVsZExlZ2FjeVxuICAgICAgICAgICAgICAgICAgICBhdXRvY29tcGxldGU9XCJlbWFpbFwiXG4gICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgIDwvdHVpLWlucHV0PlxuICAgICAgICAgICAgPHR1aS1lcnJvclxuICAgICAgICAgICAgICAgIGZvcm1Db250cm9sTmFtZT1cImxvZ2luXCJcbiAgICAgICAgICAgICAgICBbZXJyb3JdPVwiW10gfCB0dWlGaWVsZEVycm9yIHwgYXN5bmNcIlxuICAgICAgICAgICAgPjwvdHVpLWVycm9yPlxuICAgICAgICA8L2xhYmVsPlxuICAgICAgICA8bGFiZWwgdHVpTGFiZWxcbiAgICAgICAgICAgID7Qn9Cw0YDQvtC70YxcbiAgICAgICAgICAgIDx0dWktaW5wdXQtcGFzc3dvcmQgZm9ybUNvbnRyb2xOYW1lPVwicGFzc3dvcmRcIj5cbiAgICAgICAgICAgICAgICDQn9Cw0YDQvtC70YxcbiAgICAgICAgICAgICAgICA8aW5wdXRcbiAgICAgICAgICAgICAgICAgICAgdHVpVGV4dGZpZWxkTGVnYWN5XG4gICAgICAgICAgICAgICAgICAgIGF1dG9jb21wbGV0ZT1cImN1cnJlbnQtcGFzc3dvcmRcIlxuICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICA8L3R1aS1pbnB1dC1wYXNzd29yZD5cbiAgICAgICAgICAgIDx0dWktZXJyb3JcbiAgICAgICAgICAgICAgICBmb3JtQ29udHJvbE5hbWU9XCJwYXNzd29yZFwiXG4gICAgICAgICAgICAgICAgW2Vycm9yXT1cIltdIHwgdHVpRmllbGRFcnJvciB8IGFzeW5jXCJcbiAgICAgICAgICAgID48L3R1aS1lcnJvcj5cbiAgICAgICAgPC9sYWJlbD5cbiAgICAgICAgPHR1aS1lcnJvciBbZXJyb3JdPVwiW10gfCB0dWlGaWVsZEVycm9yIHwgYXN5bmNcIj48L3R1aS1lcnJvcj5cbiAgICA8L2Rpdj5cbiAgICA8ZGl2IGNsYXNzPVwibWItNCBmbGV4IGZsZXgtY29sIGl0ZW1zLWNlbnRlciBnYXAtNFwiPlxuICAgICAgICA8YVxuICAgICAgICAgICAgdHVpTGlua1xuICAgICAgICAgICAgW3BzZXVkb109XCJ0cnVlXCJcbiAgICAgICAgICAgIChjbGljayk9XCJmb3Jnb3RQYXNzd29yZC5lbWl0KClcIlxuICAgICAgICAgICAgY2xhc3M9XCJ0ZXh0LWJhc2VcIlxuICAgICAgICAgICAgPtCX0LDQsdGL0LvQuCDQv9Cw0YDQvtC70Yw/PC9hXG4gICAgICAgID5cbiAgICAgICAgPGJ1dHRvblxuICAgICAgICAgICAgdHVpQnV0dG9uXG4gICAgICAgICAgICB0eXBlPVwic3VibWl0XCJcbiAgICAgICAgICAgIFtsb2FkaW5nXT1cIiEhKGxvYWRpbmdFbWFpbEF1dGgkIHwgYXN5bmMpXCJcbiAgICAgICAgICAgIFtkaXNhYmxlZF09XCJmb3JtQnlFbWFpbC5pbnZhbGlkIHx8ICEhKGxvYWRpbmdFbWFpbEF1dGgkIHwgYXN5bmMpXCJcbiAgICAgICAgICAgIGljb25TdGFydD1cIkB0dWkuc2MuY2lyY2xlLWFycm93LWluLXJpZ2h0XCJcbiAgICAgICAgPlxuICAgICAgICAgICAg0JLQvtC50YLQuFxuICAgICAgICA8L2J1dHRvbj5cbiAgICA8L2Rpdj5cbjwvZm9ybT5cbiJdfQ==
|
|
81
|
+
//# sourceMapping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AgICBjYXRjaEVycm9yKChlcnJvcjogdW5rbm93bikgPT4ge1xuICAgICAgICAgICAgICAgICAgICBpZiAoZXJyb3IgaW5zdGFuY2VvZiBIdHRwRXJyb3JSZXNwb25zZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgeyBlcnJvcnMsIG1lc3NhZ2UgfSA9IGVycm9yLmVycm9yIGFzIEFwaUVycm9yUmVzcG9uc2U7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIGZvciAoY29uc3Qga2V5IGluIGVycm9ycykge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChPYmplY3QuaGFzT3duKGVycm9ycywga2V5KSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgc2VjdXJpdHkvZGV0ZWN0LW9iamVjdC1pbmplY3Rpb25cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5mb3JtQnlFbWFpbC5nZXQoa2V5KT8uc2V0RXJyb3JzKHsgc2VydmVyUmVzcG9uc2U6IGVycm9yc1trZXldIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKG1lc3NhZ2UuaW5jbHVkZXMoJ9C00LXQsNC60YLQuNCy0LjRgNC+0LLQsNC9JykpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmhlbHBOb3RpZmljYXRpb25TZXJ2aWNlLmhlbHBOb3RpZmljYXRpb25CeUVtYWlsKHZhbHVlLmxvZ2luKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKCFlcnJvcnMgJiYgbWVzc2FnZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZm9ybUJ5RW1haWwuc2V0RXJyb3JzKHsgc2V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gPHR1aS1pbnB1dC1wYXNzd29yZCBmb3JtQ29udHJvbE5hbWU9XCJwYXNzd29yZFwiPlxuICAgICAgICAgICAgICAgINCf0LDRgNC+0LvRjFxuICAgICAgICAgICAgICAgIDxpbnB1dFxuICAgICAgICAgICAgICAgICAgICB0dWlUZXh0ZmllbGRMZWdhY3lcbiAgICAgICAgICAgICAgICAgICAgYXV0b2NvbXBsZXRlPVwiY3VycmVudC1wYXNzd29yZFwiXG4gICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgIDwvdHVpLWlucHV0LXBhc3N3b3JkPlxuICAgICAgICAgICAgPHR1aS1lcnJvclxuICAgICAgICAgICAgICAgIGZvcm1Db250cm9sTmFtZT1cInBhc3N3b3JkXCJcbiAgICAgICAgICAgICAgICBbZXJyb3JdPVwiW10gfCB0dWlGaWVsZEVycm9yIHwgYXN5bmNcIlxuICAgICAgICAgICAgPjwvdHVpLWVycm9yPlxuICAgICAgICA8L2xhYmVsPlxuICAgICAgICA8dHVpLWVycm9yIFtlcnJvcl09XCJbXSB8IHR1aUZpZWxkRXJyb3IgfCBhc3luY1wiPjwvdHVpLWVycm9yPlxuICAgIDwvZGl2PlxuICAgIDxkaXYgY2xhc3M9XCJtYi00IGZsZXggZmxleC1jb2wgaXRlbXMtY2VudGVyIGdhcC00XCI+XG4gICAgICAgIDxhXG4gICAgICAgICAgICB0dWlMaW5rXG4gICAgICAgICAgICBbcHNldWRvXT1cInRydWVcIlxuICAgICAgICAgICAgKGNsaWNrKT1cImZvcmdvdFBhc3N3b3JkLmVtaXQoKVwiXG4gICAgICAgICAgICBjbGFzcz1cInRleHQtYmFzZVwiXG4gICAgICAgICAgICA+0JfQsNCx0YvQu9C4INC/0LDRgNC+0LvRjD88L2FcbiAgICAgICAgPlxuICAgICAgICA8YnV0dG9uXG4gICAgICAgICAgICB0dWlCdXR0b25cbiAgICAgICAgICAgIHR5cGU9XCJzdWJtaXRcIlxuICAgICAgICAgICAgW2xvYWRpbmddPVwiISEobG9hZGluZ0VtYWlsQXV0aCQgfCBhc3luYylcIlxuICAgICAgICAgICAgW2Rpc2FibGVkXT1cImZvcm1CeUVtYWlsLmludmFsaWQgfHwgISEobG9hZGluZ0VtYWlsQXV0aCQgfCBhc3luYylcIlxuICAgICAgICAgICAgaWNvblN0YXJ0PVwiQHR1aS5zYy5jaXJjbGUtYXJyb3ctaW4tcmlnaHRcIlxuICAgICAgICA+XG4gICAgICAgICAgICDQktC+0LnRgtC4XG4gICAgICAgIDwvYnV0dG9uPlxuICAgIDwvZGl2PlxuPC9mb3JtPlxuIl19
|
package/esm2022/auth/sc-sign-in-form/sc-sign-in-form-by-phone/sc-sign-in-form-by-phone.component.mjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/* eslint-disable no-restricted-syntax,@typescript-eslint/unbound-method */
|
|
2
2
|
import { HttpErrorResponse } from '@angular/common/http';
|
|
3
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { ChangeDetectionStrategy, Component, inject } from '@angular/core';
|
|
4
4
|
import { FormControl, FormGroup, Validators } from '@angular/forms';
|
|
5
5
|
import { tuiIsFalsy } from '@taiga-ui/cdk';
|
|
6
6
|
import { catchError, filter, map, of, share, startWith, Subject, switchMap } from 'rxjs';
|
|
7
|
+
import { ScHelpNotificationService } from '../../../services/sc-help-notification.service';
|
|
7
8
|
import { phoneValidator } from '../../../validators/sc-phone-validator';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
import * as i1 from "@snabcentr/client-core";
|
|
@@ -39,6 +40,10 @@ export class ScSignInFormByPhoneComponent {
|
|
|
39
40
|
* {@link Subject} события отправки формы.
|
|
40
41
|
*/
|
|
41
42
|
this.onSubmit = new Subject();
|
|
43
|
+
/**
|
|
44
|
+
* Сервис для отображения Push-уведомлений с контактами для помощи клиенту.
|
|
45
|
+
*/
|
|
46
|
+
this.helpNotificationService = inject(ScHelpNotificationService);
|
|
42
47
|
/**
|
|
43
48
|
* {@link Observable} запроса данных аутентификации.
|
|
44
49
|
*/
|
|
@@ -51,6 +56,9 @@ export class ScSignInFormByPhoneComponent {
|
|
|
51
56
|
this.form.get(key)?.setErrors({ serverResponse: errors[key] });
|
|
52
57
|
}
|
|
53
58
|
}
|
|
59
|
+
if (message.includes('деактивирован')) {
|
|
60
|
+
this.helpNotificationService.helpNotificationByPhone(value.phone);
|
|
61
|
+
}
|
|
54
62
|
if (!errors && message) {
|
|
55
63
|
this.form.setErrors({ serverResponse: [message] });
|
|
56
64
|
}
|
|
@@ -69,4 +77,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
69
77
|
type: Component,
|
|
70
78
|
args: [{ selector: 'sc-sign-in-form-by-phone', changeDetection: ChangeDetectionStrategy.OnPush, template: "<form\n [formGroup]=\"form\"\n *tuiLet=\"!!(loading$ | async) as loading\"\n (ngSubmit)=\"onSubmit.next()\"\n class=\"mb-4 flex flex-col items-center gap-4\"\n>\n <sc-verification-phone-check-form\n [(haveCode)]=\"haveCode\"\n [shouldBeBusy]=\"true\"\n [shouldBeConfirmed]=\"true\"\n class=\"w-full\"\n />\n <tui-error\n [error]=\"[] | tuiFieldError | async\"\n class=\"self-center\"\n />\n <button\n *ngIf=\"haveCode\"\n tuiButton\n type=\"submit\"\n [loading]=\"loading\"\n [disabled]=\"form.invalid || loading\"\n iconStart=\"@tui.sc.circle-arrow-in-right\"\n >\n \u0412\u043E\u0439\u0442\u0438\n </button>\n</form>\n" }]
|
|
71
79
|
}], ctorParameters: () => [{ type: i1.ScAuthService }] });
|
|
72
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
80
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Mtc2lnbi1pbi1mb3JtLWJ5LXBob25lLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2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mb3JtLnZhbGlkKSxcbiAgICAgICAgc3dpdGNoTWFwKCh2YWx1ZSkgPT5cbiAgICAgICAgICAgIHRoaXMuYXV0aFNlcnZpY2UuZ2V0U2lnbkluJCh2YWx1ZSkucGlwZShcbiAgICAgICAgICAgICAgICBjYXRjaEVycm9yKChlcnJvcjogdW5rbm93bikgPT4ge1xuICAgICAgICAgICAgICAgICAgICBpZiAoZXJyb3IgaW5zdGFuY2VvZiBIdHRwRXJyb3JSZXNwb25zZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgeyBlcnJvcnMsIG1lc3NhZ2UgfSA9IGVycm9yLmVycm9yIGFzIEFwaUVycm9yUmVzcG9uc2U7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIGZvciAoY29uc3Qga2V5IGluIGVycm9ycykge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChPYmplY3QuaGFzT3duKGVycm9ycywga2V5KSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgc2VjdXJpdHkvZGV0ZWN0LW9iamVjdC1pbmplY3Rpb25cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5mb3JtLmdldChrZXkpPy5zZXRFcnJvcnMoeyBzZXJ2ZXJSZXNwb25zZTogZXJyb3JzW2tleV0gfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAobWVzc2FnZS5pbmNsdWRlcygn0LTQtdCw0LrRgtC40LLQuNGA0L7QstCw0L0nKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuaGVscE5vdGlmaWNhdGlvblNlcnZpY2UuaGVscE5vdGlmaWNhdGlvbkJ5UGhvbmUodmFsdWUucGhvbmUpO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoIWVycm9ycyAmJiBtZXNzYWdlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5mb3JtLnNldEVycm9ycyh7IHNlcnZlclJlc3BvbnNlOiBbbWVzc2FnZV0gfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gb2Yoe30gYXMgSUF1dGhUb2tlbik7XG4gICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgc3RhcnRXaXRoKG51bGwpXG4gICAgICAgICAgICApXG4gICAgICAgICksXG4gICAgICAgIHNoYXJlKClcbiAgICApO1xuXG4gICAgLyoqXG4gICAgICoge0BsaW5rIE9ic2VydmFibGV9INC40LfQvNC10L3QtdC90LjRjyDRgdC+0YHRgtC+0Y/QvdC40Y8g0LfQsNCz0YDRg9C30LrQuCDQtNCw0L3QvdGL0YUg0LDRg9GC0LXQvdGC0LjRhNC40LrQsNGG0LjQuCDQv9C+INC90L7QvNC10YDRgyDRgtC10LvQtdGE0L7QvdCwLlxuICAgICAqL1xuICAgIHB1YmxpYyByZWFkb25seSBsb2FkaW5nJDogT2JzZXJ2YWJsZTxib29sZWFuPiA9IHRoaXMucmVxdWVzdCQucGlwZShtYXAodHVpSXNGYWxzeSkpO1xuXG4gICAgLyoqXG4gICAgICog0JjQvdC40YbQuNCw0LvQuNC30LjRgNGD0LXRgiDRjdC60LfQtdC80L/Qu9GP0YAg0LrQu9Cw0YHRgdCwIHtAbGluayBTY1NpZ25JbkZvcm1CeVBob25lQ29tcG9uZW50fS5cbiAgICAgKlxuICAgICAqIEBwYXJhbSBhdXRoU2VydmljZSDQodC10YDQstC40YEg0LDRg9GC0LXQvdGC0LjRhNC40LrQsNGG0LjQuC5cbiAgICAgKi9cbiAgICBwdWJsaWMgY29uc3RydWN0b3IocHJpdmF0ZSByZWFkb25seSBhdXRoU2VydmljZTogU2NBdXRoU2VydmljZSkge31cbn1cbiIsIjxmb3JtXG4gICAgW2Zvcm1Hcm91cF09XCJmb3JtXCJcbiAgICAqdHVpTGV0PVwiISEobG9hZGluZyQgfCBhc3luYykgYXMgbG9hZGluZ1wiXG4gICAgKG5nU3VibWl0KT1cIm9uU3VibWl0Lm5leHQoKVwiXG4gICAgY2xhc3M9XCJtYi00IGZsZXggZmxleC1jb2wgaXRlbXMtY2VudGVyIGdhcC00XCJcbj5cbiAgICA8c2MtdmVyaWZpY2F0aW9uLXBob25lLWNoZWNrLWZvcm1cbiAgICAgICAgWyhoYXZlQ29kZSldPVwiaGF2ZUNvZGVcIlxuICAgICAgICBbc2hvdWxkQmVCdXN5XT1cInRydWVcIlxuICAgICAgICBbc2hvdWxkQmVDb25maXJtZWRdPVwidHJ1ZVwiXG4gICAgICAgIGNsYXNzPVwidy1mdWxsXCJcbiAgICAvPlxuICAgIDx0dWktZXJyb3JcbiAgICAgICAgW2Vycm9yXT1cIltdIHwgdHVpRmllbGRFcnJvciB8IGFzeW5jXCJcbiAgICAgICAgY2xhc3M9XCJzZWxmLWNlbnRlclwiXG4gICAgLz5cbiAgICA8YnV0dG9uXG4gICAgICAgICpuZ0lmPVwiaGF2ZUNvZGVcIlxuICAgICAgICB0dWlCdXR0b25cbiAgICAgICAgdHlwZT1cInN1Ym1pdFwiXG4gICAgICAgIFtsb2FkaW5nXT1cImxvYWRpbmdcIlxuICAgICAgICBbZGlzYWJsZWRdPVwiZm9ybS5pbnZhbGlkIHx8IGxvYWRpbmdcIlxuICAgICAgICBpY29uU3RhcnQ9XCJAdHVpLnNjLmNpcmNsZS1hcnJvdy1pbi1yaWdodFwiXG4gICAgPlxuICAgICAgICDQktC+0LnRgtC4XG4gICAgPC9idXR0b24+XG48L2Zvcm0+XG4iXX0=
|
|
@@ -78,6 +78,16 @@ export class ScHelpNotificationService {
|
|
|
78
78
|
this.setShowContacts(...contacts);
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* Показать уведомление по адресу электронной почты.
|
|
83
|
+
*
|
|
84
|
+
* @param email Адрес электронной почты.
|
|
85
|
+
*/
|
|
86
|
+
helpNotificationByEmail(email) {
|
|
87
|
+
this.contactsService.getHelpContacts$({ email }).subscribe((contacts) => {
|
|
88
|
+
this.setShowContacts(...contacts);
|
|
89
|
+
});
|
|
90
|
+
}
|
|
81
91
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ScHelpNotificationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
82
92
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ScHelpNotificationService, providedIn: 'root' }); }
|
|
83
93
|
}
|
|
@@ -87,4 +97,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
87
97
|
providedIn: 'root',
|
|
88
98
|
}]
|
|
89
99
|
}], ctorParameters: () => [] });
|
|
90
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
100
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2MtaGVscC1ub3RpZmljYXRpb24uc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2NsaWVudC11aS9zZXJ2aWNlcy9zYy1oZWxwLW5vdGlmaWNhdGlvbi5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ25ELE9BQU8sRUFBRSxpQkFBaUIsRUFBaUIsYUFBYSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDekYsT0FBTyxFQUFFLGVBQWUsRUFBYyxFQUFFLEVBQUUsV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QvtC90L3QvtC5INC/0L7Rh9GC0YsuXG4gICAgICovXG4gICAgcHVibGljIGhlbHBOb3RpZmljYXRpb25CeUVtYWlsKGVtYWlsOiBzdHJpbmcpOiB2b2lkIHtcbiAgICAgICAgdGhpcy5jb250YWN0c1NlcnZpY2UuZ2V0SGVscENvbnRhY3RzJCh7IGVtYWlsIH0pLnN1YnNjcmliZSgoY29udGFjdHMpID0+IHtcbiAgICAgICAgICAgIHRoaXMuc2V0U2hvd0NvbnRhY3RzKC4uLmNvbnRhY3RzKTtcbiAgICAgICAgfSk7XG4gICAgfVxufVxuIl19
|
|
@@ -138,6 +138,16 @@ class ScHelpNotificationService {
|
|
|
138
138
|
this.setShowContacts(...contacts);
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
|
+
/**
|
|
142
|
+
* Показать уведомление по адресу электронной почты.
|
|
143
|
+
*
|
|
144
|
+
* @param email Адрес электронной почты.
|
|
145
|
+
*/
|
|
146
|
+
helpNotificationByEmail(email) {
|
|
147
|
+
this.contactsService.getHelpContacts$({ email }).subscribe((contacts) => {
|
|
148
|
+
this.setShowContacts(...contacts);
|
|
149
|
+
});
|
|
150
|
+
}
|
|
141
151
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ScHelpNotificationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
142
152
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ScHelpNotificationService, providedIn: 'root' }); }
|
|
143
153
|
}
|
|
@@ -1621,6 +1631,10 @@ class ScSignInFormByPhoneComponent {
|
|
|
1621
1631
|
* {@link Subject} события отправки формы.
|
|
1622
1632
|
*/
|
|
1623
1633
|
this.onSubmit = new Subject();
|
|
1634
|
+
/**
|
|
1635
|
+
* Сервис для отображения Push-уведомлений с контактами для помощи клиенту.
|
|
1636
|
+
*/
|
|
1637
|
+
this.helpNotificationService = inject(ScHelpNotificationService);
|
|
1624
1638
|
/**
|
|
1625
1639
|
* {@link Observable} запроса данных аутентификации.
|
|
1626
1640
|
*/
|
|
@@ -1633,6 +1647,9 @@ class ScSignInFormByPhoneComponent {
|
|
|
1633
1647
|
this.form.get(key)?.setErrors({ serverResponse: errors[key] });
|
|
1634
1648
|
}
|
|
1635
1649
|
}
|
|
1650
|
+
if (message.includes('деактивирован')) {
|
|
1651
|
+
this.helpNotificationService.helpNotificationByPhone(value.phone);
|
|
1652
|
+
}
|
|
1636
1653
|
if (!errors && message) {
|
|
1637
1654
|
this.form.setErrors({ serverResponse: [message] });
|
|
1638
1655
|
}
|
|
@@ -1675,6 +1692,10 @@ class ScSignInFormByEmailComponent {
|
|
|
1675
1692
|
* {@link Subject} события отправки формы.
|
|
1676
1693
|
*/
|
|
1677
1694
|
this.onSubmit = new Subject();
|
|
1695
|
+
/**
|
|
1696
|
+
* Сервис для отображения Push-уведомлений с контактами для помощи клиенту.
|
|
1697
|
+
*/
|
|
1698
|
+
this.helpNotificationService = inject(ScHelpNotificationService);
|
|
1678
1699
|
/**
|
|
1679
1700
|
* {@link Observable} запроса данных аутентификации.
|
|
1680
1701
|
*/
|
|
@@ -1687,6 +1708,9 @@ class ScSignInFormByEmailComponent {
|
|
|
1687
1708
|
this.formByEmail.get(key)?.setErrors({ serverResponse: errors[key] });
|
|
1688
1709
|
}
|
|
1689
1710
|
}
|
|
1711
|
+
if (message.includes('деактивирован')) {
|
|
1712
|
+
this.helpNotificationService.helpNotificationByEmail(value.login);
|
|
1713
|
+
}
|
|
1690
1714
|
if (!errors && message) {
|
|
1691
1715
|
this.formByEmail.setErrors({ serverResponse: [message] });
|
|
1692
1716
|
}
|