@infrab4a/connect-angular 4.14.1-beta.0 → 4.14.1-beta.2

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 (67) hide show
  1. package/esm2020/angular-connect.module.mjs +146 -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 +513 -0
  5. package/esm2020/angular-hasura-graphql.module.mjs +287 -0
  6. package/esm2020/angular-vertex-search.module.mjs +34 -0
  7. package/{esm2022 → esm2020}/persistence/cookie-data-persistence.mjs +4 -4
  8. package/{esm2022 → esm2020}/services/auth.service.mjs +6 -6
  9. package/esm2020/services/cart.service.mjs +297 -0
  10. package/{esm2022 → esm2020}/services/catalog/adapters/new-category-structure.adapter.mjs +6 -6
  11. package/{esm2022 → esm2020}/services/catalog/adapters/old-category-structure.adapter.mjs +6 -6
  12. package/{esm2022 → esm2020}/services/catalog/catalog.service.mjs +6 -6
  13. package/{esm2022 → esm2020}/services/catalog/category.service.mjs +6 -6
  14. package/{esm2022 → esm2020}/services/catalog/models/category-with-tree.model.mjs +1 -1
  15. package/{esm2022 → esm2020}/services/catalog/wishlist.service.mjs +6 -6
  16. package/{esm2022 → esm2020}/services/checkout-subscription.service.mjs +6 -6
  17. package/{esm2022 → esm2020}/services/checkout.service.mjs +6 -6
  18. package/{esm2022 → esm2020}/services/coupon.service.mjs +6 -6
  19. package/{esm2022 → esm2020}/services/home-shop.service.mjs +6 -6
  20. package/{esm2022 → esm2020}/services/order.service.mjs +6 -6
  21. package/{esm2022 → esm2020}/services/shipping.service.mjs +6 -6
  22. package/fesm2015/infrab4a-connect-angular.mjs +2740 -0
  23. package/fesm2015/infrab4a-connect-angular.mjs.map +1 -0
  24. package/{fesm2022 → fesm2020}/infrab4a-connect-angular.mjs +572 -568
  25. package/fesm2020/infrab4a-connect-angular.mjs.map +1 -0
  26. package/package.json +12 -6
  27. package/esm2022/angular-connect.module.mjs +0 -146
  28. package/esm2022/angular-elastic-search.module.mjs +0 -34
  29. package/esm2022/angular-firebase-auth.module.mjs +0 -115
  30. package/esm2022/angular-firestore.module.mjs +0 -513
  31. package/esm2022/angular-hasura-graphql.module.mjs +0 -287
  32. package/esm2022/angular-vertex-search.module.mjs +0 -34
  33. package/esm2022/services/cart.service.mjs +0 -293
  34. package/fesm2022/infrab4a-connect-angular.mjs.map +0 -1
  35. /package/{esm2022 → esm2020}/consts/backend-url.const.mjs +0 -0
  36. /package/{esm2022 → esm2020}/consts/category-structure.mjs +0 -0
  37. /package/{esm2022 → esm2020}/consts/default-shop.const.mjs +0 -0
  38. /package/{esm2022 → esm2020}/consts/es-config.const.mjs +0 -0
  39. /package/{esm2022 → esm2020}/consts/firebase-const.mjs +0 -0
  40. /package/{esm2022 → esm2020}/consts/hasura-options.const.mjs +0 -0
  41. /package/{esm2022 → esm2020}/consts/index.mjs +0 -0
  42. /package/{esm2022 → esm2020}/consts/persistence.const.mjs +0 -0
  43. /package/{esm2022 → esm2020}/consts/storage-base-url.const.mjs +0 -0
  44. /package/{esm2022 → esm2020}/consts/vertex-config.const.mjs +0 -0
  45. /package/{esm2022 → esm2020}/helpers/index.mjs +0 -0
  46. /package/{esm2022 → esm2020}/helpers/mobile-operation-system-checker.helper.mjs +0 -0
  47. /package/{esm2022 → esm2020}/index.mjs +0 -0
  48. /package/{esm2022 → esm2020}/infrab4a-connect-angular.mjs +0 -0
  49. /package/{esm2022 → esm2020}/persistence/data-persistence.mjs +0 -0
  50. /package/{esm2022 → esm2020}/persistence/index.mjs +0 -0
  51. /package/{esm2022 → esm2020}/services/catalog/adapters/category-structure.adapter.mjs +0 -0
  52. /package/{esm2022 → esm2020}/services/catalog/adapters/index.mjs +0 -0
  53. /package/{esm2022 → esm2020}/services/catalog/enums/index.mjs +0 -0
  54. /package/{esm2022 → esm2020}/services/catalog/enums/product-sorts.enum.mjs +0 -0
  55. /package/{esm2022 → esm2020}/services/catalog/index.mjs +0 -0
  56. /package/{esm2022 → esm2020}/services/catalog/models/index.mjs +0 -0
  57. /package/{esm2022 → esm2020}/services/catalog/types/index.mjs +0 -0
  58. /package/{esm2022 → esm2020}/services/catalog/types/product-sort.type.mjs +0 -0
  59. /package/{esm2022 → esm2020}/services/helpers/index.mjs +0 -0
  60. /package/{esm2022 → esm2020}/services/helpers/util.helper.mjs +0 -0
  61. /package/{esm2022 → esm2020}/services/index.mjs +0 -0
  62. /package/{esm2022 → esm2020}/services/types/index.mjs +0 -0
  63. /package/{esm2022 → esm2020}/services/types/required-checkout-data.type.mjs +0 -0
  64. /package/{esm2022 → esm2020}/services/types/required-checkout-subscription-data.type.mjs +0 -0
  65. /package/{esm2022 → esm2020}/services/types/shipping-methods.type.mjs +0 -0
  66. /package/{esm2022 → esm2020}/types/firebase-app-config.type.mjs +0 -0
  67. /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: [
@@ -75,54 +75,54 @@ class AngularFirebaseAuthModule {
75
75
  ],
76
76
  };
77
77
  }
78
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirebaseAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
79
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularFirebaseAuthModule, imports: [i1.AuthModule] }); }
80
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirebaseAuthModule, providers: [
81
- {
82
- provide: 'Authentication',
83
- useFactory: (authenticationService, userRepository) => {
84
- return new Authentication(authenticationService, userRepository);
85
- },
86
- deps: ['AuthenticationService', 'UserRepository'],
87
- },
88
- {
89
- provide: 'AuthenticationService',
90
- useFactory: (angularFireAuth) => {
91
- return new AuthenticationFirebaseAuthService(angularFireAuth);
92
- },
93
- deps: [Auth],
94
- },
95
- {
96
- provide: 'Register',
97
- useFactory: (registerService, userRepository) => {
98
- return new Register(registerService, userRepository);
99
- },
100
- deps: ['RegisterService', 'UserRepository'],
101
- },
102
- {
103
- provide: 'RegisterService',
104
- useFactory: (angularFireAuth) => {
105
- return new RegisterFirebaseAuthService(angularFireAuth);
106
- },
107
- deps: [Auth],
108
- },
109
- {
110
- provide: 'SignOut',
111
- useFactory: (authenticationService) => {
112
- return new SignOut(authenticationService);
113
- },
114
- deps: ['AuthenticationService'],
115
- },
116
- {
117
- provide: 'RecoveryPassword',
118
- useFactory: (authenticationService) => {
119
- return new RecoveryPassword(authenticationService);
120
- },
121
- deps: ['AuthenticationService'],
122
- },
123
- ], imports: [provideAuth((injector) => getAuth(injector.get(FirebaseApp)))] }); }
124
78
  }
125
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
79
+ AngularFirebaseAuthModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
80
+ AngularFirebaseAuthModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, imports: [i1.AuthModule] });
81
+ AngularFirebaseAuthModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, providers: [
82
+ {
83
+ provide: 'Authentication',
84
+ useFactory: (authenticationService, userRepository) => {
85
+ return new Authentication(authenticationService, userRepository);
86
+ },
87
+ deps: ['AuthenticationService', 'UserRepository'],
88
+ },
89
+ {
90
+ provide: 'AuthenticationService',
91
+ useFactory: (angularFireAuth) => {
92
+ return new AuthenticationFirebaseAuthService(angularFireAuth);
93
+ },
94
+ deps: [Auth],
95
+ },
96
+ {
97
+ provide: 'Register',
98
+ useFactory: (registerService, userRepository) => {
99
+ return new Register(registerService, userRepository);
100
+ },
101
+ deps: ['RegisterService', 'UserRepository'],
102
+ },
103
+ {
104
+ provide: 'RegisterService',
105
+ useFactory: (angularFireAuth) => {
106
+ return new RegisterFirebaseAuthService(angularFireAuth);
107
+ },
108
+ deps: [Auth],
109
+ },
110
+ {
111
+ provide: 'SignOut',
112
+ useFactory: (authenticationService) => {
113
+ return new SignOut(authenticationService);
114
+ },
115
+ deps: ['AuthenticationService'],
116
+ },
117
+ {
118
+ provide: 'RecoveryPassword',
119
+ useFactory: (authenticationService) => {
120
+ return new RecoveryPassword(authenticationService);
121
+ },
122
+ deps: ['AuthenticationService'],
123
+ },
124
+ ], imports: [provideAuth((injector) => getAuth(injector.get(FirebaseApp)))] });
125
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
126
126
  type: NgModule,
127
127
  args: [{
128
128
  imports: [provideAuth((injector) => getAuth(injector.get(FirebaseApp)))],
@@ -191,250 +191,250 @@ class AngularFirestoreModule {
191
191
  ],
192
192
  };
193
193
  }
194
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
195
- static { thismod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1$1.FirestoreModule] }); }
196
- static { thisinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirestoreModule, providers: [
197
- {
198
- provide: 'FirestoreOptions',
199
- useFactory: (firestore, platformId) => ({
200
- firestore: new ConnectFirestoreService(firestore),
201
- interceptors: {
202
- request: (request) => {
203
- if (isPlatformBrowser(platformId))
204
- return request;
205
- const interval = setInterval(() => { }, 100);
206
- request.interval = interval;
194
+ }
195
+ AngularFirestoreModulefac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
196
+ AngularFirestoreModulemod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1$1.FirestoreModule] });
197
+ AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, providers: [
198
+ {
199
+ provide: 'FirestoreOptions',
200
+ useFactory: (firestore, platformId) => ({
201
+ firestore: new ConnectFirestoreService(firestore),
202
+ interceptors: {
203
+ request: (request) => {
204
+ if (isPlatformBrowser(platformId))
207
205
  return request;
208
- },
209
- response: (response, request) => {
210
- if (isPlatformBrowser(platformId))
211
- return response;
212
- clearInterval(request.interval);
206
+ const interval = setInterval(() => { }, 100);
207
+ request.interval = interval;
208
+ return request;
209
+ },
210
+ response: (response, request) => {
211
+ if (isPlatformBrowser(platformId))
213
212
  return response;
214
- },
213
+ clearInterval(request.interval);
214
+ return response;
215
215
  },
216
- }),
217
- deps: [Firestore, PLATFORM_ID],
218
- },
219
- {
220
- provide: 'BeautyProfileRepository',
221
- useFactory: (config, userRepository) => {
222
- return new UserBeautyProfileFirestoreRepository(config, userRepository);
223
- },
224
- deps: ['FirestoreOptions', 'UserRepository'],
225
- },
226
- {
227
- provide: 'Buy2WinRepository',
228
- useFactory: (options) => {
229
- return new Buy2WinFirestoreRepository(options);
230
- },
231
- deps: ['FirestoreOptions'],
232
- },
233
- {
234
- provide: CategoryFirestoreRepository,
235
- useFactory: (options) => {
236
- return new CategoryFirestoreRepository(options);
237
- },
238
- deps: ['FirestoreOptions'],
239
- },
240
- {
241
- provide: 'CheckoutRepository',
242
- useFactory: (options) => {
243
- return new CheckoutFirestoreRepository(options);
244
- },
245
- deps: ['FirestoreOptions'],
246
- },
247
- {
248
- provide: 'CheckoutSubscriptionRepository',
249
- useFactory: (options) => {
250
- return new CheckoutSubscriptionFirestoreRepository(options);
251
- },
252
- deps: ['FirestoreOptions'],
253
- },
254
- {
255
- provide: 'CouponRepository',
256
- useFactory: (options) => {
257
- return new CouponFirestoreRepository(options);
258
- },
259
- deps: ['FirestoreOptions'],
260
- },
261
- {
262
- provide: 'CampaignHashtagRepository',
263
- useFactory: (options) => {
264
- return new CampaignHashtagFirestoreRepository(options);
265
- },
266
- deps: ['FirestoreOptions'],
267
- },
268
- {
269
- provide: 'CampaignDashboardRepository',
270
- useFactory: (options) => {
271
- return new CampaignDashboardFirestoreRepository(options);
272
- },
273
- deps: ['FirestoreOptions'],
274
- },
275
- {
276
- provide: 'EditionRepository',
277
- useFactory: (options, subscriptionRepository) => {
278
- return new SubscriptionEditionFirestoreRepository(options, subscriptionRepository);
279
- },
280
- deps: ['FirestoreOptions', 'SubscriptionRepository'],
281
- },
282
- {
283
- provide: 'HomeRepository',
284
- useFactory: (options) => {
285
- return new HomeFirestoreRepository(options);
286
- },
287
- deps: ['FirestoreOptions'],
288
- },
289
- {
290
- provide: 'LeadRepository',
291
- useFactory: (options) => {
292
- return new LeadFirestoreRepository(options);
293
- },
294
- deps: ['FirestoreOptions'],
295
- },
296
- {
297
- provide: 'LegacyOrderRepository',
298
- useFactory: (options) => {
299
- return new LegacyOrderFirestoreRepository(options);
300
- },
301
- deps: ['FirestoreOptions'],
302
- },
303
- {
304
- provide: 'ShopMenuRepository',
305
- useFactory: (options) => {
306
- return new ShopMenuFirestoreRepository(options);
307
- },
308
- deps: ['FirestoreOptions'],
309
- },
310
- {
311
- provide: 'OrderRepository',
312
- useFactory: (options) => {
313
- return new OrderFirestoreRepository(options);
314
- },
315
- deps: ['FirestoreOptions'],
316
- },
317
- {
318
- provide: 'PaymentRepository',
319
- useFactory: (options) => {
320
- return new PaymentFirestoreRepository(options);
321
- },
322
- deps: ['FirestoreOptions'],
323
- },
324
- {
325
- provide: ProductFirestoreRepository,
326
- useFactory: (options) => {
327
- return new ProductFirestoreRepository(options);
328
- },
329
- deps: ['FirestoreOptions'],
330
- },
331
- {
332
- provide: 'ShopSettingsRepository',
333
- useFactory: (options) => {
334
- return new ShopSettingsFirestoreRepository(options);
335
- },
336
- deps: ['FirestoreOptions'],
337
- },
338
- {
339
- provide: 'SubscriptionPaymentRepository',
340
- useFactory: (options, subscriptionRepository) => {
341
- return new SubscriptionPaymentFirestoreRepository(options, subscriptionRepository);
342
- },
343
- deps: ['FirestoreOptions', 'SubscriptionRepository'],
344
- },
345
- {
346
- provide: 'SubscriptionPlanRepository',
347
- useFactory: (options) => {
348
- return new SubscriptionPlanFirestoreRepository(options);
349
- },
350
- deps: ['FirestoreOptions'],
351
- },
352
- {
353
- provide: 'SubscriptionProductRepository',
354
- useFactory: (options) => {
355
- return new SubscriptionProductFirestoreRepository(options);
356
- },
357
- deps: ['FirestoreOptions'],
358
- },
359
- {
360
- provide: 'SubscriptionRepository',
361
- useFactory: (options) => {
362
- return new SubscriptionFirestoreRepository(options);
363
- },
364
- deps: ['FirestoreOptions'],
365
- },
366
- {
367
- provide: 'UserRepository',
368
- useFactory: (options) => {
369
- return new UserFirestoreRepository(options);
370
- },
371
- deps: ['FirestoreOptions'],
372
- },
373
- {
374
- provide: 'UserAddressRepository',
375
- useFactory: (options, userRepository) => {
376
- return new UserAddressFirestoreRepository(options, userRepository);
377
- },
378
- deps: ['FirestoreOptions', 'UserRepository'],
379
- },
380
- {
381
- provide: 'UserPaymentMethodRepository',
382
- useFactory: (options, userRepository) => {
383
- return new UserPaymentMethodFirestoreRepository(options, userRepository);
384
216
  },
385
- deps: ['FirestoreOptions', 'UserRepository'],
386
- },
387
- {
388
- provide: 'SubscriptionMaterializationRepository',
389
- useFactory: (options) => {
390
- return new SubscriptionMaterializationFirestoreRepository(options);
391
- },
392
- deps: ['FirestoreOptions'],
393
- },
394
- {
395
- provide: 'SubscriptionSummaryRepository',
396
- useFactory: (options) => {
397
- return new SubscriptionSummaryFirestoreRepository(options);
398
- },
399
- deps: ['FirestoreOptions'],
400
- },
401
- {
402
- provide: ProductVariantFirestoreRepository,
403
- useFactory: (options, productRepository) => {
404
- return new ProductVariantFirestoreRepository(options, productRepository);
405
- },
406
- deps: ['FirestoreOptions', ProductFirestoreRepository],
407
- },
408
- {
409
- provide: 'OrderBlockedRepository',
410
- useFactory: (options) => {
411
- return new OrderBlockedFirestoreRepository(options);
412
- },
413
- deps: ['FirestoreOptions'],
414
- },
415
- {
416
- provide: 'LogRepository',
417
- useFactory: (options) => {
418
- return new LogFirestoreRepository(options);
419
- },
420
- deps: ['FirestoreOptions'],
421
- },
422
- ], imports: [AngularElasticSeachModule,
423
- provideFirestore((injector) => {
424
- const platformId = injector.get(PLATFORM_ID);
425
- if (isPlatformServer(platformId) || !MobileOperationSystemCheckerHelper.isAppleDevice())
426
- return initializeFirestore(injector.get(FirebaseApp), {
427
- ignoreUndefinedProperties: true,
428
- });
429
- const firestore = initializeFirestore(injector.get(FirebaseApp), {
430
- experimentalForceLongPolling: true,
217
+ }),
218
+ deps: [Firestore, PLATFORM_ID],
219
+ },
220
+ {
221
+ provide: 'BeautyProfileRepository',
222
+ useFactory: (config, userRepository) => {
223
+ return new UserBeautyProfileFirestoreRepository(config, userRepository);
224
+ },
225
+ deps: ['FirestoreOptions', 'UserRepository'],
226
+ },
227
+ {
228
+ provide: 'Buy2WinRepository',
229
+ useFactory: (options) => {
230
+ return new Buy2WinFirestoreRepository(options);
231
+ },
232
+ deps: ['FirestoreOptions'],
233
+ },
234
+ {
235
+ provide: CategoryFirestoreRepository,
236
+ useFactory: (options) => {
237
+ return new CategoryFirestoreRepository(options);
238
+ },
239
+ deps: ['FirestoreOptions'],
240
+ },
241
+ {
242
+ provide: 'CheckoutRepository',
243
+ useFactory: (options) => {
244
+ return new CheckoutFirestoreRepository(options);
245
+ },
246
+ deps: ['FirestoreOptions'],
247
+ },
248
+ {
249
+ provide: 'CheckoutSubscriptionRepository',
250
+ useFactory: (options) => {
251
+ return new CheckoutSubscriptionFirestoreRepository(options);
252
+ },
253
+ deps: ['FirestoreOptions'],
254
+ },
255
+ {
256
+ provide: 'CouponRepository',
257
+ useFactory: (options) => {
258
+ return new CouponFirestoreRepository(options);
259
+ },
260
+ deps: ['FirestoreOptions'],
261
+ },
262
+ {
263
+ provide: 'CampaignHashtagRepository',
264
+ useFactory: (options) => {
265
+ return new CampaignHashtagFirestoreRepository(options);
266
+ },
267
+ deps: ['FirestoreOptions'],
268
+ },
269
+ {
270
+ provide: 'CampaignDashboardRepository',
271
+ useFactory: (options) => {
272
+ return new CampaignDashboardFirestoreRepository(options);
273
+ },
274
+ deps: ['FirestoreOptions'],
275
+ },
276
+ {
277
+ provide: 'EditionRepository',
278
+ useFactory: (options, subscriptionRepository) => {
279
+ return new SubscriptionEditionFirestoreRepository(options, subscriptionRepository);
280
+ },
281
+ deps: ['FirestoreOptions', 'SubscriptionRepository'],
282
+ },
283
+ {
284
+ provide: 'HomeRepository',
285
+ useFactory: (options) => {
286
+ return new HomeFirestoreRepository(options);
287
+ },
288
+ deps: ['FirestoreOptions'],
289
+ },
290
+ {
291
+ provide: 'LeadRepository',
292
+ useFactory: (options) => {
293
+ return new LeadFirestoreRepository(options);
294
+ },
295
+ deps: ['FirestoreOptions'],
296
+ },
297
+ {
298
+ provide: 'LegacyOrderRepository',
299
+ useFactory: (options) => {
300
+ return new LegacyOrderFirestoreRepository(options);
301
+ },
302
+ deps: ['FirestoreOptions'],
303
+ },
304
+ {
305
+ provide: 'ShopMenuRepository',
306
+ useFactory: (options) => {
307
+ return new ShopMenuFirestoreRepository(options);
308
+ },
309
+ deps: ['FirestoreOptions'],
310
+ },
311
+ {
312
+ provide: 'OrderRepository',
313
+ useFactory: (options) => {
314
+ return new OrderFirestoreRepository(options);
315
+ },
316
+ deps: ['FirestoreOptions'],
317
+ },
318
+ {
319
+ provide: 'PaymentRepository',
320
+ useFactory: (options) => {
321
+ return new PaymentFirestoreRepository(options);
322
+ },
323
+ deps: ['FirestoreOptions'],
324
+ },
325
+ {
326
+ provide: ProductFirestoreRepository,
327
+ useFactory: (options) => {
328
+ return new ProductFirestoreRepository(options);
329
+ },
330
+ deps: ['FirestoreOptions'],
331
+ },
332
+ {
333
+ provide: 'ShopSettingsRepository',
334
+ useFactory: (options) => {
335
+ return new ShopSettingsFirestoreRepository(options);
336
+ },
337
+ deps: ['FirestoreOptions'],
338
+ },
339
+ {
340
+ provide: 'SubscriptionPaymentRepository',
341
+ useFactory: (options, subscriptionRepository) => {
342
+ return new SubscriptionPaymentFirestoreRepository(options, subscriptionRepository);
343
+ },
344
+ deps: ['FirestoreOptions', 'SubscriptionRepository'],
345
+ },
346
+ {
347
+ provide: 'SubscriptionPlanRepository',
348
+ useFactory: (options) => {
349
+ return new SubscriptionPlanFirestoreRepository(options);
350
+ },
351
+ deps: ['FirestoreOptions'],
352
+ },
353
+ {
354
+ provide: 'SubscriptionProductRepository',
355
+ useFactory: (options) => {
356
+ return new SubscriptionProductFirestoreRepository(options);
357
+ },
358
+ deps: ['FirestoreOptions'],
359
+ },
360
+ {
361
+ provide: 'SubscriptionRepository',
362
+ useFactory: (options) => {
363
+ return new SubscriptionFirestoreRepository(options);
364
+ },
365
+ deps: ['FirestoreOptions'],
366
+ },
367
+ {
368
+ provide: 'UserRepository',
369
+ useFactory: (options) => {
370
+ return new UserFirestoreRepository(options);
371
+ },
372
+ deps: ['FirestoreOptions'],
373
+ },
374
+ {
375
+ provide: 'UserAddressRepository',
376
+ useFactory: (options, userRepository) => {
377
+ return new UserAddressFirestoreRepository(options, userRepository);
378
+ },
379
+ deps: ['FirestoreOptions', 'UserRepository'],
380
+ },
381
+ {
382
+ provide: 'UserPaymentMethodRepository',
383
+ useFactory: (options, userRepository) => {
384
+ return new UserPaymentMethodFirestoreRepository(options, userRepository);
385
+ },
386
+ deps: ['FirestoreOptions', 'UserRepository'],
387
+ },
388
+ {
389
+ provide: 'SubscriptionMaterializationRepository',
390
+ useFactory: (options) => {
391
+ return new SubscriptionMaterializationFirestoreRepository(options);
392
+ },
393
+ deps: ['FirestoreOptions'],
394
+ },
395
+ {
396
+ provide: 'SubscriptionSummaryRepository',
397
+ useFactory: (options) => {
398
+ return new SubscriptionSummaryFirestoreRepository(options);
399
+ },
400
+ deps: ['FirestoreOptions'],
401
+ },
402
+ {
403
+ provide: ProductVariantFirestoreRepository,
404
+ useFactory: (options, productRepository) => {
405
+ return new ProductVariantFirestoreRepository(options, productRepository);
406
+ },
407
+ deps: ['FirestoreOptions', ProductFirestoreRepository],
408
+ },
409
+ {
410
+ provide: 'OrderBlockedRepository',
411
+ useFactory: (options) => {
412
+ return new OrderBlockedFirestoreRepository(options);
413
+ },
414
+ deps: ['FirestoreOptions'],
415
+ },
416
+ {
417
+ provide: 'LogRepository',
418
+ useFactory: (options) => {
419
+ return new LogFirestoreRepository(options);
420
+ },
421
+ deps: ['FirestoreOptions'],
422
+ },
423
+ ], imports: [AngularElasticSeachModule,
424
+ provideFirestore((injector) => {
425
+ const platformId = injector.get(PLATFORM_ID);
426
+ if (isPlatformServer(platformId) || !MobileOperationSystemCheckerHelper.isAppleDevice())
427
+ return initializeFirestore(injector.get(FirebaseApp), {
431
428
  ignoreUndefinedProperties: true,
432
- localCache: memoryLocalCache(),
433
429
  });
434
- return firestore;
435
- })] }); }
436
- }
437
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirestoreModule, decorators: [{
430
+ const firestore = initializeFirestore(injector.get(FirebaseApp), {
431
+ experimentalForceLongPolling: true,
432
+ ignoreUndefinedProperties: true,
433
+ localCache: memoryLocalCache(),
434
+ });
435
+ return firestore;
436
+ })] });
437
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, decorators: [{
438
438
  type: NgModule,
439
439
  args: [{
440
440
  imports: [
@@ -690,143 +690,143 @@ class AngularHasuraGraphQLModule {
690
690
  providers: [{ provide: HASURA_OPTIONS, useValue: options }],
691
691
  };
692
692
  }
693
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularHasuraGraphQLModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
694
- static { thismod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularHasuraGraphQLModule }); }
695
- static { thisinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularHasuraGraphQLModule, providers: [
696
- {
697
- provide: 'HasuraConfig',
698
- useFactory: (options, platformId) => ({
699
- endpoint: options.endpoint,
700
- authOptions: options.credentials,
701
- interceptors: {
702
- request: (request) => {
703
- if (isPlatformBrowser(platformId))
704
- return request;
705
- const interval = setInterval(() => { }, 100);
706
- request.interval = interval;
693
+ }
694
+ AngularHasuraGraphQLModulefac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
695
+ AngularHasuraGraphQLModulemod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule });
696
+ AngularHasuraGraphQLModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, providers: [
697
+ {
698
+ provide: 'HasuraConfig',
699
+ useFactory: (options, platformId) => ({
700
+ endpoint: options.endpoint,
701
+ authOptions: options.credentials,
702
+ interceptors: {
703
+ request: (request) => {
704
+ if (isPlatformBrowser(platformId))
707
705
  return request;
708
- },
709
- response: (response, request) => {
710
- if (isPlatformBrowser(platformId))
711
- return response;
712
- clearInterval(request.interval);
706
+ const interval = setInterval(() => { }, 100);
707
+ request.interval = interval;
708
+ return request;
709
+ },
710
+ response: (response, request) => {
711
+ if (isPlatformBrowser(platformId))
713
712
  return response;
714
- },
713
+ clearInterval(request.interval);
714
+ return response;
715
715
  },
716
- }),
717
- deps: [HASURA_OPTIONS, PLATFORM_ID],
718
- },
719
- {
720
- provide: 'CategoryRepository',
721
- useExisting: CategoryHasuraGraphQLRepository,
722
- },
723
- {
724
- provide: CategoryHasuraGraphQLRepository,
725
- useFactory: (options, productRepository, categoryFilterRepository) => {
726
- return new CategoryHasuraGraphQLRepository(options, productRepository, categoryFilterRepository);
727
- },
728
- deps: ['HasuraConfig', ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
729
- },
730
- {
731
- provide: 'ProductRepository',
732
- useExisting: ProductHasuraGraphQLRepository,
733
- },
734
- {
735
- provide: ProductHasuraGraphQLRepository,
736
- useFactory: (hasuraConfig) => {
737
- return new ProductHasuraGraphQLRepository(hasuraConfig);
738
716
  },
739
- deps: ['HasuraConfig'],
740
- },
741
- {
742
- provide: 'ProductReviewsRepository',
743
- useExisting: ProductReviewsHasuraGraphQLRepository,
744
- },
745
- {
746
- provide: ProductReviewsHasuraGraphQLRepository,
747
- useFactory: (hasuraConfig) => {
748
- return new ProductReviewsHasuraGraphQLRepository(hasuraConfig);
749
- },
750
- deps: ['HasuraConfig'],
751
- },
752
- {
753
- provide: 'VariantRepository',
754
- useExisting: VariantHasuraGraphQLRepository,
755
- },
756
- {
757
- provide: VariantHasuraGraphQLRepository,
758
- useFactory: (hasuraConfig) => {
759
- return new VariantHasuraGraphQLRepository(hasuraConfig);
760
- },
761
- deps: ['HasuraConfig'],
762
- },
763
- {
764
- provide: 'ProductStockNotificationRepository',
765
- useExisting: ProductStockNotificationHasuraGraphQLRepository,
766
- },
767
- {
768
- provide: ProductStockNotificationHasuraGraphQLRepository,
769
- useFactory: (hasuraConfig) => {
770
- return new ProductStockNotificationHasuraGraphQLRepository(hasuraConfig);
771
- },
772
- deps: ['HasuraConfig'],
773
- },
774
- {
775
- provide: 'CategoryFilterRepository',
776
- useExisting: CategoryFilterHasuraGraphQLRepository,
777
- },
778
- {
779
- provide: CategoryFilterHasuraGraphQLRepository,
780
- useFactory: (options) => {
781
- return new CategoryFilterHasuraGraphQLRepository(options);
782
- },
783
- deps: ['HasuraConfig'],
784
- },
785
- {
786
- provide: 'FilterOptionRepository',
787
- useExisting: FilterOptionHasuraGraphQLRepository,
788
- },
789
- {
790
- provide: FilterOptionHasuraGraphQLRepository,
791
- useFactory: (options) => {
792
- return new FilterOptionHasuraGraphQLRepository(options);
793
- },
794
- deps: ['HasuraConfig'],
795
- },
796
- {
797
- provide: 'FilterRepository',
798
- useExisting: FilterHasuraGraphQLRepository,
799
- },
800
- {
801
- provide: FilterHasuraGraphQLRepository,
802
- useFactory: (options, filterOptionRepository, categoryFilterRepository) => {
803
- return new FilterHasuraGraphQLRepository(options, filterOptionRepository, categoryFilterRepository);
804
- },
805
- deps: ['HasuraConfig', FilterOptionHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
806
- },
807
- {
808
- provide: CategoryCollectionChildrenHasuraGraphQLRepository,
809
- useFactory: (options) => new CategoryCollectionChildrenHasuraGraphQLRepository(options),
810
- deps: ['HasuraConfig'],
811
- },
812
- {
813
- provide: 'CategoryCollectionChildrenRepository',
814
- useExisting: CategoryCollectionChildrenHasuraGraphQLRepository,
815
- },
816
- {
817
- provide: WishlistHasuraGraphQLRepository,
818
- useFactory: (options, categoryFilterRepository) => {
819
- return new WishlistHasuraGraphQLRepository(options, categoryFilterRepository);
820
- },
821
- deps: ['HasuraConfig', CategoryFilterHasuraGraphQLRepository],
822
- },
823
- {
824
- provide: 'WishlistRepository',
825
- useExisting: WishlistHasuraGraphQLRepository,
826
- },
827
- ] }); }
828
- }
829
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularHasuraGraphQLModule, decorators: [{
717
+ }),
718
+ deps: [HASURA_OPTIONS, PLATFORM_ID],
719
+ },
720
+ {
721
+ provide: 'CategoryRepository',
722
+ useExisting: CategoryHasuraGraphQLRepository,
723
+ },
724
+ {
725
+ provide: CategoryHasuraGraphQLRepository,
726
+ useFactory: (options, productRepository, categoryFilterRepository) => {
727
+ return new CategoryHasuraGraphQLRepository(options, productRepository, categoryFilterRepository);
728
+ },
729
+ deps: ['HasuraConfig', ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
730
+ },
731
+ {
732
+ provide: 'ProductRepository',
733
+ useExisting: ProductHasuraGraphQLRepository,
734
+ },
735
+ {
736
+ provide: ProductHasuraGraphQLRepository,
737
+ useFactory: (hasuraConfig) => {
738
+ return new ProductHasuraGraphQLRepository(hasuraConfig);
739
+ },
740
+ deps: ['HasuraConfig'],
741
+ },
742
+ {
743
+ provide: 'ProductReviewsRepository',
744
+ useExisting: ProductReviewsHasuraGraphQLRepository,
745
+ },
746
+ {
747
+ provide: ProductReviewsHasuraGraphQLRepository,
748
+ useFactory: (hasuraConfig) => {
749
+ return new ProductReviewsHasuraGraphQLRepository(hasuraConfig);
750
+ },
751
+ deps: ['HasuraConfig'],
752
+ },
753
+ {
754
+ provide: 'VariantRepository',
755
+ useExisting: VariantHasuraGraphQLRepository,
756
+ },
757
+ {
758
+ provide: VariantHasuraGraphQLRepository,
759
+ useFactory: (hasuraConfig) => {
760
+ return new VariantHasuraGraphQLRepository(hasuraConfig);
761
+ },
762
+ deps: ['HasuraConfig'],
763
+ },
764
+ {
765
+ provide: 'ProductStockNotificationRepository',
766
+ useExisting: ProductStockNotificationHasuraGraphQLRepository,
767
+ },
768
+ {
769
+ provide: ProductStockNotificationHasuraGraphQLRepository,
770
+ useFactory: (hasuraConfig) => {
771
+ return new ProductStockNotificationHasuraGraphQLRepository(hasuraConfig);
772
+ },
773
+ deps: ['HasuraConfig'],
774
+ },
775
+ {
776
+ provide: 'CategoryFilterRepository',
777
+ useExisting: CategoryFilterHasuraGraphQLRepository,
778
+ },
779
+ {
780
+ provide: CategoryFilterHasuraGraphQLRepository,
781
+ useFactory: (options) => {
782
+ return new CategoryFilterHasuraGraphQLRepository(options);
783
+ },
784
+ deps: ['HasuraConfig'],
785
+ },
786
+ {
787
+ provide: 'FilterOptionRepository',
788
+ useExisting: FilterOptionHasuraGraphQLRepository,
789
+ },
790
+ {
791
+ provide: FilterOptionHasuraGraphQLRepository,
792
+ useFactory: (options) => {
793
+ return new FilterOptionHasuraGraphQLRepository(options);
794
+ },
795
+ deps: ['HasuraConfig'],
796
+ },
797
+ {
798
+ provide: 'FilterRepository',
799
+ useExisting: FilterHasuraGraphQLRepository,
800
+ },
801
+ {
802
+ provide: FilterHasuraGraphQLRepository,
803
+ useFactory: (options, filterOptionRepository, categoryFilterRepository) => {
804
+ return new FilterHasuraGraphQLRepository(options, filterOptionRepository, categoryFilterRepository);
805
+ },
806
+ deps: ['HasuraConfig', FilterOptionHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
807
+ },
808
+ {
809
+ provide: CategoryCollectionChildrenHasuraGraphQLRepository,
810
+ useFactory: (options) => new CategoryCollectionChildrenHasuraGraphQLRepository(options),
811
+ deps: ['HasuraConfig'],
812
+ },
813
+ {
814
+ provide: 'CategoryCollectionChildrenRepository',
815
+ useExisting: CategoryCollectionChildrenHasuraGraphQLRepository,
816
+ },
817
+ {
818
+ provide: WishlistHasuraGraphQLRepository,
819
+ useFactory: (options, categoryFilterRepository) => {
820
+ return new WishlistHasuraGraphQLRepository(options, categoryFilterRepository);
821
+ },
822
+ deps: ['HasuraConfig', CategoryFilterHasuraGraphQLRepository],
823
+ },
824
+ {
825
+ provide: 'WishlistRepository',
826
+ useExisting: WishlistHasuraGraphQLRepository,
827
+ },
828
+ ] });
829
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, decorators: [{
830
830
  type: NgModule,
831
831
  args: [{
832
832
  providers: [
@@ -972,17 +972,17 @@ class AngularVertexSeachModule {
972
972
  providers: [{ provide: VERTEX_CONFIG, useValue: options }],
973
973
  };
974
974
  }
975
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularVertexSeachModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
976
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularVertexSeachModule }); }
977
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularVertexSeachModule, providers: [
978
- {
979
- provide: ProductsVertexSearch,
980
- useFactory: (configuration) => new ProductsVertexSearch(new VertexAxiosAdapter(configuration)),
981
- deps: [VERTEX_CONFIG],
982
- },
983
- ] }); }
984
975
  }
