@infrab4a/connect-angular 4.3.5 → 4.3.6-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/esm2020/angular-connect.module.mjs +113 -0
  2. package/esm2020/angular-elastic-search.module.mjs +34 -0
  3. package/esm2020/angular-firebase-auth.module.mjs +115 -0
  4. package/esm2020/angular-firestore.module.mjs +502 -0
  5. package/esm2020/angular-hasura-graphql.module.mjs +265 -0
  6. package/{esm2022 → esm2020}/services/auth.service.mjs +6 -6
  7. package/{esm2022 → esm2020}/services/cart.service.mjs +6 -6
  8. package/{esm2022 → esm2020}/services/catalog/adapters/new-category-structure.adapter.mjs +6 -6
  9. package/{esm2022 → esm2020}/services/catalog/adapters/old-category-structure.adapter.mjs +6 -6
  10. package/{esm2022 → esm2020}/services/catalog/catalog.service.mjs +6 -6
  11. package/esm2020/services/catalog/category.service.mjs +51 -0
  12. package/{esm2022 → esm2020}/services/catalog/models/category-with-tree.model.mjs +1 -1
  13. package/{esm2022 → esm2020}/services/catalog/wishlist.service.mjs +6 -6
  14. package/{esm2022 → esm2020}/services/checkout-subscription.service.mjs +6 -6
  15. package/{esm2022 → esm2020}/services/checkout.service.mjs +6 -6
  16. package/{esm2022 → esm2020}/services/coupon.service.mjs +6 -6
  17. package/{esm2022 → esm2020}/services/home-shop.service.mjs +6 -6
  18. package/{esm2022 → esm2020}/services/order.service.mjs +6 -6
  19. package/{esm2022 → esm2020}/services/shipping.service.mjs +6 -6
  20. package/fesm2015/infrab4a-connect-angular.mjs +2391 -0
  21. package/fesm2015/infrab4a-connect-angular.mjs.map +1 -0
  22. package/{fesm2022 → fesm2020}/infrab4a-connect-angular.mjs +524 -524
  23. package/fesm2020/infrab4a-connect-angular.mjs.map +1 -0
  24. package/package.json +11 -5
  25. package/services/catalog/category.service.d.ts +6 -1
  26. package/esm2022/angular-connect.module.mjs +0 -113
  27. package/esm2022/angular-elastic-search.module.mjs +0 -34
  28. package/esm2022/angular-firebase-auth.module.mjs +0 -115
  29. package/esm2022/angular-firestore.module.mjs +0 -502
  30. package/esm2022/angular-hasura-graphql.module.mjs +0 -265
  31. package/esm2022/services/catalog/category.service.mjs +0 -51
  32. package/fesm2022/infrab4a-connect-angular.mjs.map +0 -1
  33. /package/{esm2022 → esm2020}/consts/backend-url.const.mjs +0 -0
  34. /package/{esm2022 → esm2020}/consts/category-structure.mjs +0 -0
  35. /package/{esm2022 → esm2020}/consts/default-shop.const.mjs +0 -0
  36. /package/{esm2022 → esm2020}/consts/es-config.const.mjs +0 -0
  37. /package/{esm2022 → esm2020}/consts/firebase-const.mjs +0 -0
  38. /package/{esm2022 → esm2020}/consts/hasura-options.const.mjs +0 -0
  39. /package/{esm2022 → esm2020}/consts/index.mjs +0 -0
  40. /package/{esm2022 → esm2020}/consts/storage-base-url.const.mjs +0 -0
  41. /package/{esm2022 → esm2020}/helpers/index.mjs +0 -0
  42. /package/{esm2022 → esm2020}/helpers/mobile-operation-system-checker.helper.mjs +0 -0
  43. /package/{esm2022 → esm2020}/index.mjs +0 -0
  44. /package/{esm2022 → esm2020}/infrab4a-connect-angular.mjs +0 -0
  45. /package/{esm2022 → esm2020}/services/catalog/adapters/category-structure.adapter.mjs +0 -0
  46. /package/{esm2022 → esm2020}/services/catalog/adapters/index.mjs +0 -0
  47. /package/{esm2022 → esm2020}/services/catalog/enums/index.mjs +0 -0
  48. /package/{esm2022 → esm2020}/services/catalog/enums/product-sorts.enum.mjs +0 -0
  49. /package/{esm2022 → esm2020}/services/catalog/index.mjs +0 -0
  50. /package/{esm2022 → esm2020}/services/catalog/models/index.mjs +0 -0
  51. /package/{esm2022 → esm2020}/services/catalog/types/index.mjs +0 -0
  52. /package/{esm2022 → esm2020}/services/catalog/types/product-sort.type.mjs +0 -0
  53. /package/{esm2022 → esm2020}/services/helpers/index.mjs +0 -0
  54. /package/{esm2022 → esm2020}/services/helpers/util.helper.mjs +0 -0
  55. /package/{esm2022 → esm2020}/services/index.mjs +0 -0
  56. /package/{esm2022 → esm2020}/services/types/index.mjs +0 -0
  57. /package/{esm2022 → esm2020}/services/types/required-checkout-data.type.mjs +0 -0
  58. /package/{esm2022 → esm2020}/services/types/required-checkout-subscription-data.type.mjs +0 -0
  59. /package/{esm2022 → esm2020}/services/types/shipping-methods.type.mjs +0 -0
  60. /package/{esm2022 → esm2020}/types/firebase-app-config.type.mjs +0 -0
  61. /package/{esm2022 → esm2020}/types/index.mjs +0 -0
@@ -1,20 +1,20 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { NgModule, InjectionToken, PLATFORM_ID, Injectable, Inject } from '@angular/core';
3
3
  import * as i1$4 from '@angular/fire/app';
4
- import { FirebaseApp, getApp, initializeApp, provideFirebaseApp } from '@angular/fire/app';
4
+ import { FirebaseApp, provideFirebaseApp, getApp, initializeApp } from '@angular/fire/app';
5
5
  import * as i1$2 from '@infrab4a/connect';
6
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, FirebaseFileUploaderService, CategoryHasuraGraphQLRepository, ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository, ProductReviewsHasuraGraphQLRepository, VariantHasuraGraphQLRepository, FilterOptionHasuraGraphQLRepository, FilterHasuraGraphQLRepository, CategoryCollectionChildrenHasuraGraphQLRepository, WishlistHasuraGraphQLRepository, Where, Shops, CheckoutTypes, CouponTypes, Exclusivities, isNil, NotFoundError, Checkout, pick, LineItem, RoundProductPricesHelper, set, InvalidArgumentError, Category, Wishlist, CheckoutSubscription, Product, RequiredArgumentError, add, Order, UpdateUserImage } from '@infrab4a/connect';
7
7
  import * as i1 from '@angular/fire/auth';
8
- import { Auth, getAuth, provideAuth, getIdToken, authState } from '@angular/fire/auth';
8
+ import { Auth, provideAuth, getAuth, getIdToken, authState } from '@angular/fire/auth';
9
9
  import { isPlatformBrowser, isPlatformServer } from '@angular/common';
10
10
  import * as i1$1 from '@angular/fire/firestore';
11
- import { Firestore, getFirestore, memoryLocalCache, initializeFirestore, provideFirestore, doc, docSnapshots } from '@angular/fire/firestore';
11
+ import { Firestore, provideFirestore, getFirestore, initializeFirestore, memoryLocalCache, docSnapshots, doc } from '@angular/fire/firestore';
12
12
  import * as i2 from '@angular/fire/storage';
