@infrab4a/connect-angular 4.2.0-beta.0 → 4.2.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/angular-firestore.module.d.ts +1 -1
  2. package/angular-hasura-graphql.module.d.ts +1 -1
  3. package/{esm2022 → esm2020}/angular-connect.module.mjs +17 -17
  4. package/esm2020/angular-elastic-search.module.mjs +34 -0
  5. package/esm2020/angular-firebase-auth.module.mjs +130 -0
  6. package/esm2020/angular-firestore.module.mjs +459 -0
  7. package/esm2020/angular-hasura-graphql.module.mjs +243 -0
  8. package/{esm2022 → esm2020}/services/auth.service.mjs +4 -4
  9. package/{esm2022 → esm2020}/services/cart.service.mjs +4 -4
  10. package/{esm2022 → esm2020}/services/catalog/adapters/new-category-structure.adapter.mjs +4 -4
  11. package/{esm2022 → esm2020}/services/catalog/adapters/old-category-structure.adapter.mjs +4 -4
  12. package/{esm2022 → esm2020}/services/catalog/catalog.service.mjs +4 -4
  13. package/{esm2022 → esm2020}/services/catalog/category.service.mjs +4 -4
  14. package/{esm2022 → esm2020}/services/catalog/wishlist.service.mjs +4 -4
  15. package/{esm2022 → esm2020}/services/checkout-subscription.service.mjs +4 -4
  16. package/{esm2022 → esm2020}/services/checkout.service.mjs +4 -4
  17. package/{esm2022 → esm2020}/services/coupon.service.mjs +4 -4
  18. package/{esm2022 → esm2020}/services/home-shop.service.mjs +11 -11
  19. package/{esm2022 → esm2020}/services/order.service.mjs +4 -4
  20. package/{esm2022 → esm2020}/services/shipping.service.mjs +4 -4
  21. package/fesm2015/infrab4a-connect-angular.mjs +2196 -0
  22. package/fesm2015/infrab4a-connect-angular.mjs.map +1 -0
  23. package/{fesm2022 → fesm2020}/infrab4a-connect-angular.mjs +411 -411
  24. package/{fesm2022 → fesm2020}/infrab4a-connect-angular.mjs.map +1 -1
  25. package/package.json +12 -6
  26. package/services/cart.service.d.ts +1 -1
  27. package/services/catalog/catalog.service.d.ts +5 -5
  28. package/services/catalog/types/product-sort.type.d.ts +1 -1
  29. package/services/home-shop.service.d.ts +1 -1
  30. package/services/types/required-checkout-data.type.d.ts +1 -1
  31. package/services/types/required-checkout-subscription-data.type.d.ts +1 -1
  32. package/types/firebase-app-config.type.d.ts +1 -1
  33. package/esm2022/angular-elastic-search.module.mjs +0 -34
  34. package/esm2022/angular-firebase-auth.module.mjs +0 -130
  35. package/esm2022/angular-firestore.module.mjs +0 -459
  36. package/esm2022/angular-hasura-graphql.module.mjs +0 -243
  37. /package/{esm2022 → esm2020}/consts/backend-url.const.mjs +0 -0
  38. /package/{esm2022 → esm2020}/consts/category-structure.mjs +0 -0
  39. /package/{esm2022 → esm2020}/consts/default-shop.const.mjs +0 -0
  40. /package/{esm2022 → esm2020}/consts/es-config.const.mjs +0 -0
  41. /package/{esm2022 → esm2020}/consts/firebase-const.mjs +0 -0
  42. /package/{esm2022 → esm2020}/consts/hasura-options.const.mjs +0 -0
  43. /package/{esm2022 → esm2020}/consts/index.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}/services/catalog/adapters/category-structure.adapter.mjs +0 -0
  49. /package/{esm2022 → esm2020}/services/catalog/adapters/index.mjs +0 -0
  50. /package/{esm2022 → esm2020}/services/catalog/enums/index.mjs +0 -0
  51. /package/{esm2022 → esm2020}/services/catalog/enums/product-sorts.enum.mjs +0 -0
  52. /package/{esm2022 → esm2020}/services/catalog/index.mjs +0 -0
  53. /package/{esm2022 → esm2020}/services/catalog/models/category-with-tree.model.mjs +0 -0
  54. /package/{esm2022 → esm2020}/services/catalog/models/index.mjs +0 -0
  55. /package/{esm2022 → esm2020}/services/catalog/types/index.mjs +0 -0
  56. /package/{esm2022 → esm2020}/services/catalog/types/product-sort.type.mjs +0 -0
  57. /package/{esm2022 → esm2020}/services/helpers/index.mjs +0 -0
  58. /package/{esm2022 → esm2020}/services/helpers/util.helper.mjs +0 -0
  59. /package/{esm2022 → esm2020}/services/index.mjs +0 -0
  60. /package/{esm2022 → esm2020}/services/types/index.mjs +0 -0
  61. /package/{esm2022 → esm2020}/services/types/required-checkout-data.type.mjs +0 -0
  62. /package/{esm2022 → esm2020}/services/types/required-checkout-subscription-data.type.mjs +0 -0
  63. /package/{esm2022 → esm2020}/services/types/shipping-methods.type.mjs +0 -0
  64. /package/{esm2022 → esm2020}/types/firebase-app-config.type.mjs +0 -0
  65. /package/{esm2022 → esm2020}/types/index.mjs +0 -0
@@ -26,17 +26,17 @@ class AngularElasticSeachModule {
26
26
  providers: [{ provide: ES_CONFIG, useValue: options }],
27
27
  };
28
28
  }
