@infrab4a/connect-angular 5.5.0-alpha.0 → 5.5.0-alpha.2
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/{fesm2020 → fesm2022}/infrab4a-connect-angular.mjs +871 -833
- package/fesm2022/infrab4a-connect-angular.mjs.map +1 -0
- package/index.d.ts +755 -6
- package/package.json +7 -15
- package/angular-connect.module.d.ts +0 -36
- package/angular-elastic-search.module.d.ts +0 -9
- package/angular-firebase-auth.module.d.ts +0 -11
- package/angular-firestore.module.d.ts +0 -17
- package/angular-hasura-graphql.module.d.ts +0 -14
- package/angular-vertex-search.module.d.ts +0 -9
- package/consts/backend-url.const.d.ts +0 -1
- package/consts/category-structure.d.ts +0 -1
- package/consts/default-shop.const.d.ts +0 -1
- package/consts/es-config.const.d.ts +0 -1
- package/consts/firebase-const.d.ts +0 -4
- package/consts/hasura-options.const.d.ts +0 -1
- package/consts/index.d.ts +0 -8
- package/consts/persistence.const.d.ts +0 -1
- package/consts/storage-base-url.const.d.ts +0 -1
- package/consts/vertex-config.const.d.ts +0 -1
- package/esm2020/angular-connect.module.mjs +0 -291
- package/esm2020/angular-elastic-search.module.mjs +0 -34
- package/esm2020/angular-firebase-auth.module.mjs +0 -141
- package/esm2020/angular-firestore.module.mjs +0 -541
- package/esm2020/angular-hasura-graphql.module.mjs +0 -333
- package/esm2020/angular-vertex-search.module.mjs +0 -34
- package/esm2020/consts/backend-url.const.mjs +0 -2
- package/esm2020/consts/category-structure.mjs +0 -2
- package/esm2020/consts/default-shop.const.mjs +0 -2
- package/esm2020/consts/es-config.const.mjs +0 -2
- package/esm2020/consts/firebase-const.mjs +0 -5
- package/esm2020/consts/hasura-options.const.mjs +0 -2
- package/esm2020/consts/index.mjs +0 -9
- package/esm2020/consts/persistence.const.mjs +0 -2
- package/esm2020/consts/storage-base-url.const.mjs +0 -2
- package/esm2020/consts/vertex-config.const.mjs +0 -2
- package/esm2020/helpers/index.mjs +0 -2
- package/esm2020/helpers/mobile-operation-system-checker.helper.mjs +0 -7
- package/esm2020/index.mjs +0 -7
- package/esm2020/infrab4a-connect-angular.mjs +0 -5
- package/esm2020/interfaces/catalog-strategies.interface.mjs +0 -2
- package/esm2020/interfaces/category-facades.interface.mjs +0 -2
- package/esm2020/interfaces/index.mjs +0 -3
- package/esm2020/persistence/cookie-data-persistence.mjs +0 -22
- package/esm2020/persistence/data-persistence.mjs +0 -2
- package/esm2020/persistence/index.mjs +0 -3
- package/esm2020/services/auth.service.mjs +0 -37
- package/esm2020/services/cart/cart-services.facade.mjs +0 -21
- package/esm2020/services/cart/index.mjs +0 -2
- package/esm2020/services/cart.service.mjs +0 -73
- package/esm2020/services/catalog/adapters/category-structure.adapter.mjs +0 -2
- package/esm2020/services/catalog/adapters/index.mjs +0 -4
- package/esm2020/services/catalog/adapters/new-category-structure.adapter.mjs +0 -43
- package/esm2020/services/catalog/adapters/old-category-structure.adapter.mjs +0 -23
- package/esm2020/services/catalog/catalog.service.mjs +0 -111
- package/esm2020/services/catalog/category.service.mjs +0 -39
- package/esm2020/services/catalog/context/catalog-search.context.mjs +0 -40
- package/esm2020/services/catalog/enums/index.mjs +0 -2
- package/esm2020/services/catalog/enums/product-sorts.enum.mjs +0 -11
- package/esm2020/services/catalog/facades/catalog-service.facade.mjs +0 -32
- package/esm2020/services/catalog/facades/catalog-strategies.facade.mjs +0 -17
- package/esm2020/services/catalog/facades/category-repository.facade.mjs +0 -20
- package/esm2020/services/catalog/facades/category-service.facade.mjs +0 -30
- package/esm2020/services/catalog/facades/index.mjs +0 -6
- package/esm2020/services/catalog/facades/product-catalog.facade.mjs +0 -21
- package/esm2020/services/catalog/helpers/brand-manager.helper.mjs +0 -57
- package/esm2020/services/catalog/helpers/catalog-filter.helper.mjs +0 -44
- package/esm2020/services/catalog/helpers/catalog-sort.helper.mjs +0 -52
- package/esm2020/services/catalog/helpers/index.mjs +0 -5
- package/esm2020/services/catalog/helpers/product-fields.helper.mjs +0 -40
- package/esm2020/services/catalog/index.mjs +0 -8
- package/esm2020/services/catalog/models/category-with-tree.model.mjs +0 -10
- package/esm2020/services/catalog/models/index.mjs +0 -2
- package/esm2020/services/catalog/services/catalog-helpers.service.mjs +0 -33
- package/esm2020/services/catalog/services/catalog-operations.facade.mjs +0 -26
- package/esm2020/services/catalog/services/catalog-repository.service.mjs +0 -25
- package/esm2020/services/catalog/services/index.mjs +0 -5
- package/esm2020/services/catalog/services/product-management.facade.mjs +0 -25
- package/esm2020/services/catalog/strategies/category-search.strategy.mjs +0 -133
- package/esm2020/services/catalog/strategies/index.mjs +0 -4
- package/esm2020/services/catalog/strategies/profile-search.strategy.mjs +0 -42
- package/esm2020/services/catalog/strategies/term-search.strategy.mjs +0 -123
- package/esm2020/services/catalog/strategies/types/strategy-params.type.mjs +0 -2
- package/esm2020/services/catalog/types/fetch-products-options.type.mjs +0 -2
- package/esm2020/services/catalog/types/fetch-products-params.type.mjs +0 -2
- package/esm2020/services/catalog/types/fetch-products-response.type.mjs +0 -2
- package/esm2020/services/catalog/types/index.mjs +0 -6
- package/esm2020/services/catalog/types/method-params.type.mjs +0 -2
- package/esm2020/services/catalog/types/product-sort.type.mjs +0 -2
- package/esm2020/services/catalog/wishlist.service.mjs +0 -254
- package/esm2020/services/checkout/checkout-dependencies.facade.mjs +0 -20
- package/esm2020/services/checkout/checkout-repositories.facade.mjs +0 -20
- package/esm2020/services/checkout/index.mjs +0 -3
- package/esm2020/services/checkout-subscription.service.mjs +0 -55
- package/esm2020/services/checkout.service.mjs +0 -106
- package/esm2020/services/coupon/coupon-repositories.facade.mjs +0 -24
- package/esm2020/services/coupon/index.mjs +0 -2
- package/esm2020/services/coupon/types/coupon-params.type.mjs +0 -2
- package/esm2020/services/coupon.service.mjs +0 -248
- package/esm2020/services/helpers/index.mjs +0 -2
- package/esm2020/services/helpers/util.helper.mjs +0 -18
- package/esm2020/services/home-shop/home-shop-repositories.facade.mjs +0 -24
- package/esm2020/services/home-shop/index.mjs +0 -2
- package/esm2020/services/home-shop.service.mjs +0 -119
- package/esm2020/services/index.mjs +0 -11
- package/esm2020/services/order-product-review.service.mjs +0 -110
- package/esm2020/services/order.service.mjs +0 -30
- package/esm2020/services/shared/configuration.facade.mjs +0 -29
- package/esm2020/services/shared/index.mjs +0 -2
- package/esm2020/services/types/index.mjs +0 -5
- package/esm2020/services/types/pending-product-review.type.mjs +0 -2
- package/esm2020/services/types/product-review-create.type.mjs +0 -2
- package/esm2020/services/types/required-checkout-data.type.mjs +0 -2
- package/esm2020/services/types/required-checkout-subscription-data.type.mjs +0 -2
- package/esm2020/types/firebase-app-config.type.mjs +0 -2
- package/esm2020/types/index.mjs +0 -2
- package/fesm2015/infrab4a-connect-angular.mjs +0 -3486
- package/fesm2015/infrab4a-connect-angular.mjs.map +0 -1
- package/fesm2020/infrab4a-connect-angular.mjs.map +0 -1
- package/helpers/index.d.ts +0 -1
- package/helpers/mobile-operation-system-checker.helper.d.ts +0 -3
- package/interfaces/catalog-strategies.interface.d.ts +0 -31
- package/interfaces/category-facades.interface.d.ts +0 -6
- package/interfaces/index.d.ts +0 -2
- package/persistence/cookie-data-persistence.d.ts +0 -10
- package/persistence/data-persistence.d.ts +0 -6
- package/persistence/index.d.ts +0 -2
- package/services/auth.service.d.ts +0 -18
- package/services/cart/cart-services.facade.d.ts +0 -12
- package/services/cart/index.d.ts +0 -1
- package/services/cart.service.d.ts +0 -26
- package/services/catalog/adapters/category-structure.adapter.d.ts +0 -4
- package/services/catalog/adapters/index.d.ts +0 -3
- package/services/catalog/adapters/new-category-structure.adapter.d.ts +0 -12
- package/services/catalog/adapters/old-category-structure.adapter.d.ts +0 -10
- package/services/catalog/catalog.service.d.ts +0 -24
- package/services/catalog/category.service.d.ts +0 -22
- package/services/catalog/context/catalog-search.context.d.ts +0 -14
- package/services/catalog/enums/index.d.ts +0 -1
- package/services/catalog/enums/product-sorts.enum.d.ts +0 -9
- package/services/catalog/facades/catalog-service.facade.d.ts +0 -15
- package/services/catalog/facades/catalog-strategies.facade.d.ts +0 -10
- package/services/catalog/facades/category-repository.facade.d.ts +0 -9
- package/services/catalog/facades/category-service.facade.d.ts +0 -15
- package/services/catalog/facades/index.d.ts +0 -5
- package/services/catalog/facades/product-catalog.facade.d.ts +0 -10
- package/services/catalog/helpers/brand-manager.helper.d.ts +0 -14
- package/services/catalog/helpers/catalog-filter.helper.d.ts +0 -8
- package/services/catalog/helpers/catalog-sort.helper.d.ts +0 -7
- package/services/catalog/helpers/index.d.ts +0 -4
- package/services/catalog/helpers/product-fields.helper.d.ts +0 -7
- package/services/catalog/index.d.ts +0 -7
- package/services/catalog/models/category-with-tree.model.d.ts +0 -4
- package/services/catalog/models/index.d.ts +0 -1
- package/services/catalog/services/catalog-helpers.service.d.ts +0 -17
- package/services/catalog/services/catalog-operations.facade.d.ts +0 -13
- package/services/catalog/services/catalog-repository.service.d.ts +0 -12
- package/services/catalog/services/index.d.ts +0 -4
- package/services/catalog/services/product-management.facade.d.ts +0 -12
- package/services/catalog/strategies/category-search.strategy.d.ts +0 -19
- package/services/catalog/strategies/index.d.ts +0 -3
- package/services/catalog/strategies/profile-search.strategy.d.ts +0 -14
- package/services/catalog/strategies/term-search.strategy.d.ts +0 -20
- package/services/catalog/strategies/types/strategy-params.type.d.ts +0 -58
- package/services/catalog/types/fetch-products-options.type.d.ts +0 -8
- package/services/catalog/types/fetch-products-params.type.d.ts +0 -25
- package/services/catalog/types/fetch-products-response.type.d.ts +0 -19
- package/services/catalog/types/index.d.ts +0 -5
- package/services/catalog/types/method-params.type.d.ts +0 -17
- package/services/catalog/types/product-sort.type.d.ts +0 -2
- package/services/catalog/wishlist.service.d.ts +0 -59
- package/services/checkout/checkout-dependencies.facade.d.ts +0 -10
- package/services/checkout/checkout-repositories.facade.d.ts +0 -9
- package/services/checkout/index.d.ts +0 -2
- package/services/checkout-subscription.service.d.ts +0 -19
- package/services/checkout.service.d.ts +0 -30
- package/services/coupon/coupon-repositories.facade.d.ts +0 -10
- package/services/coupon/index.d.ts +0 -1
- package/services/coupon/types/coupon-params.type.d.ts +0 -13
- package/services/coupon.service.d.ts +0 -36
- package/services/helpers/index.d.ts +0 -1
- package/services/helpers/util.helper.d.ts +0 -3
- package/services/home-shop/home-shop-repositories.facade.d.ts +0 -10
- package/services/home-shop/index.d.ts +0 -1
- package/services/home-shop.service.d.ts +0 -26
- package/services/index.d.ts +0 -10
- package/services/order-product-review.service.d.ts +0 -16
- package/services/order.service.d.ts +0 -13
- package/services/shared/configuration.facade.d.ts +0 -12
- package/services/shared/index.d.ts +0 -1
- package/services/types/index.d.ts +0 -4
- package/services/types/pending-product-review.type.d.ts +0 -12
- package/services/types/product-review-create.type.d.ts +0 -14
- package/services/types/required-checkout-data.type.d.ts +0 -2
- package/services/types/required-checkout-subscription-data.type.d.ts +0 -2
- package/types/firebase-app-config.type.d.ts +0 -1
- package/types/index.d.ts +0 -1
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { NgModule, InjectionToken, PLATFORM_ID, Injectable, Inject } from '@angular/core';
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import { provideAppCheck, initializeAppCheck } from '@angular/fire/app-check';
|
|
7
|
-
import * as i3$1 from '@angular/fire/storage';
|
|
8
|
-
import { Storage, provideStorage, getStorage } from '@angular/fire/storage';
|
|
2
|
+
import { NgModule, InjectionToken, Injector, PLATFORM_ID, Injectable, Inject } from '@angular/core';
|
|
3
|
+
import { FirebaseApp, getApp, initializeApp } from '@angular/fire/app';
|
|
4
|
+
import { initializeAppCheck } from '@angular/fire/app-check';
|
|
5
|
+
import { getStorage, Storage } from '@angular/fire/storage';
|
|
9
6
|
import * as i3 from '@infrab4a/connect';
|
|
10
|
-
import { ProductsIndex, AxiosAdapter, Authentication, AuthenticationFirebaseAuthService, Register, RegisterFirebaseAuthService, SignOut, RecoveryPassword, ConnectFirestoreService, UserBeautyProfileFirestoreRepository, Buy2WinFirestoreRepository,
|
|
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';
|
|
11
8
|
import * as i1 from '@angular/fire/auth';
|
|
12
|
-
import { Auth,
|
|
13
|
-
import {
|
|
14
|
-
import * as i1$
|
|
15
|
-
import { Firestore,
|
|
9
|
+
import { Auth, initializeAuth, indexedDBLocalPersistence, browserLocalPersistence, browserSessionPersistence, getAuth, getIdToken, authState } from '@angular/fire/auth';
|
|
10
|
+
import { isPlatformServer, isPlatformBrowser } from '@angular/common';
|
|
11
|
+
import * as i1$2 from '@angular/fire/firestore';
|
|
12
|
+
import { Firestore, initializeFirestore, memoryLocalCache, docSnapshots, doc } from '@angular/fire/firestore';
|
|
16
13
|
import cookie from 'js-cookie';
|
|
17
14
|
import { of, from, combineLatest, throwError, Subject, forkJoin } from 'rxjs';
|
|
18
15
|
import { map, mergeMap, catchError, concatMap, tap } from 'rxjs/operators';
|
|
19
|
-
import * as i1$
|
|
16
|
+
import * as i1$1 from '@angular/common/http';
|
|
20
17
|
import { __decorate, __metadata } from 'tslib';
|
|
21
18
|
import { Type } from 'class-transformer';
|
|
22
19
|
|
|
@@ -29,17 +26,17 @@ class AngularElasticSeachModule {
|
|
|
29
26
|
providers: [{ provide: ES_CONFIG, useValue: options }],
|
|
30
27
|
};
|
|
31
28
|
}
|
|
29
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: AngularElasticSeachModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
30
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.2", ngImport: i0, type: AngularElasticSeachModule }); }
|
|
31
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: AngularElasticSeachModule, providers: [
|
|
32
|
+
{
|
|
33
|
+
provide: ProductsIndex,
|
|
34
|
+
useFactory: (configuration) => new ProductsIndex(new AxiosAdapter(configuration)),
|
|
35
|
+
deps: [ES_CONFIG],
|
|
36
|
+
},
|
|
37
|
+
] }); }
|
|
32
38
|
}
|
|
33
|
-
|
|
34
|
-
AngularElasticSeachModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule });
|
|
35
|
-
AngularElasticSeachModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule, providers: [
|
|
36
|
-
{
|
|
37
|
-
provide: ProductsIndex,
|
|
38
|
-
useFactory: (configuration) => new ProductsIndex(new AxiosAdapter(configuration)),
|
|
39
|
-
deps: [ES_CONFIG],
|
|
40
|
-
},
|
|
41
|
-
] });
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule, decorators: [{
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: AngularElasticSeachModule, decorators: [{
|
|
43
40
|
type: NgModule,
|
|
44
41
|
args: [{
|
|
45
42
|
providers: [
|
|
@@ -78,84 +75,92 @@ class AngularFirebaseAuthModule {
|
|
|
78
75
|
],
|
|
79
76
|
};
|
|
80
77
|
}
|
|
78
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: AngularFirebaseAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
79
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.2", ngImport: i0, type: AngularFirebaseAuthModule }); }
|
|
80
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: AngularFirebaseAuthModule, providers: [
|
|
81
|
+
{
|
|
82
|
+
provide: Auth,
|
|
83
|
+
useFactory: (injector) => {
|
|
84
|
+
const app = injector.get(FirebaseApp);
|
|
85
|
+
try {
|
|
86
|
+
return initializeAuth(app, {
|
|
87
|
+
persistence: [indexedDBLocalPersistence, browserLocalPersistence, browserSessionPersistence],
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
catch (error) {
|
|
91
|
+
if (error instanceof Error)
|
|
92
|
+
console.error('Error initializing auth', error.message);
|
|
93
|
+
return getAuth(app);
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
deps: [Injector],
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
provide: 'Authentication',
|
|
100
|
+
useFactory: (authenticationService, userRepository) => {
|
|
101
|
+
return new Authentication(authenticationService, userRepository);
|
|
102
|
+
},
|
|
103
|
+
deps: ['AuthenticationService', 'UserRepository'],
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
provide: 'AuthenticationService',
|
|
107
|
+
useFactory: (angularFireAuth) => {
|
|
108
|
+
return new AuthenticationFirebaseAuthService(angularFireAuth);
|
|
109
|
+
},
|
|
110
|
+
deps: [Auth],
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
provide: 'Register',
|
|
114
|
+
useFactory: (registerService, userRepository) => {
|
|
115
|
+
return new Register(registerService, userRepository);
|
|
116
|
+
},
|
|
117
|
+
deps: ['RegisterService', 'UserRepository'],
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
provide: 'RegisterService',
|
|
121
|
+
useFactory: (angularFireAuth) => {
|
|
122
|
+
return new RegisterFirebaseAuthService(angularFireAuth);
|
|
123
|
+
},
|
|
124
|
+
deps: [Auth],
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
provide: 'SignOut',
|
|
128
|
+
useFactory: (authenticationService) => {
|
|
129
|
+
return new SignOut(authenticationService);
|
|
130
|
+
},
|
|
131
|
+
deps: ['AuthenticationService'],
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
provide: 'RecoveryPassword',
|
|
135
|
+
useFactory: (authenticationService) => {
|
|
136
|
+
return new RecoveryPassword(authenticationService);
|
|
137
|
+
},
|
|
138
|
+
deps: ['AuthenticationService'],
|
|
139
|
+
},
|
|
140
|
+
] }); }
|
|
81
141
|
}
|
|
82
|
-
|
|
83
|
-
AngularFirebaseAuthModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, imports: [i1.AuthModule] });
|
|
84
|
-
AngularFirebaseAuthModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, providers: [
|
|
85
|
-
{
|
|
86
|
-
provide: 'Authentication',
|
|
87
|
-
useFactory: (authenticationService, userRepository) => {
|
|
88
|
-
return new Authentication(authenticationService, userRepository);
|
|
89
|
-
},
|
|
90
|
-
deps: ['AuthenticationService', 'UserRepository'],
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
provide: 'AuthenticationService',
|
|
94
|
-
useFactory: (angularFireAuth) => {
|
|
95
|
-
return new AuthenticationFirebaseAuthService(angularFireAuth);
|
|
96
|
-
},
|
|
97
|
-
deps: [Auth],
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
provide: 'Register',
|
|
101
|
-
useFactory: (registerService, userRepository) => {
|
|
102
|
-
return new Register(registerService, userRepository);
|
|
103
|
-
},
|
|
104
|
-
deps: ['RegisterService', 'UserRepository'],
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
provide: 'RegisterService',
|
|
108
|
-
useFactory: (angularFireAuth) => {
|
|
109
|
-
return new RegisterFirebaseAuthService(angularFireAuth);
|
|
110
|
-
},
|
|
111
|
-
deps: [Auth],
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
provide: 'SignOut',
|
|
115
|
-
useFactory: (authenticationService) => {
|
|
116
|
-
return new SignOut(authenticationService);
|
|
117
|
-
},
|
|
118
|
-
deps: ['AuthenticationService'],
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
provide: 'RecoveryPassword',
|
|
122
|
-
useFactory: (authenticationService) => {
|
|
123
|
-
return new RecoveryPassword(authenticationService);
|
|
124
|
-
},
|
|
125
|
-
deps: ['AuthenticationService'],
|
|
126
|
-
},
|
|
127
|
-
], imports: [provideAuth((injector) => {
|
|
128
|
-
const app = injector.get(FirebaseApp);
|
|
129
|
-
try {
|
|
130
|
-
return initializeAuth(app, {
|
|
131
|
-
persistence: [indexedDBLocalPersistence, browserLocalPersistence, browserSessionPersistence],
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
catch (error) {
|
|
135
|
-
if (error instanceof Error)
|
|
136
|
-
console.error('Error initializing auth', error.message);
|
|
137
|
-
return getAuth(app);
|
|
138
|
-
}
|
|
139
|
-
})] });
|
|
140
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
|
|
142
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
|
|
141
143
|
type: NgModule,
|
|
142
144
|
args: [{
|
|
143
|
-
imports: [
|
|
144
|
-
provideAuth((injector) => {
|
|
145
|
-
const app = injector.get(FirebaseApp);
|
|
146
|
-
try {
|
|
147
|
-
return initializeAuth(app, {
|
|
148
|
-
persistence: [indexedDBLocalPersistence, browserLocalPersistence, browserSessionPersistence],
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
catch (error) {
|
|
152
|
-
if (error instanceof Error)
|
|
153
|
-
console.error('Error initializing auth', error.message);
|
|
154
|
-
return getAuth(app);
|
|
155
|
-
}
|
|
156
|
-
}),
|
|
157
|
-
],
|
|
145
|
+
imports: [],
|
|
158
146
|
providers: [
|
|
147
|
+
{
|
|
148
|
+
provide: Auth,
|
|
149
|
+
useFactory: (injector) => {
|
|
150
|
+
const app = injector.get(FirebaseApp);
|
|
151
|
+
try {
|
|
152
|
+
return initializeAuth(app, {
|
|
153
|
+
persistence: [indexedDBLocalPersistence, browserLocalPersistence, browserSessionPersistence],
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
catch (error) {
|
|
157
|
+
if (error instanceof Error)
|
|
158
|
+
console.error('Error initializing auth', error.message);
|
|
159
|
+
return getAuth(app);
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
deps: [Injector],
|
|
163
|
+
},
|
|
159
164
|
{
|
|
160
165
|
provide: 'Authentication',
|
|
161
166
|
useFactory: (authenticationService, userRepository) => {
|
|
@@ -220,283 +225,289 @@ class AngularFirestoreModule {
|
|
|
220
225
|
],
|
|
221
226
|
};
|
|
222
227
|
}
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
228
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
229
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.2", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule] }); }
|
|
230
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: AngularFirestoreModule, providers: [
|
|
231
|
+
{
|
|
232
|
+
provide: Firestore,
|
|
233
|
+
useFactory: (injector) => {
|
|
234
|
+
const platformId = injector.get(PLATFORM_ID);
|
|
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,
|
|
241
|
+
ignoreUndefinedProperties: true,
|
|
242
|
+
localCache: memoryLocalCache(),
|
|
243
|
+
});
|
|
244
|
+
return firestore;
|
|
245
|
+
},
|
|
246
|
+
deps: [Injector],
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
provide: 'FirestoreOptions',
|
|
250
|
+
useFactory: (firestore, platformId) => ({
|
|
251
|
+
firestore: new ConnectFirestoreService(firestore),
|
|
252
|
+
interceptors: {
|
|
253
|
+
request: (request) => {
|
|
254
|
+
if (isPlatformBrowser(platformId))
|
|
255
|
+
return request;
|
|
256
|
+
const interval = setInterval(() => { }, 100);
|
|
257
|
+
request.interval = interval;
|
|
234
258
|
return request;
|
|
235
|
-
|
|
236
|
-
request
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
if (isPlatformBrowser(platformId))
|
|
259
|
+
},
|
|
260
|
+
response: (response, request) => {
|
|
261
|
+
if (isPlatformBrowser(platformId))
|
|
262
|
+
return response;
|
|
263
|
+
clearInterval(request.interval);
|
|
241
264
|
return response;
|
|
242
|
-
|
|
243
|
-
return response;
|
|
265
|
+
},
|
|
244
266
|
},
|
|
267
|
+
}),
|
|
268
|
+
deps: [Firestore, PLATFORM_ID],
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
provide: 'BeautyProfileRepository',
|
|
272
|
+
useFactory: (config, userRepository) => {
|
|
273
|
+
return new UserBeautyProfileFirestoreRepository(config, userRepository);
|
|
245
274
|
},
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
useFactory: (options) => {
|
|
462
|
-
return new SequenceFirestoreRepository(options);
|
|
463
|
-
},
|
|
464
|
-
deps: ['FirestoreOptions'],
|
|
465
|
-
},
|
|
466
|
-
], imports: [AngularElasticSeachModule,
|
|
467
|
-
provideFirestore((injector) => {
|
|
468
|
-
const platformId = injector.get(PLATFORM_ID);
|
|
469
|
-
if (isPlatformServer(platformId) || !MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
470
|
-
return initializeFirestore(injector.get(FirebaseApp), {
|
|
471
|
-
ignoreUndefinedProperties: true,
|
|
472
|
-
});
|
|
473
|
-
const firestore = initializeFirestore(injector.get(FirebaseApp), {
|
|
474
|
-
experimentalForceLongPolling: true,
|
|
475
|
-
ignoreUndefinedProperties: true,
|
|
476
|
-
localCache: memoryLocalCache(),
|
|
477
|
-
});
|
|
478
|
-
return firestore;
|
|
479
|
-
})] });
|
|
480
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, decorators: [{
|
|
275
|
+
deps: ['FirestoreOptions', 'UserRepository'],
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
provide: 'Buy2WinRepository',
|
|
279
|
+
useFactory: (options) => {
|
|
280
|
+
return new Buy2WinFirestoreRepository(options);
|
|
281
|
+
},
|
|
282
|
+
deps: ['FirestoreOptions'],
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
provide: CategoryFirestoreRepository,
|
|
286
|
+
useFactory: (options) => {
|
|
287
|
+
return new CategoryFirestoreRepository(options);
|
|
288
|
+
},
|
|
289
|
+
deps: ['FirestoreOptions'],
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
provide: 'CheckoutRepository',
|
|
293
|
+
useFactory: (options) => {
|
|
294
|
+
return new CheckoutFirestoreRepository(options);
|
|
295
|
+
},
|
|
296
|
+
deps: ['FirestoreOptions'],
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
provide: 'CheckoutSubscriptionRepository',
|
|
300
|
+
useFactory: (options) => {
|
|
301
|
+
return new CheckoutSubscriptionFirestoreRepository(options);
|
|
302
|
+
},
|
|
303
|
+
deps: ['FirestoreOptions'],
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
provide: 'CouponRepository',
|
|
307
|
+
useFactory: (options) => {
|
|
308
|
+
return new CouponFirestoreRepository(options);
|
|
309
|
+
},
|
|
310
|
+
deps: ['FirestoreOptions'],
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
provide: 'CampaignHashtagRepository',
|
|
314
|
+
useFactory: (options) => {
|
|
315
|
+
return new CampaignHashtagFirestoreRepository(options);
|
|
316
|
+
},
|
|
317
|
+
deps: ['FirestoreOptions'],
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
provide: 'CampaignDashboardRepository',
|
|
321
|
+
useFactory: (options) => {
|
|
322
|
+
return new CampaignDashboardFirestoreRepository(options);
|
|
323
|
+
},
|
|
324
|
+
deps: ['FirestoreOptions'],
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
provide: 'EditionRepository',
|
|
328
|
+
useFactory: (options, subscriptionRepository) => {
|
|
329
|
+
return new SubscriptionEditionFirestoreRepository(options, subscriptionRepository);
|
|
330
|
+
},
|
|
331
|
+
deps: ['FirestoreOptions', 'SubscriptionRepository'],
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
provide: 'GroupRepository',
|
|
335
|
+
useFactory: (options) => {
|
|
336
|
+
return new GroupFirestoreRepository(options);
|
|
337
|
+
},
|
|
338
|
+
deps: ['FirestoreOptions'],
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
provide: 'HomeRepository',
|
|
342
|
+
useFactory: (options) => {
|
|
343
|
+
return new HomeFirestoreRepository(options);
|
|
344
|
+
},
|
|
345
|
+
deps: ['FirestoreOptions'],
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
provide: 'LeadRepository',
|
|
349
|
+
useFactory: (options) => {
|
|
350
|
+
return new LeadFirestoreRepository(options);
|
|
351
|
+
},
|
|
352
|
+
deps: ['FirestoreOptions'],
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
provide: 'LegacyOrderRepository',
|
|
356
|
+
useFactory: (options) => {
|
|
357
|
+
return new LegacyOrderFirestoreRepository(options);
|
|
358
|
+
},
|
|
359
|
+
deps: ['FirestoreOptions'],
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
provide: 'ShopMenuRepository',
|
|
363
|
+
useFactory: (options) => {
|
|
364
|
+
return new ShopMenuFirestoreRepository(options);
|
|
365
|
+
},
|
|
366
|
+
deps: ['FirestoreOptions'],
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
provide: 'OrderRepository',
|
|
370
|
+
useFactory: (options) => {
|
|
371
|
+
return new OrderFirestoreRepository(options);
|
|
372
|
+
},
|
|
373
|
+
deps: ['FirestoreOptions'],
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
provide: 'PaymentRepository',
|
|
377
|
+
useFactory: (options) => {
|
|
378
|
+
return new PaymentFirestoreRepository(options);
|
|
379
|
+
},
|
|
380
|
+
deps: ['FirestoreOptions'],
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
provide: ProductFirestoreRepository,
|
|
384
|
+
useFactory: (options) => {
|
|
385
|
+
return new ProductFirestoreRepository(options);
|
|
386
|
+
},
|
|
387
|
+
deps: ['FirestoreOptions'],
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
provide: 'ShopSettingsRepository',
|
|
391
|
+
useFactory: (options) => {
|
|
392
|
+
return new ShopSettingsFirestoreRepository(options);
|
|
393
|
+
},
|
|
394
|
+
deps: ['FirestoreOptions'],
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
provide: 'SubscriptionPaymentRepository',
|
|
398
|
+
useFactory: (options, subscriptionRepository) => {
|
|
399
|
+
return new SubscriptionPaymentFirestoreRepository(options, subscriptionRepository);
|
|
400
|
+
},
|
|
401
|
+
deps: ['FirestoreOptions', 'SubscriptionRepository'],
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
provide: 'SubscriptionPlanRepository',
|
|
405
|
+
useFactory: (options) => {
|
|
406
|
+
return new SubscriptionPlanFirestoreRepository(options);
|
|
407
|
+
},
|
|
408
|
+
deps: ['FirestoreOptions'],
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
provide: 'SubscriptionProductRepository',
|
|
412
|
+
useFactory: (options) => {
|
|
413
|
+
return new SubscriptionProductFirestoreRepository(options);
|
|
414
|
+
},
|
|
415
|
+
deps: ['FirestoreOptions'],
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
provide: 'SubscriptionRepository',
|
|
419
|
+
useFactory: (options) => {
|
|
420
|
+
return new SubscriptionFirestoreRepository(options);
|
|
421
|
+
},
|
|
422
|
+
deps: ['FirestoreOptions'],
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
provide: 'UserRepository',
|
|
426
|
+
useFactory: (options) => {
|
|
427
|
+
return new UserFirestoreRepository(options);
|
|
428
|
+
},
|
|
429
|
+
deps: ['FirestoreOptions'],
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
provide: 'UserAddressRepository',
|
|
433
|
+
useFactory: (options, userRepository) => {
|
|
434
|
+
return new UserAddressFirestoreRepository(options, userRepository);
|
|
435
|
+
},
|
|
436
|
+
deps: ['FirestoreOptions', 'UserRepository'],
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
provide: 'UserPaymentMethodRepository',
|
|
440
|
+
useFactory: (options, userRepository) => {
|
|
441
|
+
return new UserPaymentMethodFirestoreRepository(options, userRepository);
|
|
442
|
+
},
|
|
443
|
+
deps: ['FirestoreOptions', 'UserRepository'],
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
provide: 'SubscriptionMaterializationRepository',
|
|
447
|
+
useFactory: (options) => {
|
|
448
|
+
return new SubscriptionMaterializationFirestoreRepository(options);
|
|
449
|
+
},
|
|
450
|
+
deps: ['FirestoreOptions'],
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
provide: 'SubscriptionSummaryRepository',
|
|
454
|
+
useFactory: (options) => {
|
|
455
|
+
return new SubscriptionSummaryFirestoreRepository(options);
|
|
456
|
+
},
|
|
457
|
+
deps: ['FirestoreOptions'],
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
provide: ProductVariantFirestoreRepository,
|
|
461
|
+
useFactory: (options, productRepository) => {
|
|
462
|
+
return new ProductVariantFirestoreRepository(options, productRepository);
|
|
463
|
+
},
|
|
464
|
+
deps: ['FirestoreOptions', ProductFirestoreRepository],
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
provide: 'OrderBlockedRepository',
|
|
468
|
+
useFactory: (options) => {
|
|
469
|
+
return new OrderBlockedFirestoreRepository(options);
|
|
470
|
+
},
|
|
471
|
+
deps: ['FirestoreOptions'],
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
provide: 'LogRepository',
|
|
475
|
+
useFactory: (options) => {
|
|
476
|
+
return new LogFirestoreRepository(options);
|
|
477
|
+
},
|
|
478
|
+
deps: ['FirestoreOptions'],
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
provide: 'SequenceRepository',
|
|
482
|
+
useFactory: (options) => {
|
|
483
|
+
return new SequenceFirestoreRepository(options);
|
|
484
|
+
},
|
|
485
|
+
deps: ['FirestoreOptions'],
|
|
486
|
+
},
|
|
487
|
+
], imports: [AngularElasticSeachModule] }); }
|
|
488
|
+
}
|
|
489
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: AngularFirestoreModule, decorators: [{
|
|
481
490
|
type: NgModule,
|
|
482
491
|
args: [{
|
|
483
|
-
imports: [
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
492
|
+
imports: [AngularElasticSeachModule],
|
|
493
|
+
providers: [
|
|
494
|
+
{
|
|
495
|
+
provide: Firestore,
|
|
496
|
+
useFactory: (injector) => {
|
|
497
|
+
const platformId = injector.get(PLATFORM_ID);
|
|
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,
|
|
489
504
|
ignoreUndefinedProperties: true,
|
|
505
|
+
localCache: memoryLocalCache(),
|
|
490
506
|
});
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
});
|
|
496
|
-
return firestore;
|
|
497
|
-
}),
|
|
498
|
-
],
|
|
499
|
-
providers: [
|
|
507
|
+
return firestore;
|
|
508
|
+
},
|
|
509
|
+
deps: [Injector],
|
|
510
|
+
},
|
|
500
511
|
{
|
|
501
512
|
provide: 'FirestoreOptions',
|
|
502
513
|
useFactory: (firestore, platformId) => ({
|
|
@@ -747,166 +758,166 @@ class AngularHasuraGraphQLModule {
|
|
|
747
758
|
providers: [{ provide: HASURA_OPTIONS, useValue: options }],
|
|
748
759
|
};
|
|
749
760
|
}
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
761
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: AngularHasuraGraphQLModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
762
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.2", ngImport: i0, type: AngularHasuraGraphQLModule }); }
|
|
763
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: AngularHasuraGraphQLModule, providers: [
|
|
764
|
+
{
|
|
765
|
+
provide: 'HasuraConfig',
|
|
766
|
+
useFactory: (options, platformId) => ({
|
|
767
|
+
endpoint: options.endpoint,
|
|
768
|
+
authOptions: options.credentials,
|
|
769
|
+
cache: options.cache,
|
|
770
|
+
interceptors: {
|
|
771
|
+
request: (request) => {
|
|
772
|
+
if (isPlatformBrowser(platformId))
|
|
773
|
+
return request;
|
|
774
|
+
const interval = setInterval(() => { }, 100);
|
|
775
|
+
request.interval = interval;
|
|
763
776
|
return request;
|
|
764
|
-
|
|
765
|
-
request
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
if (isPlatformBrowser(platformId))
|
|
777
|
+
},
|
|
778
|
+
response: (response, request) => {
|
|
779
|
+
if (isPlatformBrowser(platformId))
|
|
780
|
+
return response;
|
|
781
|
+
clearInterval(request.interval);
|
|
770
782
|
return response;
|
|
771
|
-
|
|
772
|
-
return response;
|
|
783
|
+
},
|
|
773
784
|
},
|
|
785
|
+
}),
|
|
786
|
+
deps: [HASURA_OPTIONS, PLATFORM_ID],
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
provide: 'CategoryRepository',
|
|
790
|
+
useExisting: CategoryHasuraGraphQLRepository,
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
provide: CategoryHasuraGraphQLRepository,
|
|
794
|
+
useFactory: (options, productRepository, categoryFilterRepository) => {
|
|
795
|
+
return new CategoryHasuraGraphQLRepository(options, productRepository, categoryFilterRepository);
|
|
774
796
|
},
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
useFactory: (options, productRepository) => {
|
|
900
|
-
return new ProductErrorsHasuraGraphQLRepository(options, productRepository);
|
|
901
|
-
},
|
|
902
|
-
deps: ['HasuraConfig', ProductHasuraGraphQLRepository],
|
|
903
|
-
},
|
|
904
|
-
{
|
|
905
|
-
provide: 'ProductErrorsRepository',
|
|
906
|
-
useExisting: ProductErrorsHasuraGraphQLRepository,
|
|
907
|
-
},
|
|
908
|
-
] });
|
|
909
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, decorators: [{
|
|
797
|
+
deps: ['HasuraConfig', ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
provide: 'ProductRepository',
|
|
801
|
+
useExisting: ProductHasuraGraphQLRepository,
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
provide: ProductHasuraGraphQLRepository,
|
|
805
|
+
useFactory: (hasuraConfig) => {
|
|
806
|
+
return new ProductHasuraGraphQLRepository(hasuraConfig);
|
|
807
|
+
},
|
|
808
|
+
deps: ['HasuraConfig'],
|
|
809
|
+
},
|
|
810
|
+
{
|
|
811
|
+
provide: 'ProductReviewRepository',
|
|
812
|
+
useExisting: ProductReviewHasuraGraphQLRepository,
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
provide: ProductReviewHasuraGraphQLRepository,
|
|
816
|
+
useFactory: (hasuraConfig) => {
|
|
817
|
+
return new ProductReviewHasuraGraphQLRepository(hasuraConfig);
|
|
818
|
+
},
|
|
819
|
+
deps: ['HasuraConfig'],
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
provide: 'VariantRepository',
|
|
823
|
+
useExisting: VariantHasuraGraphQLRepository,
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
provide: VariantHasuraGraphQLRepository,
|
|
827
|
+
useFactory: (hasuraConfig) => {
|
|
828
|
+
return new VariantHasuraGraphQLRepository(hasuraConfig);
|
|
829
|
+
},
|
|
830
|
+
deps: ['HasuraConfig'],
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
provide: 'ProductStockNotificationRepository',
|
|
834
|
+
useExisting: ProductStockNotificationHasuraGraphQLRepository,
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
provide: ProductStockNotificationHasuraGraphQLRepository,
|
|
838
|
+
useFactory: (hasuraConfig) => {
|
|
839
|
+
return new ProductStockNotificationHasuraGraphQLRepository(hasuraConfig);
|
|
840
|
+
},
|
|
841
|
+
deps: ['HasuraConfig'],
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
provide: 'CategoryFilterRepository',
|
|
845
|
+
useExisting: CategoryFilterHasuraGraphQLRepository,
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
provide: CategoryFilterHasuraGraphQLRepository,
|
|
849
|
+
useFactory: (options) => {
|
|
850
|
+
return new CategoryFilterHasuraGraphQLRepository(options);
|
|
851
|
+
},
|
|
852
|
+
deps: ['HasuraConfig'],
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
provide: 'FilterOptionRepository',
|
|
856
|
+
useExisting: FilterOptionHasuraGraphQLRepository,
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
provide: FilterOptionHasuraGraphQLRepository,
|
|
860
|
+
useFactory: (options) => {
|
|
861
|
+
return new FilterOptionHasuraGraphQLRepository(options);
|
|
862
|
+
},
|
|
863
|
+
deps: ['HasuraConfig'],
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
provide: 'FilterRepository',
|
|
867
|
+
useExisting: FilterHasuraGraphQLRepository,
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
provide: FilterHasuraGraphQLRepository,
|
|
871
|
+
useFactory: (options, filterOptionRepository, categoryFilterRepository) => {
|
|
872
|
+
return new FilterHasuraGraphQLRepository(options, filterOptionRepository, categoryFilterRepository);
|
|
873
|
+
},
|
|
874
|
+
deps: ['HasuraConfig', FilterOptionHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
provide: CategoryCollectionChildrenHasuraGraphQLRepository,
|
|
878
|
+
useFactory: (options) => new CategoryCollectionChildrenHasuraGraphQLRepository(options),
|
|
879
|
+
deps: ['HasuraConfig'],
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
provide: 'CategoryCollectionChildrenRepository',
|
|
883
|
+
useExisting: CategoryCollectionChildrenHasuraGraphQLRepository,
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
provide: CategoryProductHasuraGraphQLRepository,
|
|
887
|
+
useFactory: (options) => {
|
|
888
|
+
return new CategoryProductHasuraGraphQLRepository(options);
|
|
889
|
+
},
|
|
890
|
+
deps: ['HasuraConfig'],
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
provide: 'CategoryProductRepository',
|
|
894
|
+
useExisting: CategoryProductHasuraGraphQLRepository,
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
provide: WishlistHasuraGraphQLRepository,
|
|
898
|
+
useFactory: (options, categoryProductRepository) => {
|
|
899
|
+
return new WishlistHasuraGraphQLRepository(options, categoryProductRepository);
|
|
900
|
+
},
|
|
901
|
+
deps: ['HasuraConfig', CategoryProductHasuraGraphQLRepository],
|
|
902
|
+
},
|
|
903
|
+
{
|
|
904
|
+
provide: 'WishlistRepository',
|
|
905
|
+
useExisting: WishlistHasuraGraphQLRepository,
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
provide: ProductErrorsHasuraGraphQLRepository,
|
|
909
|
+
useFactory: (options, productRepository) => {
|
|
910
|
+
return new ProductErrorsHasuraGraphQLRepository(options, productRepository);
|
|
911
|
+
},
|
|
912
|
+
deps: ['HasuraConfig', ProductHasuraGraphQLRepository],
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
provide: 'ProductErrorsRepository',
|
|
916
|
+
useExisting: ProductErrorsHasuraGraphQLRepository,
|
|
917
|
+
},
|
|
918
|
+
] }); }
|
|
919
|
+
}
|
|
920
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: AngularHasuraGraphQLModule, decorators: [{
|
|
910
921
|
type: NgModule,
|
|
911
922
|
args: [{
|
|
912
923
|
providers: [
|
|
@@ -1075,17 +1086,17 @@ class AngularVertexSeachModule {
|
|
|
1075
1086
|
providers: [{ provide: VERTEX_CONFIG, useValue: options }],
|
|
1076
1087
|
};
|
|
1077
1088
|
}
|
|
1089
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: AngularVertexSeachModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1090
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.2", ngImport: i0, type: AngularVertexSeachModule }); }
|
|
1091
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: AngularVertexSeachModule, providers: [
|
|
1092
|
+
{
|
|
1093
|
+
provide: ProductsVertexSearch,
|
|
1094
|
+
useFactory: (configuration) => new ProductsVertexSearch(new VertexAxiosAdapter(configuration)),
|
|
1095
|
+
deps: [VERTEX_CONFIG],
|
|
1096
|
+
},
|
|
1097
|
+
] }); }
|
|
1078
1098
|
}
|
|
1079
|
-
|
|
1080
|
-
AngularVertexSeachModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularVertexSeachModule });
|
|
1081
|
-
AngularVertexSeachModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularVertexSeachModule, providers: [
|
|
1082
|
-
{
|
|
1083
|
-
provide: ProductsVertexSearch,
|
|
1084
|
-
useFactory: (configuration) => new ProductsVertexSearch(new VertexAxiosAdapter(configuration)),
|
|
1085
|
-
deps: [VERTEX_CONFIG],
|
|
1086
|
-
},
|
|
1087
|
-
] });
|
|
1088
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularVertexSeachModule, decorators: [{
|
|
1099
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: AngularVertexSeachModule, decorators: [{
|
|
1089
1100
|
type: NgModule,
|
|
1090
1101
|
args: [{
|
|
1091
1102
|
providers: [
|
|
@@ -1110,10 +1121,10 @@ class CookieDataPersistence {
|
|
|
1110
1121
|
set(key, value) {
|
|
1111
1122
|
return from(cookie.set(key, value)).pipe(map(() => { }));
|
|
1112
1123
|
}
|
|
1124
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CookieDataPersistence, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1125
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CookieDataPersistence }); }
|
|
1113
1126
|
}
|
|
1114
|
-
|
|
1115
|
-
CookieDataPersistence.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CookieDataPersistence });
|
|
1116
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CookieDataPersistence, decorators: [{
|
|
1127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CookieDataPersistence, decorators: [{
|
|
1117
1128
|
type: Injectable
|
|
1118
1129
|
}] });
|
|
1119
1130
|
|
|
@@ -1138,48 +1149,48 @@ class AuthService {
|
|
|
1138
1149
|
getFireUser() {
|
|
1139
1150
|
return authState(this.angularFireAuth).pipe(catchError(() => of(null)));
|
|
1140
1151
|
}
|
|
1152
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: AuthService, deps: [{ token: i1.Auth }, { token: 'UserRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1153
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: AuthService }); }
|
|
1141
1154
|
}
|
|
1142
|
-
|
|
1143
|
-
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService });
|
|
1144
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, decorators: [{
|
|
1155
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: AuthService, decorators: [{
|
|
1145
1156
|
type: Injectable
|
|
1146
|
-
}], ctorParameters:
|
|
1157
|
+
}], ctorParameters: () => [{ type: i1.Auth }, { type: undefined, decorators: [{
|
|
1147
1158
|
type: Inject,
|
|
1148
1159
|
args: ['UserRepository']
|
|
1149
|
-
}] }]
|
|
1160
|
+
}] }] });
|
|
1150
1161
|
|
|
1151
1162
|
class CheckoutRepositoriesFacade {
|
|
1152
1163
|
constructor(checkoutRepository, userRepository) {
|
|
1153
1164
|
this.checkoutRepository = checkoutRepository;
|
|
1154
1165
|
this.userRepository = userRepository;
|
|
1155
1166
|
}
|
|
1167
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CheckoutRepositoriesFacade, deps: [{ token: 'CheckoutRepository' }, { token: 'UserRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1168
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CheckoutRepositoriesFacade }); }
|
|
1156
1169
|
}
|
|
1157
|
-
|
|
1158
|
-
CheckoutRepositoriesFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutRepositoriesFacade });
|
|
1159
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutRepositoriesFacade, decorators: [{
|
|
1170
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CheckoutRepositoriesFacade, decorators: [{
|
|
1160
1171
|
type: Injectable
|
|
1161
|
-
}], ctorParameters:
|
|
1172
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1162
1173
|
type: Inject,
|
|
1163
1174
|
args: ['CheckoutRepository']
|
|
1164
1175
|
}] }, { type: undefined, decorators: [{
|
|
1165
1176
|
type: Inject,
|
|
1166
1177
|
args: ['UserRepository']
|
|
1167
|
-
}] }]
|
|
1178
|
+
}] }] });
|
|
1168
1179
|
|
|
1169
1180
|
class CheckoutDependenciesFacade {
|
|
1170
1181
|
constructor(dataPersistence, httpClient) {
|
|
1171
1182
|
this.dataPersistence = dataPersistence;
|
|
1172
1183
|
this.httpClient = httpClient;
|
|
1173
1184
|
}
|
|
1185
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CheckoutDependenciesFacade, deps: [{ token: PERSISTENCE_PROVIDER }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1186
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CheckoutDependenciesFacade }); }
|
|
1174
1187
|
}
|
|
1175
|
-
|
|
1176
|
-
CheckoutDependenciesFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutDependenciesFacade });
|
|
1177
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutDependenciesFacade, decorators: [{
|
|
1188
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CheckoutDependenciesFacade, decorators: [{
|
|
1178
1189
|
type: Injectable
|
|
1179
|
-
}], ctorParameters:
|
|
1190
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1180
1191
|
type: Inject,
|
|
1181
1192
|
args: [PERSISTENCE_PROVIDER]
|
|
1182
|
-
}] }, { type: i1$
|
|
1193
|
+
}] }, { type: i1$1.HttpClient }] });
|
|
1183
1194
|
|
|
1184
1195
|
class ConfigurationFacade {
|
|
1185
1196
|
constructor(defaultShop, firebaseOptions) {
|
|
@@ -1192,18 +1203,18 @@ class ConfigurationFacade {
|
|
|
1192
1203
|
getProjectId() {
|
|
1193
1204
|
return this.firebaseOptions.projectId;
|
|
1194
1205
|
}
|
|
1206
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: ConfigurationFacade, deps: [{ token: DEFAULT_SHOP }, { token: FIREBASE_OPTIONS }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1207
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: ConfigurationFacade }); }
|
|
1195
1208
|
}
|
|
1196
|
-
|
|
1197
|
-
ConfigurationFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ConfigurationFacade });
|
|
1198
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ConfigurationFacade, decorators: [{
|
|
1209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: ConfigurationFacade, decorators: [{
|
|
1199
1210
|
type: Injectable
|
|
1200
|
-
}], ctorParameters:
|
|
1211
|
+
}], ctorParameters: () => [{ type: i3.Shops, decorators: [{
|
|
1201
1212
|
type: Inject,
|
|
1202
1213
|
args: [DEFAULT_SHOP]
|
|
1203
1214
|
}] }, { type: undefined, decorators: [{
|
|
1204
1215
|
type: Inject,
|
|
1205
1216
|
args: [FIREBASE_OPTIONS]
|
|
1206
|
-
}] }]
|
|
1217
|
+
}] }] });
|
|
1207
1218
|
|
|
1208
1219
|
class CheckoutService {
|
|
1209
1220
|
constructor(repositoriesFacade, dependenciesFacade, configurationFacade) {
|
|
@@ -1278,7 +1289,7 @@ class CheckoutService {
|
|
|
1278
1289
|
})), concatMap(() => this.getCheckout()));
|
|
1279
1290
|
}
|
|
1280
1291
|
createOrder(checkoutPayload, paymentProvider, applicationVersion) {
|
|
1281
|
-
return this.dependenciesFacade.httpClient.post(`${this.checkoutUrl}/
|
|
1292
|
+
return this.dependenciesFacade.httpClient.post(`${this.checkoutUrl}/checkoutV5`, {
|
|
1282
1293
|
data: {
|
|
1283
1294
|
...checkoutPayload,
|
|
1284
1295
|
applicationVersion,
|
|
@@ -1295,12 +1306,12 @@ class CheckoutService {
|
|
|
1295
1306
|
await this.dependenciesFacade.dataPersistence.set('checkoutId', checkout.id).toPromise();
|
|
1296
1307
|
return checkout;
|
|
1297
1308
|
}
|
|
1309
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CheckoutService, deps: [{ token: CheckoutRepositoriesFacade }, { token: CheckoutDependenciesFacade }, { token: ConfigurationFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1310
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CheckoutService }); }
|
|
1298
1311
|
}
|
|
1299
|
-
|
|
1300
|
-
CheckoutService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutService });
|
|
1301
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutService, decorators: [{
|
|
1312
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CheckoutService, decorators: [{
|
|
1302
1313
|
type: Injectable
|
|
1303
|
-
}], ctorParameters:
|
|
1314
|
+
}], ctorParameters: () => [{ type: CheckoutRepositoriesFacade }, { type: CheckoutDependenciesFacade }, { type: ConfigurationFacade }] });
|
|
1304
1315
|
|
|
1305
1316
|
class CartServicesFacade {
|
|
1306
1317
|
constructor(authService, checkoutService, httpClient) {
|
|
@@ -1308,12 +1319,12 @@ class CartServicesFacade {
|
|
|
1308
1319
|
this.checkoutService = checkoutService;
|
|
1309
1320
|
this.httpClient = httpClient;
|
|
1310
1321
|
}
|
|
1322
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CartServicesFacade, deps: [{ token: AuthService }, { token: CheckoutService }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1323
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CartServicesFacade }); }
|
|
1311
1324
|
}
|
|
1312
|
-
|
|
1313
|
-
CartServicesFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartServicesFacade });
|
|
1314
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartServicesFacade, decorators: [{
|
|
1325
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CartServicesFacade, decorators: [{
|
|
1315
1326
|
type: Injectable
|
|
1316
|
-
}], ctorParameters:
|
|
1327
|
+
}], ctorParameters: () => [{ type: AuthService }, { type: CheckoutService }, { type: i1$1.HttpClient }] });
|
|
1317
1328
|
|
|
1318
1329
|
class CartService {
|
|
1319
1330
|
constructor(servicesFacade, configurationFacade) {
|
|
@@ -1372,12 +1383,12 @@ class CartService {
|
|
|
1372
1383
|
buildCartFromCheckout(checkoutData) {
|
|
1373
1384
|
return this.servicesFacade.checkoutService.getCheckout(checkoutData).pipe(map((checkout) => checkout.lineItems), concatMap((lineItems) => of(this.generateCartObject(lineItems))));
|
|
1374
1385
|
}
|
|
1386
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CartService, deps: [{ token: CartServicesFacade }, { token: ConfigurationFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1387
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CartService }); }
|
|
1375
1388
|
}
|
|
1376
|
-
|
|
1377
|
-
CartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService });
|
|
1378
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, decorators: [{
|
|
1389
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CartService, decorators: [{
|
|
1379
1390
|
type: Injectable
|
|
1380
|
-
}], ctorParameters:
|
|
1391
|
+
}], ctorParameters: () => [{ type: CartServicesFacade }, { type: ConfigurationFacade }] });
|
|
1381
1392
|
|
|
1382
1393
|
class NewCategoryStructureAdapter {
|
|
1383
1394
|
constructor(categoryRepository) {
|
|
@@ -1409,15 +1420,15 @@ class NewCategoryStructureAdapter {
|
|
|
1409
1420
|
category.brandCategory;
|
|
1410
1421
|
return collectionCategory ? this.categoryRepository.get({ id: category.id }) : category;
|
|
1411
1422
|
}
|
|
1423
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: NewCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1424
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: NewCategoryStructureAdapter }); }
|
|
1412
1425
|
}
|
|
1413
|
-
|
|
1414
|
-
NewCategoryStructureAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter });
|
|
1415
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter, decorators: [{
|
|
1426
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: NewCategoryStructureAdapter, decorators: [{
|
|
1416
1427
|
type: Injectable
|
|
1417
|
-
}], ctorParameters:
|
|
1428
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1418
1429
|
type: Inject,
|
|
1419
1430
|
args: ['CategoryRepository']
|
|
1420
|
-
}] }]
|
|
1431
|
+
}] }] });
|
|
1421
1432
|
|
|
1422
1433
|
class OldCategoryStructureAdapter {
|
|
1423
1434
|
constructor(categoryRepository) {
|
|
@@ -1429,15 +1440,15 @@ class OldCategoryStructureAdapter {
|
|
|
1429
1440
|
: await this.categoryRepository.get({ id: category.id }).then((categoryFound) => categoryFound.products);
|
|
1430
1441
|
return { id: { operator: Where.IN, value: productsIds } };
|
|
1431
1442
|
}
|
|
1443
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: OldCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1444
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: OldCategoryStructureAdapter }); }
|
|
1432
1445
|
}
|
|
1433
|
-
|
|
1434
|
-
OldCategoryStructureAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter });
|
|
1435
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter, decorators: [{
|
|
1446
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: OldCategoryStructureAdapter, decorators: [{
|
|
1436
1447
|
type: Injectable
|
|
1437
|
-
}], ctorParameters:
|
|
1448
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1438
1449
|
type: Inject,
|
|
1439
1450
|
args: ['CategoryRepository']
|
|
1440
|
-
}] }]
|
|
1451
|
+
}] }] });
|
|
1441
1452
|
|
|
1442
1453
|
class CatalogSearchContext {
|
|
1443
1454
|
constructor(categoryStrategy, termStrategy, profileStrategy) {
|
|
@@ -1600,12 +1611,12 @@ class CategorySearchStrategy {
|
|
|
1600
1611
|
distinct: totalResult.distinct,
|
|
1601
1612
|
};
|
|
1602
1613
|
}
|
|
1614
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CategorySearchStrategy, deps: [{ token: CatalogRepositoryService }, { token: CatalogHelpersService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1615
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CategorySearchStrategy }); }
|
|
1603
1616
|
}
|
|
1604
|
-
|
|
1605
|
-
CategorySearchStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategorySearchStrategy });
|
|
1606
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategorySearchStrategy, decorators: [{
|
|
1617
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CategorySearchStrategy, decorators: [{
|
|
1607
1618
|
type: Injectable
|
|
1608
|
-
}], ctorParameters:
|
|
1619
|
+
}], ctorParameters: () => [{ type: CatalogRepositoryService }, { type: CatalogHelpersService }] });
|
|
1609
1620
|
|
|
1610
1621
|
class ProfileSearchStrategy {
|
|
1611
1622
|
constructor(repositoryService, helpersService) {
|
|
@@ -1637,12 +1648,12 @@ class ProfileSearchStrategy {
|
|
|
1637
1648
|
};
|
|
1638
1649
|
return productCatalog.productRepository.findCatalog(repoParams, mainGender || (shop === Shops.MENSMARKET ? 'male' : 'female'), optionsCache);
|
|
1639
1650
|
}
|
|
1651
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: ProfileSearchStrategy, deps: [{ token: CatalogRepositoryService }, { token: CatalogHelpersService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1652
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: ProfileSearchStrategy }); }
|
|
1640
1653
|
}
|
|
1641
|
-
|
|
1642
|
-
ProfileSearchStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProfileSearchStrategy });
|
|
1643
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProfileSearchStrategy, decorators: [{
|
|
1654
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: ProfileSearchStrategy, decorators: [{
|
|
1644
1655
|
type: Injectable
|
|
1645
|
-
}], ctorParameters:
|
|
1656
|
+
}], ctorParameters: () => [{ type: CatalogRepositoryService }, { type: CatalogHelpersService }] });
|
|
1646
1657
|
|
|
1647
1658
|
class TermSearchStrategy {
|
|
1648
1659
|
constructor(repositoryService, helpersService) {
|
|
@@ -1755,12 +1766,12 @@ class TermSearchStrategy {
|
|
|
1755
1766
|
.search(term, 999, shop === Shops.GLAMSHOP ? 'female' : 'male')
|
|
1756
1767
|
.then((products) => [...new Set(products.map((product) => product.id))]));
|
|
1757
1768
|
}
|
|
1769
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: TermSearchStrategy, deps: [{ token: CatalogRepositoryService }, { token: CatalogHelpersService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1770
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: TermSearchStrategy }); }
|
|
1758
1771
|
}
|
|
1759
|
-
|
|
1760
|
-
TermSearchStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: TermSearchStrategy });
|
|
1761
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: TermSearchStrategy, decorators: [{
|
|
1772
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: TermSearchStrategy, decorators: [{
|
|
1762
1773
|
type: Injectable
|
|
1763
|
-
}], ctorParameters:
|
|
1774
|
+
}], ctorParameters: () => [{ type: CatalogRepositoryService }, { type: CatalogHelpersService }] });
|
|
1764
1775
|
|
|
1765
1776
|
class CatalogStrategiesFacade {
|
|
1766
1777
|
constructor(categoryStrategy, termStrategy, profileStrategy) {
|
|
@@ -1768,12 +1779,12 @@ class CatalogStrategiesFacade {
|
|
|
1768
1779
|
this.termStrategy = termStrategy;
|
|
1769
1780
|
this.profileStrategy = profileStrategy;
|
|
1770
1781
|
}
|
|
1782
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CatalogStrategiesFacade, deps: [{ token: CategorySearchStrategy }, { token: TermSearchStrategy }, { token: ProfileSearchStrategy }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1783
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CatalogStrategiesFacade }); }
|
|
1771
1784
|
}
|
|
1772
|
-
|
|
1773
|
-
CatalogStrategiesFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogStrategiesFacade });
|
|
1774
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogStrategiesFacade, decorators: [{
|
|
1785
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CatalogStrategiesFacade, decorators: [{
|
|
1775
1786
|
type: Injectable
|
|
1776
|
-
}], ctorParameters:
|
|
1787
|
+
}], ctorParameters: () => [{ type: CategorySearchStrategy }, { type: TermSearchStrategy }, { type: ProfileSearchStrategy }] });
|
|
1777
1788
|
|
|
1778
1789
|
class CatalogServiceFacade {
|
|
1779
1790
|
constructor(helpersService, strategiesFacade, shop) {
|
|
@@ -1786,33 +1797,33 @@ class CatalogServiceFacade {
|
|
|
1786
1797
|
getCatalogService() {
|
|
1787
1798
|
return this.catalogService;
|
|
1788
1799
|
}
|
|
1800
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CatalogServiceFacade, deps: [{ token: CatalogHelpersService }, { token: CatalogStrategiesFacade }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1801
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CatalogServiceFacade }); }
|
|
1789
1802
|
}
|
|
1790
|
-
|
|
1791
|
-
CatalogServiceFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogServiceFacade });
|
|
1792
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogServiceFacade, decorators: [{
|
|
1803
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CatalogServiceFacade, decorators: [{
|
|
1793
1804
|
type: Injectable
|
|
1794
|
-
}], ctorParameters:
|
|
1805
|
+
}], ctorParameters: () => [{ type: CatalogHelpersService }, { type: CatalogStrategiesFacade }, { type: i3.Shops, decorators: [{
|
|
1795
1806
|
type: Inject,
|
|
1796
1807
|
args: [DEFAULT_SHOP]
|
|
1797
|
-
}] }]
|
|
1808
|
+
}] }] });
|
|
1798
1809
|
|
|
1799
1810
|
class CategoryRepositoryFacade {
|
|
1800
1811
|
constructor(categoryRepository, categoryFilterRepository) {
|
|
1801
1812
|
this.categoryRepository = categoryRepository;
|
|
1802
1813
|
this.categoryFilterRepository = categoryFilterRepository;
|
|
1803
1814
|
}
|
|
1815
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CategoryRepositoryFacade, deps: [{ token: 'CategoryRepository' }, { token: 'CategoryFilterRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1816
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CategoryRepositoryFacade }); }
|
|
1804
1817
|
}
|
|
1805
|
-
|
|
1806
|
-
CategoryRepositoryFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryRepositoryFacade });
|
|
1807
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryRepositoryFacade, decorators: [{
|
|
1818
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CategoryRepositoryFacade, decorators: [{
|
|
1808
1819
|
type: Injectable
|
|
1809
|
-
}], ctorParameters:
|
|
1820
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1810
1821
|
type: Inject,
|
|
1811
1822
|
args: ['CategoryRepository']
|
|
1812
1823
|
}] }, { type: undefined, decorators: [{
|
|
1813
1824
|
type: Inject,
|
|
1814
1825
|
args: ['CategoryFilterRepository']
|
|
1815
|
-
}] }]
|
|
1826
|
+
}] }] });
|
|
1816
1827
|
|
|
1817
1828
|
class CategoryService {
|
|
1818
1829
|
constructor(categoryFacade, productCatalog, shop) {
|
|
@@ -1831,38 +1842,41 @@ class CategoryService {
|
|
|
1831
1842
|
.find({ filters: { brandCategory: true, shop: options?.shop || this.shop }, orderBy: { name: 'asc' } }, optionsCache)
|
|
1832
1843
|
.then(({ data }) => data.filter((category) => brands.includes(category.conditions.brand)));
|
|
1833
1844
|
}
|
|
1845
|
+
async getMenuBrands() {
|
|
1846
|
+
return this.categoryFacade.categoryRepository.getBrandsWithProducts();
|
|
1847
|
+
}
|
|
1834
1848
|
async fetchFilterOptions(category, optionsCache) {
|
|
1835
1849
|
return await this.categoryFacade.categoryFilterRepository
|
|
1836
1850
|
.find({ filters: { categoryId: +category.id } }, optionsCache)
|
|
1837
1851
|
.then(({ data }) => data.map((categoryFilter) => categoryFilter.filter));
|
|
1838
1852
|
}
|
|
1853
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CategoryService, deps: [{ token: CategoryRepositoryFacade }, { token: ProductCatalogFacade }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1854
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CategoryService }); }
|
|
1839
1855
|
}
|
|
1840
|
-
|
|
1841
|
-
CategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService });
|
|
1842
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService, decorators: [{
|
|
1856
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CategoryService, decorators: [{
|
|
1843
1857
|
type: Injectable
|
|
1844
|
-
}], ctorParameters:
|
|
1858
|
+
}], ctorParameters: () => [{ type: CategoryRepositoryFacade }, { type: ProductCatalogFacade }, { type: i3.Shops, decorators: [{
|
|
1845
1859
|
type: Inject,
|
|
1846
1860
|
args: [DEFAULT_SHOP]
|
|
1847
|
-
}] }]
|
|
1861
|
+
}] }] });
|
|
1848
1862
|
|
|
1849
1863
|
class ProductCatalogFacade {
|
|
1850
1864
|
constructor(productRepository, categoryStructureAdapter) {
|
|
1851
1865
|
this.productRepository = productRepository;
|
|
1852
1866
|
this.categoryStructureAdapter = categoryStructureAdapter;
|
|
1853
1867
|
}
|
|
1868
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: ProductCatalogFacade, deps: [{ token: 'ProductRepository' }, { token: CATEGORY_STRUCTURE }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1869
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: ProductCatalogFacade }); }
|
|
1854
1870
|
}
|
|
1855
|
-
|
|
1856
|
-
ProductCatalogFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductCatalogFacade });
|
|
1857
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductCatalogFacade, decorators: [{
|
|
1871
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: ProductCatalogFacade, decorators: [{
|
|
1858
1872
|
type: Injectable
|
|
1859
|
-
}], ctorParameters:
|
|
1873
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1860
1874
|
type: Inject,
|
|
1861
1875
|
args: ['ProductRepository']
|
|
1862
1876
|
}] }, { type: undefined, decorators: [{
|
|
1863
1877
|
type: Inject,
|
|
1864
1878
|
args: [CATEGORY_STRUCTURE]
|
|
1865
|
-
}] }]
|
|
1879
|
+
}] }] });
|
|
1866
1880
|
|
|
1867
1881
|
class CategoryServiceFacade {
|
|
1868
1882
|
constructor(categoryRepositoryFacade, productCatalogFacade, shop) {
|
|
@@ -1874,15 +1888,15 @@ class CategoryServiceFacade {
|
|
|
1874
1888
|
getCategoryService() {
|
|
1875
1889
|
return this.categoryService;
|
|
1876
1890
|
}
|
|
1891
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CategoryServiceFacade, deps: [{ token: CategoryRepositoryFacade }, { token: ProductCatalogFacade }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1892
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CategoryServiceFacade }); }
|
|
1877
1893
|
}
|
|
1878
|
-
|
|
1879
|
-
CategoryServiceFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryServiceFacade });
|
|
1880
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryServiceFacade, decorators: [{
|
|
1894
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CategoryServiceFacade, decorators: [{
|
|
1881
1895
|
type: Injectable
|
|
1882
|
-
}], ctorParameters:
|
|
1896
|
+
}], ctorParameters: () => [{ type: CategoryRepositoryFacade }, { type: ProductCatalogFacade }, { type: i3.Shops, decorators: [{
|
|
1883
1897
|
type: Inject,
|
|
1884
1898
|
args: [DEFAULT_SHOP]
|
|
1885
|
-
}] }]
|
|
1899
|
+
}] }] });
|
|
1886
1900
|
|
|
1887
1901
|
class BrandManagerHelper {
|
|
1888
1902
|
constructor(productCatalog) {
|
|
@@ -1929,12 +1943,12 @@ class BrandManagerHelper {
|
|
|
1929
1943
|
}, options.mainGender)
|
|
1930
1944
|
.then((result) => result.distinct.brand);
|
|
1931
1945
|
}
|
|
1946
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: BrandManagerHelper, deps: [{ token: ProductCatalogFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1947
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: BrandManagerHelper }); }
|
|
1932
1948
|
}
|
|
1933
|
-
|
|
1934
|
-
BrandManagerHelper.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: BrandManagerHelper });
|
|
1935
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: BrandManagerHelper, decorators: [{
|
|
1949
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: BrandManagerHelper, decorators: [{
|
|
1936
1950
|
type: Injectable
|
|
1937
|
-
}], ctorParameters:
|
|
1951
|
+
}], ctorParameters: () => [{ type: ProductCatalogFacade }] });
|
|
1938
1952
|
|
|
1939
1953
|
class CatalogFilterHelper {
|
|
1940
1954
|
buildFilterQuery(filters) {
|
|
@@ -1970,10 +1984,10 @@ class CatalogFilterHelper {
|
|
|
1970
1984
|
}
|
|
1971
1985
|
return filterQuery;
|
|
1972
1986
|
}
|
|
1987
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CatalogFilterHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1988
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CatalogFilterHelper }); }
|
|
1973
1989
|
}
|
|
1974
|
-
|
|
1975
|
-
CatalogFilterHelper.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogFilterHelper });
|
|
1976
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogFilterHelper, decorators: [{
|
|
1990
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CatalogFilterHelper, decorators: [{
|
|
1977
1991
|
type: Injectable
|
|
1978
1992
|
}] });
|
|
1979
1993
|
|
|
@@ -2020,10 +2034,10 @@ class CatalogSortHelper {
|
|
|
2020
2034
|
return {};
|
|
2021
2035
|
}
|
|
2022
2036
|
}
|
|
2037
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CatalogSortHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2038
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CatalogSortHelper }); }
|
|
2023
2039
|
}
|
|
2024
|
-
|
|
2025
|
-
CatalogSortHelper.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogSortHelper });
|
|
2026
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogSortHelper, decorators: [{
|
|
2040
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CatalogSortHelper, decorators: [{
|
|
2027
2041
|
type: Injectable
|
|
2028
2042
|
}] });
|
|
2029
2043
|
|
|
@@ -2058,10 +2072,10 @@ class ProductFieldsHelper {
|
|
|
2058
2072
|
'group',
|
|
2059
2073
|
];
|
|
2060
2074
|
}
|
|
2075
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: ProductFieldsHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2076
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: ProductFieldsHelper }); }
|
|
2061
2077
|
}
|
|
2062
|
-
|
|
2063
|
-
ProductFieldsHelper.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductFieldsHelper });
|
|
2064
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductFieldsHelper, decorators: [{
|
|
2078
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: ProductFieldsHelper, decorators: [{
|
|
2065
2079
|
type: Injectable
|
|
2066
2080
|
}] });
|
|
2067
2081
|
|
|
@@ -2080,12 +2094,12 @@ class CatalogOperationsFacade {
|
|
|
2080
2094
|
getFieldsHelper() {
|
|
2081
2095
|
return this.fieldsHelper;
|
|
2082
2096
|
}
|
|
2097
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CatalogOperationsFacade, deps: [{ token: CatalogFilterHelper }, { token: CatalogSortHelper }, { token: ProductFieldsHelper }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2098
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CatalogOperationsFacade }); }
|
|
2083
2099
|
}
|
|
2084
|
-
|
|
2085
|
-
CatalogOperationsFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogOperationsFacade });
|
|
2086
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogOperationsFacade, decorators: [{
|
|
2100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CatalogOperationsFacade, decorators: [{
|
|
2087
2101
|
type: Injectable
|
|
2088
|
-
}], ctorParameters:
|
|
2102
|
+
}], ctorParameters: () => [{ type: CatalogFilterHelper }, { type: CatalogSortHelper }, { type: ProductFieldsHelper }] });
|
|
2089
2103
|
|
|
2090
2104
|
class ProductManagementFacade {
|
|
2091
2105
|
constructor(brandManager, productServices) {
|
|
@@ -2098,15 +2112,15 @@ class ProductManagementFacade {
|
|
|
2098
2112
|
getProductServices() {
|
|
2099
2113
|
return this.productServices;
|
|
2100
2114
|
}
|
|
2115
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: ProductManagementFacade, deps: [{ token: BrandManagerHelper }, { token: 'ProductServicesFacade' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2116
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: ProductManagementFacade }); }
|
|
2101
2117
|
}
|
|
2102
|
-
|
|
2103
|
-
ProductManagementFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductManagementFacade });
|
|
2104
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductManagementFacade, decorators: [{
|
|
2118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: ProductManagementFacade, decorators: [{
|
|
2105
2119
|
type: Injectable
|
|
2106
|
-
}], ctorParameters:
|
|
2120
|
+
}], ctorParameters: () => [{ type: BrandManagerHelper }, { type: undefined, decorators: [{
|
|
2107
2121
|
type: Inject,
|
|
2108
2122
|
args: ['ProductServicesFacade']
|
|
2109
|
-
}] }]
|
|
2123
|
+
}] }] });
|
|
2110
2124
|
|
|
2111
2125
|
class CatalogHelpersService {
|
|
2112
2126
|
constructor(catalogOperations, productManagement) {
|
|
@@ -2128,12 +2142,12 @@ class CatalogHelpersService {
|
|
|
2128
2142
|
getProductServices() {
|
|
2129
2143
|
return this.productManagement.getProductServices();
|
|
2130
2144
|
}
|
|
2145
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CatalogHelpersService, deps: [{ token: CatalogOperationsFacade }, { token: ProductManagementFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2146
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CatalogHelpersService }); }
|
|
2131
2147
|
}
|
|
2132
|
-
|
|
2133
|
-
CatalogHelpersService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogHelpersService });
|
|
2134
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogHelpersService, decorators: [{
|
|
2148
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CatalogHelpersService, decorators: [{
|
|
2135
2149
|
type: Injectable
|
|
2136
|
-
}], ctorParameters:
|
|
2150
|
+
}], ctorParameters: () => [{ type: CatalogOperationsFacade }, { type: ProductManagementFacade }] });
|
|
2137
2151
|
|
|
2138
2152
|
class CatalogRepositoryService {
|
|
2139
2153
|
constructor(productCatalog, productServices) {
|
|
@@ -2146,15 +2160,15 @@ class CatalogRepositoryService {
|
|
|
2146
2160
|
getProductServices() {
|
|
2147
2161
|
return this.productServices;
|
|
2148
2162
|
}
|
|
2163
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CatalogRepositoryService, deps: [{ token: ProductCatalogFacade }, { token: 'ProductServicesFacade' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2164
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CatalogRepositoryService }); }
|
|
2149
2165
|
}
|
|
2150
|
-
|
|
2151
|
-
CatalogRepositoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogRepositoryService });
|
|
2152
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogRepositoryService, decorators: [{
|
|
2166
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CatalogRepositoryService, decorators: [{
|
|
2153
2167
|
type: Injectable
|
|
2154
|
-
}], ctorParameters:
|
|
2168
|
+
}], ctorParameters: () => [{ type: ProductCatalogFacade }, { type: undefined, decorators: [{
|
|
2155
2169
|
type: Inject,
|
|
2156
2170
|
args: ['ProductServicesFacade']
|
|
2157
|
-
}] }]
|
|
2171
|
+
}] }] });
|
|
2158
2172
|
|
|
2159
2173
|
class CatalogService {
|
|
2160
2174
|
constructor(searchContext, helpersService, shop) {
|
|
@@ -2248,15 +2262,15 @@ class CatalogService {
|
|
|
2248
2262
|
hasCategory(options) {
|
|
2249
2263
|
return 'category' in options;
|
|
2250
2264
|
}
|
|
2265
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CatalogService, deps: [{ token: CatalogSearchContext }, { token: CatalogHelpersService }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2266
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CatalogService }); }
|
|
2251
2267
|
}
|
|
2252
|
-
|
|
2253
|
-
CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService });
|
|
2254
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
|
|
2268
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CatalogService, decorators: [{
|
|
2255
2269
|
type: Injectable
|
|
2256
|
-
}], ctorParameters:
|
|
2270
|
+
}], ctorParameters: () => [{ type: CatalogSearchContext }, { type: CatalogHelpersService }, { type: i3.Shops, decorators: [{
|
|
2257
2271
|
type: Inject,
|
|
2258
2272
|
args: [DEFAULT_SHOP]
|
|
2259
|
-
}] }]
|
|
2273
|
+
}] }] });
|
|
2260
2274
|
|
|
2261
2275
|
var ProductSorts;
|
|
2262
2276
|
(function (ProductSorts) {
|
|
@@ -2506,12 +2520,12 @@ class WishlistService {
|
|
|
2506
2520
|
productBrand: product.brand,
|
|
2507
2521
|
};
|
|
2508
2522
|
}
|
|
2523
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: WishlistService, deps: [{ token: 'WishlistRepository' }, { token: 'ProductRepository' }, { token: 'LogRepository' }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2524
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: WishlistService }); }
|
|
2509
2525
|
}
|
|
2510
|
-
|
|
2511
|
-
WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
|
|
2512
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
|
|
2526
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: WishlistService, decorators: [{
|
|
2513
2527
|
type: Injectable
|
|
2514
|
-
}], ctorParameters:
|
|
2528
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2515
2529
|
type: Inject,
|
|
2516
2530
|
args: ['WishlistRepository']
|
|
2517
2531
|
}] }, { type: undefined, decorators: [{
|
|
@@ -2523,7 +2537,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
2523
2537
|
}] }, { type: i3.Shops, decorators: [{
|
|
2524
2538
|
type: Inject,
|
|
2525
2539
|
args: [DEFAULT_SHOP]
|
|
2526
|
-
}] }]
|
|
2540
|
+
}] }] });
|
|
2527
2541
|
|
|
2528
2542
|
class CouponRepositoriesFacade {
|
|
2529
2543
|
constructor(couponRepository, orderRepository, categoryRepository) {
|
|
@@ -2531,12 +2545,12 @@ class CouponRepositoriesFacade {
|
|
|
2531
2545
|
this.orderRepository = orderRepository;
|
|
2532
2546
|
this.categoryRepository = categoryRepository;
|
|
2533
2547
|
}
|
|
2548
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CouponRepositoriesFacade, deps: [{ token: 'CouponRepository' }, { token: 'OrderRepository' }, { token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2549
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CouponRepositoriesFacade }); }
|
|
2534
2550
|
}
|
|
2535
|
-
|
|
2536
|
-
CouponRepositoriesFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponRepositoriesFacade });
|
|
2537
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponRepositoriesFacade, decorators: [{
|
|
2551
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CouponRepositoriesFacade, decorators: [{
|
|
2538
2552
|
type: Injectable
|
|
2539
|
-
}], ctorParameters:
|
|
2553
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2540
2554
|
type: Inject,
|
|
2541
2555
|
args: ['CouponRepository']
|
|
2542
2556
|
}] }, { type: undefined, decorators: [{
|
|
@@ -2545,7 +2559,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
2545
2559
|
}] }, { type: undefined, decorators: [{
|
|
2546
2560
|
type: Inject,
|
|
2547
2561
|
args: ['CategoryRepository']
|
|
2548
|
-
}] }]
|
|
2562
|
+
}] }] });
|
|
2549
2563
|
|
|
2550
2564
|
class CouponService {
|
|
2551
2565
|
constructor(repositoriesFacade, configurationFacade) {
|
|
@@ -2776,15 +2790,15 @@ class CouponService {
|
|
|
2776
2790
|
}
|
|
2777
2791
|
return couponUseLimits;
|
|
2778
2792
|
}
|
|
2793
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CouponService, deps: [{ token: CouponRepositoriesFacade }, { token: ConfigurationFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2794
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CouponService, providedIn: 'root' }); }
|
|
2779
2795
|
}
|
|
2780
|
-
|
|
2781
|
-
CouponService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, providedIn: 'root' });
|
|
2782
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, decorators: [{
|
|
2796
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CouponService, decorators: [{
|
|
2783
2797
|
type: Injectable,
|
|
2784
2798
|
args: [{
|
|
2785
2799
|
providedIn: 'root',
|
|
2786
2800
|
}]
|
|
2787
|
-
}], ctorParameters:
|
|
2801
|
+
}], ctorParameters: () => [{ type: CouponRepositoriesFacade }, { type: ConfigurationFacade }] });
|
|
2788
2802
|
|
|
2789
2803
|
class CheckoutSubscriptionService {
|
|
2790
2804
|
constructor(checkoutSubscriptionRepository, dataPersistence, couponService) {
|
|
@@ -2821,18 +2835,18 @@ class CheckoutSubscriptionService {
|
|
|
2821
2835
|
await this.dataPersistence.set('checkoutSubscriptionId', checkout.id).toPromise();
|
|
2822
2836
|
return checkout;
|
|
2823
2837
|
}
|
|
2838
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CheckoutSubscriptionService, deps: [{ token: 'CheckoutSubscriptionRepository' }, { token: PERSISTENCE_PROVIDER }, { token: CouponService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2839
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CheckoutSubscriptionService }); }
|
|
2824
2840
|
}
|
|
2825
|
-
|
|
2826
|
-
CheckoutSubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService });
|
|
2827
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService, decorators: [{
|
|
2841
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CheckoutSubscriptionService, decorators: [{
|
|
2828
2842
|
type: Injectable
|
|
2829
|
-
}], ctorParameters:
|
|
2843
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2830
2844
|
type: Inject,
|
|
2831
2845
|
args: ['CheckoutSubscriptionRepository']
|
|
2832
2846
|
}] }, { type: undefined, decorators: [{
|
|
2833
2847
|
type: Inject,
|
|
2834
2848
|
args: [PERSISTENCE_PROVIDER]
|
|
2835
|
-
}] }, { type: CouponService }]
|
|
2849
|
+
}] }, { type: CouponService }] });
|
|
2836
2850
|
|
|
2837
2851
|
class UtilHelper {
|
|
2838
2852
|
static createSlug(name) {
|
|
@@ -2858,12 +2872,12 @@ class HomeShopRepositoriesFacade {
|
|
|
2858
2872
|
this.homeRepository = homeRepository;
|
|
2859
2873
|
this.productRepository = productRepository;
|
|
2860
2874
|
}
|
|
2875
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: HomeShopRepositoriesFacade, deps: [{ token: 'CategoryRepository' }, { token: 'HomeRepository' }, { token: 'ProductRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2876
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: HomeShopRepositoriesFacade }); }
|
|
2861
2877
|
}
|
|
2862
|
-
|
|
2863
|
-
HomeShopRepositoriesFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopRepositoriesFacade });
|
|
2864
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopRepositoriesFacade, decorators: [{
|
|
2878
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: HomeShopRepositoriesFacade, decorators: [{
|
|
2865
2879
|
type: Injectable
|
|
2866
|
-
}], ctorParameters:
|
|
2880
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2867
2881
|
type: Inject,
|
|
2868
2882
|
args: ['CategoryRepository']
|
|
2869
2883
|
}] }, { type: undefined, decorators: [{
|
|
@@ -2872,7 +2886,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
2872
2886
|
}] }, { type: undefined, decorators: [{
|
|
2873
2887
|
type: Inject,
|
|
2874
2888
|
args: ['ProductRepository']
|
|
2875
|
-
}] }]
|
|
2889
|
+
}] }] });
|
|
2876
2890
|
|
|
2877
2891
|
class HomeShopService {
|
|
2878
2892
|
get homeId() {
|
|
@@ -2977,12 +2991,12 @@ class HomeShopService {
|
|
|
2977
2991
|
get gender() {
|
|
2978
2992
|
return this.homeId === 'mens_market' ? 'masculino' : undefined;
|
|
2979
2993
|
}
|
|
2994
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: HomeShopService, deps: [{ token: HomeShopRepositoriesFacade }, { token: ConfigurationFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2995
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: HomeShopService }); }
|
|
2980
2996
|
}
|
|
2981
|
-
|
|
2982
|
-
HomeShopService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService });
|
|
2983
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService, decorators: [{
|
|
2997
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: HomeShopService, decorators: [{
|
|
2984
2998
|
type: Injectable
|
|
2985
|
-
}], ctorParameters:
|
|
2999
|
+
}], ctorParameters: () => [{ type: HomeShopRepositoriesFacade }, { type: ConfigurationFacade }] });
|
|
2986
3000
|
|
|
2987
3001
|
class OrderProductReviewService {
|
|
2988
3002
|
constructor(orderRepository, productReviewRepository, variantRepository) {
|
|
@@ -3074,12 +3088,12 @@ class OrderProductReviewService {
|
|
|
3074
3088
|
orderId: review.orderId,
|
|
3075
3089
|
}));
|
|
3076
3090
|
}
|
|
3091
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: OrderProductReviewService, deps: [{ token: 'OrderRepository' }, { token: 'ProductReviewRepository' }, { token: 'VariantRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3092
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: OrderProductReviewService }); }
|
|
3077
3093
|
}
|
|
3078
|
-
|
|
3079
|
-
OrderProductReviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderProductReviewService });
|
|
3080
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderProductReviewService, decorators: [{
|
|
3094
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: OrderProductReviewService, decorators: [{
|
|
3081
3095
|
type: Injectable
|
|
3082
|
-
}], ctorParameters:
|
|
3096
|
+
}], ctorParameters: () => [{ type: i3.OrderFirestoreRepository, decorators: [{
|
|
3083
3097
|
type: Inject,
|
|
3084
3098
|
args: ['OrderRepository']
|
|
3085
3099
|
}] }, { type: undefined, decorators: [{
|
|
@@ -3088,7 +3102,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
3088
3102
|
}] }, { type: undefined, decorators: [{
|
|
3089
3103
|
type: Inject,
|
|
3090
3104
|
args: ['VariantRepository']
|
|
3091
|
-
}] }]
|
|
3105
|
+
}] }] });
|
|
3092
3106
|
|
|
3093
3107
|
class OrderService {
|
|
3094
3108
|
constructor(angularFirestore, orderRepository) {
|
|
@@ -3102,15 +3116,15 @@ class OrderService {
|
|
|
3102
3116
|
.subscribe((doc) => this.orderSubject.next(doc));
|
|
3103
3117
|
return this.orderSubject;
|
|
3104
3118
|
}
|
|
3119
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: OrderService, deps: [{ token: i1$2.Firestore }, { token: 'OrderRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3120
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: OrderService }); }
|
|
3105
3121
|
}
|
|
3106
|
-
|
|
3107
|
-
OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService });
|
|
3108
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
|
|
3122
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: OrderService, decorators: [{
|
|
3109
3123
|
type: Injectable
|
|
3110
|
-
}], ctorParameters:
|
|
3124
|
+
}], ctorParameters: () => [{ type: i1$2.Firestore }, { type: i3.OrderFirestoreRepository, decorators: [{
|
|
3111
3125
|
type: Inject,
|
|
3112
3126
|
args: ['OrderRepository']
|
|
3113
|
-
}] }]
|
|
3127
|
+
}] }] });
|
|
3114
3128
|
|
|
3115
3129
|
class AngularConnectModule {
|
|
3116
3130
|
static initializeApp(defaultShop, options, nameOrConfig) {
|
|
@@ -3152,150 +3166,132 @@ class AngularConnectModule {
|
|
|
3152
3166
|
static createProviderIfExists(token, value) {
|
|
3153
3167
|
return isNil(value) ? [] : [{ provide: token, useValue: value }];
|
|
3154
3168
|
}
|
|
3169
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3170
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.2", ngImport: i0, type: AngularConnectModule, imports: [AngularElasticSeachModule,
|
|
3171
|
+
AngularVertexSeachModule,
|
|
3172
|
+
AngularFirebaseAuthModule,
|
|
3173
|
+
AngularFirestoreModule,
|
|
3174
|
+
AngularHasuraGraphQLModule] }); }
|
|
3175
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: AngularConnectModule, providers: [
|
|
3176
|
+
{
|
|
3177
|
+
provide: FirebaseApp,
|
|
3178
|
+
useFactory: (injector) => {
|
|
3179
|
+
const appName = injector.get(FIREBASE_APP_NAME);
|
|
3180
|
+
try {
|
|
3181
|
+
const app = appName ? getApp(appName) : getApp();
|
|
3182
|
+
return app;
|
|
3183
|
+
}
|
|
3184
|
+
catch (error) {
|
|
3185
|
+
console.warn('Firebase app not found, initializing new app');
|
|
3186
|
+
if (error instanceof Error)
|
|
3187
|
+
console.error(error.message);
|
|
3188
|
+
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
3189
|
+
}
|
|
3190
|
+
},
|
|
3191
|
+
deps: [Injector],
|
|
3192
|
+
},
|
|
3193
|
+
{
|
|
3194
|
+
provide: 'APP_CHECK',
|
|
3195
|
+
useFactory: (injector) => {
|
|
3196
|
+
const app = injector.get(FirebaseApp);
|
|
3197
|
+
try {
|
|
3198
|
+
const provider = injector.get(APP_CHECK_PROVIDER);
|
|
3199
|
+
if (provider)
|
|
3200
|
+
return initializeAppCheck(app, {
|
|
3201
|
+
provider,
|
|
3202
|
+
isTokenAutoRefreshEnabled: true,
|
|
3203
|
+
});
|
|
3204
|
+
}
|
|
3205
|
+
catch (error) {
|
|
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
|
+
},
|
|
3218
|
+
AuthService,
|
|
3219
|
+
CartService,
|
|
3220
|
+
CatalogService,
|
|
3221
|
+
CategoryService,
|
|
3222
|
+
CheckoutService,
|
|
3223
|
+
CheckoutSubscriptionService,
|
|
3224
|
+
CouponService,
|
|
3225
|
+
HomeShopService,
|
|
3226
|
+
OrderService,
|
|
3227
|
+
WishlistService,
|
|
3228
|
+
ConfigurationFacade,
|
|
3229
|
+
CartServicesFacade,
|
|
3230
|
+
CheckoutRepositoriesFacade,
|
|
3231
|
+
CheckoutDependenciesFacade,
|
|
3232
|
+
CategoryRepositoryFacade,
|
|
3233
|
+
ProductCatalogFacade,
|
|
3234
|
+
CatalogServiceFacade,
|
|
3235
|
+
CategoryServiceFacade,
|
|
3236
|
+
CatalogStrategiesFacade,
|
|
3237
|
+
CatalogOperationsFacade,
|
|
3238
|
+
ProductManagementFacade,
|
|
3239
|
+
{
|
|
3240
|
+
provide: 'ProductServicesFacade',
|
|
3241
|
+
useFactory: (productStockNotificationRepository, categoryRepository, productSearch) => ({
|
|
3242
|
+
productStockNotificationRepository,
|
|
3243
|
+
categoryRepository,
|
|
3244
|
+
productSearch,
|
|
3245
|
+
}),
|
|
3246
|
+
deps: ['ProductStockNotificationRepository', 'CategoryRepository', 'ProductSearch'],
|
|
3247
|
+
},
|
|
3248
|
+
CatalogFilterHelper,
|
|
3249
|
+
CatalogSortHelper,
|
|
3250
|
+
ProductFieldsHelper,
|
|
3251
|
+
BrandManagerHelper,
|
|
3252
|
+
CatalogRepositoryService,
|
|
3253
|
+
CatalogHelpersService,
|
|
3254
|
+
CategorySearchStrategy,
|
|
3255
|
+
TermSearchStrategy,
|
|
3256
|
+
ProfileSearchStrategy,
|
|
3257
|
+
{
|
|
3258
|
+
provide: CatalogSearchContext,
|
|
3259
|
+
useFactory: (categoryStrategy, termStrategy, profileStrategy) => {
|
|
3260
|
+
return new CatalogSearchContext(categoryStrategy, termStrategy, profileStrategy);
|
|
3261
|
+
},
|
|
3262
|
+
deps: [CategorySearchStrategy, TermSearchStrategy, ProfileSearchStrategy],
|
|
3263
|
+
},
|
|
3264
|
+
{
|
|
3265
|
+
provide: UpdateUserImage,
|
|
3266
|
+
useFactory: (userRepository, fileUploader) => {
|
|
3267
|
+
return new UpdateUserImage(userRepository, fileUploader);
|
|
3268
|
+
},
|
|
3269
|
+
deps: ['UserRepository', 'FileUploaderService'],
|
|
3270
|
+
},
|
|
3271
|
+
{
|
|
3272
|
+
provide: 'FileUploaderService',
|
|
3273
|
+
useFactory: (storage, baseUrl) => {
|
|
3274
|
+
return new FirebaseFileUploaderService(storage, baseUrl);
|
|
3275
|
+
},
|
|
3276
|
+
deps: [Storage, STORAGE_BASE_URL],
|
|
3277
|
+
},
|
|
3278
|
+
{
|
|
3279
|
+
provide: 'ProductSearch',
|
|
3280
|
+
useExisting: ProductsVertexSearch,
|
|
3281
|
+
},
|
|
3282
|
+
CouponRepositoriesFacade,
|
|
3283
|
+
HomeShopRepositoriesFacade,
|
|
3284
|
+
OrderProductReviewService,
|
|
3285
|
+
], imports: [AngularElasticSeachModule,
|
|
3286
|
+
AngularVertexSeachModule,
|
|
3287
|
+
AngularFirebaseAuthModule,
|
|
3288
|
+
AngularFirestoreModule,
|
|
3289
|
+
AngularHasuraGraphQLModule] }); }
|
|
3155
3290
|
}
|
|
3156
|
-
|
|
3157
|
-
AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [i1$3.FirebaseAppModule, i2.AppCheckModule, i3$1.StorageModule, AngularElasticSeachModule,
|
|
3158
|
-
AngularVertexSeachModule,
|
|
3159
|
-
AngularFirebaseAuthModule,
|
|
3160
|
-
AngularFirestoreModule,
|
|
3161
|
-
AngularHasuraGraphQLModule] });
|
|
3162
|
-
AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, providers: [
|
|
3163
|
-
AuthService,
|
|
3164
|
-
CartService,
|
|
3165
|
-
CatalogService,
|
|
3166
|
-
CategoryService,
|
|
3167
|
-
CheckoutService,
|
|
3168
|
-
CheckoutSubscriptionService,
|
|
3169
|
-
CouponService,
|
|
3170
|
-
HomeShopService,
|
|
3171
|
-
OrderService,
|
|
3172
|
-
WishlistService,
|
|
3173
|
-
ConfigurationFacade,
|
|
3174
|
-
CartServicesFacade,
|
|
3175
|
-
CheckoutRepositoriesFacade,
|
|
3176
|
-
CheckoutDependenciesFacade,
|
|
3177
|
-
CategoryRepositoryFacade,
|
|
3178
|
-
ProductCatalogFacade,
|
|
3179
|
-
CatalogServiceFacade,
|
|
3180
|
-
CategoryServiceFacade,
|
|
3181
|
-
CatalogStrategiesFacade,
|
|
3182
|
-
CatalogOperationsFacade,
|
|
3183
|
-
ProductManagementFacade,
|
|
3184
|
-
{
|
|
3185
|
-
provide: 'ProductServicesFacade',
|
|
3186
|
-
useFactory: (productStockNotificationRepository, categoryRepository, productSearch) => ({
|
|
3187
|
-
productStockNotificationRepository,
|
|
3188
|
-
categoryRepository,
|
|
3189
|
-
productSearch,
|
|
3190
|
-
}),
|
|
3191
|
-
deps: ['ProductStockNotificationRepository', 'CategoryRepository', 'ProductSearch'],
|
|
3192
|
-
},
|
|
3193
|
-
CatalogFilterHelper,
|
|
3194
|
-
CatalogSortHelper,
|
|
3195
|
-
ProductFieldsHelper,
|
|
3196
|
-
BrandManagerHelper,
|
|
3197
|
-
CatalogRepositoryService,
|
|
3198
|
-
CatalogHelpersService,
|
|
3199
|
-
CategorySearchStrategy,
|
|
3200
|
-
TermSearchStrategy,
|
|
3201
|
-
ProfileSearchStrategy,
|
|
3202
|
-
{
|
|
3203
|
-
provide: CatalogSearchContext,
|
|
3204
|
-
useFactory: (categoryStrategy, termStrategy, profileStrategy) => {
|
|
3205
|
-
return new CatalogSearchContext(categoryStrategy, termStrategy, profileStrategy);
|
|
3206
|
-
},
|
|
3207
|
-
deps: [CategorySearchStrategy, TermSearchStrategy, ProfileSearchStrategy],
|
|
3208
|
-
},
|
|
3209
|
-
{
|
|
3210
|
-
provide: UpdateUserImage,
|
|
3211
|
-
useFactory: (userRepository, fileUploader) => {
|
|
3212
|
-
return new UpdateUserImage(userRepository, fileUploader);
|
|
3213
|
-
},
|
|
3214
|
-
deps: ['UserRepository', 'FileUploaderService'],
|
|
3215
|
-
},
|
|
3216
|
-
{
|
|
3217
|
-
provide: 'FileUploaderService',
|
|
3218
|
-
useFactory: (storage, baseUrl) => {
|
|
3219
|
-
return new FirebaseFileUploaderService(storage, baseUrl);
|
|
3220
|
-
},
|
|
3221
|
-
deps: [Storage, STORAGE_BASE_URL],
|
|
3222
|
-
},
|
|
3223
|
-
{
|
|
3224
|
-
provide: 'ProductSearch',
|
|
3225
|
-
useExisting: ProductsVertexSearch,
|
|
3226
|
-
},
|
|
3227
|
-
CouponRepositoriesFacade,
|
|
3228
|
-
HomeShopRepositoriesFacade,
|
|
3229
|
-
OrderProductReviewService,
|
|
3230
|
-
], imports: [provideFirebaseApp((injector) => {
|
|
3231
|
-
const appName = injector.get(FIREBASE_APP_NAME);
|
|
3232
|
-
try {
|
|
3233
|
-
const app = appName ? getApp(appName) : getApp();
|
|
3234
|
-
return app;
|
|
3235
|
-
}
|
|
3236
|
-
catch (error) {
|
|
3237
|
-
console.warn('Firebase app not found, initializing new app');
|
|
3238
|
-
if (error instanceof Error)
|
|
3239
|
-
console.error(error.message);
|
|
3240
|
-
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
3241
|
-
}
|
|
3242
|
-
}),
|
|
3243
|
-
provideAppCheck((injector) => {
|
|
3244
|
-
const app = injector.get(FirebaseApp);
|
|
3245
|
-
try {
|
|
3246
|
-
const provider = injector.get(APP_CHECK_PROVIDER);
|
|
3247
|
-
if (provider)
|
|
3248
|
-
return initializeAppCheck(app, {
|
|
3249
|
-
provider,
|
|
3250
|
-
isTokenAutoRefreshEnabled: true,
|
|
3251
|
-
});
|
|
3252
|
-
}
|
|
3253
|
-
catch (error) {
|
|
3254
|
-
if (error instanceof Error)
|
|
3255
|
-
console.error(error.message);
|
|
3256
|
-
return;
|
|
3257
|
-
}
|
|
3258
|
-
}),
|
|
3259
|
-
provideStorage((injector) => getStorage(injector.get(FirebaseApp))),
|
|
3260
|
-
AngularElasticSeachModule,
|
|
3261
|
-
AngularVertexSeachModule,
|
|
3262
|
-
AngularFirebaseAuthModule,
|
|
3263
|
-
AngularFirestoreModule,
|
|
3264
|
-
AngularHasuraGraphQLModule] });
|
|
3265
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, decorators: [{
|
|
3291
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: AngularConnectModule, decorators: [{
|
|
3266
3292
|
type: NgModule,
|
|
3267
3293
|
args: [{
|
|
3268
3294
|
imports: [
|
|
3269
|
-
provideFirebaseApp((injector) => {
|
|
3270
|
-
const appName = injector.get(FIREBASE_APP_NAME);
|
|
3271
|
-
try {
|
|
3272
|
-
const app = appName ? getApp(appName) : getApp();
|
|
3273
|
-
return app;
|
|
3274
|
-
}
|
|
3275
|
-
catch (error) {
|
|
3276
|
-
console.warn('Firebase app not found, initializing new app');
|
|
3277
|
-
if (error instanceof Error)
|
|
3278
|
-
console.error(error.message);
|
|
3279
|
-
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
3280
|
-
}
|
|
3281
|
-
}),
|
|
3282
|
-
provideAppCheck((injector) => {
|
|
3283
|
-
const app = injector.get(FirebaseApp);
|
|
3284
|
-
try {
|
|
3285
|
-
const provider = injector.get(APP_CHECK_PROVIDER);
|
|
3286
|
-
if (provider)
|
|
3287
|
-
return initializeAppCheck(app, {
|
|
3288
|
-
provider,
|
|
3289
|
-
isTokenAutoRefreshEnabled: true,
|
|
3290
|
-
});
|
|
3291
|
-
}
|
|
3292
|
-
catch (error) {
|
|
3293
|
-
if (error instanceof Error)
|
|
3294
|
-
console.error(error.message);
|
|
3295
|
-
return;
|
|
3296
|
-
}
|
|
3297
|
-
}),
|
|
3298
|
-
provideStorage((injector) => getStorage(injector.get(FirebaseApp))),
|
|
3299
3295
|
AngularElasticSeachModule,
|
|
3300
3296
|
AngularVertexSeachModule,
|
|
3301
3297
|
AngularFirebaseAuthModule,
|
|
@@ -3303,6 +3299,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
3303
3299
|
AngularHasuraGraphQLModule,
|
|
3304
3300
|
],
|
|
3305
3301
|
providers: [
|
|
3302
|
+
{
|
|
3303
|
+
provide: FirebaseApp,
|
|
3304
|
+
useFactory: (injector) => {
|
|
3305
|
+
const appName = injector.get(FIREBASE_APP_NAME);
|
|
3306
|
+
try {
|
|
3307
|
+
const app = appName ? getApp(appName) : getApp();
|
|
3308
|
+
return app;
|
|
3309
|
+
}
|
|
3310
|
+
catch (error) {
|
|
3311
|
+
console.warn('Firebase app not found, initializing new app');
|
|
3312
|
+
if (error instanceof Error)
|
|
3313
|
+
console.error(error.message);
|
|
3314
|
+
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
3315
|
+
}
|
|
3316
|
+
},
|
|
3317
|
+
deps: [Injector],
|
|
3318
|
+
},
|
|
3319
|
+
{
|
|
3320
|
+
provide: 'APP_CHECK',
|
|
3321
|
+
useFactory: (injector) => {
|
|
3322
|
+
const app = injector.get(FirebaseApp);
|
|
3323
|
+
try {
|
|
3324
|
+
const provider = injector.get(APP_CHECK_PROVIDER);
|
|
3325
|
+
if (provider)
|
|
3326
|
+
return initializeAppCheck(app, {
|
|
3327
|
+
provider,
|
|
3328
|
+
isTokenAutoRefreshEnabled: true,
|
|
3329
|
+
});
|
|
3330
|
+
}
|
|
3331
|
+
catch (error) {
|
|
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
|
+
},
|
|
3306
3344
|
AuthService,
|
|
3307
3345
|
CartService,
|
|
3308
3346
|
CatalogService,
|