@snabcentr/client-core 2.64.1 → 2.64.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/esm2022/auth/services/sc-auth.service.mjs +3 -3
- package/esm2022/auth/services/sc-token.service.mjs +3 -3
- package/esm2022/banners/services/sc-banner.service.mjs +3 -3
- package/esm2022/cart/services/sc-cart.service.mjs +3 -3
- package/esm2022/catalog/services/sc-catalog-filter.service.mjs +3 -3
- package/esm2022/catalog/services/sc-catalog.service.mjs +3 -3
- package/esm2022/catalog/services/sc-favorite.service.mjs +3 -3
- package/esm2022/catalog/services/sc-recommendation.service.mjs +7 -5
- package/esm2022/configurator/services/sc-configurator.service.mjs +3 -3
- package/esm2022/contacts/services/sc-contacts.service.mjs +3 -3
- package/esm2022/contacts/services/sc-feedback.service.mjs +3 -3
- package/esm2022/contacts/services/sc-requisites.service.mjs +3 -3
- package/esm2022/contragent/services/sc-contragent.service.mjs +3 -3
- package/esm2022/converters/services/sc-converters.service.mjs +4 -5
- package/esm2022/delivery-address/services/sc-delivery-address.service.mjs +3 -3
- package/esm2022/files/services/sc-files.service.mjs +3 -3
- package/esm2022/frequently-asked-questions/services/sc-frequently-asked-questions.service.mjs +3 -3
- package/esm2022/guards/catalog-seo.guard.mjs +12 -22
- package/esm2022/guards/sc-auth-as-client.guard.mjs +3 -3
- package/esm2022/helpers/sc-image-helper.mjs +3 -3
- package/esm2022/helpers/sc-units-helper.mjs +3 -3
- package/esm2022/httpInterceptors/sc-auth.interceptor.mjs +3 -3
- package/esm2022/httpInterceptors/sc-cache.interceptor.mjs +3 -3
- package/esm2022/httpInterceptors/sc-convert.interceptor.mjs +3 -3
- package/esm2022/httpInterceptors/sc-date-format.interceptor.mjs +3 -3
- package/esm2022/httpInterceptors/sc-errors.interceptor.mjs +3 -3
- package/esm2022/httpInterceptors/sc-guest.interceptor.mjs +3 -3
- package/esm2022/httpInterceptors/sc-options.interceptor.mjs +3 -3
- package/esm2022/locations/services/sc-location.service.mjs +3 -3
- package/esm2022/news/services/sc-news.service.mjs +3 -3
- package/esm2022/notifications/services/sc-notifications.service.mjs +3 -3
- package/esm2022/order/services/sc-orders.service.mjs +3 -3
- package/esm2022/pagination/services/sc-pagination.service.mjs +3 -3
- package/esm2022/pipes/sc-id-or-slug.pipe.mjs +4 -4
- package/esm2022/pipes/sc-media-image-transformer.pipe.mjs +3 -3
- package/esm2022/questionnaire/services/sc-questionnaire.service.mjs +3 -3
- package/esm2022/reclamation/services/sc-reclamation.service.mjs +3 -3
- package/esm2022/references/services/sc-references.service.mjs +3 -3
- package/esm2022/sc-json-ld/sc-json-ld.component.mjs +3 -3
- package/esm2022/sc-json-ld/sc-json-ld.module.mjs +4 -4
- package/esm2022/search/services/sc-search.service.mjs +3 -3
- package/esm2022/services/sc-seo.service.mjs +5 -5
- package/esm2022/suggestion/services/sc-suggestion.service.mjs +3 -3
- package/esm2022/ui/services/sc-ui.service.mjs +3 -3
- package/esm2022/user/services/sc-user.service.mjs +3 -3
- package/esm2022/user-metrika/services/sc-user-metrika.service.mjs +3 -3
- package/esm2022/utils/phone-fotmatter/sc-phone.service.mjs +3 -3
- package/esm2022/utm/services/sc-utm.service.mjs +3 -3
- package/esm2022/vCard/sc-v-card.service.mjs +3 -3
- package/esm2022/vacancies/services/sc-vacancies.service.mjs +3 -3
- package/esm2022/verification/services/sc-verification.service.mjs +3 -3
- package/esm2022/warehouse/services/sc-warehouse.service.mjs +5 -5
- package/fesm2022/snabcentr-client-core.mjs +171 -180
- package/fesm2022/snabcentr-client-core.mjs.map +1 -1
- package/package.json +8 -8
- package/services/sc-seo.service.d.ts +1 -1
|
@@ -191,10 +191,10 @@ class ScTokenService {
|
|
|
191
191
|
}
|
|
192
192
|
return request.clone();
|
|
193
193
|
}
|
|
194
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
195
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
194
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScTokenService, deps: [{ token: WA_STORAGE_EVENT }, { token: SC_API_KEYS }, { token: StorageService }, { token: SC_GUEST_TOKEN_STORAGE_KEY }, { token: SC_ACCESS_AUTH_TOKEN_STORAGE_KEY }, { token: SC_REFRESH_AUTH_TOKEN_STORAGE_KEY }, { token: IS_BROWSER }, { token: WA_LOCAL_STORAGE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
195
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScTokenService, providedIn: 'root' }); }
|
|
196
196
|
}
|
|
197
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
197
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScTokenService, decorators: [{
|
|
198
198
|
type: Injectable,
|
|
199
199
|
args: [{
|
|
200
200
|
providedIn: 'root',
|
|
@@ -762,10 +762,10 @@ class ScUserMetrikaService {
|
|
|
762
762
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,security/detect-object-injection
|
|
763
763
|
this.additionalParams[name] = value;
|
|
764
764
|
}
|
|
765
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
766
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
765
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScUserMetrikaService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
766
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScUserMetrikaService, providedIn: 'root' }); }
|
|
767
767
|
}
|
|
768
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
768
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScUserMetrikaService, decorators: [{
|
|
769
769
|
type: Injectable,
|
|
770
770
|
args: [{
|
|
771
771
|
providedIn: 'root',
|
|
@@ -898,10 +898,10 @@ class ScAuthService {
|
|
|
898
898
|
this.tokenService.setGuestToken(token);
|
|
899
899
|
}));
|
|
900
900
|
}
|
|
901
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
902
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
901
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScAuthService, deps: [{ token: i1$1.HttpClient }, { token: SC_URLS }, { token: SC_API_KEYS }, { token: ScTokenService }, { token: ScUserMetrikaService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
902
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScAuthService, providedIn: 'root' }); }
|
|
903
903
|
}
|
|
904
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
904
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScAuthService, decorators: [{
|
|
905
905
|
type: Injectable,
|
|
906
906
|
args: [{
|
|
907
907
|
providedIn: 'root',
|
|
@@ -1185,10 +1185,10 @@ class ScUserService {
|
|
|
1185
1185
|
getGuestInfo$() {
|
|
1186
1186
|
return this.http.get(`${this.urls.apiUrl}/guest`).pipe(map((user) => new ScUser(user)));
|
|
1187
1187
|
}
|
|
1188
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
1189
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
1188
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScUserService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1189
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScUserService, providedIn: 'root' }); }
|
|
1190
1190
|
}
|
|
1191
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
1191
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScUserService, decorators: [{
|
|
1192
1192
|
type: Injectable,
|
|
1193
1193
|
args: [{
|
|
1194
1194
|
providedIn: 'root',
|
|
@@ -1222,10 +1222,10 @@ class ScBannerService {
|
|
|
1222
1222
|
*/
|
|
1223
1223
|
this.banners$ = inject(SC_USER_INFO).pipe(switchMap(() => this.http.get(`${this.urls.apiUrl}/banners`)), map((banners) => banners.map((banner) => new ScBanner(banner))), shareReplay(1));
|
|
1224
1224
|
}
|
|
1225
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
1226
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
1225
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScBannerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1226
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScBannerService, providedIn: 'root' }); }
|
|
1227
1227
|
}
|
|
1228
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
1228
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScBannerService, decorators: [{
|
|
1229
1229
|
type: Injectable,
|
|
1230
1230
|
args: [{
|
|
1231
1231
|
providedIn: 'root',
|
|
@@ -1834,7 +1834,6 @@ class ScConvertersService {
|
|
|
1834
1834
|
resultObject = {}) {
|
|
1835
1835
|
// eslint-disable-next-line no-restricted-syntax
|
|
1836
1836
|
for (const key in object) {
|
|
1837
|
-
// eslint-disable-next-line sonarjs/no-useless-call
|
|
1838
1837
|
if (object.hasOwnProperty.call(object, key)) {
|
|
1839
1838
|
if (typeof object[key] === 'object' && object[key] !== null && !(object[key] instanceof Date)) {
|
|
1840
1839
|
this.toSimpleObjectRecursive(object[key], [...keys, key], resultObject);
|
|
@@ -1846,10 +1845,10 @@ class ScConvertersService {
|
|
|
1846
1845
|
}
|
|
1847
1846
|
return resultObject;
|
|
1848
1847
|
}
|
|
1849
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
1850
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
1848
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScConvertersService, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1849
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScConvertersService, providedIn: 'root' }); }
|
|
1851
1850
|
}
|
|
1852
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
1851
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScConvertersService, decorators: [{
|
|
1853
1852
|
type: Injectable,
|
|
1854
1853
|
args: [{
|
|
1855
1854
|
providedIn: 'root',
|
|
@@ -2175,10 +2174,10 @@ class ScReferencesService {
|
|
|
2175
2174
|
getCurrencyById$(currencyId) {
|
|
2176
2175
|
return this.currencies$.pipe(map((types) => types.find((type) => type.id === currencyId)));
|
|
2177
2176
|
}
|
|
2178
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
2179
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
2177
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScReferencesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2178
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScReferencesService, providedIn: 'root' }); }
|
|
2180
2179
|
}
|
|
2181
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
2180
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScReferencesService, decorators: [{
|
|
2182
2181
|
type: Injectable,
|
|
2183
2182
|
args: [{
|
|
2184
2183
|
providedIn: 'root',
|
|
@@ -2374,10 +2373,10 @@ class ScUIService {
|
|
|
2374
2373
|
setSelectedWarehouseId(selectedWarehouseId) {
|
|
2375
2374
|
this.setMetadataByKey('selectedWarehouseId', selectedWarehouseId);
|
|
2376
2375
|
}
|
|
2377
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
2378
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
2376
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScUIService, deps: [{ token: ScUserService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2377
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScUIService, providedIn: 'root' }); }
|
|
2379
2378
|
}
|
|
2380
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
2379
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScUIService, decorators: [{
|
|
2381
2380
|
type: Injectable,
|
|
2382
2381
|
args: [{
|
|
2383
2382
|
providedIn: 'root',
|
|
@@ -2476,7 +2475,7 @@ class ScWarehouseService {
|
|
|
2476
2475
|
.pipe(
|
|
2477
2476
|
// eslint-disable-next-line unicorn/no-negation-in-equality-check
|
|
2478
2477
|
distinctUntilChanged((previous, current) => !previous.id !== !current.id || previous.city === current.city), skip(1), // distinctUntilChanged() всегда выдаёт первое значение, поэтому пропускаем его и реагируем только на изменение.
|
|
2479
|
-
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
2478
|
+
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
2480
2479
|
map((data) => data.warehouses.find((warehouse) => data.region && warehouse.regions?.includes(data.region))?.id || data.warehouses.find((item) => item.isMain)?.id), filter((selectedId) => selectedId !== undefined && this.warehouseIdSelectSubject.value !== selectedId),
|
|
2481
2480
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
2482
2481
|
map((selectedId) => selectedId), tap((selectedId) => {
|
|
@@ -2526,10 +2525,10 @@ class ScWarehouseService {
|
|
|
2526
2525
|
getCurrentWarehouseIdSelect() {
|
|
2527
2526
|
return this.warehouseIdSelectSubject.getValue();
|
|
2528
2527
|
}
|
|
2529
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
2530
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
2528
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScWarehouseService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2529
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScWarehouseService, providedIn: 'root' }); }
|
|
2531
2530
|
}
|
|
2532
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
2531
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScWarehouseService, decorators: [{
|
|
2533
2532
|
type: Injectable,
|
|
2534
2533
|
args: [{
|
|
2535
2534
|
providedIn: 'root',
|
|
@@ -2707,10 +2706,10 @@ class ScCartService {
|
|
|
2707
2706
|
});
|
|
2708
2707
|
}));
|
|
2709
2708
|
}
|
|
2710
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
2711
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
2709
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScCartService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2710
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScCartService, providedIn: 'root' }); }
|
|
2712
2711
|
}
|
|
2713
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
2712
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScCartService, decorators: [{
|
|
2714
2713
|
type: Injectable,
|
|
2715
2714
|
args: [{
|
|
2716
2715
|
providedIn: 'root',
|
|
@@ -2916,10 +2915,10 @@ class ScCatalogFilterService {
|
|
|
2916
2915
|
context: SC_IS_HIDDEN_ERROR_ALERT_HTTP_CONTEXT,
|
|
2917
2916
|
});
|
|
2918
2917
|
}
|
|
2919
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
2920
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
2918
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScCatalogFilterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2919
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScCatalogFilterService, providedIn: 'root' }); }
|
|
2921
2920
|
}
|
|
2922
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
2921
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScCatalogFilterService, decorators: [{
|
|
2923
2922
|
type: Injectable,
|
|
2924
2923
|
args: [{
|
|
2925
2924
|
providedIn: 'root',
|
|
@@ -2947,11 +2946,11 @@ class ScIdOrSlugPipe {
|
|
|
2947
2946
|
transform(value) {
|
|
2948
2947
|
return this.idOrSlug === 'id' ? value.id : value.slug;
|
|
2949
2948
|
}
|
|
2950
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
2951
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.
|
|
2952
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
2949
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScIdOrSlugPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2950
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: ScIdOrSlugPipe, isStandalone: true, name: "scIdOrSlug" }); }
|
|
2951
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScIdOrSlugPipe, providedIn: 'root' }); }
|
|
2953
2952
|
}
|
|
2954
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
2953
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScIdOrSlugPipe, decorators: [{
|
|
2955
2954
|
type: Pipe,
|
|
2956
2955
|
args: [{
|
|
2957
2956
|
name: 'scIdOrSlug',
|
|
@@ -3268,10 +3267,10 @@ class ScCatalogService {
|
|
|
3268
3267
|
getProductNotifyWhenInStock$(productIdOrSlug, data) {
|
|
3269
3268
|
return this.http.post(`${this.urls.apiUrl}/catalog/products/${productIdOrSlug}/stock-notify`, data);
|
|
3270
3269
|
}
|
|
3271
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
3272
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
3270
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScCatalogService, deps: [{ token: i1$1.HttpClient }, { token: SC_URLS }, { token: ScUIService }, { token: ScConvertersService }, { token: SC_CACHE_LIFETIME }, { token: ScUserMetrikaService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3271
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScCatalogService, providedIn: 'root' }); }
|
|
3273
3272
|
}
|
|
3274
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
3273
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScCatalogService, decorators: [{
|
|
3275
3274
|
type: Injectable,
|
|
3276
3275
|
args: [{
|
|
3277
3276
|
providedIn: 'root',
|
|
@@ -3358,10 +3357,10 @@ class ScFavoriteService {
|
|
|
3358
3357
|
deleteProduct$(productId) {
|
|
3359
3358
|
return this.http.delete(`${this.urls.apiUrl}/favorites/products/${productId}`);
|
|
3360
3359
|
}
|
|
3361
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
3362
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
3360
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScFavoriteService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3361
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScFavoriteService, providedIn: 'root' }); }
|
|
3363
3362
|
}
|
|
3364
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
3363
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScFavoriteService, decorators: [{
|
|
3365
3364
|
type: Injectable,
|
|
3366
3365
|
args: [{
|
|
3367
3366
|
providedIn: 'root',
|
|
@@ -3460,18 +3459,20 @@ class ScRecommendationService {
|
|
|
3460
3459
|
* Создает запрос на получение списка рекомендованных товаров для корзины клиента.
|
|
3461
3460
|
*/
|
|
3462
3461
|
getProductsByCart$() {
|
|
3463
|
-
return this.cartService.getCartChange$().pipe(
|
|
3462
|
+
return this.cartService.getCartChange$().pipe(
|
|
3463
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-conversion
|
|
3464
|
+
map((cart) => cart.items.map((item) => Number(item.product.id))),
|
|
3464
3465
|
// Отфильтровываем повторения. Они возникнут если было изменено количество товара без удаления\добавления новых товаров.
|
|
3465
3466
|
// eslint-disable-next-line sonarjs/no-misleading-array-reverse
|
|
3466
3467
|
distinctUntilChanged((previous, current) => JSON.stringify(previous.sort((a, b) => a - b)) === JSON.stringify(current.sort((a, b) => a - b))), switchMap((productIds) => this.getProductsByProductIds$(productIds).pipe(startWith(null))));
|
|
3467
3468
|
}
|
|
3468
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
3469
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
3469
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScRecommendationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3470
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScRecommendationService, providedIn: 'root' }); }
|
|
3470
3471
|
}
|
|
3471
3472
|
__decorate([
|
|
3472
3473
|
tuiPure
|
|
3473
3474
|
], ScRecommendationService.prototype, "getProductsByCart$", null);
|
|
3474
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
3475
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScRecommendationService, decorators: [{
|
|
3475
3476
|
type: Injectable,
|
|
3476
3477
|
args: [{
|
|
3477
3478
|
providedIn: 'root',
|
|
@@ -3615,10 +3616,10 @@ class ScConfiguratorService {
|
|
|
3615
3616
|
params: this.convertersService.toHttpParams({ ...params }, { nonNullable: true }),
|
|
3616
3617
|
});
|
|
3617
3618
|
}
|
|
3618
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
3619
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
3619
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScConfiguratorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3620
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScConfiguratorService, providedIn: 'root' }); }
|
|
3620
3621
|
}
|
|
3621
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
3622
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScConfiguratorService, decorators: [{
|
|
3622
3623
|
type: Injectable,
|
|
3623
3624
|
args: [{
|
|
3624
3625
|
providedIn: 'root',
|
|
@@ -3789,10 +3790,10 @@ class ScContactsService {
|
|
|
3789
3790
|
params: params,
|
|
3790
3791
|
});
|
|
3791
3792
|
}
|
|
3792
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
3793
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
3793
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScContactsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3794
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScContactsService, providedIn: 'root' }); }
|
|
3794
3795
|
}
|
|
3795
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
3796
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScContactsService, decorators: [{
|
|
3796
3797
|
type: Injectable,
|
|
3797
3798
|
args: [{
|
|
3798
3799
|
providedIn: 'root',
|
|
@@ -3937,10 +3938,10 @@ class ScSearchService {
|
|
|
3937
3938
|
getSearchTermChange$() {
|
|
3938
3939
|
return this.searchTerm$.asObservable();
|
|
3939
3940
|
}
|
|
3940
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
3941
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
3941
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScSearchService, deps: [{ token: i1$1.HttpClient }, { token: SC_URLS }, { token: ScUserMetrikaService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3942
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScSearchService, providedIn: 'root' }); }
|
|
3942
3943
|
}
|
|
3943
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
3944
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScSearchService, decorators: [{
|
|
3944
3945
|
type: Injectable,
|
|
3945
3946
|
args: [{
|
|
3946
3947
|
providedIn: 'root',
|
|
@@ -4148,10 +4149,10 @@ class ScUTMService {
|
|
|
4148
4149
|
this.storageService.setItem('utmTimestamp', JSON.stringify(Date.now()));
|
|
4149
4150
|
}
|
|
4150
4151
|
}
|
|
4151
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
4152
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
4152
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScUTMService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4153
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScUTMService, providedIn: 'root' }); }
|
|
4153
4154
|
}
|
|
4154
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
4155
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScUTMService, decorators: [{
|
|
4155
4156
|
type: Injectable,
|
|
4156
4157
|
args: [{
|
|
4157
4158
|
providedIn: 'root',
|
|
@@ -4207,10 +4208,10 @@ class ScFeedbackService {
|
|
|
4207
4208
|
});
|
|
4208
4209
|
}));
|
|
4209
4210
|
}
|
|
4210
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
4211
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
4211
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScFeedbackService, deps: [{ token: i1$1.HttpClient }, { token: ScUserMetrikaService }, { token: SC_FEEDBACK_API }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4212
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScFeedbackService, providedIn: 'root' }); }
|
|
4212
4213
|
}
|
|
4213
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
4214
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScFeedbackService, decorators: [{
|
|
4214
4215
|
type: Injectable,
|
|
4215
4216
|
args: [{
|
|
4216
4217
|
providedIn: 'root',
|
|
@@ -4341,10 +4342,10 @@ class ScRequisitesService {
|
|
|
4341
4342
|
getManagerById(managerId) {
|
|
4342
4343
|
return this.idManagerMap.get(managerId);
|
|
4343
4344
|
}
|
|
4344
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
4345
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
4345
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScRequisitesService, deps: [{ token: i1$1.HttpClient }, { token: SC_URLS }, { token: ScAuthService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4346
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScRequisitesService, providedIn: 'root' }); }
|
|
4346
4347
|
}
|
|
4347
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
4348
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScRequisitesService, decorators: [{
|
|
4348
4349
|
type: Injectable,
|
|
4349
4350
|
args: [{
|
|
4350
4351
|
providedIn: 'root',
|
|
@@ -4500,10 +4501,10 @@ class ScContragentService {
|
|
|
4500
4501
|
.delete(`${this.urls.apiUrl}/user/contragents/${contragentId}/bank-accounts/${bankAccountId}`)
|
|
4501
4502
|
.pipe(tap(() => this.contragentBankAccountsMap.get(contragentId)?.update()));
|
|
4502
4503
|
}
|
|
4503
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
4504
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
4504
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScContragentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4505
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScContragentService, providedIn: 'root' }); }
|
|
4505
4506
|
}
|
|
4506
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
4507
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScContragentService, decorators: [{
|
|
4507
4508
|
type: Injectable,
|
|
4508
4509
|
args: [{
|
|
4509
4510
|
providedIn: 'root',
|
|
@@ -4608,10 +4609,10 @@ class ScDeliveryAddressService {
|
|
|
4608
4609
|
deleteDeliveryAddressContact$(addressId, contactId) {
|
|
4609
4610
|
return this.contactsService.deleteContact$(contactId).pipe(tap(() => this.contactsService.deliveryAddressContactsMap.get(addressId)?.update()));
|
|
4610
4611
|
}
|
|
4611
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
4612
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
4612
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScDeliveryAddressService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4613
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScDeliveryAddressService, providedIn: 'root' }); }
|
|
4613
4614
|
}
|
|
4614
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
4615
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScDeliveryAddressService, decorators: [{
|
|
4615
4616
|
type: Injectable,
|
|
4616
4617
|
args: [{
|
|
4617
4618
|
providedIn: 'root',
|
|
@@ -4651,10 +4652,10 @@ class ScFrequentlyAskedQuestionsService {
|
|
|
4651
4652
|
context: SC_IS_HIDDEN_ERROR_ALERT_HTTP_CONTEXT,
|
|
4652
4653
|
});
|
|
4653
4654
|
}
|
|
4654
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
4655
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
4655
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScFrequentlyAskedQuestionsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4656
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScFrequentlyAskedQuestionsService, providedIn: 'root' }); }
|
|
4656
4657
|
}
|
|
4657
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
4658
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScFrequentlyAskedQuestionsService, decorators: [{
|
|
4658
4659
|
type: Injectable,
|
|
4659
4660
|
args: [{
|
|
4660
4661
|
providedIn: 'root',
|
|
@@ -4806,10 +4807,10 @@ class ScFilesService {
|
|
|
4806
4807
|
break;
|
|
4807
4808
|
}
|
|
4808
4809
|
}
|
|
4809
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
4810
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
4810
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScFilesService, deps: [{ token: i1$1.HttpClient }, { token: SC_URLS }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4811
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScFilesService, providedIn: 'root' }); }
|
|
4811
4812
|
}
|
|
4812
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
4813
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScFilesService, decorators: [{
|
|
4813
4814
|
type: Injectable,
|
|
4814
4815
|
args: [{
|
|
4815
4816
|
providedIn: 'root',
|
|
@@ -4839,10 +4840,10 @@ class ScMediaImageTransformerPipe {
|
|
|
4839
4840
|
}
|
|
4840
4841
|
return image.startsWith('/') ? `${this.urls.imgServerUrl}${image}` : `${this.urls.imgServerUrl}/${image}`;
|
|
4841
4842
|
}
|
|
4842
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
4843
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.
|
|
4843
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScMediaImageTransformerPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4844
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: ScMediaImageTransformerPipe, isStandalone: true, name: "scMediaImageTransformer" }); }
|
|
4844
4845
|
}
|
|
4845
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
4846
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScMediaImageTransformerPipe, decorators: [{
|
|
4846
4847
|
type: Pipe,
|
|
4847
4848
|
args: [{
|
|
4848
4849
|
name: 'scMediaImageTransformer',
|
|
@@ -5010,7 +5011,7 @@ class ScSeoService {
|
|
|
5010
5011
|
* @param defaultDescription Описание страницы используемое в случае отсутствия описания в SEO-ресурсе.
|
|
5011
5012
|
* @param defaultKeyWords Ключевые слова страницы используемые в случае отсутствия ключевых слов в SEO-ресурсе.
|
|
5012
5013
|
*/
|
|
5013
|
-
|
|
5014
|
+
generateSeoResource(seo, defaultTitle, defaultDescription = this.defaultSeo.description, defaultKeyWords = this.defaultSeo.keywords) {
|
|
5014
5015
|
return {
|
|
5015
5016
|
title: seo?.title ?? defaultTitle,
|
|
5016
5017
|
description: seo?.description ?? defaultDescription,
|
|
@@ -5103,30 +5104,16 @@ class ScSeoService {
|
|
|
5103
5104
|
setShareType(type) {
|
|
5104
5105
|
this.setOpenGraphMetaByProperty('og:type', type);
|
|
5105
5106
|
}
|
|
5106
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
5107
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
5107
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScSeoService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5108
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScSeoService, providedIn: 'root' }); }
|
|
5108
5109
|
}
|
|
5109
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
5110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScSeoService, decorators: [{
|
|
5110
5111
|
type: Injectable,
|
|
5111
5112
|
args: [{
|
|
5112
5113
|
providedIn: 'root',
|
|
5113
5114
|
}]
|
|
5114
5115
|
}], ctorParameters: () => [] });
|
|
5115
5116
|
|
|
5116
|
-
/**
|
|
5117
|
-
* Устанавливает SEO-теги для страниц каталога.
|
|
5118
|
-
*
|
|
5119
|
-
* @param seoService Сервис для работы с SEO.
|
|
5120
|
-
* @param name Название страницы.
|
|
5121
|
-
* @param seo SEO-теги.
|
|
5122
|
-
* @param image Ссылка на основное изображение.
|
|
5123
|
-
*/
|
|
5124
|
-
const setSeoTags = (seoService, name, seo, image) => {
|
|
5125
|
-
const companyInfo = inject(SC_COMPANY_INFO);
|
|
5126
|
-
const catalogMeta = inject(SC_CATALOG_PAGE_META);
|
|
5127
|
-
const seoResource = seoService.getGenerateSeoResource(seo, `${name} - Купить в ${companyInfo.name}`, `${name} - Купить по выгодным ценам в ${companyInfo.name}`, `${name}, ${catalogMeta.keywords}`);
|
|
5128
|
-
seoService.setMetaTagsFromResource(seoResource, image);
|
|
5129
|
-
};
|
|
5130
5117
|
/**
|
|
5131
5118
|
* Создает SEO-guard для указанного сервиса и метода получения данных.
|
|
5132
5119
|
*
|
|
@@ -5137,23 +5124,27 @@ const setSeoTags = (seoService, name, seo, image) => {
|
|
|
5137
5124
|
const createSeoGuard = (getDataFunction, setCanonical = false) => {
|
|
5138
5125
|
// eslint-disable-next-line sonarjs/function-return-type
|
|
5139
5126
|
return ({ paramMap }, state) => {
|
|
5140
|
-
const seoService = inject(ScSeoService);
|
|
5141
|
-
const mediaImageTransformerPipe = inject(ScMediaImageTransformerPipe);
|
|
5142
5127
|
const recId = paramMap.get('productIdOrSlug') ?? paramMap.get('categoryIdOrSlug') ?? paramMap.get('categorySlug');
|
|
5143
5128
|
if (!recId) {
|
|
5144
5129
|
return false;
|
|
5145
5130
|
}
|
|
5131
|
+
const seoService = inject(ScSeoService);
|
|
5132
|
+
const companyInfo = inject(SC_COMPANY_INFO);
|
|
5133
|
+
const catalogMeta = inject(SC_CATALOG_PAGE_META);
|
|
5134
|
+
const mediaImageTransformerPipe = inject(ScMediaImageTransformerPipe);
|
|
5135
|
+
const idOrSlugInRoute = inject(SC_ID_OR_SLUG_IN_ROUTE);
|
|
5136
|
+
const { siteUrl } = inject(SC_URLS);
|
|
5146
5137
|
return getDataFunction(recId).pipe(filter$1(tuiIsPresent), tap$1(({ id, name, seo, image, slug }) => {
|
|
5147
|
-
|
|
5148
|
-
const
|
|
5149
|
-
|
|
5150
|
-
//
|
|
5138
|
+
// Формируем и устанавливаем метатеги страницы.
|
|
5139
|
+
const seoResource = seoService.generateSeoResource(seo, `${name} - Купить в ${companyInfo.name}`, `${name} - Купить по выгодным ценам в ${companyInfo.name}`, `${name}, ${catalogMeta.keywords}`);
|
|
5140
|
+
seoService.setMetaTagsFromResource(seoResource, mediaImageTransformerPipe.transform(image, true));
|
|
5141
|
+
// В том случае, если используется slug для формирования ссылок, то необходимо сформировать кононическую
|
|
5142
|
+
// ссылку на страницу в которой используется slug (а не id).
|
|
5151
5143
|
if (setCanonical && idOrSlugInRoute === 'slug' && id && slug) {
|
|
5152
5144
|
const canonicalPath = state.url
|
|
5153
5145
|
.split('/')
|
|
5154
5146
|
.map((segment) => (segment === id.toString() ? slug : segment))
|
|
5155
5147
|
.join('/');
|
|
5156
|
-
const { siteUrl } = inject(SC_URLS);
|
|
5157
5148
|
seoService.setCanonicalLink(`${siteUrl}${canonicalPath}`);
|
|
5158
5149
|
}
|
|
5159
5150
|
}), map$1(TUI_TRUE_HANDLER), catchError$1(() => of(true)), takeUntilDestroyed());
|
|
@@ -5212,10 +5203,10 @@ class ScAuthAsClientGuard {
|
|
|
5212
5203
|
},
|
|
5213
5204
|
})), first(), map(() => this.router.createUrlTree(this.options.urlTree)));
|
|
5214
5205
|
}
|
|
5215
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
5216
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
5206
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScAuthAsClientGuard, deps: [{ token: ScAuthService }, { token: i2.Router }, { token: SC_AUTH_AS_CLIENT_OPTIONS }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5207
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScAuthAsClientGuard }); }
|
|
5217
5208
|
}
|
|
5218
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
5209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScAuthAsClientGuard, decorators: [{
|
|
5219
5210
|
type: Injectable
|
|
5220
5211
|
}], ctorParameters: () => [{ type: ScAuthService }, { type: i2.Router }, { type: undefined, decorators: [{
|
|
5221
5212
|
type: Inject,
|
|
@@ -5318,10 +5309,10 @@ class ScImageHelper {
|
|
|
5318
5309
|
isImg(format) {
|
|
5319
5310
|
return ['jpeg', 'jpg', 'png', 'gif', 'bmp', 'tiff', 'webp'].includes(format);
|
|
5320
5311
|
}
|
|
5321
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
5322
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
5312
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScImageHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5313
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScImageHelper, providedIn: 'root' }); }
|
|
5323
5314
|
}
|
|
5324
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
5315
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScImageHelper, decorators: [{
|
|
5325
5316
|
type: Injectable,
|
|
5326
5317
|
args: [{
|
|
5327
5318
|
providedIn: 'root',
|
|
@@ -5364,10 +5355,10 @@ class ScUnitsHelper {
|
|
|
5364
5355
|
productStepForValidator(product) {
|
|
5365
5356
|
return product.ignoreMinCountCheck ? 1 : this.productMultiplicity(product);
|
|
5366
5357
|
}
|
|
5367
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
5368
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
5358
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScUnitsHelper, deps: [{ token: SC_LINEAR_VALUES_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5359
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScUnitsHelper, providedIn: 'root' }); }
|
|
5369
5360
|
}
|
|
5370
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
5361
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScUnitsHelper, decorators: [{
|
|
5371
5362
|
type: Injectable,
|
|
5372
5363
|
args: [{
|
|
5373
5364
|
providedIn: 'root',
|
|
@@ -5432,10 +5423,10 @@ class ScAuthInterceptor {
|
|
|
5432
5423
|
}
|
|
5433
5424
|
return next.handle(request);
|
|
5434
5425
|
}
|
|
5435
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
5436
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
5426
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScAuthInterceptor, deps: [{ token: ScTokenService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5427
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScAuthInterceptor }); }
|
|
5437
5428
|
}
|
|
5438
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
5429
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScAuthInterceptor, decorators: [{
|
|
5439
5430
|
type: Injectable
|
|
5440
5431
|
}], ctorParameters: () => [{ type: ScTokenService }] });
|
|
5441
5432
|
|
|
@@ -5483,10 +5474,10 @@ class ScCacheInterceptor {
|
|
|
5483
5474
|
}
|
|
5484
5475
|
return next.handle(request);
|
|
5485
5476
|
}
|
|
5486
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
5487
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
5477
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScCacheInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5478
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScCacheInterceptor }); }
|
|
5488
5479
|
}
|
|
5489
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
5480
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScCacheInterceptor, decorators: [{
|
|
5490
5481
|
type: Injectable
|
|
5491
5482
|
}] });
|
|
5492
5483
|
|
|
@@ -5538,10 +5529,10 @@ class ScConvertInterceptor {
|
|
|
5538
5529
|
}, {});
|
|
5539
5530
|
return new HttpParams().appendAll(newObje);
|
|
5540
5531
|
}
|
|
5541
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
5542
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
5532
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScConvertInterceptor, deps: [{ token: SC_URLS }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5533
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScConvertInterceptor }); }
|
|
5543
5534
|
}
|
|
5544
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
5535
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScConvertInterceptor, decorators: [{
|
|
5545
5536
|
type: Injectable
|
|
5546
5537
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
5547
5538
|
type: Inject,
|
|
@@ -5621,10 +5612,10 @@ class ScErrorsInterceptor {
|
|
|
5621
5612
|
this.isTokenRefreshing$.next(false);
|
|
5622
5613
|
}), takeUntil(this.authService.getAuthChange().pipe(filter((state) => !state))));
|
|
5623
5614
|
}
|
|
5624
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
5625
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
5615
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScErrorsInterceptor, deps: [{ token: SC_API_KEYS }, { token: ScTokenService }, { token: ScAuthService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5616
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScErrorsInterceptor }); }
|
|
5626
5617
|
}
|
|
5627
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
5618
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScErrorsInterceptor, decorators: [{
|
|
5628
5619
|
type: Injectable
|
|
5629
5620
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
5630
5621
|
type: Inject,
|
|
@@ -5659,10 +5650,10 @@ class ScOptionsInterceptor {
|
|
|
5659
5650
|
}
|
|
5660
5651
|
return next.handle(request);
|
|
5661
5652
|
}
|
|
5662
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
5663
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
5653
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScOptionsInterceptor, deps: [{ token: SC_RELEASE }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5654
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScOptionsInterceptor }); }
|
|
5664
5655
|
}
|
|
5665
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
5656
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScOptionsInterceptor, decorators: [{
|
|
5666
5657
|
type: Injectable
|
|
5667
5658
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
5668
5659
|
type: Inject,
|
|
@@ -5695,10 +5686,10 @@ class ScGuestInterceptor {
|
|
|
5695
5686
|
}
|
|
5696
5687
|
return this.user$.pipe(first(), switchMap((user) => (user.isGuest ? next.handle(request.clone({ params: request.params.append(this.guestParameterName, true) })) : next.handle(request))));
|
|
5697
5688
|
}
|
|
5698
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
5699
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
5689
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScGuestInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5690
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScGuestInterceptor }); }
|
|
5700
5691
|
}
|
|
5701
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
5692
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScGuestInterceptor, decorators: [{
|
|
5702
5693
|
type: Injectable
|
|
5703
5694
|
}] });
|
|
5704
5695
|
|
|
@@ -5769,10 +5760,10 @@ class ScDateFormatInterceptor {
|
|
|
5769
5760
|
return match;
|
|
5770
5761
|
});
|
|
5771
5762
|
}
|
|
5772
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
5773
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
5763
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScDateFormatInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5764
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScDateFormatInterceptor }); }
|
|
5774
5765
|
}
|
|
5775
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
5766
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScDateFormatInterceptor, decorators: [{
|
|
5776
5767
|
type: Injectable
|
|
5777
5768
|
}] });
|
|
5778
5769
|
|
|
@@ -6004,8 +5995,8 @@ class ScLocationsService {
|
|
|
6004
5995
|
getCityById$(cityId) {
|
|
6005
5996
|
return this.referencesService.getReferenceById$(ScReferenceName.cityWithRegionAndCountry, cityId);
|
|
6006
5997
|
}
|
|
6007
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
6008
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
5998
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScLocationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5999
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScLocationsService, providedIn: 'root' }); }
|
|
6009
6000
|
}
|
|
6010
6001
|
__decorate([
|
|
6011
6002
|
tuiPure
|
|
@@ -6031,7 +6022,7 @@ __decorate([
|
|
|
6031
6022
|
__decorate([
|
|
6032
6023
|
tuiPure
|
|
6033
6024
|
], ScLocationsService.prototype, "getCityById$", null);
|
|
6034
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
6025
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScLocationsService, decorators: [{
|
|
6035
6026
|
type: Injectable,
|
|
6036
6027
|
args: [{
|
|
6037
6028
|
providedIn: 'root',
|
|
@@ -6120,10 +6111,10 @@ class ScNewsService {
|
|
|
6120
6111
|
getLastNewsList$() {
|
|
6121
6112
|
return this.lastNewsList$;
|
|
6122
6113
|
}
|
|
6123
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
6124
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
6114
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScNewsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6115
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScNewsService, providedIn: 'root' }); }
|
|
6125
6116
|
}
|
|
6126
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
6117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScNewsService, decorators: [{
|
|
6127
6118
|
type: Injectable,
|
|
6128
6119
|
args: [{
|
|
6129
6120
|
providedIn: 'root',
|
|
@@ -6329,10 +6320,10 @@ class ScNotificationsService {
|
|
|
6329
6320
|
setNotificationsChange(notifications) {
|
|
6330
6321
|
this.notifications$.next(notifications);
|
|
6331
6322
|
}
|
|
6332
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
6333
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
6323
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScNotificationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6324
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScNotificationsService, providedIn: 'root' }); }
|
|
6334
6325
|
}
|
|
6335
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
6326
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScNotificationsService, decorators: [{
|
|
6336
6327
|
type: Injectable,
|
|
6337
6328
|
args: [{
|
|
6338
6329
|
providedIn: 'root',
|
|
@@ -6777,10 +6768,10 @@ class ScOrdersService {
|
|
|
6777
6768
|
return new ScDeliveryCost(ordersPaginateDTO, formattedDate);
|
|
6778
6769
|
}));
|
|
6779
6770
|
}
|
|
6780
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
6781
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
6771
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScOrdersService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6772
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScOrdersService, providedIn: 'root' }); }
|
|
6782
6773
|
}
|
|
6783
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
6774
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScOrdersService, decorators: [{
|
|
6784
6775
|
type: Injectable,
|
|
6785
6776
|
args: [{
|
|
6786
6777
|
providedIn: 'root',
|
|
@@ -6929,10 +6920,10 @@ class ScPaginationService {
|
|
|
6929
6920
|
const { page, perPage, ...others } = value;
|
|
6930
6921
|
return others;
|
|
6931
6922
|
}
|
|
6932
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
6933
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
6923
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScPaginationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6924
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScPaginationService }); }
|
|
6934
6925
|
}
|
|
6935
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
6926
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScPaginationService, decorators: [{
|
|
6936
6927
|
type: Injectable
|
|
6937
6928
|
}], ctorParameters: () => [] });
|
|
6938
6929
|
|
|
@@ -7024,10 +7015,10 @@ class ScQuestionnaireService {
|
|
|
7024
7015
|
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
7025
7016
|
return this.http.get(`${this.urls.apiUrl}/questionnaires/${questionnaire.id}/statuses/${status}`);
|
|
7026
7017
|
}
|
|
7027
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
7028
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
7018
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScQuestionnaireService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7019
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScQuestionnaireService, providedIn: 'root' }); }
|
|
7029
7020
|
}
|
|
7030
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
7021
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScQuestionnaireService, decorators: [{
|
|
7031
7022
|
type: Injectable,
|
|
7032
7023
|
args: [{
|
|
7033
7024
|
providedIn: 'root',
|
|
@@ -7099,10 +7090,10 @@ class ScReclamationService {
|
|
|
7099
7090
|
deleteReclamation$(reclamationId) {
|
|
7100
7091
|
return this.http.delete(`${this.urls.apiUrl}/reclamations/${reclamationId}`);
|
|
7101
7092
|
}
|
|
7102
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
7103
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
7093
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScReclamationService, deps: [{ token: i1$1.HttpClient }, { token: SC_URLS }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7094
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScReclamationService, providedIn: 'root' }); }
|
|
7104
7095
|
}
|
|
7105
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
7096
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScReclamationService, decorators: [{
|
|
7106
7097
|
type: Injectable,
|
|
7107
7098
|
args: [{
|
|
7108
7099
|
providedIn: 'root',
|
|
@@ -7141,10 +7132,10 @@ class ScJsonLdComponent {
|
|
|
7141
7132
|
// eslint-disable-next-line sonarjs/no-nested-template-literals
|
|
7142
7133
|
`<script type="application/ld+json">${json ? JSON.stringify(json, null, 2).replaceAll('</script>', String.raw `<\/script>`) : ''}</script>`);
|
|
7143
7134
|
}
|
|
7144
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
7145
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.
|
|
7135
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScJsonLdComponent, deps: [{ token: i1$2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7136
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: ScJsonLdComponent, selector: "sc-json-ld", inputs: { json: "json" }, host: { properties: { "innerHTML": "this.jsonLD" } }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7146
7137
|
}
|
|
7147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
7138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScJsonLdComponent, decorators: [{
|
|
7148
7139
|
type: Component,
|
|
7149
7140
|
args: [{
|
|
7150
7141
|
selector: 'sc-json-ld',
|
|
@@ -7162,11 +7153,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImpo
|
|
|
7162
7153
|
* Модуль структурированных данных.
|
|
7163
7154
|
*/
|
|
7164
7155
|
class ScJsonLdModule {
|
|
7165
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
7166
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.
|
|
7167
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.
|
|
7156
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScJsonLdModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7157
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: ScJsonLdModule, declarations: [ScJsonLdComponent], exports: [ScJsonLdComponent] }); }
|
|
7158
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScJsonLdModule }); }
|
|
7168
7159
|
}
|
|
7169
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
7160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScJsonLdModule, decorators: [{
|
|
7170
7161
|
type: NgModule,
|
|
7171
7162
|
args: [{
|
|
7172
7163
|
declarations: [ScJsonLdComponent],
|
|
@@ -7226,10 +7217,10 @@ class ScSuggestionService {
|
|
|
7226
7217
|
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
7227
7218
|
return this.http.get(`${this.urls.apiUrl}/suggestions/${[type]}`, { params: { query: query } });
|
|
7228
7219
|
}
|
|
7229
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
7230
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
7220
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScSuggestionService, deps: [{ token: i1$1.HttpClient }, { token: SC_URLS }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7221
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScSuggestionService, providedIn: 'root' }); }
|
|
7231
7222
|
}
|
|
7232
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
7223
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScSuggestionService, decorators: [{
|
|
7233
7224
|
type: Injectable,
|
|
7234
7225
|
args: [{
|
|
7235
7226
|
providedIn: 'root',
|
|
@@ -7290,10 +7281,10 @@ class ScPhoneService {
|
|
|
7290
7281
|
}
|
|
7291
7282
|
return value;
|
|
7292
7283
|
}
|
|
7293
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
7294
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
7284
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScPhoneService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7285
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScPhoneService, providedIn: 'root' }); }
|
|
7295
7286
|
}
|
|
7296
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
7287
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScPhoneService, decorators: [{
|
|
7297
7288
|
type: Injectable,
|
|
7298
7289
|
args: [{
|
|
7299
7290
|
providedIn: 'root',
|
|
@@ -7371,10 +7362,10 @@ class ScVacanciesService {
|
|
|
7371
7362
|
})
|
|
7372
7363
|
.pipe(map((result) => new ScVacanciesList(result)));
|
|
7373
7364
|
}
|
|
7374
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
7375
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
7365
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScVacanciesService, deps: [{ token: i1$1.HttpClient }, { token: SC_VACANCIES_DATA_SOURCE }, { token: SC_CACHE_LIFETIME }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7366
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScVacanciesService, providedIn: 'root' }); }
|
|
7376
7367
|
}
|
|
7377
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
7368
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScVacanciesService, decorators: [{
|
|
7378
7369
|
type: Injectable,
|
|
7379
7370
|
args: [{
|
|
7380
7371
|
providedIn: 'root',
|
|
@@ -7469,10 +7460,10 @@ class ScVCardService {
|
|
|
7469
7460
|
downloadVCard(data) {
|
|
7470
7461
|
this.windowReference.open(this.windowReference.URL.createObjectURL(this.getVCardBlob(data)));
|
|
7471
7462
|
}
|
|
7472
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
7473
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
7463
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScVCardService, deps: [{ token: SC_URLS }, { token: WA_WINDOW }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7464
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScVCardService, providedIn: 'root' }); }
|
|
7474
7465
|
}
|
|
7475
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
7466
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScVCardService, decorators: [{
|
|
7476
7467
|
type: Injectable,
|
|
7477
7468
|
args: [{
|
|
7478
7469
|
providedIn: 'root',
|
|
@@ -7536,10 +7527,10 @@ class ScVerificationService {
|
|
|
7536
7527
|
params: { phone: phone },
|
|
7537
7528
|
});
|
|
7538
7529
|
}
|
|
7539
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
7540
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
7530
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScVerificationService, deps: [{ token: i1$1.HttpClient }, { token: SC_URLS }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7531
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScVerificationService, providedIn: 'root' }); }
|
|
7541
7532
|
}
|
|
7542
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
7533
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScVerificationService, decorators: [{
|
|
7543
7534
|
type: Injectable,
|
|
7544
7535
|
args: [{
|
|
7545
7536
|
providedIn: 'root',
|