@infrab4a/connect-angular 5.5.0-alpha.2 → 5.5.0-alpha.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/angular-connect.module.d.ts +33 -0
- package/angular-elastic-search.module.d.ts +9 -0
- package/angular-firebase-auth.module.d.ts +10 -0
- package/angular-firestore.module.d.ts +16 -0
- package/angular-hasura-graphql.module.d.ts +14 -0
- package/angular-vertex-search.module.d.ts +9 -0
- package/consts/backend-url.const.d.ts +1 -0
- package/consts/category-structure.d.ts +1 -0
- package/consts/default-shop.const.d.ts +1 -0
- package/consts/es-config.const.d.ts +1 -0
- package/consts/firebase-const.d.ts +4 -0
- package/consts/hasura-options.const.d.ts +1 -0
- package/consts/index.d.ts +8 -0
- package/consts/persistence.const.d.ts +1 -0
- package/consts/storage-base-url.const.d.ts +1 -0
- package/consts/vertex-config.const.d.ts +1 -0
- package/esm2022/angular-connect.module.mjs +288 -0
- package/esm2022/angular-elastic-search.module.mjs +34 -0
- package/esm2022/angular-firebase-auth.module.mjs +140 -0
- package/esm2022/angular-firestore.module.mjs +538 -0
- package/esm2022/angular-hasura-graphql.module.mjs +333 -0
- package/esm2022/angular-vertex-search.module.mjs +34 -0
- package/esm2022/consts/backend-url.const.mjs +2 -0
- package/esm2022/consts/category-structure.mjs +2 -0
- package/esm2022/consts/default-shop.const.mjs +2 -0
- package/esm2022/consts/es-config.const.mjs +2 -0
- package/esm2022/consts/firebase-const.mjs +5 -0
- package/esm2022/consts/hasura-options.const.mjs +2 -0
- package/esm2022/consts/index.mjs +9 -0
- package/esm2022/consts/persistence.const.mjs +2 -0
- package/esm2022/consts/storage-base-url.const.mjs +2 -0
- package/esm2022/consts/vertex-config.const.mjs +2 -0
- package/esm2022/helpers/index.mjs +2 -0
- package/esm2022/helpers/mobile-operation-system-checker.helper.mjs +7 -0
- package/esm2022/index.mjs +7 -0
- package/esm2022/infrab4a-connect-angular.mjs +5 -0
- package/esm2022/interfaces/catalog-strategies.interface.mjs +2 -0
- package/esm2022/interfaces/category-facades.interface.mjs +2 -0
- package/esm2022/interfaces/index.mjs +3 -0
- package/esm2022/persistence/cookie-data-persistence.mjs +22 -0
- package/esm2022/persistence/data-persistence.mjs +2 -0
- package/esm2022/persistence/index.mjs +3 -0
- package/esm2022/services/auth.service.mjs +37 -0
- package/esm2022/services/cart/cart-services.facade.mjs +21 -0
- package/esm2022/services/cart/index.mjs +2 -0
- package/esm2022/services/cart.service.mjs +73 -0
- package/esm2022/services/catalog/adapters/category-structure.adapter.mjs +2 -0
- package/esm2022/services/catalog/adapters/index.mjs +4 -0
- package/esm2022/services/catalog/adapters/new-category-structure.adapter.mjs +43 -0
- package/esm2022/services/catalog/adapters/old-category-structure.adapter.mjs +23 -0
- package/esm2022/services/catalog/catalog.service.mjs +111 -0
- package/esm2022/services/catalog/category.service.mjs +42 -0
- package/esm2022/services/catalog/context/catalog-search.context.mjs +40 -0
- package/esm2022/services/catalog/enums/index.mjs +2 -0
- package/esm2022/services/catalog/enums/product-sorts.enum.mjs +11 -0
- package/esm2022/services/catalog/facades/catalog-service.facade.mjs +32 -0
- package/esm2022/services/catalog/facades/catalog-strategies.facade.mjs +17 -0
- package/esm2022/services/catalog/facades/category-repository.facade.mjs +20 -0
- package/esm2022/services/catalog/facades/category-service.facade.mjs +30 -0
- package/esm2022/services/catalog/facades/index.mjs +6 -0
- package/esm2022/services/catalog/facades/product-catalog.facade.mjs +21 -0
- package/esm2022/services/catalog/helpers/brand-manager.helper.mjs +57 -0
- package/esm2022/services/catalog/helpers/catalog-filter.helper.mjs +44 -0
- package/esm2022/services/catalog/helpers/catalog-sort.helper.mjs +52 -0
- package/esm2022/services/catalog/helpers/index.mjs +5 -0
- package/esm2022/services/catalog/helpers/product-fields.helper.mjs +40 -0
- package/esm2022/services/catalog/index.mjs +8 -0
- package/esm2022/services/catalog/models/category-with-tree.model.mjs +10 -0
- package/esm2022/services/catalog/models/index.mjs +2 -0
- package/esm2022/services/catalog/services/catalog-helpers.service.mjs +33 -0
- package/esm2022/services/catalog/services/catalog-operations.facade.mjs +26 -0
- package/esm2022/services/catalog/services/catalog-repository.service.mjs +25 -0
- package/esm2022/services/catalog/services/index.mjs +5 -0
- package/esm2022/services/catalog/services/product-management.facade.mjs +25 -0
- package/esm2022/services/catalog/strategies/category-search.strategy.mjs +133 -0
- package/esm2022/services/catalog/strategies/index.mjs +4 -0
- package/esm2022/services/catalog/strategies/profile-search.strategy.mjs +42 -0
- package/esm2022/services/catalog/strategies/term-search.strategy.mjs +123 -0
- package/esm2022/services/catalog/strategies/types/strategy-params.type.mjs +2 -0
- package/esm2022/services/catalog/types/fetch-products-options.type.mjs +2 -0
- package/esm2022/services/catalog/types/fetch-products-params.type.mjs +2 -0
- package/esm2022/services/catalog/types/fetch-products-response.type.mjs +2 -0
- package/esm2022/services/catalog/types/index.mjs +6 -0
- package/esm2022/services/catalog/types/method-params.type.mjs +2 -0
- package/esm2022/services/catalog/types/product-sort.type.mjs +2 -0
- package/esm2022/services/catalog/wishlist.service.mjs +254 -0
- package/esm2022/services/checkout/checkout-dependencies.facade.mjs +20 -0
- package/esm2022/services/checkout/checkout-repositories.facade.mjs +20 -0
- package/esm2022/services/checkout/index.mjs +3 -0
- package/esm2022/services/checkout-subscription.service.mjs +55 -0
- package/esm2022/services/checkout.service.mjs +106 -0
- package/esm2022/services/coupon/coupon-repositories.facade.mjs +24 -0
- package/esm2022/services/coupon/index.mjs +2 -0
- package/esm2022/services/coupon/types/coupon-params.type.mjs +2 -0
- package/esm2022/services/coupon.service.mjs +248 -0
- package/esm2022/services/helpers/index.mjs +2 -0
- package/esm2022/services/helpers/util.helper.mjs +18 -0
- package/esm2022/services/home-shop/home-shop-repositories.facade.mjs +24 -0
- package/esm2022/services/home-shop/index.mjs +2 -0
- package/esm2022/services/home-shop.service.mjs +119 -0
- package/esm2022/services/index.mjs +11 -0
- package/esm2022/services/order-product-review.service.mjs +110 -0
- package/esm2022/services/order.service.mjs +30 -0
- package/esm2022/services/shared/configuration.facade.mjs +29 -0
- package/esm2022/services/shared/index.mjs +2 -0
- package/esm2022/services/types/index.mjs +5 -0
- package/esm2022/services/types/pending-product-review.type.mjs +2 -0
- package/esm2022/services/types/product-review-create.type.mjs +2 -0
- package/esm2022/services/types/required-checkout-data.type.mjs +2 -0
- package/esm2022/services/types/required-checkout-subscription-data.type.mjs +2 -0
- package/esm2022/types/firebase-app-config.type.mjs +2 -0
- package/esm2022/types/index.mjs +2 -0
- package/fesm2022/infrab4a-connect-angular.mjs +246 -286
- package/fesm2022/infrab4a-connect-angular.mjs.map +1 -1
- package/helpers/index.d.ts +1 -0
- package/helpers/mobile-operation-system-checker.helper.d.ts +3 -0
- package/index.d.ts +6 -755
- package/interfaces/catalog-strategies.interface.d.ts +31 -0
- package/interfaces/category-facades.interface.d.ts +6 -0
- package/interfaces/index.d.ts +2 -0
- package/package.json +7 -5
- package/persistence/cookie-data-persistence.d.ts +10 -0
- package/persistence/data-persistence.d.ts +6 -0
- package/persistence/index.d.ts +2 -0
- package/services/auth.service.d.ts +18 -0
- package/services/cart/cart-services.facade.d.ts +12 -0
- package/services/cart/index.d.ts +1 -0
- package/services/cart.service.d.ts +26 -0
- package/services/catalog/adapters/category-structure.adapter.d.ts +4 -0
- package/services/catalog/adapters/index.d.ts +3 -0
- package/services/catalog/adapters/new-category-structure.adapter.d.ts +12 -0
- package/services/catalog/adapters/old-category-structure.adapter.d.ts +10 -0
- package/services/catalog/catalog.service.d.ts +24 -0
- package/services/catalog/category.service.d.ts +23 -0
- package/services/catalog/context/catalog-search.context.d.ts +14 -0
- package/services/catalog/enums/index.d.ts +1 -0
- package/services/catalog/enums/product-sorts.enum.d.ts +9 -0
- package/services/catalog/facades/catalog-service.facade.d.ts +15 -0
- package/services/catalog/facades/catalog-strategies.facade.d.ts +10 -0
- package/services/catalog/facades/category-repository.facade.d.ts +9 -0
- package/services/catalog/facades/category-service.facade.d.ts +15 -0
- package/services/catalog/facades/index.d.ts +5 -0
- package/services/catalog/facades/product-catalog.facade.d.ts +10 -0
- package/services/catalog/helpers/brand-manager.helper.d.ts +14 -0
- package/services/catalog/helpers/catalog-filter.helper.d.ts +8 -0
- package/services/catalog/helpers/catalog-sort.helper.d.ts +7 -0
- package/services/catalog/helpers/index.d.ts +4 -0
- package/services/catalog/helpers/product-fields.helper.d.ts +7 -0
- package/services/catalog/index.d.ts +7 -0
- package/services/catalog/models/category-with-tree.model.d.ts +4 -0
- package/services/catalog/models/index.d.ts +1 -0
- package/services/catalog/services/catalog-helpers.service.d.ts +17 -0
- package/services/catalog/services/catalog-operations.facade.d.ts +13 -0
- package/services/catalog/services/catalog-repository.service.d.ts +12 -0
- package/services/catalog/services/index.d.ts +4 -0
- package/services/catalog/services/product-management.facade.d.ts +12 -0
- package/services/catalog/strategies/category-search.strategy.d.ts +19 -0
- package/services/catalog/strategies/index.d.ts +3 -0
- package/services/catalog/strategies/profile-search.strategy.d.ts +14 -0
- package/services/catalog/strategies/term-search.strategy.d.ts +20 -0
- package/services/catalog/strategies/types/strategy-params.type.d.ts +58 -0
- package/services/catalog/types/fetch-products-options.type.d.ts +8 -0
- package/services/catalog/types/fetch-products-params.type.d.ts +25 -0
- package/services/catalog/types/fetch-products-response.type.d.ts +19 -0
- package/services/catalog/types/index.d.ts +5 -0
- package/services/catalog/types/method-params.type.d.ts +17 -0
- package/services/catalog/types/product-sort.type.d.ts +2 -0
- package/services/catalog/wishlist.service.d.ts +59 -0
- package/services/checkout/checkout-dependencies.facade.d.ts +10 -0
- package/services/checkout/checkout-repositories.facade.d.ts +9 -0
- package/services/checkout/index.d.ts +2 -0
- package/services/checkout-subscription.service.d.ts +19 -0
- package/services/checkout.service.d.ts +30 -0
- package/services/coupon/coupon-repositories.facade.d.ts +10 -0
- package/services/coupon/index.d.ts +1 -0
- package/services/coupon/types/coupon-params.type.d.ts +13 -0
- package/services/coupon.service.d.ts +36 -0
- package/services/helpers/index.d.ts +1 -0
- package/services/helpers/util.helper.d.ts +3 -0
- package/services/home-shop/home-shop-repositories.facade.d.ts +10 -0
- package/services/home-shop/index.d.ts +1 -0
- package/services/home-shop.service.d.ts +26 -0
- package/services/index.d.ts +10 -0
- package/services/order-product-review.service.d.ts +16 -0
- package/services/order.service.d.ts +13 -0
- package/services/shared/configuration.facade.d.ts +12 -0
- package/services/shared/index.d.ts +1 -0
- package/services/types/index.d.ts +4 -0
- package/services/types/pending-product-review.type.d.ts +12 -0
- package/services/types/product-review-create.type.d.ts +14 -0
- package/services/types/required-checkout-data.type.d.ts +2 -0
- package/services/types/required-checkout-subscription-data.type.d.ts +2 -0
- package/types/firebase-app-config.type.d.ts +1 -0
- package/types/index.d.ts +1 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { NgModule, InjectionToken,
|
|
3
|
-
import { FirebaseApp, getApp, initializeApp } from '@angular/fire/app';
|
|
4
|
-
import { initializeAppCheck } from '@angular/fire/app-check';
|
|
5
|
-
import {
|
|
2
|
+
import { NgModule, InjectionToken, PLATFORM_ID, Injectable, Inject } from '@angular/core';
|
|
3
|
+
import { FirebaseApp, provideFirebaseApp, getApp, initializeApp } from '@angular/fire/app';
|
|
4
|
+
import { provideAppCheck, initializeAppCheck } from '@angular/fire/app-check';
|
|
5
|
+
import { provideStorage, Storage, getStorage } from '@angular/fire/storage';
|
|
6
6
|
import * as i3 from '@infrab4a/connect';
|
|
7
7
|
import { ProductsIndex, AxiosAdapter, Authentication, AuthenticationFirebaseAuthService, Register, RegisterFirebaseAuthService, SignOut, RecoveryPassword, ConnectFirestoreService, CategoryFirestoreRepository, ProductFirestoreRepository, ProductVariantFirestoreRepository, UserBeautyProfileFirestoreRepository, Buy2WinFirestoreRepository, CheckoutFirestoreRepository, CheckoutSubscriptionFirestoreRepository, CouponFirestoreRepository, CampaignHashtagFirestoreRepository, CampaignDashboardFirestoreRepository, SubscriptionEditionFirestoreRepository, GroupFirestoreRepository, HomeFirestoreRepository, LeadFirestoreRepository, LegacyOrderFirestoreRepository, ShopMenuFirestoreRepository, OrderFirestoreRepository, PaymentFirestoreRepository, ShopSettingsFirestoreRepository, SubscriptionPaymentFirestoreRepository, SubscriptionPlanFirestoreRepository, SubscriptionProductFirestoreRepository, SubscriptionFirestoreRepository, UserFirestoreRepository, UserAddressFirestoreRepository, UserPaymentMethodFirestoreRepository, SubscriptionMaterializationFirestoreRepository, SubscriptionSummaryFirestoreRepository, OrderBlockedFirestoreRepository, LogFirestoreRepository, SequenceFirestoreRepository, CategoryHasuraGraphQLRepository, ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository, ProductReviewHasuraGraphQLRepository, VariantHasuraGraphQLRepository, ProductStockNotificationHasuraGraphQLRepository, FilterOptionHasuraGraphQLRepository, FilterHasuraGraphQLRepository, CategoryCollectionChildrenHasuraGraphQLRepository, CategoryProductHasuraGraphQLRepository, WishlistHasuraGraphQLRepository, ProductErrorsHasuraGraphQLRepository, ProductsVertexSearch, VertexAxiosAdapter, isNil, NotFoundError, Checkout, pick, LineItem, Where, isEmpty, Shops, set, InvalidArgumentError, RoundProductPricesHelper, Category, WishlistLogType, PersonTypes, Wishlist, CheckoutTypes, CouponTypes, Exclusivities, OrderStatus, CheckoutSubscription, Product, RequiredArgumentError, add, ProductReview, Order, UpdateUserImage, FirebaseFileUploaderService } from '@infrab4a/connect';
|
|
8
8
|
import * as i1 from '@angular/fire/auth';
|
|
9
|
-
import { Auth, initializeAuth, indexedDBLocalPersistence, browserLocalPersistence, browserSessionPersistence, getAuth, getIdToken, authState } from '@angular/fire/auth';
|
|
9
|
+
import { provideAuth, Auth, initializeAuth, indexedDBLocalPersistence, browserLocalPersistence, browserSessionPersistence, getAuth, getIdToken, authState } from '@angular/fire/auth';
|
|
10
10
|
import { isPlatformServer, isPlatformBrowser } from '@angular/common';
|
|
11
11
|
import * as i1$2 from '@angular/fire/firestore';
|
|
12
|
-
import { Firestore, initializeFirestore, memoryLocalCache, docSnapshots, doc } from '@angular/fire/firestore';
|
|
12
|
+
import { provideFirestore, Firestore, initializeFirestore, memoryLocalCache, docSnapshots, doc } from '@angular/fire/firestore';
|
|
13
13
|
import cookie from 'js-cookie';
|
|
14
14
|
import { of, from, combineLatest, throwError, Subject, forkJoin } from 'rxjs';
|
|
15
15
|
import { map, mergeMap, catchError, concatMap, tap } from 'rxjs/operators';
|
|
@@ -26,9 +26,9 @@ class AngularElasticSeachModule {
|
|
|
26
26
|
providers: [{ provide: ES_CONFIG, useValue: options }],
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
30
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
31
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
29
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularElasticSeachModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
30
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: AngularElasticSeachModule }); }
|
|
31
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularElasticSeachModule, providers: [
|
|
32
32
|
{
|
|
33
33
|
provide: ProductsIndex,
|
|
34
34
|
useFactory: (configuration) => new ProductsIndex(new AxiosAdapter(configuration)),
|
|
@@ -36,7 +36,7 @@ class AngularElasticSeachModule {
|
|
|
36
36
|
},
|
|
37
37
|
] }); }
|
|
38
38
|
}
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularElasticSeachModule, decorators: [{
|
|
40
40
|
type: NgModule,
|
|
41
41
|
args: [{
|
|
42
42
|
providers: [
|
|
@@ -75,26 +75,22 @@ class AngularFirebaseAuthModule {
|
|
|
75
75
|
],
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
79
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
80
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
81
|
-
{
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
deps: [Injector],
|
|
97
|
-
},
|
|
78
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularFirebaseAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
79
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: AngularFirebaseAuthModule }); }
|
|
80
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularFirebaseAuthModule, providers: [
|
|
81
|
+
provideAuth((injector) => {
|
|
82
|
+
const app = injector.get(FirebaseApp);
|
|
83
|
+
try {
|
|
84
|
+
return initializeAuth(app, {
|
|
85
|
+
persistence: [indexedDBLocalPersistence, browserLocalPersistence, browserSessionPersistence],
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
catch (error) {
|
|
89
|
+
if (error instanceof Error)
|
|
90
|
+
console.error('Error initializing auth', error.message);
|
|
91
|
+
return getAuth(app);
|
|
92
|
+
}
|
|
93
|
+
}),
|
|
98
94
|
{
|
|
99
95
|
provide: 'Authentication',
|
|
100
96
|
useFactory: (authenticationService, userRepository) => {
|
|
@@ -139,28 +135,24 @@ class AngularFirebaseAuthModule {
|
|
|
139
135
|
},
|
|
140
136
|
] }); }
|
|
141
137
|
}
|
|
142
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
|
|
143
139
|
type: NgModule,
|
|
144
140
|
args: [{
|
|
145
141
|
imports: [],
|
|
146
142
|
providers: [
|
|
147
|
-
{
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
}
|
|
161
|
-
},
|
|
162
|
-
deps: [Injector],
|
|
163
|
-
},
|
|
143
|
+
provideAuth((injector) => {
|
|
144
|
+
const app = injector.get(FirebaseApp);
|
|
145
|
+
try {
|
|
146
|
+
return initializeAuth(app, {
|
|
147
|
+
persistence: [indexedDBLocalPersistence, browserLocalPersistence, browserSessionPersistence],
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
catch (error) {
|
|
151
|
+
if (error instanceof Error)
|
|
152
|
+
console.error('Error initializing auth', error.message);
|
|
153
|
+
return getAuth(app);
|
|
154
|
+
}
|
|
155
|
+
}),
|
|
164
156
|
{
|
|
165
157
|
provide: 'Authentication',
|
|
166
158
|
useFactory: (authenticationService, userRepository) => {
|
|
@@ -225,26 +217,22 @@ class AngularFirestoreModule {
|
|
|
225
217
|
],
|
|
226
218
|
};
|
|
227
219
|
}
|
|
228
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
229
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
230
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
231
|
-
{
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
if (isPlatformServer(platformId) || !MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
236
|
-
return initializeFirestore(injector.get(FirebaseApp), {
|
|
237
|
-
ignoreUndefinedProperties: true,
|
|
238
|
-
});
|
|
239
|
-
const firestore = initializeFirestore(injector.get(FirebaseApp), {
|
|
240
|
-
experimentalForceLongPolling: true,
|
|
220
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
221
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule] }); }
|
|
222
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularFirestoreModule, providers: [
|
|
223
|
+
provideFirestore((injector) => {
|
|
224
|
+
const platformId = injector.get(PLATFORM_ID);
|
|
225
|
+
if (isPlatformServer(platformId) || !MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
226
|
+
return initializeFirestore(injector.get(FirebaseApp), {
|
|
241
227
|
ignoreUndefinedProperties: true,
|
|
242
|
-
localCache: memoryLocalCache(),
|
|
243
228
|
});
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
229
|
+
const firestore = initializeFirestore(injector.get(FirebaseApp), {
|
|
230
|
+
experimentalForceLongPolling: true,
|
|
231
|
+
ignoreUndefinedProperties: true,
|
|
232
|
+
localCache: memoryLocalCache(),
|
|
233
|
+
});
|
|
234
|
+
return firestore;
|
|
235
|
+
}),
|
|
248
236
|
{
|
|
249
237
|
provide: 'FirestoreOptions',
|
|
250
238
|
useFactory: (firestore, platformId) => ({
|
|
@@ -486,28 +474,24 @@ class AngularFirestoreModule {
|
|
|
486
474
|
},
|
|
487
475
|
], imports: [AngularElasticSeachModule] }); }
|
|
488
476
|
}
|
|
489
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
477
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularFirestoreModule, decorators: [{
|
|
490
478
|
type: NgModule,
|
|
491
479
|
args: [{
|
|
492
480
|
imports: [AngularElasticSeachModule],
|
|
493
481
|
providers: [
|
|
494
|
-
{
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
if (isPlatformServer(platformId) || !MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
499
|
-
return initializeFirestore(injector.get(FirebaseApp), {
|
|
500
|
-
ignoreUndefinedProperties: true,
|
|
501
|
-
});
|
|
502
|
-
const firestore = initializeFirestore(injector.get(FirebaseApp), {
|
|
503
|
-
experimentalForceLongPolling: true,
|
|
482
|
+
provideFirestore((injector) => {
|
|
483
|
+
const platformId = injector.get(PLATFORM_ID);
|
|
484
|
+
if (isPlatformServer(platformId) || !MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
485
|
+
return initializeFirestore(injector.get(FirebaseApp), {
|
|
504
486
|
ignoreUndefinedProperties: true,
|
|
505
|
-
localCache: memoryLocalCache(),
|
|
506
487
|
});
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
488
|
+
const firestore = initializeFirestore(injector.get(FirebaseApp), {
|
|
489
|
+
experimentalForceLongPolling: true,
|
|
490
|
+
ignoreUndefinedProperties: true,
|
|
491
|
+
localCache: memoryLocalCache(),
|
|
492
|
+
});
|
|
493
|
+
return firestore;
|
|
494
|
+
}),
|
|
511
495
|
{
|
|
512
496
|
provide: 'FirestoreOptions',
|
|
513
497
|
useFactory: (firestore, platformId) => ({
|
|
@@ -758,9 +742,9 @@ class AngularHasuraGraphQLModule {
|
|
|
758
742
|
providers: [{ provide: HASURA_OPTIONS, useValue: options }],
|
|
759
743
|
};
|
|
760
744
|
}
|
|
761
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
762
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
763
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
745
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularHasuraGraphQLModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
746
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: AngularHasuraGraphQLModule }); }
|
|
747
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularHasuraGraphQLModule, providers: [
|
|
764
748
|
{
|
|
765
749
|
provide: 'HasuraConfig',
|
|
766
750
|
useFactory: (options, platformId) => ({
|
|
@@ -917,7 +901,7 @@ class AngularHasuraGraphQLModule {
|
|
|
917
901
|
},
|
|
918
902
|
] }); }
|
|
919
903
|
}
|
|
920
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
904
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularHasuraGraphQLModule, decorators: [{
|
|
921
905
|
type: NgModule,
|
|
922
906
|
args: [{
|
|
923
907
|
providers: [
|
|
@@ -1086,9 +1070,9 @@ class AngularVertexSeachModule {
|
|
|
1086
1070
|
providers: [{ provide: VERTEX_CONFIG, useValue: options }],
|
|
1087
1071
|
};
|
|
1088
1072
|
}
|
|
1089
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1090
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1091
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1073
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularVertexSeachModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1074
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: AngularVertexSeachModule }); }
|
|
1075
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularVertexSeachModule, providers: [
|
|
1092
1076
|
{
|
|
1093
1077
|
provide: ProductsVertexSearch,
|
|
1094
1078
|
useFactory: (configuration) => new ProductsVertexSearch(new VertexAxiosAdapter(configuration)),
|
|
@@ -1096,7 +1080,7 @@ class AngularVertexSeachModule {
|
|
|
1096
1080
|
},
|
|
1097
1081
|
] }); }
|
|
1098
1082
|
}
|
|
1099
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1083
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularVertexSeachModule, decorators: [{
|
|
1100
1084
|
type: NgModule,
|
|
1101
1085
|
args: [{
|
|
1102
1086
|
providers: [
|
|
@@ -1121,10 +1105,10 @@ class CookieDataPersistence {
|
|
|
1121
1105
|
set(key, value) {
|
|
1122
1106
|
return from(cookie.set(key, value)).pipe(map(() => { }));
|
|
1123
1107
|
}
|
|
1124
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1125
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1108
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CookieDataPersistence, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1109
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CookieDataPersistence }); }
|
|
1126
1110
|
}
|
|
1127
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1111
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CookieDataPersistence, decorators: [{
|
|
1128
1112
|
type: Injectable
|
|
1129
1113
|
}] });
|
|
1130
1114
|
|
|
@@ -1149,10 +1133,10 @@ class AuthService {
|
|
|
1149
1133
|
getFireUser() {
|
|
1150
1134
|
return authState(this.angularFireAuth).pipe(catchError(() => of(null)));
|
|
1151
1135
|
}
|
|
1152
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1153
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1136
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AuthService, deps: [{ token: i1.Auth }, { token: 'UserRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1137
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AuthService }); }
|
|
1154
1138
|
}
|
|
1155
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AuthService, decorators: [{
|
|
1156
1140
|
type: Injectable
|
|
1157
1141
|
}], ctorParameters: () => [{ type: i1.Auth }, { type: undefined, decorators: [{
|
|
1158
1142
|
type: Inject,
|
|
@@ -1164,10 +1148,10 @@ class CheckoutRepositoriesFacade {
|
|
|
1164
1148
|
this.checkoutRepository = checkoutRepository;
|
|
1165
1149
|
this.userRepository = userRepository;
|
|
1166
1150
|
}
|
|
1167
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1168
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1151
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CheckoutRepositoriesFacade, deps: [{ token: 'CheckoutRepository' }, { token: 'UserRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1152
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CheckoutRepositoriesFacade }); }
|
|
1169
1153
|
}
|
|
1170
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CheckoutRepositoriesFacade, decorators: [{
|
|
1171
1155
|
type: Injectable
|
|
1172
1156
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1173
1157
|
type: Inject,
|
|
@@ -1182,10 +1166,10 @@ class CheckoutDependenciesFacade {
|
|
|
1182
1166
|
this.dataPersistence = dataPersistence;
|
|
1183
1167
|
this.httpClient = httpClient;
|
|
1184
1168
|
}
|
|
1185
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1186
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1169
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CheckoutDependenciesFacade, deps: [{ token: PERSISTENCE_PROVIDER }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1170
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CheckoutDependenciesFacade }); }
|
|
1187
1171
|
}
|
|
1188
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1172
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CheckoutDependenciesFacade, decorators: [{
|
|
1189
1173
|
type: Injectable
|
|
1190
1174
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1191
1175
|
type: Inject,
|
|
@@ -1203,10 +1187,10 @@ class ConfigurationFacade {
|
|
|
1203
1187
|
getProjectId() {
|
|
1204
1188
|
return this.firebaseOptions.projectId;
|
|
1205
1189
|
}
|
|
1206
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1207
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1190
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ConfigurationFacade, deps: [{ token: DEFAULT_SHOP }, { token: FIREBASE_OPTIONS }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1191
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ConfigurationFacade }); }
|
|
1208
1192
|
}
|
|
1209
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ConfigurationFacade, decorators: [{
|
|
1210
1194
|
type: Injectable
|
|
1211
1195
|
}], ctorParameters: () => [{ type: i3.Shops, decorators: [{
|
|
1212
1196
|
type: Inject,
|
|
@@ -1306,10 +1290,10 @@ class CheckoutService {
|
|
|
1306
1290
|
await this.dependenciesFacade.dataPersistence.set('checkoutId', checkout.id).toPromise();
|
|
1307
1291
|
return checkout;
|
|
1308
1292
|
}
|
|
1309
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1310
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1293
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CheckoutService, deps: [{ token: CheckoutRepositoriesFacade }, { token: CheckoutDependenciesFacade }, { token: ConfigurationFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1294
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CheckoutService }); }
|
|
1311
1295
|
}
|
|
1312
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1296
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CheckoutService, decorators: [{
|
|
1313
1297
|
type: Injectable
|
|
1314
1298
|
}], ctorParameters: () => [{ type: CheckoutRepositoriesFacade }, { type: CheckoutDependenciesFacade }, { type: ConfigurationFacade }] });
|
|
1315
1299
|
|
|
@@ -1319,10 +1303,10 @@ class CartServicesFacade {
|
|
|
1319
1303
|
this.checkoutService = checkoutService;
|
|
1320
1304
|
this.httpClient = httpClient;
|
|
1321
1305
|
}
|
|
1322
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1323
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1306
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CartServicesFacade, deps: [{ token: AuthService }, { token: CheckoutService }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1307
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CartServicesFacade }); }
|
|
1324
1308
|
}
|
|
1325
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1309
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CartServicesFacade, decorators: [{
|
|
1326
1310
|
type: Injectable
|
|
1327
1311
|
}], ctorParameters: () => [{ type: AuthService }, { type: CheckoutService }, { type: i1$1.HttpClient }] });
|
|
1328
1312
|
|
|
@@ -1383,10 +1367,10 @@ class CartService {
|
|
|
1383
1367
|
buildCartFromCheckout(checkoutData) {
|
|
1384
1368
|
return this.servicesFacade.checkoutService.getCheckout(checkoutData).pipe(map((checkout) => checkout.lineItems), concatMap((lineItems) => of(this.generateCartObject(lineItems))));
|
|
1385
1369
|
}
|
|
1386
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1387
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1370
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CartService, deps: [{ token: CartServicesFacade }, { token: ConfigurationFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1371
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CartService }); }
|
|
1388
1372
|
}
|
|
1389
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1373
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CartService, decorators: [{
|
|
1390
1374
|
type: Injectable
|
|
1391
1375
|
}], ctorParameters: () => [{ type: CartServicesFacade }, { type: ConfigurationFacade }] });
|
|
1392
1376
|
|
|
@@ -1420,10 +1404,10 @@ class NewCategoryStructureAdapter {
|
|
|
1420
1404
|
category.brandCategory;
|
|
1421
1405
|
return collectionCategory ? this.categoryRepository.get({ id: category.id }) : category;
|
|
1422
1406
|
}
|
|
1423
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1424
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1407
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NewCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1408
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NewCategoryStructureAdapter }); }
|
|
1425
1409
|
}
|
|
1426
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1410
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NewCategoryStructureAdapter, decorators: [{
|
|
1427
1411
|
type: Injectable
|
|
1428
1412
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1429
1413
|
type: Inject,
|
|
@@ -1440,10 +1424,10 @@ class OldCategoryStructureAdapter {
|
|
|
1440
1424
|
: await this.categoryRepository.get({ id: category.id }).then((categoryFound) => categoryFound.products);
|
|
1441
1425
|
return { id: { operator: Where.IN, value: productsIds } };
|
|
1442
1426
|
}
|
|
1443
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1444
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1427
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: OldCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1428
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: OldCategoryStructureAdapter }); }
|
|
1445
1429
|
}
|
|
1446
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1430
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: OldCategoryStructureAdapter, decorators: [{
|
|
1447
1431
|
type: Injectable
|
|
1448
1432
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1449
1433
|
type: Inject,
|
|
@@ -1611,10 +1595,10 @@ class CategorySearchStrategy {
|
|
|
1611
1595
|
distinct: totalResult.distinct,
|
|
1612
1596
|
};
|
|
1613
1597
|
}
|
|
1614
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1615
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1598
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CategorySearchStrategy, deps: [{ token: CatalogRepositoryService }, { token: CatalogHelpersService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1599
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CategorySearchStrategy }); }
|
|
1616
1600
|
}
|
|
1617
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1601
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CategorySearchStrategy, decorators: [{
|
|
1618
1602
|
type: Injectable
|
|
1619
1603
|
}], ctorParameters: () => [{ type: CatalogRepositoryService }, { type: CatalogHelpersService }] });
|
|
1620
1604
|
|
|
@@ -1648,10 +1632,10 @@ class ProfileSearchStrategy {
|
|
|
1648
1632
|
};
|
|
1649
1633
|
return productCatalog.productRepository.findCatalog(repoParams, mainGender || (shop === Shops.MENSMARKET ? 'male' : 'female'), optionsCache);
|
|
1650
1634
|
}
|
|
1651
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1652
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1635
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ProfileSearchStrategy, deps: [{ token: CatalogRepositoryService }, { token: CatalogHelpersService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1636
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ProfileSearchStrategy }); }
|
|
1653
1637
|
}
|
|
1654
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1638
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ProfileSearchStrategy, decorators: [{
|
|
1655
1639
|
type: Injectable
|
|
1656
1640
|
}], ctorParameters: () => [{ type: CatalogRepositoryService }, { type: CatalogHelpersService }] });
|
|
1657
1641
|
|
|
@@ -1766,10 +1750,10 @@ class TermSearchStrategy {
|
|
|
1766
1750
|
.search(term, 999, shop === Shops.GLAMSHOP ? 'female' : 'male')
|
|
1767
1751
|
.then((products) => [...new Set(products.map((product) => product.id))]));
|
|
1768
1752
|
}
|
|
1769
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1770
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1753
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TermSearchStrategy, deps: [{ token: CatalogRepositoryService }, { token: CatalogHelpersService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1754
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TermSearchStrategy }); }
|
|
1771
1755
|
}
|
|
1772
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1756
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TermSearchStrategy, decorators: [{
|
|
1773
1757
|
type: Injectable
|
|
1774
1758
|
}], ctorParameters: () => [{ type: CatalogRepositoryService }, { type: CatalogHelpersService }] });
|
|
1775
1759
|
|
|
@@ -1779,10 +1763,10 @@ class CatalogStrategiesFacade {
|
|
|
1779
1763
|
this.termStrategy = termStrategy;
|
|
1780
1764
|
this.profileStrategy = profileStrategy;
|
|
1781
1765
|
}
|
|
1782
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1783
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1766
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogStrategiesFacade, deps: [{ token: CategorySearchStrategy }, { token: TermSearchStrategy }, { token: ProfileSearchStrategy }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1767
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogStrategiesFacade }); }
|
|
1784
1768
|
}
|
|
1785
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1769
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogStrategiesFacade, decorators: [{
|
|
1786
1770
|
type: Injectable
|
|
1787
1771
|
}], ctorParameters: () => [{ type: CategorySearchStrategy }, { type: TermSearchStrategy }, { type: ProfileSearchStrategy }] });
|
|
1788
1772
|
|
|
@@ -1797,10 +1781,10 @@ class CatalogServiceFacade {
|
|
|
1797
1781
|
getCatalogService() {
|
|
1798
1782
|
return this.catalogService;
|
|
1799
1783
|
}
|
|
1800
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1801
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1784
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogServiceFacade, deps: [{ token: CatalogHelpersService }, { token: CatalogStrategiesFacade }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1785
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogServiceFacade }); }
|
|
1802
1786
|
}
|
|
1803
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1787
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogServiceFacade, decorators: [{
|
|
1804
1788
|
type: Injectable
|
|
1805
1789
|
}], ctorParameters: () => [{ type: CatalogHelpersService }, { type: CatalogStrategiesFacade }, { type: i3.Shops, decorators: [{
|
|
1806
1790
|
type: Inject,
|
|
@@ -1812,10 +1796,10 @@ class CategoryRepositoryFacade {
|
|
|
1812
1796
|
this.categoryRepository = categoryRepository;
|
|
1813
1797
|
this.categoryFilterRepository = categoryFilterRepository;
|
|
1814
1798
|
}
|
|
1815
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1816
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1799
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CategoryRepositoryFacade, deps: [{ token: 'CategoryRepository' }, { token: 'CategoryFilterRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1800
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CategoryRepositoryFacade }); }
|
|
1817
1801
|
}
|
|
1818
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1802
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CategoryRepositoryFacade, decorators: [{
|
|
1819
1803
|
type: Injectable
|
|
1820
1804
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1821
1805
|
type: Inject,
|
|
@@ -1850,10 +1834,10 @@ class CategoryService {
|
|
|
1850
1834
|
.find({ filters: { categoryId: +category.id } }, optionsCache)
|
|
1851
1835
|
.then(({ data }) => data.map((categoryFilter) => categoryFilter.filter));
|
|
1852
1836
|
}
|
|
1853
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1854
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1837
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CategoryService, deps: [{ token: CategoryRepositoryFacade }, { token: ProductCatalogFacade }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1838
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CategoryService }); }
|
|
1855
1839
|
}
|
|
1856
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1840
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CategoryService, decorators: [{
|
|
1857
1841
|
type: Injectable
|
|
1858
1842
|
}], ctorParameters: () => [{ type: CategoryRepositoryFacade }, { type: ProductCatalogFacade }, { type: i3.Shops, decorators: [{
|
|
1859
1843
|
type: Inject,
|
|
@@ -1865,10 +1849,10 @@ class ProductCatalogFacade {
|
|
|
1865
1849
|
this.productRepository = productRepository;
|
|
1866
1850
|
this.categoryStructureAdapter = categoryStructureAdapter;
|
|
1867
1851
|
}
|
|
1868
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1869
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1852
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ProductCatalogFacade, deps: [{ token: 'ProductRepository' }, { token: CATEGORY_STRUCTURE }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1853
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ProductCatalogFacade }); }
|
|
1870
1854
|
}
|
|
1871
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1855
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ProductCatalogFacade, decorators: [{
|
|
1872
1856
|
type: Injectable
|
|
1873
1857
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1874
1858
|
type: Inject,
|
|
@@ -1888,10 +1872,10 @@ class CategoryServiceFacade {
|
|
|
1888
1872
|
getCategoryService() {
|
|
1889
1873
|
return this.categoryService;
|
|
1890
1874
|
}
|
|
1891
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1892
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1875
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CategoryServiceFacade, deps: [{ token: CategoryRepositoryFacade }, { token: ProductCatalogFacade }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1876
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CategoryServiceFacade }); }
|
|
1893
1877
|
}
|
|
1894
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1878
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CategoryServiceFacade, decorators: [{
|
|
1895
1879
|
type: Injectable
|
|
1896
1880
|
}], ctorParameters: () => [{ type: CategoryRepositoryFacade }, { type: ProductCatalogFacade }, { type: i3.Shops, decorators: [{
|
|
1897
1881
|
type: Inject,
|
|
@@ -1943,10 +1927,10 @@ class BrandManagerHelper {
|
|
|
1943
1927
|
}, options.mainGender)
|
|
1944
1928
|
.then((result) => result.distinct.brand);
|
|
1945
1929
|
}
|
|
1946
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1947
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1930
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: BrandManagerHelper, deps: [{ token: ProductCatalogFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1931
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: BrandManagerHelper }); }
|
|
1948
1932
|
}
|
|
1949
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1933
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: BrandManagerHelper, decorators: [{
|
|
1950
1934
|
type: Injectable
|
|
1951
1935
|
}], ctorParameters: () => [{ type: ProductCatalogFacade }] });
|
|
1952
1936
|
|
|
@@ -1984,10 +1968,10 @@ class CatalogFilterHelper {
|
|
|
1984
1968
|
}
|
|
1985
1969
|
return filterQuery;
|
|
1986
1970
|
}
|
|
1987
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1988
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1971
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogFilterHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1972
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogFilterHelper }); }
|
|
1989
1973
|
}
|
|
1990
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1974
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogFilterHelper, decorators: [{
|
|
1991
1975
|
type: Injectable
|
|
1992
1976
|
}] });
|
|
1993
1977
|
|
|
@@ -2034,10 +2018,10 @@ class CatalogSortHelper {
|
|
|
2034
2018
|
return {};
|
|
2035
2019
|
}
|
|
2036
2020
|
}
|
|
2037
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2038
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2021
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogSortHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2022
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogSortHelper }); }
|
|
2039
2023
|
}
|
|
2040
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2024
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogSortHelper, decorators: [{
|
|
2041
2025
|
type: Injectable
|
|
2042
2026
|
}] });
|
|
2043
2027
|
|
|
@@ -2072,10 +2056,10 @@ class ProductFieldsHelper {
|
|
|
2072
2056
|
'group',
|
|
2073
2057
|
];
|
|
2074
2058
|
}
|
|
2075
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2076
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2059
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ProductFieldsHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2060
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ProductFieldsHelper }); }
|
|
2077
2061
|
}
|
|
2078
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2062
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ProductFieldsHelper, decorators: [{
|
|
2079
2063
|
type: Injectable
|
|
2080
2064
|
}] });
|
|
2081
2065
|
|
|
@@ -2094,10 +2078,10 @@ class CatalogOperationsFacade {
|
|
|
2094
2078
|
getFieldsHelper() {
|
|
2095
2079
|
return this.fieldsHelper;
|
|
2096
2080
|
}
|
|
2097
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2098
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2081
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogOperationsFacade, deps: [{ token: CatalogFilterHelper }, { token: CatalogSortHelper }, { token: ProductFieldsHelper }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2082
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogOperationsFacade }); }
|
|
2099
2083
|
}
|
|
2100
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2084
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogOperationsFacade, decorators: [{
|
|
2101
2085
|
type: Injectable
|
|
2102
2086
|
}], ctorParameters: () => [{ type: CatalogFilterHelper }, { type: CatalogSortHelper }, { type: ProductFieldsHelper }] });
|
|
2103
2087
|
|
|
@@ -2112,10 +2096,10 @@ class ProductManagementFacade {
|
|
|
2112
2096
|
getProductServices() {
|
|
2113
2097
|
return this.productServices;
|
|
2114
2098
|
}
|
|
2115
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2116
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2099
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ProductManagementFacade, deps: [{ token: BrandManagerHelper }, { token: 'ProductServicesFacade' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2100
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ProductManagementFacade }); }
|
|
2117
2101
|
}
|
|
2118
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ProductManagementFacade, decorators: [{
|
|
2119
2103
|
type: Injectable
|
|
2120
2104
|
}], ctorParameters: () => [{ type: BrandManagerHelper }, { type: undefined, decorators: [{
|
|
2121
2105
|
type: Inject,
|
|
@@ -2142,10 +2126,10 @@ class CatalogHelpersService {
|
|
|
2142
2126
|
getProductServices() {
|
|
2143
2127
|
return this.productManagement.getProductServices();
|
|
2144
2128
|
}
|
|
2145
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2146
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2129
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogHelpersService, deps: [{ token: CatalogOperationsFacade }, { token: ProductManagementFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2130
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogHelpersService }); }
|
|
2147
2131
|
}
|
|
2148
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2132
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogHelpersService, decorators: [{
|
|
2149
2133
|
type: Injectable
|
|
2150
2134
|
}], ctorParameters: () => [{ type: CatalogOperationsFacade }, { type: ProductManagementFacade }] });
|
|
2151
2135
|
|
|
@@ -2160,10 +2144,10 @@ class CatalogRepositoryService {
|
|
|
2160
2144
|
getProductServices() {
|
|
2161
2145
|
return this.productServices;
|
|
2162
2146
|
}
|
|
2163
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2164
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2147
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogRepositoryService, deps: [{ token: ProductCatalogFacade }, { token: 'ProductServicesFacade' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2148
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogRepositoryService }); }
|
|
2165
2149
|
}
|
|
2166
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogRepositoryService, decorators: [{
|
|
2167
2151
|
type: Injectable
|
|
2168
2152
|
}], ctorParameters: () => [{ type: ProductCatalogFacade }, { type: undefined, decorators: [{
|
|
2169
2153
|
type: Inject,
|
|
@@ -2262,10 +2246,10 @@ class CatalogService {
|
|
|
2262
2246
|
hasCategory(options) {
|
|
2263
2247
|
return 'category' in options;
|
|
2264
2248
|
}
|
|
2265
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2266
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2249
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogService, deps: [{ token: CatalogSearchContext }, { token: CatalogHelpersService }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2250
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogService }); }
|
|
2267
2251
|
}
|
|
2268
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2252
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogService, decorators: [{
|
|
2269
2253
|
type: Injectable
|
|
2270
2254
|
}], ctorParameters: () => [{ type: CatalogSearchContext }, { type: CatalogHelpersService }, { type: i3.Shops, decorators: [{
|
|
2271
2255
|
type: Inject,
|
|
@@ -2520,10 +2504,10 @@ class WishlistService {
|
|
|
2520
2504
|
productBrand: product.brand,
|
|
2521
2505
|
};
|
|
2522
2506
|
}
|
|
2523
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2524
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2507
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WishlistService, deps: [{ token: 'WishlistRepository' }, { token: 'ProductRepository' }, { token: 'LogRepository' }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2508
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WishlistService }); }
|
|
2525
2509
|
}
|
|
2526
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2510
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WishlistService, decorators: [{
|
|
2527
2511
|
type: Injectable
|
|
2528
2512
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2529
2513
|
type: Inject,
|
|
@@ -2545,10 +2529,10 @@ class CouponRepositoriesFacade {
|
|
|
2545
2529
|
this.orderRepository = orderRepository;
|
|
2546
2530
|
this.categoryRepository = categoryRepository;
|
|
2547
2531
|
}
|
|
2548
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2549
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2532
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CouponRepositoriesFacade, deps: [{ token: 'CouponRepository' }, { token: 'OrderRepository' }, { token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2533
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CouponRepositoriesFacade }); }
|
|
2550
2534
|
}
|
|
2551
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2535
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CouponRepositoriesFacade, decorators: [{
|
|
2552
2536
|
type: Injectable
|
|
2553
2537
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2554
2538
|
type: Inject,
|
|
@@ -2790,10 +2774,10 @@ class CouponService {
|
|
|
2790
2774
|
}
|
|
2791
2775
|
return couponUseLimits;
|
|
2792
2776
|
}
|
|
2793
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2794
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2777
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CouponService, deps: [{ token: CouponRepositoriesFacade }, { token: ConfigurationFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2778
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CouponService, providedIn: 'root' }); }
|
|
2795
2779
|
}
|
|
2796
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2780
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CouponService, decorators: [{
|
|
2797
2781
|
type: Injectable,
|
|
2798
2782
|
args: [{
|
|
2799
2783
|
providedIn: 'root',
|
|
@@ -2835,10 +2819,10 @@ class CheckoutSubscriptionService {
|
|
|
2835
2819
|
await this.dataPersistence.set('checkoutSubscriptionId', checkout.id).toPromise();
|
|
2836
2820
|
return checkout;
|
|
2837
2821
|
}
|
|
2838
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2839
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2822
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CheckoutSubscriptionService, deps: [{ token: 'CheckoutSubscriptionRepository' }, { token: PERSISTENCE_PROVIDER }, { token: CouponService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2823
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CheckoutSubscriptionService }); }
|
|
2840
2824
|
}
|
|
2841
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2825
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CheckoutSubscriptionService, decorators: [{
|
|
2842
2826
|
type: Injectable
|
|
2843
2827
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2844
2828
|
type: Inject,
|
|
@@ -2872,10 +2856,10 @@ class HomeShopRepositoriesFacade {
|
|
|
2872
2856
|
this.homeRepository = homeRepository;
|
|
2873
2857
|
this.productRepository = productRepository;
|
|
2874
2858
|
}
|
|
2875
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2876
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2859
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: HomeShopRepositoriesFacade, deps: [{ token: 'CategoryRepository' }, { token: 'HomeRepository' }, { token: 'ProductRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2860
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: HomeShopRepositoriesFacade }); }
|
|
2877
2861
|
}
|
|
2878
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2862
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: HomeShopRepositoriesFacade, decorators: [{
|
|
2879
2863
|
type: Injectable
|
|
2880
2864
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2881
2865
|
type: Inject,
|
|
@@ -2991,10 +2975,10 @@ class HomeShopService {
|
|
|
2991
2975
|
get gender() {
|
|
2992
2976
|
return this.homeId === 'mens_market' ? 'masculino' : undefined;
|
|
2993
2977
|
}
|
|
2994
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2995
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2978
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: HomeShopService, deps: [{ token: HomeShopRepositoriesFacade }, { token: ConfigurationFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2979
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: HomeShopService }); }
|
|
2996
2980
|
}
|
|
2997
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2981
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: HomeShopService, decorators: [{
|
|
2998
2982
|
type: Injectable
|
|
2999
2983
|
}], ctorParameters: () => [{ type: HomeShopRepositoriesFacade }, { type: ConfigurationFacade }] });
|
|
3000
2984
|
|
|
@@ -3088,10 +3072,10 @@ class OrderProductReviewService {
|
|
|
3088
3072
|
orderId: review.orderId,
|
|
3089
3073
|
}));
|
|
3090
3074
|
}
|
|
3091
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3092
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3075
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: OrderProductReviewService, deps: [{ token: 'OrderRepository' }, { token: 'ProductReviewRepository' }, { token: 'VariantRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3076
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: OrderProductReviewService }); }
|
|
3093
3077
|
}
|
|
3094
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3078
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: OrderProductReviewService, decorators: [{
|
|
3095
3079
|
type: Injectable
|
|
3096
3080
|
}], ctorParameters: () => [{ type: i3.OrderFirestoreRepository, decorators: [{
|
|
3097
3081
|
type: Inject,
|
|
@@ -3116,10 +3100,10 @@ class OrderService {
|
|
|
3116
3100
|
.subscribe((doc) => this.orderSubject.next(doc));
|
|
3117
3101
|
return this.orderSubject;
|
|
3118
3102
|
}
|
|
3119
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3120
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3103
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: OrderService, deps: [{ token: i1$2.Firestore }, { token: 'OrderRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3104
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: OrderService }); }
|
|
3121
3105
|
}
|
|
3122
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: OrderService, decorators: [{
|
|
3123
3107
|
type: Injectable
|
|
3124
3108
|
}], ctorParameters: () => [{ type: i1$2.Firestore }, { type: i3.OrderFirestoreRepository, decorators: [{
|
|
3125
3109
|
type: Inject,
|
|
@@ -3166,55 +3150,43 @@ class AngularConnectModule {
|
|
|
3166
3150
|
static createProviderIfExists(token, value) {
|
|
3167
3151
|
return isNil(value) ? [] : [{ provide: token, useValue: value }];
|
|
3168
3152
|
}
|
|
3169
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3170
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3153
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3154
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: AngularConnectModule, imports: [AngularElasticSeachModule,
|
|
3171
3155
|
AngularVertexSeachModule,
|
|
3172
3156
|
AngularFirebaseAuthModule,
|
|
3173
3157
|
AngularFirestoreModule,
|
|
3174
3158
|
AngularHasuraGraphQLModule] }); }
|
|
3175
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3176
|
-
{
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
const
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
console.
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
if (error instanceof Error)
|
|
3207
|
-
console.error(error.message);
|
|
3208
|
-
return;
|
|
3209
|
-
}
|
|
3210
|
-
},
|
|
3211
|
-
deps: [Injector],
|
|
3212
|
-
},
|
|
3213
|
-
{
|
|
3214
|
-
provide: Storage,
|
|
3215
|
-
useFactory: (firebaseApp) => getStorage(firebaseApp),
|
|
3216
|
-
deps: [FirebaseApp],
|
|
3217
|
-
},
|
|
3159
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularConnectModule, providers: [
|
|
3160
|
+
provideFirebaseApp((injector) => {
|
|
3161
|
+
const appName = injector.get(FIREBASE_APP_NAME);
|
|
3162
|
+
try {
|
|
3163
|
+
const app = appName ? getApp(appName) : getApp();
|
|
3164
|
+
return app;
|
|
3165
|
+
}
|
|
3166
|
+
catch (error) {
|
|
3167
|
+
console.warn('Firebase app not found, initializing new app');
|
|
3168
|
+
if (error instanceof Error)
|
|
3169
|
+
console.error(error.message);
|
|
3170
|
+
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
3171
|
+
}
|
|
3172
|
+
}),
|
|
3173
|
+
provideAppCheck((injector) => {
|
|
3174
|
+
const app = injector.get(FirebaseApp);
|
|
3175
|
+
try {
|
|
3176
|
+
const provider = injector.get(APP_CHECK_PROVIDER);
|
|
3177
|
+
if (provider)
|
|
3178
|
+
return initializeAppCheck(app, {
|
|
3179
|
+
provider,
|
|
3180
|
+
isTokenAutoRefreshEnabled: true,
|
|
3181
|
+
});
|
|
3182
|
+
}
|
|
3183
|
+
catch (error) {
|
|
3184
|
+
if (error instanceof Error)
|
|
3185
|
+
console.error(error.message);
|
|
3186
|
+
return;
|
|
3187
|
+
}
|
|
3188
|
+
}),
|
|
3189
|
+
provideStorage((injector) => getStorage(injector.get(FirebaseApp))),
|
|
3218
3190
|
AuthService,
|
|
3219
3191
|
CartService,
|
|
3220
3192
|
CatalogService,
|
|
@@ -3288,7 +3260,7 @@ class AngularConnectModule {
|
|
|
3288
3260
|
AngularFirestoreModule,
|
|
3289
3261
|
AngularHasuraGraphQLModule] }); }
|
|
3290
3262
|
}
|
|
3291
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularConnectModule, decorators: [{
|
|
3292
3264
|
type: NgModule,
|
|
3293
3265
|
args: [{
|
|
3294
3266
|
imports: [
|
|
@@ -3299,48 +3271,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
3299
3271
|
AngularHasuraGraphQLModule,
|
|
3300
3272
|
],
|
|
3301
3273
|
providers: [
|
|
3302
|
-
{
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
const
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
console.
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
if (error instanceof Error)
|
|
3333
|
-
console.error(error.message);
|
|
3334
|
-
return;
|
|
3335
|
-
}
|
|
3336
|
-
},
|
|
3337
|
-
deps: [Injector],
|
|
3338
|
-
},
|
|
3339
|
-
{
|
|
3340
|
-
provide: Storage,
|
|
3341
|
-
useFactory: (firebaseApp) => getStorage(firebaseApp),
|
|
3342
|
-
deps: [FirebaseApp],
|
|
3343
|
-
},
|
|
3274
|
+
provideFirebaseApp((injector) => {
|
|
3275
|
+
const appName = injector.get(FIREBASE_APP_NAME);
|
|
3276
|
+
try {
|
|
3277
|
+
const app = appName ? getApp(appName) : getApp();
|
|
3278
|
+
return app;
|
|
3279
|
+
}
|
|
3280
|
+
catch (error) {
|
|
3281
|
+
console.warn('Firebase app not found, initializing new app');
|
|
3282
|
+
if (error instanceof Error)
|
|
3283
|
+
console.error(error.message);
|
|
3284
|
+
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
3285
|
+
}
|
|
3286
|
+
}),
|
|
3287
|
+
provideAppCheck((injector) => {
|
|
3288
|
+
const app = injector.get(FirebaseApp);
|
|
3289
|
+
try {
|
|
3290
|
+
const provider = injector.get(APP_CHECK_PROVIDER);
|
|
3291
|
+
if (provider)
|
|
3292
|
+
return initializeAppCheck(app, {
|
|
3293
|
+
provider,
|
|
3294
|
+
isTokenAutoRefreshEnabled: true,
|
|
3295
|
+
});
|
|
3296
|
+
}
|
|
3297
|
+
catch (error) {
|
|
3298
|
+
if (error instanceof Error)
|
|
3299
|
+
console.error(error.message);
|
|
3300
|
+
return;
|
|
3301
|
+
}
|
|
3302
|
+
}),
|
|
3303
|
+
provideStorage((injector) => getStorage(injector.get(FirebaseApp))),
|
|
3344
3304
|
AuthService,
|
|
3345
3305
|
CartService,
|
|
3346
3306
|
CatalogService,
|