@infrab4a/connect-angular 4.10.0-beta.11 → 4.10.0-beta.12

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 (62) hide show
  1. package/esm2020/angular-connect.module.mjs +133 -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 +499 -0
  5. package/esm2020/angular-hasura-graphql.module.mjs +287 -0
  6. package/{esm2022 → esm2020}/persistence/cookie-data-persistence.mjs +4 -4
  7. package/{esm2022 → esm2020}/services/auth.service.mjs +6 -6
  8. package/{esm2022 → esm2020}/services/cart.service.mjs +6 -6
  9. package/{esm2022 → esm2020}/services/catalog/adapters/new-category-structure.adapter.mjs +6 -6
  10. package/{esm2022 → esm2020}/services/catalog/adapters/old-category-structure.adapter.mjs +6 -6
  11. package/{esm2022 → esm2020}/services/catalog/catalog.service.mjs +6 -6
  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 +2534 -0
  22. package/fesm2015/infrab4a-connect-angular.mjs.map +1 -0
  23. package/{fesm2022 → fesm2020}/infrab4a-connect-angular.mjs +535 -535
  24. package/{fesm2022 → fesm2020}/infrab4a-connect-angular.mjs.map +1 -1
  25. package/package.json +12 -6
  26. package/esm2022/angular-connect.module.mjs +0 -133
  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 -499
  30. package/esm2022/angular-hasura-graphql.module.mjs +0 -287
  31. /package/{esm2022 → esm2020}/consts/backend-url.const.mjs +0 -0
  32. /package/{esm2022 → esm2020}/consts/category-structure.mjs +0 -0
  33. /package/{esm2022 → esm2020}/consts/default-shop.const.mjs +0 -0
  34. /package/{esm2022 → esm2020}/consts/es-config.const.mjs +0 -0
  35. /package/{esm2022 → esm2020}/consts/firebase-const.mjs +0 -0
  36. /package/{esm2022 → esm2020}/consts/hasura-options.const.mjs +0 -0
  37. /package/{esm2022 → esm2020}/consts/index.mjs +0 -0
  38. /package/{esm2022 → esm2020}/consts/persistence.const.mjs +0 -0
  39. /package/{esm2022 → esm2020}/consts/storage-base-url.const.mjs +0 -0
  40. /package/{esm2022 → esm2020}/helpers/index.mjs +0 -0
  41. /package/{esm2022 → esm2020}/helpers/mobile-operation-system-checker.helper.mjs +0 -0
  42. /package/{esm2022 → esm2020}/index.mjs +0 -0
  43. /package/{esm2022 → esm2020}/infrab4a-connect-angular.mjs +0 -0
  44. /package/{esm2022 → esm2020}/persistence/data-persistence.mjs +0 -0
  45. /package/{esm2022 → esm2020}/persistence/index.mjs +0 -0
  46. /package/{esm2022 → esm2020}/services/catalog/adapters/category-structure.adapter.mjs +0 -0
  47. /package/{esm2022 → esm2020}/services/catalog/adapters/index.mjs +0 -0
  48. /package/{esm2022 → esm2020}/services/catalog/enums/index.mjs +0 -0
  49. /package/{esm2022 → esm2020}/services/catalog/enums/product-sorts.enum.mjs +0 -0
  50. /package/{esm2022 → esm2020}/services/catalog/index.mjs +0 -0
  51. /package/{esm2022 → esm2020}/services/catalog/models/index.mjs +0 -0
  52. /package/{esm2022 → esm2020}/services/catalog/types/index.mjs +0 -0
  53. /package/{esm2022 → esm2020}/services/catalog/types/product-sort.type.mjs +0 -0
  54. /package/{esm2022 → esm2020}/services/helpers/index.mjs +0 -0
  55. /package/{esm2022 → esm2020}/services/helpers/util.helper.mjs +0 -0
  56. /package/{esm2022 → esm2020}/services/index.mjs +0 -0
  57. /package/{esm2022 → esm2020}/services/types/index.mjs +0 -0
  58. /package/{esm2022 → esm2020}/services/types/required-checkout-data.type.mjs +0 -0
  59. /package/{esm2022 → esm2020}/services/types/required-checkout-subscription-data.type.mjs +0 -0
  60. /package/{esm2022 → esm2020}/services/types/shipping-methods.type.mjs +0 -0
  61. /package/{esm2022 → esm2020}/types/firebase-app-config.type.mjs +0 -0
  62. /package/{esm2022 → esm2020}/types/index.mjs +0 -0
@@ -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)))],
@@ -189,243 +189,243 @@ class AngularFirestoreModule {
189
189
  ],
190
190
  };
191
191
  }