13
- import { Storage, getStorage, provideStorage } from '@angular/fire/storage';
14
- import { combineLatest, of, from, throwError, Subject, iif, forkJoin } from 'rxjs';
15
- import { map, catchError, mergeMap, concatMap, tap } from 'rxjs/operators';
13
+ import { Storage, provideStorage, getStorage } from '@angular/fire/storage';
14
+ import { combineLatest, from, of, throwError, Subject, iif, forkJoin } from 'rxjs';
15
+ import { map, mergeMap, catchError, concatMap, tap } from 'rxjs/operators';
16
16
  import cookie from 'js-cookie';
17
- import { __metadata, __decorate } from 'tslib';
17
+ import { __decorate, __metadata } from 'tslib';
18
18
  import { Type } from 'class-transformer';
19
19
  import * as i1$3 from '@angular/common/http';
20
20
 
@@ -27,17 +27,17 @@ class AngularElasticSeachModule {
27
27
  providers: [{ provide: ES_CONFIG, useValue: options }],
28
28
  };
29
29
  }
30
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularElasticSeachModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
31
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularElasticSeachModule }); }
32
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularElasticSeachModule, providers: [
33
- {
34
- provide: ProductsIndex,
35
- useFactory: (configuration) => new ProductsIndex(new AxiosAdapter(configuration)),
36
- deps: [ES_CONFIG],
37
- },
38
- ] }); }
39
30
  }
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularElasticSeachModule, decorators: [{
31
+ AngularElasticSeachModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
32
+ AngularElasticSeachModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule });
33
+ AngularElasticSeachModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule, providers: [
34
+ {
35
+ provide: ProductsIndex,
36
+ useFactory: (configuration) => new ProductsIndex(new AxiosAdapter(configuration)),
37
+ deps: [ES_CONFIG],
38
+ },
39
+ ] });
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule, decorators: [{
41
41
  type: NgModule,
42
42
  args: [{
43
43
  providers: [
@@ -71,54 +71,54 @@ class AngularFirebaseAuthModule {
71
71
  ],
72
72
  };
73
73
  }
74
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirebaseAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
75
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularFirebaseAuthModule, imports: [i1.AuthModule] }); }
76
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirebaseAuthModule, providers: [
77
- {
78
- provide: 'Authentication',
79
- useFactory: (authenticationService, userRepository) => {
80
- return new Authentication(authenticationService, userRepository);
81
- },
82
- deps: ['AuthenticationService', 'UserRepository'],
83
- },
84
- {
85
- provide: 'AuthenticationService',
86
- useFactory: (angularFireAuth) => {
87
- return new AuthenticationFirebaseAuthService(angularFireAuth);
88
- },
89
- deps: [Auth],
90
- },
91
- {
92
- provide: 'Register',
93
- useFactory: (registerService, userRepository) => {
94
- return new Register(registerService, userRepository);
95
- },
96
- deps: ['RegisterService', 'UserRepository'],
97
- },
98
- {
99
- provide: 'RegisterService',
100
- useFactory: (angularFireAuth) => {
101
- return new RegisterFirebaseAuthService(angularFireAuth);
102
- },
103
- deps: [Auth],
104
- },
105
- {
106
- provide: 'SignOut',
107
- useFactory: (authenticationService) => {
108
- return new SignOut(authenticationService);
109
- },
110
- deps: ['AuthenticationService'],
111
- },
112
- {
113
- provide: 'RecoveryPassword',
114
- useFactory: (authenticationService) => {
115
- return new RecoveryPassword(authenticationService);
116
- },
117
- deps: ['AuthenticationService'],
118
- },
119
- ], imports: [provideAuth((injector) => getAuth(injector.get(FirebaseApp)))] }); }
120
74
  }
121
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
75
+ AngularFirebaseAuthModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
76
+ AngularFirebaseAuthModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, imports: [i1.AuthModule] });
77
+ AngularFirebaseAuthModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, providers: [
78
+ {
79
+ provide: 'Authentication',
80
+ useFactory: (authenticationService, userRepository) => {
81
+ return new Authentication(authenticationService, userRepository);
82
+ },
83
+ deps: ['AuthenticationService', 'UserRepository'],
84
+ },
85
+ {
86
+ provide: 'AuthenticationService',
87
+ useFactory: (angularFireAuth) => {
88
+ return new AuthenticationFirebaseAuthService(angularFireAuth);
89
+ },
90
+ deps: [Auth],
91
+ },
92
+ {
93
+ provide: 'Register',
94
+ useFactory: (registerService, userRepository) => {
95
+ return new Register(registerService, userRepository);
96
+ },
97
+ deps: ['RegisterService', 'UserRepository'],
98
+ },
99
+ {
100
+ provide: 'RegisterService',
101
+ useFactory: (angularFireAuth) => {
102
+ return new RegisterFirebaseAuthService(angularFireAuth);
103
+ },
104
+ deps: [Auth],
105
+ },
106
+ {
107
+ provide: 'SignOut',
108
+ useFactory: (authenticationService) => {
109
+ return new SignOut(authenticationService);
110
+ },
111
+ deps: ['AuthenticationService'],
112
+ },
113
+ {
114
+ provide: 'RecoveryPassword',
115
+ useFactory: (authenticationService) => {
116
+ return new RecoveryPassword(authenticationService);
117
+ },
118
+ deps: ['AuthenticationService'],
119
+ },
120
+ ], imports: [provideAuth((injector) => getAuth(injector.get(FirebaseApp)))] });
121
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
122
122
  type: NgModule,
123
123
  args: [{
124
124
  imports: [provideAuth((injector) => getAuth(injector.get(FirebaseApp)))],
@@ -189,243 +189,243 @@ class AngularFirestoreModule {
189
189
  ],
190
190
  };
191
191
  }
