@infrab4a/connect-angular 5.5.0-alpha.0 → 5.5.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/angular-connect.module.d.ts +6 -9
  2. package/angular-firebase-auth.module.d.ts +1 -2
  3. package/angular-firestore.module.d.ts +1 -2
  4. package/esm2022/angular-connect.module.mjs +288 -0
  5. package/esm2022/angular-elastic-search.module.mjs +34 -0
  6. package/esm2022/angular-firebase-auth.module.mjs +140 -0
  7. package/esm2022/angular-firestore.module.mjs +538 -0
  8. package/esm2022/angular-hasura-graphql.module.mjs +333 -0
  9. package/esm2022/angular-vertex-search.module.mjs +34 -0
  10. package/{esm2020 → esm2022}/persistence/cookie-data-persistence.mjs +4 -4
  11. package/{esm2020 → esm2022}/services/auth.service.mjs +6 -6
  12. package/{esm2020 → esm2022}/services/cart/cart-services.facade.mjs +5 -5
  13. package/{esm2020 → esm2022}/services/cart.service.mjs +5 -5
  14. package/{esm2020 → esm2022}/services/catalog/adapters/new-category-structure.adapter.mjs +6 -6
  15. package/{esm2020 → esm2022}/services/catalog/adapters/old-category-structure.adapter.mjs +6 -6
  16. package/esm2022/services/catalog/catalog.service.mjs +111 -0
  17. package/esm2022/services/catalog/category.service.mjs +42 -0
  18. package/esm2022/services/catalog/context/catalog-search.context.mjs +40 -0
  19. package/{esm2020 → esm2022}/services/catalog/facades/catalog-service.facade.mjs +6 -6
  20. package/{esm2020 → esm2022}/services/catalog/facades/catalog-strategies.facade.mjs +5 -5
  21. package/{esm2020 → esm2022}/services/catalog/facades/category-repository.facade.mjs +6 -6
  22. package/{esm2020 → esm2022}/services/catalog/facades/category-service.facade.mjs +6 -6
  23. package/{esm2020 → esm2022}/services/catalog/facades/product-catalog.facade.mjs +6 -6
  24. package/esm2022/services/catalog/helpers/brand-manager.helper.mjs +57 -0
  25. package/esm2022/services/catalog/helpers/catalog-filter.helper.mjs +44 -0
  26. package/esm2022/services/catalog/helpers/catalog-sort.helper.mjs +52 -0
  27. package/{esm2020 → esm2022}/services/catalog/helpers/product-fields.helper.mjs +4 -4
  28. package/{esm2020 → esm2022}/services/catalog/models/category-with-tree.model.mjs +1 -1
  29. package/{esm2020 → esm2022}/services/catalog/services/catalog-helpers.service.mjs +5 -5
  30. package/{esm2020 → esm2022}/services/catalog/services/catalog-operations.facade.mjs +5 -5
  31. package/{esm2020 → esm2022}/services/catalog/services/catalog-repository.service.mjs +6 -6
  32. package/{esm2020 → esm2022}/services/catalog/services/product-management.facade.mjs +6 -6
  33. package/esm2022/services/catalog/strategies/category-search.strategy.mjs +133 -0
  34. package/esm2022/services/catalog/strategies/profile-search.strategy.mjs +42 -0
  35. package/esm2022/services/catalog/strategies/term-search.strategy.mjs +123 -0
  36. package/esm2022/services/catalog/wishlist.service.mjs +254 -0
  37. package/{esm2020 → esm2022}/services/checkout/checkout-dependencies.facade.mjs +6 -6
  38. package/{esm2020 → esm2022}/services/checkout/checkout-repositories.facade.mjs +6 -6
  39. package/{esm2020 → esm2022}/services/checkout-subscription.service.mjs +6 -6
  40. package/{esm2020 → esm2022}/services/checkout.service.mjs +7 -7
  41. package/{esm2020 → esm2022}/services/coupon/coupon-repositories.facade.mjs +6 -6
  42. package/esm2022/services/coupon.service.mjs +248 -0
  43. package/{esm2020 → esm2022}/services/home-shop/home-shop-repositories.facade.mjs +6 -6
  44. package/{esm2020 → esm2022}/services/home-shop.service.mjs +5 -5
  45. package/esm2022/services/order-product-review.service.mjs +110 -0
  46. package/{esm2020 → esm2022}/services/order.service.mjs +6 -6
  47. package/{esm2020 → esm2022}/services/shared/configuration.facade.mjs +6 -6
  48. package/{fesm2020 → fesm2022}/infrab4a-connect-angular.mjs +782 -784
  49. package/fesm2022/infrab4a-connect-angular.mjs.map +1 -0
  50. package/package.json +9 -15
  51. package/services/catalog/category.service.d.ts +1 -0
  52. package/services/checkout.service.d.ts +1 -1
  53. package/esm2020/angular-connect.module.mjs +0 -291
  54. package/esm2020/angular-elastic-search.module.mjs +0 -34
  55. package/esm2020/angular-firebase-auth.module.mjs +0 -141
  56. package/esm2020/angular-firestore.module.mjs +0 -541
  57. package/esm2020/angular-hasura-graphql.module.mjs +0 -333
  58. package/esm2020/angular-vertex-search.module.mjs +0 -34
  59. package/esm2020/services/catalog/catalog.service.mjs +0 -111
  60. package/esm2020/services/catalog/category.service.mjs +0 -39
  61. package/esm2020/services/catalog/context/catalog-search.context.mjs +0 -40
  62. package/esm2020/services/catalog/helpers/brand-manager.helper.mjs +0 -57
  63. package/esm2020/services/catalog/helpers/catalog-filter.helper.mjs +0 -44
  64. package/esm2020/services/catalog/helpers/catalog-sort.helper.mjs +0 -52
  65. package/esm2020/services/catalog/strategies/category-search.strategy.mjs +0 -133
  66. package/esm2020/services/catalog/strategies/profile-search.strategy.mjs +0 -42
  67. package/esm2020/services/catalog/strategies/term-search.strategy.mjs +0 -123
  68. package/esm2020/services/catalog/wishlist.service.mjs +0 -254
  69. package/esm2020/services/coupon.service.mjs +0 -248
  70. package/esm2020/services/order-product-review.service.mjs +0 -110
  71. package/fesm2015/infrab4a-connect-angular.mjs +0 -3486
  72. package/fesm2015/infrab4a-connect-angular.mjs.map +0 -1
  73. package/fesm2020/infrab4a-connect-angular.mjs.map +0 -1
  74. /package/{esm2020 → esm2022}/consts/backend-url.const.mjs +0 -0
  75. /package/{esm2020 → esm2022}/consts/category-structure.mjs +0 -0
  76. /package/{esm2020 → esm2022}/consts/default-shop.const.mjs +0 -0
  77. /package/{esm2020 → esm2022}/consts/es-config.const.mjs +0 -0
  78. /package/{esm2020 → esm2022}/consts/firebase-const.mjs +0 -0
  79. /package/{esm2020 → esm2022}/consts/hasura-options.const.mjs +0 -0
  80. /package/{esm2020 → esm2022}/consts/index.mjs +0 -0
  81. /package/{esm2020 → esm2022}/consts/persistence.const.mjs +0 -0
  82. /package/{esm2020 → esm2022}/consts/storage-base-url.const.mjs +0 -0
  83. /package/{esm2020 → esm2022}/consts/vertex-config.const.mjs +0 -0
  84. /package/{esm2020 → esm2022}/helpers/index.mjs +0 -0
  85. /package/{esm2020 → esm2022}/helpers/mobile-operation-system-checker.helper.mjs +0 -0
  86. /package/{esm2020 → esm2022}/index.mjs +0 -0
  87. /package/{esm2020 → esm2022}/infrab4a-connect-angular.mjs +0 -0
  88. /package/{esm2020 → esm2022}/interfaces/catalog-strategies.interface.mjs +0 -0
  89. /package/{esm2020 → esm2022}/interfaces/category-facades.interface.mjs +0 -0
  90. /package/{esm2020 → esm2022}/interfaces/index.mjs +0 -0
  91. /package/{esm2020 → esm2022}/persistence/data-persistence.mjs +0 -0
  92. /package/{esm2020 → esm2022}/persistence/index.mjs +0 -0
  93. /package/{esm2020 → esm2022}/services/cart/index.mjs +0 -0
  94. /package/{esm2020 → esm2022}/services/catalog/adapters/category-structure.adapter.mjs +0 -0
  95. /package/{esm2020 → esm2022}/services/catalog/adapters/index.mjs +0 -0
  96. /package/{esm2020 → esm2022}/services/catalog/enums/index.mjs +0 -0
  97. /package/{esm2020 → esm2022}/services/catalog/enums/product-sorts.enum.mjs +0 -0
  98. /package/{esm2020 → esm2022}/services/catalog/facades/index.mjs +0 -0
  99. /package/{esm2020 → esm2022}/services/catalog/helpers/index.mjs +0 -0
  100. /package/{esm2020 → esm2022}/services/catalog/index.mjs +0 -0
  101. /package/{esm2020 → esm2022}/services/catalog/models/index.mjs +0 -0
  102. /package/{esm2020 → esm2022}/services/catalog/services/index.mjs +0 -0
  103. /package/{esm2020 → esm2022}/services/catalog/strategies/index.mjs +0 -0
  104. /package/{esm2020 → esm2022}/services/catalog/strategies/types/strategy-params.type.mjs +0 -0
  105. /package/{esm2020 → esm2022}/services/catalog/types/fetch-products-options.type.mjs +0 -0
  106. /package/{esm2020 → esm2022}/services/catalog/types/fetch-products-params.type.mjs +0 -0
  107. /package/{esm2020 → esm2022}/services/catalog/types/fetch-products-response.type.mjs +0 -0
  108. /package/{esm2020 → esm2022}/services/catalog/types/index.mjs +0 -0
  109. /package/{esm2020 → esm2022}/services/catalog/types/method-params.type.mjs +0 -0
  110. /package/{esm2020 → esm2022}/services/catalog/types/product-sort.type.mjs +0 -0
  111. /package/{esm2020 → esm2022}/services/checkout/index.mjs +0 -0
  112. /package/{esm2020 → esm2022}/services/coupon/index.mjs +0 -0
  113. /package/{esm2020 → esm2022}/services/coupon/types/coupon-params.type.mjs +0 -0
  114. /package/{esm2020 → esm2022}/services/helpers/index.mjs +0 -0
  115. /package/{esm2020 → esm2022}/services/helpers/util.helper.mjs +0 -0
  116. /package/{esm2020 → esm2022}/services/home-shop/index.mjs +0 -0
  117. /package/{esm2020 → esm2022}/services/index.mjs +0 -0
  118. /package/{esm2020 → esm2022}/services/shared/index.mjs +0 -0
  119. /package/{esm2020 → esm2022}/services/types/index.mjs +0 -0
  120. /package/{esm2020 → esm2022}/services/types/pending-product-review.type.mjs +0 -0
  121. /package/{esm2020 → esm2022}/services/types/product-review-create.type.mjs +0 -0
  122. /package/{esm2020 → esm2022}/services/types/required-checkout-data.type.mjs +0 -0
  123. /package/{esm2020 → esm2022}/services/types/required-checkout-subscription-data.type.mjs +0 -0
  124. /package/{esm2020 → esm2022}/types/firebase-app-config.type.mjs +0 -0
  125. /package/{esm2020 → esm2022}/types/index.mjs +0 -0
@@ -1,22 +1,19 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { NgModule, InjectionToken, PLATFORM_ID, Injectable, Inject } from '@angular/core';
3
- import * as i1$3 from '@angular/fire/app';
4
3
  import { FirebaseApp, provideFirebaseApp, getApp, initializeApp } from '@angular/fire/app';
5
- import * as i2 from '@angular/fire/app-check';
6
4
  import { provideAppCheck, initializeAppCheck } from '@angular/fire/app-check';
7
- import * as i3$1 from '@angular/fire/storage';
8
- import { Storage, provideStorage, getStorage } from '@angular/fire/storage';
5
+ import { provideStorage, Storage, getStorage } from '@angular/fire/storage';
9
6
  import * as i3 from '@infrab4a/connect';