29
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularElasticSeachModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
30
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.6", ngImport: i0, type: AngularElasticSeachModule }); }
31
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularElasticSeachModule, providers: [
32
- {
33
- provide: ProductsIndex,
34
- useFactory: (configuration) => new ProductsIndex(new AxiosAdapter(configuration)),
35
- deps: [ES_CONFIG],
36
- },
37
- ] }); }
38
29
  }
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularElasticSeachModule, decorators: [{
30
+ AngularElasticSeachModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
31
+ AngularElasticSeachModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule });
32
+ AngularElasticSeachModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule, providers: [
33
+ {
34
+ provide: ProductsIndex,
35
+ useFactory: (configuration) => new ProductsIndex(new AxiosAdapter(configuration)),
36
+ deps: [ES_CONFIG],
37
+ },
38
+ ] });
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule, decorators: [{
40
40
  type: NgModule,
41
41
  args: [{
42
42
  providers: [
@@ -70,60 +70,60 @@ class AngularFirebaseAuthModule {
70
70
  ],
71
71
  };
72
72
  }
73
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularFirebaseAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
74
- static { thismod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.6", ngImport: i0, type: AngularFirebaseAuthModule, imports: [i1.FirebaseAppModule, i1$1.AuthModule] }); }
75
- static { thisinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularFirebaseAuthModule, providers: [
76
- {
77
- provide: 'Authentication',
78
- useFactory: (authenticationService, userRepository) => {
79
- return new Authentication(authenticationService, userRepository);
80
- },
81
- deps: ['AuthenticationService', 'UserRepository'],
73
+ }
74
+ AngularFirebaseAuthModulefac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
75
+ AngularFirebaseAuthModulemod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, imports: [i1.FirebaseAppModule, i1$1.AuthModule] });
76
+ AngularFirebaseAuthModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, providers: [
77
+ {
78
+ provide: 'Authentication',
79
+ useFactory: (authenticationService, userRepository) => {
80
+ return new Authentication(authenticationService, userRepository);
82
81
  },
83
- {
84
- provide: 'AuthenticationService',
85
- useFactory: (angularFireAuth) => {
86
- return new AuthenticationFirebaseAuthService(angularFireAuth);
87
- },
88
- deps: [Auth],
82
+ deps: ['AuthenticationService', 'UserRepository'],
83
+ },
84
+ {
85
+ provide: 'AuthenticationService',
86
+ useFactory: (angularFireAuth) => {
87
+ return new AuthenticationFirebaseAuthService(angularFireAuth);
89
88
  },
90
- {
91
- provide: 'Register',
92
- useFactory: (registerService, userRepository) => {
93
- return new Register(registerService, userRepository);
94
- },
95
- deps: ['RegisterService', 'UserRepository'],
89
+ deps: [Auth],
90
+ },
91
+ {
92
+ provide: 'Register',
93
+ useFactory: (registerService, userRepository) => {
94
+ return new Register(registerService, userRepository);
96
95
  },
97
- {
98
- provide: 'RegisterService',
99
- useFactory: (angularFireAuth) => {
100
- return new RegisterFirebaseAuthService(angularFireAuth);
101
- },
102
- deps: [Auth],
96
+ deps: ['RegisterService', 'UserRepository'],
97
+ },
98
+ {
99
+ provide: 'RegisterService',
100
+ useFactory: (angularFireAuth) => {
101
+ return new RegisterFirebaseAuthService(angularFireAuth);
103
102
  },
104
- {
105
- provide: 'SignOut',
106
- useFactory: (authenticationService) => {
107
- return new SignOut(authenticationService);
108
- },
109
- deps: ['AuthenticationService'],
103
+ deps: [Auth],
104
+ },
105
+ {
106
+ provide: 'SignOut',
107
+ useFactory: (authenticationService) => {
108
+ return new SignOut(authenticationService);
110
109
  },
111
- {
112
- provide: 'RecoveryPassword',
113
- useFactory: (authenticationService) => {
114
- return new RecoveryPassword(authenticationService);
115
- },
116
- deps: ['AuthenticationService'],
110
+ deps: ['AuthenticationService'],
111
+ },
112
+ {
113
+ provide: 'RecoveryPassword',
114
+ useFactory: (authenticationService) => {
115
+ return new RecoveryPassword(authenticationService);
117
116
  },
118
- ], imports: [provideFirebaseApp((injector) => {
119
- const appName = injector.get(FIREBASE_APP_NAME);
120
- return appName
121
- ? initializeApp(injector.get(FIREBASE_OPTIONS), appName)
122
- : initializeApp(injector.get(FIREBASE_OPTIONS));
123
- }),
124
- provideAuth(() => getAuth())] }); }
125
- }
126
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
117
+ deps: ['AuthenticationService'],
118
+ },
119
+ ], imports: [provideFirebaseApp((injector) => {
120
+ const appName = injector.get(FIREBASE_APP_NAME);
121
+ return appName
122
+ ? initializeApp(injector.get(FIREBASE_OPTIONS), appName)
123
+ : initializeApp(injector.get(FIREBASE_OPTIONS));
124
+ }),
125
+ provideAuth(() => getAuth())] });
126
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
127
127
  type: NgModule,
128
128
  args: [{
129
129
  imports: [
@@ -200,222 +200,222 @@ class AngularFirestoreModule {
200
200
  ],
201
201
  };
202
202
  }
203
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
204
- static { thismod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.6", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1.FirebaseAppModule, i1$2.FirestoreModule] }); }
205
- static { thisinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularFirestoreModule, providers: [
206
- {
207
- provide: 'FirestoreOptions',
208
- useFactory: (firestore, platformId) => ({
209
- firestore,
210
- interceptors: {
211
- request: (request) => {
212
- if (isPlatformBrowser(platformId))
213
- return request;
214
- const interval = setInterval(() => { }, 100);
215
- request.interval = interval;
203
+ }
204
+ AngularFirestoreModulefac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
205
+ AngularFirestoreModulemod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1.FirebaseAppModule, i1$2.FirestoreModule] });
206
+ AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, providers: [
207
+ {
208
+ provide: 'FirestoreOptions',
209
+ useFactory: (firestore, platformId) => ({
210
+ firestore,
211
+ interceptors: {
212
+ request: (request) => {
213
+ if (isPlatformBrowser(platformId))
216
214
  return request;
217
- },
218
- response: (response, request) => {
219
- if (isPlatformBrowser(platformId))
220
- return response;
221
- clearInterval(request.interval);
215
+ const interval = setInterval(() => { }, 100);
216
+ request.interval = interval;
217
+ return request;
218
+ },
219
+ response: (response, request) => {
220
+ if (isPlatformBrowser(platformId))
222
221
  return response;
223
- },
222
+ clearInterval(request.interval);
223
+ return response;
224
224
  },
225
- }),
226
- deps: [Firestore, PLATFORM_ID],
227
- },
228
- {
229
- provide: 'BeautyProfileRepository',
230
- useFactory: (config, userRepository) => {
231
- return new UserBeautyProfileFirestoreRepository(config, userRepository);
232
225
  },
233
- deps: ['FirestoreOptions', 'UserRepository'],
226
+ }),
227
+ deps: [Firestore, PLATFORM_ID],
228
+ },
229
+ {
230
+ provide: 'BeautyProfileRepository',
231
+ useFactory: (config, userRepository) => {
232
+ return new UserBeautyProfileFirestoreRepository(config, userRepository);
234
233
  },
235
- {
236
- provide: 'Buy2WinRepository',
237
- useFactory: (options) => {
238
- return new Buy2WinFirestoreRepository(options);
239
- },
240
- deps: ['FirestoreOptions'],
234
+ deps: ['FirestoreOptions', 'UserRepository'],
235
+ },
236
+ {
237
+ provide: 'Buy2WinRepository',
238
+ useFactory: (options) => {
239
+ return new Buy2WinFirestoreRepository(options);
241
240
  },
242
- {
243
- provide: CategoryFirestoreRepository,
244
- useFactory: (options) => {
245
- return new CategoryFirestoreRepository(options);
246
- },
247
- deps: ['FirestoreOptions'],
241
+ deps: ['FirestoreOptions'],
242
+ },
243
+ {
244
+ provide: CategoryFirestoreRepository,
245
+ useFactory: (options) => {
246
+ return new CategoryFirestoreRepository(options);
248
247
  },
249
- {
250
- provide: 'CheckoutRepository',
251
- useFactory: (options) => {
252
- return new CheckoutFirestoreRepository(options);
253
- },
254
- deps: ['FirestoreOptions'],
248
+ deps: ['FirestoreOptions'],
249
+ },
250
+ {
251
+ provide: 'CheckoutRepository',
252
+ useFactory: (options) => {
253
+ return new CheckoutFirestoreRepository(options);
255
254
  },
256
- {
257
- provide: 'CheckoutSubscriptionRepository',
258
- useFactory: (options) => {
259
- return new CheckoutSubscriptionFirestoreRepository(options);
260
- },
261
- deps: ['FirestoreOptions'],
255
+ deps: ['FirestoreOptions'],
256
+ },
257
+ {
258
+ provide: 'CheckoutSubscriptionRepository',
259
+ useFactory: (options) => {
260
+ return new CheckoutSubscriptionFirestoreRepository(options);
262
261
  },
263
- {
264
- provide: 'CouponRepository',
265
- useFactory: (options) => {
266
- return new CouponFirestoreRepository(options);
267
- },
268
- deps: ['FirestoreOptions'],
262
+ deps: ['FirestoreOptions'],
263
+ },
264
+ {
265
+ provide: 'CouponRepository',
266
+ useFactory: (options) => {
267
+ return new CouponFirestoreRepository(options);
269
268
  },
270
- {
271
- provide: 'CampaignHashtagRepository',
272
- useFactory: (options) => {
273
- return new CampaignHashtagFirestoreRepository(options);
274
- },
275
- deps: ['FirestoreOptions'],
269
+ deps: ['FirestoreOptions'],
270
+ },
271
+ {
272
+ provide: 'CampaignHashtagRepository',
273
+ useFactory: (options) => {
274
+ return new CampaignHashtagFirestoreRepository(options);
276
275
  },
277
- {
278
- provide: 'CampaignDashboardRepository',
279
- useFactory: (options) => {
280
- return new CampaignDashboardFirestoreRepository(options);
281
- },
282
- deps: ['FirestoreOptions'],
276
+ deps: ['FirestoreOptions'],
277
+ },
278
+ {
279
+ provide: 'CampaignDashboardRepository',
280
+ useFactory: (options) => {
281
+ return new CampaignDashboardFirestoreRepository(options);
283
282
  },
284
- {
285
- provide: 'EditionRepository',
286
- useFactory: (options, subscriptionRepository) => {
287
- return new SubscriptionEditionFirestoreRepository(options, subscriptionRepository);
288
- },
289
- deps: ['FirestoreOptions', 'SubscriptionRepository'],
283
+ deps: ['FirestoreOptions'],
284
+ },
285
+ {
286
+ provide: 'EditionRepository',
287
+ useFactory: (options, subscriptionRepository) => {
288
+ return new SubscriptionEditionFirestoreRepository(options, subscriptionRepository);
290
289
  },
291
- {
292
- provide: 'HomeRepository',
293
- useFactory: (options) => {
294
- return new HomeFirestoreRepository(options);
295
- },
296
- deps: ['FirestoreOptions'],
290
+ deps: ['FirestoreOptions', 'SubscriptionRepository'],
291
+ },
292
+ {
293
+ provide: 'HomeRepository',
294
+ useFactory: (options) => {
295
+ return new HomeFirestoreRepository(options);
297
296
  },
298
- {
299
- provide: 'LeadRepository',
300
- useFactory: (options) => {
301
- return new LeadFirestoreRepository(options);
302
- },
303
- deps: ['FirestoreOptions'],
297
+ deps: ['FirestoreOptions'],
298
+ },
299
+ {
300
+ provide: 'LeadRepository',
301
+ useFactory: (options) => {
302
+ return new LeadFirestoreRepository(options);
304
303
  },
305
- {
306
- provide: 'LegacyOrderRepository',
307
- useFactory: (options) => {
308
- return new LegacyOrderFirestoreRepository(options);
309
- },
310
- deps: ['FirestoreOptions'],
304
+ deps: ['FirestoreOptions'],
305
+ },
306
+ {
307
+ provide: 'LegacyOrderRepository',
308
+ useFactory: (options) => {
309
+ return new LegacyOrderFirestoreRepository(options);
311
310
  },
312
- {
313
- provide: 'ShopMenuRepository',
314
- useFactory: (options) => {
315
- return new ShopMenuFirestoreRepository(options);
316
- },
317
- deps: ['FirestoreOptions'],
311
+ deps: ['FirestoreOptions'],
312
+ },
313
+ {
314
+ provide: 'ShopMenuRepository',
315
+ useFactory: (options) => {
316
+ return new ShopMenuFirestoreRepository(options);
318
317
  },
319
- {
320
- provide: 'OrderRepository',
321
- useFactory: (options) => {
322
- return new OrderFirestoreRepository(options);
323
- },
324
- deps: ['FirestoreOptions'],
318
+ deps: ['FirestoreOptions'],
319
+ },
320
+ {
321
+ provide: 'OrderRepository',
322
+ useFactory: (options) => {
323
+ return new OrderFirestoreRepository(options);
325
324
  },
326
- {
327
- provide: 'PaymentRepository',
328
- useFactory: (options) => {
329
- return new PaymentFirestoreRepository(options);
330
- },
331
- deps: ['FirestoreOptions'],
325
+ deps: ['FirestoreOptions'],
326
+ },
327
+ {
328
+ provide: 'PaymentRepository',
329
+ useFactory: (options) => {
330
+ return new PaymentFirestoreRepository(options);
332
331
  },
333
- {
334
- provide: ProductFirestoreRepository,
335
- useFactory: (options) => {
336
- return new ProductFirestoreRepository(options);
337
- },
338
- deps: ['FirestoreOptions'],
332
+ deps: ['FirestoreOptions'],
333
+ },
334
+ {
335
+ provide: ProductFirestoreRepository,
336
+ useFactory: (options) => {
337
+ return new ProductFirestoreRepository(options);
339
338
  },
340
- {
341
- provide: 'ShopSettingsRepository',
342
- useFactory: (options) => {
343
- return new ShopSettingsFirestoreRepository(options);
344
- },
345
- deps: ['FirestoreOptions'],
339
+ deps: ['FirestoreOptions'],
340
+ },
341
+ {
342
+ provide: 'ShopSettingsRepository',
343
+ useFactory: (options) => {
344
+ return new ShopSettingsFirestoreRepository(options);
346
345
  },
347
- {
348
- provide: 'SubscriptionPaymentRepository',
349
- useFactory: (options, subscriptionRepository) => {
350
- return new SubscriptionPaymentFirestoreRepository(options, subscriptionRepository);
351
- },
352
- deps: ['FirestoreOptions', 'SubscriptionRepository'],
346
+ deps: ['FirestoreOptions'],
347
+ },
348
+ {
349
+ provide: 'SubscriptionPaymentRepository',
350
+ useFactory: (options, subscriptionRepository) => {
351
+ return new SubscriptionPaymentFirestoreRepository(options, subscriptionRepository);
353
352
  },
354
- {
355
- provide: 'SubscriptionPlanRepository',
356
- useFactory: (options) => {
357
- return new SubscriptionPlanFirestoreRepository(options);
358
- },
359
- deps: ['FirestoreOptions'],
353
+ deps: ['FirestoreOptions', 'SubscriptionRepository'],
354
+ },
355
+ {
356
+ provide: 'SubscriptionPlanRepository',
357
+ useFactory: (options) => {
358
+ return new SubscriptionPlanFirestoreRepository(options);
360
359
  },
361
- {
362
- provide: 'SubscriptionProductRepository',
363
- useFactory: (options) => {
364
- return new SubscriptionProductFirestoreRepository(options);
365
- },
366
- deps: ['FirestoreOptions'],
360
+ deps: ['FirestoreOptions'],
361
+ },
362
+ {
363
+ provide: 'SubscriptionProductRepository',
364
+ useFactory: (options) => {
365
+ return new SubscriptionProductFirestoreRepository(options);
367
366
  },
368
- {
369
- provide: 'SubscriptionRepository',
370
- useFactory: (options) => {
371
- return new SubscriptionFirestoreRepository(options);
372
- },
373
- deps: ['FirestoreOptions'],
367
+ deps: ['FirestoreOptions'],
368
+ },
369
+ {
370
+ provide: 'SubscriptionRepository',
371
+ useFactory: (options) => {
372
+ return new SubscriptionFirestoreRepository(options);
374
373
  },
375
- {
376
- provide: 'UserRepository',
377
- useFactory: (options) => {
378
- return new UserFirestoreRepository(options);
379
- },
380
- deps: ['FirestoreOptions'],
374
+ deps: ['FirestoreOptions'],
375
+ },
376
+ {
377
+ provide: 'UserRepository',
378
+ useFactory: (options) => {
379
+ return new UserFirestoreRepository(options);
381
380
  },
382
- {
383
- provide: 'UserAddressRepository',
384
- useFactory: (options, userRepository) => {
385
- return new UserAddressFirestoreRepository(options, userRepository);
386
- },
387
- deps: ['FirestoreOptions', 'UserRepository'],
381
+ deps: ['FirestoreOptions'],
382
+ },
383
+ {
384
+ provide: 'UserAddressRepository',
385
+ useFactory: (options, userRepository) => {
386
+ return new UserAddressFirestoreRepository(options, userRepository);
388
387
  },
389
- {
390
- provide: 'UserPaymentMethodRepository',
391
- useFactory: (options, userRepository) => {
392
- return new UserPaymentMethodFirestoreRepository(options, userRepository);
393
- },
394
- deps: ['FirestoreOptions', 'UserRepository'],
388
+ deps: ['FirestoreOptions', 'UserRepository'],
389
+ },
390
+ {
391
+ provide: 'UserPaymentMethodRepository',
392
+ useFactory: (options, userRepository) => {
393
+ return new UserPaymentMethodFirestoreRepository(options, userRepository);
395
394
  },
396
- {
397
- provide: ProductVariantFirestoreRepository,
398
- useFactory: (options, productRepository) => {
399
- return new ProductVariantFirestoreRepository(options, productRepository);
400
- },
401
- deps: ['FirestoreOptions', ProductFirestoreRepository],
395
+ deps: ['FirestoreOptions', 'UserRepository'],
396
+ },
397
+ {
398
+ provide: ProductVariantFirestoreRepository,
399
+ useFactory: (options, productRepository) => {
400
+ return new ProductVariantFirestoreRepository(options, productRepository);
402
401
  },
403
- ], imports: [AngularElasticSeachModule,
404
- provideFirebaseApp((injector) => {
405
- const appName = injector.get(FIREBASE_APP_NAME);
406
- return appName
407
- ? initializeApp$1(injector.get(FIREBASE_OPTIONS), appName)
408
- : initializeApp$1(injector.get(FIREBASE_OPTIONS));
409
- }),
410
- provideFirestore((injector) => {
411
- if (!MobileOperationSystemCheckerHelper.isAppleDevice())
412
- return getFirestore();
413
- const firestore = initializeFirestore(injector.get(FirebaseApp), { experimentalForceLongPolling: true });
414
- enableIndexedDbPersistence(firestore).catch(console.error);
415
- return firestore;
416
- })] }); }
417
- }
418
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularFirestoreModule, decorators: [{
402
+ deps: ['FirestoreOptions', ProductFirestoreRepository],
403
+ },
404
+ ], imports: [AngularElasticSeachModule,
405
+ provideFirebaseApp((injector) => {
406
+ const appName = injector.get(FIREBASE_APP_NAME);
407
+ return appName
408
+ ? initializeApp$1(injector.get(FIREBASE_OPTIONS), appName)
409
+ : initializeApp$1(injector.get(FIREBASE_OPTIONS));
410
+ }),
411
+ provideFirestore((injector) => {
412
+ if (!MobileOperationSystemCheckerHelper.isAppleDevice())
413
+ return getFirestore();
414
+ const firestore = initializeFirestore(injector.get(FirebaseApp), { experimentalForceLongPolling: true });
415
+ enableIndexedDbPersistence(firestore).catch(console.error);
416
+ return firestore;
417
+ })] });
418
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, decorators: [{
419
419
  type: NgModule,
420
420
  args: [{
421
421
  imports: [
@@ -643,121 +643,121 @@ class AngularHasuraGraphQLModule {
643
643
  providers: [{ provide: HASURA_OPTIONS, useValue: options }],
644
644
  };
645
645
  }
646
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularHasuraGraphQLModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
647
- static { thismod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.6", ngImport: i0, type: AngularHasuraGraphQLModule }); }
648
- static { thisinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularHasuraGraphQLModule, providers: [
649
- {
650
- provide: 'HasuraConfig',
651
- useFactory: (options, platformId) => ({
652
- endpoint: options.endpoint,
653
- authOptions: options.credentials,
654
- interceptors: {
655
- request: (request) => {
656
- if (isPlatformBrowser(platformId))
657
- return request;
658
- const interval = setInterval(() => { }, 100);
659
- request.interval = interval;
646
+ }
647
+ AngularHasuraGraphQLModulefac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
648
+ AngularHasuraGraphQLModulemod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule });
649
+ AngularHasuraGraphQLModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, providers: [
650
+ {
651
+ provide: 'HasuraConfig',
652
+ useFactory: (options, platformId) => ({
653
+ endpoint: options.endpoint,
654
+ authOptions: options.credentials,
655
+ interceptors: {
656
+ request: (request) => {
657
+ if (isPlatformBrowser(platformId))
660
658
  return request;
661
- },
662
- response: (response, request) => {
663
- if (isPlatformBrowser(platformId))
664
- return response;
665
- clearInterval(request.interval);
659
+ const interval = setInterval(() => { }, 100);
660
+ request.interval = interval;
661
+ return request;
662
+ },
663
+ response: (response, request) => {
664
+ if (isPlatformBrowser(platformId))
666
665
  return response;
667
- },
666
+ clearInterval(request.interval);
667
+ return response;
668
668
  },
669
- }),
670
- deps: [HASURA_OPTIONS, PLATFORM_ID],
671
- },
672
- {
673
- provide: 'CategoryRepository',
674
- useExisting: CategoryHasuraGraphQLRepository,
675
- },
676
- {
677
- provide: CategoryHasuraGraphQLRepository,
678
- useFactory: (options, productRepository, categoryFilterRepository) => {
679
- return new CategoryHasuraGraphQLRepository(options, productRepository, categoryFilterRepository);
680
- },
681
- deps: ['HasuraConfig', ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
682
- },
683
- {
684
- provide: 'ProductRepository',
685
- useExisting: ProductHasuraGraphQLRepository,
686
- },
687
- {
688
- provide: ProductHasuraGraphQLRepository,
689
- useFactory: (hasuraConfig) => {
690
- return new ProductHasuraGraphQLRepository(hasuraConfig);
691
- },
692
- deps: ['HasuraConfig'],
693
- },
694
- {
695
- provide: 'VariantRepository',
696
- useExisting: VariantHasuraGraphQLRepository,
697
- },
698
- {
699
- provide: VariantHasuraGraphQLRepository,
700
- useFactory: (hasuraConfig) => {
701
- return new VariantHasuraGraphQLRepository(hasuraConfig);
702
- },
703
- deps: ['HasuraConfig'],
704
- },
705
- {
706
- provide: 'CategoryFilterRepository',
707
- useExisting: CategoryFilterHasuraGraphQLRepository,
708
- },
709
- {
710
- provide: CategoryFilterHasuraGraphQLRepository,
711
- useFactory: (options) => {
712
- return new CategoryFilterHasuraGraphQLRepository(options);
713
- },
714
- deps: ['HasuraConfig'],
715
- },
716
- {
717
- provide: 'FilterOptionRepository',
718
- useExisting: FilterOptionHasuraGraphQLRepository,
719
- },
720
- {
721
- provide: FilterOptionHasuraGraphQLRepository,
722
- useFactory: (options) => {
723
- return new FilterOptionHasuraGraphQLRepository(options);
724
669
  },
725
- deps: ['HasuraConfig'],
670
+ }),
671
+ deps: [HASURA_OPTIONS, PLATFORM_ID],
672
+ },
673
+ {
674
+ provide: 'CategoryRepository',
675
+ useExisting: CategoryHasuraGraphQLRepository,
676
+ },
677
+ {
678
+ provide: CategoryHasuraGraphQLRepository,
679
+ useFactory: (options, productRepository, categoryFilterRepository) => {
680
+ return new CategoryHasuraGraphQLRepository(options, productRepository, categoryFilterRepository);
726
681
  },
727
- {
728
- provide: 'FilterRepository',
729
- useExisting: FilterHasuraGraphQLRepository,
682
+ deps: ['HasuraConfig', ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
683
+ },
684
+ {
685
+ provide: 'ProductRepository',
686
+ useExisting: ProductHasuraGraphQLRepository,
687
+ },
688
+ {
689
+ provide: ProductHasuraGraphQLRepository,
690
+ useFactory: (hasuraConfig) => {
691
+ return new ProductHasuraGraphQLRepository(hasuraConfig);
730
692
  },
731
- {
732
- provide: FilterHasuraGraphQLRepository,
733
- useFactory: (options, filterOptionRepository, categoryFilterRepository) => {
734
- return new FilterHasuraGraphQLRepository(options, filterOptionRepository, categoryFilterRepository);
735
- },
736
- deps: ['HasuraConfig', FilterOptionHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
693
+ deps: ['HasuraConfig'],
694
+ },
695
+ {
696
+ provide: 'VariantRepository',
697
+ useExisting: VariantHasuraGraphQLRepository,
698
+ },
699
+ {
700
+ provide: VariantHasuraGraphQLRepository,
701
+ useFactory: (hasuraConfig) => {
702
+ return new VariantHasuraGraphQLRepository(hasuraConfig);
737
703
  },
738
- {
739
- provide: CategoryCollectionChildrenHasuraGraphQLRepository,
740
- useFactory: (options) => new CategoryCollectionChildrenHasuraGraphQLRepository(options),
741
- deps: ['HasuraConfig'],
704
+ deps: ['HasuraConfig'],
705
+ },
706
+ {
707
+ provide: 'CategoryFilterRepository',
708
+ useExisting: CategoryFilterHasuraGraphQLRepository,
709
+ },
710
+ {
711
+ provide: CategoryFilterHasuraGraphQLRepository,
712
+ useFactory: (options) => {
713
+ return new CategoryFilterHasuraGraphQLRepository(options);
742
714
  },
743
- {
744
- provide: 'CategoryCollectionChildrenRepository',
745
- useExisting: CategoryCollectionChildrenHasuraGraphQLRepository,
715
+ deps: ['HasuraConfig'],
716
+ },
717
+ {
718
+ provide: 'FilterOptionRepository',
719
+ useExisting: FilterOptionHasuraGraphQLRepository,
720
+ },
721
+ {
722
+ provide: FilterOptionHasuraGraphQLRepository,
723
+ useFactory: (options) => {
724
+ return new FilterOptionHasuraGraphQLRepository(options);
746
725
  },
747
- {
748
- provide: WishlistHasuraGraphQLRepository,
749
- useFactory: (options, categoryFilterRepository) => {
750
- return new WishlistHasuraGraphQLRepository(options, categoryFilterRepository);
751
- },
752
- deps: ['HasuraConfig', CategoryFilterHasuraGraphQLRepository],
726
+ deps: ['HasuraConfig'],
727
+ },
728
+ {
729
+ provide: 'FilterRepository',
730
+ useExisting: FilterHasuraGraphQLRepository,
731
+ },
732
+ {
733
+ provide: FilterHasuraGraphQLRepository,
734
+ useFactory: (options, filterOptionRepository, categoryFilterRepository) => {
735
+ return new FilterHasuraGraphQLRepository(options, filterOptionRepository, categoryFilterRepository);
753
736
  },
754
- {
755
- provide: 'WishlistRepository',
756
- useExisting: WishlistHasuraGraphQLRepository,
737
+ deps: ['HasuraConfig', FilterOptionHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
738
+ },
739
+ {
740
+ provide: CategoryCollectionChildrenHasuraGraphQLRepository,
741
+ useFactory: (options) => new CategoryCollectionChildrenHasuraGraphQLRepository(options),
742
+ deps: ['HasuraConfig'],
743
+ },
744
+ {
745
+ provide: 'CategoryCollectionChildrenRepository',
746
+ useExisting: CategoryCollectionChildrenHasuraGraphQLRepository,
747
+ },
748
+ {
749
+ provide: WishlistHasuraGraphQLRepository,
750
+ useFactory: (options, categoryFilterRepository) => {
751
+ return new WishlistHasuraGraphQLRepository(options, categoryFilterRepository);
757
752
  },
758
- ] }); }
759
- }
760
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularHasuraGraphQLModule, decorators: [{
753
+ deps: ['HasuraConfig', CategoryFilterHasuraGraphQLRepository],
754
+ },
755
+ {
756
+ provide: 'WishlistRepository',
757
+ useExisting: WishlistHasuraGraphQLRepository,
758
+ },
759
+ ] });
760
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, decorators: [{
761
761
  type: NgModule,
762
762
  args: [{
763
763
  providers: [
@@ -895,10 +895,10 @@ class AuthService {
895
895
  getFireUser() {
896
896
  return authState(this.angularFireAuth).pipe(catchError(() => of(null)));
897
897
  }
898
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AuthService, deps: [{ token: i1$1.Auth }, { token: 'UserRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
899
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AuthService }); }
900
898
  }
901
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AuthService, decorators: [{
899
+ AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, deps: [{ token: i1$1.Auth }, { token: 'UserRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
900
+ AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService });
901
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, decorators: [{
902
902
  type: Injectable
903
903
  }], ctorParameters: function () { return [{ type: i1$1.Auth }, { type: undefined, decorators: [{
904
904
  type: Inject,
@@ -1094,10 +1094,10 @@ class CouponService {
1094
1094
  }
1095
1095
  return couponUseLimits;
1096
1096
  }
1097
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CouponService, deps: [{ token: 'CouponRepository' }, { token: DEFAULT_SHOP }, { token: 'OrderRepository' }, { token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
1098
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CouponService, providedIn: 'root' }); }
1099
1097
  }
1100
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CouponService, decorators: [{
1098
+ 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 });
1099
+ CouponService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, providedIn: 'root' });
1100
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, decorators: [{
1101
1101
  type: Injectable,
1102
1102
  args: [{
1103
1103
  providedIn: 'root',
@@ -1158,10 +1158,10 @@ class CheckoutService {
1158
1158
  cookie.set('checkoutId', checkout.id);
1159
1159
  return checkout;
1160
1160
  }
1161
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CheckoutService, deps: [{ token: CouponService }, { token: 'CheckoutRepository' }, { token: 'OrderRepository' }, { token: 'UserRepository' }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
1162
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CheckoutService }); }
1163
1161
  }
1164
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CheckoutService, decorators: [{
1162
+ 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 });
1163
+ CheckoutService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutService });
1164
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutService, decorators: [{
1165
1165
  type: Injectable
1166
1166
  }], ctorParameters: function () { return [{ type: CouponService }, { type: undefined, decorators: [{
1167
1167
  type: Inject,
@@ -1425,10 +1425,10 @@ class CartService {
1425
1425
  });
1426
1426
  });
1427
1427
  }
1428
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CartService, deps: [{ token: AuthService }, { token: CheckoutService }, { token: DEFAULT_SHOP }, { token: 'ProductRepository' }, { token: 'CategoryRepository' }, { token: 'VariantRepository' }, { token: 'Buy2WinRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
1429
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CartService }); }
1430
1428
  }
1431
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CartService, decorators: [{
1429
+ 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 });
1430
+ CartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService });
1431
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, decorators: [{
1432
1432
  type: Injectable
1433
1433
  }], ctorParameters: function () { return [{ type: AuthService }, { type: CheckoutService }, { type: i1$3.Shops, decorators: [{
1434
1434
  type: Inject,
@@ -1550,10 +1550,10 @@ class CatalogService {
1550
1550
  .search(term, 999, this.shop)
1551
1551
  .then((data) => ({ id: { operator: Where.IN, value: data.hits.map(({ _source }) => _source.id) } }));
1552
1552
  }
1553
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CatalogService, deps: [{ token: 'ProductRepository' }, { token: CATEGORY_STRUCTURE }, { token: DEFAULT_SHOP }, { token: i1$3.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable }); }
1554
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CatalogService }); }
1555
1553
  }
1556
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CatalogService, decorators: [{
1554
+ CatalogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, deps: [{ token: 'ProductRepository' }, { token: CATEGORY_STRUCTURE }, { token: DEFAULT_SHOP }, { token: i1$3.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable });
1555
+ CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService });
1556
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
1557
1557
  type: Injectable
1558
1558
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1559
1559
  type: Inject,
@@ -1590,10 +1590,10 @@ class CategoryService {
1590
1590
  .find({ filters: { categoryId: +category.id } })
1591
1591
  .then(({ data }) => data.map((categoryFilter) => categoryFilter.filter));
1592
1592
  }
1593
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CategoryService, deps: [{ token: 'ProductRepository' }, { token: 'CategoryRepository' }, { token: 'CategoryFilterRepository' }, { token: CATEGORY_STRUCTURE }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
1594
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CategoryService }); }
1595
1593
  }
1596
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CategoryService, decorators: [{
1594
+ 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 });
1595
+ CategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService });
1596
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService, decorators: [{
1597
1597
  type: Injectable
1598
1598
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1599
1599
  type: Inject,
@@ -1658,10 +1658,10 @@ class NewCategoryStructureAdapter {
1658
1658
  ? this.categoryRepository.get({ id: category.id })
1659
1659
  : category;
1660
1660
  }
1661
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: NewCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
1662
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: NewCategoryStructureAdapter }); }
1663
1661
  }
1664
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: NewCategoryStructureAdapter, decorators: [{
1662
+ NewCategoryStructureAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
1663
+ NewCategoryStructureAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter });
1664
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter, decorators: [{
1665
1665
  type: Injectable
1666
1666
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1667
1667
  type: Inject,
@@ -1678,10 +1678,10 @@ class OldCategoryStructureAdapter {
1678
1678
  : await this.categoryRepository.get({ id: category.id }).then((categoryFound) => categoryFound.products);
1679
1679
  return { id: { operator: Where.IN, value: productsIds } };
1680
1680
  }
1681
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: OldCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
1682
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: OldCategoryStructureAdapter }); }
1683
1681
  }
1684
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: OldCategoryStructureAdapter, decorators: [{
1682
+ OldCategoryStructureAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
1683
+ OldCategoryStructureAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter });
1684
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter, decorators: [{
1685
1685
  type: Injectable
1686
1686
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1687
1687
  type: Inject,
@@ -1768,10 +1768,10 @@ class WishlistService {
1768
1768
  }
1769
1769
  return wishlist;
1770
1770
  }
1771
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: WishlistService, deps: [{ token: 'WishlistRepository' }, { token: DEFAULT_SHOP }, { token: 'ProductRepository' }, { token: 'CategoryFilterRepository' }, { token: i1$3.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable }); }
1772
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: WishlistService }); }
1773
1771
  }
1774
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: WishlistService, decorators: [{
1772
+ WishlistService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, deps: [{ token: 'WishlistRepository' }, { token: DEFAULT_SHOP }, { token: 'ProductRepository' }, { token: 'CategoryFilterRepository' }, { token: i1$3.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable });
1773
+ WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
1774
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
1775
1775
  type: Injectable
1776
1776
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1777
1777
  type: Inject,
@@ -1819,10 +1819,10 @@ class CheckoutSubscriptionService {
1819
1819
  calcDiscountSubscription(coupon) {
1820
1820
  return this.getCheckoutSubscription().pipe(concatMap((checkout) => this.couponService.calcDiscountSubscription(coupon, checkout).pipe()));
1821
1821
  }
1822
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CheckoutSubscriptionService, deps: [{ token: 'CheckoutSubscriptionRepository' }, { token: 'SubscriptionRepository' }, { token: CouponService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1823
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CheckoutSubscriptionService }); }
1824
1822
  }
1825
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CheckoutSubscriptionService, decorators: [{
1823
+ 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 });
1824
+ CheckoutSubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService });
1825
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService, decorators: [{
1826
1826
  type: Injectable
1827
1827
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1828
1828
  type: Inject,
@@ -1851,13 +1851,6 @@ class UtilHelper {
1851
1851
  }
1852
1852
 
1853
1853
  class HomeShopService {
1854
- get homeId() {
1855
- if (this.defaultShop === Shops.GLAMSHOP)
1856
- return 'glamshop';
1857
- if (this.defaultShop === Shops.MENSMARKET)
1858
- return 'mens_market';
1859
- return null;
1860
- }
1861
1854
  constructor(categoryRepository, homeRepository, productRepository, defaultShop) {
1862
1855
  this.categoryRepository = categoryRepository;
1863
1856
  this.homeRepository = homeRepository;
@@ -1883,6 +1876,13 @@ class HomeShopService {
1883
1876
  ]))) || [],
1884
1877
  });
1885
1878
  }
1879
+ get homeId() {
1880
+ if (this.defaultShop === Shops.GLAMSHOP)
1881
+ return 'glamshop';
1882
+ if (this.defaultShop === Shops.MENSMARKET)
1883
+ return 'mens_market';
1884
+ return null;
1885
+ }
1886
1886
  getHomeData() {
1887
1887
  return this.getHomeConfiguration().pipe(map((home) => (home?.data?.expiresAt > new Date() ? home : null)), concatMap((home) => home
1888
1888
  ? of(home)
@@ -1938,10 +1938,10 @@ class HomeShopService {
1938
1938
  data,
1939
1939
  })).pipe(tap(() => (this.homeConfiguration.data = data)), map(() => this.homeConfiguration));
1940
1940
  }
1941
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: HomeShopService, deps: [{ token: 'CategoryRepository' }, { token: 'HomeRepository' }, { token: 'ProductRepository' }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
1942
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: HomeShopService }); }
1943
1941
  }
1944
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: HomeShopService, decorators: [{
1942
+ 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 });
1943
+ HomeShopService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService });
1944
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService, decorators: [{
1945
1945
  type: Injectable
1946
1946
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1947
1947
  type: Inject,
@@ -1969,10 +1969,10 @@ class OrderService {
1969
1969
  .subscribe((doc) => this.orderSubject.next(doc));
1970
1970
  return this.orderSubject;
1971
1971
  }
1972
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: OrderService, deps: [{ token: i1$2.Firestore }, { token: 'OrderRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
1973
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: OrderService }); }
1974
1972
  }
1975
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: OrderService, decorators: [{
1973
+ OrderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, deps: [{ token: i1$2.Firestore }, { token: 'OrderRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
1974
+ OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService });
1975
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
1976
1976
  type: Injectable
1977
1977
  }], ctorParameters: function () { return [{ type: i1$2.Firestore }, { type: i1$3.OrderFirestoreRepository, decorators: [{
1978
1978
  type: Inject,
@@ -2055,10 +2055,10 @@ class ShippingService {
2055
2055
  }
2056
2056
  return false;
2057
2057
  }
2058
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: ShippingService, deps: [{ token: i1$4.HttpClient }, { token: BACKEND_URL }, { token: HomeShopService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2059
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: ShippingService }); }
2060
2058
  }
2061
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: ShippingService, decorators: [{
2059
+ ShippingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, deps: [{ token: i1$4.HttpClient }, { token: BACKEND_URL }, { token: HomeShopService }], target: i0.ɵɵFactoryTarget.Injectable });
2060
+ ShippingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService });
2061
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, decorators: [{
2062
2062
  type: Injectable
2063
2063
  }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
2064
2064
  type: Inject,
@@ -2085,23 +2085,23 @@ class AngularConnectModule {
2085
2085
  ],
2086
2086
  };
2087
2087
  }
2088
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2089
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.6", ngImport: i0, type: AngularConnectModule, imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] }); }
2090
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularConnectModule, providers: [
2091
- AuthService,
2092
- CartService,
2093
- CatalogService,
2094
- CategoryService,
2095
- CheckoutService,
2096
- CheckoutSubscriptionService,
2097
- CouponService,
2098
- HomeShopService,
2099
- OrderService,
2100
- ShippingService,
2101
- WishlistService,
2102
- ], imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] }); }
2103
2088
  }
2104
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularConnectModule, decorators: [{
2089
+ AngularConnectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2090
+ AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] });
2091
+ AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, providers: [
2092
+ AuthService,
2093
+ CartService,
2094
+ CatalogService,
2095
+ CategoryService,
2096
+ CheckoutService,
2097
+ CheckoutSubscriptionService,
2098
+ CouponService,
2099
+ HomeShopService,
2100
+ OrderService,
2101
+ ShippingService,
2102
+ WishlistService,
2103
+ ], imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] });
2104
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, decorators: [{
2105
2105
  type: NgModule,
2106
2106
  args: [{
2107
2107
  imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule],