@snabcentr/client-ui 3.44.0 → 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/form-fields/addresses-selection-field/sc-addresses-selection-field.component.mjs +6 -4
- package/esm2022/services/sc-help-notification.service.mjs +11 -1
- package/fesm2022/snabcentr-client-ui.mjs +29 -3
- 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Mtc2lnbi1pbi1mb3JtLWJ5LWVtYWlsLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NsaWVudC11aS9hdXRoL3NjLXNpZ24taW4tZm9ybS9zYy1zaWduLWluLWZvcm0tYnktZW1haWwvc2Mtc2lnbi1pbi1mb3JtLWJ5LWVtYWlsLm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gICAgICAgICAgICAgICAgICAgaWYgKGVycm9yIGluc3RhbmNlb2YgSHR0cEVycm9yUmVzcG9uc2UpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IHsgZXJyb3JzLCBtZXNzYWdlIH0gPSBlcnJvci5lcnJvciBhcyBBcGlFcnJvclJlc3BvbnNlO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICBmb3IgKGNvbnN0IGtleSBpbiBlcnJvcnMpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoT2JqZWN0Lmhhc093bihlcnJvcnMsIGtleSkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIHNlY3VyaXR5L2RldGVjdC1vYmplY3QtaW5qZWN0aW9uXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZm9ybUJ5RW1haWwuZ2V0KGtleSk/LnNldEVycm9ycyh7IHNlcnZlclJlc3BvbnNlOiBlcnJvcnNba2V5XSB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIGlmICghZXJyb3JzICYmIG1lc3NhZ2UpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmZvcm1CeUVtYWlsLnNldEVycm9ycyh7IHNlcnZlclJlc3BvbnNlOiBbbWVzc2FnZV0gfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gb2Yoe30gYXMgSUF1dGhUb2tlbik7XG4gICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgc3RhcnRXaXRoKG51bGwpXG4gICAgICAgICAgICApXG4gICAgICAgICksXG4gICAgICAgIHNoYXJlKClcbiAgICApO1xuXG4gICAgLyoqXG4gICAgICo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Im1iLTggZmxleCBmbGV4LWNvbCBnYXAtNFwiPlxuICAgICAgICA8bGFiZWwgdHVpTGFiZWxcbiAgICAgICAgICAgID7QkNC00YDQtdGBINGN0LvQtdC60YLRgNC+0L3QvdC+0Lkg0L/QvtGH0YLRi1xuICAgICAgICAgICAgPHR1aS1pbnB1dCBmb3JtQ29udHJvbE5hbWU9XCJsb2dpblwiPlxuICAgICAgICAgICAgICAgINCQ0LTRgNC10YEg0Y3Qu9C10LrRgtGA0L7QvdC90L7QuSDQv9C+0YfRgtGLXG4gICAgICAgICAgICAgICAgPGlucHV0XG4gICAgICAgICAgICAgICAgICAgIHR1aVRleHRmaWVsZExlZ2FjeVxuICAgICAgICAgICAgICAgICAgICBhdXRvY29tcGxldGU9XCJlbWFpbFwiXG4gICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgIDwvdHVpLWlucHV0PlxuICAgICAgICAgICAgPHR1aS1lcnJvclxuICAgICAgICAgICAgICAgIGZvcm1Db250cm9sTmFtZT1cImxvZ2luXCJcbiAgICAgICAgICAgICAgICBbZXJyb3JdPVwiW10gfCB0dWlGaWVsZEVycm9yIHwgYXN5bmNcIlxuICAgICAgICAgICAgPjwvdHVpLWVycm9yPlxuICAgICAgICA8L2xhYmVsPlxuICAgICAgICA8bGFiZWwgdHVpTGFiZWxcbiAgICAgICAgICAgID7Qn9Cw0YDQvtC70YxcbiAgICAgICAgICAgIDx0dWktaW5wdXQtcGFzc3dvcmQgZm9ybUNvbnRyb2xOYW1lPVwicGFzc3dvcmRcIj5cbiAgICAgICAgICAgICAgICDQn9Cw0YDQvtC70YxcbiAgICAgICAgICAgICAgICA8aW5wdXRcbiAgICAgICAgICAgICAgICAgICAgdHVpVGV4dGZpZWxkTGVnYWN5XG4gICAgICAgICAgICAgICAgICAgIGF1dG9jb21wbGV0ZT1cImN1cnJlbnQtcGFzc3dvcmRcIlxuICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICA8L3R1aS1pbnB1dC1wYXNzd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Z2V0U2lnbkluJCh2YWx1ZSkucGlwZShcbiAgICAgICAgICAgICAgICBjYXRjaEVycm9yKChlcnJvcjogdW5rbm93bikgPT4ge1xuICAgICAgICAgICAgICAgICAgICBpZiAoZXJyb3IgaW5zdGFuY2VvZiBIdHRwRXJyb3JSZXNwb25zZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgeyBlcnJvcnMsIG1lc3NhZ2UgfSA9IGVycm9yLmVycm9yIGFzIEFwaUVycm9yUmVzcG9uc2U7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIGZvciAoY29uc3Qga2V5IGluIGVycm9ycykge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChPYmplY3QuaGFzT3duKGVycm9ycywga2V5KSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgc2VjdXJpdHkvZGV0ZWN0LW9iamVjdC1pbmplY3Rpb25cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5mb3JtQnlFbWFpbC5nZXQoa2V5KT8uc2V0RXJyb3JzKHsgc2VydmVyUmVzcG9uc2U6IGVycm9yc1trZXldIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKG1lc3NhZ2UuaW5jbHVkZXMoJ9C00LXQsNC60YLQuNCy0LjRgNC+0LLQsNC9JykpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmhlbHBOb3RpZmljYXRpb25TZXJ2aWNlLmhlbHBOb3RpZmljYXRpb25CeUVtYWlsKHZhbHVlLmxvZ2luKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKCFlcnJvcnMgJiYgbWVzc2FnZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgIC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xuICAgICAgICAgICAgPtCf0LDRgNC+0LvRjFxuICAgICAgICAgICAgPHR1aS1pbnB1dC1wYXNzd29yZCBmb3JtQ29udHJvbE5hbWU9XCJwYXNzd29yZFwiPlxuICAgICAgICAgICAgICAgINCf0LDRgNC+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Mtc2lnbi1pbi1mb3JtLWJ5LXBob25lLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiL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ZhbHVlKTogdmFsdWUgaXMgSVBob25lTG9naW4gPT4gdGhpcy5mb3JtLnZhbGlkKSxcbiAgICAgICAgc3dpdGNoTWFwKCh2YWx1ZSkgPT5cbiAgICAgICAgICAgIHRoaXMuYXV0aFNlcnZpY2UuZ2V0U2lnbkluJCh2YWx1ZSkucGlwZShcbiAgICAgICAgICAgICAgICBjYXRjaEVycm9yKChlcnJvcjogdW5rbm93bikgPT4ge1xuICAgICAgICAgICAgICAgICAgICBpZiAoZXJyb3IgaW5zdGFuY2VvZiBIdHRwRXJyb3JSZXNwb25zZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgeyBlcnJvcnMsIG1lc3NhZ2UgfSA9IGVycm9yLmVycm9yIGFzIEFwaUVycm9yUmVzcG9uc2U7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIGZvciAoY29uc3Qga2V5IGluIGVycm9ycykge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChPYmplY3QuaGFzT3duKGVycm9ycywga2V5KSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgc2VjdXJpdHkvZGV0ZWN0LW9iamVjdC1pbmplY3Rpb25cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5mb3JtLmdldChrZXkpPy5zZXRFcnJvcnMoeyBzZXJ2ZXJSZXNwb25zZTogZXJyb3JzW2tleV0gfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAobWVzc2FnZS5pbmNsdWRlcygn0LTQtdCw0LrRgtC40LLQuNGA0L7QstCw0L0nKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuaGVscE5vdGlmaWNhdGlvblNlcnZpY2UuaGVscE5vdGlmaWNhdGlvbkJ5UGhvbmUodmFsdWUucGhvbmUpO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoIWVycm9ycyAmJiBtZXNzYWdlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5mb3JtLnNldEVycm9ycyh7IHNlcnZlclJlc3BvbnNlOiBbbWVzc2FnZV0gfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gb2Yoe30gYXMgSUF1dGhUb2tlbik7XG4gICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgc3RhcnRXaXRoKG51bGwpXG4gICAgICAgICAgICApXG4gICAgICAgICksXG4gICAgICAgIHNoYXJlKClcbiAgICApO1xuXG4gICAgLyoqXG4gICAgICoge0BsaW5rIE9ic2VydmFibGV9INC40LfQvNC10L3QtdC90LjRjyDRgdC+0YHRgtC+0Y/QvdC40Y8g0LfQsNCz0YDRg9C30LrQuCDQtNCw0L3QvdGL0YUg0LDRg9GC0LXQvdGC0LjRhNC40LrQsNGG0LjQuCDQv9C+INC90L7QvNC10YDRgyDRgtC10LvQtdGE0L7QvdCwLlxuICAgICAqL1xuICAgIHB1YmxpYyByZWFkb25seSBsb2FkaW5nJDogT2JzZXJ2YWJsZTxib29sZWFuPiA9IHRoaXMucmVxdWVzdCQucGlwZShtYXAodHVpSXNGYWxzeSkpO1xuXG4gICAgLyoqXG4gICAgICog0JjQvdC40YbQuNCw0LvQuNC30LjRgNGD0LXRgiDRjdC60LfQtdC80L/Qu9GP0YAg0LrQu9Cw0YHRgdCwIHtAbGluayBTY1NpZ25JbkZvcm1CeVBob25lQ29tcG9uZW50fS5cbiAgICAgKlxuICAgICAqIEBwYXJhbSBhdXRoU2VydmljZSDQodC10YDQstC40YEg0LDRg9GC0LXQvdGC0LjRhNC40LrQsNGG0LjQuC5cbiAgICAgKi9cbiAgICBwdWJsaWMgY29uc3RydWN0b3IocHJpdmF0ZSByZWFkb25seSBhdXRoU2VydmljZTogU2NBdXRoU2VydmljZSkge31cbn1cbiIsIjxmb3JtXG4gICAgW2Zvcm1Hcm91cF09XCJmb3JtXCJcbiAgICAqdHVpTGV0PVwiISEobG9hZGluZyQgfCBhc3luYykgYXMgbG9hZGluZ1wiXG4gICAgKG5nU3VibWl0KT1cIm9uU3VibWl0Lm5leHQoKVwiXG4gICAgY2xhc3M9XCJtYi00IGZsZXggZmxleC1jb2wgaXRlbXMtY2VudGVyIGdhcC00XCJcbj5cbiAgICA8c2MtdmVyaWZpY2F0aW9uLXBob25lLWNoZWNrLWZvcm1cbiAgICAgICAgWyhoYXZlQ29kZSldPVwiaGF2ZUNvZGVcIlxuICAgICAgICBbc2hvdWxkQmVCdXN5XT1cInRydWVcIlxuICAgICAgICBbc2hvdWxkQmVDb25maXJtZWRdPVwidHJ1ZVwiXG4gICAgICAgIGNsYXNzPVwidy1mdWxsXCJcbiAgICAvPlxuICAgIDx0dWktZXJyb3JcbiAgICAgICAgW2Vycm9yXT1cIltdIHwgdHVpRmllbGRFcnJvciB8IGFzeW5jXCJcbiAgICAgICAgY2xhc3M9XCJzZWxmLWNlbnRlclwiXG4gICAgLz5cbiAgICA8YnV0dG9uXG4gICAgICAgICpuZ0lmPVwiaGF2ZUNvZGVcIlxuICAgICAgICB0dWlCdXR0b25cbiAgICAgICAgdHlwZT1cInN1Ym1pdFwiXG4gICAgICAgIFtsb2FkaW5nXT1cImxvYWRpbmdcIlxuICAgICAgICBbZGlzYWJsZWRdPVwiZm9ybS5pbnZhbGlkIHx8IGxvYWRpbmdcIlxuICAgICAgICBpY29uU3RhcnQ9XCJAdHVpLnNjLmNpcmNsZS1hcnJvdy1pbi1yaWdodFwiXG4gICAgPlxuICAgICAgICDQktC+0LnRgtC4XG4gICAgPC9idXR0b24+XG48L2Zvcm0+XG4iXX0=
|
package/esm2022/form-fields/addresses-selection-field/sc-addresses-selection-field.component.mjs
CHANGED
|
@@ -100,10 +100,12 @@ export class ScAddressesSelectionFieldComponent {
|
|
|
100
100
|
.getCityById$(Number(this.cityIdControl.value))
|
|
101
101
|
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
102
102
|
.subscribe((city) => {
|
|
103
|
-
this.countryControl.patchValue(city.region.country);
|
|
104
|
-
this.regionControl.patchValue(city.region);
|
|
105
|
-
this.cityControl.patchValue(city);
|
|
106
103
|
this.canSelectCountry.set(city.region.country.id !== this.russiaCountryId);
|
|
104
|
+
setTimeout(() => {
|
|
105
|
+
this.countryControl.patchValue(city.region.country);
|
|
106
|
+
this.regionControl.patchValue(city.region);
|
|
107
|
+
this.cityControl.patchValue(city);
|
|
108
|
+
});
|
|
107
109
|
});
|
|
108
110
|
}
|
|
109
111
|
this.countryControl.valueChanges.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((country) => {
|
|
@@ -152,4 +154,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
152
154
|
type: Inject,
|
|
153
155
|
args: [FormGroupDirective]
|
|
154
156
|
}] }, { type: i1.ScLocationsService }] });
|
|
155
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2MtYWRkcmVzc2VzLXNlbGVjdGlvbi1maWVsZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jbGllbnQtdWkvZm9ybS1maWVsZHMvYWRkcmVzc2VzLXNlbGVjdGlvbi1maWVsZC9zYy1hZGRyZXNzZXMtc2VsZWN0aW9uLWZpZWxkLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NsaWVudC11aS9mb3JtLWZpZWxkcy9hZGRyZXNzZXMtc2VsZWN0aW9uLWZpZWxkL3NjLWFkZHJlc3Nlcy1zZWxlY3Rpb24tZmllbGQuY29tcG9uZW50Lmh0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kQ291bnRyeSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmNvdW50cnlDb250cm9sLnBhdGNoVmFsdWUoY2l0eS5yZWdpb24uY291bnRyeSk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMucmVnaW9uQ29udHJvbC5wYXRjaFZhbHVlKGNpdHkucmVnaW9uKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5jaXR5Q29udHJvbC5wYXRjaFZhbHVlKGNpdHkpO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmNhblNlbGVjdENvdW50cnkuc2V0KGNpdHkucmVnaW9uLmNvdW50cnkuaWQgIT09IHRoaXMucnVzc2lhQ291bnRyeUlkKTtcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMuY291bnRyeUNvbnRyb2wudmFsdWVDaGFuZ2VzLnBpcGUodGFrZVVudGlsRGVzdHJveWVkKHRoaXMuZGVzdHJveVJlZikpLnN1YnNjcmliZSgoY291bnRyeSkgPT4ge1xuICAgICAgICAgICAgdGhpcy5yZWdpb25Db250cm9sLnJlc2V0KG51bGwpO1xuICAgICAgICAgICAgdGhpcy5jaXR5Q29udHJvbC5yZXNldChudWxsKTtcbiAgICAgICAgICAgIGlmIChjb3VudHJ5KSB7XG4gICAgICAgICAgICAgICAgdGhpcy5yZWdpb25Db250cm9sLmVuYWJsZSgpO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICB0aGlzLnJlZ2lvbkNvbnRyb2wuZGlzYWJsZSgpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgdGhpcy5jaXR5Q29udHJvbC5kaXNhYmxlKCk7XG4gICAgICAgIH0pO1xuXG4gICAgICAgIHRoaXMucmVnaW9uQ29udHJvbC52YWx1ZUNoYW5nZXMucGlwZSh0YWtlVW50aWxEZXN0cm95ZWQodGhpcy5kZXN0cm95UmVmKSkuc3Vic2NyaWJlKChyZWdpb24pID0+IHtcb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vcj5cbjwvbGFiZWw+XG48ZGl2IGNsYXNzPVwiZ3JpZCBpdGVtcy1zdGFydCBnYXAtNCBzbTpncmlkLWNvbHMtMlwiPlxuICAgIDxsYWJlbCB0dWlMYWJlbD5cbiAgICAgICAg0KDQtdCz0LjQvtC9XG4gICAgICAgIDx0dWktY29tYm8tYm94XG4gICAgICAgICAgICAqdHVpTGV0PVwiKHJlZ2lvbnMkIHwgYXN5bmMpID8/IFtdIGFzIHJlZ2lvbnNcIlxuICAgICAgICAgICAgW2Zvcm1Db250cm9sXT1cInJlZ2lvbkNvbnRyb2xcIlxuICAgICAgICAgICAgW3N0cmluZ2lmeV09XCJzdHJpbmdpZnlcIlxuICAgICAgICA+XG4gICAgICAgICAgICDQoNC10LPQuNC+0L1cbiAgICAgICAgICAgIDxpbnB1dFxuICAgICAgICAgICAgICAgIHR1aVRleHRmaWVsZExlZ2FjeVxuICAgICAgICAgICAgICAgIGF1dG9jYXBpdGFsaXplPVwib2ZmXCJcbiAgICAgICAgICAgICAgICBhdXRvY29tcGxldGU9XCJvZmZcIlxuICAgICAgICAgICAgICAgIGF1dG9jb3JyZWN0PVwib2ZmXCJcbiAgICAgICAgICAgICAgICBhdXRvY29tcGxldGU9XCJuZXctcGFzc3dvcmRcIlxuICAgICAgICAgICAgLz5cbiAgICAgICAgICAgIDx0dWktZGF0YS1saXN0LXdyYXBwZXJcbiAgICAgICAgICAgICAgICAqdHVpRGF0YUxpc3RcbiAgICAgICAgICAgICAgICBbaXRlbUNvbnRlbnRdPVwic3RyaW5naWZ5IHwgdHVpU3RyaW5naWZ5Q29udGVudFwiXG4gICAgICAgICAgICAgICAgW2l0ZW1zXT1cInJlZ2lvbnMgfCB0dWlGaWx0ZXJCeUlucHV0XCJcbiAgICAgICAgICAgID48L3R1aS1kYXRhLWxpc3Qtd3JhcHBlcj5cbiAgICAgICAgPC90dWktY29tYm8tYm94PlxuICAgICAgICA8dHVpLWVycm9yXG4gICAgICAgICAgICBbZm9ybUNvbnRyb2xdPVwicmVnaW9uQ29udHJvbFwiXG4gICAgICAgICAgICBbZXJyb3JdPVwiW10gfCB0dWlGaWVsZEVycm9yIHwgYXN5bmNcIlxuICAgICAgICA+PC90dWktZXJyb3I+XG4gICAgPC9sYWJlbD5cbiAgICA8bGFiZWwgdHVpTGFiZWw+XG4gICAgICAgINCT0L7RgNC+0LRcbiAgICAgICAgPHR1aS1jb21iby1ib3hcbiAgICAgICAgICAgICp0dWlMZXQ9XCIoY2l0aWVzJCB8IGFzeW5jKSA/PyBbXSBhcyBjaXRpZXNcIlxuICAgICAgICAgICAgW2Zvcm1Db250cm9sXT1cImNpdHlDb250cm9sXCJcbiAgICAgICAgICAgIFtzdHJpbmdpZnldPVwic3RyaW5naWZ5XCJcbiAgICAgICAgICAgIChuZ01vZGVsQ2hhbmdlKT1cIm9uU2VsZWN0ZWRDaXR5KCRldmVudClcIlxuICAgICAgICA+XG4gICAgICAgICAgICDQk9C+0YDQvtC0XG4gICAgICAgICAgICA8aW5wdXRcbiAgICAgICAgICAgICAgICB0dWlUZXh0ZmllbGRMZWdhY3lcbiAgICAgICAgICAgICAgICBhdXRvY2FwaXRhbGl6ZT1cIm9mZlwiXG4gICAgICAgICAgICAgICAgYXV0b2NvbXBsZXRlPVwib2ZmXCJcbiAgICAgICAgICAgICAgICBhdXRvY29ycmVjdD1cIm9mZlwiXG4gICAgICAgICAgICAgICAgYXV0b2NvbXBsZXRlPVwibmV3LXBhc3N3b3JkXCJcbiAgICAgICAgICAgIC8+XG4gICAgICAgICAgICA8dHVpLWRhdGEtbGlzdC13cmFwcGVyXG4gICAgICAgICAgICAgICAgKnR1aURhdGFMaXN0XG4gICAgICAgICAgICAgICAgW2l0ZW1Db250ZW50XT1cInN0cmluZ2lmeSB8IHR1aVN0cmluZ2lmeUNvbnRlbnRcIlxuICAgICAgICAgICAgICAgIFtpdGVtc109XCJjaXRpZXMgfCB0dWlGaWx0ZXJCeUlucHV0XCJcbiAgICAgICAgICAgID48L3R1aS1kYXRhLWxpc3Qtd3JhcHBlcj5cbiAgICAgICAgPC90dWktY29tYm8tYm94PlxuICAgICAgICA8dHVpLWVycm9yXG4gICAgICAgICAgICBbZm9ybUNvbnRyb2xdPVwiY2l0eUlkQ29udHJvbFwiXG4gICAgICAgICAgICBbZXJyb3JdPVwiW10gfCB0dWlGaWVsZEVycm9yIHwgYXN5bmNcIlxuICAgICAgICA+PC90dWktZXJyb3I+XG4gICAgICAgIDx0dWktZXJyb3JcbiAgICAgICAgICAgICpuZ0lmPVwiY2l0eUlkQ29udHJvbC51bnRvdWNoZWRcIlxuICAgICAgICAgICAgW2Zvcm1Db250cm9sXT1cImNpdHlDb250cm9sXCJcbiAgICAgICAgICAgIFtlcnJvcl09XCJbXSB8IHR1aUZpZWxkRXJyb3IgfCBhc3luY1wiXG4gICAgICAgID48L3R1aS1lcnJvcj5cbiAgICA8L2xhYmVsPlxuPC9kaXY+XG4iXX0=
|
|
157
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2MtYWRkcmVzc2VzLXNlbGVjdGlvbi1maWVsZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jbGllbnQtdWkvZm9ybS1maWVsZHMvYWRkcmVzc2VzLXNlbGVjdGlvbi1maWVsZC9zYy1hZGRyZXNzZXMtc2VsZWN0aW9uLWZpZWxkLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NsaWVudC11aS9mb3JtLWZpZWxkcy9hZGRyZXNzZXMtc2VsZWN0aW9uLWZpZWxkL3NjLWFkZHJlc3Nlcy1zZWxlY3Rpb24tZmllbGQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsbUdBQW1HO0FBRW5HLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsVUFBV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b250cm9sLnNldFZhbHVlKHtcbiAgICAgICAgICAgICAgICAgICAgaWQ6IHRoaXMucnVzc2lhQ291bnRyeUlkLFxuICAgICAgICAgICAgICAgICAgICBuYW1lOiAn0KDQvtGB0YHQuNGPJyxcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogYEZvcm1Db250cm9sYCDQv9C+0LvRjyDQuNC00LXQvdGC0LjRhNC40LrQsNGC0L7RgNCwINCz0L7RgNC+0LTQsC5cbiAgICAgKi9cbiAgICBwdWJsaWMgZ2V0IGNpdHlJZENvbnRyb2woKTogRm9ybUNvbnRyb2w8c3RyaW5nIHwgbnVsbD4ge1xuICAgICAgICAvLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgQHR5cGVzY3JpcHQtZXNsaW50L25vLW5vbi1udWxsLWFzc2VydGlvblxuICAgICAgICByZXR1cm4gdGhpcy5mb3JtR3JvdXBEaXJlY3RpdmUuZm9ybS5nZXQoJ2NpdHlJZCcpISBhcyBGb3JtQ29udHJvbDxzdHJpbmcgfCBudWxsPjtcbiAgICB9XG5cbiAgICAvKiogQGluaGVyaXREb2MgKi9cbiAgICBwdWJsaWMgbmdPbkluaXQoKTogdm9pZCB7XG4gICAgICAgIGlmICh0aGlzLmNpdHlJZENvbnRyb2wudmFsaWQpIHtcbiAgICAgICAgICAgIHRoaXMubG9jYXRpb25zU2VydmljZVxuICAgICAgICAgICAgICAgIC5nZXRDaXR5QnlJZCQoTnVtYmVyKHRoaXMuY2l0eUlkQ29udHJvbC52YWx1ZSkpXG4gICAgICAgICAgICAgICAgLnBpcGUodGFrZVVudGlsRGVzdHJveWVkKHRoaXMuZGVzdHJveVJlZikpXG4gICAgICAgICAgICAgICAgLnN1YnNjcmliZSgoY2l0eTogU2NJQ2l0eVdpdGhSZWdpb25BbmRDb3VudHJ5KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuY2FuU2VsZWN0Q291bnRyeS5zZXQoY2l0eS5yZWdpb24uY291bnRyeS5pZCAhPT0gdGhpcy5ydXNzaWFDb3VudHJ5SWQpO1xuICAgICAgICAgICAgICAgICAgICBzZXRUaW1lb3V0KCgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuY291bnRyeUNvbnRyb2wucGF0Y2hWYWx1ZShjaXR5LnJlZ2lvbi5jb3VudHJ5KTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMucmVnaW9uQ29udHJvbC5wYXRjaFZhbHVlKGNpdHkucmVnaW9uKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuY2l0eUNvbnRyb2wucGF0Y2hWYWx1ZShjaXR5KTtcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLmNvdW50cnlDb250cm9sLnZhbHVlQ2hhbmdlcy5waXBlKHRha2VVbnRpbERlc3Ryb3llZCh0aGlzLmRlc3Ryb3lSZWYpKS5zdWJzY3JpYmUoKGNvdW50cnkpID0+IHtcbiAgICAgICAgICAgIHRoaXMucmVnaW9uQ29udHJvbC5yZXNldChudWxsKTtcbiAgICAgICAgICAgIHRoaXMuY2l0eUNvbnRyb2wucmVzZXQobnVsbCk7XG5cbiAgICAgICAgICAgIGlmIChjb3VudHJ5KSB7XG4gICAgICAgICAgICAgICAgdGhpcy5yZWdpb25Db250cm9sLmVuYWJsZSgpO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICB0aGlzLnJlZ2lvbkNvbnRyb2wuZGlzYWJsZSgpO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICB0aGlzLmNpdHlDb250cm9sLmRpc2FibGUoKTtcbiAgICAgICAgfSk7XG5cbiAgICAgICAgdGhpcy5yZWdpb25Db250cm9sLnZhbHVlQ2hhbmdlcy5waXBlKHRha2VVbnRpbERlc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kVmFsaWRhdGUodGhpcy5jaXR5SWRDb250cm9sKTtcbiAgICAgICAgfVxuICAgIH1cbn1cbiIsIjxsYWJlbFxuICAgICpuZ0lmPVwiY2FuU2VsZWN0Q291bnRyeSgpXCJcbiAgICB0dWlMYWJlbFxuICAgIGNsYXNzPVwibWItMlwiXG4+XG4gICAg0KHRgtGA0LDQvdCwXG4gICAgPHR1aS1jb21iby1ib3hcbiAgICAgICAgKnR1aUxldD1cIihjb3VudHJpZXMkIHwgYXN5bmMpID8/IFtdIGFzIGNvdW50cmllc1wiXG4gICAgICAgIFtmb3JtQ29udHJvbF09XCJjb3VudHJ5Q29udHJvbFwiXG4gICAgICAgIFtzdHJpbmdpZnldPVwic3RyaW5naWZ5XCJcbiAgICA+XG4gICAgICAgINCh0YLRgNCw0L3QsFxuICAgICAgICA8aW5wdXRcbiAgICAgICAgICAgIHR1aVRleHRmaWVsZExlZ2FjeVxuICAgICAgICAgICAgYXV0b2NhcGl0YWxpemU9XCJvZmZcIlxuICAgICAgICAgICAgYXV0b2NvbXBsZXRlPVwib2ZmXCJcbiAgICAgICAgICAgIGF1dG9jb3JyZWN0PVwib2ZmXCJcbiAgICAgICAgICAgIGF1dG9jb21wbGV0ZT1cIm5ldy1wYXNzd29yZFwiXG4gICAgICAgIC8+XG4gICAgICAgIDx0dWktZGF0YS1saXN0LXdyYXBwZXJcbiAgICAgICAgICAgICp0dWlEYXRhTGlzdFxuICAgICAgICAgICAgW2l0ZW1Db250ZW50XT1cInN0cmluZ2lmeSB8IHR1aVN0cmluZ2lmeUNvbnRlbnRcIlxuICAgICAgICAgICAgW2l0ZW1zXT1cImNvdW50cmllcyB8IHR1aUZpbHRlckJ5SW5wdXRcIlxuICAgICAgICA+PC90dWktZGF0YS1saXN0LXdyYXBwZXI+XG4gICAgPC90dWktY29tYm8tYm94PlxuICAgIDx0dWktZXJyb3JcbiAgICAgICAgW2Zvcm1Db250cm9sXT1cImNvdW50cnlDb250cm9sXCJcbiAgICAgICAgW2Vycm9yXT1cIltdIHwgdHVpRmllbGRFcnJvciB8IGFzeW5jXCJcbiAgICA+PC90dWktZXJyb3I+XG48L2xhYmVsPlxuPGRpdiBjbGFzcz1cImdyaWQgaXRlbXMtc3RhcnQgZ2FwLTQgc206Z3JpZC1jb2xzLTJcIj5cbiAgICA8bGFiZWwgdHVpTGFiZWw+XG4gICAgICAgINCg0LXQs9C40L7QvVxuICAgICAgICA8dHVpLWNvbWJvLWJveFxuICAgICAgICAgICAgKnR1aUxldD1cIihyZWdpb25zJCB8IGFzeW5jKSA/PyBbXSBhcyByZWdpb25zXCJcbiAgICAgICAgICAgIFtmb3JtQ29udHJvbF09XCJyZWdpb25Db250cm9sXCJcbiAgICAgICAgICAgIFtzdHJpbmdpZnldPVwic3RyaW5naWZ5XCJcbiAgICAgICAgPlxuICAgICAgICAgICAg0KDQtdCz0LjQvtC9XG4gICAgICAgICAgICA8aW5wdXRcbiAgICAgICAgICAgICAgICB0dWlUZXh0ZmllbGRMZWdhY3lcbiAgICAgICAgICAgICAgICBhdXRvY2FwaXRhbGl6ZT1cIm9mZlwiXG4gICAgICAgICAgICAgICAgYXV0b2NvbXBsZXRlPVwib2ZmXCJcbiAgICAgICAgICAgICAgICBhdXRvY29ycmVjdD1cIm9mZlwiXG4gICAgICAgICAgICAgICAgYXV0b2NvbXBsZXRlPVwibmV3LXBhc3N3b3JkXCJcbiAgICAgICAgICAgIC8+XG4gICAgICAgICAgICA8dHVpLWRhdGEtbGlzdC13cmFwcGVyXG4gICAgICAgICAgICAgICAgKnR1aURhdGFMaXN0XG4gICAgICAgICAgICAgICAgW2l0ZW1Db250ZW50XT1cInN0cmluZ2lmeSB8IHR1aVN0cmluZ2lmeUNvbnRlbnRcIlxuICAgICAgICAgICAgICAgIFtpdGVtc109XCJyZWdpb25zIHwgdHVpRmlsdGVyQnlJbnB1dFwiXG4gICAgICAgICAgICA+PC90dWktZGF0YS1saXN0LXdyYXBwZXI+XG4gICAgICAgIDwvdHVpLWNvbWJvLWJveD5cbiAgICAgICAgPHR1aS1lcnJvclxuICAgICAgICAgICAgW2Zvcm1Db250cm9sXT1cInJlZ2lvbkNvbnRyb2xcIlxuICAgICAgICAgICAgW2Vycm9yXT1cIltdIHwgdHVpRmllbGRFcnJvciB8IGFzeW5jXCJcbiAgICAgICAgPjwvdHVpLWVycm9yPlxuICAgIDwvbGFiZWw+XG4gICAgPGxhYmVsIHR1aUxhYmVsPlxuICAgICAgICDQk9C+0YDQvtC0XG4gICAgICAgIDx0dWktY29tYm8tYm94XG4gICAgICAgICAgICAqdHVpTGV0PVwiKGNpdGllcyQgfCBhc3luYykgPz8gW10gYXMgY2l0aWVzXCJcbiAgICAgICAgICAgIFtmb3JtQ29udHJvbF09XCJjaXR5Q29udHJvbFwiXG4gICAgICAgICAgICBbc3RyaW5naWZ5XT1cInN0cmluZ2lmeVwiXG4gICAgICAgICAgICAobmdNb2RlbENoYW5nZSk9XCJvblNlbGVjdGVkQ2l0eSgkZXZlbnQpXCJcbiAgICAgICAgPlxuICAgICAgICAgICAg0JPQvtGA0L7QtFxuICAgICAgICAgICAgPGlucHV0XG4gICAgICAgICAgICAgICAgdHVpVGV4dGZpZWxkTGVnYWN5XG4gICAgICAgICAgICAgICAgYXV0b2NhcGl0YWxpemU9XCJvZmZcIlxuICAgICAgICAgICAgICAgIGF1dG9jb21wbGV0ZT1cIm9mZlwiXG4gICAgICAgICAgICAgICAgYXV0b2NvcnJlY3Q9XCJvZmZcIlxuICAgICAgICAgICAgICAgIGF1dG9jb21wbGV0ZT1cIm5ldy1wYXNzd29yZFwiXG4gICAgICAgICAgICAvPlxuICAgICAgICAgICAgPHR1aS1kYXRhLWxpc3Qtd3JhcHBlclxuICAgICAgICAgICAgICAgICp0dWlEYXRhTGlzdFxuICAgICAgICAgICAgICAgIFtpdGVtQ29udGVudF09XCJzdHJpbmdpZnkgfCB0dWlTdHJpbmdpZnlDb250ZW50XCJcbiAgICAgICAgICAgICAgICBbaXRlbXNdPVwiY2l0aWVzIHwgdHVpRmlsdGVyQnlJbnB1dFwiXG4gICAgICAgICAgICA+PC90dWktZGF0YS1saXN0LXdyYXBwZXI+XG4gICAgICAgIDwvdHVpLWNvbWJvLWJveD5cbiAgICAgICAgPHR1aS1lcnJvclxuICAgICAgICAgICAgW2Zvcm1Db250cm9sXT1cImNpdHlJZENvbnRyb2xcIlxuICAgICAgICAgICAgW2Vycm9yXT1cIltdIHwgdHVpRmllbGRFcnJvciB8IGFzeW5jXCJcbiAgICAgICAgPjwvdHVpLWVycm9yPlxuICAgICAgICA8dHVpLWVycm9yXG4gICAgICAgICAgICAqbmdJZj1cImNpdHlJZENvbnRyb2wudW50b3VjaGVkXCJcbiAgICAgICAgICAgIFtmb3JtQ29udHJvbF09XCJjaXR5Q29udHJvbFwiXG4gICAgICAgICAgICBbZXJyb3JdPVwiW10gfCB0dWlGaWVsZEVycm9yIHwgYXN5bmNcIlxuICAgICAgICA+PC90dWktZXJyb3I+XG4gICAgPC9sYWJlbD5cbjwvZGl2PlxuIl19
|
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2MtaGVscC1ub3RpZmljYXRpb24uc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2NsaWVudC11aS9zZXJ2aWNlcy9zYy1oZWxwLW5vdGlmaWNhdGlvbi5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ25ELE9BQU8sRUFBRSxpQkFBaUIsRUFBaUIsYUFBYSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDekYsT0FBTyxFQUFFLGVBQWUsRUFBYyxFQUFFLEVBQUUsV0FBVyxFQUFFLFNBQVMsRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUUvRSxPQUFPLEVBQUUsMEJBQTBCLEVBQUUsTUFBTSx5Q0FBeUMsQ0FBQztBQUNyRixPQUFPLEVBQUUsMEJBQTBCLEVBQUUsTUFBTSx5Q0FBeUMsQ0FBQzs7QUFFckY7O0dBRUc7QUFJSCxNQUFNLE9BQU8seUJBQXlCO0lBa0NsQzs7T0FFRztJQUNIO1FBcENBOztXQUVHO1FBQ2MsaUJBQVksR0FBcUMsSUFBSSxlQUFlLENBQWtCLEVBQUUsQ0FBQyxDQUFDO1FBRTNHOztXQUVHO1FBQ2Msb0JBQWUsR0FBRyxNQUFNLENBQUMsaUJBQWlCLENBQUMsQ0FBQztRQUU3RDs7V0FFRztRQUNjL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0YLRjCDRg9Cy0LXQtNC+0LzQu9C10L3QuNC1INC/0L4g0L3QvtC80LXRgNGDINGC0LXQu9C10YTQvtC90LAuXG4gICAgICpcbiAgICAgKiBAcGFyYW0gcGhvbmUg0J3QvtC80LXRgCDRgtC10LvQtdGE0L7QvdCwLlxuICAgICAqL1xuICAgIHB1YmxpYyBoZWxwTm90aWZpY2F0aW9uQnlQaG9uZShwaG9uZTogc3RyaW5nKTogdm9pZCB7XG4gICAgICAgIHRoaXMuY29udGFjdHNTZXJ2aWNlLmdldEhlbHBDb250YWN0cyQoeyBwaG9uZSB9KS5zdWJzY3JpYmUoKGNvbnRhY3RzKSA9PiB7XG4gICAgICAgICAgICB0aGlzLnNldFNob3dDb250YWN0cyguLi5jb250YWN0cyk7XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqINCf0L7QutCw0LfQsNGC0Ywg0YPQstC10LTQvtC80LvQtdC90LjQtSDQv9C+INCw0LTRgNC10YHRgyDRjdC70LXQutGC0YDQvtC90L3QvtC5INC/0L7Rh9GC0YsuXG4gICAgICpcbiAgICAgKiBAcGFyYW0gZW1haWwg0JDQtNGA0LXRgSDRjdC70LXQutGC0YDQvtC90L3QvtC5INC/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
|
}
|
|
@@ -1962,10 +1986,12 @@ class ScAddressesSelectionFieldComponent {
|
|
|
1962
1986
|
.getCityById$(Number(this.cityIdControl.value))
|
|
1963
1987
|
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
1964
1988
|
.subscribe((city) => {
|
|
1965
|
-
this.countryControl.patchValue(city.region.country);
|
|
1966
|
-
this.regionControl.patchValue(city.region);
|
|
1967
|
-
this.cityControl.patchValue(city);
|
|
1968
1989
|
this.canSelectCountry.set(city.region.country.id !== this.russiaCountryId);
|
|
1990
|
+
setTimeout(() => {
|
|
1991
|
+
this.countryControl.patchValue(city.region.country);
|
|
1992
|
+
this.regionControl.patchValue(city.region);
|
|
1993
|
+
this.cityControl.patchValue(city);
|
|
1994
|
+
});
|
|
1969
1995
|
});
|
|
1970
1996
|
}
|
|
1971
1997
|
this.countryControl.valueChanges.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((country) => {
|