192
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
193
- static { thismod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1$1.FirestoreModule, i2.StorageModule] }); }
194
- static { thisinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirestoreModule, providers: [
195
- {
196
- provide: 'FirestoreOptions',
197
- useFactory: (firestore, platformId) => ({
198
- firestore,
199
- interceptors: {
200
- request: (request) => {
201
- if (isPlatformBrowser(platformId))
202
- return request;
203
- const interval = setInterval(() => { }, 100);
204
- request.interval = interval;
192
+ }
193
+ AngularFirestoreModulefac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
194
+ AngularFirestoreModulemod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1$1.FirestoreModule, i2.StorageModule] });
195
+ AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, providers: [
196
+ {
197
+ provide: 'FirestoreOptions',
198
+ useFactory: (firestore, platformId) => ({
199
+ firestore,
200
+ interceptors: {
201
+ request: (request) => {
202
+ if (isPlatformBrowser(platformId))
205
203
  return request;
206
- },
207
- response: (response, request) => {
208
- if (isPlatformBrowser(platformId))
209
- return response;
210
- clearInterval(request.interval);
204
+ const interval = setInterval(() => { }, 100);
205
+ request.interval = interval;
206
+ return request;
207
+ },
208
+ response: (response, request) => {
209
+ if (isPlatformBrowser(platformId))
211
210
  return response;
212
- },
211
+ clearInterval(request.interval);
212
+ return response;
213
213
  },
214
- }),
215
- deps: [Firestore, PLATFORM_ID],
216
- },
217
- {
218
- provide: 'BeautyProfileRepository',
219
- useFactory: (config, userRepository) => {
220
- return new UserBeautyProfileFirestoreRepository(config, userRepository);
221
- },
222
- deps: ['FirestoreOptions', 'UserRepository'],
223
- },
224
- {
225
- provide: 'Buy2WinRepository',
226
- useFactory: (options) => {
227
- return new Buy2WinFirestoreRepository(options);
228
- },
229
- deps: ['FirestoreOptions'],
230
- },
231
- {
232
- provide: CategoryFirestoreRepository,
233
- useFactory: (options) => {
234
- return new CategoryFirestoreRepository(options);
235
- },
236
- deps: ['FirestoreOptions'],
237
- },
238
- {
239
- provide: 'CheckoutRepository',
240
- useFactory: (options) => {
241
- return new CheckoutFirestoreRepository(options);
242
- },
243
- deps: ['FirestoreOptions'],
244
- },
245
- {
246
- provide: 'CheckoutSubscriptionRepository',
247
- useFactory: (options) => {
248
- return new CheckoutSubscriptionFirestoreRepository(options);
249
- },
250
- deps: ['FirestoreOptions'],
251
- },
252
- {
253
- provide: 'CouponRepository',
254
- useFactory: (options) => {
255
- return new CouponFirestoreRepository(options);
256
- },
257
- deps: ['FirestoreOptions'],
258
- },
259
- {
260
- provide: 'CampaignHashtagRepository',
261
- useFactory: (options) => {
262
- return new CampaignHashtagFirestoreRepository(options);
263
- },
264
- deps: ['FirestoreOptions'],
265
- },
266
- {
267
- provide: 'CampaignDashboardRepository',
268
- useFactory: (options) => {
269
- return new CampaignDashboardFirestoreRepository(options);
270
- },
271
- deps: ['FirestoreOptions'],
272
- },
273
- {
274
- provide: 'EditionRepository',
275
- useFactory: (options, subscriptionRepository) => {
276
- return new SubscriptionEditionFirestoreRepository(options, subscriptionRepository);
277
- },
278
- deps: ['FirestoreOptions', 'SubscriptionRepository'],
279
- },
280
- {
281
- provide: 'HomeRepository',
282
- useFactory: (options) => {
283
- return new HomeFirestoreRepository(options);
284
- },
285
- deps: ['FirestoreOptions'],
286
- },
287
- {
288
- provide: 'LeadRepository',
289
- useFactory: (options) => {
290
- return new LeadFirestoreRepository(options);
291
- },
292
- deps: ['FirestoreOptions'],
293
- },
294
- {
295
- provide: 'LegacyOrderRepository',
296
- useFactory: (options) => {
297
- return new LegacyOrderFirestoreRepository(options);
298
- },
299
- deps: ['FirestoreOptions'],
300
- },
301
- {
302
- provide: 'ShopMenuRepository',
303
- useFactory: (options) => {
304
- return new ShopMenuFirestoreRepository(options);
305
- },
306
- deps: ['FirestoreOptions'],
307
- },
308
- {
309
- provide: 'OrderRepository',
310
- useFactory: (options) => {
311
- return new OrderFirestoreRepository(options);
312
- },
313
- deps: ['FirestoreOptions'],
314
- },
315
- {
316
- provide: 'PaymentRepository',
317
- useFactory: (options) => {
318
- return new PaymentFirestoreRepository(options);
319
- },
320
- deps: ['FirestoreOptions'],
321
- },
322
- {
323
- provide: ProductFirestoreRepository,
324
- useFactory: (options) => {
325
- return new ProductFirestoreRepository(options);
326
- },
327
- deps: ['FirestoreOptions'],
328
- },
329
- {
330
- provide: 'ShopSettingsRepository',
331
- useFactory: (options) => {
332
- return new ShopSettingsFirestoreRepository(options);
333
- },
334
- deps: ['FirestoreOptions'],
335
- },
336
- {
337
- provide: 'SubscriptionPaymentRepository',
338
- useFactory: (options, subscriptionRepository) => {
339
- return new SubscriptionPaymentFirestoreRepository(options, subscriptionRepository);
340
- },
341
- deps: ['FirestoreOptions', 'SubscriptionRepository'],
342
- },
343
- {
344
- provide: 'SubscriptionPlanRepository',
345
- useFactory: (options) => {
346
- return new SubscriptionPlanFirestoreRepository(options);
347
- },
348
- deps: ['FirestoreOptions'],
349
- },
350
- {
351
- provide: 'SubscriptionProductRepository',
352
- useFactory: (options) => {
353
- return new SubscriptionProductFirestoreRepository(options);
354
- },
355
- deps: ['FirestoreOptions'],
356
- },
357
- {
358
- provide: 'SubscriptionRepository',
359
- useFactory: (options) => {
360
- return new SubscriptionFirestoreRepository(options);
361
214
  },
362
- deps: ['FirestoreOptions'],
363
- },
364
- {
365
- provide: 'UserRepository',
366
- useFactory: (options) => {
367
- return new UserFirestoreRepository(options);
368
- },
369
- deps: ['FirestoreOptions'],
370
- },
371
- {
372
- provide: 'UserAddressRepository',
373
- useFactory: (options, userRepository) => {
374
- return new UserAddressFirestoreRepository(options, userRepository);
375
- },
376
- deps: ['FirestoreOptions', 'UserRepository'],
377
- },
378
- {
379
- provide: 'UserPaymentMethodRepository',
380
- useFactory: (options, userRepository) => {
381
- return new UserPaymentMethodFirestoreRepository(options, userRepository);
382
- },
383
- deps: ['FirestoreOptions', 'UserRepository'],
384
- },
385
- {
386
- provide: 'SubscriptionMaterializationRepository',
387
- useFactory: (options) => {
388
- return new SubscriptionMaterializationFirestoreRepository(options);
389
- },
390
- deps: ['FirestoreOptions'],
391
- },
392
- {
393
- provide: 'SubscriptionSummaryRepository',
394
- useFactory: (options) => {
395
- return new SubscriptionSummaryFirestoreRepository(options);
396
- },
397
- deps: ['FirestoreOptions'],
398
- },
399
- {
400
- provide: ProductVariantFirestoreRepository,
401
- useFactory: (options, productRepository) => {
402
- return new ProductVariantFirestoreRepository(options, productRepository);
403
- },
404
- deps: ['FirestoreOptions', ProductFirestoreRepository],
405
- },
406
- {
407
- provide: 'FileUploaderService',
408
- useFactory: (storage, baseUrl) => {
409
- return new FirebaseFileUploaderService(storage, baseUrl);
410
- },
411
- deps: [Storage, STORAGE_BASE_URL],
412
- },
413
- ], imports: [AngularElasticSeachModule,
414
- provideFirestore((injector) => {
415
- const platformId = injector.get(PLATFORM_ID);
416
- if (isPlatformServer(platformId))
417
- return getFirestore(injector.get(FirebaseApp));
418
- if (!MobileOperationSystemCheckerHelper.isAppleDevice())
419
- return getFirestore(injector.get(FirebaseApp));
420
- const firestore = initializeFirestore(injector.get(FirebaseApp), {
421
- experimentalForceLongPolling: true,
422
- localCache: memoryLocalCache(),
423
- });
424
- return firestore;
425
215
  }),
426
- provideStorage(() => getStorage())] }); }
427
- }
428
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirestoreModule, decorators: [{
216
+ deps: [Firestore, PLATFORM_ID],
217
+ },
218
+ {
219
+ provide: 'BeautyProfileRepository',
220
+ useFactory: (config, userRepository) => {
221
+ return new UserBeautyProfileFirestoreRepository(config, userRepository);
222
+ },
223
+ deps: ['FirestoreOptions', 'UserRepository'],
224
+ },
225
+ {
226
+ provide: 'Buy2WinRepository',
227
+ useFactory: (options) => {
228
+ return new Buy2WinFirestoreRepository(options);
229
+ },
230
+ deps: ['FirestoreOptions'],
231
+ },
232
+ {
233
+ provide: CategoryFirestoreRepository,
234
+ useFactory: (options) => {
235
+ return new CategoryFirestoreRepository(options);
236
+ },
237
+ deps: ['FirestoreOptions'],
238
+ },
239
+ {
240
+ provide: 'CheckoutRepository',
241
+ useFactory: (options) => {
242
+ return new CheckoutFirestoreRepository(options);
243
+ },
244
+ deps: ['FirestoreOptions'],
245
+ },
246
+ {
247
+ provide: 'CheckoutSubscriptionRepository',
248
+ useFactory: (options) => {
249
+ return new CheckoutSubscriptionFirestoreRepository(options);
250
+ },
251
+ deps: ['FirestoreOptions'],
252
+ },
253
+ {
254
+ provide: 'CouponRepository',
255
+ useFactory: (options) => {
256
+ return new CouponFirestoreRepository(options);
257
+ },
258
+ deps: ['FirestoreOptions'],
259
+ },
260
+ {
261
+ provide: 'CampaignHashtagRepository',
262
+ useFactory: (options) => {
263
+ return new CampaignHashtagFirestoreRepository(options);
264
+ },
265
+ deps: ['FirestoreOptions'],
266
+ },
267
+ {
268
+ provide: 'CampaignDashboardRepository',
269
+ useFactory: (options) => {
270
+ return new CampaignDashboardFirestoreRepository(options);
271
+ },
272
+ deps: ['FirestoreOptions'],
273
+ },
274
+ {
275
+ provide: 'EditionRepository',
276
+ useFactory: (options, subscriptionRepository) => {
277
+ return new SubscriptionEditionFirestoreRepository(options, subscriptionRepository);
278
+ },
279
+ deps: ['FirestoreOptions', 'SubscriptionRepository'],
280
+ },
281
+ {
282
+ provide: 'HomeRepository',
283
+ useFactory: (options) => {
284
+ return new HomeFirestoreRepository(options);
285
+ },
286
+ deps: ['FirestoreOptions'],
287
+ },
288
+ {
289
+ provide: 'LeadRepository',
290
+ useFactory: (options) => {
291
+ return new LeadFirestoreRepository(options);
292
+ },
293
+ deps: ['FirestoreOptions'],
294
+ },
295
+ {
296
+ provide: 'LegacyOrderRepository',
297
+ useFactory: (options) => {
298
+ return new LegacyOrderFirestoreRepository(options);
299
+ },
300
+ deps: ['FirestoreOptions'],
301
+ },
302
+ {
303
+ provide: 'ShopMenuRepository',
304
+ useFactory: (options) => {
305
+ return new ShopMenuFirestoreRepository(options);
306
+ },
307
+ deps: ['FirestoreOptions'],
308
+ },
309
+ {
310
+ provide: 'OrderRepository',
311
+ useFactory: (options) => {
312
+ return new OrderFirestoreRepository(options);
313
+ },
314
+ deps: ['FirestoreOptions'],
315
+ },
316
+ {
317
+ provide: 'PaymentRepository',
318
+ useFactory: (options) => {
319
+ return new PaymentFirestoreRepository(options);
320
+ },
321
+ deps: ['FirestoreOptions'],
322
+ },
323
+ {
324
+ provide: ProductFirestoreRepository,
325
+ useFactory: (options) => {
326
+ return new ProductFirestoreRepository(options);
327
+ },
328
+ deps: ['FirestoreOptions'],
329
+ },
330
+ {
331
+ provide: 'ShopSettingsRepository',
332
+ useFactory: (options) => {
333
+ return new ShopSettingsFirestoreRepository(options);
334
+ },
335
+ deps: ['FirestoreOptions'],
336
+ },
337
+ {
338
+ provide: 'SubscriptionPaymentRepository',
339
+ useFactory: (options, subscriptionRepository) => {
340
+ return new SubscriptionPaymentFirestoreRepository(options, subscriptionRepository);
341
+ },
342
+ deps: ['FirestoreOptions', 'SubscriptionRepository'],
343
+ },
344
+ {
345
+ provide: 'SubscriptionPlanRepository',
346
+ useFactory: (options) => {
347
+ return new SubscriptionPlanFirestoreRepository(options);
348
+ },
349
+ deps: ['FirestoreOptions'],
350
+ },
351
+ {
352
+ provide: 'SubscriptionProductRepository',
353
+ useFactory: (options) => {
354
+ return new SubscriptionProductFirestoreRepository(options);
355
+ },
356
+ deps: ['FirestoreOptions'],
357
+ },
358
+ {
359
+ provide: 'SubscriptionRepository',
360
+ useFactory: (options) => {
361
+ return new SubscriptionFirestoreRepository(options);
362
+ },
363
+ deps: ['FirestoreOptions'],
364
+ },
365
+ {
366
+ provide: 'UserRepository',
367
+ useFactory: (options) => {
368
+ return new UserFirestoreRepository(options);
369
+ },
370
+ deps: ['FirestoreOptions'],
371
+ },
372
+ {
373
+ provide: 'UserAddressRepository',
374
+ useFactory: (options, userRepository) => {
375
+ return new UserAddressFirestoreRepository(options, userRepository);
376
+ },
377
+ deps: ['FirestoreOptions', 'UserRepository'],
378
+ },
379
+ {
380
+ provide: 'UserPaymentMethodRepository',
381
+ useFactory: (options, userRepository) => {
382
+ return new UserPaymentMethodFirestoreRepository(options, userRepository);
383
+ },
384
+ deps: ['FirestoreOptions', 'UserRepository'],
385
+ },
386
+ {
387
+ provide: 'SubscriptionMaterializationRepository',
388
+ useFactory: (options) => {
389
+ return new SubscriptionMaterializationFirestoreRepository(options);
390
+ },
391
+ deps: ['FirestoreOptions'],
392
+ },
393
+ {
394
+ provide: 'SubscriptionSummaryRepository',
395
+ useFactory: (options) => {
396
+ return new SubscriptionSummaryFirestoreRepository(options);
397
+ },
398
+ deps: ['FirestoreOptions'],
399
+ },
400
+ {
401
+ provide: ProductVariantFirestoreRepository,
402
+ useFactory: (options, productRepository) => {
403
+ return new ProductVariantFirestoreRepository(options, productRepository);
404
+ },
405
+ deps: ['FirestoreOptions', ProductFirestoreRepository],
406
+ },
407
+ {
408
+ provide: 'FileUploaderService',
409
+ useFactory: (storage, baseUrl) => {
410
+ return new FirebaseFileUploaderService(storage, baseUrl);
411
+ },
412
+ deps: [Storage, STORAGE_BASE_URL],
413
+ },
414
+ ], imports: [AngularElasticSeachModule,
415
+ provideFirestore((injector) => {
416
+ const platformId = injector.get(PLATFORM_ID);
417
+ if (isPlatformServer(platformId))
418
+ return getFirestore(injector.get(FirebaseApp));
419
+ if (!MobileOperationSystemCheckerHelper.isAppleDevice())
420
+ return getFirestore(injector.get(FirebaseApp));
421
+ const firestore = initializeFirestore(injector.get(FirebaseApp), {
422
+ experimentalForceLongPolling: true,
423
+ localCache: memoryLocalCache(),
424
+ });
425
+ return firestore;
426
+ }),
427
+ provideStorage(() => getStorage())] });
428
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, decorators: [{
429
429
  type: NgModule,
430
430
  args: [{
431
431
  imports: [
@@ -674,132 +674,132 @@ class AngularHasuraGraphQLModule {
674
674
  providers: [{ provide: HASURA_OPTIONS, useValue: options }],
675
675
  };
676
676
  }
677
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularHasuraGraphQLModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
678
- static { thismod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularHasuraGraphQLModule }); }
679
- static { thisinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularHasuraGraphQLModule, providers: [
680
- {
681
- provide: 'HasuraConfig',
682
- useFactory: (options, platformId) => ({
683
- endpoint: options.endpoint,
684
- authOptions: options.credentials,
685
- interceptors: {
686
- request: (request) => {
687
- if (isPlatformBrowser(platformId))
688
- return request;
689
- const interval = setInterval(() => { }, 100);
690
- request.interval = interval;
677
+ }
678
+ AngularHasuraGraphQLModulefac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
679
+ AngularHasuraGraphQLModulemod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule });
680
+ AngularHasuraGraphQLModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, providers: [
681
+ {
682
+ provide: 'HasuraConfig',
683
+ useFactory: (options, platformId) => ({
684
+ endpoint: options.endpoint,
685
+ authOptions: options.credentials,
686
+ interceptors: {
687
+ request: (request) => {
688
+ if (isPlatformBrowser(platformId))
691
689
  return request;
692
- },
693
- response: (response, request) => {
694
- if (isPlatformBrowser(platformId))
695
- return response;
696
- clearInterval(request.interval);
690
+ const interval = setInterval(() => { }, 100);
691
+ request.interval = interval;
692
+ return request;
693
+ },
694
+ response: (response, request) => {
695
+ if (isPlatformBrowser(platformId))
697
696
  return response;
698
- },
697
+ clearInterval(request.interval);
698
+ return response;
699
699
  },
700
- }),
701
- deps: [HASURA_OPTIONS, PLATFORM_ID],
702
- },
703
- {
704
- provide: 'CategoryRepository',
705
- useExisting: CategoryHasuraGraphQLRepository,
706
- },
707
- {
708
- provide: CategoryHasuraGraphQLRepository,
709
- useFactory: (options, productRepository, categoryFilterRepository) => {
710
- return new CategoryHasuraGraphQLRepository(options, productRepository, categoryFilterRepository);
711
- },
712
- deps: ['HasuraConfig', ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
713
- },
714
- {
715
- provide: 'ProductRepository',
716
- useExisting: ProductHasuraGraphQLRepository,
717
- },
718
- {
719
- provide: ProductHasuraGraphQLRepository,
720
- useFactory: (hasuraConfig) => {
721
- return new ProductHasuraGraphQLRepository(hasuraConfig);
722
- },
723
- deps: ['HasuraConfig'],
724
- },
725
- {
726
- provide: 'ProductReviewsRepository',
727
- useExisting: ProductReviewsHasuraGraphQLRepository,
728
- },
729
- {
730
- provide: ProductReviewsHasuraGraphQLRepository,
731
- useFactory: (hasuraConfig) => {
732
- return new ProductReviewsHasuraGraphQLRepository(hasuraConfig);
733
- },
734
- deps: ['HasuraConfig'],
735
- },
736
- {
737
- provide: 'VariantRepository',
738
- useExisting: VariantHasuraGraphQLRepository,
739
- },
740
- {
741
- provide: VariantHasuraGraphQLRepository,
742
- useFactory: (hasuraConfig) => {
743
- return new VariantHasuraGraphQLRepository(hasuraConfig);
744
- },
745
- deps: ['HasuraConfig'],
746
- },
747
- {
748
- provide: 'CategoryFilterRepository',
749
- useExisting: CategoryFilterHasuraGraphQLRepository,
750
- },
751
- {
752
- provide: CategoryFilterHasuraGraphQLRepository,
753
- useFactory: (options) => {
754
- return new CategoryFilterHasuraGraphQLRepository(options);
755
700
  },
756
- deps: ['HasuraConfig'],
757
- },
758
- {
759
- provide: 'FilterOptionRepository',
760
- useExisting: FilterOptionHasuraGraphQLRepository,
761
- },
762
- {
763
- provide: FilterOptionHasuraGraphQLRepository,
764
- useFactory: (options) => {
765
- return new FilterOptionHasuraGraphQLRepository(options);
766
- },
767
- deps: ['HasuraConfig'],
768
- },
769
- {
770
- provide: 'FilterRepository',
771
- useExisting: FilterHasuraGraphQLRepository,
772
- },
773
- {
774
- provide: FilterHasuraGraphQLRepository,
775
- useFactory: (options, filterOptionRepository, categoryFilterRepository) => {
776
- return new FilterHasuraGraphQLRepository(options, filterOptionRepository, categoryFilterRepository);
777
- },
778
- deps: ['HasuraConfig', FilterOptionHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
779
- },
780
- {
781
- provide: CategoryCollectionChildrenHasuraGraphQLRepository,
782
- useFactory: (options) => new CategoryCollectionChildrenHasuraGraphQLRepository(options),
783
- deps: ['HasuraConfig'],
784
- },
785
- {
786
- provide: 'CategoryCollectionChildrenRepository',
787
- useExisting: CategoryCollectionChildrenHasuraGraphQLRepository,
788
- },
789
- {
790
- provide: WishlistHasuraGraphQLRepository,
791
- useFactory: (options, categoryFilterRepository) => {
792
- return new WishlistHasuraGraphQLRepository(options, categoryFilterRepository);
793
- },
794
- deps: ['HasuraConfig', CategoryFilterHasuraGraphQLRepository],
795
- },
796
- {
797
- provide: 'WishlistRepository',
798
- useExisting: WishlistHasuraGraphQLRepository,
799
- },
800
- ] }); }
801
- }
802
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularHasuraGraphQLModule, decorators: [{
701
+ }),
702
+ deps: [HASURA_OPTIONS, PLATFORM_ID],
703
+ },
704
+ {
705
+ provide: 'CategoryRepository',
706
+ useExisting: CategoryHasuraGraphQLRepository,
707
+ },
708
+ {
709
+ provide: CategoryHasuraGraphQLRepository,
710
+ useFactory: (options, productRepository, categoryFilterRepository) => {
711
+ return new CategoryHasuraGraphQLRepository(options, productRepository, categoryFilterRepository);
712
+ },
713
+ deps: ['HasuraConfig', ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
714
+ },
715
+ {
716
+ provide: 'ProductRepository',
717
+ useExisting: ProductHasuraGraphQLRepository,
718
+ },
719
+ {
720
+ provide: ProductHasuraGraphQLRepository,
721
+ useFactory: (hasuraConfig) => {
722
+ return new ProductHasuraGraphQLRepository(hasuraConfig);
723
+ },
724
+ deps: ['HasuraConfig'],
725
+ },
726
+ {
727
+ provide: 'ProductReviewsRepository',
728
+ useExisting: ProductReviewsHasuraGraphQLRepository,
729
+ },
730
+ {
731
+ provide: ProductReviewsHasuraGraphQLRepository,
732
+ useFactory: (hasuraConfig) => {
733
+ return new ProductReviewsHasuraGraphQLRepository(hasuraConfig);
734
+ },
735
+ deps: ['HasuraConfig'],
736
+ },
737
+ {
738
+ provide: 'VariantRepository',
739
+ useExisting: VariantHasuraGraphQLRepository,
740
+ },
741
+ {
742
+ provide: VariantHasuraGraphQLRepository,
743
+ useFactory: (hasuraConfig) => {
744
+ return new VariantHasuraGraphQLRepository(hasuraConfig);
745
+ },
746
+ deps: ['HasuraConfig'],
747
+ },
748
+ {
749
+ provide: 'CategoryFilterRepository',
750
+ useExisting: CategoryFilterHasuraGraphQLRepository,
751
+ },
752
+ {
753
+ provide: CategoryFilterHasuraGraphQLRepository,
754
+ useFactory: (options) => {
755
+ return new CategoryFilterHasuraGraphQLRepository(options);
756
+ },
757
+ deps: ['HasuraConfig'],
758
+ },
759
+ {
760
+ provide: 'FilterOptionRepository',
761
+ useExisting: FilterOptionHasuraGraphQLRepository,
762
+ },
763
+ {
764
+ provide: FilterOptionHasuraGraphQLRepository,
765
+ useFactory: (options) => {
766
+ return new FilterOptionHasuraGraphQLRepository(options);
767
+ },
768
+ deps: ['HasuraConfig'],
769
+ },
770
+ {
771
+ provide: 'FilterRepository',
772
+ useExisting: FilterHasuraGraphQLRepository,
773
+ },
774
+ {
775
+ provide: FilterHasuraGraphQLRepository,
776
+ useFactory: (options, filterOptionRepository, categoryFilterRepository) => {
777
+ return new FilterHasuraGraphQLRepository(options, filterOptionRepository, categoryFilterRepository);
778
+ },
779
+ deps: ['HasuraConfig', FilterOptionHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
780
+ },
781
+ {
782
+ provide: CategoryCollectionChildrenHasuraGraphQLRepository,
783
+ useFactory: (options) => new CategoryCollectionChildrenHasuraGraphQLRepository(options),
784
+ deps: ['HasuraConfig'],
785
+ },
786
+ {
787
+ provide: 'CategoryCollectionChildrenRepository',
788
+ useExisting: CategoryCollectionChildrenHasuraGraphQLRepository,
789
+ },
790
+ {
791
+ provide: WishlistHasuraGraphQLRepository,
792
+ useFactory: (options, categoryFilterRepository) => {
793
+ return new WishlistHasuraGraphQLRepository(options, categoryFilterRepository);
794
+ },
795
+ deps: ['HasuraConfig', CategoryFilterHasuraGraphQLRepository],
796
+ },
797
+ {
798
+ provide: 'WishlistRepository',
799
+ useExisting: WishlistHasuraGraphQLRepository,
800
+ },
801
+ ] });
802
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, decorators: [{
803
803
  type: NgModule,
804
804
  args: [{
805
805
  providers: [
@@ -948,15 +948,15 @@ class AuthService {
948
948
  getFireUser() {
949
949
  return authState(this.angularFireAuth).pipe(catchError(() => of(null)));
950
950
  }
951
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AuthService, deps: [{ token: i1.Auth }, { token: 'UserRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
952
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AuthService }); }
953
951
  }
954
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AuthService, decorators: [{
952
+ 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 });
953
+ AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService });
954
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, decorators: [{
955
955
  type: Injectable
956
- }], ctorParameters: () => [{ type: i1.Auth }, { type: undefined, decorators: [{
956
+ }], ctorParameters: function () { return [{ type: i1.Auth }, { type: undefined, decorators: [{
957
957
  type: Inject,
958
958
  args: ['UserRepository']
959
- }] }] });
959
+ }] }]; } });
960
960
 
