@infrab4a/connect-angular 4.2.0-beta.6 → 4.2.0
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/esm2020/angular-connect.module.mjs +97 -0
- package/esm2020/angular-elastic-search.module.mjs +34 -0
- package/esm2020/angular-firebase-auth.module.mjs +115 -0
- package/esm2020/angular-firestore.module.mjs +483 -0
- package/esm2020/angular-hasura-graphql.module.mjs +265 -0
- package/{esm2022 → esm2020}/services/auth.service.mjs +4 -4
- package/{esm2022 → esm2020}/services/cart.service.mjs +4 -4
- package/{esm2022 → esm2020}/services/catalog/adapters/new-category-structure.adapter.mjs +4 -4
- package/{esm2022 → esm2020}/services/catalog/adapters/old-category-structure.adapter.mjs +4 -4
- package/{esm2022 → esm2020}/services/catalog/catalog.service.mjs +4 -4
- package/{esm2022 → esm2020}/services/catalog/category.service.mjs +4 -4
- package/{esm2022 → esm2020}/services/catalog/wishlist.service.mjs +4 -4
- package/{esm2022 → esm2020}/services/checkout-subscription.service.mjs +4 -4
- package/{esm2022 → esm2020}/services/checkout.service.mjs +4 -4
- package/{esm2022 → esm2020}/services/coupon.service.mjs +4 -4
- package/{esm2022 → esm2020}/services/home-shop.service.mjs +4 -4
- package/{esm2022 → esm2020}/services/order.service.mjs +4 -4
- package/{esm2022 → esm2020}/services/shipping.service.mjs +4 -4
- package/fesm2015/infrab4a-connect-angular.mjs +2301 -0
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/infrab4a-connect-angular.mjs +462 -412
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -0
- package/package.json +16 -9
- package/esm2022/angular-connect.module.mjs +0 -97
- package/esm2022/angular-elastic-search.module.mjs +0 -34
- package/esm2022/angular-firebase-auth.module.mjs +0 -115
- package/esm2022/angular-firestore.module.mjs +0 -455
- package/esm2022/angular-hasura-graphql.module.mjs +0 -243
- package/fesm2022/infrab4a-connect-angular.mjs.map +0 -1
- /package/{esm2022 → esm2020}/consts/backend-url.const.mjs +0 -0
- /package/{esm2022 → esm2020}/consts/category-structure.mjs +0 -0
- /package/{esm2022 → esm2020}/consts/default-shop.const.mjs +0 -0
- /package/{esm2022 → esm2020}/consts/es-config.const.mjs +0 -0
- /package/{esm2022 → esm2020}/consts/firebase-const.mjs +0 -0
- /package/{esm2022 → esm2020}/consts/hasura-options.const.mjs +0 -0
- /package/{esm2022 → esm2020}/consts/index.mjs +0 -0
- /package/{esm2022 → esm2020}/helpers/index.mjs +0 -0
- /package/{esm2022 → esm2020}/helpers/mobile-operation-system-checker.helper.mjs +0 -0
- /package/{esm2022 → esm2020}/index.mjs +0 -0
- /package/{esm2022 → esm2020}/infrab4a-connect-angular.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/adapters/category-structure.adapter.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/adapters/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/enums/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/enums/product-sorts.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/models/category-with-tree.model.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/models/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/types/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/types/product-sort.type.mjs +0 -0
- /package/{esm2022 → esm2020}/services/helpers/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/helpers/util.helper.mjs +0 -0
- /package/{esm2022 → esm2020}/services/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/types/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/types/required-checkout-data.type.mjs +0 -0
- /package/{esm2022 → esm2020}/services/types/required-checkout-subscription-data.type.mjs +0 -0
- /package/{esm2022 → esm2020}/services/types/shipping-methods.type.mjs +0 -0
- /package/{esm2022 → esm2020}/types/firebase-app-config.type.mjs +0 -0
- /package/{esm2022 → esm2020}/types/index.mjs +0 -0
|
@@ -3,7 +3,7 @@ import { NgModule, InjectionToken, PLATFORM_ID, Injectable, Inject } from '@angu
|
|
|
3
3
|
import * as i1$4 from '@angular/fire/app';
|
|
4
4
|
import { FirebaseApp, provideFirebaseApp, getApp, initializeApp } from '@angular/fire/app';
|
|
5
5
|
import * as i1$2 from '@infrab4a/connect';
|
|
6
|
-
import { ProductsIndex, AxiosAdapter, Authentication, AuthenticationFirebaseAuthService, Register, RegisterFirebaseAuthService, SignOut, RecoveryPassword, UserBeautyProfileFirestoreRepository, Buy2WinFirestoreRepository, CategoryFirestoreRepository, CheckoutFirestoreRepository, CheckoutSubscriptionFirestoreRepository, CouponFirestoreRepository, CampaignHashtagFirestoreRepository, CampaignDashboardFirestoreRepository, SubscriptionEditionFirestoreRepository, HomeFirestoreRepository, LeadFirestoreRepository, LegacyOrderFirestoreRepository, ShopMenuFirestoreRepository, OrderFirestoreRepository, PaymentFirestoreRepository, ProductFirestoreRepository, ShopSettingsFirestoreRepository, SubscriptionPaymentFirestoreRepository, SubscriptionPlanFirestoreRepository, SubscriptionProductFirestoreRepository, SubscriptionFirestoreRepository, UserFirestoreRepository, UserAddressFirestoreRepository, UserPaymentMethodFirestoreRepository, ProductVariantFirestoreRepository, CategoryHasuraGraphQLRepository, ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository, VariantHasuraGraphQLRepository, FilterOptionHasuraGraphQLRepository, FilterHasuraGraphQLRepository, CategoryCollectionChildrenHasuraGraphQLRepository, WishlistHasuraGraphQLRepository, Where, Shops, CheckoutTypes, CouponTypes, Exclusivities, isNil, NotFoundError, Checkout, pick, LineItem, RoundProductPricesHelper, set, InvalidArgumentError, Category, CheckoutSubscription, Product, RequiredArgumentError, add, Order } from '@infrab4a/connect';
|
|
6
|
+
import { ProductsIndex, AxiosAdapter, Authentication, AuthenticationFirebaseAuthService, Register, RegisterFirebaseAuthService, SignOut, RecoveryPassword, UserBeautyProfileFirestoreRepository, Buy2WinFirestoreRepository, CategoryFirestoreRepository, CheckoutFirestoreRepository, CheckoutSubscriptionFirestoreRepository, CouponFirestoreRepository, CampaignHashtagFirestoreRepository, CampaignDashboardFirestoreRepository, SubscriptionEditionFirestoreRepository, HomeFirestoreRepository, LeadFirestoreRepository, LegacyOrderFirestoreRepository, ShopMenuFirestoreRepository, OrderFirestoreRepository, PaymentFirestoreRepository, ProductFirestoreRepository, ShopSettingsFirestoreRepository, SubscriptionPaymentFirestoreRepository, SubscriptionPlanFirestoreRepository, SubscriptionProductFirestoreRepository, SubscriptionFirestoreRepository, UserFirestoreRepository, UserAddressFirestoreRepository, UserPaymentMethodFirestoreRepository, SubscriptionMaterializationFirestoreRepository, SubscriptionSummaryFirestoreRepository, ProductVariantFirestoreRepository, CategoryHasuraGraphQLRepository, ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository, ProductReviewsHasuraGraphQLRepository, VariantHasuraGraphQLRepository, FilterOptionHasuraGraphQLRepository, FilterHasuraGraphQLRepository, CategoryCollectionChildrenHasuraGraphQLRepository, WishlistHasuraGraphQLRepository, Where, Shops, CheckoutTypes, CouponTypes, Exclusivities, isNil, NotFoundError, Checkout, pick, LineItem, RoundProductPricesHelper, set, InvalidArgumentError, Category, CheckoutSubscription, Product, RequiredArgumentError, add, Order } from '@infrab4a/connect';
|
|
7
7
|
import * as i1 from '@angular/fire/auth';
|
|
8
8
|
import { Auth, provideAuth, getAuth, getIdToken, authState } from '@angular/fire/auth';
|
|
9
9
|
import { isPlatformBrowser, isPlatformServer } from '@angular/common';
|
|
@@ -25,17 +25,17 @@ class AngularElasticSeachModule {
|
|
|
25
25
|
providers: [{ provide: ES_CONFIG, useValue: options }],
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularElasticSeachModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
29
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.6", ngImport: i0, type: AngularElasticSeachModule }); }
|
|
30
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularElasticSeachModule, providers: [
|
|
31
|
-
{
|
|
32
|
-
provide: ProductsIndex,
|
|
33
|
-
useFactory: (configuration) => new ProductsIndex(new AxiosAdapter(configuration)),
|
|
34
|
-
deps: [ES_CONFIG],
|
|
35
|
-
},
|
|
36
|
-
] }); }
|
|
37
28
|
}
|
|
38
|
-
i0.ɵɵ
|
|
29
|
+
AngularElasticSeachModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
30
|
+
AngularElasticSeachModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule });
|
|
31
|
+
AngularElasticSeachModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule, providers: [
|
|
32
|
+
{
|
|
33
|
+
provide: ProductsIndex,
|
|
34
|
+
useFactory: (configuration) => new ProductsIndex(new AxiosAdapter(configuration)),
|
|
35
|
+
deps: [ES_CONFIG],
|
|
36
|
+
},
|
|
37
|
+
] });
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule, decorators: [{
|
|
39
39
|
type: NgModule,
|
|
40
40
|
args: [{
|
|
41
41
|
providers: [
|
|
@@ -69,54 +69,54 @@ class AngularFirebaseAuthModule {
|
|
|
69
69
|
],
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
deps: ['AuthenticationService', 'UserRepository'],
|
|
72
|
+
}
|
|
73
|
+
AngularFirebaseAuthModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
74
|
+
AngularFirebaseAuthModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, imports: [i1.AuthModule] });
|
|
75
|
+
AngularFirebaseAuthModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, providers: [
|
|
76
|
+
{
|
|
77
|
+
provide: 'Authentication',
|
|
78
|
+
useFactory: (authenticationService, userRepository) => {
|
|
79
|
+
return new Authentication(authenticationService, userRepository);
|
|
81
80
|
},
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
81
|
+
deps: ['AuthenticationService', 'UserRepository'],
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
provide: 'AuthenticationService',
|
|
85
|
+
useFactory: (angularFireAuth) => {
|
|
86
|
+
return new AuthenticationFirebaseAuthService(angularFireAuth);
|
|
88
87
|
},
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
88
|
+
deps: [Auth],
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
provide: 'Register',
|
|
92
|
+
useFactory: (registerService, userRepository) => {
|
|
93
|
+
return new Register(registerService, userRepository);
|
|
95
94
|
},
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
95
|
+
deps: ['RegisterService', 'UserRepository'],
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
provide: 'RegisterService',
|
|
99
|
+
useFactory: (angularFireAuth) => {
|
|
100
|
+
return new RegisterFirebaseAuthService(angularFireAuth);
|
|
102
101
|
},
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
102
|
+
deps: [Auth],
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
provide: 'SignOut',
|
|
106
|
+
useFactory: (authenticationService) => {
|
|
107
|
+
return new SignOut(authenticationService);
|
|
109
108
|
},
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
109
|
+
deps: ['AuthenticationService'],
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
provide: 'RecoveryPassword',
|
|
113
|
+
useFactory: (authenticationService) => {
|
|
114
|
+
return new RecoveryPassword(authenticationService);
|
|
116
115
|
},
|
|
117
|
-
|
|
118
|
-
}
|
|
119
|
-
|
|
116
|
+
deps: ['AuthenticationService'],
|
|
117
|
+
},
|
|
118
|
+
], imports: [provideAuth((injector) => getAuth(injector.get(FirebaseApp)))] });
|
|
119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
|
|
120
120
|
type: NgModule,
|
|
121
121
|
args: [{
|
|
122
122
|
imports: [provideAuth((injector) => getAuth(injector.get(FirebaseApp)))],
|
|
@@ -185,221 +185,235 @@ class AngularFirestoreModule {
|
|
|
185
185
|
],
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
const interval = setInterval(() => { }, 100);
|
|
200
|
-
request.interval = interval;
|
|
188
|
+
}
|
|
189
|
+
AngularFirestoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
190
|
+
AngularFirestoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1$1.FirestoreModule] });
|
|
191
|
+
AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, providers: [
|
|
192
|
+
{
|
|
193
|
+
provide: 'FirestoreOptions',
|
|
194
|
+
useFactory: (firestore, platformId) => ({
|
|
195
|
+
firestore,
|
|
196
|
+
interceptors: {
|
|
197
|
+
request: (request) => {
|
|
198
|
+
if (isPlatformBrowser(platformId))
|
|
201
199
|
return request;
|
|
202
|
-
},
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
200
|
+
const interval = setInterval(() => { }, 100);
|
|
201
|
+
request.interval = interval;
|
|
202
|
+
return request;
|
|
203
|
+
},
|
|
204
|
+
response: (response, request) => {
|
|
205
|
+
if (isPlatformBrowser(platformId))
|
|
207
206
|
return response;
|
|
208
|
-
|
|
207
|
+
clearInterval(request.interval);
|
|
208
|
+
return response;
|
|
209
209
|
},
|
|
210
|
-
}),
|
|
211
|
-
deps: [Firestore, PLATFORM_ID],
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
provide: 'BeautyProfileRepository',
|
|
215
|
-
useFactory: (config, userRepository) => {
|
|
216
|
-
return new UserBeautyProfileFirestoreRepository(config, userRepository);
|
|
217
210
|
},
|
|
218
|
-
|
|
211
|
+
}),
|
|
212
|
+
deps: [Firestore, PLATFORM_ID],
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
provide: 'BeautyProfileRepository',
|
|
216
|
+
useFactory: (config, userRepository) => {
|
|
217
|
+
return new UserBeautyProfileFirestoreRepository(config, userRepository);
|
|
219
218
|
},
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
219
|
+
deps: ['FirestoreOptions', 'UserRepository'],
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
provide: 'Buy2WinRepository',
|
|
223
|
+
useFactory: (options) => {
|
|
224
|
+
return new Buy2WinFirestoreRepository(options);
|
|
226
225
|
},
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
226
|
+
deps: ['FirestoreOptions'],
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
provide: CategoryFirestoreRepository,
|
|
230
|
+
useFactory: (options) => {
|
|
231
|
+
return new CategoryFirestoreRepository(options);
|
|
233
232
|
},
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
233
|
+
deps: ['FirestoreOptions'],
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
provide: 'CheckoutRepository',
|
|
237
|
+
useFactory: (options) => {
|
|
238
|
+
return new CheckoutFirestoreRepository(options);
|
|
240
239
|
},
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
240
|
+
deps: ['FirestoreOptions'],
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
provide: 'CheckoutSubscriptionRepository',
|
|
244
|
+
useFactory: (options) => {
|
|
245
|
+
return new CheckoutSubscriptionFirestoreRepository(options);
|
|
247
246
|
},
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
247
|
+
deps: ['FirestoreOptions'],
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
provide: 'CouponRepository',
|
|
251
|
+
useFactory: (options) => {
|
|
252
|
+
return new CouponFirestoreRepository(options);
|
|
254
253
|
},
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
254
|
+
deps: ['FirestoreOptions'],
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
provide: 'CampaignHashtagRepository',
|
|
258
|
+
useFactory: (options) => {
|
|
259
|
+
return new CampaignHashtagFirestoreRepository(options);
|
|
261
260
|
},
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
261
|
+
deps: ['FirestoreOptions'],
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
provide: 'CampaignDashboardRepository',
|
|
265
|
+
useFactory: (options) => {
|
|
266
|
+
return new CampaignDashboardFirestoreRepository(options);
|
|
268
267
|
},
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
268
|
+
deps: ['FirestoreOptions'],
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
provide: 'EditionRepository',
|
|
272
|
+
useFactory: (options, subscriptionRepository) => {
|
|
273
|
+
return new SubscriptionEditionFirestoreRepository(options, subscriptionRepository);
|
|
275
274
|
},
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
275
|
+
deps: ['FirestoreOptions', 'SubscriptionRepository'],
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
provide: 'HomeRepository',
|
|
279
|
+
useFactory: (options) => {
|
|
280
|
+
return new HomeFirestoreRepository(options);
|
|
282
281
|
},
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
282
|
+
deps: ['FirestoreOptions'],
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
provide: 'LeadRepository',
|
|
286
|
+
useFactory: (options) => {
|
|
287
|
+
return new LeadFirestoreRepository(options);
|
|
289
288
|
},
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
289
|
+
deps: ['FirestoreOptions'],
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
provide: 'LegacyOrderRepository',
|
|
293
|
+
useFactory: (options) => {
|
|
294
|
+
return new LegacyOrderFirestoreRepository(options);
|
|
296
295
|
},
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
296
|
+
deps: ['FirestoreOptions'],
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
provide: 'ShopMenuRepository',
|
|
300
|
+
useFactory: (options) => {
|
|
301
|
+
return new ShopMenuFirestoreRepository(options);
|
|
303
302
|
},
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
303
|
+
deps: ['FirestoreOptions'],
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
provide: 'OrderRepository',
|
|
307
|
+
useFactory: (options) => {
|
|
308
|
+
return new OrderFirestoreRepository(options);
|
|
310
309
|
},
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
310
|
+
deps: ['FirestoreOptions'],
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
provide: 'PaymentRepository',
|
|
314
|
+
useFactory: (options) => {
|
|
315
|
+
return new PaymentFirestoreRepository(options);
|
|
317
316
|
},
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
317
|
+
deps: ['FirestoreOptions'],
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
provide: ProductFirestoreRepository,
|
|
321
|
+
useFactory: (options) => {
|
|
322
|
+
return new ProductFirestoreRepository(options);
|
|
324
323
|
},
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
324
|
+
deps: ['FirestoreOptions'],
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
provide: 'ShopSettingsRepository',
|
|
328
|
+
useFactory: (options) => {
|
|
329
|
+
return new ShopSettingsFirestoreRepository(options);
|
|
331
330
|
},
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
331
|
+
deps: ['FirestoreOptions'],
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
provide: 'SubscriptionPaymentRepository',
|
|
335
|
+
useFactory: (options, subscriptionRepository) => {
|
|
336
|
+
return new SubscriptionPaymentFirestoreRepository(options, subscriptionRepository);
|
|
338
337
|
},
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
338
|
+
deps: ['FirestoreOptions', 'SubscriptionRepository'],
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
provide: 'SubscriptionPlanRepository',
|
|
342
|
+
useFactory: (options) => {
|
|
343
|
+
return new SubscriptionPlanFirestoreRepository(options);
|
|
345
344
|
},
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
345
|
+
deps: ['FirestoreOptions'],
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
provide: 'SubscriptionProductRepository',
|
|
349
|
+
useFactory: (options) => {
|
|
350
|
+
return new SubscriptionProductFirestoreRepository(options);
|
|
352
351
|
},
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
352
|
+
deps: ['FirestoreOptions'],
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
provide: 'SubscriptionRepository',
|
|
356
|
+
useFactory: (options) => {
|
|
357
|
+
return new SubscriptionFirestoreRepository(options);
|
|
359
358
|
},
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
359
|
+
deps: ['FirestoreOptions'],
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
provide: 'UserRepository',
|
|
363
|
+
useFactory: (options) => {
|
|
364
|
+
return new UserFirestoreRepository(options);
|
|
366
365
|
},
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
366
|
+
deps: ['FirestoreOptions'],
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
provide: 'UserAddressRepository',
|
|
370
|
+
useFactory: (options, userRepository) => {
|
|
371
|
+
return new UserAddressFirestoreRepository(options, userRepository);
|
|
373
372
|
},
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
373
|
+
deps: ['FirestoreOptions', 'UserRepository'],
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
provide: 'UserPaymentMethodRepository',
|
|
377
|
+
useFactory: (options, userRepository) => {
|
|
378
|
+
return new UserPaymentMethodFirestoreRepository(options, userRepository);
|
|
380
379
|
},
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
380
|
+
deps: ['FirestoreOptions', 'UserRepository'],
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
provide: 'SubscriptionMaterializationRepository',
|
|
384
|
+
useFactory: (options) => {
|
|
385
|
+
return new SubscriptionMaterializationFirestoreRepository(options);
|
|
387
386
|
},
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
}
|
|
402
|
-
|
|
387
|
+
deps: ['FirestoreOptions'],
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
provide: 'SubscriptionSummaryRepository',
|
|
391
|
+
useFactory: (options) => {
|
|
392
|
+
return new SubscriptionSummaryFirestoreRepository(options);
|
|
393
|
+
},
|
|
394
|
+
deps: ['FirestoreOptions'],
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
provide: ProductVariantFirestoreRepository,
|
|
398
|
+
useFactory: (options, productRepository) => {
|
|
399
|
+
return new ProductVariantFirestoreRepository(options, productRepository);
|
|
400
|
+
},
|
|
401
|
+
deps: ['FirestoreOptions', ProductFirestoreRepository],
|
|
402
|
+
},
|
|
403
|
+
], imports: [AngularElasticSeachModule,
|
|
404
|
+
provideFirestore((injector) => {
|
|
405
|
+
const platformId = injector.get(PLATFORM_ID);
|
|
406
|
+
if (isPlatformServer(platformId))
|
|
407
|
+
return getFirestore(injector.get(FirebaseApp));
|
|
408
|
+
if (!MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
409
|
+
return getFirestore(injector.get(FirebaseApp));
|
|
410
|
+
const firestore = initializeFirestore(injector.get(FirebaseApp), {
|
|
411
|
+
experimentalForceLongPolling: true,
|
|
412
|
+
localCache: memoryLocalCache(),
|
|
413
|
+
});
|
|
414
|
+
return firestore;
|
|
415
|
+
})] });
|
|
416
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, decorators: [{
|
|
403
417
|
type: NgModule,
|
|
404
418
|
args: [{
|
|
405
419
|
imports: [
|
|
@@ -608,6 +622,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImpor
|
|
|
608
622
|
},
|
|
609
623
|
deps: ['FirestoreOptions', 'UserRepository'],
|
|
610
624
|
},
|
|
625
|
+
{
|
|
626
|
+
provide: 'SubscriptionMaterializationRepository',
|
|
627
|
+
useFactory: (options) => {
|
|
628
|
+
return new SubscriptionMaterializationFirestoreRepository(options);
|
|
629
|
+
},
|
|
630
|
+
deps: ['FirestoreOptions'],
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
provide: 'SubscriptionSummaryRepository',
|
|
634
|
+
useFactory: (options) => {
|
|
635
|
+
return new SubscriptionSummaryFirestoreRepository(options);
|
|
636
|
+
},
|
|
637
|
+
deps: ['FirestoreOptions'],
|
|
638
|
+
},
|
|
611
639
|
{
|
|
612
640
|
provide: ProductVariantFirestoreRepository,
|
|
613
641
|
useFactory: (options, productRepository) => {
|
|
@@ -626,121 +654,132 @@ class AngularHasuraGraphQLModule {
|
|
|
626
654
|
providers: [{ provide: HASURA_OPTIONS, useValue: options }],
|
|
627
655
|
};
|
|
628
656
|
}
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
const interval = setInterval(() => { }, 100);
|
|
642
|
-
request.interval = interval;
|
|
657
|
+
}
|
|
658
|
+
AngularHasuraGraphQLModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
659
|
+
AngularHasuraGraphQLModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule });
|
|
660
|
+
AngularHasuraGraphQLModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, providers: [
|
|
661
|
+
{
|
|
662
|
+
provide: 'HasuraConfig',
|
|
663
|
+
useFactory: (options, platformId) => ({
|
|
664
|
+
endpoint: options.endpoint,
|
|
665
|
+
authOptions: options.credentials,
|
|
666
|
+
interceptors: {
|
|
667
|
+
request: (request) => {
|
|
668
|
+
if (isPlatformBrowser(platformId))
|
|
643
669
|
return request;
|
|
644
|
-
},
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
670
|
+
const interval = setInterval(() => { }, 100);
|
|
671
|
+
request.interval = interval;
|
|
672
|
+
return request;
|
|
673
|
+
},
|
|
674
|
+
response: (response, request) => {
|
|
675
|
+
if (isPlatformBrowser(platformId))
|
|
649
676
|
return response;
|
|
650
|
-
|
|
677
|
+
clearInterval(request.interval);
|
|
678
|
+
return response;
|
|
651
679
|
},
|
|
652
|
-
}),
|
|
653
|
-
deps: [HASURA_OPTIONS, PLATFORM_ID],
|
|
654
|
-
},
|
|
655
|
-
{
|
|
656
|
-
provide: 'CategoryRepository',
|
|
657
|
-
useExisting: CategoryHasuraGraphQLRepository,
|
|
658
|
-
},
|
|
659
|
-
{
|
|
660
|
-
provide: CategoryHasuraGraphQLRepository,
|
|
661
|
-
useFactory: (options, productRepository, categoryFilterRepository) => {
|
|
662
|
-
return new CategoryHasuraGraphQLRepository(options, productRepository, categoryFilterRepository);
|
|
663
|
-
},
|
|
664
|
-
deps: ['HasuraConfig', ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
|
|
665
|
-
},
|
|
666
|
-
{
|
|
667
|
-
provide: 'ProductRepository',
|
|
668
|
-
useExisting: ProductHasuraGraphQLRepository,
|
|
669
|
-
},
|
|
670
|
-
{
|
|
671
|
-
provide: ProductHasuraGraphQLRepository,
|
|
672
|
-
useFactory: (hasuraConfig) => {
|
|
673
|
-
return new ProductHasuraGraphQLRepository(hasuraConfig);
|
|
674
|
-
},
|
|
675
|
-
deps: ['HasuraConfig'],
|
|
676
|
-
},
|
|
677
|
-
{
|
|
678
|
-
provide: 'VariantRepository',
|
|
679
|
-
useExisting: VariantHasuraGraphQLRepository,
|
|
680
|
-
},
|
|
681
|
-
{
|
|
682
|
-
provide: VariantHasuraGraphQLRepository,
|
|
683
|
-
useFactory: (hasuraConfig) => {
|
|
684
|
-
return new VariantHasuraGraphQLRepository(hasuraConfig);
|
|
685
680
|
},
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
681
|
+
}),
|
|
682
|
+
deps: [HASURA_OPTIONS, PLATFORM_ID],
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
provide: 'CategoryRepository',
|
|
686
|
+
useExisting: CategoryHasuraGraphQLRepository,
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
provide: CategoryHasuraGraphQLRepository,
|
|
690
|
+
useFactory: (options, productRepository, categoryFilterRepository) => {
|
|
691
|
+
return new CategoryHasuraGraphQLRepository(options, productRepository, categoryFilterRepository);
|
|
691
692
|
},
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
693
|
+
deps: ['HasuraConfig', ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
provide: 'ProductRepository',
|
|
697
|
+
useExisting: ProductHasuraGraphQLRepository,
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
provide: ProductHasuraGraphQLRepository,
|
|
701
|
+
useFactory: (hasuraConfig) => {
|
|
702
|
+
return new ProductHasuraGraphQLRepository(hasuraConfig);
|
|
698
703
|
},
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
704
|
+
deps: ['HasuraConfig'],
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
provide: 'ProductReviewsRepository',
|
|
708
|
+
useExisting: ProductReviewsHasuraGraphQLRepository,
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
provide: ProductReviewsHasuraGraphQLRepository,
|
|
712
|
+
useFactory: (hasuraConfig) => {
|
|
713
|
+
return new ProductReviewsHasuraGraphQLRepository(hasuraConfig);
|
|
702
714
|
},
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
715
|
+
deps: ['HasuraConfig'],
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
provide: 'VariantRepository',
|
|
719
|
+
useExisting: VariantHasuraGraphQLRepository,
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
provide: VariantHasuraGraphQLRepository,
|
|
723
|
+
useFactory: (hasuraConfig) => {
|
|
724
|
+
return new VariantHasuraGraphQLRepository(hasuraConfig);
|
|
709
725
|
},
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
726
|
+
deps: ['HasuraConfig'],
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
provide: 'CategoryFilterRepository',
|
|
730
|
+
useExisting: CategoryFilterHasuraGraphQLRepository,
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
provide: CategoryFilterHasuraGraphQLRepository,
|
|
734
|
+
useFactory: (options) => {
|
|
735
|
+
return new CategoryFilterHasuraGraphQLRepository(options);
|
|
713
736
|
},
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
737
|
+
deps: ['HasuraConfig'],
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
provide: 'FilterOptionRepository',
|
|
741
|
+
useExisting: FilterOptionHasuraGraphQLRepository,
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
provide: FilterOptionHasuraGraphQLRepository,
|
|
745
|
+
useFactory: (options) => {
|
|
746
|
+
return new FilterOptionHasuraGraphQLRepository(options);
|
|
720
747
|
},
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
748
|
+
deps: ['HasuraConfig'],
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
provide: 'FilterRepository',
|
|
752
|
+
useExisting: FilterHasuraGraphQLRepository,
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
provide: FilterHasuraGraphQLRepository,
|
|
756
|
+
useFactory: (options, filterOptionRepository, categoryFilterRepository) => {
|
|
757
|
+
return new FilterHasuraGraphQLRepository(options, filterOptionRepository, categoryFilterRepository);
|
|
725
758
|
},
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
759
|
+
deps: ['HasuraConfig', FilterOptionHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
provide: CategoryCollectionChildrenHasuraGraphQLRepository,
|
|
763
|
+
useFactory: (options) => new CategoryCollectionChildrenHasuraGraphQLRepository(options),
|
|
764
|
+
deps: ['HasuraConfig'],
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
provide: 'CategoryCollectionChildrenRepository',
|
|
768
|
+
useExisting: CategoryCollectionChildrenHasuraGraphQLRepository,
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
provide: WishlistHasuraGraphQLRepository,
|
|
772
|
+
useFactory: (options, categoryFilterRepository) => {
|
|
773
|
+
return new WishlistHasuraGraphQLRepository(options, categoryFilterRepository);
|
|
729
774
|
},
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
provide: 'WishlistRepository',
|
|
739
|
-
useExisting: WishlistHasuraGraphQLRepository,
|
|
740
|
-
},
|
|
741
|
-
] }); }
|
|
742
|
-
}
|
|
743
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularHasuraGraphQLModule, decorators: [{
|
|
775
|
+
deps: ['HasuraConfig', CategoryFilterHasuraGraphQLRepository],
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
provide: 'WishlistRepository',
|
|
779
|
+
useExisting: WishlistHasuraGraphQLRepository,
|
|
780
|
+
},
|
|
781
|
+
] });
|
|
782
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, decorators: [{
|
|
744
783
|
type: NgModule,
|
|
745
784
|
args: [{
|
|
746
785
|
providers: [
|
|
@@ -789,6 +828,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImpor
|
|
|
789
828
|
},
|
|
790
829
|
deps: ['HasuraConfig'],
|
|
791
830
|
},
|
|
831
|
+
{
|
|
832
|
+
provide: 'ProductReviewsRepository',
|
|
833
|
+
useExisting: ProductReviewsHasuraGraphQLRepository,
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
provide: ProductReviewsHasuraGraphQLRepository,
|
|
837
|
+
useFactory: (hasuraConfig) => {
|
|
838
|
+
return new ProductReviewsHasuraGraphQLRepository(hasuraConfig);
|
|
839
|
+
},
|
|
840
|
+
deps: ['HasuraConfig'],
|
|
841
|
+
},
|
|
792
842
|
{
|
|
793
843
|
provide: 'VariantRepository',
|
|
794
844
|
useExisting: VariantHasuraGraphQLRepository,
|
|
@@ -878,10 +928,10 @@ class AuthService {
|
|
|
878
928
|
getFireUser() {
|
|
879
929
|
return authState(this.angularFireAuth).pipe(catchError(() => of(null)));
|
|
880
930
|
}
|
|
881
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AuthService, deps: [{ token: i1.Auth }, { token: 'UserRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
882
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AuthService }); }
|
|
883
931
|
}
|
|
884
|
-
i0.ɵɵ
|
|
932
|
+
AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, deps: [{ token: i1.Auth }, { token: 'UserRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
933
|
+
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService });
|
|
934
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, decorators: [{
|
|
885
935
|
type: Injectable
|
|
886
936
|
}], ctorParameters: function () { return [{ type: i1.Auth }, { type: undefined, decorators: [{
|
|
887
937
|
type: Inject,
|
|
@@ -1077,10 +1127,10 @@ class CouponService {
|
|
|
1077
1127
|
}
|
|
1078
1128
|
return couponUseLimits;
|
|
1079
1129
|
}
|
|
1080
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CouponService, deps: [{ token: 'CouponRepository' }, { token: DEFAULT_SHOP }, { token: 'OrderRepository' }, { token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1081
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CouponService, providedIn: 'root' }); }
|
|
1082
1130
|
}
|
|
1083
|
-
i0.ɵɵ
|
|
1131
|
+
CouponService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, deps: [{ token: 'CouponRepository' }, { token: DEFAULT_SHOP }, { token: 'OrderRepository' }, { token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1132
|
+
CouponService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, providedIn: 'root' });
|
|
1133
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, decorators: [{
|
|
1084
1134
|
type: Injectable,
|
|
1085
1135
|
args: [{
|
|
1086
1136
|
providedIn: 'root',
|
|
@@ -1141,10 +1191,10 @@ class CheckoutService {
|
|
|
1141
1191
|
cookie.set('checkoutId', checkout.id);
|
|
1142
1192
|
return checkout;
|
|
1143
1193
|
}
|
|
1144
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CheckoutService, deps: [{ token: CouponService }, { token: 'CheckoutRepository' }, { token: 'OrderRepository' }, { token: 'UserRepository' }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1145
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CheckoutService }); }
|
|
1146
1194
|
}
|
|
1147
|
-
i0.ɵɵ
|
|
1195
|
+
CheckoutService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutService, deps: [{ token: CouponService }, { token: 'CheckoutRepository' }, { token: 'OrderRepository' }, { token: 'UserRepository' }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1196
|
+
CheckoutService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutService });
|
|
1197
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutService, decorators: [{
|
|
1148
1198
|
type: Injectable
|
|
1149
1199
|
}], ctorParameters: function () { return [{ type: CouponService }, { type: undefined, decorators: [{
|
|
1150
1200
|
type: Inject,
|
|
@@ -1408,10 +1458,10 @@ class CartService {
|
|
|
1408
1458
|
});
|
|
1409
1459
|
});
|
|
1410
1460
|
}
|
|
1411
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CartService, deps: [{ token: AuthService }, { token: CheckoutService }, { token: DEFAULT_SHOP }, { token: 'ProductRepository' }, { token: 'CategoryRepository' }, { token: 'VariantRepository' }, { token: 'Buy2WinRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1412
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CartService }); }
|
|
1413
1461
|
}
|
|
1414
|
-
i0.ɵɵ
|
|
1462
|
+
CartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, deps: [{ token: AuthService }, { token: CheckoutService }, { token: DEFAULT_SHOP }, { token: 'ProductRepository' }, { token: 'CategoryRepository' }, { token: 'VariantRepository' }, { token: 'Buy2WinRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1463
|
+
CartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService });
|
|
1464
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, decorators: [{
|
|
1415
1465
|
type: Injectable
|
|
1416
1466
|
}], ctorParameters: function () { return [{ type: AuthService }, { type: CheckoutService }, { type: i1$2.Shops, decorators: [{
|
|
1417
1467
|
type: Inject,
|
|
@@ -1572,10 +1622,10 @@ class CatalogService {
|
|
|
1572
1622
|
return [...new Set(sorted.map(({ _source }) => _source.id))];
|
|
1573
1623
|
}));
|
|
1574
1624
|
}
|
|
1575
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CatalogService, deps: [{ token: 'ProductRepository' }, { token: CATEGORY_STRUCTURE }, { token: DEFAULT_SHOP }, { token: i1$2.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1576
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CatalogService }); }
|
|
1577
1625
|
}
|
|
1578
|
-
i0.ɵɵ
|
|
1626
|
+
CatalogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, deps: [{ token: 'ProductRepository' }, { token: CATEGORY_STRUCTURE }, { token: DEFAULT_SHOP }, { token: i1$2.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1627
|
+
CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService });
|
|
1628
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
|
|
1579
1629
|
type: Injectable
|
|
1580
1630
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1581
1631
|
type: Inject,
|
|
@@ -1612,10 +1662,10 @@ class CategoryService {
|
|
|
1612
1662
|
.find({ filters: { categoryId: +category.id } })
|
|
1613
1663
|
.then(({ data }) => data.map((categoryFilter) => categoryFilter.filter));
|
|
1614
1664
|
}
|
|
1615
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CategoryService, deps: [{ token: 'ProductRepository' }, { token: 'CategoryRepository' }, { token: 'CategoryFilterRepository' }, { token: CATEGORY_STRUCTURE }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1616
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CategoryService }); }
|
|
1617
1665
|
}
|
|
1618
|
-
i0.ɵɵ
|
|
1666
|
+
CategoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService, deps: [{ token: 'ProductRepository' }, { token: 'CategoryRepository' }, { token: 'CategoryFilterRepository' }, { token: CATEGORY_STRUCTURE }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1667
|
+
CategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService });
|
|
1668
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService, decorators: [{
|
|
1619
1669
|
type: Injectable
|
|
1620
1670
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1621
1671
|
type: Inject,
|
|
@@ -1680,10 +1730,10 @@ class NewCategoryStructureAdapter {
|
|
|
1680
1730
|
? this.categoryRepository.get({ id: category.id })
|
|
1681
1731
|
: category;
|
|
1682
1732
|
}
|
|
1683
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: NewCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1684
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: NewCategoryStructureAdapter }); }
|
|
1685
1733
|
}
|
|
1686
|
-
i0.ɵɵ
|
|
1734
|
+
NewCategoryStructureAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1735
|
+
NewCategoryStructureAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter });
|
|
1736
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter, decorators: [{
|
|
1687
1737
|
type: Injectable
|
|
1688
1738
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1689
1739
|
type: Inject,
|
|
@@ -1700,10 +1750,10 @@ class OldCategoryStructureAdapter {
|
|
|
1700
1750
|
: await this.categoryRepository.get({ id: category.id }).then((categoryFound) => categoryFound.products);
|
|
1701
1751
|
return { id: { operator: Where.IN, value: productsIds } };
|
|
1702
1752
|
}
|
|
1703
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: OldCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1704
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: OldCategoryStructureAdapter }); }
|
|
1705
1753
|
}
|
|
1706
|
-
i0.ɵɵ
|
|
1754
|
+
OldCategoryStructureAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1755
|
+
OldCategoryStructureAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter });
|
|
1756
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter, decorators: [{
|
|
1707
1757
|
type: Injectable
|
|
1708
1758
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1709
1759
|
type: Inject,
|
|
@@ -1790,10 +1840,10 @@ class WishlistService {
|
|
|
1790
1840
|
}
|
|
1791
1841
|
return wishlist;
|
|
1792
1842
|
}
|
|
1793
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: WishlistService, deps: [{ token: 'WishlistRepository' }, { token: DEFAULT_SHOP }, { token: 'ProductRepository' }, { token: 'CategoryFilterRepository' }, { token: i1$2.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1794
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: WishlistService }); }
|
|
1795
1843
|
}
|
|
1796
|
-
i0.ɵɵ
|
|
1844
|
+
WishlistService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, deps: [{ token: 'WishlistRepository' }, { token: DEFAULT_SHOP }, { token: 'ProductRepository' }, { token: 'CategoryFilterRepository' }, { token: i1$2.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1845
|
+
WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
|
|
1846
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
|
|
1797
1847
|
type: Injectable
|
|
1798
1848
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1799
1849
|
type: Inject,
|
|
@@ -1841,10 +1891,10 @@ class CheckoutSubscriptionService {
|
|
|
1841
1891
|
calcDiscountSubscription(coupon) {
|
|
1842
1892
|
return this.getCheckoutSubscription().pipe(concatMap((checkout) => this.couponService.calcDiscountSubscription(coupon, checkout).pipe()));
|
|
1843
1893
|
}
|
|
1844
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CheckoutSubscriptionService, deps: [{ token: 'CheckoutSubscriptionRepository' }, { token: 'SubscriptionRepository' }, { token: CouponService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1845
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CheckoutSubscriptionService }); }
|
|
1846
1894
|
}
|
|
1847
|
-
i0.ɵɵ
|
|
1895
|
+
CheckoutSubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService, deps: [{ token: 'CheckoutSubscriptionRepository' }, { token: 'SubscriptionRepository' }, { token: CouponService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1896
|
+
CheckoutSubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService });
|
|
1897
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService, decorators: [{
|
|
1848
1898
|
type: Injectable
|
|
1849
1899
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1850
1900
|
type: Inject,
|
|
@@ -1960,10 +2010,10 @@ class HomeShopService {
|
|
|
1960
2010
|
data,
|
|
1961
2011
|
})).pipe(tap(() => (this.homeConfiguration.data = data)), map(() => this.homeConfiguration));
|
|
1962
2012
|
}
|
|
1963
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: HomeShopService, deps: [{ token: 'CategoryRepository' }, { token: 'HomeRepository' }, { token: 'ProductRepository' }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1964
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: HomeShopService }); }
|
|
1965
2013
|
}
|
|
1966
|
-
i0.ɵɵ
|
|
2014
|
+
HomeShopService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService, deps: [{ token: 'CategoryRepository' }, { token: 'HomeRepository' }, { token: 'ProductRepository' }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2015
|
+
HomeShopService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService });
|
|
2016
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService, decorators: [{
|
|
1967
2017
|
type: Injectable
|
|
1968
2018
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1969
2019
|
type: Inject,
|
|
@@ -1991,10 +2041,10 @@ class OrderService {
|
|
|
1991
2041
|
.subscribe((doc) => this.orderSubject.next(doc));
|
|
1992
2042
|
return this.orderSubject;
|
|
1993
2043
|
}
|
|
1994
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: OrderService, deps: [{ token: i1$1.Firestore }, { token: 'OrderRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1995
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: OrderService }); }
|
|
1996
2044
|
}
|
|
1997
|
-
i0.ɵɵ
|
|
2045
|
+
OrderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, deps: [{ token: i1$1.Firestore }, { token: 'OrderRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2046
|
+
OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService });
|
|
2047
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
|
|
1998
2048
|
type: Injectable
|
|
1999
2049
|
}], ctorParameters: function () { return [{ type: i1$1.Firestore }, { type: i1$2.OrderFirestoreRepository, decorators: [{
|
|
2000
2050
|
type: Inject,
|
|
@@ -2077,10 +2127,10 @@ class ShippingService {
|
|
|
2077
2127
|
}
|
|
2078
2128
|
return false;
|
|
2079
2129
|
}
|
|
2080
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: ShippingService, deps: [{ token: i1$3.HttpClient }, { token: BACKEND_URL }, { token: HomeShopService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2081
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: ShippingService }); }
|
|
2082
2130
|
}
|
|
2083
|
-
i0.ɵɵ
|
|
2131
|
+
ShippingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, deps: [{ token: i1$3.HttpClient }, { token: BACKEND_URL }, { token: HomeShopService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2132
|
+
ShippingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService });
|
|
2133
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, decorators: [{
|
|
2084
2134
|
type: Injectable
|
|
2085
2135
|
}], ctorParameters: function () { return [{ type: i1$3.HttpClient }, { type: undefined, decorators: [{
|
|
2086
2136
|
type: Inject,
|
|
@@ -2107,38 +2157,38 @@ class AngularConnectModule {
|
|
|
2107
2157
|
],
|
|
2108
2158
|
};
|
|
2109
2159
|
}
|
|
2110
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2111
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.6", ngImport: i0, type: AngularConnectModule, imports: [i1$4.FirebaseAppModule, AngularElasticSeachModule,
|
|
2112
|
-
AngularFirebaseAuthModule,
|
|
2113
|
-
AngularFirestoreModule,
|
|
2114
|
-
AngularHasuraGraphQLModule] }); }
|
|
2115
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularConnectModule, providers: [
|
|
2116
|
-
AuthService,
|
|
2117
|
-
CartService,
|
|
2118
|
-
CatalogService,
|
|
2119
|
-
CategoryService,
|
|
2120
|
-
CheckoutService,
|
|
2121
|
-
CheckoutSubscriptionService,
|
|
2122
|
-
CouponService,
|
|
2123
|
-
HomeShopService,
|
|
2124
|
-
OrderService,
|
|
2125
|
-
ShippingService,
|
|
2126
|
-
WishlistService,
|
|
2127
|
-
], imports: [provideFirebaseApp((injector) => {
|
|
2128
|
-
const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
|
|
2129
|
-
try {
|
|
2130
|
-
return getApp(appName);
|
|
2131
|
-
}
|
|
2132
|
-
catch (error) {
|
|
2133
|
-
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
2134
|
-
}
|
|
2135
|
-
}),
|
|
2136
|
-
AngularElasticSeachModule,
|
|
2137
|
-
AngularFirebaseAuthModule,
|
|
2138
|
-
AngularFirestoreModule,
|
|
2139
|
-
AngularHasuraGraphQLModule] }); }
|
|
2140
2160
|
}
|
|
2141
|
-
i0.ɵɵ
|
|
2161
|
+
AngularConnectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2162
|
+
AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [i1$4.FirebaseAppModule, AngularElasticSeachModule,
|
|
2163
|
+
AngularFirebaseAuthModule,
|
|
2164
|
+
AngularFirestoreModule,
|
|
2165
|
+
AngularHasuraGraphQLModule] });
|
|
2166
|
+
AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, providers: [
|
|
2167
|
+
AuthService,
|
|
2168
|
+
CartService,
|
|
2169
|
+
CatalogService,
|
|
2170
|
+
CategoryService,
|
|
2171
|
+
CheckoutService,
|
|
2172
|
+
CheckoutSubscriptionService,
|
|
2173
|
+
CouponService,
|
|
2174
|
+
HomeShopService,
|
|
2175
|
+
OrderService,
|
|
2176
|
+
ShippingService,
|
|
2177
|
+
WishlistService,
|
|
2178
|
+
], imports: [provideFirebaseApp((injector) => {
|
|
2179
|
+
const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
|
|
2180
|
+
try {
|
|
2181
|
+
return getApp(appName);
|
|
2182
|
+
}
|
|
2183
|
+
catch (error) {
|
|
2184
|
+
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
2185
|
+
}
|
|
2186
|
+
}),
|
|
2187
|
+
AngularElasticSeachModule,
|
|
2188
|
+
AngularFirebaseAuthModule,
|
|
2189
|
+
AngularFirestoreModule,
|
|
2190
|
+
AngularHasuraGraphQLModule] });
|
|
2191
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, decorators: [{
|
|
2142
2192
|
type: NgModule,
|
|
2143
2193
|
args: [{
|
|
2144
2194
|
imports: [
|