@infrab4a/connect-angular 5.0.0-beta.15 → 5.0.0-beta.17

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 (66) hide show
  1. package/esm2020/angular-connect.module.mjs +115 -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 +504 -0
  5. package/esm2020/angular-hasura-graphql.module.mjs +265 -0
  6. package/esm2020/persistence/cookie-data-persistence.mjs +22 -0
  7. package/{esm2022 → esm2020}/services/auth.service.mjs +6 -6
  8. package/{esm2022 → esm2020}/services/cart.service.mjs +6 -6
  9. package/esm2020/services/catalog/adapters/new-category-structure.adapter.mjs +43 -0
  10. package/{esm2022 → esm2020}/services/catalog/adapters/old-category-structure.adapter.mjs +6 -6
  11. package/esm2020/services/catalog/catalog.service.mjs +194 -0
  12. package/{esm2022 → esm2020}/services/catalog/category.service.mjs +6 -6
  13. package/{esm2022 → esm2020}/services/catalog/models/category-with-tree.model.mjs +1 -1
  14. package/{esm2022 → esm2020}/services/catalog/wishlist.service.mjs +6 -6
  15. package/{esm2022 → esm2020}/services/checkout-subscription.service.mjs +6 -6
  16. package/{esm2022 → esm2020}/services/checkout.service.mjs +6 -6
  17. package/{esm2022 → esm2020}/services/coupon.service.mjs +6 -6
  18. package/{esm2022 → esm2020}/services/home-shop.service.mjs +6 -6
  19. package/{esm2022 → esm2020}/services/order.service.mjs +6 -6
  20. package/{esm2022 → esm2020}/services/shipping.service.mjs +6 -6
  21. package/fesm2015/infrab4a-connect-angular.mjs +2417 -0
  22. package/fesm2015/infrab4a-connect-angular.mjs.map +1 -0
  23. package/{fesm2022 → fesm2020}/infrab4a-connect-angular.mjs +554 -542
  24. package/fesm2020/infrab4a-connect-angular.mjs.map +1 -0
  25. package/package.json +12 -6
  26. package/esm2022/angular-connect.module.mjs +0 -115
  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/persistence/cookie-data-persistence.mjs +0 -23
  32. package/esm2022/services/catalog/adapters/new-category-structure.adapter.mjs +0 -41
  33. package/esm2022/services/catalog/catalog.service.mjs +0 -185
  34. package/fesm2022/infrab4a-connect-angular.mjs.map +0 -1
  35. /package/{esm2022 → esm2020}/consts/backend-url.const.mjs +0 -0
  36. /package/{esm2022 → esm2020}/consts/category-structure.mjs +0 -0
  37. /package/{esm2022 → esm2020}/consts/default-shop.const.mjs +0 -0
  38. /package/{esm2022 → esm2020}/consts/es-config.const.mjs +0 -0
  39. /package/{esm2022 → esm2020}/consts/firebase-const.mjs +0 -0
  40. /package/{esm2022 → esm2020}/consts/hasura-options.const.mjs +0 -0
  41. /package/{esm2022 → esm2020}/consts/index.mjs +0 -0
  42. /package/{esm2022 → esm2020}/consts/persistence.const.mjs +0 -0
  43. /package/{esm2022 → esm2020}/consts/storage-base-url.const.mjs +0 -0
  44. /package/{esm2022 → esm2020}/helpers/index.mjs +0 -0
  45. /package/{esm2022 → esm2020}/helpers/mobile-operation-system-checker.helper.mjs +0 -0
  46. /package/{esm2022 → esm2020}/index.mjs +0 -0
  47. /package/{esm2022 → esm2020}/infrab4a-connect-angular.mjs +0 -0
  48. /package/{esm2022 → esm2020}/persistence/data-persistence.mjs +0 -0
  49. /package/{esm2022 → esm2020}/persistence/index.mjs +0 -0
  50. /package/{esm2022 → esm2020}/services/catalog/adapters/category-structure.adapter.mjs +0 -0
  51. /package/{esm2022 → esm2020}/services/catalog/adapters/index.mjs +0 -0
  52. /package/{esm2022 → esm2020}/services/catalog/enums/index.mjs +0 -0
  53. /package/{esm2022 → esm2020}/services/catalog/enums/product-sorts.enum.mjs +0 -0
  54. /package/{esm2022 → esm2020}/services/catalog/index.mjs +0 -0
  55. /package/{esm2022 → esm2020}/services/catalog/models/index.mjs +0 -0
  56. /package/{esm2022 → esm2020}/services/catalog/types/index.mjs +0 -0
  57. /package/{esm2022 → esm2020}/services/catalog/types/product-sort.type.mjs +0 -0
  58. /package/{esm2022 → esm2020}/services/helpers/index.mjs +0 -0
  59. /package/{esm2022 → esm2020}/services/helpers/util.helper.mjs +0 -0
  60. /package/{esm2022 → esm2020}/services/index.mjs +0 -0
  61. /package/{esm2022 → esm2020}/services/types/index.mjs +0 -0
  62. /package/{esm2022 → esm2020}/services/types/required-checkout-data.type.mjs +0 -0
  63. /package/{esm2022 → esm2020}/services/types/required-checkout-subscription-data.type.mjs +0 -0
  64. /package/{esm2022 → esm2020}/services/types/shipping-methods.type.mjs +0 -0
  65. /package/{esm2022 → esm2020}/types/firebase-app-config.type.mjs +0 -0
  66. /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
- 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';
6
+ import { ProductsIndex, AxiosAdapter, Authentication, AuthenticationFirebaseAuthService, Register, RegisterFirebaseAuthService, SignOut, RecoveryPassword, ConnectFirestoreService, 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, 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';
13
+ import { Storage, provideStorage, getStorage } from '@angular/fire/storage';
14
14
  import cookie from 'js-cookie';
15
15
  import { of, from, combineLatest, throwError, Subject, iif, forkJoin } from 'rxjs';
16
- import { map, catchError, mergeMap, concatMap, tap } from 'rxjs/operators';
17
- import { __metadata, __decorate } from 'tslib';
16
+ import { map, mergeMap, catchError, concatMap, tap } from 'rxjs/operators';
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: [
@@ -73,54 +73,54 @@ class AngularFirebaseAuthModule {
73
73
  ],
74
74
  };
75
75
  }
76
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirebaseAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
77
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularFirebaseAuthModule, imports: [i1.AuthModule] }); }
78
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirebaseAuthModule, providers: [
79
- {
80
- provide: 'Authentication',
81
- useFactory: (authenticationService, userRepository) => {
82
- return new Authentication(authenticationService, userRepository);
83
- },
84
- deps: ['AuthenticationService', 'UserRepository'],
85
- },
86
- {
87
- provide: 'AuthenticationService',
88
- useFactory: (angularFireAuth) => {
89
- return new AuthenticationFirebaseAuthService(angularFireAuth);
90
- },
91
- deps: [Auth],
92
- },
93
- {
94
- provide: 'Register',
95
- useFactory: (registerService, userRepository) => {
96
- return new Register(registerService, userRepository);
97
- },
98
- deps: ['RegisterService', 'UserRepository'],
99
- },
100
- {
101
- provide: 'RegisterService',
102
- useFactory: (angularFireAuth) => {
103
- return new RegisterFirebaseAuthService(angularFireAuth);
104
- },
105
- deps: [Auth],
106
- },
107
- {
108
- provide: 'SignOut',
109
- useFactory: (authenticationService) => {
110
- return new SignOut(authenticationService);
111
- },
112
- deps: ['AuthenticationService'],
113
- },
114
- {
115
- provide: 'RecoveryPassword',
116
- useFactory: (authenticationService) => {
117
- return new RecoveryPassword(authenticationService);
118
- },
119
- deps: ['AuthenticationService'],
120
- },
121
- ], imports: [provideAuth((injector) => getAuth(injector.get(FirebaseApp)))] }); }
122
76
  }
123
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
77
+ AngularFirebaseAuthModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
78
+ AngularFirebaseAuthModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, imports: [i1.AuthModule] });
79
+ AngularFirebaseAuthModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, providers: [
80
+ {
81
+ provide: 'Authentication',
82
+ useFactory: (authenticationService, userRepository) => {
83
+ return new Authentication(authenticationService, userRepository);
84
+ },
85
+ deps: ['AuthenticationService', 'UserRepository'],
86
+ },
87
+ {
88
+ provide: 'AuthenticationService',
89
+ useFactory: (angularFireAuth) => {
90
+ return new AuthenticationFirebaseAuthService(angularFireAuth);
91
+ },
92
+ deps: [Auth],
93
+ },
94
+ {
95
+ provide: 'Register',
96
+ useFactory: (registerService, userRepository) => {
97
+ return new Register(registerService, userRepository);
98
+ },
99
+ deps: ['RegisterService', 'UserRepository'],
100
+ },
101
+ {
102
+ provide: 'RegisterService',
103
+ useFactory: (angularFireAuth) => {
104
+ return new RegisterFirebaseAuthService(angularFireAuth);
105
+ },
106
+ deps: [Auth],
107
+ },
108
+ {
109
+ provide: 'SignOut',
110
+ useFactory: (authenticationService) => {
111
+ return new SignOut(authenticationService);
112
+ },
113
+ deps: ['AuthenticationService'],
114
+ },
115
+ {
116
+ provide: 'RecoveryPassword',
117
+ useFactory: (authenticationService) => {
118
+ return new RecoveryPassword(authenticationService);
119
+ },
120
+ deps: ['AuthenticationService'],
121
+ },
122
+ ], imports: [provideAuth((injector) => getAuth(injector.get(FirebaseApp)))] });
123
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
124
124
  type: NgModule,
125
125
  args: [{
126
126
  imports: [provideAuth((injector) => getAuth(injector.get(FirebaseApp)))],
@@ -191,255 +191,257 @@ class AngularFirestoreModule {
191
191
  ],
192
192
  };
193
193
  }
194
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
195
- static { thismod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1$1.FirestoreModule, i2.StorageModule] }); }
196
- static { thisinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirestoreModule, providers: [
197
- {
198
- provide: 'FirestoreOptions',
199
- useFactory: (firestore, platformId) => ({
200
- firestore,
201
- interceptors: {
202
- request: (request) => {
203
- if (isPlatformBrowser(platformId))
204
- return request;
205
- const interval = setInterval(() => { }, 100);
206
- request.interval = interval;
194
+ }
195
+ AngularFirestoreModulefac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
196
+ AngularFirestoreModulemod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1$1.FirestoreModule, i2.StorageModule] });
197
+ AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, providers: [
198
+ {
199
+ provide: 'FirestoreOptions',
200
+ useFactory: (firestore, platformId) => ({
201
+ firestore: new ConnectFirestoreService(firestore),
202
+ interceptors: {
203
+ request: (request) => {
204
+ if (isPlatformBrowser(platformId))
207
205
  return request;
208
- },
209
- response: (response, request) => {
210
- if (isPlatformBrowser(platformId))
211
- return response;
212
- clearInterval(request.interval);
206
+ const interval = setInterval(() => { }, 100);
207
+ request.interval = interval;
208
+ return request;
209
+ },
210
+ response: (response, request) => {
211
+ if (isPlatformBrowser(platformId))
213
212
  return response;
214
- },
213
+ clearInterval(request.interval);
214
+ return response;
215
215
  },
216
- }),
217
- deps: [Firestore, PLATFORM_ID],
218
- },
219
- {
220
- provide: 'BeautyProfileRepository',
221
- useFactory: (config, userRepository) => {
222
- return new UserBeautyProfileFirestoreRepository(config, userRepository);
223
- },
224
- deps: ['FirestoreOptions', 'UserRepository'],
225
- },
226
- {
227
- provide: 'Buy2WinRepository',
228
- useFactory: (options) => {
229
- return new Buy2WinFirestoreRepository(options);
230
- },
231
- deps: ['FirestoreOptions'],
232
- },
233
- {
234
- provide: CategoryFirestoreRepository,
235
- useFactory: (options) => {
236
- return new CategoryFirestoreRepository(options);
237
- },
238
- deps: ['FirestoreOptions'],
239
- },
240
- {
241
- provide: 'CheckoutRepository',
242
- useFactory: (options) => {
243
- return new CheckoutFirestoreRepository(options);
244
- },
245
- deps: ['FirestoreOptions'],
246
- },
247
- {
248
- provide: 'CheckoutSubscriptionRepository',
249
- useFactory: (options) => {
250
- return new CheckoutSubscriptionFirestoreRepository(options);
251
- },
252
- deps: ['FirestoreOptions'],
253
- },
254
- {
255
- provide: 'CouponRepository',
256
- useFactory: (options) => {
257
- return new CouponFirestoreRepository(options);
258
- },
259
- deps: ['FirestoreOptions'],
260
- },
261
- {
262
- provide: 'CampaignHashtagRepository',
263
- useFactory: (options) => {
264
- return new CampaignHashtagFirestoreRepository(options);
265
- },
266
- deps: ['FirestoreOptions'],
267
- },
268
- {
269
- provide: 'CampaignDashboardRepository',
270
- useFactory: (options) => {
271
- return new CampaignDashboardFirestoreRepository(options);
272
- },
273
- deps: ['FirestoreOptions'],
274
- },
275
- {
276
- provide: 'EditionRepository',
277
- useFactory: (options, subscriptionRepository) => {
278
- return new SubscriptionEditionFirestoreRepository(options, subscriptionRepository);
279
- },
280
- deps: ['FirestoreOptions', 'SubscriptionRepository'],
281
- },
282
- {
283
- provide: 'HomeRepository',
284
- useFactory: (options) => {
285
- return new HomeFirestoreRepository(options);
286
- },
287
- deps: ['FirestoreOptions'],
288
- },
289
- {
290
- provide: 'LeadRepository',
291
- useFactory: (options) => {
292
- return new LeadFirestoreRepository(options);
293
- },
294
- deps: ['FirestoreOptions'],
295
- },
296
- {
297
- provide: 'LegacyOrderRepository',
298
- useFactory: (options) => {
299
- return new LegacyOrderFirestoreRepository(options);
300
- },
301
- deps: ['FirestoreOptions'],
302
- },
303
- {
304
- provide: 'ShopMenuRepository',
305
- useFactory: (options) => {
306
- return new ShopMenuFirestoreRepository(options);
307
- },
308
- deps: ['FirestoreOptions'],
309
- },
310
- {
311
- provide: 'OrderRepository',
312
- useFactory: (options) => {
313
- return new OrderFirestoreRepository(options);
314
- },
315
- deps: ['FirestoreOptions'],
316
- },
317
- {
318
- provide: 'PaymentRepository',
319
- useFactory: (options) => {
320
- return new PaymentFirestoreRepository(options);
321
- },
322
- deps: ['FirestoreOptions'],
323
- },
324
- {
325
- provide: ProductFirestoreRepository,
326
- useFactory: (options) => {
327
- return new ProductFirestoreRepository(options);
328
- },
329
- deps: ['FirestoreOptions'],
330
- },
331
- {
332
- provide: 'ShopSettingsRepository',
333
- useFactory: (options) => {
334
- return new ShopSettingsFirestoreRepository(options);
335
- },
336
- deps: ['FirestoreOptions'],
337
- },
338
- {
339
- provide: 'SubscriptionPaymentRepository',
340
- useFactory: (options, subscriptionRepository) => {
341
- return new SubscriptionPaymentFirestoreRepository(options, subscriptionRepository);
342
- },
343
- deps: ['FirestoreOptions', 'SubscriptionRepository'],
344
- },
345
- {
346
- provide: 'SubscriptionPlanRepository',
347
- useFactory: (options) => {
348
- return new SubscriptionPlanFirestoreRepository(options);
349
- },
350
- deps: ['FirestoreOptions'],
351
- },
352
- {
353
- provide: 'SubscriptionProductRepository',
354
- useFactory: (options) => {
355
- return new SubscriptionProductFirestoreRepository(options);
356
- },
357
- deps: ['FirestoreOptions'],
358
- },
359
- {
360
- provide: 'SubscriptionRepository',
361
- useFactory: (options) => {
362
- return new SubscriptionFirestoreRepository(options);
363
- },
364
- deps: ['FirestoreOptions'],
365
- },
366
- {
367
- provide: 'UserRepository',
368
- useFactory: (options) => {
369
- return new UserFirestoreRepository(options);
370
216
  },
371
- deps: ['FirestoreOptions'],
372
- },
373
- {
374
- provide: 'UserAddressRepository',
375
- useFactory: (options, userRepository) => {
376
- return new UserAddressFirestoreRepository(options, userRepository);
377
- },
378
- deps: ['FirestoreOptions', 'UserRepository'],
379
- },
380
- {
381
- provide: 'UserPaymentMethodRepository',
382
- useFactory: (options, userRepository) => {
383
- return new UserPaymentMethodFirestoreRepository(options, userRepository);
384
- },
385
- deps: ['FirestoreOptions', 'UserRepository'],
386
- },
387
- {
388
- provide: 'SubscriptionMaterializationRepository',
389
- useFactory: (options) => {
390
- return new SubscriptionMaterializationFirestoreRepository(options);
391
- },
392
- deps: ['FirestoreOptions'],
393
- },
394
- {
395
- provide: 'SubscriptionSummaryRepository',
396
- useFactory: (options) => {
397
- return new SubscriptionSummaryFirestoreRepository(options);
398
- },
399
- deps: ['FirestoreOptions'],
400
- },
401
- {
402
- provide: ProductVariantFirestoreRepository,
403
- useFactory: (options, productRepository) => {
404
- return new ProductVariantFirestoreRepository(options, productRepository);
405
- },
406
- deps: ['FirestoreOptions', ProductFirestoreRepository],
407
- },
408
- {
409
- provide: 'FileUploaderService',
410
- useFactory: (storage, baseUrl) => {
411
- return new FirebaseFileUploaderService(storage, baseUrl);
412
- },
413
- deps: [Storage, STORAGE_BASE_URL],
414
- },
415
- ], imports: [AngularElasticSeachModule,
416
- provideFirestore((injector) => {
417
- const platformId = injector.get(PLATFORM_ID);
418
- if (isPlatformServer(platformId))
419
- return getFirestore(injector.get(FirebaseApp));
420
- if (!MobileOperationSystemCheckerHelper.isAppleDevice())
421
- return getFirestore(injector.get(FirebaseApp));
422
- const firestore = initializeFirestore(injector.get(FirebaseApp), {
423
- experimentalForceLongPolling: true,
424
- localCache: memoryLocalCache(),
425
- });
426
- return firestore;
427
217
  }),
428
- provideStorage(() => getStorage())] }); }
429
- }
430
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirestoreModule, decorators: [{
218
+ deps: [Firestore, PLATFORM_ID],
219
+ },
220
+ {
221
+ provide: 'BeautyProfileRepository',
222
+ useFactory: (config, userRepository) => {
223
+ return new UserBeautyProfileFirestoreRepository(config, userRepository);
224
+ },
225
+ deps: ['FirestoreOptions', 'UserRepository'],
226
+ },
227
+ {
228
+ provide: 'Buy2WinRepository',
229
+ useFactory: (options) => {
230
+ return new Buy2WinFirestoreRepository(options);
231
+ },
232
+ deps: ['FirestoreOptions'],
233
+ },
234
+ {
235
+ provide: CategoryFirestoreRepository,
236
+ useFactory: (options) => {
237
+ return new CategoryFirestoreRepository(options);
238
+ },
239
+ deps: ['FirestoreOptions'],
240
+ },
241
+ {
242
+ provide: 'CheckoutRepository',
243
+ useFactory: (options) => {
244
+ return new CheckoutFirestoreRepository(options);
245
+ },
246
+ deps: ['FirestoreOptions'],
247
+ },
248
+ {
249
+ provide: 'CheckoutSubscriptionRepository',
250
+ useFactory: (options) => {
251
+ return new CheckoutSubscriptionFirestoreRepository(options);
252
+ },
253
+ deps: ['FirestoreOptions'],
254
+ },
255
+ {
256
+ provide: 'CouponRepository',
257
+ useFactory: (options) => {
258
+ return new CouponFirestoreRepository(options);
259
+ },
260
+ deps: ['FirestoreOptions'],
261
+ },
262
+ {
263
+ provide: 'CampaignHashtagRepository',
264
+ useFactory: (options) => {
265
+ return new CampaignHashtagFirestoreRepository(options);
266
+ },
267
+ deps: ['FirestoreOptions'],
268
+ },
269
+ {
270
+ provide: 'CampaignDashboardRepository',
271
+ useFactory: (options) => {
272
+ return new CampaignDashboardFirestoreRepository(options);
273
+ },
274
+ deps: ['FirestoreOptions'],
275
+ },
276
+ {
277
+ provide: 'EditionRepository',
278
+ useFactory: (options, subscriptionRepository) => {
279
+ return new SubscriptionEditionFirestoreRepository(options, subscriptionRepository);
280
+ },
281
+ deps: ['FirestoreOptions', 'SubscriptionRepository'],
282
+ },
283
+ {
284
+ provide: 'HomeRepository',
285
+ useFactory: (options) => {
286
+ return new HomeFirestoreRepository(options);
287
+ },
288
+ deps: ['FirestoreOptions'],
289
+ },
290
+ {
291
+ provide: 'LeadRepository',
292
+ useFactory: (options) => {
293
+ return new LeadFirestoreRepository(options);
294
+ },
295
+ deps: ['FirestoreOptions'],
296
+ },
297
+ {
298
+ provide: 'LegacyOrderRepository',
299
+ useFactory: (options) => {
300
+ return new LegacyOrderFirestoreRepository(options);
301
+ },
302
+ deps: ['FirestoreOptions'],
303
+ },
304
+ {
305
+ provide: 'ShopMenuRepository',
306
+ useFactory: (options) => {
307
+ return new ShopMenuFirestoreRepository(options);
308
+ },
309
+ deps: ['FirestoreOptions'],
310
+ },
311
+ {
312
+ provide: 'OrderRepository',
313
+ useFactory: (options) => {
314
+ return new OrderFirestoreRepository(options);
315
+ },
316
+ deps: ['FirestoreOptions'],
317
+ },
318
+ {
319
+ provide: 'PaymentRepository',
320
+ useFactory: (options) => {
321
+ return new PaymentFirestoreRepository(options);
322
+ },
323
+ deps: ['FirestoreOptions'],
324
+ },
325
+ {
326
+ provide: ProductFirestoreRepository,
327
+ useFactory: (options) => {
328
+ return new ProductFirestoreRepository(options);
329
+ },
330
+ deps: ['FirestoreOptions'],
331
+ },
332
+ {
333
+ provide: 'ShopSettingsRepository',
334
+ useFactory: (options) => {
335
+ return new ShopSettingsFirestoreRepository(options);
336
+ },
337
+ deps: ['FirestoreOptions'],
338
+ },
339
+ {
340
+ provide: 'SubscriptionPaymentRepository',
341
+ useFactory: (options, subscriptionRepository) => {
342
+ return new SubscriptionPaymentFirestoreRepository(options, subscriptionRepository);
343
+ },
344
+ deps: ['FirestoreOptions', 'SubscriptionRepository'],
345
+ },
346
+ {
347
+ provide: 'SubscriptionPlanRepository',
348
+ useFactory: (options) => {
349
+ return new SubscriptionPlanFirestoreRepository(options);
350
+ },
351
+ deps: ['FirestoreOptions'],
352
+ },
353
+ {
354
+ provide: 'SubscriptionProductRepository',
355
+ useFactory: (options) => {
356
+ return new SubscriptionProductFirestoreRepository(options);
357
+ },
358
+ deps: ['FirestoreOptions'],
359
+ },
360
+ {
361
+ provide: 'SubscriptionRepository',
362
+ useFactory: (options) => {
363
+ return new SubscriptionFirestoreRepository(options);
364
+ },
365
+ deps: ['FirestoreOptions'],
366
+ },
367
+ {
368
+ provide: 'UserRepository',
369
+ useFactory: (options) => {
370
+ return new UserFirestoreRepository(options);
371
+ },
372
+ deps: ['FirestoreOptions'],
373
+ },
374
+ {
375
+ provide: 'UserAddressRepository',
376
+ useFactory: (options, userRepository) => {
377
+ return new UserAddressFirestoreRepository(options, userRepository);
378
+ },
379
+ deps: ['FirestoreOptions', 'UserRepository'],
380
+ },
381
+ {
382
+ provide: 'UserPaymentMethodRepository',
383
+ useFactory: (options, userRepository) => {
384
+ return new UserPaymentMethodFirestoreRepository(options, userRepository);
385
+ },
386
+ deps: ['FirestoreOptions', 'UserRepository'],
387
+ },
388
+ {
389
+ provide: 'SubscriptionMaterializationRepository',
390
+ useFactory: (options) => {
391
+ return new SubscriptionMaterializationFirestoreRepository(options);
392
+ },
393
+ deps: ['FirestoreOptions'],
394
+ },
395
+ {
396
+ provide: 'SubscriptionSummaryRepository',
397
+ useFactory: (options) => {
398
+ return new SubscriptionSummaryFirestoreRepository(options);
399
+ },
400
+ deps: ['FirestoreOptions'],
401
+ },
402
+ {
403
+ provide: ProductVariantFirestoreRepository,
404
+ useFactory: (options, productRepository) => {
405
+ return new ProductVariantFirestoreRepository(options, productRepository);
406
+ },
407
+ deps: ['FirestoreOptions', ProductFirestoreRepository],
408
+ },
409
+ {
410
+ provide: 'FileUploaderService',
411
+ useFactory: (storage, baseUrl) => {
412
+ return new FirebaseFileUploaderService(storage, baseUrl);
413
+ },
414
+ deps: [Storage, STORAGE_BASE_URL],
415
+ },
416
+ ], imports: [AngularElasticSeachModule,
417
+ provideFirestore((injector) => {
418
+ const platformId = injector.get(PLATFORM_ID);
419
+ if (isPlatformServer(platformId) || !MobileOperationSystemCheckerHelper.isAppleDevice())
420
+ return initializeFirestore(injector.get(FirebaseApp), {
421
+ ignoreUndefinedProperties: true,
422
+ });
423
+ const firestore = initializeFirestore(injector.get(FirebaseApp), {
424
+ experimentalForceLongPolling: true,
425
+ ignoreUndefinedProperties: true,
426
+ localCache: memoryLocalCache(),
427
+ });
428
+ return firestore;
429
+ }),
430
+ provideStorage(() => getStorage())] });
431
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, decorators: [{
431
432
  type: NgModule,
432
433
  args: [{
433
434
  imports: [
434
435
  AngularElasticSeachModule,
435
436
  provideFirestore((injector) => {
436
437
  const platformId = injector.get(PLATFORM_ID);
437
- if (isPlatformServer(platformId))
438
- return getFirestore(injector.get(FirebaseApp));
439
- if (!MobileOperationSystemCheckerHelper.isAppleDevice())
440
- return getFirestore(injector.get(FirebaseApp));
438
+ if (isPlatformServer(platformId) || !MobileOperationSystemCheckerHelper.isAppleDevice())
439
+ return initializeFirestore(injector.get(FirebaseApp), {
440
+ ignoreUndefinedProperties: true,
441
+ });
441
442
  const firestore = initializeFirestore(injector.get(FirebaseApp), {
442
443
  experimentalForceLongPolling: true,
444
+ ignoreUndefinedProperties: true,
443
445
  localCache: memoryLocalCache(),
444
446
  });
445
447
  return firestore;
@@ -450,7 +452,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
450
452
  {
451
453
  provide: 'FirestoreOptions',
452
454
  useFactory: (firestore, platformId) => ({
453
- firestore,
455
+ firestore: new ConnectFirestoreService(firestore),
454
456
  interceptors: {
455
457
  request: (request) => {
456
458
  if (isPlatformBrowser(platformId))
@@ -676,132 +678,132 @@ class AngularHasuraGraphQLModule {
676
678
  providers: [{ provide: HASURA_OPTIONS, useValue: options }],
677
679
  };
678
680
  }
679
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularHasuraGraphQLModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
680
- static { thismod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularHasuraGraphQLModule }); }
681
- static { thisinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularHasuraGraphQLModule, providers: [
682
- {
683
- provide: 'HasuraConfig',
684
- useFactory: (options, platformId) => ({
685
- endpoint: options.endpoint,
686
- authOptions: options.credentials,
687
- interceptors: {
688
- request: (request) => {
689
- if (isPlatformBrowser(platformId))
690
- return request;
691
- const interval = setInterval(() => { }, 100);
692
- request.interval = interval;
681
+ }
682
+ AngularHasuraGraphQLModulefac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
683
+ AngularHasuraGraphQLModulemod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule });
684
+ AngularHasuraGraphQLModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, providers: [
685
+ {
686
+ provide: 'HasuraConfig',
687
+ useFactory: (options, platformId) => ({
688
+ endpoint: options.endpoint,
689
+ authOptions: options.credentials,
690
+ interceptors: {
691
+ request: (request) => {
692
+ if (isPlatformBrowser(platformId))
693
693
  return request;
694
- },
695
- response: (response, request) => {
696
- if (isPlatformBrowser(platformId))
697
- return response;
698
- clearInterval(request.interval);
694
+ const interval = setInterval(() => { }, 100);
695
+ request.interval = interval;
696
+ return request;
697
+ },
698
+ response: (response, request) => {
699
+ if (isPlatformBrowser(platformId))
699
700
  return response;
700
- },
701
+ clearInterval(request.interval);
702
+ return response;
701
703
  },
702
- }),
703
- deps: [HASURA_OPTIONS, PLATFORM_ID],
704
- },
705
- {
706
- provide: 'CategoryRepository',
707
- useExisting: CategoryHasuraGraphQLRepository,
708
- },
709
- {
710
- provide: CategoryHasuraGraphQLRepository,
711
- useFactory: (options, productRepository, categoryFilterRepository) => {
712
- return new CategoryHasuraGraphQLRepository(options, productRepository, categoryFilterRepository);
713
704
  },
714
- deps: ['HasuraConfig', ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
715
- },
716
- {
717
- provide: 'ProductRepository',
718
- useExisting: ProductHasuraGraphQLRepository,
719
- },
720
- {
721
- provide: ProductHasuraGraphQLRepository,
722
- useFactory: (hasuraConfig) => {
723
- return new ProductHasuraGraphQLRepository(hasuraConfig);
724
- },
725
- deps: ['HasuraConfig'],
726
- },
727
- {
728
- provide: 'ProductReviewsRepository',
729
- useExisting: ProductReviewsHasuraGraphQLRepository,
730
- },
731
- {
732
- provide: ProductReviewsHasuraGraphQLRepository,
733
- useFactory: (hasuraConfig) => {
734
- return new ProductReviewsHasuraGraphQLRepository(hasuraConfig);
735
- },
736
- deps: ['HasuraConfig'],
737
- },
738
- {
739
- provide: 'VariantRepository',
740
- useExisting: VariantHasuraGraphQLRepository,
741
- },
742
- {
743
- provide: VariantHasuraGraphQLRepository,
744
- useFactory: (hasuraConfig) => {
745
- return new VariantHasuraGraphQLRepository(hasuraConfig);
746
- },
747
- deps: ['HasuraConfig'],
748
- },
749
- {
750
- provide: 'CategoryFilterRepository',
751
- useExisting: CategoryFilterHasuraGraphQLRepository,
752
- },
753
- {
754
- provide: CategoryFilterHasuraGraphQLRepository,
755
- useFactory: (options) => {
756
- return new CategoryFilterHasuraGraphQLRepository(options);
757
- },
758
- deps: ['HasuraConfig'],
759
- },
760
- {
761
- provide: 'FilterOptionRepository',
762
- useExisting: FilterOptionHasuraGraphQLRepository,
763
- },
764
- {
765
- provide: FilterOptionHasuraGraphQLRepository,
766
- useFactory: (options) => {
767
- return new FilterOptionHasuraGraphQLRepository(options);
768
- },
769
- deps: ['HasuraConfig'],
770
- },
771
- {
772
- provide: 'FilterRepository',
773
- useExisting: FilterHasuraGraphQLRepository,
774
- },
775
- {
776
- provide: FilterHasuraGraphQLRepository,
777
- useFactory: (options, filterOptionRepository, categoryFilterRepository) => {
778
- return new FilterHasuraGraphQLRepository(options, filterOptionRepository, categoryFilterRepository);
779
- },
780
- deps: ['HasuraConfig', FilterOptionHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
781
- },
782
- {
783
- provide: CategoryCollectionChildrenHasuraGraphQLRepository,
784
- useFactory: (options) => new CategoryCollectionChildrenHasuraGraphQLRepository(options),
785
- deps: ['HasuraConfig'],
786
- },
787
- {
788
- provide: 'CategoryCollectionChildrenRepository',
789
- useExisting: CategoryCollectionChildrenHasuraGraphQLRepository,
790
- },
791
- {
792
- provide: WishlistHasuraGraphQLRepository,
793
- useFactory: (options, categoryFilterRepository) => {
794
- return new WishlistHasuraGraphQLRepository(options, categoryFilterRepository);
795
- },
796
- deps: ['HasuraConfig', CategoryFilterHasuraGraphQLRepository],
797
- },
798
- {
799
- provide: 'WishlistRepository',
800
- useExisting: WishlistHasuraGraphQLRepository,
801
- },
802
- ] }); }
803
- }
804
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularHasuraGraphQLModule, decorators: [{
705
+ }),
706
+ deps: [HASURA_OPTIONS, PLATFORM_ID],
707
+ },
708
+ {
709
+ provide: 'CategoryRepository',
710
+ useExisting: CategoryHasuraGraphQLRepository,
711
+ },
712
+ {
713
+ provide: CategoryHasuraGraphQLRepository,
714
+ useFactory: (options, productRepository, categoryFilterRepository) => {
715
+ return new CategoryHasuraGraphQLRepository(options, productRepository, categoryFilterRepository);
716
+ },
717
+ deps: ['HasuraConfig', ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
718
+ },
719
+ {
720
+ provide: 'ProductRepository',
721
+ useExisting: ProductHasuraGraphQLRepository,
722
+ },
723
+ {
724
+ provide: ProductHasuraGraphQLRepository,
725
+ useFactory: (hasuraConfig) => {
726
+ return new ProductHasuraGraphQLRepository(hasuraConfig);
727
+ },
728
+ deps: ['HasuraConfig'],
729
+ },
730
+ {
731
+ provide: 'ProductReviewsRepository',
732
+ useExisting: ProductReviewsHasuraGraphQLRepository,
733
+ },
734
+ {
735
+ provide: ProductReviewsHasuraGraphQLRepository,
736
+ useFactory: (hasuraConfig) => {
737
+ return new ProductReviewsHasuraGraphQLRepository(hasuraConfig);
738
+ },
739
+ deps: ['HasuraConfig'],
740
+ },
741
+ {
742
+ provide: 'VariantRepository',
743
+ useExisting: VariantHasuraGraphQLRepository,
744
+ },
745
+ {
746
+ provide: VariantHasuraGraphQLRepository,
747
+ useFactory: (hasuraConfig) => {
748
+ return new VariantHasuraGraphQLRepository(hasuraConfig);
749
+ },
750
+ deps: ['HasuraConfig'],
751
+ },
752
+ {
753
+ provide: 'CategoryFilterRepository',
754
+ useExisting: CategoryFilterHasuraGraphQLRepository,
755
+ },
756
+ {
757
+ provide: CategoryFilterHasuraGraphQLRepository,
758
+ useFactory: (options) => {
759
+ return new CategoryFilterHasuraGraphQLRepository(options);
760
+ },
761
+ deps: ['HasuraConfig'],
762
+ },
763
+ {
764
+ provide: 'FilterOptionRepository',
765
+ useExisting: FilterOptionHasuraGraphQLRepository,
766
+ },
767
+ {
768
+ provide: FilterOptionHasuraGraphQLRepository,
769
+ useFactory: (options) => {
770
+ return new FilterOptionHasuraGraphQLRepository(options);
771
+ },
772
+ deps: ['HasuraConfig'],
773
+ },
774
+ {
775
+ provide: 'FilterRepository',
776
+ useExisting: FilterHasuraGraphQLRepository,
777
+ },
778
+ {
779
+ provide: FilterHasuraGraphQLRepository,
780
+ useFactory: (options, filterOptionRepository, categoryFilterRepository) => {
781
+ return new FilterHasuraGraphQLRepository(options, filterOptionRepository, categoryFilterRepository);
782
+ },
783
+ deps: ['HasuraConfig', FilterOptionHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
784
+ },
785
+ {
786
+ provide: CategoryCollectionChildrenHasuraGraphQLRepository,
787
+ useFactory: (options) => new CategoryCollectionChildrenHasuraGraphQLRepository(options),
788
+ deps: ['HasuraConfig'],
789
+ },
790
+ {
791
+ provide: 'CategoryCollectionChildrenRepository',
792
+ useExisting: CategoryCollectionChildrenHasuraGraphQLRepository,
793
+ },
794
+ {
795
+ provide: WishlistHasuraGraphQLRepository,
796
+ useFactory: (options, categoryFilterRepository) => {
797
+ return new WishlistHasuraGraphQLRepository(options, categoryFilterRepository);
798
+ },
799
+ deps: ['HasuraConfig', CategoryFilterHasuraGraphQLRepository],
800
+ },
801
+ {
802
+ provide: 'WishlistRepository',
803
+ useExisting: WishlistHasuraGraphQLRepository,
804
+ },
805
+ ] });
806
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, decorators: [{
805
807
  type: NgModule,
806
808
  args: [{
807
809
  providers: [
@@ -934,16 +936,15 @@ class CookieDataPersistence {
934
936
  return of(cookie.get(key));
935
937
  }
936
938
  remove(key) {
937
- cookie.remove(key);
938
- return;
939
+ return of(cookie.remove(key));
939
940
  }
940
941
  set(key, value) {
941
942
  return from(cookie.set(key, value)).pipe(map(() => { }));
942
943
  }
943
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CookieDataPersistence, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
944
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CookieDataPersistence }); }
945
944
  }
946
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CookieDataPersistence, decorators: [{
945
+ CookieDataPersistence.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CookieDataPersistence, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
946
+ CookieDataPersistence.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CookieDataPersistence });
947
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CookieDataPersistence, decorators: [{
947
948
  type: Injectable
948
949
  }] });
949
950
 
@@ -968,15 +969,15 @@ class AuthService {
968
969
  getFireUser() {
969
970
  return authState(this.angularFireAuth).pipe(catchError(() => of(null)));
970
971
  }
971
- 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 }); }
972
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AuthService }); }
973
972
  }
974
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AuthService, decorators: [{
973
+ 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 });
974
+ AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService });
975
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, decorators: [{
975
976
  type: Injectable
976
- }], ctorParameters: () => [{ type: i1.Auth }, { type: undefined, decorators: [{
977
+ }], ctorParameters: function () { return [{ type: i1.Auth }, { type: undefined, decorators: [{
977
978
  type: Inject,
978
979
  args: ['UserRepository']
979
- }] }] });
980
+ }] }]; } });
980
981
 