961
961
  class CouponService {
962
962
  constructor(couponRepository, defaultShop, orderRepository, categoryRepository) {
@@ -1164,15 +1164,15 @@ class CouponService {
1164
1164
  }
1165
1165
  return couponUseLimits;
1166
1166
  }
1167
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CouponService, deps: [{ token: 'CouponRepository' }, { token: DEFAULT_SHOP }, { token: 'OrderRepository' }, { token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
1168
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CouponService, providedIn: 'root' }); }
1169
1167
  }
1170
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CouponService, decorators: [{
1168
+ 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 });
1169
+ CouponService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, providedIn: 'root' });
1170
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, decorators: [{
1171
1171
  type: Injectable,
1172
1172
  args: [{
1173
1173
  providedIn: 'root',
1174
1174
  }]
1175
- }], ctorParameters: () => [{ type: undefined, decorators: [{
1175
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1176
1176
  type: Inject,
1177
1177
  args: ['CouponRepository']
1178
1178
  }] }, { type: i1$2.Shops, decorators: [{
@@ -1184,7 +1184,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
1184
1184
  }] }, { type: undefined, decorators: [{
1185
1185
  type: Inject,
1186
1186
  args: ['CategoryRepository']
1187
- }] }] });
1187
+ }] }]; } });
1188
1188
 