192
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
193
- static { thismod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1$1.FirestoreModule] }); }
194
- static { thisinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirestoreModule, providers: [
195
- {
196
- provide: 'FirestoreOptions',
197
- useFactory: (firestore, platformId) => ({
198
- firestore: new ConnectFirestoreService(firestore),
199
- interceptors: {
200
- request: (request) => {
201
- if (isPlatformBrowser(platformId))
202
- return request;
203
- const interval = setInterval(() => { }, 100);
204
- request.interval = interval;
192
+ }
193
+ AngularFirestoreModulefac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
194
+ AngularFirestoreModulemod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1$1.FirestoreModule] });
195
+ AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, providers: [
196
+ {
197
+ provide: 'FirestoreOptions',
198
+ useFactory: (firestore, platformId) => ({
199
+ firestore: new ConnectFirestoreService(firestore),
200
+ interceptors: {
201
+ request: (request) => {
202
+ if (isPlatformBrowser(platformId))
205
203
  return request;
206
- },
207
- response: (response, request) => {
208
- if (isPlatformBrowser(platformId))
209
- return response;
210
- clearInterval(request.interval);
204
+ const interval = setInterval(() => { }, 100);
205
+ request.interval = interval;
206
+ return request;
207
+ },
208
+ response: (response, request) => {
209
+ if (isPlatformBrowser(platformId))
211
210
  return response;
212
- },
211
+ clearInterval(request.interval);
212
+ return response;
213
213
  },
214
- }),
215
- deps: [Firestore, PLATFORM_ID],
216
- },
217
- {
218
- provide: 'BeautyProfileRepository',
219
- useFactory: (config, userRepository) => {
220
- return new UserBeautyProfileFirestoreRepository(config, userRepository);
221
- },
222
- deps: ['FirestoreOptions', 'UserRepository'],
223
- },
224
- {
225
- provide: 'Buy2WinRepository',
226
- useFactory: (options) => {
227
- return new Buy2WinFirestoreRepository(options);
228
- },
229
- deps: ['FirestoreOptions'],
230
- },
231
- {
232
- provide: CategoryFirestoreRepository,
233
- useFactory: (options) => {
234
- return new CategoryFirestoreRepository(options);
235
- },
236
- deps: ['FirestoreOptions'],
237
- },
238
- {
239
- provide: 'CheckoutRepository',
240
- useFactory: (options) => {
241
- return new CheckoutFirestoreRepository(options);
242
- },
243
- deps: ['FirestoreOptions'],
244
- },
245
- {
246
- provide: 'CheckoutSubscriptionRepository',
247
- useFactory: (options) => {
248
- return new CheckoutSubscriptionFirestoreRepository(options);
249
- },
250
- deps: ['FirestoreOptions'],
251
- },
252
- {
253
- provide: 'CouponRepository',
254
- useFactory: (options) => {
255
- return new CouponFirestoreRepository(options);
256
- },
257
- deps: ['FirestoreOptions'],
258
- },
259
- {
260
- provide: 'CampaignHashtagRepository',
261
- useFactory: (options) => {
262
- return new CampaignHashtagFirestoreRepository(options);
263
214
  },
264
- deps: ['FirestoreOptions'],
265
- },
266
- {
267
- provide: 'CampaignDashboardRepository',
268
- useFactory: (options) => {
269
- return new CampaignDashboardFirestoreRepository(options);
270
- },
271
- deps: ['FirestoreOptions'],
272
- },
273
- {
274
- provide: 'EditionRepository',
275
- useFactory: (options, subscriptionRepository) => {
276
- return new SubscriptionEditionFirestoreRepository(options, subscriptionRepository);
277
- },
278
- deps: ['FirestoreOptions', 'SubscriptionRepository'],
279
- },
280
- {
281
- provide: 'HomeRepository',
282
- useFactory: (options) => {
283
- return new HomeFirestoreRepository(options);
284
- },
285
- deps: ['FirestoreOptions'],
286
- },
287
- {
288
- provide: 'LeadRepository',
289
- useFactory: (options) => {
290
- return new LeadFirestoreRepository(options);
291
- },
292
- deps: ['FirestoreOptions'],
293
- },
294
- {
295
- provide: 'LegacyOrderRepository',
296
- useFactory: (options) => {
297
- return new LegacyOrderFirestoreRepository(options);
298
- },
299
- deps: ['FirestoreOptions'],
300
- },
301
- {
302
- provide: 'ShopMenuRepository',
303
- useFactory: (options) => {
304
- return new ShopMenuFirestoreRepository(options);
305
- },
306
- deps: ['FirestoreOptions'],
307
- },
308
- {
309
- provide: 'OrderRepository',
310
- useFactory: (options) => {
311
- return new OrderFirestoreRepository(options);
312
- },
313
- deps: ['FirestoreOptions'],
314
- },
315
- {
316
- provide: 'PaymentRepository',
317
- useFactory: (options) => {
318
- return new PaymentFirestoreRepository(options);
319
- },
320
- deps: ['FirestoreOptions'],
321
- },
322
- {
323
- provide: ProductFirestoreRepository,
324
- useFactory: (options) => {
325
- return new ProductFirestoreRepository(options);
326
- },
327
- deps: ['FirestoreOptions'],
328
- },
329
- {
330
- provide: 'ShopSettingsRepository',
331
- useFactory: (options) => {
332
- return new ShopSettingsFirestoreRepository(options);
333
- },
334
- deps: ['FirestoreOptions'],
335
- },
336
- {
337
- provide: 'SubscriptionPaymentRepository',
338
- useFactory: (options, subscriptionRepository) => {
339
- return new SubscriptionPaymentFirestoreRepository(options, subscriptionRepository);
340
- },
341
- deps: ['FirestoreOptions', 'SubscriptionRepository'],
342
- },
343
- {
344
- provide: 'SubscriptionPlanRepository',
345
- useFactory: (options) => {
346
- return new SubscriptionPlanFirestoreRepository(options);
347
- },
348
- deps: ['FirestoreOptions'],
349
- },
350
- {
351
- provide: 'SubscriptionProductRepository',
352
- useFactory: (options) => {
353
- return new SubscriptionProductFirestoreRepository(options);
354
- },
355
- deps: ['FirestoreOptions'],
356
- },
357
- {
358
- provide: 'SubscriptionRepository',
359
- useFactory: (options) => {
360
- return new SubscriptionFirestoreRepository(options);
361
- },
362
- deps: ['FirestoreOptions'],
363
- },
364
- {
365
- provide: 'UserRepository',
366
- useFactory: (options) => {
367
- return new UserFirestoreRepository(options);
368
- },
369
- deps: ['FirestoreOptions'],
370
- },
371
- {
372
- provide: 'UserAddressRepository',
373
- useFactory: (options, userRepository) => {
374
- return new UserAddressFirestoreRepository(options, userRepository);
375
- },
376
- deps: ['FirestoreOptions', 'UserRepository'],
377
- },
378
- {
379
- provide: 'UserPaymentMethodRepository',
380
- useFactory: (options, userRepository) => {
381
- return new UserPaymentMethodFirestoreRepository(options, userRepository);
382
- },
383
- deps: ['FirestoreOptions', 'UserRepository'],
384
- },
385
- {
386
- provide: 'SubscriptionMaterializationRepository',
387
- useFactory: (options) => {
388
- return new SubscriptionMaterializationFirestoreRepository(options);
389
- },
390
- deps: ['FirestoreOptions'],
391
- },
392
- {
393
- provide: 'SubscriptionSummaryRepository',
394
- useFactory: (options) => {
395
- return new SubscriptionSummaryFirestoreRepository(options);
396
- },
397
- deps: ['FirestoreOptions'],
398
- },
399
- {
400
- provide: ProductVariantFirestoreRepository,
401
- useFactory: (options, productRepository) => {
402
- return new ProductVariantFirestoreRepository(options, productRepository);
403
- },
404
- deps: ['FirestoreOptions', ProductFirestoreRepository],
405
- },
406
- {
407
- provide: 'OrderBlockedRepository',
408
- useFactory: (options) => {
409
- return new OrderBlockedFirestoreRepository(options);
410
- },
411
- deps: ['FirestoreOptions'],
412
- },
413
- ], imports: [AngularElasticSeachModule,
414
- provideFirestore((injector) => {
415
- const platformId = injector.get(PLATFORM_ID);
416
- if (isPlatformServer(platformId) || !MobileOperationSystemCheckerHelper.isAppleDevice())
417
- return initializeFirestore(injector.get(FirebaseApp), {
418
- ignoreUndefinedProperties: true,
419
- });
420
- const firestore = initializeFirestore(injector.get(FirebaseApp), {
421
- experimentalForceLongPolling: true,
215
+ }),
216
+ deps: [Firestore, PLATFORM_ID],
217
+ },
218
+ {
219
+ provide: 'BeautyProfileRepository',
220
+ useFactory: (config, userRepository) => {
221
+ return new UserBeautyProfileFirestoreRepository(config, userRepository);
222
+ },
223
+ deps: ['FirestoreOptions', 'UserRepository'],
224
+ },
225
+ {
226
+ provide: 'Buy2WinRepository',
227
+ useFactory: (options) => {
228
+ return new Buy2WinFirestoreRepository(options);
229
+ },
230
+ deps: ['FirestoreOptions'],
231
+ },
232
+ {
233
+ provide: CategoryFirestoreRepository,
234
+ useFactory: (options) => {
235
+ return new CategoryFirestoreRepository(options);
236
+ },
237
+ deps: ['FirestoreOptions'],
238
+ },
239
+ {
240
+ provide: 'CheckoutRepository',
241
+ useFactory: (options) => {
242
+ return new CheckoutFirestoreRepository(options);
243
+ },
244
+ deps: ['FirestoreOptions'],
245
+ },
246
+ {
247
+ provide: 'CheckoutSubscriptionRepository',
248
+ useFactory: (options) => {
249
+ return new CheckoutSubscriptionFirestoreRepository(options);
250
+ },
251
+ deps: ['FirestoreOptions'],
252
+ },
253
+ {
254
+ provide: 'CouponRepository',
255
+ useFactory: (options) => {
256
+ return new CouponFirestoreRepository(options);
257
+ },
258
+ deps: ['FirestoreOptions'],
259
+ },
260
+ {
261
+ provide: 'CampaignHashtagRepository',
262
+ useFactory: (options) => {
263
+ return new CampaignHashtagFirestoreRepository(options);
264
+ },
265
+ deps: ['FirestoreOptions'],
266
+ },
267
+ {
268
+ provide: 'CampaignDashboardRepository',
269
+ useFactory: (options) => {
270
+ return new CampaignDashboardFirestoreRepository(options);
271
+ },
272
+ deps: ['FirestoreOptions'],
273
+ },
274
+ {
275
+ provide: 'EditionRepository',
276
+ useFactory: (options, subscriptionRepository) => {
277
+ return new SubscriptionEditionFirestoreRepository(options, subscriptionRepository);
278
+ },
279
+ deps: ['FirestoreOptions', 'SubscriptionRepository'],
280
+ },
281
+ {
282
+ provide: 'HomeRepository',
283
+ useFactory: (options) => {
284
+ return new HomeFirestoreRepository(options);
285
+ },
286
+ deps: ['FirestoreOptions'],
287
+ },
288
+ {
289
+ provide: 'LeadRepository',
290
+ useFactory: (options) => {
291
+ return new LeadFirestoreRepository(options);
292
+ },
293
+ deps: ['FirestoreOptions'],
294
+ },
295
+ {
296
+ provide: 'LegacyOrderRepository',
297
+ useFactory: (options) => {
298
+ return new LegacyOrderFirestoreRepository(options);
299
+ },
300
+ deps: ['FirestoreOptions'],
301
+ },
302
+ {
303
+ provide: 'ShopMenuRepository',
304
+ useFactory: (options) => {
305
+ return new ShopMenuFirestoreRepository(options);
306
+ },
307
+ deps: ['FirestoreOptions'],
308
+ },
309
+ {
310
+ provide: 'OrderRepository',
311
+ useFactory: (options) => {
312
+ return new OrderFirestoreRepository(options);
313
+ },
314
+ deps: ['FirestoreOptions'],
315
+ },
316
+ {
317
+ provide: 'PaymentRepository',
318
+ useFactory: (options) => {
319
+ return new PaymentFirestoreRepository(options);
320
+ },
321
+ deps: ['FirestoreOptions'],
322
+ },
323
+ {
324
+ provide: ProductFirestoreRepository,
325
+ useFactory: (options) => {
326
+ return new ProductFirestoreRepository(options);
327
+ },
328
+ deps: ['FirestoreOptions'],
329
+ },
330
+ {
331
+ provide: 'ShopSettingsRepository',
332
+ useFactory: (options) => {
333
+ return new ShopSettingsFirestoreRepository(options);
334
+ },
335
+ deps: ['FirestoreOptions'],
336
+ },
337
+ {
338
+ provide: 'SubscriptionPaymentRepository',
339
+ useFactory: (options, subscriptionRepository) => {
340
+ return new SubscriptionPaymentFirestoreRepository(options, subscriptionRepository);
341
+ },
342
+ deps: ['FirestoreOptions', 'SubscriptionRepository'],
343
+ },
344
+ {
345
+ provide: 'SubscriptionPlanRepository',
346
+ useFactory: (options) => {
347
+ return new SubscriptionPlanFirestoreRepository(options);
348
+ },
349
+ deps: ['FirestoreOptions'],
350
+ },
351
+ {
352
+ provide: 'SubscriptionProductRepository',
353
+ useFactory: (options) => {
354
+ return new SubscriptionProductFirestoreRepository(options);
355
+ },
356
+ deps: ['FirestoreOptions'],
357
+ },
358
+ {
359
+ provide: 'SubscriptionRepository',
360
+ useFactory: (options) => {
361
+ return new SubscriptionFirestoreRepository(options);
362
+ },
363
+ deps: ['FirestoreOptions'],
364
+ },
365
+ {
366
+ provide: 'UserRepository',
367
+ useFactory: (options) => {
368
+ return new UserFirestoreRepository(options);
369
+ },
370
+ deps: ['FirestoreOptions'],
371
+ },
372
+ {
373
+ provide: 'UserAddressRepository',
374
+ useFactory: (options, userRepository) => {
375
+ return new UserAddressFirestoreRepository(options, userRepository);
376
+ },
377
+ deps: ['FirestoreOptions', 'UserRepository'],
378
+ },
379
+ {
380
+ provide: 'UserPaymentMethodRepository',
381
+ useFactory: (options, userRepository) => {
382
+ return new UserPaymentMethodFirestoreRepository(options, userRepository);
383
+ },
384
+ deps: ['FirestoreOptions', 'UserRepository'],
385
+ },
386
+ {
387
+ provide: 'SubscriptionMaterializationRepository',
388
+ useFactory: (options) => {
389
+ return new SubscriptionMaterializationFirestoreRepository(options);
390
+ },
391
+ deps: ['FirestoreOptions'],
392
+ },
393
+ {
394
+ provide: 'SubscriptionSummaryRepository',
395
+ useFactory: (options) => {
396
+ return new SubscriptionSummaryFirestoreRepository(options);
397
+ },
398
+ deps: ['FirestoreOptions'],
399
+ },
400
+ {
401
+ provide: ProductVariantFirestoreRepository,
402
+ useFactory: (options, productRepository) => {
403
+ return new ProductVariantFirestoreRepository(options, productRepository);
404
+ },
405
+ deps: ['FirestoreOptions', ProductFirestoreRepository],
406
+ },
407
+ {
408
+ provide: 'OrderBlockedRepository',
409
+ useFactory: (options) => {
410
+ return new OrderBlockedFirestoreRepository(options);
411
+ },
412
+ deps: ['FirestoreOptions'],
413
+ },
414
+ ], imports: [AngularElasticSeachModule,
415
+ provideFirestore((injector) => {
416
+ const platformId = injector.get(PLATFORM_ID);
417
+ if (isPlatformServer(platformId) || !MobileOperationSystemCheckerHelper.isAppleDevice())
418
+ return initializeFirestore(injector.get(FirebaseApp), {
422
419
  ignoreUndefinedProperties: true,
423
- localCache: memoryLocalCache(),
424
420
  });
425
- return firestore;
426
- })] }); }
427
- }
428
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirestoreModule, decorators: [{
421
+ const firestore = initializeFirestore(injector.get(FirebaseApp), {
422
+ experimentalForceLongPolling: true,
423
+ ignoreUndefinedProperties: true,
424
+ localCache: memoryLocalCache(),
425
+ });
426
+ return firestore;
427
+ })] });
428
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, decorators: [{
429
429
  type: NgModule,
430
430
  args: [{
431
431
  imports: [
@@ -674,143 +674,143 @@ class AngularHasuraGraphQLModule {
674
674
  providers: [{ provide: HASURA_OPTIONS, useValue: options }],
675
675
  };
676
676
  }
677
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularHasuraGraphQLModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
678
- static { thismod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularHasuraGraphQLModule }); }
679
- static { thisinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularHasuraGraphQLModule, providers: [
680
- {
681
- provide: 'HasuraConfig',
682
- useFactory: (options, platformId) => ({
683
- endpoint: options.endpoint,
684
- authOptions: options.credentials,
685
- interceptors: {
686
- request: (request) => {
687
- if (isPlatformBrowser(platformId))
688
- return request;
689
- const interval = setInterval(() => { }, 100);
690
- request.interval = interval;
677
+ }
678
+ AngularHasuraGraphQLModulefac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
679
+ AngularHasuraGraphQLModulemod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule });
680
+ AngularHasuraGraphQLModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, providers: [
681
+ {
682
+ provide: 'HasuraConfig',
683
+ useFactory: (options, platformId) => ({
684
+ endpoint: options.endpoint,
685
+ authOptions: options.credentials,
686
+ interceptors: {
687
+ request: (request) => {
688
+ if (isPlatformBrowser(platformId))
691
689
  return request;
692
- },
693
- response: (response, request) => {
694
- if (isPlatformBrowser(platformId))
695
- return response;
696
- clearInterval(request.interval);
690
+ const interval = setInterval(() => { }, 100);
691
+ request.interval = interval;
692
+ return request;
693
+ },
694
+ response: (response, request) => {
695
+ if (isPlatformBrowser(platformId))
697
696
  return response;
698
- },
697
+ clearInterval(request.interval);
698
+ return response;
699
699
  },
700
- }),
701
- deps: [HASURA_OPTIONS, PLATFORM_ID],
702
- },
703
- {
704
- provide: 'CategoryRepository',
705
- useExisting: CategoryHasuraGraphQLRepository,
706
- },
707
- {
708
- provide: CategoryHasuraGraphQLRepository,
709
- useFactory: (options, productRepository, categoryFilterRepository) => {
710
- return new CategoryHasuraGraphQLRepository(options, productRepository, categoryFilterRepository);
711
700
  },
712
- deps: ['HasuraConfig', ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
713
- },
714
- {
715
- provide: 'ProductRepository',
716
- useExisting: ProductHasuraGraphQLRepository,
717
- },
718
- {
719
- provide: ProductHasuraGraphQLRepository,
720
- useFactory: (hasuraConfig) => {
721
- return new ProductHasuraGraphQLRepository(hasuraConfig);
722
- },
723
- deps: ['HasuraConfig'],
724
- },
725
- {
726
- provide: 'ProductReviewsRepository',
727
- useExisting: ProductReviewsHasuraGraphQLRepository,
728
- },
729
- {
730
- provide: ProductReviewsHasuraGraphQLRepository,
731
- useFactory: (hasuraConfig) => {
732
- return new ProductReviewsHasuraGraphQLRepository(hasuraConfig);
733
- },
734
- deps: ['HasuraConfig'],
735
- },
736
- {
737
- provide: 'VariantRepository',
738
- useExisting: VariantHasuraGraphQLRepository,
739
- },
740
- {
741
- provide: VariantHasuraGraphQLRepository,
742
- useFactory: (hasuraConfig) => {
743
- return new VariantHasuraGraphQLRepository(hasuraConfig);
744
- },
745
- deps: ['HasuraConfig'],
746
- },
747
- {
748
- provide: 'ProductStockNotificationRepository',
749
- useExisting: ProductStockNotificationHasuraGraphQLRepository,
750
- },
751
- {
752
- provide: ProductStockNotificationHasuraGraphQLRepository,
753
- useFactory: (hasuraConfig) => {
754
- return new ProductStockNotificationHasuraGraphQLRepository(hasuraConfig);
755
- },
756
- deps: ['HasuraConfig'],
757
- },
758
- {
759
- provide: 'CategoryFilterRepository',
760
- useExisting: CategoryFilterHasuraGraphQLRepository,
761
- },
762
- {
763
- provide: CategoryFilterHasuraGraphQLRepository,
764
- useFactory: (options) => {
765
- return new CategoryFilterHasuraGraphQLRepository(options);
766
- },
767
- deps: ['HasuraConfig'],
768
- },
769
- {
770
- provide: 'FilterOptionRepository',
771
- useExisting: FilterOptionHasuraGraphQLRepository,
772
- },
773
- {
774
- provide: FilterOptionHasuraGraphQLRepository,
775
- useFactory: (options) => {
776
- return new FilterOptionHasuraGraphQLRepository(options);
777
- },
778
- deps: ['HasuraConfig'],
779
- },
780
- {
781
- provide: 'FilterRepository',
782
- useExisting: FilterHasuraGraphQLRepository,
783
- },
784
- {
785
- provide: FilterHasuraGraphQLRepository,
786
- useFactory: (options, filterOptionRepository, categoryFilterRepository) => {
787
- return new FilterHasuraGraphQLRepository(options, filterOptionRepository, categoryFilterRepository);
788
- },
789
- deps: ['HasuraConfig', FilterOptionHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
790
- },
791
- {
792
- provide: CategoryCollectionChildrenHasuraGraphQLRepository,
793
- useFactory: (options) => new CategoryCollectionChildrenHasuraGraphQLRepository(options),
794
- deps: ['HasuraConfig'],
795
- },
796
- {
797
- provide: 'CategoryCollectionChildrenRepository',
798
- useExisting: CategoryCollectionChildrenHasuraGraphQLRepository,
799
- },
800
- {
801
- provide: WishlistHasuraGraphQLRepository,
802
- useFactory: (options, categoryFilterRepository) => {
803
- return new WishlistHasuraGraphQLRepository(options, categoryFilterRepository);
804
- },
805
- deps: ['HasuraConfig', CategoryFilterHasuraGraphQLRepository],
806
- },
807
- {
808
- provide: 'WishlistRepository',
809
- useExisting: WishlistHasuraGraphQLRepository,
810
- },
811
- ] }); }
812
- }
813
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularHasuraGraphQLModule, decorators: [{
701
+ }),
702
+ deps: [HASURA_OPTIONS, PLATFORM_ID],
703
+ },
704
+ {
705
+ provide: 'CategoryRepository',
706
+ useExisting: CategoryHasuraGraphQLRepository,
707
+ },
708
+ {
709
+ provide: CategoryHasuraGraphQLRepository,
710
+ useFactory: (options, productRepository, categoryFilterRepository) => {
711
+ return new CategoryHasuraGraphQLRepository(options, productRepository, categoryFilterRepository);
712
+ },
713
+ deps: ['HasuraConfig', ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
714
+ },
715
+ {
716
+ provide: 'ProductRepository',
717
+ useExisting: ProductHasuraGraphQLRepository,
718
+ },
719
+ {
720
+ provide: ProductHasuraGraphQLRepository,
721
+ useFactory: (hasuraConfig) => {
722
+ return new ProductHasuraGraphQLRepository(hasuraConfig);
723
+ },
724
+ deps: ['HasuraConfig'],
725
+ },
726
+ {
727
+ provide: 'ProductReviewsRepository',
728
+ useExisting: ProductReviewsHasuraGraphQLRepository,
729
+ },
730
+ {
731
+ provide: ProductReviewsHasuraGraphQLRepository,
732
+ useFactory: (hasuraConfig) => {
733
+ return new ProductReviewsHasuraGraphQLRepository(hasuraConfig);
734
+ },
735
+ deps: ['HasuraConfig'],
736
+ },
737
+ {
738
+ provide: 'VariantRepository',
739
+ useExisting: VariantHasuraGraphQLRepository,
740
+ },
741
+ {
742
+ provide: VariantHasuraGraphQLRepository,
743
+ useFactory: (hasuraConfig) => {
744
+ return new VariantHasuraGraphQLRepository(hasuraConfig);
745
+ },
746
+ deps: ['HasuraConfig'],
747
+ },
748
+ {
749
+ provide: 'ProductStockNotificationRepository',
750
+ useExisting: ProductStockNotificationHasuraGraphQLRepository,
751
+ },
752
+ {
753
+ provide: ProductStockNotificationHasuraGraphQLRepository,
754
+ useFactory: (hasuraConfig) => {
755
+ return new ProductStockNotificationHasuraGraphQLRepository(hasuraConfig);
756
+ },
757
+ deps: ['HasuraConfig'],
758
+ },
759
+ {
760
+ provide: 'CategoryFilterRepository',
761
+ useExisting: CategoryFilterHasuraGraphQLRepository,
762
+ },
763
+ {
764
+ provide: CategoryFilterHasuraGraphQLRepository,
765
+ useFactory: (options) => {
766
+ return new CategoryFilterHasuraGraphQLRepository(options);
767
+ },
768
+ deps: ['HasuraConfig'],
769
+ },
770
+ {
771
+ provide: 'FilterOptionRepository',
772
+ useExisting: FilterOptionHasuraGraphQLRepository,
773
+ },
774
+ {
775
+ provide: FilterOptionHasuraGraphQLRepository,
776
+ useFactory: (options) => {
777
+ return new FilterOptionHasuraGraphQLRepository(options);
778
+ },
779
+ deps: ['HasuraConfig'],
780
+ },
781
+ {
782
+ provide: 'FilterRepository',
783
+ useExisting: FilterHasuraGraphQLRepository,
784
+ },
785
+ {
786
+ provide: FilterHasuraGraphQLRepository,
787
+ useFactory: (options, filterOptionRepository, categoryFilterRepository) => {
788
+ return new FilterHasuraGraphQLRepository(options, filterOptionRepository, categoryFilterRepository);
789
+ },
790
+ deps: ['HasuraConfig', FilterOptionHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
791
+ },
792
+ {
793
+ provide: CategoryCollectionChildrenHasuraGraphQLRepository,
794
+ useFactory: (options) => new CategoryCollectionChildrenHasuraGraphQLRepository(options),
795
+ deps: ['HasuraConfig'],
796
+ },
797
+ {
798
+ provide: 'CategoryCollectionChildrenRepository',
799
+ useExisting: CategoryCollectionChildrenHasuraGraphQLRepository,
800
+ },
801
+ {
802
+ provide: WishlistHasuraGraphQLRepository,
803
+ useFactory: (options, categoryFilterRepository) => {
804
+ return new WishlistHasuraGraphQLRepository(options, categoryFilterRepository);
805
+ },
806
+ deps: ['HasuraConfig', CategoryFilterHasuraGraphQLRepository],
807
+ },
808
+ {
809
+ provide: 'WishlistRepository',
810
+ useExisting: WishlistHasuraGraphQLRepository,
811
+ },
812
+ ] });
813
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, decorators: [{
814
814
  type: NgModule,
815
815
  args: [{
816
816
  providers: [
@@ -961,10 +961,10 @@ class CookieDataPersistence {
961
961
  set(key, value) {
962
962
  return from(cookie.set(key, value)).pipe(map(() => { }));
963
963
  }
964
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CookieDataPersistence, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
965
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CookieDataPersistence }); }
966
964
  }
967
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CookieDataPersistence, decorators: [{
965
+ CookieDataPersistence.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CookieDataPersistence, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
966
+ CookieDataPersistence.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CookieDataPersistence });
967
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CookieDataPersistence, decorators: [{
968
968
  type: Injectable
969
969
  }] });
970
970
 
@@ -989,15 +989,15 @@ class AuthService {
989
989
  getFireUser() {
990
990
  return authState(this.angularFireAuth).pipe(catchError(() => of(null)));
991
991
  }
992
- 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 }); }
993
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AuthService }); }
994
992
  }