981
982
  class CouponService {
982
983
  constructor(couponRepository, defaultShop, orderRepository, categoryRepository) {
@@ -1184,15 +1185,15 @@ class CouponService {
1184
1185
  }
1185
1186
  return couponUseLimits;
1186
1187
  }
1187
- 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 }); }
1188
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CouponService, providedIn: 'root' }); }
1189
1188
  }
1190
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CouponService, decorators: [{
1189
+ 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 });
1190
+ CouponService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, providedIn: 'root' });
1191
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, decorators: [{
1191
1192
  type: Injectable,
1192
1193
  args: [{
1193
1194
  providedIn: 'root',
1194
1195
  }]
1195
- }], ctorParameters: () => [{ type: undefined, decorators: [{
1196
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1196
1197
  type: Inject,
1197
1198
  args: ['CouponRepository']
1198
1199
  }] }, { type: i1$2.Shops, decorators: [{
@@ -1204,7 +1205,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
1204
1205
  }] }, { type: undefined, decorators: [{
1205
1206
  type: Inject,
1206
1207
  args: ['CategoryRepository']
1207
- }] }] });
1208
+ }] }]; } });
1208
1209
 
1209
1210
  class CheckoutService {
1210
1211
  constructor(couponService, checkoutRepository, userRepository, defaultShop, dataPersistence) {
@@ -1246,12 +1247,12 @@ class CheckoutService {
1246
1247
  await this.dataPersistence.set('checkoutId', checkout.id).toPromise();
1247
1248
  return checkout;
1248
1249
  }
1249
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutService, deps: [{ token: CouponService }, { token: 'CheckoutRepository' }, { token: 'UserRepository' }, { token: DEFAULT_SHOP }, { token: PERSISTENCE_PROVIDER }], target: i0.ɵɵFactoryTarget.Injectable }); }
1250
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutService }); }
1251
1250
  }
1252
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutService, decorators: [{
1251
+ CheckoutService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutService, deps: [{ token: CouponService }, { token: 'CheckoutRepository' }, { token: 'UserRepository' }, { token: DEFAULT_SHOP }, { token: PERSISTENCE_PROVIDER }], target: i0.ɵɵFactoryTarget.Injectable });
1252
+ CheckoutService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutService });
1253
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutService, decorators: [{
1253
1254
  type: Injectable
1254
- }], ctorParameters: () => [{ type: CouponService }, { type: undefined, decorators: [{
1255
+ }], ctorParameters: function () { return [{ type: CouponService }, { type: undefined, decorators: [{
1255
1256
  type: Inject,
1256
1257
  args: ['CheckoutRepository']
1257
1258
  }] }, { type: undefined, decorators: [{
@@ -1263,7 +1264,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
1263
1264
  }] }, { type: undefined, decorators: [{
1264
1265
  type: Inject,
1265
1266
  args: [PERSISTENCE_PROVIDER]
1266
- }] }] });
1267
+ }] }]; } });
1267
1268
 
1268
1269
  class CartService {
1269
1270
  constructor(authService, checkoutService, defaultShop, productRepository, categoryRepository, variantRepository, buy2WinRepository) {
@@ -1513,12 +1514,12 @@ class CartService {
1513
1514
  });
1514
1515
  });
1515
1516
  }
1516
- 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 }); }
1517
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CartService }); }
1518
1517
  }
1519
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CartService, decorators: [{
1518
+ 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 });
1519
+ CartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService });
1520
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, decorators: [{
1520
1521
  type: Injectable
1521
- }], ctorParameters: () => [{ type: AuthService }, { type: CheckoutService }, { type: i1$2.Shops, decorators: [{
1522
+ }], ctorParameters: function () { return [{ type: AuthService }, { type: CheckoutService }, { type: i1$2.Shops, decorators: [{
1522
1523
  type: Inject,
1523
1524
  args: [DEFAULT_SHOP]
1524
1525
  }] }, { type: undefined, decorators: [{
@@ -1533,7 +1534,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
1533
1534
  }] }, { type: i1$2.Buy2WinFirestoreRepository, decorators: [{
1534
1535
  type: Inject,
1535
1536
  args: ['Buy2WinRepository']
1536
- }] }] });
1537
+ }] }]; } });
1537
1538
 
1538
1539
  class NewCategoryStructureAdapter {
1539
1540
  constructor(categoryRepository) {
@@ -1559,19 +1560,21 @@ class NewCategoryStructureAdapter {
1559
1560
  .then((categories) => categories.map((category) => category.id.toString()));
1560
1561
  }
1561
1562
  async getCategory(category) {
1562
- return isNil(category.isCollection) || (category.isCollection && !category.products?.length)
1563
- ? this.categoryRepository.get({ id: category.id })
1564
- : category;
1563
+ const collectionCategory = category.isCollection ||
1564
+ (isNil(category.isCollection) && !category.products?.length) ||
1565
+ category.isWishlist ||
1566
+ category.brandCategory;
1567
+ return collectionCategory ? this.categoryRepository.get({ id: category.id }) : category;
1565
1568
  }
1566
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NewCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
1567
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NewCategoryStructureAdapter }); }
1568
1569
  }
1569
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NewCategoryStructureAdapter, decorators: [{
1570
+ NewCategoryStructureAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
1571
+ NewCategoryStructureAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter });
1572
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter, decorators: [{
1570
1573
  type: Injectable
1571
- }], ctorParameters: () => [{ type: undefined, decorators: [{
1574
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1572
1575
  type: Inject,
1573
1576
  args: ['CategoryRepository']
1574
- }] }] });
1577
+ }] }]; } });
1575
1578
 
1576
1579
  class OldCategoryStructureAdapter {
1577
1580
  constructor(categoryRepository) {
@@ -1583,15 +1586,15 @@ class OldCategoryStructureAdapter {
1583
1586
  : await this.categoryRepository.get({ id: category.id }).then((categoryFound) => categoryFound.products);
1584
1587
  return { id: { operator: Where.IN, value: productsIds } };
1585
1588
  }
1586
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OldCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
1587
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OldCategoryStructureAdapter }); }
1588
1589
  }
1589
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OldCategoryStructureAdapter, decorators: [{
1590
+ OldCategoryStructureAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
1591
+ OldCategoryStructureAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter });
1592
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter, decorators: [{
1590
1593
  type: Injectable
1591
- }], ctorParameters: () => [{ type: undefined, decorators: [{
1594
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1592
1595
  type: Inject,
1593
1596
  args: ['CategoryRepository']
1594
- }] }] });
1597
+ }] }]; } });
1595
1598
 
1596
1599
  class CatalogService {
1597
1600
  constructor(productRepository, categoryRepository, categoryStructureAdapter, shop, productIndex) {
@@ -1626,17 +1629,22 @@ class CatalogService {
1626
1629
  if (!sort || sort === 'most-relevant')
1627
1630
  return {};
1628
1631
  if (sort === 'best-sellers')
1629
- return { shoppingCount: 'desc' };
1632
+ return {
1633
+ shoppingCount: 'desc',
1634
+ rate: 'desc',
1635
+ stock: 'desc',
1636
+ name: 'asc',
1637
+ };
1630
1638
  if (sort === 'biggest-price')
1631
- return { subscriberPrice: 'desc' };
1639
+ return { subscriberPrice: 'desc', rate: 'desc', shoppingCount: 'desc' };
1632
1640
  if (sort === 'lowest-price')
1633
- return { subscriberPrice: 'asc' };
1641
+ return { subscriberPrice: 'asc', rate: 'desc', shoppingCount: 'desc' };
1634
1642
  if (sort === 'best-rating')
1635
- return { rate: 'desc' };
1643
+ return { rate: 'desc', shoppingCount: 'desc', stock: 'desc', name: 'asc' };
1636
1644
  if (sort === 'news')
1637
1645
  return { createdAt: 'desc' };
1638
1646
  if (sort === 'biggest-discount')
1639
- return { subscriberDiscountPercentage: 'desc' };
1647
+ return { subscriberDiscountPercentage: 'desc', rate: 'desc', shoppingCount: 'desc' };
1640
1648
  };
1641
1649
  this.buildLimitQuery = (options) => {
1642
1650
  const limit = options?.perPage || 20;
@@ -1676,9 +1684,13 @@ class CatalogService {
1676
1684
  return this.findCatalogAndSortByMostRevelant(productsIds, options, limits);
1677
1685
  }
1678
1686
  if (this.hasCategory(options) && options.sort === 'most-relevant') {
1679
- const productsIds = options.category.products?.length
1680
- ? options.category.products
1681
- : await this.categoryRepository.get({ id: options.category.id }).then((categoryFound) => categoryFound.products);
1687
+ const productsIds = await this.productRepository
1688
+ .find({
1689
+ filters: {
1690
+ ...(await this.buildMainFilter(options)),
1691
+ },
1692
+ })
1693
+ .then((products) => products.data.map((product) => product.id));
1682
1694
  return this.findCatalogAndSortByMostRevelant(productsIds, options, limits);
1683
1695
  }
1684
1696
  const repoParams = {
@@ -1754,12 +1766,12 @@ class CatalogService {
1754
1766
  return [...new Set(sorted.map(({ _source }) => _source.id))];
1755
1767
  }));
1756
1768
  }
1757
- 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 }); }
1758
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogService }); }
1759
1769
  }
1760
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogService, decorators: [{
1770
+ 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 });
1771
+ CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService });
1772
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
1761
1773
  type: Injectable
1762
- }], ctorParameters: () => [{ type: undefined, decorators: [{
1774
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1763
1775
  type: Inject,
1764
1776
  args: ['ProductRepository']
1765
1777
  }] }, { type: undefined, decorators: [{
@@ -1771,7 +1783,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
1771
1783
  }] }, { type: i1$2.Shops, decorators: [{
1772
1784
  type: Inject,
1773
1785
  args: [DEFAULT_SHOP]
1774
- }] }, { type: i1$2.ProductsIndex }] });
1786
+ }] }, { type: i1$2.ProductsIndex }]; } });
1775
1787
 
1776
1788
  class CategoryService {
1777
1789
  constructor(productRepository, categoryRepository, categoryFilterRepository, categoryStructureAdapter, shop) {
@@ -1797,12 +1809,12 @@ class CategoryService {
1797
1809
  .find({ filters: { categoryId: +category.id } })
1798
1810
  .then(({ data }) => data.map((categoryFilter) => categoryFilter.filter));
1799
1811
  }
1800
- 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 }); }
1801
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryService }); }
1802
1812
  }
1803
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryService, decorators: [{
1813
+ 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 });
1814
+ CategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService });
1815
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService, decorators: [{
1804
1816
  type: Injectable
1805
- }], ctorParameters: () => [{ type: undefined, decorators: [{
1817
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1806
1818
  type: Inject,
1807
1819
  args: ['ProductRepository']
1808
1820
  }] }, { type: undefined, decorators: [{
@@ -1817,7 +1829,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
1817
1829
  }] }, { type: i1$2.Shops, decorators: [{
1818
1830
  type: Inject,
1819
1831
  args: [DEFAULT_SHOP]
1820
- }] }] });
1832
+ }] }]; } });
1821
1833
 
1822
1834
  var ProductSorts;
1823
1835
  (function (ProductSorts) {
@@ -1922,12 +1934,12 @@ class WishlistService {
1922
1934
  }
1923
1935
  return wishlist;
1924
1936
  }
1925
- 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 }); }
1926
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: WishlistService }); }
1927
1937
  }
1928
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: WishlistService, decorators: [{
1938
+ 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 });
1939
+ WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
1940
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
1929
1941
  type: Injectable
1930
- }], ctorParameters: () => [{ type: undefined, decorators: [{
1942
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1931
1943
  type: Inject,
1932
1944
  args: ['WishlistRepository']
1933
1945
  }] }, { type: i1$2.Shops, decorators: [{
@@ -1942,7 +1954,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
1942
1954
  }] }, { type: undefined, decorators: [{
1943
1955
  type: Inject,
1944
1956
  args: ['CategoryRepository']
1945
- }] }, { type: i1$2.ProductsIndex }] });
1957
+ }] }, { type: i1$2.ProductsIndex }]; } });
1946
1958
 