10
- import { ProductsIndex, AxiosAdapter, Authentication, AuthenticationFirebaseAuthService, Register, RegisterFirebaseAuthService, SignOut, RecoveryPassword, ConnectFirestoreService, UserBeautyProfileFirestoreRepository, Buy2WinFirestoreRepository, CategoryFirestoreRepository, CheckoutFirestoreRepository, CheckoutSubscriptionFirestoreRepository, CouponFirestoreRepository, CampaignHashtagFirestoreRepository, CampaignDashboardFirestoreRepository, SubscriptionEditionFirestoreRepository, GroupFirestoreRepository, HomeFirestoreRepository, LeadFirestoreRepository, LegacyOrderFirestoreRepository, ShopMenuFirestoreRepository, OrderFirestoreRepository, PaymentFirestoreRepository, ProductFirestoreRepository, ShopSettingsFirestoreRepository, SubscriptionPaymentFirestoreRepository, SubscriptionPlanFirestoreRepository, SubscriptionProductFirestoreRepository, SubscriptionFirestoreRepository, UserFirestoreRepository, UserAddressFirestoreRepository, UserPaymentMethodFirestoreRepository, SubscriptionMaterializationFirestoreRepository, SubscriptionSummaryFirestoreRepository, ProductVariantFirestoreRepository, OrderBlockedFirestoreRepository, LogFirestoreRepository, SequenceFirestoreRepository, CategoryHasuraGraphQLRepository, ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository, ProductReviewHasuraGraphQLRepository, VariantHasuraGraphQLRepository, ProductStockNotificationHasuraGraphQLRepository, FilterOptionHasuraGraphQLRepository, FilterHasuraGraphQLRepository, CategoryCollectionChildrenHasuraGraphQLRepository, CategoryProductHasuraGraphQLRepository, WishlistHasuraGraphQLRepository, ProductErrorsHasuraGraphQLRepository, ProductsVertexSearch, VertexAxiosAdapter, isNil, NotFoundError, Checkout, pick, LineItem, Where, isEmpty, Shops, set, InvalidArgumentError, RoundProductPricesHelper, Category, WishlistLogType, PersonTypes, Wishlist, CheckoutTypes, CouponTypes, Exclusivities, OrderStatus, CheckoutSubscription, Product, RequiredArgumentError, add, ProductReview, Order, UpdateUserImage, FirebaseFileUploaderService } from '@infrab4a/connect';
7
+ import { ProductsIndex, AxiosAdapter, Authentication, AuthenticationFirebaseAuthService, Register, RegisterFirebaseAuthService, SignOut, RecoveryPassword, ConnectFirestoreService, CategoryFirestoreRepository, ProductFirestoreRepository, ProductVariantFirestoreRepository, UserBeautyProfileFirestoreRepository, Buy2WinFirestoreRepository, CheckoutFirestoreRepository, CheckoutSubscriptionFirestoreRepository, CouponFirestoreRepository, CampaignHashtagFirestoreRepository, CampaignDashboardFirestoreRepository, SubscriptionEditionFirestoreRepository, GroupFirestoreRepository, HomeFirestoreRepository, LeadFirestoreRepository, LegacyOrderFirestoreRepository, ShopMenuFirestoreRepository, OrderFirestoreRepository, PaymentFirestoreRepository, ShopSettingsFirestoreRepository, SubscriptionPaymentFirestoreRepository, SubscriptionPlanFirestoreRepository, SubscriptionProductFirestoreRepository, SubscriptionFirestoreRepository, UserFirestoreRepository, UserAddressFirestoreRepository, UserPaymentMethodFirestoreRepository, SubscriptionMaterializationFirestoreRepository, SubscriptionSummaryFirestoreRepository, OrderBlockedFirestoreRepository, LogFirestoreRepository, SequenceFirestoreRepository, CategoryHasuraGraphQLRepository, ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository, ProductReviewHasuraGraphQLRepository, VariantHasuraGraphQLRepository, ProductStockNotificationHasuraGraphQLRepository, FilterOptionHasuraGraphQLRepository, FilterHasuraGraphQLRepository, CategoryCollectionChildrenHasuraGraphQLRepository, CategoryProductHasuraGraphQLRepository, WishlistHasuraGraphQLRepository, ProductErrorsHasuraGraphQLRepository, ProductsVertexSearch, VertexAxiosAdapter, isNil, NotFoundError, Checkout, pick, LineItem, Where, isEmpty, Shops, set, InvalidArgumentError, RoundProductPricesHelper, Category, WishlistLogType, PersonTypes, Wishlist, CheckoutTypes, CouponTypes, Exclusivities, OrderStatus, CheckoutSubscription, Product, RequiredArgumentError, add, ProductReview, Order, UpdateUserImage, FirebaseFileUploaderService } from '@infrab4a/connect';
11
8
  import * as i1 from '@angular/fire/auth';
12
- import { Auth, provideAuth, initializeAuth, indexedDBLocalPersistence, browserLocalPersistence, browserSessionPersistence, getAuth, getIdToken, authState } from '@angular/fire/auth';
13
- import { isPlatformBrowser, isPlatformServer } from '@angular/common';
14
- import * as i1$1 from '@angular/fire/firestore';
15
- import { Firestore, provideFirestore, initializeFirestore, memoryLocalCache, docSnapshots, doc } from '@angular/fire/firestore';
9
+ import { provideAuth, Auth, initializeAuth, indexedDBLocalPersistence, browserLocalPersistence, browserSessionPersistence, getAuth, getIdToken, authState } from '@angular/fire/auth';
10
+ import { isPlatformServer, isPlatformBrowser } from '@angular/common';
11
+ import * as i1$2 from '@angular/fire/firestore';
12
+ import { provideFirestore, Firestore, initializeFirestore, memoryLocalCache, docSnapshots, doc } from '@angular/fire/firestore';
16
13
  import cookie from 'js-cookie';
17
14
  import { of, from, combineLatest, throwError, Subject, forkJoin } from 'rxjs';
18
15
  import { map, mergeMap, catchError, concatMap, tap } from 'rxjs/operators';
19
- import * as i1$2 from '@angular/common/http';
16
+ import * as i1$1 from '@angular/common/http';
20
17
  import { __decorate, __metadata } from 'tslib';
21
18
  import { Type } from 'class-transformer';
22
19
 
@@ -29,17 +26,17 @@ class AngularElasticSeachModule {
29
26
  providers: [{ provide: ES_CONFIG, useValue: options }],
30
27
  };
31
28
  }
29
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularElasticSeachModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
30
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: AngularElasticSeachModule }); }
31
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularElasticSeachModule, providers: [
32
+ {
33
+ provide: ProductsIndex,
34
+ useFactory: (configuration) => new ProductsIndex(new AxiosAdapter(configuration)),
35
+ deps: [ES_CONFIG],
36
+ },
37
+ ] }); }
32
38
  }
33
- AngularElasticSeachModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
34
- AngularElasticSeachModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule });
35
- AngularElasticSeachModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule, providers: [
36
- {
37
- provide: ProductsIndex,
38
- useFactory: (configuration) => new ProductsIndex(new AxiosAdapter(configuration)),
39
- deps: [ES_CONFIG],
40
- },
41
- ] });
42
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule, decorators: [{
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularElasticSeachModule, decorators: [{
43
40
  type: NgModule,
44
41
  args: [{
45
42
  providers: [
@@ -78,69 +75,71 @@ class AngularFirebaseAuthModule {
78
75
  ],
79
76
  };
80
77
  }
78
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularFirebaseAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
79
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: AngularFirebaseAuthModule }); }
80
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularFirebaseAuthModule, providers: [
81
+ provideAuth((injector) => {
82
+ const app = injector.get(FirebaseApp);
83
+ try {
84
+ return initializeAuth(app, {
85
+ persistence: [indexedDBLocalPersistence, browserLocalPersistence, browserSessionPersistence],
86
+ });
87
+ }
88
+ catch (error) {
89
+ if (error instanceof Error)
90
+ console.error('Error initializing auth', error.message);
91
+ return getAuth(app);
92
+ }
93
+ }),
94
+ {
95
+ provide: 'Authentication',
96
+ useFactory: (authenticationService, userRepository) => {
97
+ return new Authentication(authenticationService, userRepository);
98
+ },
99
+ deps: ['AuthenticationService', 'UserRepository'],
100
+ },
101
+ {
102
+ provide: 'AuthenticationService',
103
+ useFactory: (angularFireAuth) => {
104
+ return new AuthenticationFirebaseAuthService(angularFireAuth);
105
+ },
106
+ deps: [Auth],
107
+ },
108
+ {
109
+ provide: 'Register',
110
+ useFactory: (registerService, userRepository) => {
111
+ return new Register(registerService, userRepository);
112
+ },
113
+ deps: ['RegisterService', 'UserRepository'],
114
+ },
115
+ {
116
+ provide: 'RegisterService',
117
+ useFactory: (angularFireAuth) => {
118
+ return new RegisterFirebaseAuthService(angularFireAuth);
119
+ },
120
+ deps: [Auth],
121
+ },
122
+ {
123
+ provide: 'SignOut',
124
+ useFactory: (authenticationService) => {
125
+ return new SignOut(authenticationService);
126
+ },
127
+ deps: ['AuthenticationService'],
128
+ },
129
+ {
130
+ provide: 'RecoveryPassword',
131
+ useFactory: (authenticationService) => {
132
+ return new RecoveryPassword(authenticationService);
133
+ },
134
+ deps: ['AuthenticationService'],
135
+ },
136
+ ] }); }
81
137
  }
82
- AngularFirebaseAuthModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
83
- AngularFirebaseAuthModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, imports: [i1.AuthModule] });
84
- AngularFirebaseAuthModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, providers: [
85
- {
86
- provide: 'Authentication',
87
- useFactory: (authenticationService, userRepository) => {
88
- return new Authentication(authenticationService, userRepository);
89
- },
90
- deps: ['AuthenticationService', 'UserRepository'],
91
- },
92
- {
93
- provide: 'AuthenticationService',
94
- useFactory: (angularFireAuth) => {
95
- return new AuthenticationFirebaseAuthService(angularFireAuth);
96
- },
97
- deps: [Auth],
98
- },
99
- {
100
- provide: 'Register',
101
- useFactory: (registerService, userRepository) => {
102
- return new Register(registerService, userRepository);
103
- },
104
- deps: ['RegisterService', 'UserRepository'],
105
- },
106
- {
107
- provide: 'RegisterService',
108
- useFactory: (angularFireAuth) => {
109
- return new RegisterFirebaseAuthService(angularFireAuth);
110
- },
111
- deps: [Auth],
112
- },
113
- {
114
- provide: 'SignOut',
115
- useFactory: (authenticationService) => {
116
- return new SignOut(authenticationService);
117
- },
118
- deps: ['AuthenticationService'],
119
- },
120
- {
121
- provide: 'RecoveryPassword',
122
- useFactory: (authenticationService) => {
123
- return new RecoveryPassword(authenticationService);
124
- },
125
- deps: ['AuthenticationService'],
126
- },
127
- ], imports: [provideAuth((injector) => {
128
- const app = injector.get(FirebaseApp);
129
- try {
130
- return initializeAuth(app, {
131
- persistence: [indexedDBLocalPersistence, browserLocalPersistence, browserSessionPersistence],
132
- });
133
- }
134
- catch (error) {
135
- if (error instanceof Error)
136
- console.error('Error initializing auth', error.message);
137
- return getAuth(app);
138
- }
139
- })] });
140
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
138
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
141
139
  type: NgModule,
142
140
  args: [{
143
- imports: [
141
+ imports: [],
142
+ providers: [
144
143
  provideAuth((injector) => {
145
144
  const app = injector.get(FirebaseApp);
146
145
  try {
@@ -154,8 +153,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
154
153
  return getAuth(app);
155
154
  }
156
155
  }),
157
- ],
158
- providers: [
159
156
  {
160
157
  provide: 'Authentication',
161
158
  useFactory: (authenticationService, userRepository) => {
@@ -220,268 +217,268 @@ class AngularFirestoreModule {
220
217
  ],
221
218
  };
222
219
  }
223
- }
224
- AngularFirestoreModulefac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
225
- AngularFirestoreModulemod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1$1.FirestoreModule] });
226
- AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, providers: [
227
- {
228
- provide: 'FirestoreOptions',
229
- useFactory: (firestore, platformId) => ({
230
- firestore: new ConnectFirestoreService(firestore),
231
- interceptors: {
232
- request: (request) => {
233
- if (isPlatformBrowser(platformId))
220
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
221
+ static { thismod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule] }); }
222
+ static { thisinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularFirestoreModule, providers: [
223
+ provideFirestore((injector) => {
224
+ const platformId = injector.get(PLATFORM_ID);
225
+ if (isPlatformServer(platformId) || !MobileOperationSystemCheckerHelper.isAppleDevice())
226
+ return initializeFirestore(injector.get(FirebaseApp), {
227
+ ignoreUndefinedProperties: true,
228
+ });
229
+ const firestore = initializeFirestore(injector.get(FirebaseApp), {
230
+ experimentalForceLongPolling: true,
231
+ ignoreUndefinedProperties: true,
232
+ localCache: memoryLocalCache(),
233
+ });
234
+ return firestore;
235
+ }),
236
+ {
237
+ provide: 'FirestoreOptions',
238
+ useFactory: (firestore, platformId) => ({
239
+ firestore: new ConnectFirestoreService(firestore),
240
+ interceptors: {
241
+ request: (request) => {
242
+ if (isPlatformBrowser(platformId))
243
+ return request;
244
+ const interval = setInterval(() => { }, 100);
245
+ request.interval = interval;
234
246
  return request;
235
- const interval = setInterval(() => { }, 100);
236
- request.interval = interval;
237
- return request;
238
- },
239
- response: (response, request) => {
240
- if (isPlatformBrowser(platformId))
247
+ },
248
+ response: (response, request) => {
249
+ if (isPlatformBrowser(platformId))
250
+ return response;
251
+ clearInterval(request.interval);
241
252
  return response;
242
- clearInterval(request.interval);
243
- return response;
253
+ },
244
254
  },
255
+ }),
256
+ deps: [Firestore, PLATFORM_ID],
257
+ },
258
+ {
259
+ provide: 'BeautyProfileRepository',
260
+ useFactory: (config, userRepository) => {
261
+ return new UserBeautyProfileFirestoreRepository(config, userRepository);
245
262
  },
246
- }),
247
- deps: [Firestore, PLATFORM_ID],
248
- },
249
- {
250
- provide: 'BeautyProfileRepository',
251
- useFactory: (config, userRepository) => {
252
- return new UserBeautyProfileFirestoreRepository(config, userRepository);
253
- },
254
- deps: ['FirestoreOptions', 'UserRepository'],
255
- },
256
- {
257
- provide: 'Buy2WinRepository',
258
- useFactory: (options) => {
259
- return new Buy2WinFirestoreRepository(options);
260
- },
261
- deps: ['FirestoreOptions'],
262
- },
263
- {
264
- provide: CategoryFirestoreRepository,
265
- useFactory: (options) => {
266
- return new CategoryFirestoreRepository(options);
267
- },
268
- deps: ['FirestoreOptions'],
269
- },
270
- {
271
- provide: 'CheckoutRepository',
272
- useFactory: (options) => {
273
- return new CheckoutFirestoreRepository(options);
274
- },
275
- deps: ['FirestoreOptions'],
276
- },
277
- {
278
- provide: 'CheckoutSubscriptionRepository',
279
- useFactory: (options) => {
280
- return new CheckoutSubscriptionFirestoreRepository(options);
281
- },
282
- deps: ['FirestoreOptions'],
283
- },
284
- {
285
- provide: 'CouponRepository',
286
- useFactory: (options) => {
287
- return new CouponFirestoreRepository(options);
288
- },
289
- deps: ['FirestoreOptions'],
290
- },
291
- {
292
- provide: 'CampaignHashtagRepository',
293
- useFactory: (options) => {
294
- return new CampaignHashtagFirestoreRepository(options);
295
- },
296
- deps: ['FirestoreOptions'],
297
- },
298
- {
299
- provide: 'CampaignDashboardRepository',
300
- useFactory: (options) => {
301
- return new CampaignDashboardFirestoreRepository(options);
302
- },
303
- deps: ['FirestoreOptions'],
304
- },
305
- {
306
- provide: 'EditionRepository',
307
- useFactory: (options, subscriptionRepository) => {
308
- return new SubscriptionEditionFirestoreRepository(options, subscriptionRepository);
309
- },
310
- deps: ['FirestoreOptions', 'SubscriptionRepository'],
311
- },
312
- {
313
- provide: 'GroupRepository',
314
- useFactory: (options) => {
315
- return new GroupFirestoreRepository(options);
316
- },
317
- deps: ['FirestoreOptions'],
318
- },
319
- {
320
- provide: 'HomeRepository',
321
- useFactory: (options) => {
322
- return new HomeFirestoreRepository(options);
323
- },
324
- deps: ['FirestoreOptions'],
325
- },
326
- {
327
- provide: 'LeadRepository',
328
- useFactory: (options) => {
329
- return new LeadFirestoreRepository(options);
330
- },
331
- deps: ['FirestoreOptions'],
332
- },
333
- {
334
- provide: 'LegacyOrderRepository',
335
- useFactory: (options) => {
336
- return new LegacyOrderFirestoreRepository(options);
337
- },
338
- deps: ['FirestoreOptions'],
339
- },
340
- {
341
- provide: 'ShopMenuRepository',
342
- useFactory: (options) => {
343
- return new ShopMenuFirestoreRepository(options);
344
- },
345
- deps: ['FirestoreOptions'],
346
- },
347
- {
348
- provide: 'OrderRepository',
349
- useFactory: (options) => {
350
- return new OrderFirestoreRepository(options);
351
- },
352
- deps: ['FirestoreOptions'],
353
- },
354
- {
355
- provide: 'PaymentRepository',
356
- useFactory: (options) => {
357
- return new PaymentFirestoreRepository(options);
358
- },
359
- deps: ['FirestoreOptions'],
360
- },
361
- {
362
- provide: ProductFirestoreRepository,
363
- useFactory: (options) => {
364
- return new ProductFirestoreRepository(options);
365
- },
366
- deps: ['FirestoreOptions'],
367
- },
368
- {
369
- provide: 'ShopSettingsRepository',
370
- useFactory: (options) => {
371
- return new ShopSettingsFirestoreRepository(options);
372
- },
373
- deps: ['FirestoreOptions'],
374
- },
375
- {
376
- provide: 'SubscriptionPaymentRepository',
377
- useFactory: (options, subscriptionRepository) => {
378
- return new SubscriptionPaymentFirestoreRepository(options, subscriptionRepository);
379
- },
380
- deps: ['FirestoreOptions', 'SubscriptionRepository'],
381
- },
382
- {
383
- provide: 'SubscriptionPlanRepository',
384
- useFactory: (options) => {
385
- return new SubscriptionPlanFirestoreRepository(options);
386
- },
387
- deps: ['FirestoreOptions'],
388
- },
389
- {
390
- provide: 'SubscriptionProductRepository',
391
- useFactory: (options) => {
392
- return new SubscriptionProductFirestoreRepository(options);
393
- },
394
- deps: ['FirestoreOptions'],
395
- },
396
- {
397
- provide: 'SubscriptionRepository',
398
- useFactory: (options) => {
399
- return new SubscriptionFirestoreRepository(options);
400
- },
401
- deps: ['FirestoreOptions'],
402
- },
403
- {
404
- provide: 'UserRepository',
405
- useFactory: (options) => {
406
- return new UserFirestoreRepository(options);
407
- },
408
- deps: ['FirestoreOptions'],
409
- },
410
- {
411
- provide: 'UserAddressRepository',
412
- useFactory: (options, userRepository) => {
413
- return new UserAddressFirestoreRepository(options, userRepository);
414
- },
415
- deps: ['FirestoreOptions', 'UserRepository'],
416
- },
417
- {
418
- provide: 'UserPaymentMethodRepository',
419
- useFactory: (options, userRepository) => {
420
- return new UserPaymentMethodFirestoreRepository(options, userRepository);
421
- },
422
- deps: ['FirestoreOptions', 'UserRepository'],
423
- },
424
- {
425
- provide: 'SubscriptionMaterializationRepository',
426
- useFactory: (options) => {
427
- return new SubscriptionMaterializationFirestoreRepository(options);
428
- },
429
- deps: ['FirestoreOptions'],
430
- },
431
- {
432
- provide: 'SubscriptionSummaryRepository',
433
- useFactory: (options) => {
434
- return new SubscriptionSummaryFirestoreRepository(options);
435
- },
436
- deps: ['FirestoreOptions'],
437
- },
438
- {
439
- provide: ProductVariantFirestoreRepository,
440
- useFactory: (options, productRepository) => {
441
- return new ProductVariantFirestoreRepository(options, productRepository);
442
- },
443
- deps: ['FirestoreOptions', ProductFirestoreRepository],
444
- },
445
- {
446
- provide: 'OrderBlockedRepository',
447
- useFactory: (options) => {
448
- return new OrderBlockedFirestoreRepository(options);
449
- },
450
- deps: ['FirestoreOptions'],
451
- },
452
- {
453
- provide: 'LogRepository',
454
- useFactory: (options) => {
455
- return new LogFirestoreRepository(options);
456
- },
457
- deps: ['FirestoreOptions'],
458
- },
459
- {
460
- provide: 'SequenceRepository',
461
- useFactory: (options) => {
462
- return new SequenceFirestoreRepository(options);
463
- },
464
- deps: ['FirestoreOptions'],
465
- },
466
- ], imports: [AngularElasticSeachModule,
467
- provideFirestore((injector) => {
468
- const platformId = injector.get(PLATFORM_ID);
469
- if (isPlatformServer(platformId) || !MobileOperationSystemCheckerHelper.isAppleDevice())
470
- return initializeFirestore(injector.get(FirebaseApp), {
471
- ignoreUndefinedProperties: true,
472
- });
473
- const firestore = initializeFirestore(injector.get(FirebaseApp), {
474
- experimentalForceLongPolling: true,
475
- ignoreUndefinedProperties: true,
476
- localCache: memoryLocalCache(),
477
- });
478
- return firestore;
479
- })] });
480
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, decorators: [{
263
+ deps: ['FirestoreOptions', 'UserRepository'],
264
+ },
265
+ {
266
+ provide: 'Buy2WinRepository',
267
+ useFactory: (options) => {
268
+ return new Buy2WinFirestoreRepository(options);
269
+ },
270
+ deps: ['FirestoreOptions'],
271
+ },
272
+ {
273
+ provide: CategoryFirestoreRepository,
274
+ useFactory: (options) => {
275
+ return new CategoryFirestoreRepository(options);
276
+ },
277
+ deps: ['FirestoreOptions'],
278
+ },
279
+ {
280
+ provide: 'CheckoutRepository',
281
+ useFactory: (options) => {
282
+ return new CheckoutFirestoreRepository(options);
283
+ },
284
+ deps: ['FirestoreOptions'],
285
+ },
286
+ {
287
+ provide: 'CheckoutSubscriptionRepository',
288
+ useFactory: (options) => {
289
+ return new CheckoutSubscriptionFirestoreRepository(options);
290
+ },
291
+ deps: ['FirestoreOptions'],
292
+ },
293
+ {
294
+ provide: 'CouponRepository',
295
+ useFactory: (options) => {
296
+ return new CouponFirestoreRepository(options);
297
+ },
298
+ deps: ['FirestoreOptions'],
299
+ },
300
+ {
301
+ provide: 'CampaignHashtagRepository',
302
+ useFactory: (options) => {
303
+ return new CampaignHashtagFirestoreRepository(options);
304
+ },
305
+ deps: ['FirestoreOptions'],
306
+ },
307
+ {
308
+ provide: 'CampaignDashboardRepository',
309
+ useFactory: (options) => {
310
+ return new CampaignDashboardFirestoreRepository(options);
311
+ },
312
+ deps: ['FirestoreOptions'],
313
+ },
314
+ {
315
+ provide: 'EditionRepository',
316
+ useFactory: (options, subscriptionRepository) => {
317
+ return new SubscriptionEditionFirestoreRepository(options, subscriptionRepository);
318
+ },
319
+ deps: ['FirestoreOptions', 'SubscriptionRepository'],
320
+ },
321
+ {
322
+ provide: 'GroupRepository',
323
+ useFactory: (options) => {
324
+ return new GroupFirestoreRepository(options);
325
+ },
326
+ deps: ['FirestoreOptions'],
327
+ },
328
+ {
329
+ provide: 'HomeRepository',
330
+ useFactory: (options) => {
331
+ return new HomeFirestoreRepository(options);
332
+ },
333
+ deps: ['FirestoreOptions'],
334
+ },
335
+ {
336
+ provide: 'LeadRepository',
337
+ useFactory: (options) => {
338
+ return new LeadFirestoreRepository(options);
339
+ },
340
+ deps: ['FirestoreOptions'],
341
+ },
342
+ {
343
+ provide: 'LegacyOrderRepository',
344
+ useFactory: (options) => {
345
+ return new LegacyOrderFirestoreRepository(options);
346
+ },
347
+ deps: ['FirestoreOptions'],
348
+ },
349
+ {
350
+ provide: 'ShopMenuRepository',
351
+ useFactory: (options) => {
352
+ return new ShopMenuFirestoreRepository(options);
353
+ },
354
+ deps: ['FirestoreOptions'],
355
+ },
356
+ {
357
+ provide: 'OrderRepository',
358
+ useFactory: (options) => {
359
+ return new OrderFirestoreRepository(options);
360
+ },
361
+ deps: ['FirestoreOptions'],
362
+ },
363
+ {
364
+ provide: 'PaymentRepository',
365
+ useFactory: (options) => {
366
+ return new PaymentFirestoreRepository(options);
367
+ },
368
+ deps: ['FirestoreOptions'],
369
+ },
370
+ {
371
+ provide: ProductFirestoreRepository,
372
+ useFactory: (options) => {
373
+ return new ProductFirestoreRepository(options);
374
+ },
375
+ deps: ['FirestoreOptions'],
376
+ },
377
+ {
378
+ provide: 'ShopSettingsRepository',
379
+ useFactory: (options) => {
380
+ return new ShopSettingsFirestoreRepository(options);
381
+ },
382
+ deps: ['FirestoreOptions'],
383
+ },
384
+ {
385
+ provide: 'SubscriptionPaymentRepository',
386
+ useFactory: (options, subscriptionRepository) => {
387
+ return new SubscriptionPaymentFirestoreRepository(options, subscriptionRepository);
388
+ },
389
+ deps: ['FirestoreOptions', 'SubscriptionRepository'],
390
+ },
391
+ {
392
+ provide: 'SubscriptionPlanRepository',
393
+ useFactory: (options) => {
394
+ return new SubscriptionPlanFirestoreRepository(options);
395
+ },
396
+ deps: ['FirestoreOptions'],
397
+ },
398
+ {
399
+ provide: 'SubscriptionProductRepository',
400
+ useFactory: (options) => {
401
+ return new SubscriptionProductFirestoreRepository(options);
402
+ },
403
+ deps: ['FirestoreOptions'],
404
+ },
405
+ {
406
+ provide: 'SubscriptionRepository',
407
+ useFactory: (options) => {
408
+ return new SubscriptionFirestoreRepository(options);
409
+ },
410
+ deps: ['FirestoreOptions'],
411
+ },
412
+ {
413
+ provide: 'UserRepository',
414
+ useFactory: (options) => {
415
+ return new UserFirestoreRepository(options);
416
+ },
417
+ deps: ['FirestoreOptions'],
418
+ },
419
+ {
420
+ provide: 'UserAddressRepository',
421
+ useFactory: (options, userRepository) => {
422
+ return new UserAddressFirestoreRepository(options, userRepository);
423
+ },
424
+ deps: ['FirestoreOptions', 'UserRepository'],
425
+ },
426
+ {
427
+ provide: 'UserPaymentMethodRepository',
428
+ useFactory: (options, userRepository) => {
429
+ return new UserPaymentMethodFirestoreRepository(options, userRepository);
430
+ },
431
+ deps: ['FirestoreOptions', 'UserRepository'],
432
+ },
433
+ {
434
+ provide: 'SubscriptionMaterializationRepository',
435
+ useFactory: (options) => {
436
+ return new SubscriptionMaterializationFirestoreRepository(options);
437
+ },
438
+ deps: ['FirestoreOptions'],
439
+ },
440
+ {
441
+ provide: 'SubscriptionSummaryRepository',
442
+ useFactory: (options) => {
443
+ return new SubscriptionSummaryFirestoreRepository(options);
444
+ },
445
+ deps: ['FirestoreOptions'],
446
+ },
447
+ {
448
+ provide: ProductVariantFirestoreRepository,
449
+ useFactory: (options, productRepository) => {
450
+ return new ProductVariantFirestoreRepository(options, productRepository);
451
+ },
452
+ deps: ['FirestoreOptions', ProductFirestoreRepository],
453
+ },
454
+ {
455
+ provide: 'OrderBlockedRepository',
456
+ useFactory: (options) => {
457
+ return new OrderBlockedFirestoreRepository(options);
458
+ },
459
+ deps: ['FirestoreOptions'],
460
+ },
461
+ {
462
+ provide: 'LogRepository',
463
+ useFactory: (options) => {
464
+ return new LogFirestoreRepository(options);
465
+ },
466
+ deps: ['FirestoreOptions'],
467
+ },
468
+ {
469
+ provide: 'SequenceRepository',
470
+ useFactory: (options) => {
471
+ return new SequenceFirestoreRepository(options);
472
+ },
473
+ deps: ['FirestoreOptions'],
474
+ },
475
+ ], imports: [AngularElasticSeachModule] }); }
476
+ }
477
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularFirestoreModule, decorators: [{
481
478
  type: NgModule,
482
479
  args: [{
483
- imports: [
484
- AngularElasticSeachModule,
480
+ imports: [AngularElasticSeachModule],
481
+ providers: [
485
482
  provideFirestore((injector) => {
486
483
  const platformId = injector.get(PLATFORM_ID);
487
484
  if (isPlatformServer(platformId) || !MobileOperationSystemCheckerHelper.isAppleDevice())
@@ -495,8 +492,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
495
492
  });
496
493
  return firestore;
497
494
  }),
498
- ],
499
- providers: [
500
495
  {
501
496
  provide: 'FirestoreOptions',
502
497
  useFactory: (firestore, platformId) => ({
@@ -747,166 +742,166 @@ class AngularHasuraGraphQLModule {
747
742
  providers: [{ provide: HASURA_OPTIONS, useValue: options }],
748
743
  };
749
744
  }
750
- }
751
- AngularHasuraGraphQLModulefac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
752
- AngularHasuraGraphQLModulemod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule });
753
- AngularHasuraGraphQLModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, providers: [
754
- {
755
- provide: 'HasuraConfig',
756
- useFactory: (options, platformId) => ({
757
- endpoint: options.endpoint,
758
- authOptions: options.credentials,
759
- cache: options.cache,
760
- interceptors: {
761
- request: (request) => {
762
- if (isPlatformBrowser(platformId))
745
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularHasuraGraphQLModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
746
+ static { thismod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: AngularHasuraGraphQLModule }); }
747
+ static { thisinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularHasuraGraphQLModule, providers: [
748
+ {
749
+ provide: 'HasuraConfig',
750
+ useFactory: (options, platformId) => ({
751
+ endpoint: options.endpoint,
752
+ authOptions: options.credentials,
753
+ cache: options.cache,
754
+ interceptors: {
755
+ request: (request) => {
756
+ if (isPlatformBrowser(platformId))
757
+ return request;
758
+ const interval = setInterval(() => { }, 100);
759
+ request.interval = interval;
763
760
  return request;
764
- const interval = setInterval(() => { }, 100);
765
- request.interval = interval;
766
- return request;
767
- },
768
- response: (response, request) => {
769
- if (isPlatformBrowser(platformId))
761
+ },
762
+ response: (response, request) => {
763
+ if (isPlatformBrowser(platformId))
764
+ return response;
765
+ clearInterval(request.interval);
770
766
  return response;
771
- clearInterval(request.interval);
772
- return response;
767
+ },
773
768
  },
769
+ }),
770
+ deps: [HASURA_OPTIONS, PLATFORM_ID],
771
+ },
772
+ {
773
+ provide: 'CategoryRepository',
774
+ useExisting: CategoryHasuraGraphQLRepository,
775
+ },
776
+ {
777
+ provide: CategoryHasuraGraphQLRepository,
778
+ useFactory: (options, productRepository, categoryFilterRepository) => {
779
+ return new CategoryHasuraGraphQLRepository(options, productRepository, categoryFilterRepository);
774
780
  },
775
- }),
776
- deps: [HASURA_OPTIONS, PLATFORM_ID],
777
- },
778
- {
779
- provide: 'CategoryRepository',
780
- useExisting: CategoryHasuraGraphQLRepository,
781
- },
782
- {
783
- provide: CategoryHasuraGraphQLRepository,
784
- useFactory: (options, productRepository, categoryFilterRepository) => {
785
- return new CategoryHasuraGraphQLRepository(options, productRepository, categoryFilterRepository);
786
- },
787
- deps: ['HasuraConfig', ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
788
- },
789
- {
790
- provide: 'ProductRepository',
791
- useExisting: ProductHasuraGraphQLRepository,
792
- },
793
- {
794
- provide: ProductHasuraGraphQLRepository,
795
- useFactory: (hasuraConfig) => {
796
- return new ProductHasuraGraphQLRepository(hasuraConfig);
797
- },
798
- deps: ['HasuraConfig'],
799
- },
800
- {
801
- provide: 'ProductReviewRepository',
802
- useExisting: ProductReviewHasuraGraphQLRepository,
803
- },
804
- {
805
- provide: ProductReviewHasuraGraphQLRepository,
806
- useFactory: (hasuraConfig) => {
807
- return new ProductReviewHasuraGraphQLRepository(hasuraConfig);
808
- },
809
- deps: ['HasuraConfig'],
810
- },
811
- {
812
- provide: 'VariantRepository',
813
- useExisting: VariantHasuraGraphQLRepository,
814
- },
815
- {
816
- provide: VariantHasuraGraphQLRepository,
817
- useFactory: (hasuraConfig) => {
818
- return new VariantHasuraGraphQLRepository(hasuraConfig);
819
- },
820
- deps: ['HasuraConfig'],
821
- },
822
- {
823
- provide: 'ProductStockNotificationRepository',
824
- useExisting: ProductStockNotificationHasuraGraphQLRepository,
825
- },
826
- {
827
- provide: ProductStockNotificationHasuraGraphQLRepository,
828
- useFactory: (hasuraConfig) => {
829
- return new ProductStockNotificationHasuraGraphQLRepository(hasuraConfig);
830
- },
831
- deps: ['HasuraConfig'],
832
- },
833
- {
834
- provide: 'CategoryFilterRepository',
835
- useExisting: CategoryFilterHasuraGraphQLRepository,
836
- },
837
- {
838
- provide: CategoryFilterHasuraGraphQLRepository,
839
- useFactory: (options) => {
840
- return new CategoryFilterHasuraGraphQLRepository(options);
841
- },
842
- deps: ['HasuraConfig'],
843
- },
844
- {
845
- provide: 'FilterOptionRepository',
846
- useExisting: FilterOptionHasuraGraphQLRepository,
847
- },
848
- {
849
- provide: FilterOptionHasuraGraphQLRepository,
850
- useFactory: (options) => {
851
- return new FilterOptionHasuraGraphQLRepository(options);
852
- },
853
- deps: ['HasuraConfig'],
854
- },
855
- {
856
- provide: 'FilterRepository',
857
- useExisting: FilterHasuraGraphQLRepository,
858
- },
859
- {
860
- provide: FilterHasuraGraphQLRepository,
861
- useFactory: (options, filterOptionRepository, categoryFilterRepository) => {
862
- return new FilterHasuraGraphQLRepository(options, filterOptionRepository, categoryFilterRepository);
863
- },
864
- deps: ['HasuraConfig', FilterOptionHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
865
- },
866
- {
867
- provide: CategoryCollectionChildrenHasuraGraphQLRepository,
868
- useFactory: (options) => new CategoryCollectionChildrenHasuraGraphQLRepository(options),
869
- deps: ['HasuraConfig'],
870
- },
871
- {
872
- provide: 'CategoryCollectionChildrenRepository',
873
- useExisting: CategoryCollectionChildrenHasuraGraphQLRepository,
874
- },
875
- {
876
- provide: CategoryProductHasuraGraphQLRepository,
877
- useFactory: (options) => {
878
- return new CategoryProductHasuraGraphQLRepository(options);
879
- },
880
- deps: ['HasuraConfig'],
881
- },
882
- {
883
- provide: 'CategoryProductRepository',
884
- useExisting: CategoryProductHasuraGraphQLRepository,
885
- },
886
- {
887
- provide: WishlistHasuraGraphQLRepository,
888
- useFactory: (options, categoryProductRepository) => {
889
- return new WishlistHasuraGraphQLRepository(options, categoryProductRepository);
890
- },
891
- deps: ['HasuraConfig', CategoryProductHasuraGraphQLRepository],
892
- },
893
- {
894
- provide: 'WishlistRepository',
895
- useExisting: WishlistHasuraGraphQLRepository,
896
- },
897
- {
898
- provide: ProductErrorsHasuraGraphQLRepository,
899
- useFactory: (options, productRepository) => {
900
- return new ProductErrorsHasuraGraphQLRepository(options, productRepository);
901
- },
902
- deps: ['HasuraConfig', ProductHasuraGraphQLRepository],
903
- },
904
- {
905
- provide: 'ProductErrorsRepository',
906
- useExisting: ProductErrorsHasuraGraphQLRepository,
907
- },
908
- ] });
909
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, decorators: [{
781
+ deps: ['HasuraConfig', ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
782
+ },
783
+ {
784
+ provide: 'ProductRepository',
785
+ useExisting: ProductHasuraGraphQLRepository,
786
+ },
787
+ {
788
+ provide: ProductHasuraGraphQLRepository,
789
+ useFactory: (hasuraConfig) => {
790
+ return new ProductHasuraGraphQLRepository(hasuraConfig);
791
+ },
792
+ deps: ['HasuraConfig'],
793
+ },
794
+ {
795
+ provide: 'ProductReviewRepository',
796
+ useExisting: ProductReviewHasuraGraphQLRepository,
797
+ },
798
+ {
799
+ provide: ProductReviewHasuraGraphQLRepository,
800
+ useFactory: (hasuraConfig) => {
801
+ return new ProductReviewHasuraGraphQLRepository(hasuraConfig);
802
+ },
803
+ deps: ['HasuraConfig'],
804
+ },
805
+ {
806
+ provide: 'VariantRepository',
807
+ useExisting: VariantHasuraGraphQLRepository,
808
+ },
809
+ {
810
+ provide: VariantHasuraGraphQLRepository,
811
+ useFactory: (hasuraConfig) => {
812
+ return new VariantHasuraGraphQLRepository(hasuraConfig);
813
+ },
814
+ deps: ['HasuraConfig'],
815
+ },
816
+ {
817
+ provide: 'ProductStockNotificationRepository',
818
+ useExisting: ProductStockNotificationHasuraGraphQLRepository,
819
+ },
820
+ {
821
+ provide: ProductStockNotificationHasuraGraphQLRepository,
822
+ useFactory: (hasuraConfig) => {
823
+ return new ProductStockNotificationHasuraGraphQLRepository(hasuraConfig);
824
+ },
825
+ deps: ['HasuraConfig'],
826
+ },
827
+ {
828
+ provide: 'CategoryFilterRepository',
829
+ useExisting: CategoryFilterHasuraGraphQLRepository,
830
+ },
831
+ {
832
+ provide: CategoryFilterHasuraGraphQLRepository,
833
+ useFactory: (options) => {
834
+ return new CategoryFilterHasuraGraphQLRepository(options);
835
+ },
836
+ deps: ['HasuraConfig'],
837
+ },
838
+ {
839
+ provide: 'FilterOptionRepository',
840
+ useExisting: FilterOptionHasuraGraphQLRepository,
841
+ },
842
+ {
843
+ provide: FilterOptionHasuraGraphQLRepository,
844
+ useFactory: (options) => {
845
+ return new FilterOptionHasuraGraphQLRepository(options);
846
+ },
847
+ deps: ['HasuraConfig'],
848
+ },
849
+ {
850
+ provide: 'FilterRepository',
851
+ useExisting: FilterHasuraGraphQLRepository,
852
+ },
853
+ {
854
+ provide: FilterHasuraGraphQLRepository,
855
+ useFactory: (options, filterOptionRepository, categoryFilterRepository) => {
856
+ return new FilterHasuraGraphQLRepository(options, filterOptionRepository, categoryFilterRepository);
857
+ },
858
+ deps: ['HasuraConfig', FilterOptionHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
859
+ },
860
+ {
861
+ provide: CategoryCollectionChildrenHasuraGraphQLRepository,
862
+ useFactory: (options) => new CategoryCollectionChildrenHasuraGraphQLRepository(options),
863
+ deps: ['HasuraConfig'],
864
+ },
865
+ {
866
+ provide: 'CategoryCollectionChildrenRepository',
867
+ useExisting: CategoryCollectionChildrenHasuraGraphQLRepository,
868
+ },
869
+ {
870
+ provide: CategoryProductHasuraGraphQLRepository,
871
+ useFactory: (options) => {
872
+ return new CategoryProductHasuraGraphQLRepository(options);
873
+ },
874
+ deps: ['HasuraConfig'],
875
+ },
876
+ {
877
+ provide: 'CategoryProductRepository',
878
+ useExisting: CategoryProductHasuraGraphQLRepository,
879
+ },
880
+ {
881
+ provide: WishlistHasuraGraphQLRepository,
882
+ useFactory: (options, categoryProductRepository) => {
883
+ return new WishlistHasuraGraphQLRepository(options, categoryProductRepository);
884
+ },
885
+ deps: ['HasuraConfig', CategoryProductHasuraGraphQLRepository],
886
+ },
887
+ {
888
+ provide: 'WishlistRepository',
889
+ useExisting: WishlistHasuraGraphQLRepository,
890
+ },
891
+ {
892
+ provide: ProductErrorsHasuraGraphQLRepository,
893
+ useFactory: (options, productRepository) => {
894
+ return new ProductErrorsHasuraGraphQLRepository(options, productRepository);
895
+ },
896
+ deps: ['HasuraConfig', ProductHasuraGraphQLRepository],
897
+ },
898
+ {
899
+ provide: 'ProductErrorsRepository',
900
+ useExisting: ProductErrorsHasuraGraphQLRepository,
901
+ },
902
+ ] }); }
903
+ }
904
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularHasuraGraphQLModule, decorators: [{
910
905
  type: NgModule,
911
906
  args: [{
912
907
  providers: [
@@ -1075,17 +1070,17 @@ class AngularVertexSeachModule {
1075
1070
  providers: [{ provide: VERTEX_CONFIG, useValue: options }],
1076
1071
  };
1077
1072
  }
1073
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularVertexSeachModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1074
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: AngularVertexSeachModule }); }
1075
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularVertexSeachModule, providers: [
1076
+ {
1077
+ provide: ProductsVertexSearch,
1078
+ useFactory: (configuration) => new ProductsVertexSearch(new VertexAxiosAdapter(configuration)),
1079
+ deps: [VERTEX_CONFIG],
1080
+ },
1081
+ ] }); }
1078
1082
  }
1079
- AngularVertexSeachModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularVertexSeachModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1080
- AngularVertexSeachModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularVertexSeachModule });
1081
- AngularVertexSeachModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularVertexSeachModule, providers: [
1082
- {
1083
- provide: ProductsVertexSearch,
1084
- useFactory: (configuration) => new ProductsVertexSearch(new VertexAxiosAdapter(configuration)),
1085
- deps: [VERTEX_CONFIG],
1086
- },
1087
- ] });
1088
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularVertexSeachModule, decorators: [{
1083
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularVertexSeachModule, decorators: [{
1089
1084
  type: NgModule,
1090
1085
  args: [{
1091
1086
  providers: [
@@ -1110,10 +1105,10 @@ class CookieDataPersistence {
1110
1105
  set(key, value) {
1111
1106
  return from(cookie.set(key, value)).pipe(map(() => { }));
1112
1107
  }
1108
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CookieDataPersistence, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1109
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CookieDataPersistence }); }
1113
1110
  }
1114
- CookieDataPersistence.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CookieDataPersistence, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1115
- CookieDataPersistence.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CookieDataPersistence });
1116
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CookieDataPersistence, decorators: [{
1111
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CookieDataPersistence, decorators: [{
1117
1112
  type: Injectable
1118
1113
  }] });
1119
1114
 
@@ -1138,48 +1133,48 @@ class AuthService {
1138
1133
  getFireUser() {
1139
1134
  return authState(this.angularFireAuth).pipe(catchError(() => of(null)));
1140
1135
  }
1136
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AuthService, deps: [{ token: i1.Auth }, { token: 'UserRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
1137
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AuthService }); }
1141
1138
  }
1142
- 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 });
1143
- AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService });
1144
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, decorators: [{
1139
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AuthService, decorators: [{
1145
1140
  type: Injectable
1146
- }], ctorParameters: function () { return [{ type: i1.Auth }, { type: undefined, decorators: [{
1141
+ }], ctorParameters: () => [{ type: i1.Auth }, { type: undefined, decorators: [{
1147
1142
  type: Inject,
1148
1143
  args: ['UserRepository']
1149
- }] }]; } });
1144
+ }] }] });
1150
1145
 
1151
1146
  class CheckoutRepositoriesFacade {
1152
1147
  constructor(checkoutRepository, userRepository) {
1153
1148
  this.checkoutRepository = checkoutRepository;
1154
1149
  this.userRepository = userRepository;
1155
1150
  }
1151
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CheckoutRepositoriesFacade, deps: [{ token: 'CheckoutRepository' }, { token: 'UserRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
1152
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CheckoutRepositoriesFacade }); }
1156
1153
  }
1157
- CheckoutRepositoriesFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutRepositoriesFacade, deps: [{ token: 'CheckoutRepository' }, { token: 'UserRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
1158
- CheckoutRepositoriesFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutRepositoriesFacade });
1159
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutRepositoriesFacade, decorators: [{
1154
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CheckoutRepositoriesFacade, decorators: [{
1160
1155
  type: Injectable
1161
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1156
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
1162
1157
  type: Inject,
1163
1158
  args: ['CheckoutRepository']
1164
1159
  }] }, { type: undefined, decorators: [{
1165
1160
  type: Inject,
1166
1161
  args: ['UserRepository']
1167
- }] }]; } });
1162
+ }] }] });
1168
1163
 
1169
1164
  class CheckoutDependenciesFacade {
1170
1165
  constructor(dataPersistence, httpClient) {
1171
1166
  this.dataPersistence = dataPersistence;
1172
1167
  this.httpClient = httpClient;
1173
1168
  }
1169
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CheckoutDependenciesFacade, deps: [{ token: PERSISTENCE_PROVIDER }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
1170
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CheckoutDependenciesFacade }); }
1174
1171
  }
1175
- CheckoutDependenciesFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutDependenciesFacade, deps: [{ token: PERSISTENCE_PROVIDER }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1176
- CheckoutDependenciesFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutDependenciesFacade });
1177
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutDependenciesFacade, decorators: [{
1172
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CheckoutDependenciesFacade, decorators: [{
1178
1173
  type: Injectable
1179
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1174
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
1180
1175
  type: Inject,
1181
1176
  args: [PERSISTENCE_PROVIDER]
1182
- }] }, { type: i1$2.HttpClient }]; } });
1177
+ }] }, { type: i1$1.HttpClient }] });
1183
1178
 
1184
1179
  class ConfigurationFacade {
1185
1180
  constructor(defaultShop, firebaseOptions) {
@@ -1192,18 +1187,18 @@ class ConfigurationFacade {
1192
1187
  getProjectId() {
1193
1188
  return this.firebaseOptions.projectId;
1194
1189
  }
1190
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ConfigurationFacade, deps: [{ token: DEFAULT_SHOP }, { token: FIREBASE_OPTIONS }], target: i0.ɵɵFactoryTarget.Injectable }); }
1191
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ConfigurationFacade }); }
1195
1192
  }
1196
- ConfigurationFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ConfigurationFacade, deps: [{ token: DEFAULT_SHOP }, { token: FIREBASE_OPTIONS }], target: i0.ɵɵFactoryTarget.Injectable });
1197
- ConfigurationFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ConfigurationFacade });
1198
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ConfigurationFacade, decorators: [{
1193
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ConfigurationFacade, decorators: [{
1199
1194
  type: Injectable
1200
- }], ctorParameters: function () { return [{ type: i3.Shops, decorators: [{
1195
+ }], ctorParameters: () => [{ type: i3.Shops, decorators: [{
1201
1196
  type: Inject,
1202
1197
  args: [DEFAULT_SHOP]
1203
1198
  }] }, { type: undefined, decorators: [{
1204
1199
  type: Inject,
1205
1200
  args: [FIREBASE_OPTIONS]
1206
- }] }]; } });
1201
+ }] }] });
1207
1202
 
1208
1203
  class CheckoutService {
1209
1204
  constructor(repositoriesFacade, dependenciesFacade, configurationFacade) {
@@ -1278,7 +1273,7 @@ class CheckoutService {
1278
1273
  })), concatMap(() => this.getCheckout()));
1279
1274
  }
1280
1275
  createOrder(checkoutPayload, paymentProvider, applicationVersion) {
1281
- return this.dependenciesFacade.httpClient.post(`${this.checkoutUrl}/checkout`, {
1276
+ return this.dependenciesFacade.httpClient.post(`${this.checkoutUrl}/checkoutV5`, {
1282
1277
  data: {
1283
1278
  ...checkoutPayload,
1284
1279
  applicationVersion,
@@ -1295,12 +1290,12 @@ class CheckoutService {
1295
1290
  await this.dependenciesFacade.dataPersistence.set('checkoutId', checkout.id).toPromise();
1296
1291
  return checkout;
1297
1292
  }
1293
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CheckoutService, deps: [{ token: CheckoutRepositoriesFacade }, { token: CheckoutDependenciesFacade }, { token: ConfigurationFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
1294
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CheckoutService }); }
1298
1295
  }
1299
- CheckoutService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutService, deps: [{ token: CheckoutRepositoriesFacade }, { token: CheckoutDependenciesFacade }, { token: ConfigurationFacade }], target: i0.ɵɵFactoryTarget.Injectable });
1300
- CheckoutService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutService });
1301
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutService, decorators: [{
1296
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CheckoutService, decorators: [{
1302
1297
  type: Injectable
1303
- }], ctorParameters: function () { return [{ type: CheckoutRepositoriesFacade }, { type: CheckoutDependenciesFacade }, { type: ConfigurationFacade }]; } });
1298
+ }], ctorParameters: () => [{ type: CheckoutRepositoriesFacade }, { type: CheckoutDependenciesFacade }, { type: ConfigurationFacade }] });
1304
1299
 
1305
1300
  class CartServicesFacade {
1306
1301
  constructor(authService, checkoutService, httpClient) {
@@ -1308,12 +1303,12 @@ class CartServicesFacade {
1308
1303
  this.checkoutService = checkoutService;
1309
1304
  this.httpClient = httpClient;
1310
1305
  }
1306
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CartServicesFacade, deps: [{ token: AuthService }, { token: CheckoutService }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
1307
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CartServicesFacade }); }
1311
1308
  }
1312
- CartServicesFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartServicesFacade, deps: [{ token: AuthService }, { token: CheckoutService }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1313
- CartServicesFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartServicesFacade });
1314
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartServicesFacade, decorators: [{
1309
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CartServicesFacade, decorators: [{
1315
1310
  type: Injectable
1316
- }], ctorParameters: function () { return [{ type: AuthService }, { type: CheckoutService }, { type: i1$2.HttpClient }]; } });
1311
+ }], ctorParameters: () => [{ type: AuthService }, { type: CheckoutService }, { type: i1$1.HttpClient }] });
1317
1312
 
1318
1313
  class CartService {
1319
1314
  constructor(servicesFacade, configurationFacade) {
@@ -1372,12 +1367,12 @@ class CartService {
1372
1367
  buildCartFromCheckout(checkoutData) {
1373
1368
  return this.servicesFacade.checkoutService.getCheckout(checkoutData).pipe(map((checkout) => checkout.lineItems), concatMap((lineItems) => of(this.generateCartObject(lineItems))));
1374
1369
  }
1370
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CartService, deps: [{ token: CartServicesFacade }, { token: ConfigurationFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
1371
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CartService }); }
1375
1372
  }
1376
- CartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, deps: [{ token: CartServicesFacade }, { token: ConfigurationFacade }], target: i0.ɵɵFactoryTarget.Injectable });
1377
- CartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService });
1378
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, decorators: [{
1373
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CartService, decorators: [{
1379
1374
  type: Injectable
1380
- }], ctorParameters: function () { return [{ type: CartServicesFacade }, { type: ConfigurationFacade }]; } });
1375
+ }], ctorParameters: () => [{ type: CartServicesFacade }, { type: ConfigurationFacade }] });
1381
1376
 
1382
1377
  class NewCategoryStructureAdapter {
1383
1378
  constructor(categoryRepository) {
@@ -1409,15 +1404,15 @@ class NewCategoryStructureAdapter {
1409
1404
  category.brandCategory;
1410
1405
  return collectionCategory ? this.categoryRepository.get({ id: category.id }) : category;
1411
1406
  }
1407
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NewCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
1408
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NewCategoryStructureAdapter }); }
1412
1409
  }
1413
- NewCategoryStructureAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
1414
- NewCategoryStructureAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter });
1415
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter, decorators: [{
1410
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NewCategoryStructureAdapter, decorators: [{
1416
1411
  type: Injectable
1417
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1412
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
1418
1413
  type: Inject,
1419
1414
  args: ['CategoryRepository']
1420
- }] }]; } });
1415
+ }] }] });
1421
1416
 
1422
1417
  class OldCategoryStructureAdapter {
1423
1418
  constructor(categoryRepository) {
@@ -1429,15 +1424,15 @@ class OldCategoryStructureAdapter {
1429
1424
  : await this.categoryRepository.get({ id: category.id }).then((categoryFound) => categoryFound.products);
1430
1425
  return { id: { operator: Where.IN, value: productsIds } };
1431
1426
  }
1427
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: OldCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
1428
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: OldCategoryStructureAdapter }); }
1432
1429
  }
1433
- OldCategoryStructureAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
1434
- OldCategoryStructureAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter });
1435
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter, decorators: [{
1430
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: OldCategoryStructureAdapter, decorators: [{
1436
1431
  type: Injectable
1437
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1432
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
1438
1433
  type: Inject,
1439
1434
  args: ['CategoryRepository']
1440
- }] }]; } });
1435
+ }] }] });
1441
1436
 
1442
1437
  class CatalogSearchContext {
1443
1438
  constructor(categoryStrategy, termStrategy, profileStrategy) {
@@ -1600,12 +1595,12 @@ class CategorySearchStrategy {
1600
1595
  distinct: totalResult.distinct,
1601
1596
  };
1602
1597
  }
1598
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CategorySearchStrategy, deps: [{ token: CatalogRepositoryService }, { token: CatalogHelpersService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1599
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CategorySearchStrategy }); }
1603
1600
  }
1604
- CategorySearchStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategorySearchStrategy, deps: [{ token: CatalogRepositoryService }, { token: CatalogHelpersService }], target: i0.ɵɵFactoryTarget.Injectable });
1605
- CategorySearchStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategorySearchStrategy });
1606
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategorySearchStrategy, decorators: [{
1601
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CategorySearchStrategy, decorators: [{
1607
1602
  type: Injectable
1608
- }], ctorParameters: function () { return [{ type: CatalogRepositoryService }, { type: CatalogHelpersService }]; } });
1603
+ }], ctorParameters: () => [{ type: CatalogRepositoryService }, { type: CatalogHelpersService }] });
1609
1604
 
1610
1605
  class ProfileSearchStrategy {
1611
1606
  constructor(repositoryService, helpersService) {
@@ -1637,12 +1632,12 @@ class ProfileSearchStrategy {
1637
1632
  };
1638
1633
  return productCatalog.productRepository.findCatalog(repoParams, mainGender || (shop === Shops.MENSMARKET ? 'male' : 'female'), optionsCache);
1639
1634
  }
1635
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ProfileSearchStrategy, deps: [{ token: CatalogRepositoryService }, { token: CatalogHelpersService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1636
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ProfileSearchStrategy }); }
1640
1637
  }
1641
- ProfileSearchStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProfileSearchStrategy, deps: [{ token: CatalogRepositoryService }, { token: CatalogHelpersService }], target: i0.ɵɵFactoryTarget.Injectable });
1642
- ProfileSearchStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProfileSearchStrategy });
1643
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProfileSearchStrategy, decorators: [{
1638
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ProfileSearchStrategy, decorators: [{
1644
1639
  type: Injectable
1645
- }], ctorParameters: function () { return [{ type: CatalogRepositoryService }, { type: CatalogHelpersService }]; } });
1640
+ }], ctorParameters: () => [{ type: CatalogRepositoryService }, { type: CatalogHelpersService }] });
1646
1641
 
1647
1642
  class TermSearchStrategy {
1648
1643
  constructor(repositoryService, helpersService) {
@@ -1755,12 +1750,12 @@ class TermSearchStrategy {
1755
1750
  .search(term, 999, shop === Shops.GLAMSHOP ? 'female' : 'male')
1756
1751
  .then((products) => [...new Set(products.map((product) => product.id))]));
1757
1752
  }
1753
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TermSearchStrategy, deps: [{ token: CatalogRepositoryService }, { token: CatalogHelpersService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1754
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TermSearchStrategy }); }
1758
1755
  }
1759
- TermSearchStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: TermSearchStrategy, deps: [{ token: CatalogRepositoryService }, { token: CatalogHelpersService }], target: i0.ɵɵFactoryTarget.Injectable });
1760
- TermSearchStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: TermSearchStrategy });
1761
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: TermSearchStrategy, decorators: [{
1756
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TermSearchStrategy, decorators: [{
1762
1757
  type: Injectable
1763
- }], ctorParameters: function () { return [{ type: CatalogRepositoryService }, { type: CatalogHelpersService }]; } });
1758
+ }], ctorParameters: () => [{ type: CatalogRepositoryService }, { type: CatalogHelpersService }] });
1764
1759
 
1765
1760
  class CatalogStrategiesFacade {
1766
1761
  constructor(categoryStrategy, termStrategy, profileStrategy) {
@@ -1768,12 +1763,12 @@ class CatalogStrategiesFacade {
1768
1763
  this.termStrategy = termStrategy;
1769
1764
  this.profileStrategy = profileStrategy;
1770
1765
  }
1766
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogStrategiesFacade, deps: [{ token: CategorySearchStrategy }, { token: TermSearchStrategy }, { token: ProfileSearchStrategy }], target: i0.ɵɵFactoryTarget.Injectable }); }
1767
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogStrategiesFacade }); }
1771
1768
  }
1772
- CatalogStrategiesFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogStrategiesFacade, deps: [{ token: CategorySearchStrategy }, { token: TermSearchStrategy }, { token: ProfileSearchStrategy }], target: i0.ɵɵFactoryTarget.Injectable });
1773
- CatalogStrategiesFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogStrategiesFacade });
1774
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogStrategiesFacade, decorators: [{
1769
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogStrategiesFacade, decorators: [{
1775
1770
  type: Injectable
1776
- }], ctorParameters: function () { return [{ type: CategorySearchStrategy }, { type: TermSearchStrategy }, { type: ProfileSearchStrategy }]; } });
1771
+ }], ctorParameters: () => [{ type: CategorySearchStrategy }, { type: TermSearchStrategy }, { type: ProfileSearchStrategy }] });
1777
1772
 
1778
1773
  class CatalogServiceFacade {
1779
1774
  constructor(helpersService, strategiesFacade, shop) {
@@ -1786,33 +1781,33 @@ class CatalogServiceFacade {
1786
1781
  getCatalogService() {
1787
1782
  return this.catalogService;
1788
1783
  }
1784
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogServiceFacade, deps: [{ token: CatalogHelpersService }, { token: CatalogStrategiesFacade }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
1785
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogServiceFacade }); }
1789
1786
  }
1790
- CatalogServiceFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogServiceFacade, deps: [{ token: CatalogHelpersService }, { token: CatalogStrategiesFacade }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable });
1791
- CatalogServiceFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogServiceFacade });
1792
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogServiceFacade, decorators: [{
1787
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogServiceFacade, decorators: [{
1793
1788
  type: Injectable
1794
- }], ctorParameters: function () { return [{ type: CatalogHelpersService }, { type: CatalogStrategiesFacade }, { type: i3.Shops, decorators: [{
1789
+ }], ctorParameters: () => [{ type: CatalogHelpersService }, { type: CatalogStrategiesFacade }, { type: i3.Shops, decorators: [{
1795
1790
  type: Inject,
1796
1791
  args: [DEFAULT_SHOP]
1797
- }] }]; } });
1792
+ }] }] });
1798
1793
 
1799
1794
  class CategoryRepositoryFacade {
1800
1795
  constructor(categoryRepository, categoryFilterRepository) {
1801
1796
  this.categoryRepository = categoryRepository;
1802
1797
  this.categoryFilterRepository = categoryFilterRepository;
1803
1798
  }
1799
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CategoryRepositoryFacade, deps: [{ token: 'CategoryRepository' }, { token: 'CategoryFilterRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
1800
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CategoryRepositoryFacade }); }
1804
1801
  }
1805
- CategoryRepositoryFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryRepositoryFacade, deps: [{ token: 'CategoryRepository' }, { token: 'CategoryFilterRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
1806
- CategoryRepositoryFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryRepositoryFacade });
1807
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryRepositoryFacade, decorators: [{
1802
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CategoryRepositoryFacade, decorators: [{
1808
1803
  type: Injectable
1809
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1804
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
1810
1805
  type: Inject,
1811
1806
  args: ['CategoryRepository']
1812
1807
  }] }, { type: undefined, decorators: [{
1813
1808
  type: Inject,
1814
1809
  args: ['CategoryFilterRepository']
1815
- }] }]; } });
1810
+ }] }] });
1816
1811
 
1817
1812
  class CategoryService {
1818
1813
  constructor(categoryFacade, productCatalog, shop) {
@@ -1831,38 +1826,41 @@ class CategoryService {
1831
1826
  .find({ filters: { brandCategory: true, shop: options?.shop || this.shop }, orderBy: { name: 'asc' } }, optionsCache)
1832
1827
  .then(({ data }) => data.filter((category) => brands.includes(category.conditions.brand)));
1833
1828
  }
1829
+ async getMenuBrands() {
1830
+ return this.categoryFacade.categoryRepository.getBrandsWithProducts();
1831
+ }
1834
1832
  async fetchFilterOptions(category, optionsCache) {
1835
1833
  return await this.categoryFacade.categoryFilterRepository
1836
1834
  .find({ filters: { categoryId: +category.id } }, optionsCache)
1837
1835
  .then(({ data }) => data.map((categoryFilter) => categoryFilter.filter));
1838
1836
  }
1837
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CategoryService, deps: [{ token: CategoryRepositoryFacade }, { token: ProductCatalogFacade }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
1838
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CategoryService }); }
1839
1839
  }
1840
- CategoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService, deps: [{ token: CategoryRepositoryFacade }, { token: ProductCatalogFacade }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable });
1841
- CategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService });
1842
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService, decorators: [{
1840
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CategoryService, decorators: [{
1843
1841
  type: Injectable
1844
- }], ctorParameters: function () { return [{ type: CategoryRepositoryFacade }, { type: ProductCatalogFacade }, { type: i3.Shops, decorators: [{
1842
+ }], ctorParameters: () => [{ type: CategoryRepositoryFacade }, { type: ProductCatalogFacade }, { type: i3.Shops, decorators: [{
1845
1843
  type: Inject,
1846
1844
  args: [DEFAULT_SHOP]
1847
- }] }]; } });
1845
+ }] }] });
1848
1846
 
1849
1847
  class ProductCatalogFacade {
1850
1848
  constructor(productRepository, categoryStructureAdapter) {
1851
1849
  this.productRepository = productRepository;
1852
1850
  this.categoryStructureAdapter = categoryStructureAdapter;
1853
1851
  }
1852
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ProductCatalogFacade, deps: [{ token: 'ProductRepository' }, { token: CATEGORY_STRUCTURE }], target: i0.ɵɵFactoryTarget.Injectable }); }
1853
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ProductCatalogFacade }); }
1854
1854
  }
1855
- ProductCatalogFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductCatalogFacade, deps: [{ token: 'ProductRepository' }, { token: CATEGORY_STRUCTURE }], target: i0.ɵɵFactoryTarget.Injectable });
1856
- ProductCatalogFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductCatalogFacade });
1857
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductCatalogFacade, decorators: [{
1855
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ProductCatalogFacade, decorators: [{
1858
1856
  type: Injectable
1859
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1857
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
1860
1858
  type: Inject,
1861
1859
  args: ['ProductRepository']
1862
1860
  }] }, { type: undefined, decorators: [{
1863
1861
  type: Inject,
1864
1862
  args: [CATEGORY_STRUCTURE]
1865
- }] }]; } });
1863
+ }] }] });
1866
1864
 
1867
1865
  class CategoryServiceFacade {
1868
1866
  constructor(categoryRepositoryFacade, productCatalogFacade, shop) {
@@ -1874,15 +1872,15 @@ class CategoryServiceFacade {
1874
1872
  getCategoryService() {
1875
1873
  return this.categoryService;
1876
1874
  }
1875
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CategoryServiceFacade, deps: [{ token: CategoryRepositoryFacade }, { token: ProductCatalogFacade }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
1876
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CategoryServiceFacade }); }
1877
1877
  }
1878
- CategoryServiceFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryServiceFacade, deps: [{ token: CategoryRepositoryFacade }, { token: ProductCatalogFacade }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable });
1879
- CategoryServiceFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryServiceFacade });
1880
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryServiceFacade, decorators: [{
1878
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CategoryServiceFacade, decorators: [{
1881
1879
  type: Injectable
1882
- }], ctorParameters: function () { return [{ type: CategoryRepositoryFacade }, { type: ProductCatalogFacade }, { type: i3.Shops, decorators: [{
1880
+ }], ctorParameters: () => [{ type: CategoryRepositoryFacade }, { type: ProductCatalogFacade }, { type: i3.Shops, decorators: [{
1883
1881
  type: Inject,
1884
1882
  args: [DEFAULT_SHOP]
1885
- }] }]; } });
1883
+ }] }] });
1886
1884
 
1887
1885
  class BrandManagerHelper {
1888
1886
  constructor(productCatalog) {
@@ -1929,12 +1927,12 @@ class BrandManagerHelper {
1929
1927
  }, options.mainGender)
1930
1928
  .then((result) => result.distinct.brand);
1931
1929
  }
1930
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: BrandManagerHelper, deps: [{ token: ProductCatalogFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
1931
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: BrandManagerHelper }); }
1932
1932
  }
1933
- BrandManagerHelper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: BrandManagerHelper, deps: [{ token: ProductCatalogFacade }], target: i0.ɵɵFactoryTarget.Injectable });
1934
- BrandManagerHelper.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: BrandManagerHelper });
1935
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: BrandManagerHelper, decorators: [{
1933
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: BrandManagerHelper, decorators: [{
1936
1934
  type: Injectable
1937
- }], ctorParameters: function () { return [{ type: ProductCatalogFacade }]; } });
1935
+ }], ctorParameters: () => [{ type: ProductCatalogFacade }] });
1938
1936
 
1939
1937
  class CatalogFilterHelper {
1940
1938
  buildFilterQuery(filters) {
@@ -1970,10 +1968,10 @@ class CatalogFilterHelper {
1970
1968
  }
1971
1969
  return filterQuery;
1972
1970
  }
1971
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogFilterHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1972
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogFilterHelper }); }
1973
1973
  }
1974
- CatalogFilterHelper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogFilterHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1975
- CatalogFilterHelper.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogFilterHelper });
1976
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogFilterHelper, decorators: [{
1974
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogFilterHelper, decorators: [{
1977
1975
  type: Injectable
1978
1976
  }] });
1979
1977
 
@@ -2020,10 +2018,10 @@ class CatalogSortHelper {
2020
2018
  return {};
2021
2019
  }
2022
2020
  }
2021
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogSortHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2022
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogSortHelper }); }
2023
2023
  }
2024
- CatalogSortHelper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogSortHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2025
- CatalogSortHelper.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogSortHelper });
2026
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogSortHelper, decorators: [{
2024
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogSortHelper, decorators: [{
2027
2025
  type: Injectable
2028
2026
  }] });
2029
2027
 
@@ -2058,10 +2056,10 @@ class ProductFieldsHelper {
2058
2056
  'group',
2059
2057
  ];
2060
2058
  }
2059
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ProductFieldsHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2060
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ProductFieldsHelper }); }
2061
2061
  }
2062
- ProductFieldsHelper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductFieldsHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2063
- ProductFieldsHelper.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductFieldsHelper });
2064
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductFieldsHelper, decorators: [{
2062
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ProductFieldsHelper, decorators: [{
2065
2063
  type: Injectable
2066
2064
  }] });
2067
2065
 
@@ -2080,12 +2078,12 @@ class CatalogOperationsFacade {
2080
2078
  getFieldsHelper() {
2081
2079
  return this.fieldsHelper;
2082
2080
  }
2081
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogOperationsFacade, deps: [{ token: CatalogFilterHelper }, { token: CatalogSortHelper }, { token: ProductFieldsHelper }], target: i0.ɵɵFactoryTarget.Injectable }); }
2082
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogOperationsFacade }); }
2083
2083
  }
2084
- CatalogOperationsFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogOperationsFacade, deps: [{ token: CatalogFilterHelper }, { token: CatalogSortHelper }, { token: ProductFieldsHelper }], target: i0.ɵɵFactoryTarget.Injectable });
2085
- CatalogOperationsFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogOperationsFacade });
2086
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogOperationsFacade, decorators: [{
2084
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogOperationsFacade, decorators: [{
2087
2085
  type: Injectable
2088
- }], ctorParameters: function () { return [{ type: CatalogFilterHelper }, { type: CatalogSortHelper }, { type: ProductFieldsHelper }]; } });
2086
+ }], ctorParameters: () => [{ type: CatalogFilterHelper }, { type: CatalogSortHelper }, { type: ProductFieldsHelper }] });
2089
2087
 
2090
2088
  class ProductManagementFacade {
2091
2089
  constructor(brandManager, productServices) {
@@ -2098,15 +2096,15 @@ class ProductManagementFacade {
2098
2096
  getProductServices() {
2099
2097
  return this.productServices;
2100
2098
  }
2099
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ProductManagementFacade, deps: [{ token: BrandManagerHelper }, { token: 'ProductServicesFacade' }], target: i0.ɵɵFactoryTarget.Injectable }); }
2100
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ProductManagementFacade }); }
2101
2101
  }
2102
- ProductManagementFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductManagementFacade, deps: [{ token: BrandManagerHelper }, { token: 'ProductServicesFacade' }], target: i0.ɵɵFactoryTarget.Injectable });
2103
- ProductManagementFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductManagementFacade });
2104
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductManagementFacade, decorators: [{
2102
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ProductManagementFacade, decorators: [{
2105
2103
  type: Injectable
2106
- }], ctorParameters: function () { return [{ type: BrandManagerHelper }, { type: undefined, decorators: [{
2104
+ }], ctorParameters: () => [{ type: BrandManagerHelper }, { type: undefined, decorators: [{
2107
2105
  type: Inject,
2108
2106
  args: ['ProductServicesFacade']
2109
- }] }]; } });
2107
+ }] }] });
2110
2108
 
2111
2109
  class CatalogHelpersService {
2112
2110
  constructor(catalogOperations, productManagement) {
@@ -2128,12 +2126,12 @@ class CatalogHelpersService {
2128
2126
  getProductServices() {
2129
2127
  return this.productManagement.getProductServices();
2130
2128
  }
2129
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogHelpersService, deps: [{ token: CatalogOperationsFacade }, { token: ProductManagementFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
2130
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogHelpersService }); }
2131
2131
  }
2132
- CatalogHelpersService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogHelpersService, deps: [{ token: CatalogOperationsFacade }, { token: ProductManagementFacade }], target: i0.ɵɵFactoryTarget.Injectable });
2133
- CatalogHelpersService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogHelpersService });
2134
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogHelpersService, decorators: [{
2132
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogHelpersService, decorators: [{
2135
2133
  type: Injectable
2136
- }], ctorParameters: function () { return [{ type: CatalogOperationsFacade }, { type: ProductManagementFacade }]; } });
2134
+ }], ctorParameters: () => [{ type: CatalogOperationsFacade }, { type: ProductManagementFacade }] });
2137
2135
 
2138
2136
  class CatalogRepositoryService {
2139
2137
  constructor(productCatalog, productServices) {
@@ -2146,15 +2144,15 @@ class CatalogRepositoryService {
2146
2144
  getProductServices() {
2147
2145
  return this.productServices;
2148
2146
  }
2147
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogRepositoryService, deps: [{ token: ProductCatalogFacade }, { token: 'ProductServicesFacade' }], target: i0.ɵɵFactoryTarget.Injectable }); }
2148
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogRepositoryService }); }
2149
2149
  }
2150
- CatalogRepositoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogRepositoryService, deps: [{ token: ProductCatalogFacade }, { token: 'ProductServicesFacade' }], target: i0.ɵɵFactoryTarget.Injectable });
2151
- CatalogRepositoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogRepositoryService });
2152
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogRepositoryService, decorators: [{
2150
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogRepositoryService, decorators: [{
2153
2151
  type: Injectable
2154
- }], ctorParameters: function () { return [{ type: ProductCatalogFacade }, { type: undefined, decorators: [{
2152
+ }], ctorParameters: () => [{ type: ProductCatalogFacade }, { type: undefined, decorators: [{
2155
2153
  type: Inject,
2156
2154
  args: ['ProductServicesFacade']
2157
- }] }]; } });
2155
+ }] }] });
2158
2156
 
2159
2157
  class CatalogService {
2160
2158
  constructor(searchContext, helpersService, shop) {
@@ -2248,15 +2246,15 @@ class CatalogService {
2248
2246
  hasCategory(options) {
2249
2247
  return 'category' in options;
2250
2248
  }
2249
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogService, deps: [{ token: CatalogSearchContext }, { token: CatalogHelpersService }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
2250
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogService }); }
2251
2251
  }
2252
- CatalogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, deps: [{ token: CatalogSearchContext }, { token: CatalogHelpersService }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable });
2253
- CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService });
2254
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
2252
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CatalogService, decorators: [{
2255
2253
  type: Injectable
2256
- }], ctorParameters: function () { return [{ type: CatalogSearchContext }, { type: CatalogHelpersService }, { type: i3.Shops, decorators: [{
2254
+ }], ctorParameters: () => [{ type: CatalogSearchContext }, { type: CatalogHelpersService }, { type: i3.Shops, decorators: [{
2257
2255
  type: Inject,
2258
2256
  args: [DEFAULT_SHOP]
2259
- }] }]; } });
2257
+ }] }] });
2260
2258
 
2261
2259
  var ProductSorts;
2262
2260
  (function (ProductSorts) {
@@ -2506,12 +2504,12 @@ class WishlistService {
2506
2504
  productBrand: product.brand,
2507
2505
  };
2508
2506
  }
2507
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WishlistService, deps: [{ token: 'WishlistRepository' }, { token: 'ProductRepository' }, { token: 'LogRepository' }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
2508
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WishlistService }); }
2509
2509
  }
2510
- WishlistService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, deps: [{ token: 'WishlistRepository' }, { token: 'ProductRepository' }, { token: 'LogRepository' }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable });
2511
- WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
2512
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
2510
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WishlistService, decorators: [{
2513
2511
  type: Injectable
2514
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2512
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
2515
2513
  type: Inject,
2516
2514
  args: ['WishlistRepository']
2517
2515
  }] }, { type: undefined, decorators: [{
@@ -2523,7 +2521,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
2523
2521
  }] }, { type: i3.Shops, decorators: [{
2524
2522
  type: Inject,
2525
2523
  args: [DEFAULT_SHOP]
2526
- }] }]; } });
2524
+ }] }] });
2527
2525
 
2528
2526
  class CouponRepositoriesFacade {
2529
2527
  constructor(couponRepository, orderRepository, categoryRepository) {
@@ -2531,12 +2529,12 @@ class CouponRepositoriesFacade {
2531
2529
  this.orderRepository = orderRepository;
2532
2530
  this.categoryRepository = categoryRepository;
2533
2531
  }
2532
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CouponRepositoriesFacade, deps: [{ token: 'CouponRepository' }, { token: 'OrderRepository' }, { token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
2533
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CouponRepositoriesFacade }); }
2534
2534
  }
2535
- CouponRepositoriesFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponRepositoriesFacade, deps: [{ token: 'CouponRepository' }, { token: 'OrderRepository' }, { token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
2536
- CouponRepositoriesFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponRepositoriesFacade });
2537
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponRepositoriesFacade, decorators: [{
2535
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CouponRepositoriesFacade, decorators: [{
2538
2536
  type: Injectable
2539
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2537
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
2540
2538
  type: Inject,
2541
2539
  args: ['CouponRepository']
2542
2540
  }] }, { type: undefined, decorators: [{
@@ -2545,7 +2543,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
2545
2543
  }] }, { type: undefined, decorators: [{
2546
2544
  type: Inject,
2547
2545
  args: ['CategoryRepository']
2548
- }] }]; } });
2546
+ }] }] });
2549
2547
 
2550
2548
  class CouponService {
2551
2549
  constructor(repositoriesFacade, configurationFacade) {
@@ -2776,15 +2774,15 @@ class CouponService {
2776
2774
  }
2777
2775
  return couponUseLimits;
2778
2776
  }
2777
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CouponService, deps: [{ token: CouponRepositoriesFacade }, { token: ConfigurationFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
2778
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CouponService, providedIn: 'root' }); }
2779
2779
  }
2780
- CouponService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, deps: [{ token: CouponRepositoriesFacade }, { token: ConfigurationFacade }], target: i0.ɵɵFactoryTarget.Injectable });
2781
- CouponService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, providedIn: 'root' });
2782
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, decorators: [{
2780
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CouponService, decorators: [{
2783
2781
  type: Injectable,
2784
2782
  args: [{
2785
2783
  providedIn: 'root',
2786
2784
  }]
2787
- }], ctorParameters: function () { return [{ type: CouponRepositoriesFacade }, { type: ConfigurationFacade }]; } });
2785
+ }], ctorParameters: () => [{ type: CouponRepositoriesFacade }, { type: ConfigurationFacade }] });
2788
2786
 
2789
2787
  class CheckoutSubscriptionService {
2790
2788
  constructor(checkoutSubscriptionRepository, dataPersistence, couponService) {
@@ -2821,18 +2819,18 @@ class CheckoutSubscriptionService {
2821
2819
  await this.dataPersistence.set('checkoutSubscriptionId', checkout.id).toPromise();
2822
2820
  return checkout;
2823
2821
  }
2822
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CheckoutSubscriptionService, deps: [{ token: 'CheckoutSubscriptionRepository' }, { token: PERSISTENCE_PROVIDER }, { token: CouponService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2823
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CheckoutSubscriptionService }); }
2824
2824
  }
2825
- 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 });
2826
- CheckoutSubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService });
2827
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService, decorators: [{
2825
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CheckoutSubscriptionService, decorators: [{
2828
2826
  type: Injectable
2829
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2827
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
2830
2828
  type: Inject,
2831
2829
  args: ['CheckoutSubscriptionRepository']
2832
2830
  }] }, { type: undefined, decorators: [{
2833
2831
  type: Inject,
2834
2832
  args: [PERSISTENCE_PROVIDER]
2835
- }] }, { type: CouponService }]; } });
2833
+ }] }, { type: CouponService }] });
2836
2834
 
2837
2835
  class UtilHelper {
2838
2836
  static createSlug(name) {
@@ -2858,12 +2856,12 @@ class HomeShopRepositoriesFacade {
2858
2856
  this.homeRepository = homeRepository;
2859
2857
  this.productRepository = productRepository;
2860
2858
  }
2859
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: HomeShopRepositoriesFacade, deps: [{ token: 'CategoryRepository' }, { token: 'HomeRepository' }, { token: 'ProductRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
2860
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: HomeShopRepositoriesFacade }); }
2861
2861
  }
2862
- HomeShopRepositoriesFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopRepositoriesFacade, deps: [{ token: 'CategoryRepository' }, { token: 'HomeRepository' }, { token: 'ProductRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
2863
- HomeShopRepositoriesFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopRepositoriesFacade });
2864
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopRepositoriesFacade, decorators: [{
2862
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: HomeShopRepositoriesFacade, decorators: [{
2865
2863
  type: Injectable
2866
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2864
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
2867
2865
  type: Inject,
2868
2866
  args: ['CategoryRepository']
2869
2867
  }] }, { type: undefined, decorators: [{
@@ -2872,7 +2870,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
2872
2870
  }] }, { type: undefined, decorators: [{
2873
2871
  type: Inject,
2874
2872
  args: ['ProductRepository']
2875
- }] }]; } });
2873
+ }] }] });
2876
2874
 
2877
2875
  class HomeShopService {
2878
2876
  get homeId() {
@@ -2977,12 +2975,12 @@ class HomeShopService {
2977
2975
  get gender() {
2978
2976
  return this.homeId === 'mens_market' ? 'masculino' : undefined;
2979
2977
  }
2978
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: HomeShopService, deps: [{ token: HomeShopRepositoriesFacade }, { token: ConfigurationFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
2979
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: HomeShopService }); }
2980
2980
  }
2981
- HomeShopService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService, deps: [{ token: HomeShopRepositoriesFacade }, { token: ConfigurationFacade }], target: i0.ɵɵFactoryTarget.Injectable });
2982
- HomeShopService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService });
2983
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService, decorators: [{
2981
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: HomeShopService, decorators: [{
2984
2982
  type: Injectable
2985
- }], ctorParameters: function () { return [{ type: HomeShopRepositoriesFacade }, { type: ConfigurationFacade }]; } });
2983
+ }], ctorParameters: () => [{ type: HomeShopRepositoriesFacade }, { type: ConfigurationFacade }] });
2986
2984
 
2987
2985
  class OrderProductReviewService {
2988
2986
  constructor(orderRepository, productReviewRepository, variantRepository) {
@@ -3074,12 +3072,12 @@ class OrderProductReviewService {
3074
3072
  orderId: review.orderId,
3075
3073
  }));
3076
3074
  }
3075
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: OrderProductReviewService, deps: [{ token: 'OrderRepository' }, { token: 'ProductReviewRepository' }, { token: 'VariantRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
3076
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: OrderProductReviewService }); }
3077
3077
  }
3078
- OrderProductReviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderProductReviewService, deps: [{ token: 'OrderRepository' }, { token: 'ProductReviewRepository' }, { token: 'VariantRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
3079
- OrderProductReviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderProductReviewService });
3080
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderProductReviewService, decorators: [{
3078
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: OrderProductReviewService, decorators: [{
3081
3079
  type: Injectable
3082
- }], ctorParameters: function () { return [{ type: i3.OrderFirestoreRepository, decorators: [{
3080
+ }], ctorParameters: () => [{ type: i3.OrderFirestoreRepository, decorators: [{
3083
3081
  type: Inject,
3084
3082
  args: ['OrderRepository']
3085
3083
  }] }, { type: undefined, decorators: [{
@@ -3088,7 +3086,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
3088
3086
  }] }, { type: undefined, decorators: [{
3089
3087
  type: Inject,
3090
3088
  args: ['VariantRepository']
3091
- }] }]; } });
3089
+ }] }] });
3092
3090
 
3093
3091
  class OrderService {
3094
3092
  constructor(angularFirestore, orderRepository) {
@@ -3102,15 +3100,15 @@ class OrderService {
3102
3100
  .subscribe((doc) => this.orderSubject.next(doc));
3103
3101
  return this.orderSubject;
3104
3102
  }
3103
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: OrderService, deps: [{ token: i1$2.Firestore }, { token: 'OrderRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
3104
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: OrderService }); }
3105
3105
  }
3106
- 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 });
3107
- OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService });
3108
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
3106
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: OrderService, decorators: [{
3109
3107
  type: Injectable
3110
- }], ctorParameters: function () { return [{ type: i1$1.Firestore }, { type: i3.OrderFirestoreRepository, decorators: [{
3108
+ }], ctorParameters: () => [{ type: i1$2.Firestore }, { type: i3.OrderFirestoreRepository, decorators: [{
3111
3109
  type: Inject,
3112
3110
  args: ['OrderRepository']
3113
- }] }]; } });
3111
+ }] }] });
3114
3112
 
3115
3113
  class AngularConnectModule {
3116
3114
  static initializeApp(defaultShop, options, nameOrConfig) {
@@ -3152,120 +3150,127 @@ class AngularConnectModule {
3152
3150
  static createProviderIfExists(token, value) {
3153
3151
  return isNil(value) ? [] : [{ provide: token, useValue: value }];
3154
3152
  }
3155
- }
3156
- AngularConnectModulefac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3157
- AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [i1$3.FirebaseAppModule, i2.AppCheckModule, i3$1.StorageModule, AngularElasticSeachModule,
3158
- AngularVertexSeachModule,
3159
- AngularFirebaseAuthModule,
3160
- AngularFirestoreModule,
3161
- AngularHasuraGraphQLModule] });
3162
- AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, providers: [
3163
- AuthService,
3164
- CartService,
3165
- CatalogService,
3166
- CategoryService,
3167
- CheckoutService,
3168
- CheckoutSubscriptionService,
3169
- CouponService,
3170
- HomeShopService,
3171
- OrderService,
3172
- WishlistService,
3173
- ConfigurationFacade,
3174
- CartServicesFacade,
3175
- CheckoutRepositoriesFacade,
3176
- CheckoutDependenciesFacade,
3177
- CategoryRepositoryFacade,
3178
- ProductCatalogFacade,
3179
- CatalogServiceFacade,
3180
- CategoryServiceFacade,
3181
- CatalogStrategiesFacade,
3182
- CatalogOperationsFacade,
3183
- ProductManagementFacade,
3184
- {
3185
- provide: 'ProductServicesFacade',
3186
- useFactory: (productStockNotificationRepository, categoryRepository, productSearch) => ({
3187
- productStockNotificationRepository,
3188
- categoryRepository,
3189
- productSearch,
3153
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3154
+ static { thismod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: AngularConnectModule, imports: [AngularElasticSeachModule,
3155
+ AngularVertexSeachModule,
3156
+ AngularFirebaseAuthModule,
3157
+ AngularFirestoreModule,
3158
+ AngularHasuraGraphQLModule] }); }
3159
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularConnectModule, providers: [
3160
+ provideFirebaseApp((injector) => {
3161
+ const appName = injector.get(FIREBASE_APP_NAME);
3162
+ try {
3163
+ const app = appName ? getApp(appName) : getApp();
3164
+ return app;
3165
+ }
3166
+ catch (error) {
3167
+ console.warn('Firebase app not found, initializing new app');
3168
+ if (error instanceof Error)
3169
+ console.error(error.message);
3170
+ return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
3171
+ }
3190
3172
  }),
3191
- deps: ['ProductStockNotificationRepository', 'CategoryRepository', 'ProductSearch'],
3192
- },
3193
- CatalogFilterHelper,
3194
- CatalogSortHelper,
3195
- ProductFieldsHelper,
3196
- BrandManagerHelper,
3197
- CatalogRepositoryService,
3198
- CatalogHelpersService,
3199
- CategorySearchStrategy,
3200
- TermSearchStrategy,
3201
- ProfileSearchStrategy,
3202
- {
3203
- provide: CatalogSearchContext,
3204
- useFactory: (categoryStrategy, termStrategy, profileStrategy) => {
3205
- return new CatalogSearchContext(categoryStrategy, termStrategy, profileStrategy);
3206
- },
3207
- deps: [CategorySearchStrategy, TermSearchStrategy, ProfileSearchStrategy],
3208
- },
3209
- {
3210
- provide: UpdateUserImage,
3211
- useFactory: (userRepository, fileUploader) => {
3212
- return new UpdateUserImage(userRepository, fileUploader);
3213
- },
3214
- deps: ['UserRepository', 'FileUploaderService'],
3215
- },
3216
- {
3217
- provide: 'FileUploaderService',
3218
- useFactory: (storage, baseUrl) => {
3219
- return new FirebaseFileUploaderService(storage, baseUrl);
3220
- },
3221
- deps: [Storage, STORAGE_BASE_URL],
3222
- },
3223
- {
3224
- provide: 'ProductSearch',
3225
- useExisting: ProductsVertexSearch,
3226
- },
3227
- CouponRepositoriesFacade,
3228
- HomeShopRepositoriesFacade,
3229
- OrderProductReviewService,
3230
- ], imports: [provideFirebaseApp((injector) => {
3231
- const appName = injector.get(FIREBASE_APP_NAME);
3232
- try {
3233
- const app = appName ? getApp(appName) : getApp();
3234
- return app;
3235
- }
3236
- catch (error) {
3237
- console.warn('Firebase app not found, initializing new app');
3238
- if (error instanceof Error)
3239
- console.error(error.message);
3240
- return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
3241
- }
3242
- }),
3243
- provideAppCheck((injector) => {
3244
- const app = injector.get(FirebaseApp);
3245
- try {
3246
- const provider = injector.get(APP_CHECK_PROVIDER);
3247
- if (provider)
3248
- return initializeAppCheck(app, {
3249
- provider,
3250
- isTokenAutoRefreshEnabled: true,
3251
- });
3252
- }
3253
- catch (error) {
3254
- if (error instanceof Error)
3255
- console.error(error.message);
3256
- return;
3257
- }
3258
- }),
3259
- provideStorage((injector) => getStorage(injector.get(FirebaseApp))),
3260
- AngularElasticSeachModule,
3261
- AngularVertexSeachModule,
3262
- AngularFirebaseAuthModule,
3263
- AngularFirestoreModule,
3264
- AngularHasuraGraphQLModule] });
3265
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, decorators: [{
3173
+ provideAppCheck((injector) => {
3174
+ const app = injector.get(FirebaseApp);
3175
+ try {
3176
+ const provider = injector.get(APP_CHECK_PROVIDER);
3177
+ if (provider)
3178
+ return initializeAppCheck(app, {
3179
+ provider,
3180
+ isTokenAutoRefreshEnabled: true,
3181
+ });
3182
+ }
3183
+ catch (error) {
3184
+ if (error instanceof Error)
3185
+ console.error(error.message);
3186
+ return;
3187
+ }
3188
+ }),
3189
+ provideStorage((injector) => getStorage(injector.get(FirebaseApp))),
3190
+ AuthService,
3191
+ CartService,
3192
+ CatalogService,
3193
+ CategoryService,
3194
+ CheckoutService,
3195
+ CheckoutSubscriptionService,
3196
+ CouponService,
3197
+ HomeShopService,
3198
+ OrderService,
3199
+ WishlistService,
3200
+ ConfigurationFacade,
3201
+ CartServicesFacade,
3202
+ CheckoutRepositoriesFacade,
3203
+ CheckoutDependenciesFacade,
3204
+ CategoryRepositoryFacade,
3205
+ ProductCatalogFacade,
3206
+ CatalogServiceFacade,
3207
+ CategoryServiceFacade,
3208
+ CatalogStrategiesFacade,
3209
+ CatalogOperationsFacade,
3210
+ ProductManagementFacade,
3211
+ {
3212
+ provide: 'ProductServicesFacade',
3213
+ useFactory: (productStockNotificationRepository, categoryRepository, productSearch) => ({
3214
+ productStockNotificationRepository,
3215
+ categoryRepository,
3216
+ productSearch,
3217
+ }),
3218
+ deps: ['ProductStockNotificationRepository', 'CategoryRepository', 'ProductSearch'],
3219
+ },
3220
+ CatalogFilterHelper,
3221
+ CatalogSortHelper,
3222
+ ProductFieldsHelper,
3223
+ BrandManagerHelper,
3224
+ CatalogRepositoryService,
3225
+ CatalogHelpersService,
3226
+ CategorySearchStrategy,
3227
+ TermSearchStrategy,
3228
+ ProfileSearchStrategy,
3229
+ {
3230
+ provide: CatalogSearchContext,
3231
+ useFactory: (categoryStrategy, termStrategy, profileStrategy) => {
3232
+ return new CatalogSearchContext(categoryStrategy, termStrategy, profileStrategy);
3233
+ },
3234
+ deps: [CategorySearchStrategy, TermSearchStrategy, ProfileSearchStrategy],
3235
+ },
3236
+ {
3237
+ provide: UpdateUserImage,
3238
+ useFactory: (userRepository, fileUploader) => {
3239
+ return new UpdateUserImage(userRepository, fileUploader);
3240
+ },
3241
+ deps: ['UserRepository', 'FileUploaderService'],
3242
+ },
3243
+ {
3244
+ provide: 'FileUploaderService',
3245
+ useFactory: (storage, baseUrl) => {
3246
+ return new FirebaseFileUploaderService(storage, baseUrl);
3247
+ },
3248
+ deps: [Storage, STORAGE_BASE_URL],
3249
+ },
3250
+ {
3251
+ provide: 'ProductSearch',
3252
+ useExisting: ProductsVertexSearch,
3253
+ },
3254
+ CouponRepositoriesFacade,
3255
+ HomeShopRepositoriesFacade,
3256
+ OrderProductReviewService,
3257
+ ], imports: [AngularElasticSeachModule,
3258
+ AngularVertexSeachModule,
3259
+ AngularFirebaseAuthModule,
3260
+ AngularFirestoreModule,
3261
+ AngularHasuraGraphQLModule] }); }
3262
+ }
3263
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AngularConnectModule, decorators: [{
3266
3264
  type: NgModule,
3267
3265
  args: [{
3268
3266
  imports: [
3267
+ AngularElasticSeachModule,
3268
+ AngularVertexSeachModule,
3269
+ AngularFirebaseAuthModule,
3270
+ AngularFirestoreModule,
3271
+ AngularHasuraGraphQLModule,
3272
+ ],
3273
+ providers: [
3269
3274
  provideFirebaseApp((injector) => {
3270
3275
  const appName = injector.get(FIREBASE_APP_NAME);
3271
3276
  try {
@@ -3296,13 +3301,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
3296
3301
  }
3297
3302
  }),
3298
3303
  provideStorage((injector) => getStorage(injector.get(FirebaseApp))),
3299
- AngularElasticSeachModule,
3300
- AngularVertexSeachModule,
3301
- AngularFirebaseAuthModule,
3302
- AngularFirestoreModule,
3303
- AngularHasuraGraphQLModule,
3304
- ],
3305
- providers: [
3306
3304
  AuthService,
3307
3305
  CartService,
3308
3306
  CatalogService,