1189
1189
  class CheckoutService {
1190
1190
  constructor(couponService, checkoutRepository, orderRepository, userRepository, defaultShop) {
@@ -1228,12 +1228,12 @@ class CheckoutService {
1228
1228
  cookie.set('checkoutId', checkout.id);
1229
1229
  return checkout;
1230
1230
  }
1231
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutService, deps: [{ token: CouponService }, { token: 'CheckoutRepository' }, { token: 'OrderRepository' }, { token: 'UserRepository' }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
1232
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutService }); }
1233
1231
  }
1234
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutService, decorators: [{
1232
+ 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 });
1233
+ CheckoutService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutService });
1234
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutService, decorators: [{
1235
1235
  type: Injectable
1236
- }], ctorParameters: () => [{ type: CouponService }, { type: undefined, decorators: [{
1236
+ }], ctorParameters: function () { return [{ type: CouponService }, { type: undefined, decorators: [{
1237
1237
  type: Inject,
1238
1238
  args: ['CheckoutRepository']
1239
1239
  }] }, { type: undefined, decorators: [{
@@ -1245,7 +1245,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
1245
1245
  }] }, { type: i1$2.Shops, decorators: [{
1246
1246
  type: Inject,
1247
1247
  args: [DEFAULT_SHOP]
1248
- }] }] });
1248
+ }] }]; } });
1249
1249
 