1947
1959
  class CheckoutSubscriptionService {
1948
1960
  constructor(checkoutSubscriptionRepository, dataPersistence, couponService) {
@@ -1974,18 +1986,18 @@ class CheckoutSubscriptionService {
1974
1986
  await this.dataPersistence.set('checkoutSubscriptionId', checkout.id).toPromise();
1975
1987
  return checkout;
1976
1988
  }
1977
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutSubscriptionService, deps: [{ token: 'CheckoutSubscriptionRepository' }, { token: PERSISTENCE_PROVIDER }, { token: CouponService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1978
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutSubscriptionService }); }
1979
1989
  }
1980
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutSubscriptionService, decorators: [{
1990
+ CheckoutSubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService, deps: [{ token: 'CheckoutSubscriptionRepository' }, { token: PERSISTENCE_PROVIDER }, { token: CouponService }], target: i0.ɵɵFactoryTarget.Injectable });
1991
+ CheckoutSubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService });
1992
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService, decorators: [{
1981
1993
  type: Injectable
1982
- }], ctorParameters: () => [{ type: undefined, decorators: [{
1994
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1983
1995
  type: Inject,
1984
1996
  args: ['CheckoutSubscriptionRepository']
1985
1997
  }] }, { type: undefined, decorators: [{
1986
1998
  type: Inject,
1987
1999
  args: [PERSISTENCE_PROVIDER]
1988
- }] }, { type: CouponService }] });
2000
+ }] }, { type: CouponService }]; } });
1989
2001
 
1990
2002
  class UtilHelper {
1991
2003
  static createSlug(name) {
@@ -2104,12 +2116,12 @@ class HomeShopService {
2104
2116
  get gender() {
2105
2117
  return this.homeId === 'mens_market' ? 'masculino' : undefined;
2106
2118
  }
2107
- 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 }); }
2108
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: HomeShopService }); }
2109
2119
  }
2110
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: HomeShopService, decorators: [{
2120
+ 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 });
2121
+ HomeShopService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService });
2122
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService, decorators: [{
2111
2123
  type: Injectable
2112
- }], ctorParameters: () => [{ type: undefined, decorators: [{
2124
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2113
2125
  type: Inject,
2114
2126
  args: ['CategoryRepository']
2115
2127
  }] }, { type: undefined, decorators: [{
@@ -2121,7 +2133,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
2121
2133
  }] }, { type: i1$2.Shops, decorators: [{
2122
2134
  type: Inject,
2123
2135
  args: [DEFAULT_SHOP]
2124
- }] }] });
2136
+ }] }]; } });
2125
2137
 
2126
2138
  class OrderService {
2127
2139
  constructor(angularFirestore, orderRepository) {
@@ -2135,15 +2147,15 @@ class OrderService {
2135
2147
  .subscribe((doc) => this.orderSubject.next(doc));
2136
2148
  return this.orderSubject;
2137
2149
  }
2138
- 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 }); }
2139
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OrderService }); }
2140
2150
  }
2141
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OrderService, decorators: [{
2151
+ 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 });
2152
+ OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService });
2153
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
2142
2154
  type: Injectable
2143
- }], ctorParameters: () => [{ type: i1$1.Firestore }, { type: i1$2.OrderFirestoreRepository, decorators: [{
2155
+ }], ctorParameters: function () { return [{ type: i1$1.Firestore }, { type: i1$2.OrderFirestoreRepository, decorators: [{
2144
2156
  type: Inject,
2145
2157
  args: ['OrderRepository']
2146
- }] }] });
2158
+ }] }]; } });
2147
2159
 
2148
2160
  class ShippingService {
2149
2161
  constructor(http, apiUrl, homeService) {
@@ -2221,15 +2233,15 @@ class ShippingService {
2221
2233
  }
2222
2234
  return false;
2223
2235
  }
2224
- 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 }); }
2225
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ShippingService }); }
2226
2236
  }
2227
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ShippingService, decorators: [{
2237
+ 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 });
2238
+ ShippingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService });
2239
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, decorators: [{
2228
2240
  type: Injectable
2229
- }], ctorParameters: () => [{ type: i1$3.HttpClient }, { type: undefined, decorators: [{
2241
+ }], ctorParameters: function () { return [{ type: i1$3.HttpClient }, { type: undefined, decorators: [{
2230
2242
  type: Inject,
2231
2243
  args: [BACKEND_URL]
2232
- }] }, { type: HomeShopService }] });
2244
+ }] }, { type: HomeShopService }]; } });
2233
2245
 
2234
2246
  class AngularConnectModule {
2235
2247
  static initializeApp(defaultShop, options, nameOrConfig) {
@@ -2253,45 +2265,45 @@ class AngularConnectModule {
2253
2265
  ],
2254
2266
  };
2255
2267
  }
2256
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2257
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, imports: [i1$4.FirebaseAppModule, AngularElasticSeachModule,
2258
- AngularFirebaseAuthModule,
2259
- AngularFirestoreModule,
2260
- AngularHasuraGraphQLModule] }); }
2261
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, providers: [
2262
- AuthService,
2263
- CartService,
2264
- CatalogService,
2265
- CategoryService,
2266
- CheckoutService,
2267
- CheckoutSubscriptionService,
2268
- CouponService,
2269
- HomeShopService,
2270
- OrderService,
2271
- ShippingService,
2272
- WishlistService,
2273
- {
2274
- provide: UpdateUserImage,
2275
- useFactory: (userRepository, fileUploader) => {
2276
- return new UpdateUserImage(userRepository, fileUploader);
2277
- },
2278
- deps: ['UserRepository', 'FileUploaderService'],
2279
- },
2280
- ], imports: [provideFirebaseApp((injector) => {
2281
- const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
2282
- try {
2283
- return getApp(appName);
2284
- }
2285
- catch (error) {
2286
- return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
2287
- }
2288
- }),
2289
- AngularElasticSeachModule,
2290
- AngularFirebaseAuthModule,
2291
- AngularFirestoreModule,
2292
- AngularHasuraGraphQLModule] }); }
2293
2268
  }
2294
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, decorators: [{
2269
+ AngularConnectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2270
+ AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [i1$4.FirebaseAppModule, AngularElasticSeachModule,
2271
+ AngularFirebaseAuthModule,
2272
+ AngularFirestoreModule,
2273
+ AngularHasuraGraphQLModule] });
2274
+ AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, providers: [
2275
+ AuthService,
2276
+ CartService,
2277
+ CatalogService,
2278
+ CategoryService,
2279
+ CheckoutService,
2280
+ CheckoutSubscriptionService,
2281
+ CouponService,
2282
+ HomeShopService,
2283
+ OrderService,
2284
+ ShippingService,
2285
+ WishlistService,
2286
+ {
2287
+ provide: UpdateUserImage,
2288
+ useFactory: (userRepository, fileUploader) => {
2289
+ return new UpdateUserImage(userRepository, fileUploader);
2290
+ },
2291
+ deps: ['UserRepository', 'FileUploaderService'],
2292
+ },
2293
+ ], imports: [provideFirebaseApp((injector) => {
2294
+ const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
2295
+ try {
2296
+ return getApp(appName);
2297
+ }
2298
+ catch (error) {
2299
+ return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
2300
+ }
2301
+ }),
2302
+ AngularElasticSeachModule,
2303
+ AngularFirebaseAuthModule,
2304
+ AngularFirestoreModule,
2305
+ AngularHasuraGraphQLModule] });
2306
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, decorators: [{
2295
2307
  type: NgModule,
2296
2308
  args: [{
2297
2309
  imports: [