995
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AuthService, decorators: [{
993
+ 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 });
994
+ AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService });
995
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, decorators: [{
996
996
  type: Injectable
997
- }], ctorParameters: () => [{ type: i1.Auth }, { type: undefined, decorators: [{
997
+ }], ctorParameters: function () { return [{ type: i1.Auth }, { type: undefined, decorators: [{
998
998
  type: Inject,
999
999
  args: ['UserRepository']
1000
- }] }] });
1000
+ }] }]; } });
1001
1001
 
1002
1002
  class CouponService {
1003
1003
  constructor(couponRepository, defaultShop, orderRepository, categoryRepository) {
@@ -1235,15 +1235,15 @@ class CouponService {
1235
1235
  }
1236
1236
  return lineItemsDiscount;
1237
1237
  }
1238
- 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 }); }
1239
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CouponService, providedIn: 'root' }); }
1240
1238
  }
1241
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CouponService, decorators: [{
1239
+ 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 });
1240
+ CouponService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, providedIn: 'root' });
1241
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, decorators: [{
1242
1242
  type: Injectable,
1243
1243
  args: [{
1244
1244
  providedIn: 'root',
1245
1245
  }]
1246
- }], ctorParameters: () => [{ type: undefined, decorators: [{
1246
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1247
1247
  type: Inject,
1248
1248
  args: ['CouponRepository']
1249
1249
  }] }, { type: i1$2.Shops, decorators: [{
@@ -1255,7 +1255,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
1255
1255
  }] }, { type: undefined, decorators: [{
1256
1256
  type: Inject,
1257
1257
  args: ['CategoryRepository']
1258
- }] }] });
1258
+ }] }]; } });
1259
1259
 
1260
1260
  class CheckoutService {
1261
1261
  constructor(couponService, checkoutRepository, userRepository, defaultShop, dataPersistence) {
@@ -1297,12 +1297,12 @@ class CheckoutService {
1297
1297
  await this.dataPersistence.set('checkoutId', checkout.id).toPromise();
1298
1298
  return checkout;
1299
1299
  }
1300
- 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 }); }
1301
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutService }); }
1302
1300
  }
1303
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutService, decorators: [{
1301
+ 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 });
1302
+ CheckoutService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutService });
1303
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutService, decorators: [{
1304
1304
  type: Injectable
1305
- }], ctorParameters: () => [{ type: CouponService }, { type: undefined, decorators: [{
1305
+ }], ctorParameters: function () { return [{ type: CouponService }, { type: undefined, decorators: [{
1306
1306
  type: Inject,
1307
1307
  args: ['CheckoutRepository']
1308
1308
  }] }, { type: undefined, decorators: [{
@@ -1314,7 +1314,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
1314
1314
  }] }, { type: undefined, decorators: [{
1315
1315
  type: Inject,
1316
1316
  args: [PERSISTENCE_PROVIDER]
1317
- }] }] });
1317
+ }] }]; } });
1318
1318
 
1319
1319
  class CartService {
1320
1320
  constructor(authService, checkoutService, defaultShop, productRepository, categoryRepository, variantRepository, buy2WinRepository) {
@@ -1567,12 +1567,12 @@ class CartService {
1567
1567
  });
1568
1568
  });
1569
1569
  }
1570
- 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 }); }
1571
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CartService }); }
1572
1570
  }
1573
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CartService, decorators: [{
1571
+ 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 });
1572
+ CartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService });
1573
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, decorators: [{
1574
1574
  type: Injectable
1575
- }], ctorParameters: () => [{ type: AuthService }, { type: CheckoutService }, { type: i1$2.Shops, decorators: [{
1575
+ }], ctorParameters: function () { return [{ type: AuthService }, { type: CheckoutService }, { type: i1$2.Shops, decorators: [{
1576
1576
  type: Inject,
1577
1577
  args: [DEFAULT_SHOP]
1578
1578
  }] }, { type: undefined, decorators: [{
@@ -1587,7 +1587,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
1587
1587
  }] }, { type: i1$2.Buy2WinFirestoreRepository, decorators: [{
1588
1588
  type: Inject,
1589
1589
  args: ['Buy2WinRepository']
1590
- }] }] });
1590
+ }] }]; } });
1591
1591
 
1592
1592
  class NewCategoryStructureAdapter {
1593
1593
  constructor(categoryRepository) {
@@ -1619,15 +1619,15 @@ class NewCategoryStructureAdapter {
1619
1619
  category.brandCategory;
1620
1620
  return collectionCategory ? this.categoryRepository.get({ id: category.id }) : category;
1621
1621
  }
1622
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NewCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
1623
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NewCategoryStructureAdapter }); }
1624
1622
  }
1625
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NewCategoryStructureAdapter, decorators: [{
1623
+ NewCategoryStructureAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
1624
+ NewCategoryStructureAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter });
1625
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter, decorators: [{
1626
1626
  type: Injectable
1627
- }], ctorParameters: () => [{ type: undefined, decorators: [{
1627
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1628
1628
  type: Inject,
1629
1629
  args: ['CategoryRepository']
1630
- }] }] });
1630
+ }] }]; } });
1631
1631
 
1632
1632
  class OldCategoryStructureAdapter {
1633
1633
  constructor(categoryRepository) {
@@ -1639,15 +1639,15 @@ class OldCategoryStructureAdapter {
1639
1639
  : await this.categoryRepository.get({ id: category.id }).then((categoryFound) => categoryFound.products);
1640
1640
  return { id: { operator: Where.IN, value: productsIds } };
1641
1641
  }
1642
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OldCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
1643
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OldCategoryStructureAdapter }); }
1644
1642
  }
1645
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OldCategoryStructureAdapter, decorators: [{
1643
+ OldCategoryStructureAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
1644
+ OldCategoryStructureAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter });
1645
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter, decorators: [{
1646
1646
  type: Injectable
1647
- }], ctorParameters: () => [{ type: undefined, decorators: [{
1647
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1648
1648
  type: Inject,
1649
1649
  args: ['CategoryRepository']
1650
- }] }] });
1650
+ }] }]; } });
1651
1651
 
1652
1652
  class CatalogService {
1653
1653
  constructor(productRepository, productStockNotificationRepository, categoryRepository, categoryStructureAdapter, shop, productIndex) {
@@ -1857,12 +1857,12 @@ class CatalogService {
1857
1857
  return [...new Set(sorted.map(({ _source }) => _source.id))];
1858
1858
  }));
1859
1859
  }
1860
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogService, deps: [{ token: 'ProductRepository' }, { token: 'ProductStockNotificationRepository' }, { token: 'CategoryRepository' }, { token: CATEGORY_STRUCTURE }, { token: DEFAULT_SHOP }, { token: i1$2.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable }); }
1861
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogService }); }
1862
1860
  }
1863
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogService, decorators: [{
1861
+ CatalogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, deps: [{ token: 'ProductRepository' }, { token: 'ProductStockNotificationRepository' }, { token: 'CategoryRepository' }, { token: CATEGORY_STRUCTURE }, { token: DEFAULT_SHOP }, { token: i1$2.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable });
1862
+ CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService });
1863
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
1864
1864
  type: Injectable
1865
- }], ctorParameters: () => [{ type: undefined, decorators: [{
1865
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1866
1866
  type: Inject,
1867
1867
  args: ['ProductRepository']
1868
1868
  }] }, { type: undefined, decorators: [{
@@ -1877,7 +1877,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
1877
1877
  }] }, { type: i1$2.Shops, decorators: [{
1878
1878
  type: Inject,
1879
1879
  args: [DEFAULT_SHOP]
1880
- }] }, { type: i1$2.ProductsIndex }] });
1880
+ }] }, { type: i1$2.ProductsIndex }]; } });
1881
1881
 
1882
1882
  class CategoryService {
1883
1883
  constructor(productRepository, categoryRepository, categoryFilterRepository, categoryStructureAdapter, shop) {
@@ -1903,12 +1903,12 @@ class CategoryService {
1903
1903
  .find({ filters: { categoryId: +category.id } })
1904
1904
  .then(({ data }) => data.map((categoryFilter) => categoryFilter.filter));
1905
1905
  }
1906
- 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 }); }
1907
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryService }); }
1908
1906
  }
1909
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryService, decorators: [{
1907
+ 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 });
1908
+ CategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService });
1909
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService, decorators: [{
1910
1910
  type: Injectable
1911
- }], ctorParameters: () => [{ type: undefined, decorators: [{
1911
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1912
1912
  type: Inject,
1913
1913
  args: ['ProductRepository']
1914
1914
  }] }, { type: undefined, decorators: [{
@@ -1923,7 +1923,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
1923
1923
  }] }, { type: i1$2.Shops, decorators: [{
1924
1924
  type: Inject,
1925
1925
  args: [DEFAULT_SHOP]
1926
- }] }] });
1926
+ }] }]; } });
1927
1927
 
1928
1928
  var ProductSorts;
1929
1929
  (function (ProductSorts) {
@@ -2039,12 +2039,12 @@ class WishlistService {
2039
2039
  }
2040
2040
  return wishlist;
2041
2041
  }
2042
- 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: 'ProductStockNotificationRepository' }, { token: i1$2.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable }); }
2043
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: WishlistService }); }
2044
2042
  }
2045
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: WishlistService, decorators: [{
2043
+ 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: 'ProductStockNotificationRepository' }, { token: i1$2.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable });
2044
+ WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
2045
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
2046
2046
  type: Injectable
2047
- }], ctorParameters: () => [{ type: undefined, decorators: [{
2047
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2048
2048
  type: Inject,
2049
2049
  args: ['WishlistRepository']
2050
2050
  }] }, { type: i1$2.Shops, decorators: [{
@@ -2062,7 +2062,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
2062
2062
  }] }, { type: undefined, decorators: [{
2063
2063
  type: Inject,
2064
2064
  args: ['ProductStockNotificationRepository']
2065
- }] }, { type: i1$2.ProductsIndex }] });
2065
+ }] }, { type: i1$2.ProductsIndex }]; } });
2066
2066
 
2067
2067
  class CheckoutSubscriptionService {
2068
2068
  constructor(checkoutSubscriptionRepository, dataPersistence, couponService) {
@@ -2094,18 +2094,18 @@ class CheckoutSubscriptionService {
2094
2094
  await this.dataPersistence.set('checkoutSubscriptionId', checkout.id).toPromise();
2095
2095
  return checkout;
2096
2096
  }
2097
- 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 }); }
2098
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutSubscriptionService }); }
2099
2097
  }
2100
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutSubscriptionService, decorators: [{
2098
+ 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 });
2099
+ CheckoutSubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService });
2100
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService, decorators: [{
2101
2101
  type: Injectable
2102
- }], ctorParameters: () => [{ type: undefined, decorators: [{
2102
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2103
2103
  type: Inject,
2104
2104
  args: ['CheckoutSubscriptionRepository']
2105
2105
  }] }, { type: undefined, decorators: [{
2106
2106
  type: Inject,
2107
2107
  args: [PERSISTENCE_PROVIDER]
2108
- }] }, { type: CouponService }] });
2108
+ }] }, { type: CouponService }]; } });
2109
2109
 
2110
2110
  class UtilHelper {
2111
2111
  static createSlug(name) {
@@ -2224,12 +2224,12 @@ class HomeShopService {
2224
2224
  get gender() {
2225
2225
  return this.homeId === 'mens_market' ? 'masculino' : undefined;
2226
2226
  }
2227
- 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 }); }
2228
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: HomeShopService }); }
2229
2227
  }