1250
1250
  class CartService {
1251
1251
  constructor(authService, checkoutService, defaultShop, productRepository, categoryRepository, variantRepository, buy2WinRepository) {
@@ -1495,12 +1495,12 @@ class CartService {
1495
1495
  });
1496
1496
  });
1497
1497
  }
1498
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CartService, deps: [{ token: AuthService }, { token: CheckoutService }, { token: DEFAULT_SHOP }, { token: 'ProductRepository' }, { token: 'CategoryRepository' }, { token: 'VariantRepository' }, { token: 'Buy2WinRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
1499
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CartService }); }
1500
1498
  }
1501
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CartService, decorators: [{
1499
+ 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 });
1500
+ CartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService });
1501
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, decorators: [{
1502
1502
  type: Injectable
1503
- }], ctorParameters: () => [{ type: AuthService }, { type: CheckoutService }, { type: i1$2.Shops, decorators: [{
1503
+ }], ctorParameters: function () { return [{ type: AuthService }, { type: CheckoutService }, { type: i1$2.Shops, decorators: [{
1504
1504
  type: Inject,
1505
1505
  args: [DEFAULT_SHOP]
1506
1506
  }] }, { type: undefined, decorators: [{
@@ -1515,7 +1515,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
1515
1515
  }] }, { type: i1$2.Buy2WinFirestoreRepository, decorators: [{
1516
1516
  type: Inject,
1517
1517
  args: ['Buy2WinRepository']
1518
- }] }] });
1518
+ }] }]; } });
1519
1519
 