985
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularVertexSeachModule, decorators: [{
976
+ AngularVertexSeachModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularVertexSeachModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
977
+ AngularVertexSeachModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularVertexSeachModule });
978
+ AngularVertexSeachModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularVertexSeachModule, providers: [
979
+ {
980
+ provide: ProductsVertexSearch,
981
+ useFactory: (configuration) => new ProductsVertexSearch(new VertexAxiosAdapter(configuration)),
982
+ deps: [VERTEX_CONFIG],
983
+ },
984
+ ] });
985
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularVertexSeachModule, decorators: [{
986
986
  type: NgModule,
987
987
  args: [{
988
988
  providers: [
@@ -1007,10 +1007,10 @@ class CookieDataPersistence {
1007
1007
  set(key, value) {
1008
1008
  return from(cookie.set(key, value)).pipe(map(() => { }));
1009
1009
  }
1010
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CookieDataPersistence, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1011
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CookieDataPersistence }); }
1012
1010
  }
1013
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CookieDataPersistence, decorators: [{
1011
+ CookieDataPersistence.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CookieDataPersistence, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1012
+ CookieDataPersistence.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CookieDataPersistence });
1013
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CookieDataPersistence, decorators: [{
1014
1014
  type: Injectable
1015
1015
  }] });
1016
1016
 
@@ -1035,15 +1035,15 @@ class AuthService {
1035
1035
  getFireUser() {
1036
1036
  return authState(this.angularFireAuth).pipe(catchError(() => of(null)));
1037
1037
  }
1038
- 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 }); }
1039
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AuthService }); }
1040
1038
  }
1041
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AuthService, decorators: [{
1039
+ 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 });
1040
+ AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService });
1041
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, decorators: [{
1042
1042
  type: Injectable
1043
- }], ctorParameters: () => [{ type: i1.Auth }, { type: undefined, decorators: [{
1043
+ }], ctorParameters: function () { return [{ type: i1.Auth }, { type: undefined, decorators: [{
1044
1044
  type: Inject,
1045
1045
  args: ['UserRepository']
1046
- }] }] });
1046
+ }] }]; } });
1047
1047
 
1048
1048
  class CouponService {
1049
1049
  constructor(couponRepository, defaultShop, orderRepository, categoryRepository) {
@@ -1290,15 +1290,15 @@ class CouponService {
1290
1290
  }
1291
1291
  return lineItemsDiscount;
1292
1292
  }
1293
- 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 }); }
1294
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CouponService, providedIn: 'root' }); }
1295
1293
  }
1296
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CouponService, decorators: [{
1294
+ 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 });
1295
+ CouponService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, providedIn: 'root' });
1296
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, decorators: [{
1297
1297
  type: Injectable,
1298
1298
  args: [{
1299
1299
  providedIn: 'root',
1300
1300
  }]
1301
- }], ctorParameters: () => [{ type: undefined, decorators: [{
1301
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1302
1302
  type: Inject,
1303
1303
  args: ['CouponRepository']
1304
1304
  }] }, { type: i1$2.Shops, decorators: [{
@@ -1310,7 +1310,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
1310
1310
  }] }, { type: undefined, decorators: [{
1311
1311
  type: Inject,
1312
1312
  args: ['CategoryRepository']
1313
- }] }] });
1313
+ }] }]; } });
1314
1314
 
