@infrab4a/connect-angular 4.1.6 → 4.2.0-beta.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/angular-connect.module.d.ts +5 -6
- package/angular-firebase-auth.module.d.ts +3 -2
- package/angular-firestore.module.d.ts +3 -2
- package/esm2022/angular-connect.module.mjs +66 -0
- package/esm2022/angular-elastic-search.module.mjs +34 -0
- package/esm2022/angular-firebase-auth.module.mjs +130 -0
- package/esm2022/angular-firestore.module.mjs +459 -0
- package/esm2022/angular-hasura-graphql.module.mjs +243 -0
- package/{esm2020 → esm2022}/services/auth.service.mjs +4 -4
- package/{esm2020 → esm2022}/services/cart.service.mjs +4 -4
- package/{esm2020 → esm2022}/services/catalog/adapters/new-category-structure.adapter.mjs +4 -4
- package/{esm2020 → esm2022}/services/catalog/adapters/old-category-structure.adapter.mjs +4 -4
- package/esm2022/services/catalog/catalog.service.mjs +124 -0
- package/{esm2020 → esm2022}/services/catalog/category.service.mjs +4 -4
- package/{esm2020 → esm2022}/services/catalog/wishlist.service.mjs +4 -4
- package/{esm2020 → esm2022}/services/checkout-subscription.service.mjs +4 -4
- package/{esm2020 → esm2022}/services/checkout.service.mjs +4 -4
- package/{esm2020 → esm2022}/services/coupon.service.mjs +4 -4
- package/{esm2020 → esm2022}/services/home-shop.service.mjs +4 -4
- package/{esm2020 → esm2022}/services/order.service.mjs +4 -4
- package/{esm2020 → esm2022}/services/shipping.service.mjs +4 -4
- package/{fesm2020 → fesm2022}/infrab4a-connect-angular.mjs +445 -518
- package/fesm2022/infrab4a-connect-angular.mjs.map +1 -0
- package/package.json +10 -17
- package/services/catalog/catalog.service.d.ts +0 -3
- package/esm2020/angular-connect.module.mjs +0 -97
- package/esm2020/angular-elastic-search.module.mjs +0 -34
- package/esm2020/angular-firebase-auth.module.mjs +0 -115
- package/esm2020/angular-firestore.module.mjs +0 -455
- package/esm2020/angular-hasura-graphql.module.mjs +0 -265
- package/esm2020/services/catalog/catalog.service.mjs +0 -163
- package/fesm2015/infrab4a-connect-angular.mjs +0 -2273
- package/fesm2015/infrab4a-connect-angular.mjs.map +0 -1
- package/fesm2020/infrab4a-connect-angular.mjs.map +0 -1
- /package/{esm2020 → esm2022}/consts/backend-url.const.mjs +0 -0
- /package/{esm2020 → esm2022}/consts/category-structure.mjs +0 -0
- /package/{esm2020 → esm2022}/consts/default-shop.const.mjs +0 -0
- /package/{esm2020 → esm2022}/consts/es-config.const.mjs +0 -0
- /package/{esm2020 → esm2022}/consts/firebase-const.mjs +0 -0
- /package/{esm2020 → esm2022}/consts/hasura-options.const.mjs +0 -0
- /package/{esm2020 → esm2022}/consts/index.mjs +0 -0
- /package/{esm2020 → esm2022}/helpers/index.mjs +0 -0
- /package/{esm2020 → esm2022}/helpers/mobile-operation-system-checker.helper.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/infrab4a-connect-angular.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/adapters/category-structure.adapter.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/adapters/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/enums/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/enums/product-sorts.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/models/category-with-tree.model.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/models/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/types/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/types/product-sort.type.mjs +0 -0
- /package/{esm2020 → esm2022}/services/helpers/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/helpers/util.helper.mjs +0 -0
- /package/{esm2020 → esm2022}/services/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/types/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/types/required-checkout-data.type.mjs +0 -0
- /package/{esm2020 → esm2022}/services/types/required-checkout-subscription-data.type.mjs +0 -0
- /package/{esm2020 → esm2022}/services/types/shipping-methods.type.mjs +0 -0
- /package/{esm2020 → esm2022}/types/firebase-app-config.type.mjs +0 -0
- /package/{esm2020 → esm2022}/types/index.mjs +0 -0
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { NgModule, InjectionToken, PLATFORM_ID, Injectable, Inject } from '@angular/core';
|
|
3
|
-
import * as i1$
|
|
4
|
-
import {
|
|
5
|
-
import * as i1
|
|
6
|
-
import {
|
|
7
|
-
import * as i1 from '@angular/fire/auth';
|
|
3
|
+
import * as i1$3 from '@infrab4a/connect';
|
|
4
|
+
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';
|
|
5
|
+
import * as i1 from '@angular/fire/app';
|
|
6
|
+
import { provideFirebaseApp, initializeApp, FirebaseApp } from '@angular/fire/app';
|
|
7
|
+
import * as i1$1 from '@angular/fire/auth';
|
|
8
8
|
import { Auth, provideAuth, getAuth, getIdToken, authState } from '@angular/fire/auth';
|
|
9
|
-
import { isPlatformBrowser
|
|
10
|
-
import * as i1$
|
|
11
|
-
import { Firestore, provideFirestore, getFirestore, initializeFirestore,
|
|
9
|
+
import { isPlatformBrowser } from '@angular/common';
|
|
10
|
+
import * as i1$2 from '@angular/fire/firestore';
|
|
11
|
+
import { Firestore, provideFirestore, getFirestore, initializeFirestore, enableIndexedDbPersistence, docSnapshots, doc } from '@angular/fire/firestore';
|
|
12
|
+
import { initializeApp as initializeApp$1 } from 'firebase/app';
|
|
12
13
|
import { combineLatest, from, of, throwError, Subject, iif, forkJoin } from 'rxjs';
|
|
13
14
|
import { map, mergeMap, catchError, concatMap, tap } from 'rxjs/operators';
|
|
14
15
|
import cookie from 'js-cookie';
|
|
15
16
|
import { __decorate, __metadata } from 'tslib';
|
|
16
17
|
import { Type } from 'class-transformer';
|
|
17
|
-
import * as i1$
|
|
18
|
+
import * as i1$4 from '@angular/common/http';
|
|
18
19
|
|
|
19
20
|
const ES_CONFIG = 'ES_CONFIG';
|
|
20
21
|
|
|
@@ -25,17 +26,17 @@ class AngularElasticSeachModule {
|
|
|
25
26
|
providers: [{ provide: ES_CONFIG, useValue: options }],
|
|
26
27
|
};
|
|
27
28
|
}
|
|
29
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularElasticSeachModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
30
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.6", ngImport: i0, type: AngularElasticSeachModule }); }
|
|
31
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularElasticSeachModule, providers: [
|
|
32
|
+
{
|
|
33
|
+
provide: ProductsIndex,
|
|
34
|
+
useFactory: (configuration) => new ProductsIndex(new AxiosAdapter(configuration)),
|
|
35
|
+
deps: [ES_CONFIG],
|
|
36
|
+
},
|
|
37
|
+
] }); }
|
|
28
38
|
}
|
|
29
|
-
|
|
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
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularElasticSeachModule, decorators: [{
|
|
39
40
|
type: NgModule,
|
|
40
41
|
args: [{
|
|
41
42
|
providers: [
|
|
@@ -69,57 +70,71 @@ class AngularFirebaseAuthModule {
|
|
|
69
70
|
],
|
|
70
71
|
};
|
|
71
72
|
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
73
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularFirebaseAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
74
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.6", ngImport: i0, type: AngularFirebaseAuthModule, imports: [i1.FirebaseAppModule, i1$1.AuthModule] }); }
|
|
75
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularFirebaseAuthModule, providers: [
|
|
76
|
+
{
|
|
77
|
+
provide: 'Authentication',
|
|
78
|
+
useFactory: (authenticationService, userRepository) => {
|
|
79
|
+
return new Authentication(authenticationService, userRepository);
|
|
80
|
+
},
|
|
81
|
+
deps: ['AuthenticationService', 'UserRepository'],
|
|
80
82
|
},
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
{
|
|
84
|
+
provide: 'AuthenticationService',
|
|
85
|
+
useFactory: (angularFireAuth) => {
|
|
86
|
+
return new AuthenticationFirebaseAuthService(angularFireAuth);
|
|
87
|
+
},
|
|
88
|
+
deps: [Auth],
|
|
87
89
|
},
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
{
|
|
91
|
+
provide: 'Register',
|
|
92
|
+
useFactory: (registerService, userRepository) => {
|
|
93
|
+
return new Register(registerService, userRepository);
|
|
94
|
+
},
|
|
95
|
+
deps: ['RegisterService', 'UserRepository'],
|
|
94
96
|
},
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
{
|
|
98
|
+
provide: 'RegisterService',
|
|
99
|
+
useFactory: (angularFireAuth) => {
|
|
100
|
+
return new RegisterFirebaseAuthService(angularFireAuth);
|
|
101
|
+
},
|
|
102
|
+
deps: [Auth],
|
|
101
103
|
},
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
{
|
|
105
|
+
provide: 'SignOut',
|
|
106
|
+
useFactory: (authenticationService) => {
|
|
107
|
+
return new SignOut(authenticationService);
|
|
108
|
+
},
|
|
109
|
+
deps: ['AuthenticationService'],
|
|
108
110
|
},
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
111
|
+
{
|
|
112
|
+
provide: 'RecoveryPassword',
|
|
113
|
+
useFactory: (authenticationService) => {
|
|
114
|
+
return new RecoveryPassword(authenticationService);
|
|
115
|
+
},
|
|
116
|
+
deps: ['AuthenticationService'],
|
|
115
117
|
},
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
], imports: [provideFirebaseApp((injector) => {
|
|
119
|
+
const appName = injector.get(FIREBASE_APP_NAME);
|
|
120
|
+
return appName
|
|
121
|
+
? initializeApp(injector.get(FIREBASE_OPTIONS), appName)
|
|
122
|
+
: initializeApp(injector.get(FIREBASE_OPTIONS));
|
|
123
|
+
}),
|
|
124
|
+
provideAuth(() => getAuth())] }); }
|
|
125
|
+
}
|
|
126
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
|
|
120
127
|
type: NgModule,
|
|
121
128
|
args: [{
|
|
122
|
-
imports: [
|
|
129
|
+
imports: [
|
|
130
|
+
provideFirebaseApp((injector) => {
|
|
131
|
+
const appName = injector.get(FIREBASE_APP_NAME);
|
|
132
|
+
return appName
|
|
133
|
+
? initializeApp(injector.get(FIREBASE_OPTIONS), appName)
|
|
134
|
+
: initializeApp(injector.get(FIREBASE_OPTIONS));
|
|
135
|
+
}),
|
|
136
|
+
provideAuth(() => getAuth()),
|
|
137
|
+
],
|
|
123
138
|
providers: [
|
|
124
139
|
{
|
|
125
140
|
provide: 'Authentication',
|
|
@@ -185,235 +200,237 @@ class AngularFirestoreModule {
|
|
|
185
200
|
],
|
|
186
201
|
};
|
|
187
202
|
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
203
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
204
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.6", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1.FirebaseAppModule, i1$2.FirestoreModule] }); }
|
|
205
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularFirestoreModule, providers: [
|
|
206
|
+
{
|
|
207
|
+
provide: 'FirestoreOptions',
|
|
208
|
+
useFactory: (firestore, platformId) => ({
|
|
209
|
+
firestore,
|
|
210
|
+
interceptors: {
|
|
211
|
+
request: (request) => {
|
|
212
|
+
if (isPlatformBrowser(platformId))
|
|
213
|
+
return request;
|
|
214
|
+
const interval = setInterval(() => { }, 100);
|
|
215
|
+
request.interval = interval;
|
|
199
216
|
return request;
|
|
200
|
-
|
|
201
|
-
request
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
if (isPlatformBrowser(platformId))
|
|
217
|
+
},
|
|
218
|
+
response: (response, request) => {
|
|
219
|
+
if (isPlatformBrowser(platformId))
|
|
220
|
+
return response;
|
|
221
|
+
clearInterval(request.interval);
|
|
206
222
|
return response;
|
|
207
|
-
|
|
208
|
-
return response;
|
|
223
|
+
},
|
|
209
224
|
},
|
|
225
|
+
}),
|
|
226
|
+
deps: [Firestore, PLATFORM_ID],
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
provide: 'BeautyProfileRepository',
|
|
230
|
+
useFactory: (config, userRepository) => {
|
|
231
|
+
return new UserBeautyProfileFirestoreRepository(config, userRepository);
|
|
210
232
|
},
|
|
211
|
-
|
|
212
|
-
deps: [Firestore, PLATFORM_ID],
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
provide: 'BeautyProfileRepository',
|
|
216
|
-
useFactory: (config, userRepository) => {
|
|
217
|
-
return new UserBeautyProfileFirestoreRepository(config, userRepository);
|
|
233
|
+
deps: ['FirestoreOptions', 'UserRepository'],
|
|
218
234
|
},
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
235
|
+
{
|
|
236
|
+
provide: 'Buy2WinRepository',
|
|
237
|
+
useFactory: (options) => {
|
|
238
|
+
return new Buy2WinFirestoreRepository(options);
|
|
239
|
+
},
|
|
240
|
+
deps: ['FirestoreOptions'],
|
|
225
241
|
},
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
242
|
+
{
|
|
243
|
+
provide: CategoryFirestoreRepository,
|
|
244
|
+
useFactory: (options) => {
|
|
245
|
+
return new CategoryFirestoreRepository(options);
|
|
246
|
+
},
|
|
247
|
+
deps: ['FirestoreOptions'],
|
|
232
248
|
},
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
249
|
+
{
|
|
250
|
+
provide: 'CheckoutRepository',
|
|
251
|
+
useFactory: (options) => {
|
|
252
|
+
return new CheckoutFirestoreRepository(options);
|
|
253
|
+
},
|
|
254
|
+
deps: ['FirestoreOptions'],
|
|
239
255
|
},
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
256
|
+
{
|
|
257
|
+
provide: 'CheckoutSubscriptionRepository',
|
|
258
|
+
useFactory: (options) => {
|
|
259
|
+
return new CheckoutSubscriptionFirestoreRepository(options);
|
|
260
|
+
},
|
|
261
|
+
deps: ['FirestoreOptions'],
|
|
246
262
|
},
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
263
|
+
{
|
|
264
|
+
provide: 'CouponRepository',
|
|
265
|
+
useFactory: (options) => {
|
|
266
|
+
return new CouponFirestoreRepository(options);
|
|
267
|
+
},
|
|
268
|
+
deps: ['FirestoreOptions'],
|
|
253
269
|
},
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
270
|
+
{
|
|
271
|
+
provide: 'CampaignHashtagRepository',
|
|
272
|
+
useFactory: (options) => {
|
|
273
|
+
return new CampaignHashtagFirestoreRepository(options);
|
|
274
|
+
},
|
|
275
|
+
deps: ['FirestoreOptions'],
|
|
260
276
|
},
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
277
|
+
{
|
|
278
|
+
provide: 'CampaignDashboardRepository',
|
|
279
|
+
useFactory: (options) => {
|
|
280
|
+
return new CampaignDashboardFirestoreRepository(options);
|
|
281
|
+
},
|
|
282
|
+
deps: ['FirestoreOptions'],
|
|
267
283
|
},
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
284
|
+
{
|
|
285
|
+
provide: 'EditionRepository',
|
|
286
|
+
useFactory: (options, subscriptionRepository) => {
|
|
287
|
+
return new SubscriptionEditionFirestoreRepository(options, subscriptionRepository);
|
|
288
|
+
},
|
|
289
|
+
deps: ['FirestoreOptions', 'SubscriptionRepository'],
|
|
274
290
|
},
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
291
|
+
{
|
|
292
|
+
provide: 'HomeRepository',
|
|
293
|
+
useFactory: (options) => {
|
|
294
|
+
return new HomeFirestoreRepository(options);
|
|
295
|
+
},
|
|
296
|
+
deps: ['FirestoreOptions'],
|
|
281
297
|
},
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
298
|
+
{
|
|
299
|
+
provide: 'LeadRepository',
|
|
300
|
+
useFactory: (options) => {
|
|
301
|
+
return new LeadFirestoreRepository(options);
|
|
302
|
+
},
|
|
303
|
+
deps: ['FirestoreOptions'],
|
|
288
304
|
},
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
305
|
+
{
|
|
306
|
+
provide: 'LegacyOrderRepository',
|
|
307
|
+
useFactory: (options) => {
|
|
308
|
+
return new LegacyOrderFirestoreRepository(options);
|
|
309
|
+
},
|
|
310
|
+
deps: ['FirestoreOptions'],
|
|
295
311
|
},
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
312
|
+
{
|
|
313
|
+
provide: 'ShopMenuRepository',
|
|
314
|
+
useFactory: (options) => {
|
|
315
|
+
return new ShopMenuFirestoreRepository(options);
|
|
316
|
+
},
|
|
317
|
+
deps: ['FirestoreOptions'],
|
|
302
318
|
},
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
319
|
+
{
|
|
320
|
+
provide: 'OrderRepository',
|
|
321
|
+
useFactory: (options) => {
|
|
322
|
+
return new OrderFirestoreRepository(options);
|
|
323
|
+
},
|
|
324
|
+
deps: ['FirestoreOptions'],
|
|
309
325
|
},
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
326
|
+
{
|
|
327
|
+
provide: 'PaymentRepository',
|
|
328
|
+
useFactory: (options) => {
|
|
329
|
+
return new PaymentFirestoreRepository(options);
|
|
330
|
+
},
|
|
331
|
+
deps: ['FirestoreOptions'],
|
|
316
332
|
},
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
333
|
+
{
|
|
334
|
+
provide: ProductFirestoreRepository,
|
|
335
|
+
useFactory: (options) => {
|
|
336
|
+
return new ProductFirestoreRepository(options);
|
|
337
|
+
},
|
|
338
|
+
deps: ['FirestoreOptions'],
|
|
323
339
|
},
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
340
|
+
{
|
|
341
|
+
provide: 'ShopSettingsRepository',
|
|
342
|
+
useFactory: (options) => {
|
|
343
|
+
return new ShopSettingsFirestoreRepository(options);
|
|
344
|
+
},
|
|
345
|
+
deps: ['FirestoreOptions'],
|
|
330
346
|
},
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
347
|
+
{
|
|
348
|
+
provide: 'SubscriptionPaymentRepository',
|
|
349
|
+
useFactory: (options, subscriptionRepository) => {
|
|
350
|
+
return new SubscriptionPaymentFirestoreRepository(options, subscriptionRepository);
|
|
351
|
+
},
|
|
352
|
+
deps: ['FirestoreOptions', 'SubscriptionRepository'],
|
|
337
353
|
},
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
354
|
+
{
|
|
355
|
+
provide: 'SubscriptionPlanRepository',
|
|
356
|
+
useFactory: (options) => {
|
|
357
|
+
return new SubscriptionPlanFirestoreRepository(options);
|
|
358
|
+
},
|
|
359
|
+
deps: ['FirestoreOptions'],
|
|
344
360
|
},
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
361
|
+
{
|
|
362
|
+
provide: 'SubscriptionProductRepository',
|
|
363
|
+
useFactory: (options) => {
|
|
364
|
+
return new SubscriptionProductFirestoreRepository(options);
|
|
365
|
+
},
|
|
366
|
+
deps: ['FirestoreOptions'],
|
|
351
367
|
},
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
368
|
+
{
|
|
369
|
+
provide: 'SubscriptionRepository',
|
|
370
|
+
useFactory: (options) => {
|
|
371
|
+
return new SubscriptionFirestoreRepository(options);
|
|
372
|
+
},
|
|
373
|
+
deps: ['FirestoreOptions'],
|
|
358
374
|
},
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
375
|
+
{
|
|
376
|
+
provide: 'UserRepository',
|
|
377
|
+
useFactory: (options) => {
|
|
378
|
+
return new UserFirestoreRepository(options);
|
|
379
|
+
},
|
|
380
|
+
deps: ['FirestoreOptions'],
|
|
365
381
|
},
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
382
|
+
{
|
|
383
|
+
provide: 'UserAddressRepository',
|
|
384
|
+
useFactory: (options, userRepository) => {
|
|
385
|
+
return new UserAddressFirestoreRepository(options, userRepository);
|
|
386
|
+
},
|
|
387
|
+
deps: ['FirestoreOptions', 'UserRepository'],
|
|
372
388
|
},
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
389
|
+
{
|
|
390
|
+
provide: 'UserPaymentMethodRepository',
|
|
391
|
+
useFactory: (options, userRepository) => {
|
|
392
|
+
return new UserPaymentMethodFirestoreRepository(options, userRepository);
|
|
393
|
+
},
|
|
394
|
+
deps: ['FirestoreOptions', 'UserRepository'],
|
|
379
395
|
},
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
396
|
+
{
|
|
397
|
+
provide: ProductVariantFirestoreRepository,
|
|
398
|
+
useFactory: (options, productRepository) => {
|
|
399
|
+
return new ProductVariantFirestoreRepository(options, productRepository);
|
|
400
|
+
},
|
|
401
|
+
deps: ['FirestoreOptions', ProductFirestoreRepository],
|
|
386
402
|
},
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
experimentalForceLongPolling: true
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
403
|
+
], imports: [AngularElasticSeachModule,
|
|
404
|
+
provideFirebaseApp((injector) => {
|
|
405
|
+
const appName = injector.get(FIREBASE_APP_NAME);
|
|
406
|
+
return appName
|
|
407
|
+
? initializeApp$1(injector.get(FIREBASE_OPTIONS), appName)
|
|
408
|
+
: initializeApp$1(injector.get(FIREBASE_OPTIONS));
|
|
409
|
+
}),
|
|
410
|
+
provideFirestore((injector) => {
|
|
411
|
+
if (!MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
412
|
+
return getFirestore();
|
|
413
|
+
const firestore = initializeFirestore(injector.get(FirebaseApp), { experimentalForceLongPolling: true });
|
|
414
|
+
enableIndexedDbPersistence(firestore).catch(console.error);
|
|
415
|
+
return firestore;
|
|
416
|
+
})] }); }
|
|
417
|
+
}
|
|
418
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularFirestoreModule, decorators: [{
|
|
403
419
|
type: NgModule,
|
|
404
420
|
args: [{
|
|
405
421
|
imports: [
|
|
406
422
|
AngularElasticSeachModule,
|
|
423
|
+
provideFirebaseApp((injector) => {
|
|
424
|
+
const appName = injector.get(FIREBASE_APP_NAME);
|
|
425
|
+
return appName
|
|
426
|
+
? initializeApp$1(injector.get(FIREBASE_OPTIONS), appName)
|
|
427
|
+
: initializeApp$1(injector.get(FIREBASE_OPTIONS));
|
|
428
|
+
}),
|
|
407
429
|
provideFirestore((injector) => {
|
|
408
|
-
const platformId = injector.get(PLATFORM_ID);
|
|
409
|
-
if (isPlatformServer(platformId))
|
|
410
|
-
return getFirestore(injector.get(FirebaseApp));
|
|
411
430
|
if (!MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
412
|
-
return getFirestore(
|
|
413
|
-
const firestore = initializeFirestore(injector.get(FirebaseApp), {
|
|
414
|
-
|
|
415
|
-
localCache: memoryLocalCache(),
|
|
416
|
-
});
|
|
431
|
+
return getFirestore();
|
|
432
|
+
const firestore = initializeFirestore(injector.get(FirebaseApp), { experimentalForceLongPolling: true });
|
|
433
|
+
enableIndexedDbPersistence(firestore).catch(console.error);
|
|
417
434
|
return firestore;
|
|
418
435
|
}),
|
|
419
436
|
],
|
|
@@ -626,132 +643,121 @@ class AngularHasuraGraphQLModule {
|
|
|
626
643
|
providers: [{ provide: HASURA_OPTIONS, useValue: options }],
|
|
627
644
|
};
|
|
628
645
|
}
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
646
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularHasuraGraphQLModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
647
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.6", ngImport: i0, type: AngularHasuraGraphQLModule }); }
|
|
648
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularHasuraGraphQLModule, providers: [
|
|
649
|
+
{
|
|
650
|
+
provide: 'HasuraConfig',
|
|
651
|
+
useFactory: (options, platformId) => ({
|
|
652
|
+
endpoint: options.endpoint,
|
|
653
|
+
authOptions: options.credentials,
|
|
654
|
+
interceptors: {
|
|
655
|
+
request: (request) => {
|
|
656
|
+
if (isPlatformBrowser(platformId))
|
|
657
|
+
return request;
|
|
658
|
+
const interval = setInterval(() => { }, 100);
|
|
659
|
+
request.interval = interval;
|
|
641
660
|
return request;
|
|
642
|
-
|
|
643
|
-
request
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
if (isPlatformBrowser(platformId))
|
|
661
|
+
},
|
|
662
|
+
response: (response, request) => {
|
|
663
|
+
if (isPlatformBrowser(platformId))
|
|
664
|
+
return response;
|
|
665
|
+
clearInterval(request.interval);
|
|
648
666
|
return response;
|
|
649
|
-
|
|
650
|
-
return response;
|
|
667
|
+
},
|
|
651
668
|
},
|
|
669
|
+
}),
|
|
670
|
+
deps: [HASURA_OPTIONS, PLATFORM_ID],
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
provide: 'CategoryRepository',
|
|
674
|
+
useExisting: CategoryHasuraGraphQLRepository,
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
provide: CategoryHasuraGraphQLRepository,
|
|
678
|
+
useFactory: (options, productRepository, categoryFilterRepository) => {
|
|
679
|
+
return new CategoryHasuraGraphQLRepository(options, productRepository, categoryFilterRepository);
|
|
652
680
|
},
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
681
|
+
deps: ['HasuraConfig', ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
provide: 'ProductRepository',
|
|
685
|
+
useExisting: ProductHasuraGraphQLRepository,
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
provide: ProductHasuraGraphQLRepository,
|
|
689
|
+
useFactory: (hasuraConfig) => {
|
|
690
|
+
return new ProductHasuraGraphQLRepository(hasuraConfig);
|
|
691
|
+
},
|
|
692
|
+
deps: ['HasuraConfig'],
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
provide: 'VariantRepository',
|
|
696
|
+
useExisting: VariantHasuraGraphQLRepository,
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
provide: VariantHasuraGraphQLRepository,
|
|
700
|
+
useFactory: (hasuraConfig) => {
|
|
701
|
+
return new VariantHasuraGraphQLRepository(hasuraConfig);
|
|
702
|
+
},
|
|
703
|
+
deps: ['HasuraConfig'],
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
provide: 'CategoryFilterRepository',
|
|
707
|
+
useExisting: CategoryFilterHasuraGraphQLRepository,
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
provide: CategoryFilterHasuraGraphQLRepository,
|
|
711
|
+
useFactory: (options) => {
|
|
712
|
+
return new CategoryFilterHasuraGraphQLRepository(options);
|
|
713
|
+
},
|
|
714
|
+
deps: ['HasuraConfig'],
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
provide: 'FilterOptionRepository',
|
|
718
|
+
useExisting: FilterOptionHasuraGraphQLRepository,
|
|
664
719
|
},
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
{
|
|
672
|
-
provide: ProductHasuraGraphQLRepository,
|
|
673
|
-
useFactory: (hasuraConfig) => {
|
|
674
|
-
return new ProductHasuraGraphQLRepository(hasuraConfig);
|
|
720
|
+
{
|
|
721
|
+
provide: FilterOptionHasuraGraphQLRepository,
|
|
722
|
+
useFactory: (options) => {
|
|
723
|
+
return new FilterOptionHasuraGraphQLRepository(options);
|
|
724
|
+
},
|
|
725
|
+
deps: ['HasuraConfig'],
|
|
675
726
|
},
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
provide: 'ProductReviewsRepository',
|
|
680
|
-
useExisting: ProductReviewsHasuraGraphQLRepository,
|
|
681
|
-
},
|
|
682
|
-
{
|
|
683
|
-
provide: ProductReviewsHasuraGraphQLRepository,
|
|
684
|
-
useFactory: (hasuraConfig) => {
|
|
685
|
-
return new ProductReviewsHasuraGraphQLRepository(hasuraConfig);
|
|
727
|
+
{
|
|
728
|
+
provide: 'FilterRepository',
|
|
729
|
+
useExisting: FilterHasuraGraphQLRepository,
|
|
686
730
|
},
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
{
|
|
694
|
-
provide: VariantHasuraGraphQLRepository,
|
|
695
|
-
useFactory: (hasuraConfig) => {
|
|
696
|
-
return new VariantHasuraGraphQLRepository(hasuraConfig);
|
|
731
|
+
{
|
|
732
|
+
provide: FilterHasuraGraphQLRepository,
|
|
733
|
+
useFactory: (options, filterOptionRepository, categoryFilterRepository) => {
|
|
734
|
+
return new FilterHasuraGraphQLRepository(options, filterOptionRepository, categoryFilterRepository);
|
|
735
|
+
},
|
|
736
|
+
deps: ['HasuraConfig', FilterOptionHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
|
|
697
737
|
},
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
useExisting: CategoryFilterHasuraGraphQLRepository,
|
|
703
|
-
},
|
|
704
|
-
{
|
|
705
|
-
provide: CategoryFilterHasuraGraphQLRepository,
|
|
706
|
-
useFactory: (options) => {
|
|
707
|
-
return new CategoryFilterHasuraGraphQLRepository(options);
|
|
738
|
+
{
|
|
739
|
+
provide: CategoryCollectionChildrenHasuraGraphQLRepository,
|
|
740
|
+
useFactory: (options) => new CategoryCollectionChildrenHasuraGraphQLRepository(options),
|
|
741
|
+
deps: ['HasuraConfig'],
|
|
708
742
|
},
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
provide: 'FilterOptionRepository',
|
|
713
|
-
useExisting: FilterOptionHasuraGraphQLRepository,
|
|
714
|
-
},
|
|
715
|
-
{
|
|
716
|
-
provide: FilterOptionHasuraGraphQLRepository,
|
|
717
|
-
useFactory: (options) => {
|
|
718
|
-
return new FilterOptionHasuraGraphQLRepository(options);
|
|
743
|
+
{
|
|
744
|
+
provide: 'CategoryCollectionChildrenRepository',
|
|
745
|
+
useExisting: CategoryCollectionChildrenHasuraGraphQLRepository,
|
|
719
746
|
},
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
{
|
|
727
|
-
provide: FilterHasuraGraphQLRepository,
|
|
728
|
-
useFactory: (options, filterOptionRepository, categoryFilterRepository) => {
|
|
729
|
-
return new FilterHasuraGraphQLRepository(options, filterOptionRepository, categoryFilterRepository);
|
|
747
|
+
{
|
|
748
|
+
provide: WishlistHasuraGraphQLRepository,
|
|
749
|
+
useFactory: (options, categoryFilterRepository) => {
|
|
750
|
+
return new WishlistHasuraGraphQLRepository(options, categoryFilterRepository);
|
|
751
|
+
},
|
|
752
|
+
deps: ['HasuraConfig', CategoryFilterHasuraGraphQLRepository],
|
|
730
753
|
},
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
provide: CategoryCollectionChildrenHasuraGraphQLRepository,
|
|
735
|
-
useFactory: (options) => new CategoryCollectionChildrenHasuraGraphQLRepository(options),
|
|
736
|
-
deps: ['HasuraConfig'],
|
|
737
|
-
},
|
|
738
|
-
{
|
|
739
|
-
provide: 'CategoryCollectionChildrenRepository',
|
|
740
|
-
useExisting: CategoryCollectionChildrenHasuraGraphQLRepository,
|
|
741
|
-
},
|
|
742
|
-
{
|
|
743
|
-
provide: WishlistHasuraGraphQLRepository,
|
|
744
|
-
useFactory: (options, categoryFilterRepository) => {
|
|
745
|
-
return new WishlistHasuraGraphQLRepository(options, categoryFilterRepository);
|
|
754
|
+
{
|
|
755
|
+
provide: 'WishlistRepository',
|
|
756
|
+
useExisting: WishlistHasuraGraphQLRepository,
|
|
746
757
|
},
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
provide: 'WishlistRepository',
|
|
751
|
-
useExisting: WishlistHasuraGraphQLRepository,
|
|
752
|
-
},
|
|
753
|
-
] });
|
|
754
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, decorators: [{
|
|
758
|
+
] }); }
|
|
759
|
+
}
|
|
760
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularHasuraGraphQLModule, decorators: [{
|
|
755
761
|
type: NgModule,
|
|
756
762
|
args: [{
|
|
757
763
|
providers: [
|
|
@@ -800,17 +806,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
800
806
|
},
|
|
801
807
|
deps: ['HasuraConfig'],
|
|
802
808
|
},
|
|
803
|
-
{
|
|
804
|
-
provide: 'ProductReviewsRepository',
|
|
805
|
-
useExisting: ProductReviewsHasuraGraphQLRepository,
|
|
806
|
-
},
|
|
807
|
-
{
|
|
808
|
-
provide: ProductReviewsHasuraGraphQLRepository,
|
|
809
|
-
useFactory: (hasuraConfig) => {
|
|
810
|
-
return new ProductReviewsHasuraGraphQLRepository(hasuraConfig);
|
|
811
|
-
},
|
|
812
|
-
deps: ['HasuraConfig'],
|
|
813
|
-
},
|
|
814
809
|
{
|
|
815
810
|
provide: 'VariantRepository',
|
|
816
811
|
useExisting: VariantHasuraGraphQLRepository,
|
|
@@ -900,12 +895,12 @@ class AuthService {
|
|
|
900
895
|
getFireUser() {
|
|
901
896
|
return authState(this.angularFireAuth).pipe(catchError(() => of(null)));
|
|
902
897
|
}
|
|
898
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AuthService, deps: [{ token: i1$1.Auth }, { token: 'UserRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
899
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AuthService }); }
|
|
903
900
|
}
|
|
904
|
-
|
|
905
|
-
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService });
|
|
906
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, decorators: [{
|
|
901
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AuthService, decorators: [{
|
|
907
902
|
type: Injectable
|
|
908
|
-
}], ctorParameters: function () { return [{ type: i1.Auth }, { type: undefined, decorators: [{
|
|
903
|
+
}], ctorParameters: function () { return [{ type: i1$1.Auth }, { type: undefined, decorators: [{
|
|
909
904
|
type: Inject,
|
|
910
905
|
args: ['UserRepository']
|
|
911
906
|
}] }]; } });
|
|
@@ -1099,10 +1094,10 @@ class CouponService {
|
|
|
1099
1094
|
}
|
|
1100
1095
|
return couponUseLimits;
|
|
1101
1096
|
}
|
|
1097
|
+
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 }); }
|
|
1098
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CouponService, providedIn: 'root' }); }
|
|
1102
1099
|
}
|
|
1103
|
-
|
|
1104
|
-
CouponService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, providedIn: 'root' });
|
|
1105
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, decorators: [{
|
|
1100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CouponService, decorators: [{
|
|
1106
1101
|
type: Injectable,
|
|
1107
1102
|
args: [{
|
|
1108
1103
|
providedIn: 'root',
|
|
@@ -1110,7 +1105,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1110
1105
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1111
1106
|
type: Inject,
|
|
1112
1107
|
args: ['CouponRepository']
|
|
1113
|
-
}] }, { type: i1$
|
|
1108
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
1114
1109
|
type: Inject,
|
|
1115
1110
|
args: [DEFAULT_SHOP]
|
|
1116
1111
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1163,10 +1158,10 @@ class CheckoutService {
|
|
|
1163
1158
|
cookie.set('checkoutId', checkout.id);
|
|
1164
1159
|
return checkout;
|
|
1165
1160
|
}
|
|
1161
|
+
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 }); }
|
|
1162
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CheckoutService }); }
|
|
1166
1163
|
}
|
|
1167
|
-
|
|
1168
|
-
CheckoutService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutService });
|
|
1169
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutService, decorators: [{
|
|
1164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CheckoutService, decorators: [{
|
|
1170
1165
|
type: Injectable
|
|
1171
1166
|
}], ctorParameters: function () { return [{ type: CouponService }, { type: undefined, decorators: [{
|
|
1172
1167
|
type: Inject,
|
|
@@ -1177,7 +1172,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1177
1172
|
}] }, { type: undefined, decorators: [{
|
|
1178
1173
|
type: Inject,
|
|
1179
1174
|
args: ['UserRepository']
|
|
1180
|
-
}] }, { type: i1$
|
|
1175
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
1181
1176
|
type: Inject,
|
|
1182
1177
|
args: [DEFAULT_SHOP]
|
|
1183
1178
|
}] }]; } });
|
|
@@ -1430,12 +1425,12 @@ class CartService {
|
|
|
1430
1425
|
});
|
|
1431
1426
|
});
|
|
1432
1427
|
}
|
|
1428
|
+
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 }); }
|
|
1429
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CartService }); }
|
|
1433
1430
|
}
|
|
1434
|
-
|
|
1435
|
-
CartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService });
|
|
1436
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, decorators: [{
|
|
1431
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CartService, decorators: [{
|
|
1437
1432
|
type: Injectable
|
|
1438
|
-
}], ctorParameters: function () { return [{ type: AuthService }, { type: CheckoutService }, { type: i1$
|
|
1433
|
+
}], ctorParameters: function () { return [{ type: AuthService }, { type: CheckoutService }, { type: i1$3.Shops, decorators: [{
|
|
1439
1434
|
type: Inject,
|
|
1440
1435
|
args: [DEFAULT_SHOP]
|
|
1441
1436
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1447,7 +1442,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1447
1442
|
}] }, { type: undefined, decorators: [{
|
|
1448
1443
|
type: Inject,
|
|
1449
1444
|
args: ['VariantRepository']
|
|
1450
|
-
}] }, { type: i1$
|
|
1445
|
+
}] }, { type: i1$3.Buy2WinFirestoreRepository, decorators: [{
|
|
1451
1446
|
type: Inject,
|
|
1452
1447
|
args: ['Buy2WinRepository']
|
|
1453
1448
|
}] }]; } });
|
|
@@ -1458,7 +1453,6 @@ class CatalogService {
|
|
|
1458
1453
|
this.categoryStructureAdapter = categoryStructureAdapter;
|
|
1459
1454
|
this.shop = shop;
|
|
1460
1455
|
this.productIndex = productIndex;
|
|
1461
|
-
this.productsByTerm = {};
|
|
1462
1456
|
this.buildFilterQuery = ({ clubDiscount, brands, prices, gender, tags, rate, customOptions, }) => {
|
|
1463
1457
|
const filters = {};
|
|
1464
1458
|
if (clubDiscount?.length)
|
|
@@ -1529,8 +1523,6 @@ class CatalogService {
|
|
|
1529
1523
|
}));
|
|
1530
1524
|
}
|
|
1531
1525
|
async findCatalog(options, limits) {
|
|
1532
|
-
if (this.hasTerm(options) && options.sort === 'most-relevant')
|
|
1533
|
-
return this.findCatalogByTermAndSortByMostRevelant(options, limits);
|
|
1534
1526
|
const repoParams = {
|
|
1535
1527
|
filters: {
|
|
1536
1528
|
...(await this.buildMainFilter(options)),
|
|
@@ -1558,46 +1550,10 @@ class CatalogService {
|
|
|
1558
1550
|
.search(term, 999, this.shop)
|
|
1559
1551
|
.then((data) => ({ id: { operator: Where.IN, value: data.hits.map(({ _source }) => _source.id) } }));
|
|
1560
1552
|
}
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
const limitedProductId = productIds.slice(limits.offset, limits.offset + limits.limit);
|
|
1564
|
-
const productResult = await this.productRepository.findCatalog({
|
|
1565
|
-
filters: { id: { operator: Where.IN, value: limitedProductId } },
|
|
1566
|
-
}, options?.mainGender || this.shop === Shops.MENSMARKET ? 'male' : 'female');
|
|
1567
|
-
const totalResult = await this.productRepository.findCatalog({
|
|
1568
|
-
fields: ['id'],
|
|
1569
|
-
filters: { id: { operator: Where.IN, value: productIds } },
|
|
1570
|
-
limits: { limit: 1, offset: 0 },
|
|
1571
|
-
options: {
|
|
1572
|
-
minimal: ['price'],
|
|
1573
|
-
maximum: ['price'],
|
|
1574
|
-
distinct: ['brand'],
|
|
1575
|
-
},
|
|
1576
|
-
}, options?.mainGender || this.shop === Shops.MENSMARKET ? 'male' : 'female');
|
|
1577
|
-
return {
|
|
1578
|
-
data: limitedProductId.map((id) => productResult.data.find((product) => product.id === id)).filter(Boolean),
|
|
1579
|
-
count: totalResult.count,
|
|
1580
|
-
maximum: totalResult.maximum,
|
|
1581
|
-
minimal: totalResult.minimal,
|
|
1582
|
-
distinct: totalResult.distinct,
|
|
1583
|
-
};
|
|
1584
|
-
}
|
|
1585
|
-
async findCatalogIdsByElasticSearch(term) {
|
|
1586
|
-
if (this.productsByTerm[term])
|
|
1587
|
-
return this.productsByTerm[term];
|
|
1588
|
-
return (this.productsByTerm[term] = await this.productIndex
|
|
1589
|
-
.search(term, 999, this.shop)
|
|
1590
|
-
.then(({ hits: products }) => {
|
|
1591
|
-
const withStock = products.filter(({ _source }) => _source.stock.quantity > 0);
|
|
1592
|
-
const withOutStock = products.filter(({ _source }) => _source.stock.quantity <= 0);
|
|
1593
|
-
const sorted = [...withStock, ...withOutStock];
|
|
1594
|
-
return [...new Set(sorted.map(({ _source }) => _source.id))];
|
|
1595
|
-
}));
|
|
1596
|
-
}
|
|
1553
|
+
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$3.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1554
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CatalogService }); }
|
|
1597
1555
|
}
|
|
1598
|
-
|
|
1599
|
-
CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService });
|
|
1600
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
|
|
1556
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CatalogService, decorators: [{
|
|
1601
1557
|
type: Injectable
|
|
1602
1558
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1603
1559
|
type: Inject,
|
|
@@ -1605,10 +1561,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1605
1561
|
}] }, { type: undefined, decorators: [{
|
|
1606
1562
|
type: Inject,
|
|
1607
1563
|
args: [CATEGORY_STRUCTURE]
|
|
1608
|
-
}] }, { type: i1$
|
|
1564
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
1609
1565
|
type: Inject,
|
|
1610
1566
|
args: [DEFAULT_SHOP]
|
|
1611
|
-
}] }, { type: i1$
|
|
1567
|
+
}] }, { type: i1$3.ProductsIndex }]; } });
|
|
1612
1568
|
|
|
1613
1569
|
class CategoryService {
|
|
1614
1570
|
constructor(productRepository, categoryRepository, categoryFilterRepository, categoryStructureAdapter, shop) {
|
|
@@ -1634,10 +1590,10 @@ class CategoryService {
|
|
|
1634
1590
|
.find({ filters: { categoryId: +category.id } })
|
|
1635
1591
|
.then(({ data }) => data.map((categoryFilter) => categoryFilter.filter));
|
|
1636
1592
|
}
|
|
1593
|
+
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 }); }
|
|
1594
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CategoryService }); }
|
|
1637
1595
|
}
|
|
1638
|
-
|
|
1639
|
-
CategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService });
|
|
1640
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService, decorators: [{
|
|
1596
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CategoryService, decorators: [{
|
|
1641
1597
|
type: Injectable
|
|
1642
1598
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1643
1599
|
type: Inject,
|
|
@@ -1651,7 +1607,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1651
1607
|
}] }, { type: undefined, decorators: [{
|
|
1652
1608
|
type: Inject,
|
|
1653
1609
|
args: [CATEGORY_STRUCTURE]
|
|
1654
|
-
}] }, { type: i1$
|
|
1610
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
1655
1611
|
type: Inject,
|
|
1656
1612
|
args: [DEFAULT_SHOP]
|
|
1657
1613
|
}] }]; } });
|
|
@@ -1702,10 +1658,10 @@ class NewCategoryStructureAdapter {
|
|
|
1702
1658
|
? this.categoryRepository.get({ id: category.id })
|
|
1703
1659
|
: category;
|
|
1704
1660
|
}
|
|
1661
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: NewCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1662
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: NewCategoryStructureAdapter }); }
|
|
1705
1663
|
}
|
|
1706
|
-
|
|
1707
|
-
NewCategoryStructureAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter });
|
|
1708
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter, decorators: [{
|
|
1664
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: NewCategoryStructureAdapter, decorators: [{
|
|
1709
1665
|
type: Injectable
|
|
1710
1666
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1711
1667
|
type: Inject,
|
|
@@ -1722,10 +1678,10 @@ class OldCategoryStructureAdapter {
|
|
|
1722
1678
|
: await this.categoryRepository.get({ id: category.id }).then((categoryFound) => categoryFound.products);
|
|
1723
1679
|
return { id: { operator: Where.IN, value: productsIds } };
|
|
1724
1680
|
}
|
|
1681
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: OldCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1682
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: OldCategoryStructureAdapter }); }
|
|
1725
1683
|
}
|
|
1726
|
-
|
|
1727
|
-
OldCategoryStructureAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter });
|
|
1728
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter, decorators: [{
|
|
1684
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: OldCategoryStructureAdapter, decorators: [{
|
|
1729
1685
|
type: Injectable
|
|
1730
1686
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1731
1687
|
type: Inject,
|
|
@@ -1812,15 +1768,15 @@ class WishlistService {
|
|
|
1812
1768
|
}
|
|
1813
1769
|
return wishlist;
|
|
1814
1770
|
}
|
|
1771
|
+
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$3.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1772
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: WishlistService }); }
|
|
1815
1773
|
}
|
|
1816
|
-
|
|
1817
|
-
WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
|
|
1818
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
|
|
1774
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: WishlistService, decorators: [{
|
|
1819
1775
|
type: Injectable
|
|
1820
1776
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1821
1777
|
type: Inject,
|
|
1822
1778
|
args: ['WishlistRepository']
|
|
1823
|
-
}] }, { type: i1$
|
|
1779
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
1824
1780
|
type: Inject,
|
|
1825
1781
|
args: [DEFAULT_SHOP]
|
|
1826
1782
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1829,7 +1785,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1829
1785
|
}] }, { type: undefined, decorators: [{
|
|
1830
1786
|
type: Inject,
|
|
1831
1787
|
args: ['CategoryFilterRepository']
|
|
1832
|
-
}] }, { type: i1$
|
|
1788
|
+
}] }, { type: i1$3.ProductsIndex }]; } });
|
|
1833
1789
|
|
|
1834
1790
|
class CheckoutSubscriptionService {
|
|
1835
1791
|
constructor(checkoutSubscriptionRepository, subscriptionRepository, couponService) {
|
|
@@ -1863,10 +1819,10 @@ class CheckoutSubscriptionService {
|
|
|
1863
1819
|
calcDiscountSubscription(coupon) {
|
|
1864
1820
|
return this.getCheckoutSubscription().pipe(concatMap((checkout) => this.couponService.calcDiscountSubscription(coupon, checkout).pipe()));
|
|
1865
1821
|
}
|
|
1822
|
+
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 }); }
|
|
1823
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CheckoutSubscriptionService }); }
|
|
1866
1824
|
}
|
|
1867
|
-
|
|
1868
|
-
CheckoutSubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService });
|
|
1869
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService, decorators: [{
|
|
1825
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CheckoutSubscriptionService, decorators: [{
|
|
1870
1826
|
type: Injectable
|
|
1871
1827
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1872
1828
|
type: Inject,
|
|
@@ -1982,10 +1938,10 @@ class HomeShopService {
|
|
|
1982
1938
|
data,
|
|
1983
1939
|
})).pipe(tap(() => (this.homeConfiguration.data = data)), map(() => this.homeConfiguration));
|
|
1984
1940
|
}
|
|
1941
|
+
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 }); }
|
|
1942
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: HomeShopService }); }
|
|
1985
1943
|
}
|
|
1986
|
-
|
|
1987
|
-
HomeShopService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService });
|
|
1988
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService, decorators: [{
|
|
1944
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: HomeShopService, decorators: [{
|
|
1989
1945
|
type: Injectable
|
|
1990
1946
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1991
1947
|
type: Inject,
|
|
@@ -1996,7 +1952,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1996
1952
|
}] }, { type: undefined, decorators: [{
|
|
1997
1953
|
type: Inject,
|
|
1998
1954
|
args: ['ProductRepository']
|
|
1999
|
-
}] }, { type: i1$
|
|
1955
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
2000
1956
|
type: Inject,
|
|
2001
1957
|
args: [DEFAULT_SHOP]
|
|
2002
1958
|
}] }]; } });
|
|
@@ -2013,12 +1969,12 @@ class OrderService {
|
|
|
2013
1969
|
.subscribe((doc) => this.orderSubject.next(doc));
|
|
2014
1970
|
return this.orderSubject;
|
|
2015
1971
|
}
|
|
1972
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: OrderService, deps: [{ token: i1$2.Firestore }, { token: 'OrderRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1973
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: OrderService }); }
|
|
2016
1974
|
}
|
|
2017
|
-
|
|
2018
|
-
OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService });
|
|
2019
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
|
|
1975
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: OrderService, decorators: [{
|
|
2020
1976
|
type: Injectable
|
|
2021
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
1977
|
+
}], ctorParameters: function () { return [{ type: i1$2.Firestore }, { type: i1$3.OrderFirestoreRepository, decorators: [{
|
|
2022
1978
|
type: Inject,
|
|
2023
1979
|
args: ['OrderRepository']
|
|
2024
1980
|
}] }]; } });
|
|
@@ -2099,12 +2055,12 @@ class ShippingService {
|
|
|
2099
2055
|
}
|
|
2100
2056
|
return false;
|
|
2101
2057
|
}
|
|
2058
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: ShippingService, deps: [{ token: i1$4.HttpClient }, { token: BACKEND_URL }, { token: HomeShopService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2059
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: ShippingService }); }
|
|
2102
2060
|
}
|
|
2103
|
-
|
|
2104
|
-
ShippingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService });
|
|
2105
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, decorators: [{
|
|
2061
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: ShippingService, decorators: [{
|
|
2106
2062
|
type: Injectable
|
|
2107
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
2063
|
+
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
|
|
2108
2064
|
type: Inject,
|
|
2109
2065
|
args: [BACKEND_URL]
|
|
2110
2066
|
}] }, { type: HomeShopService }]; } });
|
|
@@ -2129,55 +2085,26 @@ class AngularConnectModule {
|
|
|
2129
2085
|
],
|
|
2130
2086
|
};
|
|
2131
2087
|
}
|
|
2088
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2089
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.6", ngImport: i0, type: AngularConnectModule, imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] }); }
|
|
2090
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularConnectModule, providers: [
|
|
2091
|
+
AuthService,
|
|
2092
|
+
CartService,
|
|
2093
|
+
CatalogService,
|
|
2094
|
+
CategoryService,
|
|
2095
|
+
CheckoutService,
|
|
2096
|
+
CheckoutSubscriptionService,
|
|
2097
|
+
CouponService,
|
|
2098
|
+
HomeShopService,
|
|
2099
|
+
OrderService,
|
|
2100
|
+
ShippingService,
|
|
2101
|
+
WishlistService,
|
|
2102
|
+
], imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] }); }
|
|
2132
2103
|
}
|
|
2133
|
-
|
|
2134
|
-
AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [i1$4.FirebaseAppModule, AngularElasticSeachModule,
|
|
2135
|
-
AngularFirebaseAuthModule,
|
|
2136
|
-
AngularFirestoreModule,
|
|
2137
|
-
AngularHasuraGraphQLModule] });
|
|
2138
|
-
AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, providers: [
|
|
2139
|
-
AuthService,
|
|
2140
|
-
CartService,
|
|
2141
|
-
CatalogService,
|
|
2142
|
-
CategoryService,
|
|
2143
|
-
CheckoutService,
|
|
2144
|
-
CheckoutSubscriptionService,
|
|
2145
|
-
CouponService,
|
|
2146
|
-
HomeShopService,
|
|
2147
|
-
OrderService,
|
|
2148
|
-
ShippingService,
|
|
2149
|
-
WishlistService,
|
|
2150
|
-
], imports: [provideFirebaseApp((injector) => {
|
|
2151
|
-
const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
|
|
2152
|
-
try {
|
|
2153
|
-
return getApp(appName);
|
|
2154
|
-
}
|
|
2155
|
-
catch (error) {
|
|
2156
|
-
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
2157
|
-
}
|
|
2158
|
-
}),
|
|
2159
|
-
AngularElasticSeachModule,
|
|
2160
|
-
AngularFirebaseAuthModule,
|
|
2161
|
-
AngularFirestoreModule,
|
|
2162
|
-
AngularHasuraGraphQLModule] });
|
|
2163
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, decorators: [{
|
|
2104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularConnectModule, decorators: [{
|
|
2164
2105
|
type: NgModule,
|
|
2165
2106
|
args: [{
|
|
2166
|
-
imports: [
|
|
2167
|
-
provideFirebaseApp((injector) => {
|
|
2168
|
-
const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
|
|
2169
|
-
try {
|
|
2170
|
-
return getApp(appName);
|
|
2171
|
-
}
|
|
2172
|
-
catch (error) {
|
|
2173
|
-
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
2174
|
-
}
|
|
2175
|
-
}),
|
|
2176
|
-
AngularElasticSeachModule,
|
|
2177
|
-
AngularFirebaseAuthModule,
|
|
2178
|
-
AngularFirestoreModule,
|
|
2179
|
-
AngularHasuraGraphQLModule,
|
|
2180
|
-
],
|
|
2107
|
+
imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule],
|
|
2181
2108
|
providers: [
|
|
2182
2109
|
AuthService,
|
|
2183
2110
|
CartService,
|