1520
1520
  class NewCategoryStructureAdapter {
1521
1521
  constructor(categoryRepository) {
@@ -1545,15 +1545,15 @@ class NewCategoryStructureAdapter {
1545
1545
  ? this.categoryRepository.get({ id: category.id })
1546
1546
  : category;
1547
1547
  }
1548
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NewCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
1549
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NewCategoryStructureAdapter }); }
1550
1548
  }
1551
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NewCategoryStructureAdapter, decorators: [{
1549
+ NewCategoryStructureAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
1550
+ NewCategoryStructureAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter });
1551
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter, decorators: [{
1552
1552
  type: Injectable
1553
- }], ctorParameters: () => [{ type: undefined, decorators: [{
1553
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1554
1554
  type: Inject,
1555
1555
  args: ['CategoryRepository']
1556
- }] }] });
1556
+ }] }]; } });
1557
1557
 
1558
1558
  class OldCategoryStructureAdapter {
1559
1559
  constructor(categoryRepository) {
@@ -1565,15 +1565,15 @@ class OldCategoryStructureAdapter {
1565
1565
  : await this.categoryRepository.get({ id: category.id }).then((categoryFound) => categoryFound.products);
1566
1566
  return { id: { operator: Where.IN, value: productsIds } };
1567
1567
  }
1568
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OldCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
1569
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OldCategoryStructureAdapter }); }
1570
1568
  }
1571
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OldCategoryStructureAdapter, decorators: [{
1569
+ OldCategoryStructureAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
1570
+ OldCategoryStructureAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter });
1571
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter, decorators: [{
1572
1572
  type: Injectable
1573
- }], ctorParameters: () => [{ type: undefined, decorators: [{
1573
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1574
1574
  type: Inject,
1575
1575
  args: ['CategoryRepository']
1576
- }] }] });
1576
+ }] }]; } });
1577
1577
 
1578
1578
  class CatalogService {
1579
1579
  constructor(productRepository, categoryRepository, categoryStructureAdapter, shop, productIndex) {
@@ -1736,12 +1736,12 @@ class CatalogService {
1736
1736
  return [...new Set(sorted.map(({ _source }) => _source.id))];
1737
1737
  }));
1738
1738
  }
1739
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogService, deps: [{ token: 'ProductRepository' }, { token: 'CategoryRepository' }, { token: CATEGORY_STRUCTURE }, { token: DEFAULT_SHOP }, { token: i1$2.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable }); }
1740
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogService }); }
1741
1739
  }
1742
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogService, decorators: [{
1740
+ CatalogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, deps: [{ token: 'ProductRepository' }, { token: 'CategoryRepository' }, { token: CATEGORY_STRUCTURE }, { token: DEFAULT_SHOP }, { token: i1$2.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable });
1741
+ CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService });
1742
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
1743
1743
  type: Injectable
1744
- }], ctorParameters: () => [{ type: undefined, decorators: [{
1744
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1745
1745
  type: Inject,
1746
1746
  args: ['ProductRepository']
1747
1747
  }] }, { type: undefined, decorators: [{
@@ -1753,7 +1753,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
1753
1753
  }] }, { type: i1$2.Shops, decorators: [{
1754
1754
  type: Inject,
1755
1755
  args: [DEFAULT_SHOP]
1756
- }] }, { type: i1$2.ProductsIndex }] });
1756
+ }] }, { type: i1$2.ProductsIndex }]; } });
1757
1757
 
1758
1758
  class CategoryService {
1759
1759
  constructor(productRepository, categoryRepository, categoryFilterRepository, categoryStructureAdapter, shop) {
@@ -1763,15 +1763,15 @@ class CategoryService {
1763
1763
  this.categoryStructureAdapter = categoryStructureAdapter;
1764
1764
  this.shop = shop;
1765
1765
  }
1766
- async fetchBrands(category, mainGender) {
1766
+ async fetchBrands(category, options) {
1767
1767
  const brands = await this.productRepository
1768
1768
  .findCatalog({
1769
1769
  filters: await this.categoryStructureAdapter.buildProductFilterByCategory(category),
1770
1770
  fields: ['brand'],
1771
- }, mainGender || this.shop === Shops.MENSMARKET ? 'male' : 'female')
1771
+ }, options?.mainGender || this.shop === Shops.MENSMARKET ? 'male' : 'female')
1772
1772
  .then(({ data }) => Object.keys(data.map((product) => product.brand).reduce((brands, brand) => ({ ...brands, [brand]: true }), {})));
1773
1773
  return this.categoryRepository
1774
- .find({ filters: { brandCategory: true, shop: this.shop }, orderBy: { name: 'asc' } })
1774
+ .find({ filters: { brandCategory: true, shop: options?.shop || this.shop }, orderBy: { name: 'asc' } })
1775
1775
  .then(({ data }) => data.filter((category) => brands.includes(category.conditions.brand)));
1776
1776
  }
1777
1777
  async fetchFilterOptions(category) {
@@ -1779,12 +1779,12 @@ class CategoryService {
1779
1779
  .find({ filters: { categoryId: +category.id } })
1780
1780
  .then(({ data }) => data.map((categoryFilter) => categoryFilter.filter));
1781
1781
  }
1782
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryService, deps: [{ token: 'ProductRepository' }, { token: 'CategoryRepository' }, { token: 'CategoryFilterRepository' }, { token: CATEGORY_STRUCTURE }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
1783
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryService }); }
1784
1782
  }
1785
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryService, decorators: [{
1783
+ 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 });
1784
+ CategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService });
1785
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService, decorators: [{
1786
1786
  type: Injectable
1787
- }], ctorParameters: () => [{ type: undefined, decorators: [{
1787
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1788
1788
  type: Inject,
1789
1789
  args: ['ProductRepository']
1790
1790
  }] }, { type: undefined, decorators: [{
@@ -1799,7 +1799,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
1799
1799
  }] }, { type: i1$2.Shops, decorators: [{
1800
1800
  type: Inject,
1801
1801
  args: [DEFAULT_SHOP]
1802
- }] }] });
1802
+ }] }]; } });
1803
1803
 
1804
1804
  var ProductSorts;
1805
1805
  (function (ProductSorts) {
@@ -1904,12 +1904,12 @@ class WishlistService {
1904
1904
  }
1905
1905
  return wishlist;
1906
1906
  }
1907
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: WishlistService, deps: [{ token: 'WishlistRepository' }, { token: DEFAULT_SHOP }, { token: 'ProductRepository' }, { token: 'CategoryFilterRepository' }, { token: 'CategoryRepository' }, { token: i1$2.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable }); }
1908
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: WishlistService }); }
1909
1907
  }
1910
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: WishlistService, decorators: [{
1908
+ 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: 'CategoryRepository' }, { token: i1$2.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable });
1909
+ WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
1910
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
1911
1911
  type: Injectable
1912
- }], ctorParameters: () => [{ type: undefined, decorators: [{
1912
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1913
1913
  type: Inject,
1914
1914
  args: ['WishlistRepository']
1915
1915
  }] }, { type: i1$2.Shops, decorators: [{
@@ -1924,7 +1924,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
1924
1924
  }] }, { type: undefined, decorators: [{
1925
1925
  type: Inject,
1926
1926
  args: ['CategoryRepository']
1927
- }] }, { type: i1$2.ProductsIndex }] });
1927
+ }] }, { type: i1$2.ProductsIndex }]; } });
1928
1928
 
