@infrab4a/connect-angular 6.0.0-alpha.1 → 6.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/angular-connect.module.mjs +291 -0
- package/esm2022/angular-elastic-search.module.mjs +34 -0
- package/esm2022/angular-firebase-auth.module.mjs +141 -0
- package/esm2022/angular-firestore.module.mjs +541 -0
- package/esm2022/angular-hasura-graphql.module.mjs +333 -0
- package/esm2022/angular-vertex-search.module.mjs +34 -0
- package/{esm2020 → esm2022}/consts/backend-url.const.mjs +1 -1
- package/{esm2020 → esm2022}/consts/category-structure.mjs +1 -1
- package/{esm2020 → esm2022}/consts/default-shop.const.mjs +1 -1
- package/{esm2020 → esm2022}/consts/es-config.const.mjs +1 -1
- package/{esm2020 → esm2022}/consts/firebase-const.mjs +1 -1
- package/{esm2020 → esm2022}/consts/hasura-options.const.mjs +1 -1
- package/{esm2020 → esm2022}/consts/index.mjs +1 -1
- package/{esm2020 → esm2022}/consts/persistence.const.mjs +1 -1
- package/{esm2020 → esm2022}/consts/storage-base-url.const.mjs +1 -1
- package/{esm2020 → esm2022}/consts/vertex-config.const.mjs +1 -1
- package/{esm2020 → esm2022}/helpers/index.mjs +1 -1
- package/{esm2020 → esm2022}/helpers/mobile-operation-system-checker.helper.mjs +1 -1
- package/{esm2020 → esm2022}/index.mjs +1 -1
- package/esm2022/interfaces/catalog-strategies.interface.mjs +2 -0
- package/{esm2020 → esm2022}/interfaces/category-facades.interface.mjs +1 -1
- package/{esm2020 → esm2022}/interfaces/index.mjs +1 -1
- package/{esm2020 → esm2022}/persistence/cookie-data-persistence.mjs +4 -4
- package/{esm2020 → esm2022}/persistence/data-persistence.mjs +1 -1
- package/{esm2020 → esm2022}/persistence/index.mjs +1 -1
- package/{esm2020 → esm2022}/services/auth.service.mjs +6 -6
- package/{esm2020 → esm2022}/services/cart/cart-services.facade.mjs +5 -5
- package/{esm2020 → esm2022}/services/cart/index.mjs +1 -1
- package/{esm2020 → esm2022}/services/cart.service.mjs +5 -5
- package/{esm2020 → esm2022}/services/catalog/adapters/category-structure.adapter.mjs +1 -1
- package/{esm2020 → esm2022}/services/catalog/adapters/index.mjs +1 -1
- package/{esm2020 → esm2022}/services/catalog/adapters/new-category-structure.adapter.mjs +6 -6
- package/{esm2020 → esm2022}/services/catalog/adapters/old-category-structure.adapter.mjs +6 -6
- package/{esm2020 → esm2022}/services/catalog/catalog.service.mjs +6 -6
- package/esm2022/services/catalog/category.service.mjs +39 -0
- package/{esm2020 → esm2022}/services/catalog/context/catalog-search.context.mjs +1 -1
- package/{esm2020 → esm2022}/services/catalog/enums/index.mjs +1 -1
- package/{esm2020 → esm2022}/services/catalog/enums/product-sorts.enum.mjs +1 -1
- package/{esm2020 → esm2022}/services/catalog/facades/catalog-service.facade.mjs +6 -6
- package/esm2022/services/catalog/facades/catalog-strategies.facade.mjs +17 -0
- package/{esm2020 → esm2022}/services/catalog/facades/category-repository.facade.mjs +6 -6
- package/{esm2020 → esm2022}/services/catalog/facades/category-service.facade.mjs +6 -6
- package/{esm2020 → esm2022}/services/catalog/facades/index.mjs +1 -1
- package/{esm2020 → esm2022}/services/catalog/facades/product-catalog.facade.mjs +6 -6
- package/{esm2020 → esm2022}/services/catalog/helpers/brand-manager.helper.mjs +5 -5
- package/{esm2020 → esm2022}/services/catalog/helpers/catalog-filter.helper.mjs +4 -4
- package/{esm2020 → esm2022}/services/catalog/helpers/catalog-sort.helper.mjs +4 -4
- package/{esm2020 → esm2022}/services/catalog/helpers/index.mjs +1 -1
- package/{esm2020 → esm2022}/services/catalog/helpers/product-fields.helper.mjs +4 -4
- package/{esm2020 → esm2022}/services/catalog/index.mjs +1 -1
- package/{esm2020 → esm2022}/services/catalog/models/category-with-tree.model.mjs +1 -1
- package/{esm2020 → esm2022}/services/catalog/models/index.mjs +1 -1
- package/esm2022/services/catalog/services/catalog-helpers.service.mjs +33 -0
- package/esm2022/services/catalog/services/catalog-operations.facade.mjs +26 -0
- package/{esm2020 → esm2022}/services/catalog/services/catalog-repository.service.mjs +6 -6
- package/{esm2020 → esm2022}/services/catalog/services/index.mjs +1 -1
- package/{esm2020 → esm2022}/services/catalog/services/product-management.facade.mjs +6 -6
- package/esm2022/services/catalog/strategies/category-search.strategy.mjs +133 -0
- package/{esm2020 → esm2022}/services/catalog/strategies/index.mjs +1 -1
- package/{esm2020 → esm2022}/services/catalog/strategies/profile-search.strategy.mjs +5 -5
- package/esm2022/services/catalog/strategies/term-search.strategy.mjs +123 -0
- package/esm2022/services/catalog/strategies/types/strategy-params.type.mjs +2 -0
- package/{esm2020 → esm2022}/services/catalog/types/fetch-products-options.type.mjs +1 -1
- package/esm2022/services/catalog/types/fetch-products-params.type.mjs +2 -0
- package/{esm2020 → esm2022}/services/catalog/types/fetch-products-response.type.mjs +1 -1
- package/{esm2020 → esm2022}/services/catalog/types/index.mjs +1 -1
- package/esm2022/services/catalog/types/method-params.type.mjs +2 -0
- package/{esm2020 → esm2022}/services/catalog/types/product-sort.type.mjs +1 -1
- package/esm2022/services/catalog/wishlist.service.mjs +254 -0
- package/{esm2020 → esm2022}/services/checkout/checkout-dependencies.facade.mjs +6 -6
- package/{esm2020 → esm2022}/services/checkout/checkout-repositories.facade.mjs +6 -6
- package/{esm2020 → esm2022}/services/checkout/index.mjs +1 -1
- package/{esm2020 → esm2022}/services/checkout-subscription.service.mjs +6 -6
- package/{esm2020 → esm2022}/services/checkout.service.mjs +5 -5
- package/{esm2020 → esm2022}/services/coupon/coupon-repositories.facade.mjs +6 -6
- package/{esm2020 → esm2022}/services/coupon/index.mjs +1 -1
- package/esm2022/services/coupon/types/coupon-params.type.mjs +2 -0
- package/{esm2020 → esm2022}/services/coupon.service.mjs +5 -5
- package/{esm2020 → esm2022}/services/helpers/index.mjs +1 -1
- package/{esm2020 → esm2022}/services/helpers/util.helper.mjs +1 -1
- package/{esm2020 → esm2022}/services/home-shop/home-shop-repositories.facade.mjs +6 -6
- package/{esm2020 → esm2022}/services/home-shop/index.mjs +1 -1
- package/{esm2020 → esm2022}/services/home-shop.service.mjs +5 -5
- package/{esm2020 → esm2022}/services/index.mjs +2 -1
- package/esm2022/services/order-product-review.service.mjs +110 -0
- package/{esm2020 → esm2022}/services/order.service.mjs +6 -6
- package/{esm2020 → esm2022}/services/shared/configuration.facade.mjs +6 -6
- package/{esm2020 → esm2022}/services/shared/index.mjs +1 -1
- package/esm2022/services/types/index.mjs +5 -0
- package/esm2022/services/types/pending-product-review.type.mjs +2 -0
- package/esm2022/services/types/product-review-create.type.mjs +2 -0
- package/{esm2020 → esm2022}/services/types/required-checkout-data.type.mjs +1 -1
- package/{esm2020 → esm2022}/services/types/required-checkout-subscription-data.type.mjs +1 -1
- package/{esm2020 → esm2022}/types/firebase-app-config.type.mjs +1 -1
- package/{esm2020 → esm2022}/types/index.mjs +1 -1
- package/{fesm2020 → fesm2022}/infrab4a-connect-angular.mjs +878 -774
- package/fesm2022/infrab4a-connect-angular.mjs.map +1 -0
- package/package.json +11 -17
- package/services/cart.service.d.ts +1 -1
- package/services/catalog/wishlist.service.d.ts +4 -3
- package/services/index.d.ts +1 -0
- package/services/order-product-review.service.d.ts +16 -0
- package/services/types/index.d.ts +2 -0
- package/services/types/pending-product-review.type.d.ts +12 -0
- package/services/types/product-review-create.type.d.ts +14 -0
- package/esm2020/angular-connect.module.mjs +0 -289
- 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/interfaces/catalog-strategies.interface.mjs +0 -2
- package/esm2020/services/catalog/category.service.mjs +0 -39
- package/esm2020/services/catalog/facades/catalog-strategies.facade.mjs +0 -17
- 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/strategies/category-search.strategy.mjs +0 -133
- package/esm2020/services/catalog/strategies/term-search.strategy.mjs +0 -126
- package/esm2020/services/catalog/strategies/types/strategy-params.type.mjs +0 -2
- package/esm2020/services/catalog/types/fetch-products-params.type.mjs +0 -2
- package/esm2020/services/catalog/types/method-params.type.mjs +0 -2
- package/esm2020/services/catalog/wishlist.service.mjs +0 -255
- package/esm2020/services/coupon/types/coupon-params.type.mjs +0 -2
- package/esm2020/services/types/index.mjs +0 -3
- package/fesm2015/infrab4a-connect-angular.mjs +0 -3372
- package/fesm2015/infrab4a-connect-angular.mjs.map +0 -1
- package/fesm2020/infrab4a-connect-angular.mjs.map +0 -1
- /package/{esm2020 → esm2022}/infrab4a-connect-angular.mjs +0 -0
|
@@ -7,7 +7,7 @@ import { provideAppCheck, initializeAppCheck } from '@angular/fire/app-check';
|
|
|
7
7
|
import * as i3$1 from '@angular/fire/storage';
|
|
8
8
|
import { Storage, provideStorage, getStorage } from '@angular/fire/storage';
|
|
9
9
|
import * as i3 from '@infrab4a/connect';
|
|
10
|
-
import { ProductsIndex, AxiosAdapter, Authentication, AuthenticationFirebaseAuthService, Register, RegisterFirebaseAuthService, SignOut, RecoveryPassword, ConnectFirestoreService, UserBeautyProfileFirestoreRepository, Buy2WinFirestoreRepository, CategoryFirestoreRepository, CheckoutFirestoreRepository, CheckoutSubscriptionFirestoreRepository, CouponFirestoreRepository, CampaignHashtagFirestoreRepository, CampaignDashboardFirestoreRepository, SubscriptionEditionFirestoreRepository, GroupFirestoreRepository, HomeFirestoreRepository, LeadFirestoreRepository, LegacyOrderFirestoreRepository, ShopMenuFirestoreRepository, OrderFirestoreRepository, PaymentFirestoreRepository, ProductFirestoreRepository, ShopSettingsFirestoreRepository, SubscriptionPaymentFirestoreRepository, SubscriptionPlanFirestoreRepository, SubscriptionProductFirestoreRepository, SubscriptionFirestoreRepository, UserFirestoreRepository, UserAddressFirestoreRepository, UserPaymentMethodFirestoreRepository, SubscriptionMaterializationFirestoreRepository, SubscriptionSummaryFirestoreRepository, ProductVariantFirestoreRepository, OrderBlockedFirestoreRepository, LogFirestoreRepository, SequenceFirestoreRepository, CategoryHasuraGraphQLRepository, ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository, ProductReviewHasuraGraphQLRepository, VariantHasuraGraphQLRepository, ProductStockNotificationHasuraGraphQLRepository, FilterOptionHasuraGraphQLRepository, FilterHasuraGraphQLRepository, CategoryCollectionChildrenHasuraGraphQLRepository, CategoryProductHasuraGraphQLRepository, WishlistHasuraGraphQLRepository, ProductErrorsHasuraGraphQLRepository, ProductsVertexSearch, VertexAxiosAdapter, isNil, NotFoundError, Checkout, pick, LineItem, Where,
|
|
10
|
+
import { ProductsIndex, AxiosAdapter, Authentication, AuthenticationFirebaseAuthService, Register, RegisterFirebaseAuthService, SignOut, RecoveryPassword, ConnectFirestoreService, UserBeautyProfileFirestoreRepository, Buy2WinFirestoreRepository, CategoryFirestoreRepository, CheckoutFirestoreRepository, CheckoutSubscriptionFirestoreRepository, CouponFirestoreRepository, CampaignHashtagFirestoreRepository, CampaignDashboardFirestoreRepository, SubscriptionEditionFirestoreRepository, GroupFirestoreRepository, HomeFirestoreRepository, LeadFirestoreRepository, LegacyOrderFirestoreRepository, ShopMenuFirestoreRepository, OrderFirestoreRepository, PaymentFirestoreRepository, ProductFirestoreRepository, ShopSettingsFirestoreRepository, SubscriptionPaymentFirestoreRepository, SubscriptionPlanFirestoreRepository, SubscriptionProductFirestoreRepository, SubscriptionFirestoreRepository, UserFirestoreRepository, UserAddressFirestoreRepository, UserPaymentMethodFirestoreRepository, SubscriptionMaterializationFirestoreRepository, SubscriptionSummaryFirestoreRepository, ProductVariantFirestoreRepository, 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
11
|
import * as i1 from '@angular/fire/auth';
|
|
12
12
|
import { Auth, provideAuth, initializeAuth, indexedDBLocalPersistence, browserLocalPersistence, browserSessionPersistence, getAuth, getIdToken, authState } from '@angular/fire/auth';
|
|
13
13
|
import { isPlatformBrowser, isPlatformServer } from '@angular/common';
|
|
@@ -29,17 +29,17 @@ class AngularElasticSeachModule {
|
|
|
29
29
|
providers: [{ provide: ES_CONFIG, useValue: options }],
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularElasticSeachModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
33
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularElasticSeachModule }); }
|
|
34
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularElasticSeachModule, providers: [
|
|
35
|
+
{
|
|
36
|
+
provide: ProductsIndex,
|
|
37
|
+
useFactory: (configuration) => new ProductsIndex(new AxiosAdapter(configuration)),
|
|
38
|
+
deps: [ES_CONFIG],
|
|
39
|
+
},
|
|
40
|
+
] }); }
|
|
32
41
|
}
|
|
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: [{
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularElasticSeachModule, decorators: [{
|
|
43
43
|
type: NgModule,
|
|
44
44
|
args: [{
|
|
45
45
|
providers: [
|
|
@@ -78,66 +78,66 @@ class AngularFirebaseAuthModule {
|
|
|
78
78
|
],
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirebaseAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
82
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularFirebaseAuthModule, imports: [i1.AuthModule] }); }
|
|
83
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirebaseAuthModule, providers: [
|
|
84
|
+
{
|
|
85
|
+
provide: 'Authentication',
|
|
86
|
+
useFactory: (authenticationService, userRepository) => {
|
|
87
|
+
return new Authentication(authenticationService, userRepository);
|
|
88
|
+
},
|
|
89
|
+
deps: ['AuthenticationService', 'UserRepository'],
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
provide: 'AuthenticationService',
|
|
93
|
+
useFactory: (angularFireAuth) => {
|
|
94
|
+
return new AuthenticationFirebaseAuthService(angularFireAuth);
|
|
95
|
+
},
|
|
96
|
+
deps: [Auth],
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
provide: 'Register',
|
|
100
|
+
useFactory: (registerService, userRepository) => {
|
|
101
|
+
return new Register(registerService, userRepository);
|
|
102
|
+
},
|
|
103
|
+
deps: ['RegisterService', 'UserRepository'],
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
provide: 'RegisterService',
|
|
107
|
+
useFactory: (angularFireAuth) => {
|
|
108
|
+
return new RegisterFirebaseAuthService(angularFireAuth);
|
|
109
|
+
},
|
|
110
|
+
deps: [Auth],
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
provide: 'SignOut',
|
|
114
|
+
useFactory: (authenticationService) => {
|
|
115
|
+
return new SignOut(authenticationService);
|
|
116
|
+
},
|
|
117
|
+
deps: ['AuthenticationService'],
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
provide: 'RecoveryPassword',
|
|
121
|
+
useFactory: (authenticationService) => {
|
|
122
|
+
return new RecoveryPassword(authenticationService);
|
|
123
|
+
},
|
|
124
|
+
deps: ['AuthenticationService'],
|
|
125
|
+
},
|
|
126
|
+
], imports: [provideAuth((injector) => {
|
|
127
|
+
const app = injector.get(FirebaseApp);
|
|
128
|
+
try {
|
|
129
|
+
return initializeAuth(app, {
|
|
130
|
+
persistence: [indexedDBLocalPersistence, browserLocalPersistence, browserSessionPersistence],
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
catch (error) {
|
|
134
|
+
if (error instanceof Error)
|
|
135
|
+
console.error('Error initializing auth', error.message);
|
|
136
|
+
return getAuth(app);
|
|
137
|
+
}
|
|
138
|
+
})] }); }
|
|
81
139
|
}
|
|
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: [{
|
|
140
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
|
|
141
141
|
type: NgModule,
|
|
142
142
|
args: [{
|
|
143
143
|
imports: [
|
|
@@ -220,264 +220,264 @@ class AngularFirestoreModule {
|
|
|
220
220
|
],
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
223
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
224
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1$1.FirestoreModule] }); }
|
|
225
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirestoreModule, providers: [
|
|
226
|
+
{
|
|
227
|
+
provide: 'FirestoreOptions',
|
|
228
|
+
useFactory: (firestore, platformId) => ({
|
|
229
|
+
firestore: new ConnectFirestoreService(firestore),
|
|
230
|
+
interceptors: {
|
|
231
|
+
request: (request) => {
|
|
232
|
+
if (isPlatformBrowser(platformId))
|
|
233
|
+
return request;
|
|
234
|
+
const interval = setInterval(() => { }, 100);
|
|
235
|
+
request.interval = interval;
|
|
234
236
|
return request;
|
|
235
|
-
|
|
236
|
-
request
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
if (isPlatformBrowser(platformId))
|
|
237
|
+
},
|
|
238
|
+
response: (response, request) => {
|
|
239
|
+
if (isPlatformBrowser(platformId))
|
|
240
|
+
return response;
|
|
241
|
+
clearInterval(request.interval);
|
|
241
242
|
return response;
|
|
242
|
-
|
|
243
|
-
return response;
|
|
243
|
+
},
|
|
244
244
|
},
|
|
245
|
+
}),
|
|
246
|
+
deps: [Firestore, PLATFORM_ID],
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
provide: 'BeautyProfileRepository',
|
|
250
|
+
useFactory: (config, userRepository) => {
|
|
251
|
+
return new UserBeautyProfileFirestoreRepository(config, userRepository);
|
|
245
252
|
},
|
|
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
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
provideFirestore((injector) => {
|
|
468
|
-
const platformId = injector.get(PLATFORM_ID);
|
|
469
|
-
if (isPlatformServer(platformId) || !MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
470
|
-
return initializeFirestore(injector.get(FirebaseApp), {
|
|
253
|
+
deps: ['FirestoreOptions', 'UserRepository'],
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
provide: 'Buy2WinRepository',
|
|
257
|
+
useFactory: (options) => {
|
|
258
|
+
return new Buy2WinFirestoreRepository(options);
|
|
259
|
+
},
|
|
260
|
+
deps: ['FirestoreOptions'],
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
provide: CategoryFirestoreRepository,
|
|
264
|
+
useFactory: (options) => {
|
|
265
|
+
return new CategoryFirestoreRepository(options);
|
|
266
|
+
},
|
|
267
|
+
deps: ['FirestoreOptions'],
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
provide: 'CheckoutRepository',
|
|
271
|
+
useFactory: (options) => {
|
|
272
|
+
return new CheckoutFirestoreRepository(options);
|
|
273
|
+
},
|
|
274
|
+
deps: ['FirestoreOptions'],
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
provide: 'CheckoutSubscriptionRepository',
|
|
278
|
+
useFactory: (options) => {
|
|
279
|
+
return new CheckoutSubscriptionFirestoreRepository(options);
|
|
280
|
+
},
|
|
281
|
+
deps: ['FirestoreOptions'],
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
provide: 'CouponRepository',
|
|
285
|
+
useFactory: (options) => {
|
|
286
|
+
return new CouponFirestoreRepository(options);
|
|
287
|
+
},
|
|
288
|
+
deps: ['FirestoreOptions'],
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
provide: 'CampaignHashtagRepository',
|
|
292
|
+
useFactory: (options) => {
|
|
293
|
+
return new CampaignHashtagFirestoreRepository(options);
|
|
294
|
+
},
|
|
295
|
+
deps: ['FirestoreOptions'],
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
provide: 'CampaignDashboardRepository',
|
|
299
|
+
useFactory: (options) => {
|
|
300
|
+
return new CampaignDashboardFirestoreRepository(options);
|
|
301
|
+
},
|
|
302
|
+
deps: ['FirestoreOptions'],
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
provide: 'EditionRepository',
|
|
306
|
+
useFactory: (options, subscriptionRepository) => {
|
|
307
|
+
return new SubscriptionEditionFirestoreRepository(options, subscriptionRepository);
|
|
308
|
+
},
|
|
309
|
+
deps: ['FirestoreOptions', 'SubscriptionRepository'],
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
provide: 'GroupRepository',
|
|
313
|
+
useFactory: (options) => {
|
|
314
|
+
return new GroupFirestoreRepository(options);
|
|
315
|
+
},
|
|
316
|
+
deps: ['FirestoreOptions'],
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
provide: 'HomeRepository',
|
|
320
|
+
useFactory: (options) => {
|
|
321
|
+
return new HomeFirestoreRepository(options);
|
|
322
|
+
},
|
|
323
|
+
deps: ['FirestoreOptions'],
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
provide: 'LeadRepository',
|
|
327
|
+
useFactory: (options) => {
|
|
328
|
+
return new LeadFirestoreRepository(options);
|
|
329
|
+
},
|
|
330
|
+
deps: ['FirestoreOptions'],
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
provide: 'LegacyOrderRepository',
|
|
334
|
+
useFactory: (options) => {
|
|
335
|
+
return new LegacyOrderFirestoreRepository(options);
|
|
336
|
+
},
|
|
337
|
+
deps: ['FirestoreOptions'],
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
provide: 'ShopMenuRepository',
|
|
341
|
+
useFactory: (options) => {
|
|
342
|
+
return new ShopMenuFirestoreRepository(options);
|
|
343
|
+
},
|
|
344
|
+
deps: ['FirestoreOptions'],
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
provide: 'OrderRepository',
|
|
348
|
+
useFactory: (options) => {
|
|
349
|
+
return new OrderFirestoreRepository(options);
|
|
350
|
+
},
|
|
351
|
+
deps: ['FirestoreOptions'],
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
provide: 'PaymentRepository',
|
|
355
|
+
useFactory: (options) => {
|
|
356
|
+
return new PaymentFirestoreRepository(options);
|
|
357
|
+
},
|
|
358
|
+
deps: ['FirestoreOptions'],
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
provide: ProductFirestoreRepository,
|
|
362
|
+
useFactory: (options) => {
|
|
363
|
+
return new ProductFirestoreRepository(options);
|
|
364
|
+
},
|
|
365
|
+
deps: ['FirestoreOptions'],
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
provide: 'ShopSettingsRepository',
|
|
369
|
+
useFactory: (options) => {
|
|
370
|
+
return new ShopSettingsFirestoreRepository(options);
|
|
371
|
+
},
|
|
372
|
+
deps: ['FirestoreOptions'],
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
provide: 'SubscriptionPaymentRepository',
|
|
376
|
+
useFactory: (options, subscriptionRepository) => {
|
|
377
|
+
return new SubscriptionPaymentFirestoreRepository(options, subscriptionRepository);
|
|
378
|
+
},
|
|
379
|
+
deps: ['FirestoreOptions', 'SubscriptionRepository'],
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
provide: 'SubscriptionPlanRepository',
|
|
383
|
+
useFactory: (options) => {
|
|
384
|
+
return new SubscriptionPlanFirestoreRepository(options);
|
|
385
|
+
},
|
|
386
|
+
deps: ['FirestoreOptions'],
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
provide: 'SubscriptionProductRepository',
|
|
390
|
+
useFactory: (options) => {
|
|
391
|
+
return new SubscriptionProductFirestoreRepository(options);
|
|
392
|
+
},
|
|
393
|
+
deps: ['FirestoreOptions'],
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
provide: 'SubscriptionRepository',
|
|
397
|
+
useFactory: (options) => {
|
|
398
|
+
return new SubscriptionFirestoreRepository(options);
|
|
399
|
+
},
|
|
400
|
+
deps: ['FirestoreOptions'],
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
provide: 'UserRepository',
|
|
404
|
+
useFactory: (options) => {
|
|
405
|
+
return new UserFirestoreRepository(options);
|
|
406
|
+
},
|
|
407
|
+
deps: ['FirestoreOptions'],
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
provide: 'UserAddressRepository',
|
|
411
|
+
useFactory: (options, userRepository) => {
|
|
412
|
+
return new UserAddressFirestoreRepository(options, userRepository);
|
|
413
|
+
},
|
|
414
|
+
deps: ['FirestoreOptions', 'UserRepository'],
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
provide: 'UserPaymentMethodRepository',
|
|
418
|
+
useFactory: (options, userRepository) => {
|
|
419
|
+
return new UserPaymentMethodFirestoreRepository(options, userRepository);
|
|
420
|
+
},
|
|
421
|
+
deps: ['FirestoreOptions', 'UserRepository'],
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
provide: 'SubscriptionMaterializationRepository',
|
|
425
|
+
useFactory: (options) => {
|
|
426
|
+
return new SubscriptionMaterializationFirestoreRepository(options);
|
|
427
|
+
},
|
|
428
|
+
deps: ['FirestoreOptions'],
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
provide: 'SubscriptionSummaryRepository',
|
|
432
|
+
useFactory: (options) => {
|
|
433
|
+
return new SubscriptionSummaryFirestoreRepository(options);
|
|
434
|
+
},
|
|
435
|
+
deps: ['FirestoreOptions'],
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
provide: ProductVariantFirestoreRepository,
|
|
439
|
+
useFactory: (options, productRepository) => {
|
|
440
|
+
return new ProductVariantFirestoreRepository(options, productRepository);
|
|
441
|
+
},
|
|
442
|
+
deps: ['FirestoreOptions', ProductFirestoreRepository],
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
provide: 'OrderBlockedRepository',
|
|
446
|
+
useFactory: (options) => {
|
|
447
|
+
return new OrderBlockedFirestoreRepository(options);
|
|
448
|
+
},
|
|
449
|
+
deps: ['FirestoreOptions'],
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
provide: 'LogRepository',
|
|
453
|
+
useFactory: (options) => {
|
|
454
|
+
return new LogFirestoreRepository(options);
|
|
455
|
+
},
|
|
456
|
+
deps: ['FirestoreOptions'],
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
provide: 'SequenceRepository',
|
|
460
|
+
useFactory: (options) => {
|
|
461
|
+
return new SequenceFirestoreRepository(options);
|
|
462
|
+
},
|
|
463
|
+
deps: ['FirestoreOptions'],
|
|
464
|
+
},
|
|
465
|
+
], imports: [AngularElasticSeachModule,
|
|
466
|
+
provideFirestore((injector) => {
|
|
467
|
+
const platformId = injector.get(PLATFORM_ID);
|
|
468
|
+
if (isPlatformServer(platformId) || !MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
469
|
+
return initializeFirestore(injector.get(FirebaseApp), {
|
|
470
|
+
ignoreUndefinedProperties: true,
|
|
471
|
+
});
|
|
472
|
+
const firestore = initializeFirestore(injector.get(FirebaseApp), {
|
|
473
|
+
experimentalForceLongPolling: true,
|
|
471
474
|
ignoreUndefinedProperties: true,
|
|
475
|
+
localCache: memoryLocalCache(),
|
|
472
476
|
});
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
});
|
|
478
|
-
return firestore;
|
|
479
|
-
})] });
|
|
480
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, decorators: [{
|
|
477
|
+
return firestore;
|
|
478
|
+
})] }); }
|
|
479
|
+
}
|
|
480
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirestoreModule, decorators: [{
|
|
481
481
|
type: NgModule,
|
|
482
482
|
args: [{
|
|
483
483
|
imports: [
|
|
@@ -747,166 +747,166 @@ class AngularHasuraGraphQLModule {
|
|
|
747
747
|
providers: [{ provide: HASURA_OPTIONS, useValue: options }],
|
|
748
748
|
};
|
|
749
749
|
}
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
750
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularHasuraGraphQLModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
751
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularHasuraGraphQLModule }); }
|
|
752
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularHasuraGraphQLModule, providers: [
|
|
753
|
+
{
|
|
754
|
+
provide: 'HasuraConfig',
|
|
755
|
+
useFactory: (options, platformId) => ({
|
|
756
|
+
endpoint: options.endpoint,
|
|
757
|
+
authOptions: options.credentials,
|
|
758
|
+
cache: options.cache,
|
|
759
|
+
interceptors: {
|
|
760
|
+
request: (request) => {
|
|
761
|
+
if (isPlatformBrowser(platformId))
|
|
762
|
+
return request;
|
|
763
|
+
const interval = setInterval(() => { }, 100);
|
|
764
|
+
request.interval = interval;
|
|
763
765
|
return request;
|
|
764
|
-
|
|
765
|
-
request
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
if (isPlatformBrowser(platformId))
|
|
766
|
+
},
|
|
767
|
+
response: (response, request) => {
|
|
768
|
+
if (isPlatformBrowser(platformId))
|
|
769
|
+
return response;
|
|
770
|
+
clearInterval(request.interval);
|
|
770
771
|
return response;
|
|
771
|
-
|
|
772
|
-
return response;
|
|
772
|
+
},
|
|
773
773
|
},
|
|
774
|
+
}),
|
|
775
|
+
deps: [HASURA_OPTIONS, PLATFORM_ID],
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
provide: 'CategoryRepository',
|
|
779
|
+
useExisting: CategoryHasuraGraphQLRepository,
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
provide: CategoryHasuraGraphQLRepository,
|
|
783
|
+
useFactory: (options, productRepository, categoryFilterRepository) => {
|
|
784
|
+
return new CategoryHasuraGraphQLRepository(options, productRepository, categoryFilterRepository);
|
|
774
785
|
},
|
|
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: [{
|
|
786
|
+
deps: ['HasuraConfig', ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
provide: 'ProductRepository',
|
|
790
|
+
useExisting: ProductHasuraGraphQLRepository,
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
provide: ProductHasuraGraphQLRepository,
|
|
794
|
+
useFactory: (hasuraConfig) => {
|
|
795
|
+
return new ProductHasuraGraphQLRepository(hasuraConfig);
|
|
796
|
+
},
|
|
797
|
+
deps: ['HasuraConfig'],
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
provide: 'ProductReviewRepository',
|
|
801
|
+
useExisting: ProductReviewHasuraGraphQLRepository,
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
provide: ProductReviewHasuraGraphQLRepository,
|
|
805
|
+
useFactory: (hasuraConfig) => {
|
|
806
|
+
return new ProductReviewHasuraGraphQLRepository(hasuraConfig);
|
|
807
|
+
},
|
|
808
|
+
deps: ['HasuraConfig'],
|
|
809
|
+
},
|
|
810
|
+
{
|
|
811
|
+
provide: 'VariantRepository',
|
|
812
|
+
useExisting: VariantHasuraGraphQLRepository,
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
provide: VariantHasuraGraphQLRepository,
|
|
816
|
+
useFactory: (hasuraConfig) => {
|
|
817
|
+
return new VariantHasuraGraphQLRepository(hasuraConfig);
|
|
818
|
+
},
|
|
819
|
+
deps: ['HasuraConfig'],
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
provide: 'ProductStockNotificationRepository',
|
|
823
|
+
useExisting: ProductStockNotificationHasuraGraphQLRepository,
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
provide: ProductStockNotificationHasuraGraphQLRepository,
|
|
827
|
+
useFactory: (hasuraConfig) => {
|
|
828
|
+
return new ProductStockNotificationHasuraGraphQLRepository(hasuraConfig);
|
|
829
|
+
},
|
|
830
|
+
deps: ['HasuraConfig'],
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
provide: 'CategoryFilterRepository',
|
|
834
|
+
useExisting: CategoryFilterHasuraGraphQLRepository,
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
provide: CategoryFilterHasuraGraphQLRepository,
|
|
838
|
+
useFactory: (options) => {
|
|
839
|
+
return new CategoryFilterHasuraGraphQLRepository(options);
|
|
840
|
+
},
|
|
841
|
+
deps: ['HasuraConfig'],
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
provide: 'FilterOptionRepository',
|
|
845
|
+
useExisting: FilterOptionHasuraGraphQLRepository,
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
provide: FilterOptionHasuraGraphQLRepository,
|
|
849
|
+
useFactory: (options) => {
|
|
850
|
+
return new FilterOptionHasuraGraphQLRepository(options);
|
|
851
|
+
},
|
|
852
|
+
deps: ['HasuraConfig'],
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
provide: 'FilterRepository',
|
|
856
|
+
useExisting: FilterHasuraGraphQLRepository,
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
provide: FilterHasuraGraphQLRepository,
|
|
860
|
+
useFactory: (options, filterOptionRepository, categoryFilterRepository) => {
|
|
861
|
+
return new FilterHasuraGraphQLRepository(options, filterOptionRepository, categoryFilterRepository);
|
|
862
|
+
},
|
|
863
|
+
deps: ['HasuraConfig', FilterOptionHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
provide: CategoryCollectionChildrenHasuraGraphQLRepository,
|
|
867
|
+
useFactory: (options) => new CategoryCollectionChildrenHasuraGraphQLRepository(options),
|
|
868
|
+
deps: ['HasuraConfig'],
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
provide: 'CategoryCollectionChildrenRepository',
|
|
872
|
+
useExisting: CategoryCollectionChildrenHasuraGraphQLRepository,
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
provide: CategoryProductHasuraGraphQLRepository,
|
|
876
|
+
useFactory: (options) => {
|
|
877
|
+
return new CategoryProductHasuraGraphQLRepository(options);
|
|
878
|
+
},
|
|
879
|
+
deps: ['HasuraConfig'],
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
provide: 'CategoryProductRepository',
|
|
883
|
+
useExisting: CategoryProductHasuraGraphQLRepository,
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
provide: WishlistHasuraGraphQLRepository,
|
|
887
|
+
useFactory: (options, categoryProductRepository) => {
|
|
888
|
+
return new WishlistHasuraGraphQLRepository(options, categoryProductRepository);
|
|
889
|
+
},
|
|
890
|
+
deps: ['HasuraConfig', CategoryProductHasuraGraphQLRepository],
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
provide: 'WishlistRepository',
|
|
894
|
+
useExisting: WishlistHasuraGraphQLRepository,
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
provide: ProductErrorsHasuraGraphQLRepository,
|
|
898
|
+
useFactory: (options, productRepository) => {
|
|
899
|
+
return new ProductErrorsHasuraGraphQLRepository(options, productRepository);
|
|
900
|
+
},
|
|
901
|
+
deps: ['HasuraConfig', ProductHasuraGraphQLRepository],
|
|
902
|
+
},
|
|
903
|
+
{
|
|
904
|
+
provide: 'ProductErrorsRepository',
|
|
905
|
+
useExisting: ProductErrorsHasuraGraphQLRepository,
|
|
906
|
+
},
|
|
907
|
+
] }); }
|
|
908
|
+
}
|
|
909
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularHasuraGraphQLModule, decorators: [{
|
|
910
910
|
type: NgModule,
|
|
911
911
|
args: [{
|
|
912
912
|
providers: [
|
|
@@ -1075,17 +1075,17 @@ class AngularVertexSeachModule {
|
|
|
1075
1075
|
providers: [{ provide: VERTEX_CONFIG, useValue: options }],
|
|
1076
1076
|
};
|
|
1077
1077
|
}
|
|
1078
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularVertexSeachModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1079
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularVertexSeachModule }); }
|
|
1080
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularVertexSeachModule, providers: [
|
|
1081
|
+
{
|
|
1082
|
+
provide: ProductsVertexSearch,
|
|
1083
|
+
useFactory: (configuration) => new ProductsVertexSearch(new VertexAxiosAdapter(configuration)),
|
|
1084
|
+
deps: [VERTEX_CONFIG],
|
|
1085
|
+
},
|
|
1086
|
+
] }); }
|
|
1078
1087
|
}
|
|
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: [{
|
|
1088
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularVertexSeachModule, decorators: [{
|
|
1089
1089
|
type: NgModule,
|
|
1090
1090
|
args: [{
|
|
1091
1091
|
providers: [
|
|
@@ -1110,10 +1110,10 @@ class CookieDataPersistence {
|
|
|
1110
1110
|
set(key, value) {
|
|
1111
1111
|
return from(cookie.set(key, value)).pipe(map(() => { }));
|
|
1112
1112
|
}
|
|
1113
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CookieDataPersistence, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1114
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CookieDataPersistence }); }
|
|
1113
1115
|
}
|
|
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: [{
|
|
1116
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CookieDataPersistence, decorators: [{
|
|
1117
1117
|
type: Injectable
|
|
1118
1118
|
}] });
|
|
1119
1119
|
|
|
@@ -1138,48 +1138,48 @@ class AuthService {
|
|
|
1138
1138
|
getFireUser() {
|
|
1139
1139
|
return authState(this.angularFireAuth).pipe(catchError(() => of(null)));
|
|
1140
1140
|
}
|
|
1141
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AuthService, deps: [{ token: i1.Auth }, { token: 'UserRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1142
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AuthService }); }
|
|
1141
1143
|
}
|
|
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: [{
|
|
1144
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AuthService, decorators: [{
|
|
1145
1145
|
type: Injectable
|
|
1146
|
-
}], ctorParameters:
|
|
1146
|
+
}], ctorParameters: () => [{ type: i1.Auth }, { type: undefined, decorators: [{
|
|
1147
1147
|
type: Inject,
|
|
1148
1148
|
args: ['UserRepository']
|
|
1149
|
-
}] }]
|
|
1149
|
+
}] }] });
|
|
1150
1150
|
|
|
1151
1151
|
class CheckoutRepositoriesFacade {
|
|
1152
1152
|
constructor(checkoutRepository, userRepository) {
|
|
1153
1153
|
this.checkoutRepository = checkoutRepository;
|
|
1154
1154
|
this.userRepository = userRepository;
|
|
1155
1155
|
}
|
|
1156
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutRepositoriesFacade, deps: [{ token: 'CheckoutRepository' }, { token: 'UserRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1157
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutRepositoriesFacade }); }
|
|
1156
1158
|
}
|
|
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: [{
|
|
1159
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutRepositoriesFacade, decorators: [{
|
|
1160
1160
|
type: Injectable
|
|
1161
|
-
}], ctorParameters:
|
|
1161
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1162
1162
|
type: Inject,
|
|
1163
1163
|
args: ['CheckoutRepository']
|
|
1164
1164
|
}] }, { type: undefined, decorators: [{
|
|
1165
1165
|
type: Inject,
|
|
1166
1166
|
args: ['UserRepository']
|
|
1167
|
-
}] }]
|
|
1167
|
+
}] }] });
|
|
1168
1168
|
|
|
1169
1169
|
class CheckoutDependenciesFacade {
|
|
1170
1170
|
constructor(dataPersistence, httpClient) {
|
|
1171
1171
|
this.dataPersistence = dataPersistence;
|
|
1172
1172
|
this.httpClient = httpClient;
|
|
1173
1173
|
}
|
|
1174
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutDependenciesFacade, deps: [{ token: PERSISTENCE_PROVIDER }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1175
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutDependenciesFacade }); }
|
|
1174
1176
|
}
|
|
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: [{
|
|
1177
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutDependenciesFacade, decorators: [{
|
|
1178
1178
|
type: Injectable
|
|
1179
|
-
}], ctorParameters:
|
|
1179
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1180
1180
|
type: Inject,
|
|
1181
1181
|
args: [PERSISTENCE_PROVIDER]
|
|
1182
|
-
}] }, { type: i1$2.HttpClient }]
|
|
1182
|
+
}] }, { type: i1$2.HttpClient }] });
|
|
1183
1183
|
|
|
1184
1184
|
class ConfigurationFacade {
|
|
1185
1185
|
constructor(defaultShop, firebaseOptions) {
|
|
@@ -1192,18 +1192,18 @@ class ConfigurationFacade {
|
|
|
1192
1192
|
getProjectId() {
|
|
1193
1193
|
return this.firebaseOptions.projectId;
|
|
1194
1194
|
}
|
|
1195
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ConfigurationFacade, deps: [{ token: DEFAULT_SHOP }, { token: FIREBASE_OPTIONS }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1196
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ConfigurationFacade }); }
|
|
1195
1197
|
}
|
|
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: [{
|
|
1198
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ConfigurationFacade, decorators: [{
|
|
1199
1199
|
type: Injectable
|
|
1200
|
-
}], ctorParameters:
|
|
1200
|
+
}], ctorParameters: () => [{ type: i3.Shops, decorators: [{
|
|
1201
1201
|
type: Inject,
|
|
1202
1202
|
args: [DEFAULT_SHOP]
|
|
1203
1203
|
}] }, { type: undefined, decorators: [{
|
|
1204
1204
|
type: Inject,
|
|
1205
1205
|
args: [FIREBASE_OPTIONS]
|
|
1206
|
-
}] }]
|
|
1206
|
+
}] }] });
|
|
1207
1207
|
|
|
1208
1208
|
class CheckoutService {
|
|
1209
1209
|
constructor(repositoriesFacade, dependenciesFacade, configurationFacade) {
|
|
@@ -1295,12 +1295,12 @@ class CheckoutService {
|
|
|
1295
1295
|
await this.dependenciesFacade.dataPersistence.set('checkoutId', checkout.id).toPromise();
|
|
1296
1296
|
return checkout;
|
|
1297
1297
|
}
|
|
1298
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutService, deps: [{ token: CheckoutRepositoriesFacade }, { token: CheckoutDependenciesFacade }, { token: ConfigurationFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1299
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutService }); }
|
|
1298
1300
|
}
|
|
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: [{
|
|
1301
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutService, decorators: [{
|
|
1302
1302
|
type: Injectable
|
|
1303
|
-
}], ctorParameters:
|
|
1303
|
+
}], ctorParameters: () => [{ type: CheckoutRepositoriesFacade }, { type: CheckoutDependenciesFacade }, { type: ConfigurationFacade }] });
|
|
1304
1304
|
|
|
1305
1305
|
class CartServicesFacade {
|
|
1306
1306
|
constructor(authService, checkoutService, httpClient) {
|
|
@@ -1308,12 +1308,12 @@ class CartServicesFacade {
|
|
|
1308
1308
|
this.checkoutService = checkoutService;
|
|
1309
1309
|
this.httpClient = httpClient;
|
|
1310
1310
|
}
|
|
1311
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CartServicesFacade, deps: [{ token: AuthService }, { token: CheckoutService }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1312
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CartServicesFacade }); }
|
|
1311
1313
|
}
|
|
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: [{
|
|
1314
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CartServicesFacade, decorators: [{
|
|
1315
1315
|
type: Injectable
|
|
1316
|
-
}], ctorParameters:
|
|
1316
|
+
}], ctorParameters: () => [{ type: AuthService }, { type: CheckoutService }, { type: i1$2.HttpClient }] });
|
|
1317
1317
|
|
|
1318
1318
|
class CartService {
|
|
1319
1319
|
constructor(servicesFacade, configurationFacade) {
|
|
@@ -1372,12 +1372,12 @@ class CartService {
|
|
|
1372
1372
|
buildCartFromCheckout(checkoutData) {
|
|
1373
1373
|
return this.servicesFacade.checkoutService.getCheckout(checkoutData).pipe(map((checkout) => checkout.lineItems), concatMap((lineItems) => of(this.generateCartObject(lineItems))));
|
|
1374
1374
|
}
|
|
1375
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CartService, deps: [{ token: CartServicesFacade }, { token: ConfigurationFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1376
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CartService }); }
|
|
1375
1377
|
}
|
|
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: [{
|
|
1378
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CartService, decorators: [{
|
|
1379
1379
|
type: Injectable
|
|
1380
|
-
}], ctorParameters:
|
|
1380
|
+
}], ctorParameters: () => [{ type: CartServicesFacade }, { type: ConfigurationFacade }] });
|
|
1381
1381
|
|
|
1382
1382
|
class NewCategoryStructureAdapter {
|
|
1383
1383
|
constructor(categoryRepository) {
|
|
@@ -1409,15 +1409,15 @@ class NewCategoryStructureAdapter {
|
|
|
1409
1409
|
category.brandCategory;
|
|
1410
1410
|
return collectionCategory ? this.categoryRepository.get({ id: category.id }) : category;
|
|
1411
1411
|
}
|
|
1412
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NewCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1413
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NewCategoryStructureAdapter }); }
|
|
1412
1414
|
}
|
|
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: [{
|
|
1415
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NewCategoryStructureAdapter, decorators: [{
|
|
1416
1416
|
type: Injectable
|
|
1417
|
-
}], ctorParameters:
|
|
1417
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1418
1418
|
type: Inject,
|
|
1419
1419
|
args: ['CategoryRepository']
|
|
1420
|
-
}] }]
|
|
1420
|
+
}] }] });
|
|
1421
1421
|
|
|
1422
1422
|
class OldCategoryStructureAdapter {
|
|
1423
1423
|
constructor(categoryRepository) {
|
|
@@ -1429,15 +1429,15 @@ class OldCategoryStructureAdapter {
|
|
|
1429
1429
|
: await this.categoryRepository.get({ id: category.id }).then((categoryFound) => categoryFound.products);
|
|
1430
1430
|
return { id: { operator: Where.IN, value: productsIds } };
|
|
1431
1431
|
}
|
|
1432
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OldCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1433
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OldCategoryStructureAdapter }); }
|
|
1432
1434
|
}
|
|
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: [{
|
|
1435
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OldCategoryStructureAdapter, decorators: [{
|
|
1436
1436
|
type: Injectable
|
|
1437
|
-
}], ctorParameters:
|
|
1437
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1438
1438
|
type: Inject,
|
|
1439
1439
|
args: ['CategoryRepository']
|
|
1440
|
-
}] }]
|
|
1440
|
+
}] }] });
|
|
1441
1441
|
|
|
1442
1442
|
class CatalogSearchContext {
|
|
1443
1443
|
constructor(categoryStrategy, termStrategy, profileStrategy) {
|
|
@@ -1528,7 +1528,7 @@ class CategorySearchStrategy {
|
|
|
1528
1528
|
});
|
|
1529
1529
|
}
|
|
1530
1530
|
async searchDefault(params) {
|
|
1531
|
-
const { category, filters, limits,
|
|
1531
|
+
const { category, filters, limits, sort, optionsCache, fields } = params;
|
|
1532
1532
|
const productCatalog = this.repositoryService.getProductCatalog();
|
|
1533
1533
|
const filterHelper = this.helpersService.getFilterHelper();
|
|
1534
1534
|
const sortHelper = this.helpersService.getSortHelper();
|
|
@@ -1546,7 +1546,7 @@ class CategorySearchStrategy {
|
|
|
1546
1546
|
distinct: ['brand'],
|
|
1547
1547
|
},
|
|
1548
1548
|
};
|
|
1549
|
-
return productCatalog.productRepository.findCatalog(repoParams,
|
|
1549
|
+
return productCatalog.productRepository.findCatalog(repoParams, null, optionsCache);
|
|
1550
1550
|
}
|
|
1551
1551
|
async getProductIds(category, filters, optionsCache) {
|
|
1552
1552
|
const productCatalog = this.repositoryService.getProductCatalog();
|
|
@@ -1600,12 +1600,12 @@ class CategorySearchStrategy {
|
|
|
1600
1600
|
distinct: totalResult.distinct,
|
|
1601
1601
|
};
|
|
1602
1602
|
}
|
|
1603
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategorySearchStrategy, deps: [{ token: CatalogRepositoryService }, { token: CatalogHelpersService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1604
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategorySearchStrategy }); }
|
|
1603
1605
|
}
|
|
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: [{
|
|
1606
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategorySearchStrategy, decorators: [{
|
|
1607
1607
|
type: Injectable
|
|
1608
|
-
}], ctorParameters:
|
|
1608
|
+
}], ctorParameters: () => [{ type: CatalogRepositoryService }, { type: CatalogHelpersService }] });
|
|
1609
1609
|
|
|
1610
1610
|
class ProfileSearchStrategy {
|
|
1611
1611
|
constructor(repositoryService, helpersService) {
|
|
@@ -1637,12 +1637,12 @@ class ProfileSearchStrategy {
|
|
|
1637
1637
|
};
|
|
1638
1638
|
return productCatalog.productRepository.findCatalog(repoParams, mainGender || (shop === Shops.MENSMARKET ? 'male' : 'female'), optionsCache);
|
|
1639
1639
|
}
|
|
1640
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProfileSearchStrategy, deps: [{ token: CatalogRepositoryService }, { token: CatalogHelpersService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1641
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProfileSearchStrategy }); }
|
|
1640
1642
|
}
|
|
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: [{
|
|
1643
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProfileSearchStrategy, decorators: [{
|
|
1644
1644
|
type: Injectable
|
|
1645
|
-
}], ctorParameters:
|
|
1645
|
+
}], ctorParameters: () => [{ type: CatalogRepositoryService }, { type: CatalogHelpersService }] });
|
|
1646
1646
|
|
|
1647
1647
|
class TermSearchStrategy {
|
|
1648
1648
|
constructor(repositoryService, helpersService) {
|
|
@@ -1690,7 +1690,7 @@ class TermSearchStrategy {
|
|
|
1690
1690
|
maximum: ['price'],
|
|
1691
1691
|
...(isEmpty(filters?.brands) ? { distinct: ['brand'] } : {}),
|
|
1692
1692
|
},
|
|
1693
|
-
}
|
|
1693
|
+
});
|
|
1694
1694
|
return this.sortByTermRelevance({
|
|
1695
1695
|
productIds,
|
|
1696
1696
|
totalResult,
|
|
@@ -1716,22 +1716,19 @@ class TermSearchStrategy {
|
|
|
1716
1716
|
maximum: ['price'],
|
|
1717
1717
|
distinct: ['brand'],
|
|
1718
1718
|
},
|
|
1719
|
-
}
|
|
1719
|
+
});
|
|
1720
1720
|
}
|
|
1721
1721
|
sortByTermRelevance(params) {
|
|
1722
1722
|
const { productIds, totalResult, limits, filters, fieldsHelper } = params;
|
|
1723
|
-
const defaultGender = filters?.gender?.at(0) || 'male'
|
|
1723
|
+
// const defaultGender = filters?.gender?.at(0) || 'male'
|
|
1724
1724
|
const stockData = totalResult.data.filter((product) => product.stock.quantity > 0);
|
|
1725
1725
|
const stockOut = totalResult.data.filter((product) => product.stock.quantity <= 0);
|
|
1726
|
-
const
|
|
1727
|
-
const productIdsStockNotGender = productIds.filter((product) => stockData.some((result) => result.id === product && !result.gender?.includes(defaultGender) && !result.gender?.includes('unisex')));
|
|
1728
|
-
const productIdsStock = productIdsStockGender.concat(productIdsStockNotGender);
|
|
1726
|
+
const productIdsStock = productIds.filter((product) => stockData.some((result) => result.id === product));
|
|
1729
1727
|
const productIdsStockOut = productIds.filter((product) => stockOut.some((result) => result.id === product));
|
|
1730
1728
|
const limitedProductId = productIdsStock
|
|
1731
1729
|
.concat(productIdsStockOut)
|
|
1732
1730
|
.slice(limits.offset, limits.offset + limits.limit);
|
|
1733
|
-
|
|
1734
|
-
return this.getDetailedProducts(orderedId, totalResult, fieldsHelper);
|
|
1731
|
+
return this.getDetailedProducts(limitedProductId, totalResult, fieldsHelper);
|
|
1735
1732
|
}
|
|
1736
1733
|
async getDetailedProducts(orderedId, totalResult, fieldsHelper) {
|
|
1737
1734
|
const productCatalog = this.repositoryService.getProductCatalog();
|
|
@@ -1758,12 +1755,12 @@ class TermSearchStrategy {
|
|
|
1758
1755
|
.search(term, 999, shop === Shops.GLAMSHOP ? 'female' : 'male')
|
|
1759
1756
|
.then((products) => [...new Set(products.map((product) => product.id))]));
|
|
1760
1757
|
}
|
|
1758
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: TermSearchStrategy, deps: [{ token: CatalogRepositoryService }, { token: CatalogHelpersService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1759
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: TermSearchStrategy }); }
|
|
1761
1760
|
}
|
|
1762
|
-
|
|
1763
|
-
TermSearchStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: TermSearchStrategy });
|
|
1764
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: TermSearchStrategy, decorators: [{
|
|
1761
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: TermSearchStrategy, decorators: [{
|
|
1765
1762
|
type: Injectable
|
|
1766
|
-
}], ctorParameters:
|
|
1763
|
+
}], ctorParameters: () => [{ type: CatalogRepositoryService }, { type: CatalogHelpersService }] });
|
|
1767
1764
|
|
|
1768
1765
|
class CatalogStrategiesFacade {
|
|
1769
1766
|
constructor(categoryStrategy, termStrategy, profileStrategy) {
|
|
@@ -1771,12 +1768,12 @@ class CatalogStrategiesFacade {
|
|
|
1771
1768
|
this.termStrategy = termStrategy;
|
|
1772
1769
|
this.profileStrategy = profileStrategy;
|
|
1773
1770
|
}
|
|
1771
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogStrategiesFacade, deps: [{ token: CategorySearchStrategy }, { token: TermSearchStrategy }, { token: ProfileSearchStrategy }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1772
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogStrategiesFacade }); }
|
|
1774
1773
|
}
|
|
1775
|
-
|
|
1776
|
-
CatalogStrategiesFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogStrategiesFacade });
|
|
1777
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogStrategiesFacade, decorators: [{
|
|
1774
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogStrategiesFacade, decorators: [{
|
|
1778
1775
|
type: Injectable
|
|
1779
|
-
}], ctorParameters:
|
|
1776
|
+
}], ctorParameters: () => [{ type: CategorySearchStrategy }, { type: TermSearchStrategy }, { type: ProfileSearchStrategy }] });
|
|
1780
1777
|
|
|
1781
1778
|
class CatalogServiceFacade {
|
|
1782
1779
|
constructor(helpersService, strategiesFacade, shop) {
|
|
@@ -1789,33 +1786,33 @@ class CatalogServiceFacade {
|
|
|
1789
1786
|
getCatalogService() {
|
|
1790
1787
|
return this.catalogService;
|
|
1791
1788
|
}
|
|
1789
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogServiceFacade, deps: [{ token: CatalogHelpersService }, { token: CatalogStrategiesFacade }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1790
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogServiceFacade }); }
|
|
1792
1791
|
}
|
|
1793
|
-
|
|
1794
|
-
CatalogServiceFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogServiceFacade });
|
|
1795
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogServiceFacade, decorators: [{
|
|
1792
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogServiceFacade, decorators: [{
|
|
1796
1793
|
type: Injectable
|
|
1797
|
-
}], ctorParameters:
|
|
1794
|
+
}], ctorParameters: () => [{ type: CatalogHelpersService }, { type: CatalogStrategiesFacade }, { type: i3.Shops, decorators: [{
|
|
1798
1795
|
type: Inject,
|
|
1799
1796
|
args: [DEFAULT_SHOP]
|
|
1800
|
-
}] }]
|
|
1797
|
+
}] }] });
|
|
1801
1798
|
|
|
1802
1799
|
class CategoryRepositoryFacade {
|
|
1803
1800
|
constructor(categoryRepository, categoryFilterRepository) {
|
|
1804
1801
|
this.categoryRepository = categoryRepository;
|
|
1805
1802
|
this.categoryFilterRepository = categoryFilterRepository;
|
|
1806
1803
|
}
|
|
1804
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryRepositoryFacade, deps: [{ token: 'CategoryRepository' }, { token: 'CategoryFilterRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1805
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryRepositoryFacade }); }
|
|
1807
1806
|
}
|
|
1808
|
-
|
|
1809
|
-
CategoryRepositoryFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryRepositoryFacade });
|
|
1810
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryRepositoryFacade, decorators: [{
|
|
1807
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryRepositoryFacade, decorators: [{
|
|
1811
1808
|
type: Injectable
|
|
1812
|
-
}], ctorParameters:
|
|
1809
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1813
1810
|
type: Inject,
|
|
1814
1811
|
args: ['CategoryRepository']
|
|
1815
1812
|
}] }, { type: undefined, decorators: [{
|
|
1816
1813
|
type: Inject,
|
|
1817
1814
|
args: ['CategoryFilterRepository']
|
|
1818
|
-
}] }]
|
|
1815
|
+
}] }] });
|
|
1819
1816
|
|
|
1820
1817
|
class CategoryService {
|
|
1821
1818
|
constructor(categoryFacade, productCatalog, shop) {
|
|
@@ -1828,7 +1825,7 @@ class CategoryService {
|
|
|
1828
1825
|
.findCatalog({
|
|
1829
1826
|
filters: await this.productCatalog.categoryStructureAdapter.buildProductFilterByCategory(category),
|
|
1830
1827
|
fields: ['brand'],
|
|
1831
|
-
},
|
|
1828
|
+
}, null, optionsCache)
|
|
1832
1829
|
.then(({ data }) => Object.keys(data.map((product) => product.brand).reduce((brands, brand) => ({ ...brands, [brand]: true }), {})));
|
|
1833
1830
|
return this.categoryFacade.categoryRepository
|
|
1834
1831
|
.find({ filters: { brandCategory: true, shop: options?.shop || this.shop }, orderBy: { name: 'asc' } }, optionsCache)
|
|
@@ -1839,33 +1836,33 @@ class CategoryService {
|
|
|
1839
1836
|
.find({ filters: { categoryId: +category.id } }, optionsCache)
|
|
1840
1837
|
.then(({ data }) => data.map((categoryFilter) => categoryFilter.filter));
|
|
1841
1838
|
}
|
|
1839
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryService, deps: [{ token: CategoryRepositoryFacade }, { token: ProductCatalogFacade }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1840
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryService }); }
|
|
1842
1841
|
}
|
|
1843
|
-
|
|
1844
|
-
CategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService });
|
|
1845
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService, decorators: [{
|
|
1842
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryService, decorators: [{
|
|
1846
1843
|
type: Injectable
|
|
1847
|
-
}], ctorParameters:
|
|
1844
|
+
}], ctorParameters: () => [{ type: CategoryRepositoryFacade }, { type: ProductCatalogFacade }, { type: i3.Shops, decorators: [{
|
|
1848
1845
|
type: Inject,
|
|
1849
1846
|
args: [DEFAULT_SHOP]
|
|
1850
|
-
}] }]
|
|
1847
|
+
}] }] });
|
|
1851
1848
|
|
|
1852
1849
|
class ProductCatalogFacade {
|
|
1853
1850
|
constructor(productRepository, categoryStructureAdapter) {
|
|
1854
1851
|
this.productRepository = productRepository;
|
|
1855
1852
|
this.categoryStructureAdapter = categoryStructureAdapter;
|
|
1856
1853
|
}
|
|
1854
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProductCatalogFacade, deps: [{ token: 'ProductRepository' }, { token: CATEGORY_STRUCTURE }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1855
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProductCatalogFacade }); }
|
|
1857
1856
|
}
|
|
1858
|
-
|
|
1859
|
-
ProductCatalogFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductCatalogFacade });
|
|
1860
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductCatalogFacade, decorators: [{
|
|
1857
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProductCatalogFacade, decorators: [{
|
|
1861
1858
|
type: Injectable
|
|
1862
|
-
}], ctorParameters:
|
|
1859
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1863
1860
|
type: Inject,
|
|
1864
1861
|
args: ['ProductRepository']
|
|
1865
1862
|
}] }, { type: undefined, decorators: [{
|
|
1866
1863
|
type: Inject,
|
|
1867
1864
|
args: [CATEGORY_STRUCTURE]
|
|
1868
|
-
}] }]
|
|
1865
|
+
}] }] });
|
|
1869
1866
|
|
|
1870
1867
|
class CategoryServiceFacade {
|
|
1871
1868
|
constructor(categoryRepositoryFacade, productCatalogFacade, shop) {
|
|
@@ -1877,15 +1874,15 @@ class CategoryServiceFacade {
|
|
|
1877
1874
|
getCategoryService() {
|
|
1878
1875
|
return this.categoryService;
|
|
1879
1876
|
}
|
|
1877
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryServiceFacade, deps: [{ token: CategoryRepositoryFacade }, { token: ProductCatalogFacade }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1878
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryServiceFacade }); }
|
|
1880
1879
|
}
|
|
1881
|
-
|
|
1882
|
-
CategoryServiceFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryServiceFacade });
|
|
1883
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryServiceFacade, decorators: [{
|
|
1880
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryServiceFacade, decorators: [{
|
|
1884
1881
|
type: Injectable
|
|
1885
|
-
}], ctorParameters:
|
|
1882
|
+
}], ctorParameters: () => [{ type: CategoryRepositoryFacade }, { type: ProductCatalogFacade }, { type: i3.Shops, decorators: [{
|
|
1886
1883
|
type: Inject,
|
|
1887
1884
|
args: [DEFAULT_SHOP]
|
|
1888
|
-
}] }]
|
|
1885
|
+
}] }] });
|
|
1889
1886
|
|
|
1890
1887
|
class BrandManagerHelper {
|
|
1891
1888
|
constructor(productCatalog) {
|
|
@@ -1932,12 +1929,12 @@ class BrandManagerHelper {
|
|
|
1932
1929
|
}, options.mainGender)
|
|
1933
1930
|
.then((result) => result.distinct.brand);
|
|
1934
1931
|
}
|
|
1932
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: BrandManagerHelper, deps: [{ token: ProductCatalogFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1933
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: BrandManagerHelper }); }
|
|
1935
1934
|
}
|
|
1936
|
-
|
|
1937
|
-
BrandManagerHelper.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: BrandManagerHelper });
|
|
1938
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: BrandManagerHelper, decorators: [{
|
|
1935
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: BrandManagerHelper, decorators: [{
|
|
1939
1936
|
type: Injectable
|
|
1940
|
-
}], ctorParameters:
|
|
1937
|
+
}], ctorParameters: () => [{ type: ProductCatalogFacade }] });
|
|
1941
1938
|
|
|
1942
1939
|
class CatalogFilterHelper {
|
|
1943
1940
|
buildFilterQuery(filters) {
|
|
@@ -1973,10 +1970,10 @@ class CatalogFilterHelper {
|
|
|
1973
1970
|
}
|
|
1974
1971
|
return filterQuery;
|
|
1975
1972
|
}
|
|
1973
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogFilterHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1974
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogFilterHelper }); }
|
|
1976
1975
|
}
|
|
1977
|
-
|
|
1978
|
-
CatalogFilterHelper.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogFilterHelper });
|
|
1979
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogFilterHelper, decorators: [{
|
|
1976
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogFilterHelper, decorators: [{
|
|
1980
1977
|
type: Injectable
|
|
1981
1978
|
}] });
|
|
1982
1979
|
|
|
@@ -2023,10 +2020,10 @@ class CatalogSortHelper {
|
|
|
2023
2020
|
return {};
|
|
2024
2021
|
}
|
|
2025
2022
|
}
|
|
2023
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogSortHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2024
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogSortHelper }); }
|
|
2026
2025
|
}
|
|
2027
|
-
|
|
2028
|
-
CatalogSortHelper.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogSortHelper });
|
|
2029
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogSortHelper, decorators: [{
|
|
2026
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogSortHelper, decorators: [{
|
|
2030
2027
|
type: Injectable
|
|
2031
2028
|
}] });
|
|
2032
2029
|
|
|
@@ -2060,10 +2057,10 @@ class ProductFieldsHelper {
|
|
|
2060
2057
|
'group',
|
|
2061
2058
|
];
|
|
2062
2059
|
}
|
|
2060
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProductFieldsHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2061
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProductFieldsHelper }); }
|
|
2063
2062
|
}
|
|
2064
|
-
|
|
2065
|
-
ProductFieldsHelper.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductFieldsHelper });
|
|
2066
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductFieldsHelper, decorators: [{
|
|
2063
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProductFieldsHelper, decorators: [{
|
|
2067
2064
|
type: Injectable
|
|
2068
2065
|
}] });
|
|
2069
2066
|
|
|
@@ -2082,12 +2079,12 @@ class CatalogOperationsFacade {
|
|
|
2082
2079
|
getFieldsHelper() {
|
|
2083
2080
|
return this.fieldsHelper;
|
|
2084
2081
|
}
|
|
2082
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogOperationsFacade, deps: [{ token: CatalogFilterHelper }, { token: CatalogSortHelper }, { token: ProductFieldsHelper }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2083
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogOperationsFacade }); }
|
|
2085
2084
|
}
|
|
2086
|
-
|
|
2087
|
-
CatalogOperationsFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogOperationsFacade });
|
|
2088
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogOperationsFacade, decorators: [{
|
|
2085
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogOperationsFacade, decorators: [{
|
|
2089
2086
|
type: Injectable
|
|
2090
|
-
}], ctorParameters:
|
|
2087
|
+
}], ctorParameters: () => [{ type: CatalogFilterHelper }, { type: CatalogSortHelper }, { type: ProductFieldsHelper }] });
|
|
2091
2088
|
|
|
2092
2089
|
class ProductManagementFacade {
|
|
2093
2090
|
constructor(brandManager, productServices) {
|
|
@@ -2100,15 +2097,15 @@ class ProductManagementFacade {
|
|
|
2100
2097
|
getProductServices() {
|
|
2101
2098
|
return this.productServices;
|
|
2102
2099
|
}
|
|
2100
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProductManagementFacade, deps: [{ token: BrandManagerHelper }, { token: 'ProductServicesFacade' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2101
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProductManagementFacade }); }
|
|
2103
2102
|
}
|
|
2104
|
-
|
|
2105
|
-
ProductManagementFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductManagementFacade });
|
|
2106
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductManagementFacade, decorators: [{
|
|
2103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProductManagementFacade, decorators: [{
|
|
2107
2104
|
type: Injectable
|
|
2108
|
-
}], ctorParameters:
|
|
2105
|
+
}], ctorParameters: () => [{ type: BrandManagerHelper }, { type: undefined, decorators: [{
|
|
2109
2106
|
type: Inject,
|
|
2110
2107
|
args: ['ProductServicesFacade']
|
|
2111
|
-
}] }]
|
|
2108
|
+
}] }] });
|
|
2112
2109
|
|
|
2113
2110
|
class CatalogHelpersService {
|
|
2114
2111
|
constructor(catalogOperations, productManagement) {
|
|
@@ -2130,12 +2127,12 @@ class CatalogHelpersService {
|
|
|
2130
2127
|
getProductServices() {
|
|
2131
2128
|
return this.productManagement.getProductServices();
|
|
2132
2129
|
}
|
|
2130
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogHelpersService, deps: [{ token: CatalogOperationsFacade }, { token: ProductManagementFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2131
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogHelpersService }); }
|
|
2133
2132
|
}
|
|
2134
|
-
|
|
2135
|
-
CatalogHelpersService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogHelpersService });
|
|
2136
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogHelpersService, decorators: [{
|
|
2133
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogHelpersService, decorators: [{
|
|
2137
2134
|
type: Injectable
|
|
2138
|
-
}], ctorParameters:
|
|
2135
|
+
}], ctorParameters: () => [{ type: CatalogOperationsFacade }, { type: ProductManagementFacade }] });
|
|
2139
2136
|
|
|
2140
2137
|
class CatalogRepositoryService {
|
|
2141
2138
|
constructor(productCatalog, productServices) {
|
|
@@ -2148,15 +2145,15 @@ class CatalogRepositoryService {
|
|
|
2148
2145
|
getProductServices() {
|
|
2149
2146
|
return this.productServices;
|
|
2150
2147
|
}
|
|
2148
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogRepositoryService, deps: [{ token: ProductCatalogFacade }, { token: 'ProductServicesFacade' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2149
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogRepositoryService }); }
|
|
2151
2150
|
}
|
|
2152
|
-
|
|
2153
|
-
CatalogRepositoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogRepositoryService });
|
|
2154
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogRepositoryService, decorators: [{
|
|
2151
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogRepositoryService, decorators: [{
|
|
2155
2152
|
type: Injectable
|
|
2156
|
-
}], ctorParameters:
|
|
2153
|
+
}], ctorParameters: () => [{ type: ProductCatalogFacade }, { type: undefined, decorators: [{
|
|
2157
2154
|
type: Inject,
|
|
2158
2155
|
args: ['ProductServicesFacade']
|
|
2159
|
-
}] }]
|
|
2156
|
+
}] }] });
|
|
2160
2157
|
|
|
2161
2158
|
class CatalogService {
|
|
2162
2159
|
constructor(searchContext, helpersService, shop) {
|
|
@@ -2250,15 +2247,15 @@ class CatalogService {
|
|
|
2250
2247
|
hasCategory(options) {
|
|
2251
2248
|
return 'category' in options;
|
|
2252
2249
|
}
|
|
2250
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogService, deps: [{ token: CatalogSearchContext }, { token: CatalogHelpersService }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2251
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogService }); }
|
|
2253
2252
|
}
|
|
2254
|
-
|
|
2255
|
-
CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService });
|
|
2256
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
|
|
2253
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogService, decorators: [{
|
|
2257
2254
|
type: Injectable
|
|
2258
|
-
}], ctorParameters:
|
|
2255
|
+
}], ctorParameters: () => [{ type: CatalogSearchContext }, { type: CatalogHelpersService }, { type: i3.Shops, decorators: [{
|
|
2259
2256
|
type: Inject,
|
|
2260
2257
|
args: [DEFAULT_SHOP]
|
|
2261
|
-
}] }]
|
|
2258
|
+
}] }] });
|
|
2262
2259
|
|
|
2263
2260
|
var ProductSorts;
|
|
2264
2261
|
(function (ProductSorts) {
|
|
@@ -2279,10 +2276,11 @@ __decorate([
|
|
|
2279
2276
|
], CategoryWithTree.prototype, "children", void 0);
|
|
2280
2277
|
|
|
2281
2278
|
class WishlistService {
|
|
2282
|
-
constructor(wishlistRepository,
|
|
2279
|
+
constructor(wishlistRepository, productRepository, logRepository, shop) {
|
|
2283
2280
|
this.wishlistRepository = wishlistRepository;
|
|
2284
|
-
this.
|
|
2281
|
+
this.productRepository = productRepository;
|
|
2285
2282
|
this.logRepository = logRepository;
|
|
2283
|
+
this.shop = shop;
|
|
2286
2284
|
}
|
|
2287
2285
|
initializeServices(catalogServiceFacade, categoryServiceFacade) {
|
|
2288
2286
|
this.catalogService = catalogServiceFacade.getCatalogService();
|
|
@@ -2431,12 +2429,7 @@ class WishlistService {
|
|
|
2431
2429
|
.then((res) => res.data.at(0));
|
|
2432
2430
|
}
|
|
2433
2431
|
async findProductById(id) {
|
|
2434
|
-
|
|
2435
|
-
throw new Error('CatalogService not initialized. Call initializeServices first.');
|
|
2436
|
-
}
|
|
2437
|
-
const helpersService = this.catalogService['helpersService'];
|
|
2438
|
-
const productServices = helpersService.getProductServices();
|
|
2439
|
-
return productServices.productRepository
|
|
2432
|
+
return this.productRepository
|
|
2440
2433
|
.find({
|
|
2441
2434
|
fields: ['id', 'sku', 'EAN', 'name', 'brand'],
|
|
2442
2435
|
filters: {
|
|
@@ -2512,21 +2505,24 @@ class WishlistService {
|
|
|
2512
2505
|
productBrand: product.brand,
|
|
2513
2506
|
};
|
|
2514
2507
|
}
|
|
2508
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: WishlistService, deps: [{ token: 'WishlistRepository' }, { token: 'ProductRepository' }, { token: 'LogRepository' }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2509
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: WishlistService }); }
|
|
2515
2510
|
}
|
|
2516
|
-
|
|
2517
|
-
WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
|
|
2518
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
|
|
2511
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: WishlistService, decorators: [{
|
|
2519
2512
|
type: Injectable
|
|
2520
|
-
}], ctorParameters:
|
|
2513
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2521
2514
|
type: Inject,
|
|
2522
2515
|
args: ['WishlistRepository']
|
|
2523
|
-
}] }, { type:
|
|
2516
|
+
}] }, { type: undefined, decorators: [{
|
|
2524
2517
|
type: Inject,
|
|
2525
|
-
args: [
|
|
2518
|
+
args: ['ProductRepository']
|
|
2526
2519
|
}] }, { type: undefined, decorators: [{
|
|
2527
2520
|
type: Inject,
|
|
2528
2521
|
args: ['LogRepository']
|
|
2529
|
-
}] }
|
|
2522
|
+
}] }, { type: i3.Shops, decorators: [{
|
|
2523
|
+
type: Inject,
|
|
2524
|
+
args: [DEFAULT_SHOP]
|
|
2525
|
+
}] }] });
|
|
2530
2526
|
|
|
2531
2527
|
class CouponRepositoriesFacade {
|
|
2532
2528
|
constructor(couponRepository, orderRepository, categoryRepository) {
|
|
@@ -2534,12 +2530,12 @@ class CouponRepositoriesFacade {
|
|
|
2534
2530
|
this.orderRepository = orderRepository;
|
|
2535
2531
|
this.categoryRepository = categoryRepository;
|
|
2536
2532
|
}
|
|
2533
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CouponRepositoriesFacade, deps: [{ token: 'CouponRepository' }, { token: 'OrderRepository' }, { token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2534
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CouponRepositoriesFacade }); }
|
|
2537
2535
|
}
|
|
2538
|
-
|
|
2539
|
-
CouponRepositoriesFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponRepositoriesFacade });
|
|
2540
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponRepositoriesFacade, decorators: [{
|
|
2536
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CouponRepositoriesFacade, decorators: [{
|
|
2541
2537
|
type: Injectable
|
|
2542
|
-
}], ctorParameters:
|
|
2538
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2543
2539
|
type: Inject,
|
|
2544
2540
|
args: ['CouponRepository']
|
|
2545
2541
|
}] }, { type: undefined, decorators: [{
|
|
@@ -2548,7 +2544,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
2548
2544
|
}] }, { type: undefined, decorators: [{
|
|
2549
2545
|
type: Inject,
|
|
2550
2546
|
args: ['CategoryRepository']
|
|
2551
|
-
}] }]
|
|
2547
|
+
}] }] });
|
|
2552
2548
|
|
|
2553
2549
|
class CouponService {
|
|
2554
2550
|
constructor(repositoriesFacade, configurationFacade) {
|
|
@@ -2779,15 +2775,15 @@ class CouponService {
|
|
|
2779
2775
|
}
|
|
2780
2776
|
return couponUseLimits;
|
|
2781
2777
|
}
|
|
2778
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CouponService, deps: [{ token: CouponRepositoriesFacade }, { token: ConfigurationFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2779
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CouponService, providedIn: 'root' }); }
|
|
2782
2780
|
}
|
|
2783
|
-
|
|
2784
|
-
CouponService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, providedIn: 'root' });
|
|
2785
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, decorators: [{
|
|
2781
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CouponService, decorators: [{
|
|
2786
2782
|
type: Injectable,
|
|
2787
2783
|
args: [{
|
|
2788
2784
|
providedIn: 'root',
|
|
2789
2785
|
}]
|
|
2790
|
-
}], ctorParameters:
|
|
2786
|
+
}], ctorParameters: () => [{ type: CouponRepositoriesFacade }, { type: ConfigurationFacade }] });
|
|
2791
2787
|
|
|
2792
2788
|
class CheckoutSubscriptionService {
|
|
2793
2789
|
constructor(checkoutSubscriptionRepository, dataPersistence, couponService) {
|
|
@@ -2824,18 +2820,18 @@ class CheckoutSubscriptionService {
|
|
|
2824
2820
|
await this.dataPersistence.set('checkoutSubscriptionId', checkout.id).toPromise();
|
|
2825
2821
|
return checkout;
|
|
2826
2822
|
}
|
|
2823
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutSubscriptionService, deps: [{ token: 'CheckoutSubscriptionRepository' }, { token: PERSISTENCE_PROVIDER }, { token: CouponService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2824
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutSubscriptionService }); }
|
|
2827
2825
|
}
|
|
2828
|
-
|
|
2829
|
-
CheckoutSubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService });
|
|
2830
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService, decorators: [{
|
|
2826
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutSubscriptionService, decorators: [{
|
|
2831
2827
|
type: Injectable
|
|
2832
|
-
}], ctorParameters:
|
|
2828
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2833
2829
|
type: Inject,
|
|
2834
2830
|
args: ['CheckoutSubscriptionRepository']
|
|
2835
2831
|
}] }, { type: undefined, decorators: [{
|
|
2836
2832
|
type: Inject,
|
|
2837
2833
|
args: [PERSISTENCE_PROVIDER]
|
|
2838
|
-
}] }, { type: CouponService }]
|
|
2834
|
+
}] }, { type: CouponService }] });
|
|
2839
2835
|
|
|
2840
2836
|
class UtilHelper {
|
|
2841
2837
|
static createSlug(name) {
|
|
@@ -2861,12 +2857,12 @@ class HomeShopRepositoriesFacade {
|
|
|
2861
2857
|
this.homeRepository = homeRepository;
|
|
2862
2858
|
this.productRepository = productRepository;
|
|
2863
2859
|
}
|
|
2860
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: HomeShopRepositoriesFacade, deps: [{ token: 'CategoryRepository' }, { token: 'HomeRepository' }, { token: 'ProductRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2861
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: HomeShopRepositoriesFacade }); }
|
|
2864
2862
|
}
|
|
2865
|
-
|
|
2866
|
-
HomeShopRepositoriesFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopRepositoriesFacade });
|
|
2867
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopRepositoriesFacade, decorators: [{
|
|
2863
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: HomeShopRepositoriesFacade, decorators: [{
|
|
2868
2864
|
type: Injectable
|
|
2869
|
-
}], ctorParameters:
|
|
2865
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2870
2866
|
type: Inject,
|
|
2871
2867
|
args: ['CategoryRepository']
|
|
2872
2868
|
}] }, { type: undefined, decorators: [{
|
|
@@ -2875,7 +2871,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
2875
2871
|
}] }, { type: undefined, decorators: [{
|
|
2876
2872
|
type: Inject,
|
|
2877
2873
|
args: ['ProductRepository']
|
|
2878
|
-
}] }]
|
|
2874
|
+
}] }] });
|
|
2879
2875
|
|
|
2880
2876
|
class HomeShopService {
|
|
2881
2877
|
get homeId() {
|
|
@@ -2980,12 +2976,118 @@ class HomeShopService {
|
|
|
2980
2976
|
get gender() {
|
|
2981
2977
|
return this.homeId === 'mens_market' ? 'masculino' : undefined;
|
|
2982
2978
|
}
|
|
2979
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: HomeShopService, deps: [{ token: HomeShopRepositoriesFacade }, { token: ConfigurationFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2980
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: HomeShopService }); }
|
|
2983
2981
|
}
|
|
2984
|
-
|
|
2985
|
-
HomeShopService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService });
|
|
2986
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService, decorators: [{
|
|
2982
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: HomeShopService, decorators: [{
|
|
2987
2983
|
type: Injectable
|
|
2988
|
-
}], ctorParameters:
|
|
2984
|
+
}], ctorParameters: () => [{ type: HomeShopRepositoriesFacade }, { type: ConfigurationFacade }] });
|
|
2985
|
+
|
|
2986
|
+
class OrderProductReviewService {
|
|
2987
|
+
constructor(orderRepository, productReviewRepository, variantRepository) {
|
|
2988
|
+
this.orderRepository = orderRepository;
|
|
2989
|
+
this.productReviewRepository = productReviewRepository;
|
|
2990
|
+
this.variantRepository = variantRepository;
|
|
2991
|
+
}
|
|
2992
|
+
async getPendingReviewsByEmail(email) {
|
|
2993
|
+
const products = [];
|
|
2994
|
+
const orders = await this.getOrdersByEmail(email);
|
|
2995
|
+
if (orders.length) {
|
|
2996
|
+
for (const order of orders) {
|
|
2997
|
+
const lineItems = order.lineItems.filter((item) => !item.isGift);
|
|
2998
|
+
for (const item of lineItems) {
|
|
2999
|
+
const productReview = await this.getProductReview(order, item);
|
|
3000
|
+
if (productReview?.status != null)
|
|
3001
|
+
continue;
|
|
3002
|
+
products.push(this.buildProductReview(order, item, productReview));
|
|
3003
|
+
}
|
|
3004
|
+
}
|
|
3005
|
+
}
|
|
3006
|
+
return products;
|
|
3007
|
+
}
|
|
3008
|
+
async getOrdersByEmail(email) {
|
|
3009
|
+
const { data: orders } = await this.orderRepository.find({
|
|
3010
|
+
filters: {
|
|
3011
|
+
user: {
|
|
3012
|
+
email: email,
|
|
3013
|
+
},
|
|
3014
|
+
status: OrderStatus.ENTREGUE,
|
|
3015
|
+
createdAt: {
|
|
3016
|
+
operator: Where.GTE,
|
|
3017
|
+
value: new Date(2024, 0, 0, 0, 0, 0).getTime(),
|
|
3018
|
+
},
|
|
3019
|
+
},
|
|
3020
|
+
orderBy: {
|
|
3021
|
+
createdAt: 'desc',
|
|
3022
|
+
},
|
|
3023
|
+
});
|
|
3024
|
+
return orders;
|
|
3025
|
+
}
|
|
3026
|
+
async getProductReview(order, item) {
|
|
3027
|
+
const products = [item.id];
|
|
3028
|
+
const isVariant = await this.variantRepository
|
|
3029
|
+
.find({
|
|
3030
|
+
filters: {
|
|
3031
|
+
id: item.id,
|
|
3032
|
+
},
|
|
3033
|
+
})
|
|
3034
|
+
.then((res) => res.data.at(0));
|
|
3035
|
+
if (isVariant)
|
|
3036
|
+
products.push(isVariant.productId);
|
|
3037
|
+
const productReview = await this.productReviewRepository
|
|
3038
|
+
.find({
|
|
3039
|
+
filters: {
|
|
3040
|
+
orderId: { operator: Where.IN, value: [order.id, order.orderNumber].filter(Boolean) },
|
|
3041
|
+
productId: { operator: Where.IN, value: products },
|
|
3042
|
+
},
|
|
3043
|
+
})
|
|
3044
|
+
.then((res) => res.data.at(0));
|
|
3045
|
+
return productReview;
|
|
3046
|
+
}
|
|
3047
|
+
buildProductReview(order, item, review) {
|
|
3048
|
+
return {
|
|
3049
|
+
id: item.id,
|
|
3050
|
+
orderId: order.id,
|
|
3051
|
+
orderNumber: order.orderNumber,
|
|
3052
|
+
isEdition: false,
|
|
3053
|
+
name: item.name,
|
|
3054
|
+
image: item.image,
|
|
3055
|
+
deliveryDate: order.deliveredAt || null,
|
|
3056
|
+
evaluationInAnalysis: review ? true : false,
|
|
3057
|
+
rating: review ? review.rate : null,
|
|
3058
|
+
shopProductSlug: item.slug,
|
|
3059
|
+
};
|
|
3060
|
+
}
|
|
3061
|
+
async createReview(review) {
|
|
3062
|
+
return this.productReviewRepository.create(ProductReview.toInstance({
|
|
3063
|
+
productId: review.productId.toString(),
|
|
3064
|
+
shop: review.shop,
|
|
3065
|
+
rate: review.rate,
|
|
3066
|
+
author: review.author,
|
|
3067
|
+
email: review.email,
|
|
3068
|
+
location: review.location,
|
|
3069
|
+
review: review.comment,
|
|
3070
|
+
title: review.title,
|
|
3071
|
+
personId: review.personId,
|
|
3072
|
+
points: review.points,
|
|
3073
|
+
orderId: review.orderId,
|
|
3074
|
+
}));
|
|
3075
|
+
}
|
|
3076
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OrderProductReviewService, deps: [{ token: 'OrderRepository' }, { token: 'ProductReviewRepository' }, { token: 'VariantRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3077
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OrderProductReviewService }); }
|
|
3078
|
+
}
|
|
3079
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OrderProductReviewService, decorators: [{
|
|
3080
|
+
type: Injectable
|
|
3081
|
+
}], ctorParameters: () => [{ type: i3.OrderFirestoreRepository, decorators: [{
|
|
3082
|
+
type: Inject,
|
|
3083
|
+
args: ['OrderRepository']
|
|
3084
|
+
}] }, { type: undefined, decorators: [{
|
|
3085
|
+
type: Inject,
|
|
3086
|
+
args: ['ProductReviewRepository']
|
|
3087
|
+
}] }, { type: undefined, decorators: [{
|
|
3088
|
+
type: Inject,
|
|
3089
|
+
args: ['VariantRepository']
|
|
3090
|
+
}] }] });
|
|
2989
3091
|
|
|
2990
3092
|
class OrderService {
|
|
2991
3093
|
constructor(angularFirestore, orderRepository) {
|
|
@@ -2999,15 +3101,15 @@ class OrderService {
|
|
|
2999
3101
|
.subscribe((doc) => this.orderSubject.next(doc));
|
|
3000
3102
|
return this.orderSubject;
|
|
3001
3103
|
}
|
|
3104
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OrderService, deps: [{ token: i1$1.Firestore }, { token: 'OrderRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3105
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OrderService }); }
|
|
3002
3106
|
}
|
|
3003
|
-
|
|
3004
|
-
OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService });
|
|
3005
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
|
|
3107
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OrderService, decorators: [{
|
|
3006
3108
|
type: Injectable
|
|
3007
|
-
}], ctorParameters:
|
|
3109
|
+
}], ctorParameters: () => [{ type: i1$1.Firestore }, { type: i3.OrderFirestoreRepository, decorators: [{
|
|
3008
3110
|
type: Inject,
|
|
3009
3111
|
args: ['OrderRepository']
|
|
3010
|
-
}] }]
|
|
3112
|
+
}] }] });
|
|
3011
3113
|
|
|
3012
3114
|
class AngularConnectModule {
|
|
3013
3115
|
static initializeApp(defaultShop, options, nameOrConfig) {
|
|
@@ -3049,116 +3151,117 @@ class AngularConnectModule {
|
|
|
3049
3151
|
static createProviderIfExists(token, value) {
|
|
3050
3152
|
return isNil(value) ? [] : [{ provide: token, useValue: value }];
|
|
3051
3153
|
}
|
|
3052
|
-
}
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3154
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3155
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, imports: [i1$3.FirebaseAppModule, i2.AppCheckModule, i3$1.StorageModule, AngularElasticSeachModule,
|
|
3156
|
+
AngularVertexSeachModule,
|
|
3157
|
+
AngularFirebaseAuthModule,
|
|
3158
|
+
AngularFirestoreModule,
|
|
3159
|
+
AngularHasuraGraphQLModule] }); }
|
|
3160
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, providers: [
|
|
3161
|
+
AuthService,
|
|
3162
|
+
CartService,
|
|
3163
|
+
CatalogService,
|
|
3164
|
+
CategoryService,
|
|
3165
|
+
CheckoutService,
|
|
3166
|
+
CheckoutSubscriptionService,
|
|
3167
|
+
CouponService,
|
|
3168
|
+
HomeShopService,
|
|
3169
|
+
OrderService,
|
|
3170
|
+
WishlistService,
|
|
3171
|
+
ConfigurationFacade,
|
|
3172
|
+
CartServicesFacade,
|
|
3173
|
+
CheckoutRepositoriesFacade,
|
|
3174
|
+
CheckoutDependenciesFacade,
|
|
3175
|
+
CategoryRepositoryFacade,
|
|
3176
|
+
ProductCatalogFacade,
|
|
3177
|
+
CatalogServiceFacade,
|
|
3178
|
+
CategoryServiceFacade,
|
|
3179
|
+
CatalogStrategiesFacade,
|
|
3180
|
+
CatalogOperationsFacade,
|
|
3181
|
+
ProductManagementFacade,
|
|
3182
|
+
{
|
|
3183
|
+
provide: 'ProductServicesFacade',
|
|
3184
|
+
useFactory: (productStockNotificationRepository, categoryRepository, productSearch) => ({
|
|
3185
|
+
productStockNotificationRepository,
|
|
3186
|
+
categoryRepository,
|
|
3187
|
+
productSearch,
|
|
3188
|
+
}),
|
|
3189
|
+
deps: ['ProductStockNotificationRepository', 'CategoryRepository', 'ProductSearch'],
|
|
3190
|
+
},
|
|
3191
|
+
CatalogFilterHelper,
|
|
3192
|
+
CatalogSortHelper,
|
|
3193
|
+
ProductFieldsHelper,
|
|
3194
|
+
BrandManagerHelper,
|
|
3195
|
+
CatalogRepositoryService,
|
|
3196
|
+
CatalogHelpersService,
|
|
3197
|
+
CategorySearchStrategy,
|
|
3198
|
+
TermSearchStrategy,
|
|
3199
|
+
ProfileSearchStrategy,
|
|
3200
|
+
{
|
|
3201
|
+
provide: CatalogSearchContext,
|
|
3202
|
+
useFactory: (categoryStrategy, termStrategy, profileStrategy) => {
|
|
3203
|
+
return new CatalogSearchContext(categoryStrategy, termStrategy, profileStrategy);
|
|
3204
|
+
},
|
|
3205
|
+
deps: [CategorySearchStrategy, TermSearchStrategy, ProfileSearchStrategy],
|
|
3206
|
+
},
|
|
3207
|
+
{
|
|
3208
|
+
provide: UpdateUserImage,
|
|
3209
|
+
useFactory: (userRepository, fileUploader) => {
|
|
3210
|
+
return new UpdateUserImage(userRepository, fileUploader);
|
|
3211
|
+
},
|
|
3212
|
+
deps: ['UserRepository', 'FileUploaderService'],
|
|
3213
|
+
},
|
|
3214
|
+
{
|
|
3215
|
+
provide: 'FileUploaderService',
|
|
3216
|
+
useFactory: (storage, baseUrl) => {
|
|
3217
|
+
return new FirebaseFileUploaderService(storage, baseUrl);
|
|
3218
|
+
},
|
|
3219
|
+
deps: [Storage, STORAGE_BASE_URL],
|
|
3220
|
+
},
|
|
3221
|
+
{
|
|
3222
|
+
provide: 'ProductSearch',
|
|
3223
|
+
useExisting: ProductsVertexSearch,
|
|
3224
|
+
},
|
|
3225
|
+
CouponRepositoriesFacade,
|
|
3226
|
+
HomeShopRepositoriesFacade,
|
|
3227
|
+
OrderProductReviewService,
|
|
3228
|
+
], imports: [provideFirebaseApp((injector) => {
|
|
3229
|
+
const appName = injector.get(FIREBASE_APP_NAME);
|
|
3230
|
+
try {
|
|
3231
|
+
const app = appName ? getApp(appName) : getApp();
|
|
3232
|
+
return app;
|
|
3233
|
+
}
|
|
3234
|
+
catch (error) {
|
|
3235
|
+
console.warn('Firebase app not found, initializing new app');
|
|
3236
|
+
if (error instanceof Error)
|
|
3237
|
+
console.error(error.message);
|
|
3238
|
+
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
3239
|
+
}
|
|
3087
3240
|
}),
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
},
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
},
|
|
3113
|
-
{
|
|
3114
|
-
provide: 'FileUploaderService',
|
|
3115
|
-
useFactory: (storage, baseUrl) => {
|
|
3116
|
-
return new FirebaseFileUploaderService(storage, baseUrl);
|
|
3117
|
-
},
|
|
3118
|
-
deps: [Storage, STORAGE_BASE_URL],
|
|
3119
|
-
},
|
|
3120
|
-
{
|
|
3121
|
-
provide: 'ProductSearch',
|
|
3122
|
-
useExisting: ProductsVertexSearch,
|
|
3123
|
-
},
|
|
3124
|
-
CouponRepositoriesFacade,
|
|
3125
|
-
HomeShopRepositoriesFacade,
|
|
3126
|
-
], imports: [provideFirebaseApp((injector) => {
|
|
3127
|
-
const appName = injector.get(FIREBASE_APP_NAME);
|
|
3128
|
-
try {
|
|
3129
|
-
const app = appName ? getApp(appName) : getApp();
|
|
3130
|
-
return app;
|
|
3131
|
-
}
|
|
3132
|
-
catch (error) {
|
|
3133
|
-
console.warn('Firebase app not found, initializing new app');
|
|
3134
|
-
if (error instanceof Error)
|
|
3135
|
-
console.error(error.message);
|
|
3136
|
-
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
3137
|
-
}
|
|
3138
|
-
}),
|
|
3139
|
-
provideAppCheck((injector) => {
|
|
3140
|
-
const app = injector.get(FirebaseApp);
|
|
3141
|
-
try {
|
|
3142
|
-
const provider = injector.get(APP_CHECK_PROVIDER);
|
|
3143
|
-
if (provider)
|
|
3144
|
-
return initializeAppCheck(app, {
|
|
3145
|
-
provider,
|
|
3146
|
-
isTokenAutoRefreshEnabled: true,
|
|
3147
|
-
});
|
|
3148
|
-
}
|
|
3149
|
-
catch (error) {
|
|
3150
|
-
if (error instanceof Error)
|
|
3151
|
-
console.error(error.message);
|
|
3152
|
-
return;
|
|
3153
|
-
}
|
|
3154
|
-
}),
|
|
3155
|
-
provideStorage((injector) => getStorage(injector.get(FirebaseApp))),
|
|
3156
|
-
AngularElasticSeachModule,
|
|
3157
|
-
AngularVertexSeachModule,
|
|
3158
|
-
AngularFirebaseAuthModule,
|
|
3159
|
-
AngularFirestoreModule,
|
|
3160
|
-
AngularHasuraGraphQLModule] });
|
|
3161
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, decorators: [{
|
|
3241
|
+
provideAppCheck((injector) => {
|
|
3242
|
+
const app = injector.get(FirebaseApp);
|
|
3243
|
+
try {
|
|
3244
|
+
const provider = injector.get(APP_CHECK_PROVIDER);
|
|
3245
|
+
if (provider)
|
|
3246
|
+
return initializeAppCheck(app, {
|
|
3247
|
+
provider,
|
|
3248
|
+
isTokenAutoRefreshEnabled: true,
|
|
3249
|
+
});
|
|
3250
|
+
}
|
|
3251
|
+
catch (error) {
|
|
3252
|
+
if (error instanceof Error)
|
|
3253
|
+
console.error(error.message);
|
|
3254
|
+
return;
|
|
3255
|
+
}
|
|
3256
|
+
}),
|
|
3257
|
+
provideStorage((injector) => getStorage(injector.get(FirebaseApp))),
|
|
3258
|
+
AngularElasticSeachModule,
|
|
3259
|
+
AngularVertexSeachModule,
|
|
3260
|
+
AngularFirebaseAuthModule,
|
|
3261
|
+
AngularFirestoreModule,
|
|
3262
|
+
AngularHasuraGraphQLModule] }); }
|
|
3263
|
+
}
|
|
3264
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, decorators: [{
|
|
3162
3265
|
type: NgModule,
|
|
3163
3266
|
args: [{
|
|
3164
3267
|
imports: [
|
|
@@ -3265,6 +3368,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
3265
3368
|
},
|
|
3266
3369
|
CouponRepositoriesFacade,
|
|
3267
3370
|
HomeShopRepositoriesFacade,
|
|
3371
|
+
OrderProductReviewService,
|
|
3268
3372
|
],
|
|
3269
3373
|
}]
|
|
3270
3374
|
}] });
|
|
@@ -3273,5 +3377,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
3273
3377
|
* Generated bundle index. Do not edit.
|
|
3274
3378
|
*/
|
|
3275
3379
|
|
|
3276
|
-
export { AngularConnectModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule, AuthService, CartService, CatalogService, CategoryService, CategoryWithTree, CheckoutService, CheckoutSubscriptionService, CookieDataPersistence, CouponService, HomeShopService, NewCategoryStructureAdapter, OldCategoryStructureAdapter, OrderService, ProductSorts, UtilHelper, WishlistService };
|
|
3380
|
+
export { AngularConnectModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule, AuthService, CartService, CatalogService, CategoryService, CategoryWithTree, CheckoutService, CheckoutSubscriptionService, CookieDataPersistence, CouponService, HomeShopService, NewCategoryStructureAdapter, OldCategoryStructureAdapter, OrderProductReviewService, OrderService, ProductSorts, UtilHelper, WishlistService };
|
|
3277
3381
|
//# sourceMappingURL=infrab4a-connect-angular.mjs.map
|