1315
1315
  class CheckoutService {
1316
1316
  constructor(couponService, checkoutRepository, userRepository, defaultShop, dataPersistence) {
@@ -1352,12 +1352,12 @@ class CheckoutService {
1352
1352
  await this.dataPersistence.set('checkoutId', checkout.id).toPromise();
1353
1353
  return checkout;
1354
1354
  }
1355
- 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 }); }
1356
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutService }); }
1357
1355
  }
1358
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutService, decorators: [{
1356
+ 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 });
1357
+ CheckoutService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutService });
1358
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutService, decorators: [{
1359
1359
  type: Injectable
1360
- }], ctorParameters: () => [{ type: CouponService }, { type: undefined, decorators: [{
1360
+ }], ctorParameters: function () { return [{ type: CouponService }, { type: undefined, decorators: [{
1361
1361
  type: Inject,
1362
1362
  args: ['CheckoutRepository']
1363
1363
  }] }, { type: undefined, decorators: [{
@@ -1369,7 +1369,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
1369
1369
  }] }, { type: undefined, decorators: [{
1370
1370
  type: Inject,
1371
1371
  args: [PERSISTENCE_PROVIDER]
1372
- }] }] });
1372
+ }] }]; } });
1373
1373
 
1374
1374
  class CartService {
1375
1375
  constructor(authService, checkoutService, defaultShop, productRepository, categoryRepository, variantRepository, buy2WinRepository) {
@@ -1441,6 +1441,7 @@ class CartService {
1441
1441
  isGift: isGift ?? null,
1442
1442
  costPrice: isGift ? 0 : product.costPrice ?? 0,
1443
1443
  type,
1444
+ label: product.label,
1444
1445
  }),
1445
1446
  };
1446
1447
  };
@@ -1544,15 +1545,13 @@ class CartService {
1544
1545
  const notGiftItems = checkout.lineItems ? checkout.lineItems.filter((item) => !item.isGift) : [];
1545
1546
  if (!notGiftItems.length)
1546
1547
  return { ...checkout, lineItems: [] };
1547
- const cartTotal = notGiftItems.reduce((a, b) => a + b.pricePaid * b.quantity, 0);
1548
1548
  const campaigns = await this.buy2WinRepository
1549
1549
  .find({
1550
1550
  filters: {
1551
1551
  active: { operator: Where.EQUALS, value: true },
1552
- shop: { operator: Where.EQUALS, value: this.defaultShop },
1553
1552
  },
1554
1553
  })
1555
- .then((data) => data.data);
1554
+ .then((data) => data.data.filter((campaign) => campaign.shop === Shops.ALL || campaign.shop === this.defaultShop));
1556
1555
  if (!campaigns.length)
1557
1556
  return { ...checkout, lineItems: notGiftItems };
1558
1557
  const elegibleCampaigns = [];
@@ -1568,22 +1567,27 @@ class CartService {
1568
1567
  categoriesCampaingFullTree.push(id, ...children.map((c) => c.id.toString()));
1569
1568
  }
1570
1569
  const categoriesCampaingTree = [...new Set(categoriesCampaingFullTree)];
1571
- const filterProductsCategories = checkout.lineItems.filter((l) => {
1570
+ const filterProductsCategories = notGiftItems.filter((l) => {
1572
1571
  if (!l.categories || !l.categories?.length)
1573
1572
  return true;
1574
1573
  return l.categories.some((c) => categoriesCampaingTree.some((cat) => cat == c));
1575
1574
  });
1576
1575
  if (filterProductsCategories.length) {
1577
- const cartTotalCategories = filterProductsCategories.reduce((a, b) => a + b.pricePaid * b.quantity, 0);
1578
- if (cartTotalCategories >= campaign.cartValueMin)
1576
+ const cartValuelWithCategories = filterProductsCategories.reduce((a, b) => a + b.pricePaid * b.quantity, 0);
1577
+ const cartItensQuantityWithCategories = filterProductsCategories.reduce((a, b) => a + b.quantity, 0);
1578
+ const hasMinValue = campaign.cartValueMin && cartValuelWithCategories >= campaign.cartValueMin;
1579
+ const hasMinQuantity = campaign.cartItensQuantityMin && cartItensQuantityWithCategories >= campaign.cartItensQuantityMin;
1580
+ if (hasMinQuantity || hasMinValue)
1579
1581
  elegibleCampaigns.push(campaign);
1580
1582
  }
1581
1583
  }
1582
1584
  else {
1583
- if (campaign.cartValue && campaign.cartValue > 0) {
1584
- if (campaign.cartValue <= cartTotal)
1585
- elegibleCampaigns.push(campaign);
1586
- }
1585
+ const cartTotal = notGiftItems.reduce((a, b) => a + b.pricePaid * b.quantity, 0);
1586
+ const cartItensQuantity = notGiftItems.reduce((a, b) => a + b.quantity, 0);
1587
+ const hasMinValue = campaign.cartValue && campaign.cartValue > 0 && campaign.cartValue <= cartTotal;
1588
+ const hasMinQuantity = campaign.cartItensQuantityMin && cartItensQuantity >= campaign.cartItensQuantityMin;
1589
+ if (hasMinQuantity || hasMinValue)
1590
+ elegibleCampaigns.push(campaign);
1587
1591
  }
1588
1592
  }
1589
1593
  if (!elegibleCampaigns.length)
@@ -1631,12 +1635,12 @@ class CartService {
1631
1635
  });
1632
1636
  });
1633
1637
  }
1634
- 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 }); }
1635
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CartService }); }
1636
1638
  }
1637
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CartService, decorators: [{
1639
+ 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 });
1640
+ CartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService });
1641
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, decorators: [{
1638
1642
  type: Injectable
1639
- }], ctorParameters: () => [{ type: AuthService }, { type: CheckoutService }, { type: i1$2.Shops, decorators: [{
1643
+ }], ctorParameters: function () { return [{ type: AuthService }, { type: CheckoutService }, { type: i1$2.Shops, decorators: [{
1640
1644
  type: Inject,
1641
1645
  args: [DEFAULT_SHOP]
1642
1646
  }] }, { type: undefined, decorators: [{
@@ -1651,7 +1655,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
1651
1655
  }] }, { type: i1$2.Buy2WinFirestoreRepository, decorators: [{
1652
1656
  type: Inject,
1653
1657
  args: ['Buy2WinRepository']
1654
- }] }] });
1658
+ }] }]; } });
1655
1659
 
1656
1660
  class NewCategoryStructureAdapter {
1657
1661
  constructor(categoryRepository) {
@@ -1683,15 +1687,15 @@ class NewCategoryStructureAdapter {
1683
1687
  category.brandCategory;
1684
1688
  return collectionCategory ? this.categoryRepository.get({ id: category.id }) : category;
1685
1689
  }
1686
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NewCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
1687
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NewCategoryStructureAdapter }); }
1688
1690
  }
1689
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NewCategoryStructureAdapter, decorators: [{
1691
+ NewCategoryStructureAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
1692
+ NewCategoryStructureAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter });
1693
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter, decorators: [{
1690
1694
  type: Injectable
1691
- }], ctorParameters: () => [{ type: undefined, decorators: [{
1695
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1692
1696
  type: Inject,
1693
1697
  args: ['CategoryRepository']
1694
- }] }] });
1698
+ }] }]; } });
1695
1699
 
1696
1700
  class OldCategoryStructureAdapter {
1697
1701
  constructor(categoryRepository) {
@@ -1703,15 +1707,15 @@ class OldCategoryStructureAdapter {
1703
1707
  : await this.categoryRepository.get({ id: category.id }).then((categoryFound) => categoryFound.products);
1704
1708
  return { id: { operator: Where.IN, value: productsIds } };
1705
1709
  }
1706
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OldCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
1707
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OldCategoryStructureAdapter }); }
1708
1710
  }
1709
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OldCategoryStructureAdapter, decorators: [{
1711
+ OldCategoryStructureAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
1712
+ OldCategoryStructureAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter });
1713
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter, decorators: [{
1710
1714
  type: Injectable
1711
- }], ctorParameters: () => [{ type: undefined, decorators: [{
1715
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1712
1716
  type: Inject,
1713
1717
  args: ['CategoryRepository']
1714
- }] }] });
1718
+ }] }]; } });
1715
1719
 
1716
1720
  class CatalogService {
1717
1721
  constructor(productRepository, productStockNotificationRepository, categoryRepository, categoryStructureAdapter, shop, productSearch) {
@@ -1924,12 +1928,12 @@ class CatalogService {
1924
1928
  .search(term, 999, this.shop == Shops.GLAMSHOP ? 'female' : 'male')
1925
1929
  .then((products) => [...new Set(products.map((product) => product.id))]));
1926
1930
  }
1927
- 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: 'ProductSearch' }], target: i0.ɵɵFactoryTarget.Injectable }); }
1928
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogService }); }
1929
1931
  }
1930
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogService, decorators: [{
1932
+ 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: 'ProductSearch' }], target: i0.ɵɵFactoryTarget.Injectable });
1933
+ CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService });
1934
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
1931
1935
  type: Injectable
1932
- }], ctorParameters: () => [{ type: undefined, decorators: [{
1936
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1933
1937
  type: Inject,
1934
1938
  args: ['ProductRepository']
1935
1939
  }] }, { type: undefined, decorators: [{
@@ -1947,7 +1951,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
1947
1951
  }] }, { type: undefined, decorators: [{
1948
1952
  type: Inject,
1949
1953
  args: ['ProductSearch']
1950
- }] }] });
1954
+ }] }]; } });
1951
1955
 
1952
1956
  class CategoryService {
1953
1957
  constructor(productRepository, categoryRepository, categoryFilterRepository, categoryStructureAdapter, shop) {
@@ -1973,12 +1977,12 @@ class CategoryService {
1973
1977
  .find({ filters: { categoryId: +category.id } })
1974
1978
  .then(({ data }) => data.map((categoryFilter) => categoryFilter.filter));
1975
1979
  }
1976
- 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 }); }
1977
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryService }); }
1978
1980
  }
1979
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryService, decorators: [{
1981
+ 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 });
1982
+ CategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService });
1983
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService, decorators: [{
1980
1984
  type: Injectable
1981
- }], ctorParameters: () => [{ type: undefined, decorators: [{
1985
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1982
1986
  type: Inject,
1983
1987
  args: ['ProductRepository']
1984
1988
  }] }, { type: undefined, decorators: [{
@@ -1993,7 +1997,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
1993
1997
  }] }, { type: i1$2.Shops, decorators: [{
1994
1998
  type: Inject,
1995
1999
  args: [DEFAULT_SHOP]
1996
- }] }] });
2000
+ }] }]; } });
1997
2001
 
1998
2002
  var ProductSorts;
1999
2003
  (function (ProductSorts) {
@@ -2211,12 +2215,12 @@ class WishlistService {
2211
2215
  break;
2212
2216
  }
2213
2217
  }
2214
- 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: 'ProductSearch' }, { token: 'LogRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
2215
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: WishlistService }); }
2216
2218
  }
2217
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: WishlistService, decorators: [{
2219
+ 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: 'ProductSearch' }, { token: 'LogRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
2220
+ WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
2221
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
2218
2222
  type: Injectable
2219
- }], ctorParameters: () => [{ type: undefined, decorators: [{
2223
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2220
2224
  type: Inject,
2221
2225
  args: ['WishlistRepository']
2222
2226
  }] }, { type: i1$2.Shops, decorators: [{
@@ -2240,7 +2244,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
2240
2244
  }] }, { type: undefined, decorators: [{
2241
2245
  type: Inject,
2242
2246
  args: ['LogRepository']
2243
- }] }] });
2247
+ }] }]; } });
2244
2248
 
2245
2249
  class CheckoutSubscriptionService {
2246
2250
  constructor(checkoutSubscriptionRepository, dataPersistence, couponService) {
@@ -2272,18 +2276,18 @@ class CheckoutSubscriptionService {
2272
2276
  await this.dataPersistence.set('checkoutSubscriptionId', checkout.id).toPromise();
2273
2277
  return checkout;
2274
2278
  }
2275
- 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 }); }
2276
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutSubscriptionService }); }
2277
2279
  }
2278
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutSubscriptionService, decorators: [{
2280
+ 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 });
2281
+ CheckoutSubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService });
2282
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService, decorators: [{
2279
2283
  type: Injectable
2280
- }], ctorParameters: () => [{ type: undefined, decorators: [{
2284
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2281
2285
  type: Inject,
2282
2286
  args: ['CheckoutSubscriptionRepository']
2283
2287
  }] }, { type: undefined, decorators: [{
2284
2288
  type: Inject,
2285
2289
  args: [PERSISTENCE_PROVIDER]
2286
- }] }, { type: CouponService }] });
2290
+ }] }, { type: CouponService }]; } });
2287
2291
 
2288
2292
  class UtilHelper {
2289
2293
  static createSlug(name) {
@@ -2402,12 +2406,12 @@ class HomeShopService {
2402
2406
  get gender() {
2403
2407
  return this.homeId === 'mens_market' ? 'masculino' : undefined;
2404
2408
  }
2405
- 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 }); }
2406
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: HomeShopService }); }
2407
2409
  }
2408
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: HomeShopService, decorators: [{
2410
+ 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 });
2411
+ HomeShopService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService });
2412
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService, decorators: [{
2409
2413
  type: Injectable
2410
- }], ctorParameters: () => [{ type: undefined, decorators: [{
2414
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2411
2415
  type: Inject,
2412
2416
  args: ['CategoryRepository']
2413
2417
  }] }, { type: undefined, decorators: [{
@@ -2419,7 +2423,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
2419
2423
  }] }, { type: i1$2.Shops, decorators: [{
2420
2424
  type: Inject,
2421
2425
  args: [DEFAULT_SHOP]
2422
- }] }] });
2426
+ }] }]; } });
2423
2427
 
2424
2428
  class OrderService {
2425
2429
  constructor(angularFirestore, orderRepository) {
@@ -2433,15 +2437,15 @@ class OrderService {
2433
2437
  .subscribe((doc) => this.orderSubject.next(doc));
2434
2438
  return this.orderSubject;
2435
2439
  }
2436
- 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 }); }
2437
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OrderService }); }
2438
2440
  }
2439
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OrderService, decorators: [{
2441
+ 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 });
2442
+ OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService });
2443
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
2440
2444
  type: Injectable
2441
- }], ctorParameters: () => [{ type: i1$1.Firestore }, { type: i1$2.OrderFirestoreRepository, decorators: [{
2445
+ }], ctorParameters: function () { return [{ type: i1$1.Firestore }, { type: i1$2.OrderFirestoreRepository, decorators: [{
2442
2446
  type: Inject,
2443
2447
  args: ['OrderRepository']
2444
- }] }] });
2448
+ }] }]; } });
2445
2449
 
2446
2450
  class ShippingService {
2447
2451
  constructor(http, apiUrl, homeService) {
@@ -2519,15 +2523,15 @@ class ShippingService {
2519
2523
  }
2520
2524
  return false;
2521
2525
  }
2522
- 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 }); }
2523
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ShippingService }); }
2524
2526
  }
2525
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ShippingService, decorators: [{
2527
+ 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 });
2528
+ ShippingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService });
2529
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, decorators: [{
2526
2530
  type: Injectable
2527
- }], ctorParameters: () => [{ type: i1$3.HttpClient }, { type: undefined, decorators: [{
2531
+ }], ctorParameters: function () { return [{ type: i1$3.HttpClient }, { type: undefined, decorators: [{
2528
2532
  type: Inject,
2529
2533
  args: [BACKEND_URL]
2530
- }] }, { type: HomeShopService }] });
2534
+ }] }, { type: HomeShopService }]; } });
2531
2535
 
2532
2536
  class AngularConnectModule {
2533
2537
  static initializeApp(defaultShop, options, nameOrConfig) {
@@ -2552,59 +2556,59 @@ class AngularConnectModule {
2552
2556
  ],
2553
2557
  };
2554
2558
  }
2555
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2556
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, imports: [i1$4.FirebaseAppModule, i2.StorageModule, AngularElasticSeachModule,
2557
- AngularVertexSeachModule,
2558
- AngularFirebaseAuthModule,
2559
- AngularFirestoreModule,
2560
- AngularHasuraGraphQLModule] }); }
2561
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, providers: [
2562
- AuthService,
2563
- CartService,
2564
- CatalogService,
2565
- CategoryService,
2566
- CheckoutService,
2567
- CheckoutSubscriptionService,
2568
- CouponService,
2569
- HomeShopService,
2570
- OrderService,
2571
- ShippingService,
2572
- WishlistService,
2573
- {
2574
- provide: UpdateUserImage,
2575
- useFactory: (userRepository, fileUploader) => {
2576
- return new UpdateUserImage(userRepository, fileUploader);
2577
- },
2578
- deps: ['UserRepository', 'FileUploaderService'],
2579
- },
2580
- {
2581
- provide: 'FileUploaderService',
2582
- useFactory: (storage, baseUrl) => {
2583
- return new FirebaseFileUploaderService(storage, baseUrl);
2584
- },
2585
- deps: [Storage, STORAGE_BASE_URL],
2586
- },
2587
- {
2588
- provide: 'ProductSearch',
2589
- useExisting: ProductsVertexSearch,
2590
- },
2591
- ], imports: [provideFirebaseApp((injector) => {
2592
- const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
2593
- try {
2594
- return getApp(appName);
2595
- }
2596
- catch (error) {
2597
- return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
2598
- }
2599
- }),
2600
- provideStorage((injector) => getStorage(injector.get(FirebaseApp))),
2601
- AngularElasticSeachModule,
2602
- AngularVertexSeachModule,
2603
- AngularFirebaseAuthModule,
2604
- AngularFirestoreModule,
2605
- AngularHasuraGraphQLModule] }); }
2606
2559
  }
2607
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, decorators: [{
2560
+ AngularConnectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2561
+ AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [i1$4.FirebaseAppModule, i2.StorageModule, AngularElasticSeachModule,
2562
+ AngularVertexSeachModule,
2563
+ AngularFirebaseAuthModule,
2564
+ AngularFirestoreModule,
2565
+ AngularHasuraGraphQLModule] });
2566
+ AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, providers: [
2567
+ AuthService,
2568
+ CartService,
2569
+ CatalogService,
2570
+ CategoryService,
2571
+ CheckoutService,
2572
+ CheckoutSubscriptionService,
2573
+ CouponService,
2574
+ HomeShopService,
2575
+ OrderService,
2576
+ ShippingService,
2577
+ WishlistService,
2578
+ {
2579
+ provide: UpdateUserImage,
2580
+ useFactory: (userRepository, fileUploader) => {
2581
+ return new UpdateUserImage(userRepository, fileUploader);
2582
+ },
2583
+ deps: ['UserRepository', 'FileUploaderService'],
2584
+ },
2585
+ {
2586
+ provide: 'FileUploaderService',
2587
+ useFactory: (storage, baseUrl) => {
2588
+ return new FirebaseFileUploaderService(storage, baseUrl);
2589
+ },
2590
+ deps: [Storage, STORAGE_BASE_URL],
2591
+ },
2592
+ {
2593
+ provide: 'ProductSearch',
2594
+ useExisting: ProductsVertexSearch,
2595
+ },
2596
+ ], imports: [provideFirebaseApp((injector) => {
2597
+ const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
2598
+ try {
2599
+ return getApp(appName);
2600
+ }
2601
+ catch (error) {
2602
+ return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
2603
+ }
2604
+ }),
2605
+ provideStorage((injector) => getStorage(injector.get(FirebaseApp))),
2606
+ AngularElasticSeachModule,
2607
+ AngularVertexSeachModule,
2608
+ AngularFirebaseAuthModule,
2609
+ AngularFirestoreModule,
2610
+ AngularHasuraGraphQLModule] });
2611
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, decorators: [{
2608
2612
  type: NgModule,
2609
2613
  args: [{
2610
2614
  imports: [