1929
1929
  class CheckoutSubscriptionService {
1930
1930
  constructor(checkoutSubscriptionRepository, subscriptionRepository, couponService) {
@@ -1958,18 +1958,18 @@ class CheckoutSubscriptionService {
1958
1958
  calcDiscountSubscription(coupon) {
1959
1959
  return this.getCheckoutSubscription().pipe(concatMap((checkout) => this.couponService.calcDiscountSubscription(coupon, checkout).pipe()));
1960
1960
  }
1961
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutSubscriptionService, deps: [{ token: 'CheckoutSubscriptionRepository' }, { token: 'SubscriptionRepository' }, { token: CouponService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1962
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutSubscriptionService }); }
1963
1961
  }
1964
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutSubscriptionService, decorators: [{
1962
+ 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 });
1963
+ CheckoutSubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService });
1964
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService, decorators: [{
1965
1965
  type: Injectable
1966
- }], ctorParameters: () => [{ type: undefined, decorators: [{
1966
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1967
1967
  type: Inject,
1968
1968
  args: ['CheckoutSubscriptionRepository']
1969
1969
  }] }, { type: undefined, decorators: [{
1970
1970
  type: Inject,
1971
1971
  args: ['SubscriptionRepository']
1972
- }] }, { type: CouponService }] });
1972
+ }] }, { type: CouponService }]; } });
1973
1973
 
1974
1974
  class UtilHelper {
1975
1975
  static createSlug(name) {
@@ -2088,12 +2088,12 @@ class HomeShopService {
2088
2088
  get gender() {
2089
2089
  return this.homeId === 'mens_market' ? 'masculino' : undefined;
2090
2090
  }
2091
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: HomeShopService, deps: [{ token: 'CategoryRepository' }, { token: 'HomeRepository' }, { token: 'ProductRepository' }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
2092
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: HomeShopService }); }
2093
2091
  }
2094
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: HomeShopService, decorators: [{
2092
+ 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 });
2093
+ HomeShopService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService });
2094
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService, decorators: [{
2095
2095
  type: Injectable
2096
- }], ctorParameters: () => [{ type: undefined, decorators: [{
2096
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2097
2097
  type: Inject,
2098
2098
  args: ['CategoryRepository']
2099
2099
  }] }, { type: undefined, decorators: [{
@@ -2105,7 +2105,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
2105
2105
  }] }, { type: i1$2.Shops, decorators: [{
2106
2106
  type: Inject,
2107
2107
  args: [DEFAULT_SHOP]
2108
- }] }] });
2108
+ }] }]; } });
2109
2109
 
2110
2110
  class OrderService {
2111
2111
  constructor(angularFirestore, orderRepository) {
@@ -2119,15 +2119,15 @@ class OrderService {
2119
2119
  .subscribe((doc) => this.orderSubject.next(doc));
2120
2120
  return this.orderSubject;
2121
2121
  }
2122
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OrderService, deps: [{ token: i1$1.Firestore }, { token: 'OrderRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
2123
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OrderService }); }
2124
2122
  }
2125
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OrderService, decorators: [{
2123
+ 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 });
2124
+ OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService });
2125
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
2126
2126
  type: Injectable
2127
- }], ctorParameters: () => [{ type: i1$1.Firestore }, { type: i1$2.OrderFirestoreRepository, decorators: [{
2127
+ }], ctorParameters: function () { return [{ type: i1$1.Firestore }, { type: i1$2.OrderFirestoreRepository, decorators: [{
2128
2128
  type: Inject,
2129
2129
  args: ['OrderRepository']
2130
- }] }] });
2130
+ }] }]; } });
2131
2131
 
2132
2132
  class ShippingService {
2133
2133
  constructor(http, apiUrl, homeService) {
@@ -2205,15 +2205,15 @@ class ShippingService {
2205
2205
  }
2206
2206
  return false;
2207
2207
  }
2208
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ShippingService, deps: [{ token: i1$3.HttpClient }, { token: BACKEND_URL }, { token: HomeShopService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2209
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ShippingService }); }
2210
2208
  }
2211
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ShippingService, decorators: [{
2209
+ 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 });
2210
+ ShippingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService });
2211
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, decorators: [{
2212
2212
  type: Injectable
2213
- }], ctorParameters: () => [{ type: i1$3.HttpClient }, { type: undefined, decorators: [{
2213
+ }], ctorParameters: function () { return [{ type: i1$3.HttpClient }, { type: undefined, decorators: [{
2214
2214
  type: Inject,
2215
2215
  args: [BACKEND_URL]
2216
- }] }, { type: HomeShopService }] });
2216
+ }] }, { type: HomeShopService }]; } });
2217
2217
 
2218
2218
  class AngularConnectModule {
2219
2219
  static initializeApp(defaultShop, options, nameOrConfig) {
@@ -2236,45 +2236,45 @@ class AngularConnectModule {
2236
2236
  ],
2237
2237
  };
2238
2238
  }
2239
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2240
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, imports: [i1$4.FirebaseAppModule, AngularElasticSeachModule,
2241
- AngularFirebaseAuthModule,
2242
- AngularFirestoreModule,
2243
- AngularHasuraGraphQLModule] }); }
2244
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, providers: [
2245
- AuthService,
2246
- CartService,
2247
- CatalogService,
2248
- CategoryService,
2249
- CheckoutService,
2250
- CheckoutSubscriptionService,
2251
- CouponService,
2252
- HomeShopService,
2253
- OrderService,
2254
- ShippingService,
2255
- WishlistService,
2256
- {
2257
- provide: UpdateUserImage,
2258
- useFactory: (userRepository, fileUploader) => {
2259
- return new UpdateUserImage(userRepository, fileUploader);
2260
- },
2261
- deps: ['UserRepository', 'FileUploaderService'],
2262
- },
2263
- ], imports: [provideFirebaseApp((injector) => {
2264
- const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
2265
- try {
2266
- return getApp(appName);
2267
- }
2268
- catch (error) {
2269
- return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
2270
- }
2271
- }),
2272
- AngularElasticSeachModule,
2273
- AngularFirebaseAuthModule,
2274
- AngularFirestoreModule,
2275
- AngularHasuraGraphQLModule] }); }
2276
2239
  }
2277
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, decorators: [{
2240
+ AngularConnectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2241
+ AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [i1$4.FirebaseAppModule, AngularElasticSeachModule,
2242
+ AngularFirebaseAuthModule,
2243
+ AngularFirestoreModule,
2244
+ AngularHasuraGraphQLModule] });
2245
+ AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, providers: [
2246
+ AuthService,
2247
+ CartService,
2248
+ CatalogService,
2249
+ CategoryService,
2250
+ CheckoutService,
2251
+ CheckoutSubscriptionService,
2252
+ CouponService,
2253
+ HomeShopService,
2254
+ OrderService,
2255
+ ShippingService,
2256
+ WishlistService,
2257
+ {
2258
+ provide: UpdateUserImage,
2259
+ useFactory: (userRepository, fileUploader) => {
2260
+ return new UpdateUserImage(userRepository, fileUploader);
2261
+ },
2262
+ deps: ['UserRepository', 'FileUploaderService'],
2263
+ },
2264
+ ], imports: [provideFirebaseApp((injector) => {
2265
+ const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
2266
+ try {
2267
+ return getApp(appName);
2268
+ }
2269
+ catch (error) {
2270
+ return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
2271
+ }
2272
+ }),
2273
+ AngularElasticSeachModule,
2274
+ AngularFirebaseAuthModule,
2275
+ AngularFirestoreModule,
2276
+ AngularHasuraGraphQLModule] });
2277
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, decorators: [{
2278
2278
  type: NgModule,
2279
2279
  args: [{
2280
2280
  imports: [