2230
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: HomeShopService, decorators: [{
2228
+ 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 });
2229
+ HomeShopService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService });
2230
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService, decorators: [{
2231
2231
  type: Injectable
2232
- }], ctorParameters: () => [{ type: undefined, decorators: [{
2232
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2233
2233
  type: Inject,
2234
2234
  args: ['CategoryRepository']
2235
2235
  }] }, { type: undefined, decorators: [{
@@ -2241,7 +2241,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
2241
2241
  }] }, { type: i1$2.Shops, decorators: [{
2242
2242
  type: Inject,
2243
2243
  args: [DEFAULT_SHOP]
2244
- }] }] });
2244
+ }] }]; } });
2245
2245
 
2246
2246
  class OrderService {
2247
2247
  constructor(angularFirestore, orderRepository) {
@@ -2255,15 +2255,15 @@ class OrderService {
2255
2255
  .subscribe((doc) => this.orderSubject.next(doc));
2256
2256
  return this.orderSubject;
2257
2257
  }
2258
- 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 }); }
2259
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OrderService }); }
2260
2258
  }
2261
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OrderService, decorators: [{
2259
+ 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 });
2260
+ OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService });
2261
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
2262
2262
  type: Injectable
2263
- }], ctorParameters: () => [{ type: i1$1.Firestore }, { type: i1$2.OrderFirestoreRepository, decorators: [{
2263
+ }], ctorParameters: function () { return [{ type: i1$1.Firestore }, { type: i1$2.OrderFirestoreRepository, decorators: [{
2264
2264
  type: Inject,
2265
2265
  args: ['OrderRepository']
2266
- }] }] });
2266
+ }] }]; } });
2267
2267
 
2268
2268
  class ShippingService {
2269
2269
  constructor(http, apiUrl, homeService) {
@@ -2341,15 +2341,15 @@ class ShippingService {
2341
2341
  }
2342
2342
  return false;
2343
2343
  }
2344
- 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 }); }
2345
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ShippingService }); }
2346
2344
  }
2347
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ShippingService, decorators: [{
2345
+ 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 });
2346
+ ShippingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService });
2347
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, decorators: [{
2348
2348
  type: Injectable
2349
- }], ctorParameters: () => [{ type: i1$3.HttpClient }, { type: undefined, decorators: [{
2349
+ }], ctorParameters: function () { return [{ type: i1$3.HttpClient }, { type: undefined, decorators: [{
2350
2350
  type: Inject,
2351
2351
  args: [BACKEND_URL]
2352
- }] }, { type: HomeShopService }] });
2352
+ }] }, { type: HomeShopService }]; } });
2353
2353
 
2354
2354
  class AngularConnectModule {
2355
2355
  static initializeApp(defaultShop, options, nameOrConfig) {
@@ -2373,53 +2373,53 @@ class AngularConnectModule {
2373
2373
  ],
2374
2374
  };
2375
2375
  }
2376
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2377
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, imports: [i1$4.FirebaseAppModule, i2.StorageModule, AngularElasticSeachModule,
2378
- AngularFirebaseAuthModule,
2379
- AngularFirestoreModule,
2380
- AngularHasuraGraphQLModule] }); }
2381
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, providers: [
2382
- AuthService,
2383
- CartService,
2384
- CatalogService,
2385
- CategoryService,
2386
- CheckoutService,
2387
- CheckoutSubscriptionService,
2388
- CouponService,
2389
- HomeShopService,
2390
- OrderService,
2391
- ShippingService,
2392
- WishlistService,
2393
- {
2394
- provide: UpdateUserImage,
2395
- useFactory: (userRepository, fileUploader) => {
2396
- return new UpdateUserImage(userRepository, fileUploader);
2397
- },
2398
- deps: ['UserRepository', 'FileUploaderService'],
2399
- },
2400
- {
2401
- provide: 'FileUploaderService',
2402
- useFactory: (storage, baseUrl) => {
2403
- return new FirebaseFileUploaderService(storage, baseUrl);
2404
- },
2405
- deps: [Storage, STORAGE_BASE_URL],
2406
- },
2407
- ], imports: [provideFirebaseApp((injector) => {
2408
- const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
2409
- try {
2410
- return getApp(appName);
2411
- }
2412
- catch (error) {
2413
- return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
2414
- }
2415
- }),
2416
- provideStorage((injector) => getStorage(injector.get(FirebaseApp))),
2417
- AngularElasticSeachModule,
2418
- AngularFirebaseAuthModule,
2419
- AngularFirestoreModule,
2420
- AngularHasuraGraphQLModule] }); }
2421
2376
  }
2422
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, decorators: [{
2377
+ AngularConnectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2378
+ AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [i1$4.FirebaseAppModule, i2.StorageModule, AngularElasticSeachModule,
2379
+ AngularFirebaseAuthModule,
2380
+ AngularFirestoreModule,
2381
+ AngularHasuraGraphQLModule] });
2382
+ AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, providers: [
2383
+ AuthService,
2384
+ CartService,
2385
+ CatalogService,
2386
+ CategoryService,
2387
+ CheckoutService,
2388
+ CheckoutSubscriptionService,
2389
+ CouponService,
2390
+ HomeShopService,
2391
+ OrderService,
2392
+ ShippingService,
2393
+ WishlistService,
2394
+ {
2395
+ provide: UpdateUserImage,
2396
+ useFactory: (userRepository, fileUploader) => {
2397
+ return new UpdateUserImage(userRepository, fileUploader);
2398
+ },
2399
+ deps: ['UserRepository', 'FileUploaderService'],
2400
+ },
2401
+ {
2402
+ provide: 'FileUploaderService',
2403
+ useFactory: (storage, baseUrl) => {
2404
+ return new FirebaseFileUploaderService(storage, baseUrl);
2405
+ },
2406
+ deps: [Storage, STORAGE_BASE_URL],
2407
+ },
2408
+ ], imports: [provideFirebaseApp((injector) => {
2409
+ const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
2410
+ try {
2411
+ return getApp(appName);
2412
+ }
2413
+ catch (error) {
2414
+ return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
2415
+ }
2416
+ }),
2417
+ provideStorage((injector) => getStorage(injector.get(FirebaseApp))),
2418
+ AngularElasticSeachModule,
2419
+ AngularFirebaseAuthModule,
2420
+ AngularFirestoreModule,
2421
+ AngularHasuraGraphQLModule] });
2422
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, decorators: [{
2423
2423
  type: NgModule,
2424
2424
  args: [{
2425
2425
  imports: [