@infrab4a/connect-angular 6.0.0-alpha.1 → 6.0.0-beta.0

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 (128) hide show
  1. package/esm2022/angular-connect.module.mjs +291 -0
  2. package/esm2022/angular-elastic-search.module.mjs +34 -0
  3. package/esm2022/angular-firebase-auth.module.mjs +141 -0
  4. package/esm2022/angular-firestore.module.mjs +541 -0
  5. package/esm2022/angular-hasura-graphql.module.mjs +333 -0
  6. package/esm2022/angular-vertex-search.module.mjs +34 -0
  7. package/{esm2020 → esm2022}/consts/backend-url.const.mjs +1 -1
  8. package/{esm2020 → esm2022}/consts/category-structure.mjs +1 -1
  9. package/{esm2020 → esm2022}/consts/default-shop.const.mjs +1 -1
  10. package/{esm2020 → esm2022}/consts/es-config.const.mjs +1 -1
  11. package/{esm2020 → esm2022}/consts/firebase-const.mjs +1 -1
  12. package/{esm2020 → esm2022}/consts/hasura-options.const.mjs +1 -1
  13. package/{esm2020 → esm2022}/consts/index.mjs +1 -1
  14. package/{esm2020 → esm2022}/consts/persistence.const.mjs +1 -1
  15. package/{esm2020 → esm2022}/consts/storage-base-url.const.mjs +1 -1
  16. package/{esm2020 → esm2022}/consts/vertex-config.const.mjs +1 -1
  17. package/{esm2020 → esm2022}/helpers/index.mjs +1 -1
  18. package/{esm2020 → esm2022}/helpers/mobile-operation-system-checker.helper.mjs +1 -1
  19. package/{esm2020 → esm2022}/index.mjs +1 -1
  20. package/esm2022/interfaces/catalog-strategies.interface.mjs +2 -0
  21. package/{esm2020 → esm2022}/interfaces/category-facades.interface.mjs +1 -1
  22. package/{esm2020 → esm2022}/interfaces/index.mjs +1 -1
  23. package/{esm2020 → esm2022}/persistence/cookie-data-persistence.mjs +4 -4
  24. package/{esm2020 → esm2022}/persistence/data-persistence.mjs +1 -1
  25. package/{esm2020 → esm2022}/persistence/index.mjs +1 -1
  26. package/{esm2020 → esm2022}/services/auth.service.mjs +6 -6
  27. package/{esm2020 → esm2022}/services/cart/cart-services.facade.mjs +5 -5
  28. package/{esm2020 → esm2022}/services/cart/index.mjs +1 -1
  29. package/{esm2020 → esm2022}/services/cart.service.mjs +5 -5
  30. package/{esm2020 → esm2022}/services/catalog/adapters/category-structure.adapter.mjs +1 -1
  31. package/{esm2020 → esm2022}/services/catalog/adapters/index.mjs +1 -1
  32. package/{esm2020 → esm2022}/services/catalog/adapters/new-category-structure.adapter.mjs +6 -6
  33. package/{esm2020 → esm2022}/services/catalog/adapters/old-category-structure.adapter.mjs +6 -6
  34. package/{esm2020 → esm2022}/services/catalog/catalog.service.mjs +6 -6
  35. package/esm2022/services/catalog/category.service.mjs +39 -0
  36. package/{esm2020 → esm2022}/services/catalog/context/catalog-search.context.mjs +1 -1
  37. package/{esm2020 → esm2022}/services/catalog/enums/index.mjs +1 -1
  38. package/{esm2020 → esm2022}/services/catalog/enums/product-sorts.enum.mjs +1 -1
  39. package/{esm2020 → esm2022}/services/catalog/facades/catalog-service.facade.mjs +6 -6
  40. package/esm2022/services/catalog/facades/catalog-strategies.facade.mjs +17 -0
  41. package/{esm2020 → esm2022}/services/catalog/facades/category-repository.facade.mjs +6 -6
  42. package/{esm2020 → esm2022}/services/catalog/facades/category-service.facade.mjs +6 -6
  43. package/{esm2020 → esm2022}/services/catalog/facades/index.mjs +1 -1
  44. package/{esm2020 → esm2022}/services/catalog/facades/product-catalog.facade.mjs +6 -6
  45. package/{esm2020 → esm2022}/services/catalog/helpers/brand-manager.helper.mjs +5 -5
  46. package/{esm2020 → esm2022}/services/catalog/helpers/catalog-filter.helper.mjs +4 -4
  47. package/{esm2020 → esm2022}/services/catalog/helpers/catalog-sort.helper.mjs +4 -4
  48. package/{esm2020 → esm2022}/services/catalog/helpers/index.mjs +1 -1
  49. package/{esm2020 → esm2022}/services/catalog/helpers/product-fields.helper.mjs +4 -4
  50. package/{esm2020 → esm2022}/services/catalog/index.mjs +1 -1
  51. package/{esm2020 → esm2022}/services/catalog/models/category-with-tree.model.mjs +1 -1
  52. package/{esm2020 → esm2022}/services/catalog/models/index.mjs +1 -1
  53. package/esm2022/services/catalog/services/catalog-helpers.service.mjs +33 -0
  54. package/esm2022/services/catalog/services/catalog-operations.facade.mjs +26 -0
  55. package/{esm2020 → esm2022}/services/catalog/services/catalog-repository.service.mjs +6 -6
  56. package/{esm2020 → esm2022}/services/catalog/services/index.mjs +1 -1
  57. package/{esm2020 → esm2022}/services/catalog/services/product-management.facade.mjs +6 -6
  58. package/esm2022/services/catalog/strategies/category-search.strategy.mjs +133 -0
  59. package/{esm2020 → esm2022}/services/catalog/strategies/index.mjs +1 -1
  60. package/{esm2020 → esm2022}/services/catalog/strategies/profile-search.strategy.mjs +5 -5
  61. package/esm2022/services/catalog/strategies/term-search.strategy.mjs +123 -0
  62. package/esm2022/services/catalog/strategies/types/strategy-params.type.mjs +2 -0
  63. package/{esm2020 → esm2022}/services/catalog/types/fetch-products-options.type.mjs +1 -1
  64. package/esm2022/services/catalog/types/fetch-products-params.type.mjs +2 -0
  65. package/{esm2020 → esm2022}/services/catalog/types/fetch-products-response.type.mjs +1 -1
  66. package/{esm2020 → esm2022}/services/catalog/types/index.mjs +1 -1
  67. package/esm2022/services/catalog/types/method-params.type.mjs +2 -0
  68. package/{esm2020 → esm2022}/services/catalog/types/product-sort.type.mjs +1 -1
  69. package/esm2022/services/catalog/wishlist.service.mjs +254 -0
  70. package/{esm2020 → esm2022}/services/checkout/checkout-dependencies.facade.mjs +6 -6
  71. package/{esm2020 → esm2022}/services/checkout/checkout-repositories.facade.mjs +6 -6
  72. package/{esm2020 → esm2022}/services/checkout/index.mjs +1 -1
  73. package/{esm2020 → esm2022}/services/checkout-subscription.service.mjs +6 -6
  74. package/{esm2020 → esm2022}/services/checkout.service.mjs +5 -5
  75. package/{esm2020 → esm2022}/services/coupon/coupon-repositories.facade.mjs +6 -6
  76. package/{esm2020 → esm2022}/services/coupon/index.mjs +1 -1
  77. package/esm2022/services/coupon/types/coupon-params.type.mjs +2 -0
  78. package/{esm2020 → esm2022}/services/coupon.service.mjs +5 -5
  79. package/{esm2020 → esm2022}/services/helpers/index.mjs +1 -1
  80. package/{esm2020 → esm2022}/services/helpers/util.helper.mjs +1 -1
  81. package/{esm2020 → esm2022}/services/home-shop/home-shop-repositories.facade.mjs +6 -6
  82. package/{esm2020 → esm2022}/services/home-shop/index.mjs +1 -1
  83. package/{esm2020 → esm2022}/services/home-shop.service.mjs +5 -5
  84. package/{esm2020 → esm2022}/services/index.mjs +2 -1
  85. package/esm2022/services/order-product-review.service.mjs +81 -0
  86. package/{esm2020 → esm2022}/services/order.service.mjs +6 -6
  87. package/{esm2020 → esm2022}/services/shared/configuration.facade.mjs +6 -6
  88. package/{esm2020 → esm2022}/services/shared/index.mjs +1 -1
  89. package/esm2022/services/types/index.mjs +5 -0
  90. package/esm2022/services/types/pending-product-review.type.mjs +2 -0
  91. package/esm2022/services/types/product-review-create.type.mjs +2 -0
  92. package/{esm2020 → esm2022}/services/types/required-checkout-data.type.mjs +1 -1
  93. package/{esm2020 → esm2022}/services/types/required-checkout-subscription-data.type.mjs +1 -1
  94. package/{esm2020 → esm2022}/types/firebase-app-config.type.mjs +1 -1
  95. package/{esm2020 → esm2022}/types/index.mjs +1 -1
  96. package/{fesm2020 → fesm2022}/infrab4a-connect-angular.mjs +849 -774
  97. package/fesm2022/infrab4a-connect-angular.mjs.map +1 -0
  98. package/package.json +11 -17
  99. package/services/cart.service.d.ts +1 -1
  100. package/services/catalog/wishlist.service.d.ts +4 -3
  101. package/services/index.d.ts +1 -0
  102. package/services/order-product-review.service.d.ts +13 -0
  103. package/services/types/index.d.ts +2 -0
  104. package/services/types/pending-product-review.type.d.ts +10 -0
  105. package/services/types/product-review-create.type.d.ts +14 -0
  106. package/esm2020/angular-connect.module.mjs +0 -289
  107. package/esm2020/angular-elastic-search.module.mjs +0 -34
  108. package/esm2020/angular-firebase-auth.module.mjs +0 -141
  109. package/esm2020/angular-firestore.module.mjs +0 -541
  110. package/esm2020/angular-hasura-graphql.module.mjs +0 -333
  111. package/esm2020/angular-vertex-search.module.mjs +0 -34
  112. package/esm2020/interfaces/catalog-strategies.interface.mjs +0 -2
  113. package/esm2020/services/catalog/category.service.mjs +0 -39
  114. package/esm2020/services/catalog/facades/catalog-strategies.facade.mjs +0 -17
  115. package/esm2020/services/catalog/services/catalog-helpers.service.mjs +0 -33
  116. package/esm2020/services/catalog/services/catalog-operations.facade.mjs +0 -26
  117. package/esm2020/services/catalog/strategies/category-search.strategy.mjs +0 -133
  118. package/esm2020/services/catalog/strategies/term-search.strategy.mjs +0 -126
  119. package/esm2020/services/catalog/strategies/types/strategy-params.type.mjs +0 -2
  120. package/esm2020/services/catalog/types/fetch-products-params.type.mjs +0 -2
  121. package/esm2020/services/catalog/types/method-params.type.mjs +0 -2
  122. package/esm2020/services/catalog/wishlist.service.mjs +0 -255
  123. package/esm2020/services/coupon/types/coupon-params.type.mjs +0 -2
  124. package/esm2020/services/types/index.mjs +0 -3
  125. package/fesm2015/infrab4a-connect-angular.mjs +0 -3372
  126. package/fesm2015/infrab4a-connect-angular.mjs.map +0 -1
  127. package/fesm2020/infrab4a-connect-angular.mjs.map +0 -1
  128. /package/{esm2020 → esm2022}/infrab4a-connect-angular.mjs +0 -0
@@ -7,7 +7,7 @@ import { provideAppCheck, initializeAppCheck } from '@angular/fire/app-check';
7
7
  import * as i3$1 from '@angular/fire/storage';
8
8
  import { Storage, provideStorage, getStorage } from '@angular/fire/storage';
9
9
  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, Shops, isEmpty, set, InvalidArgumentError, RoundProductPricesHelper, Category, WishlistLogType, PersonTypes, Wishlist, CheckoutTypes, CouponTypes, Exclusivities, OrderStatus, CheckoutSubscription, Product, RequiredArgumentError, add, Order, UpdateUserImage, FirebaseFileUploaderService } 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';
11
11
  import * as i1 from '@angular/fire/auth';
12
12
  import { Auth, provideAuth, initializeAuth, indexedDBLocalPersistence, browserLocalPersistence, browserSessionPersistence, getAuth, getIdToken, authState } from '@angular/fire/auth';
13
13
  import { isPlatformBrowser, isPlatformServer } from '@angular/common';
@@ -29,17 +29,17 @@ class AngularElasticSeachModule {
29
29
  providers: [{ provide: ES_CONFIG, useValue: options }],
30
30
  };
31
31
  }
32
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularElasticSeachModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
33
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularElasticSeachModule }); }
34
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularElasticSeachModule, providers: [
35
+ {
36
+ provide: ProductsIndex,
37
+ useFactory: (configuration) => new ProductsIndex(new AxiosAdapter(configuration)),
38
+ deps: [ES_CONFIG],
39
+ },
40
+ ] }); }
32
41
  }
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: [{
42
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularElasticSeachModule, decorators: [{
43
43
  type: NgModule,
44
44
  args: [{
45
45
  providers: [
@@ -78,66 +78,66 @@ class AngularFirebaseAuthModule {
78
78
  ],
79
79
  };
80
80
  }
81
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirebaseAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
82
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularFirebaseAuthModule, imports: [i1.AuthModule] }); }
83
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirebaseAuthModule, providers: [
84
+ {
85
+ provide: 'Authentication',
86
+ useFactory: (authenticationService, userRepository) => {
87
+ return new Authentication(authenticationService, userRepository);
88
+ },
89
+ deps: ['AuthenticationService', 'UserRepository'],
90
+ },
91
+ {
92
+ provide: 'AuthenticationService',
93
+ useFactory: (angularFireAuth) => {
94
+ return new AuthenticationFirebaseAuthService(angularFireAuth);
95
+ },
96
+ deps: [Auth],
97
+ },
98
+ {
99
+ provide: 'Register',
100
+ useFactory: (registerService, userRepository) => {
101
+ return new Register(registerService, userRepository);
102
+ },
103
+ deps: ['RegisterService', 'UserRepository'],
104
+ },
105
+ {
106
+ provide: 'RegisterService',
107
+ useFactory: (angularFireAuth) => {
108
+ return new RegisterFirebaseAuthService(angularFireAuth);
109
+ },
110
+ deps: [Auth],
111
+ },
112
+ {
113
+ provide: 'SignOut',
114
+ useFactory: (authenticationService) => {
115
+ return new SignOut(authenticationService);
116
+ },
117
+ deps: ['AuthenticationService'],
118
+ },
119
+ {
120
+ provide: 'RecoveryPassword',
121
+ useFactory: (authenticationService) => {
122
+ return new RecoveryPassword(authenticationService);
123
+ },
124
+ deps: ['AuthenticationService'],
125
+ },
126
+ ], imports: [provideAuth((injector) => {
127
+ const app = injector.get(FirebaseApp);
128
+ try {
129
+ return initializeAuth(app, {
130
+ persistence: [indexedDBLocalPersistence, browserLocalPersistence, browserSessionPersistence],
131
+ });
132
+ }
133
+ catch (error) {
134
+ if (error instanceof Error)
135
+ console.error('Error initializing auth', error.message);
136
+ return getAuth(app);
137
+ }
138
+ })] }); }
81
139
  }
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: [{
140
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
141
141
  type: NgModule,
142
142
  args: [{
143
143
  imports: [
@@ -220,264 +220,264 @@ class AngularFirestoreModule {
220
220
  ],
221
221
  };
222
222
  }
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))
223
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
224
+ static { thismod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1$1.FirestoreModule] }); }
225
+ static { thisinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirestoreModule, providers: [
226
+ {
227
+ provide: 'FirestoreOptions',
228
+ useFactory: (firestore, platformId) => ({
229
+ firestore: new ConnectFirestoreService(firestore),
230
+ interceptors: {
231
+ request: (request) => {
232
+ if (isPlatformBrowser(platformId))
233
+ return request;
234
+ const interval = setInterval(() => { }, 100);
235
+ request.interval = interval;
234
236
  return request;
235
- const interval = setInterval(() => { }, 100);
236
- request.interval = interval;
237
- return request;
238
- },
239
- response: (response, request) => {
240
- if (isPlatformBrowser(platformId))
237
+ },
238
+ response: (response, request) => {
239
+ if (isPlatformBrowser(platformId))
240
+ return response;
241
+ clearInterval(request.interval);
241
242
  return response;
242
- clearInterval(request.interval);
243
- return response;
243
+ },
244
244
  },
245
+ }),
246
+ deps: [Firestore, PLATFORM_ID],
247
+ },
248
+ {
249
+ provide: 'BeautyProfileRepository',
250
+ useFactory: (config, userRepository) => {
251
+ return new UserBeautyProfileFirestoreRepository(config, userRepository);
245
252
  },
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), {
253
+ deps: ['FirestoreOptions', 'UserRepository'],
254
+ },
255
+ {
256
+ provide: 'Buy2WinRepository',
257
+ useFactory: (options) => {
258
+ return new Buy2WinFirestoreRepository(options);
259
+ },
260
+ deps: ['FirestoreOptions'],
261
+ },
262
+ {
263
+ provide: CategoryFirestoreRepository,
264
+ useFactory: (options) => {
265
+ return new CategoryFirestoreRepository(options);
266
+ },
267
+ deps: ['FirestoreOptions'],
268
+ },
269
+ {
270
+ provide: 'CheckoutRepository',
271
+ useFactory: (options) => {
272
+ return new CheckoutFirestoreRepository(options);
273
+ },
274
+ deps: ['FirestoreOptions'],
275
+ },
276
+ {
277
+ provide: 'CheckoutSubscriptionRepository',
278
+ useFactory: (options) => {
279
+ return new CheckoutSubscriptionFirestoreRepository(options);
280
+ },
281
+ deps: ['FirestoreOptions'],
282
+ },
283
+ {
284
+ provide: 'CouponRepository',
285
+ useFactory: (options) => {
286
+ return new CouponFirestoreRepository(options);
287
+ },
288
+ deps: ['FirestoreOptions'],
289
+ },
290
+ {
291
+ provide: 'CampaignHashtagRepository',
292
+ useFactory: (options) => {
293
+ return new CampaignHashtagFirestoreRepository(options);
294
+ },
295
+ deps: ['FirestoreOptions'],
296
+ },
297
+ {
298
+ provide: 'CampaignDashboardRepository',
299
+ useFactory: (options) => {
300
+ return new CampaignDashboardFirestoreRepository(options);
301
+ },
302
+ deps: ['FirestoreOptions'],
303
+ },
304
+ {
305
+ provide: 'EditionRepository',
306
+ useFactory: (options, subscriptionRepository) => {
307
+ return new SubscriptionEditionFirestoreRepository(options, subscriptionRepository);
308
+ },
309
+ deps: ['FirestoreOptions', 'SubscriptionRepository'],
310
+ },
311
+ {
312
+ provide: 'GroupRepository',
313
+ useFactory: (options) => {
314
+ return new GroupFirestoreRepository(options);
315
+ },
316
+ deps: ['FirestoreOptions'],
317
+ },
318
+ {
319
+ provide: 'HomeRepository',
320
+ useFactory: (options) => {
321
+ return new HomeFirestoreRepository(options);
322
+ },
323
+ deps: ['FirestoreOptions'],
324
+ },
325
+ {
326
+ provide: 'LeadRepository',
327
+ useFactory: (options) => {
328
+ return new LeadFirestoreRepository(options);
329
+ },
330
+ deps: ['FirestoreOptions'],
331
+ },
332
+ {
333
+ provide: 'LegacyOrderRepository',
334
+ useFactory: (options) => {
335
+ return new LegacyOrderFirestoreRepository(options);
336
+ },
337
+ deps: ['FirestoreOptions'],
338
+ },
339
+ {
340
+ provide: 'ShopMenuRepository',
341
+ useFactory: (options) => {
342
+ return new ShopMenuFirestoreRepository(options);
343
+ },
344
+ deps: ['FirestoreOptions'],
345
+ },
346
+ {
347
+ provide: 'OrderRepository',
348
+ useFactory: (options) => {
349
+ return new OrderFirestoreRepository(options);
350
+ },
351
+ deps: ['FirestoreOptions'],
352
+ },
353
+ {
354
+ provide: 'PaymentRepository',
355
+ useFactory: (options) => {
356
+ return new PaymentFirestoreRepository(options);
357
+ },
358
+ deps: ['FirestoreOptions'],
359
+ },
360
+ {
361
+ provide: ProductFirestoreRepository,
362
+ useFactory: (options) => {
363
+ return new ProductFirestoreRepository(options);
364
+ },
365
+ deps: ['FirestoreOptions'],
366
+ },
367
+ {
368
+ provide: 'ShopSettingsRepository',
369
+ useFactory: (options) => {
370
+ return new ShopSettingsFirestoreRepository(options);
371
+ },
372
+ deps: ['FirestoreOptions'],
373
+ },
374
+ {
375
+ provide: 'SubscriptionPaymentRepository',
376
+ useFactory: (options, subscriptionRepository) => {
377
+ return new SubscriptionPaymentFirestoreRepository(options, subscriptionRepository);
378
+ },
379
+ deps: ['FirestoreOptions', 'SubscriptionRepository'],
380
+ },
381
+ {
382
+ provide: 'SubscriptionPlanRepository',
383
+ useFactory: (options) => {
384
+ return new SubscriptionPlanFirestoreRepository(options);
385
+ },
386
+ deps: ['FirestoreOptions'],
387
+ },
388
+ {
389
+ provide: 'SubscriptionProductRepository',
390
+ useFactory: (options) => {
391
+ return new SubscriptionProductFirestoreRepository(options);
392
+ },
393
+ deps: ['FirestoreOptions'],
394
+ },
395
+ {
396
+ provide: 'SubscriptionRepository',
397
+ useFactory: (options) => {
398
+ return new SubscriptionFirestoreRepository(options);
399
+ },
400
+ deps: ['FirestoreOptions'],
401
+ },
402
+ {
403
+ provide: 'UserRepository',
404
+ useFactory: (options) => {
405
+ return new UserFirestoreRepository(options);
406
+ },
407
+ deps: ['FirestoreOptions'],
408
+ },
409
+ {
410
+ provide: 'UserAddressRepository',
411
+ useFactory: (options, userRepository) => {
412
+ return new UserAddressFirestoreRepository(options, userRepository);
413
+ },
414
+ deps: ['FirestoreOptions', 'UserRepository'],
415
+ },
416
+ {
417
+ provide: 'UserPaymentMethodRepository',
418
+ useFactory: (options, userRepository) => {
419
+ return new UserPaymentMethodFirestoreRepository(options, userRepository);
420
+ },
421
+ deps: ['FirestoreOptions', 'UserRepository'],
422
+ },
423
+ {
424
+ provide: 'SubscriptionMaterializationRepository',
425
+ useFactory: (options) => {
426
+ return new SubscriptionMaterializationFirestoreRepository(options);
427
+ },
428
+ deps: ['FirestoreOptions'],
429
+ },
430
+ {
431
+ provide: 'SubscriptionSummaryRepository',
432
+ useFactory: (options) => {
433
+ return new SubscriptionSummaryFirestoreRepository(options);
434
+ },
435
+ deps: ['FirestoreOptions'],
436
+ },
437
+ {
438
+ provide: ProductVariantFirestoreRepository,
439
+ useFactory: (options, productRepository) => {
440
+ return new ProductVariantFirestoreRepository(options, productRepository);
441
+ },
442
+ deps: ['FirestoreOptions', ProductFirestoreRepository],
443
+ },
444
+ {
445
+ provide: 'OrderBlockedRepository',
446
+ useFactory: (options) => {
447
+ return new OrderBlockedFirestoreRepository(options);
448
+ },
449
+ deps: ['FirestoreOptions'],
450
+ },
451
+ {
452
+ provide: 'LogRepository',
453
+ useFactory: (options) => {
454
+ return new LogFirestoreRepository(options);
455
+ },
456
+ deps: ['FirestoreOptions'],
457
+ },
458
+ {
459
+ provide: 'SequenceRepository',
460
+ useFactory: (options) => {
461
+ return new SequenceFirestoreRepository(options);
462
+ },
463
+ deps: ['FirestoreOptions'],
464
+ },
465
+ ], imports: [AngularElasticSeachModule,
466
+ provideFirestore((injector) => {
467
+ const platformId = injector.get(PLATFORM_ID);
468
+ if (isPlatformServer(platformId) || !MobileOperationSystemCheckerHelper.isAppleDevice())
469
+ return initializeFirestore(injector.get(FirebaseApp), {
470
+ ignoreUndefinedProperties: true,
471
+ });
472
+ const firestore = initializeFirestore(injector.get(FirebaseApp), {
473
+ experimentalForceLongPolling: true,
471
474
  ignoreUndefinedProperties: true,
475
+ localCache: memoryLocalCache(),
472
476
  });
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: [{
477
+ return firestore;
478
+ })] }); }
479
+ }
480
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirestoreModule, decorators: [{
481
481
  type: NgModule,
482
482
  args: [{
483
483
  imports: [
@@ -747,166 +747,166 @@ class AngularHasuraGraphQLModule {
747
747
  providers: [{ provide: HASURA_OPTIONS, useValue: options }],
748
748
  };
749
749
  }
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))
750
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularHasuraGraphQLModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
751
+ static { thismod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularHasuraGraphQLModule }); }
752
+ static { thisinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularHasuraGraphQLModule, providers: [
753
+ {
754
+ provide: 'HasuraConfig',
755
+ useFactory: (options, platformId) => ({
756
+ endpoint: options.endpoint,
757
+ authOptions: options.credentials,
758
+ cache: options.cache,
759
+ interceptors: {
760
+ request: (request) => {
761
+ if (isPlatformBrowser(platformId))
762
+ return request;
763
+ const interval = setInterval(() => { }, 100);
764
+ request.interval = interval;
763
765
  return request;
764
- const interval = setInterval(() => { }, 100);
765
- request.interval = interval;
766
- return request;
767
- },
768
- response: (response, request) => {
769
- if (isPlatformBrowser(platformId))
766
+ },
767
+ response: (response, request) => {
768
+ if (isPlatformBrowser(platformId))
769
+ return response;
770
+ clearInterval(request.interval);
770
771
  return response;
771
- clearInterval(request.interval);
772
- return response;
772
+ },
773
773
  },
774
+ }),
775
+ deps: [HASURA_OPTIONS, PLATFORM_ID],
776
+ },
777
+ {
778
+ provide: 'CategoryRepository',
779
+ useExisting: CategoryHasuraGraphQLRepository,
780
+ },
781
+ {
782
+ provide: CategoryHasuraGraphQLRepository,
783
+ useFactory: (options, productRepository, categoryFilterRepository) => {
784
+ return new CategoryHasuraGraphQLRepository(options, productRepository, categoryFilterRepository);
774
785
  },
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: [{
786
+ deps: ['HasuraConfig', ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
787
+ },
788
+ {
789
+ provide: 'ProductRepository',
790
+ useExisting: ProductHasuraGraphQLRepository,
791
+ },
792
+ {
793
+ provide: ProductHasuraGraphQLRepository,
794
+ useFactory: (hasuraConfig) => {
795
+ return new ProductHasuraGraphQLRepository(hasuraConfig);
796
+ },
797
+ deps: ['HasuraConfig'],
798
+ },
799
+ {
800
+ provide: 'ProductReviewRepository',
801
+ useExisting: ProductReviewHasuraGraphQLRepository,
802
+ },
803
+ {
804
+ provide: ProductReviewHasuraGraphQLRepository,
805
+ useFactory: (hasuraConfig) => {
806
+ return new ProductReviewHasuraGraphQLRepository(hasuraConfig);
807
+ },
808
+ deps: ['HasuraConfig'],
809
+ },
810
+ {
811
+ provide: 'VariantRepository',
812
+ useExisting: VariantHasuraGraphQLRepository,
813
+ },
814
+ {
815
+ provide: VariantHasuraGraphQLRepository,
816
+ useFactory: (hasuraConfig) => {
817
+ return new VariantHasuraGraphQLRepository(hasuraConfig);
818
+ },
819
+ deps: ['HasuraConfig'],
820
+ },
821
+ {
822
+ provide: 'ProductStockNotificationRepository',
823
+ useExisting: ProductStockNotificationHasuraGraphQLRepository,
824
+ },
825
+ {
826
+ provide: ProductStockNotificationHasuraGraphQLRepository,
827
+ useFactory: (hasuraConfig) => {
828
+ return new ProductStockNotificationHasuraGraphQLRepository(hasuraConfig);
829
+ },
830
+ deps: ['HasuraConfig'],
831
+ },
832
+ {
833
+ provide: 'CategoryFilterRepository',
834
+ useExisting: CategoryFilterHasuraGraphQLRepository,
835
+ },
836
+ {
837
+ provide: CategoryFilterHasuraGraphQLRepository,
838
+ useFactory: (options) => {
839
+ return new CategoryFilterHasuraGraphQLRepository(options);
840
+ },
841
+ deps: ['HasuraConfig'],
842
+ },
843
+ {
844
+ provide: 'FilterOptionRepository',
845
+ useExisting: FilterOptionHasuraGraphQLRepository,
846
+ },
847
+ {
848
+ provide: FilterOptionHasuraGraphQLRepository,
849
+ useFactory: (options) => {
850
+ return new FilterOptionHasuraGraphQLRepository(options);
851
+ },
852
+ deps: ['HasuraConfig'],
853
+ },
854
+ {
855
+ provide: 'FilterRepository',
856
+ useExisting: FilterHasuraGraphQLRepository,
857
+ },
858
+ {
859
+ provide: FilterHasuraGraphQLRepository,
860
+ useFactory: (options, filterOptionRepository, categoryFilterRepository) => {
861
+ return new FilterHasuraGraphQLRepository(options, filterOptionRepository, categoryFilterRepository);
862
+ },
863
+ deps: ['HasuraConfig', FilterOptionHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
864
+ },
865
+ {
866
+ provide: CategoryCollectionChildrenHasuraGraphQLRepository,
867
+ useFactory: (options) => new CategoryCollectionChildrenHasuraGraphQLRepository(options),
868
+ deps: ['HasuraConfig'],
869
+ },
870
+ {
871
+ provide: 'CategoryCollectionChildrenRepository',
872
+ useExisting: CategoryCollectionChildrenHasuraGraphQLRepository,
873
+ },
874
+ {
875
+ provide: CategoryProductHasuraGraphQLRepository,
876
+ useFactory: (options) => {
877
+ return new CategoryProductHasuraGraphQLRepository(options);
878
+ },
879
+ deps: ['HasuraConfig'],
880
+ },
881
+ {
882
+ provide: 'CategoryProductRepository',
883
+ useExisting: CategoryProductHasuraGraphQLRepository,
884
+ },
885
+ {
886
+ provide: WishlistHasuraGraphQLRepository,
887
+ useFactory: (options, categoryProductRepository) => {
888
+ return new WishlistHasuraGraphQLRepository(options, categoryProductRepository);
889
+ },
890
+ deps: ['HasuraConfig', CategoryProductHasuraGraphQLRepository],
891
+ },
892
+ {
893
+ provide: 'WishlistRepository',
894
+ useExisting: WishlistHasuraGraphQLRepository,
895
+ },
896
+ {
897
+ provide: ProductErrorsHasuraGraphQLRepository,
898
+ useFactory: (options, productRepository) => {
899
+ return new ProductErrorsHasuraGraphQLRepository(options, productRepository);
900
+ },
901
+ deps: ['HasuraConfig', ProductHasuraGraphQLRepository],
902
+ },
903
+ {
904
+ provide: 'ProductErrorsRepository',
905
+ useExisting: ProductErrorsHasuraGraphQLRepository,
906
+ },
907
+ ] }); }
908
+ }
909
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularHasuraGraphQLModule, decorators: [{
910
910
  type: NgModule,
911
911
  args: [{
912
912
  providers: [
@@ -1075,17 +1075,17 @@ class AngularVertexSeachModule {
1075
1075
  providers: [{ provide: VERTEX_CONFIG, useValue: options }],
1076
1076
  };
1077
1077
  }
1078
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularVertexSeachModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1079
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularVertexSeachModule }); }
1080
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularVertexSeachModule, providers: [
1081
+ {
1082
+ provide: ProductsVertexSearch,
1083
+ useFactory: (configuration) => new ProductsVertexSearch(new VertexAxiosAdapter(configuration)),
1084
+ deps: [VERTEX_CONFIG],
1085
+ },
1086
+ ] }); }
1078
1087
  }
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: [{
1088
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularVertexSeachModule, decorators: [{
1089
1089
  type: NgModule,
1090
1090
  args: [{
1091
1091
  providers: [
@@ -1110,10 +1110,10 @@ class CookieDataPersistence {
1110
1110
  set(key, value) {
1111
1111
  return from(cookie.set(key, value)).pipe(map(() => { }));
1112
1112
  }
1113
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CookieDataPersistence, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1114
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CookieDataPersistence }); }
1113
1115
  }
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: [{
1116
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CookieDataPersistence, decorators: [{
1117
1117
  type: Injectable
1118
1118
  }] });
1119
1119
 
@@ -1138,48 +1138,48 @@ class AuthService {
1138
1138
  getFireUser() {
1139
1139
  return authState(this.angularFireAuth).pipe(catchError(() => of(null)));
1140
1140
  }
1141
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AuthService, deps: [{ token: i1.Auth }, { token: 'UserRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
1142
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AuthService }); }
1141
1143
  }
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: [{
1144
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AuthService, decorators: [{
1145
1145
  type: Injectable
1146
- }], ctorParameters: function () { return [{ type: i1.Auth }, { type: undefined, decorators: [{
1146
+ }], ctorParameters: () => [{ type: i1.Auth }, { type: undefined, decorators: [{
1147
1147
  type: Inject,
1148
1148
  args: ['UserRepository']
1149
- }] }]; } });
1149
+ }] }] });
1150
1150
 
1151
1151
  class CheckoutRepositoriesFacade {
1152
1152
  constructor(checkoutRepository, userRepository) {
1153
1153
  this.checkoutRepository = checkoutRepository;
1154
1154
  this.userRepository = userRepository;
1155
1155
  }
1156
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutRepositoriesFacade, deps: [{ token: 'CheckoutRepository' }, { token: 'UserRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
1157
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutRepositoriesFacade }); }
1156
1158
  }
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: [{
1159
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutRepositoriesFacade, decorators: [{
1160
1160
  type: Injectable
1161
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1161
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
1162
1162
  type: Inject,
1163
1163
  args: ['CheckoutRepository']
1164
1164
  }] }, { type: undefined, decorators: [{
1165
1165
  type: Inject,
1166
1166
  args: ['UserRepository']
1167
- }] }]; } });
1167
+ }] }] });
1168
1168
 
1169
1169
  class CheckoutDependenciesFacade {
1170
1170
  constructor(dataPersistence, httpClient) {
1171
1171
  this.dataPersistence = dataPersistence;
1172
1172
  this.httpClient = httpClient;
1173
1173
  }
1174
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutDependenciesFacade, deps: [{ token: PERSISTENCE_PROVIDER }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
1175
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutDependenciesFacade }); }
1174
1176
  }
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: [{
1177
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutDependenciesFacade, decorators: [{
1178
1178
  type: Injectable
1179
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1179
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
1180
1180
  type: Inject,
1181
1181
  args: [PERSISTENCE_PROVIDER]
1182
- }] }, { type: i1$2.HttpClient }]; } });
1182
+ }] }, { type: i1$2.HttpClient }] });
1183
1183
 
1184
1184
  class ConfigurationFacade {
1185
1185
  constructor(defaultShop, firebaseOptions) {
@@ -1192,18 +1192,18 @@ class ConfigurationFacade {
1192
1192
  getProjectId() {
1193
1193
  return this.firebaseOptions.projectId;
1194
1194
  }
1195
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ConfigurationFacade, deps: [{ token: DEFAULT_SHOP }, { token: FIREBASE_OPTIONS }], target: i0.ɵɵFactoryTarget.Injectable }); }
1196
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ConfigurationFacade }); }
1195
1197
  }
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: [{
1198
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ConfigurationFacade, decorators: [{
1199
1199
  type: Injectable
1200
- }], ctorParameters: function () { return [{ type: i3.Shops, decorators: [{
1200
+ }], ctorParameters: () => [{ type: i3.Shops, decorators: [{
1201
1201
  type: Inject,
1202
1202
  args: [DEFAULT_SHOP]
1203
1203
  }] }, { type: undefined, decorators: [{
1204
1204
  type: Inject,
1205
1205
  args: [FIREBASE_OPTIONS]
1206
- }] }]; } });
1206
+ }] }] });
1207
1207
 
1208
1208
  class CheckoutService {
1209
1209
  constructor(repositoriesFacade, dependenciesFacade, configurationFacade) {
@@ -1295,12 +1295,12 @@ class CheckoutService {
1295
1295
  await this.dependenciesFacade.dataPersistence.set('checkoutId', checkout.id).toPromise();
1296
1296
  return checkout;
1297
1297
  }
1298
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutService, deps: [{ token: CheckoutRepositoriesFacade }, { token: CheckoutDependenciesFacade }, { token: ConfigurationFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
1299
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutService }); }
1298
1300
  }
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: [{
1301
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutService, decorators: [{
1302
1302
  type: Injectable
1303
- }], ctorParameters: function () { return [{ type: CheckoutRepositoriesFacade }, { type: CheckoutDependenciesFacade }, { type: ConfigurationFacade }]; } });
1303
+ }], ctorParameters: () => [{ type: CheckoutRepositoriesFacade }, { type: CheckoutDependenciesFacade }, { type: ConfigurationFacade }] });
1304
1304
 
1305
1305
  class CartServicesFacade {
1306
1306
  constructor(authService, checkoutService, httpClient) {
@@ -1308,12 +1308,12 @@ class CartServicesFacade {
1308
1308
  this.checkoutService = checkoutService;
1309
1309
  this.httpClient = httpClient;
1310
1310
  }
1311
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CartServicesFacade, deps: [{ token: AuthService }, { token: CheckoutService }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
1312
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CartServicesFacade }); }
1311
1313
  }
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: [{
1314
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CartServicesFacade, decorators: [{
1315
1315
  type: Injectable
1316
- }], ctorParameters: function () { return [{ type: AuthService }, { type: CheckoutService }, { type: i1$2.HttpClient }]; } });
1316
+ }], ctorParameters: () => [{ type: AuthService }, { type: CheckoutService }, { type: i1$2.HttpClient }] });
1317
1317
 
1318
1318
  class CartService {
1319
1319
  constructor(servicesFacade, configurationFacade) {
@@ -1372,12 +1372,12 @@ class CartService {
1372
1372
  buildCartFromCheckout(checkoutData) {
1373
1373
  return this.servicesFacade.checkoutService.getCheckout(checkoutData).pipe(map((checkout) => checkout.lineItems), concatMap((lineItems) => of(this.generateCartObject(lineItems))));
1374
1374
  }
1375
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CartService, deps: [{ token: CartServicesFacade }, { token: ConfigurationFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
1376
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CartService }); }
1375
1377
  }
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: [{
1378
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CartService, decorators: [{
1379
1379
  type: Injectable
1380
- }], ctorParameters: function () { return [{ type: CartServicesFacade }, { type: ConfigurationFacade }]; } });
1380
+ }], ctorParameters: () => [{ type: CartServicesFacade }, { type: ConfigurationFacade }] });
1381
1381
 
1382
1382
  class NewCategoryStructureAdapter {
1383
1383
  constructor(categoryRepository) {
@@ -1409,15 +1409,15 @@ class NewCategoryStructureAdapter {
1409
1409
  category.brandCategory;
1410
1410
  return collectionCategory ? this.categoryRepository.get({ id: category.id }) : category;
1411
1411
  }
1412
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NewCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
1413
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NewCategoryStructureAdapter }); }
1412
1414
  }
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: [{
1415
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NewCategoryStructureAdapter, decorators: [{
1416
1416
  type: Injectable
1417
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1417
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
1418
1418
  type: Inject,
1419
1419
  args: ['CategoryRepository']
1420
- }] }]; } });
1420
+ }] }] });
1421
1421
 
1422
1422
  class OldCategoryStructureAdapter {
1423
1423
  constructor(categoryRepository) {
@@ -1429,15 +1429,15 @@ class OldCategoryStructureAdapter {
1429
1429
  : await this.categoryRepository.get({ id: category.id }).then((categoryFound) => categoryFound.products);
1430
1430
  return { id: { operator: Where.IN, value: productsIds } };
1431
1431
  }
1432
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OldCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
1433
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OldCategoryStructureAdapter }); }
1432
1434
  }
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: [{
1435
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OldCategoryStructureAdapter, decorators: [{
1436
1436
  type: Injectable
1437
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1437
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
1438
1438
  type: Inject,
1439
1439
  args: ['CategoryRepository']
1440
- }] }]; } });
1440
+ }] }] });
1441
1441
 
1442
1442
  class CatalogSearchContext {
1443
1443
  constructor(categoryStrategy, termStrategy, profileStrategy) {
@@ -1528,7 +1528,7 @@ class CategorySearchStrategy {
1528
1528
  });
1529
1529
  }
1530
1530
  async searchDefault(params) {
1531
- const { category, filters, limits, shop, mainGender, sort, optionsCache, fields } = params;
1531
+ const { category, filters, limits, sort, optionsCache, fields } = params;
1532
1532
  const productCatalog = this.repositoryService.getProductCatalog();
1533
1533
  const filterHelper = this.helpersService.getFilterHelper();
1534
1534
  const sortHelper = this.helpersService.getSortHelper();
@@ -1546,7 +1546,7 @@ class CategorySearchStrategy {
1546
1546
  distinct: ['brand'],
1547
1547
  },
1548
1548
  };
1549
- return productCatalog.productRepository.findCatalog(repoParams, mainGender || (shop === Shops.MENSMARKET ? 'male' : 'female'), optionsCache);
1549
+ return productCatalog.productRepository.findCatalog(repoParams, null, optionsCache);
1550
1550
  }
1551
1551
  async getProductIds(category, filters, optionsCache) {
1552
1552
  const productCatalog = this.repositoryService.getProductCatalog();
@@ -1600,12 +1600,12 @@ class CategorySearchStrategy {
1600
1600
  distinct: totalResult.distinct,
1601
1601
  };
1602
1602
  }
1603
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategorySearchStrategy, deps: [{ token: CatalogRepositoryService }, { token: CatalogHelpersService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1604
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategorySearchStrategy }); }
1603
1605
  }
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: [{
1606
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategorySearchStrategy, decorators: [{
1607
1607
  type: Injectable
1608
- }], ctorParameters: function () { return [{ type: CatalogRepositoryService }, { type: CatalogHelpersService }]; } });
1608
+ }], ctorParameters: () => [{ type: CatalogRepositoryService }, { type: CatalogHelpersService }] });
1609
1609
 
1610
1610
  class ProfileSearchStrategy {
1611
1611
  constructor(repositoryService, helpersService) {
@@ -1637,12 +1637,12 @@ class ProfileSearchStrategy {
1637
1637
  };
1638
1638
  return productCatalog.productRepository.findCatalog(repoParams, mainGender || (shop === Shops.MENSMARKET ? 'male' : 'female'), optionsCache);
1639
1639
  }
1640
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProfileSearchStrategy, deps: [{ token: CatalogRepositoryService }, { token: CatalogHelpersService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1641
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProfileSearchStrategy }); }
1640
1642
  }
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: [{
1643
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProfileSearchStrategy, decorators: [{
1644
1644
  type: Injectable
1645
- }], ctorParameters: function () { return [{ type: CatalogRepositoryService }, { type: CatalogHelpersService }]; } });
1645
+ }], ctorParameters: () => [{ type: CatalogRepositoryService }, { type: CatalogHelpersService }] });
1646
1646
 
1647
1647
  class TermSearchStrategy {
1648
1648
  constructor(repositoryService, helpersService) {
@@ -1690,7 +1690,7 @@ class TermSearchStrategy {
1690
1690
  maximum: ['price'],
1691
1691
  ...(isEmpty(filters?.brands) ? { distinct: ['brand'] } : {}),
1692
1692
  },
1693
- }, mainGender || (shop === Shops.MENSMARKET ? 'male' : 'female'));
1693
+ });
1694
1694
  return this.sortByTermRelevance({
1695
1695
  productIds,
1696
1696
  totalResult,
@@ -1716,22 +1716,19 @@ class TermSearchStrategy {
1716
1716
  maximum: ['price'],
1717
1717
  distinct: ['brand'],
1718
1718
  },
1719
- }, mainGender || (shop === Shops.MENSMARKET ? 'male' : 'female'));
1719
+ });
1720
1720
  }
1721
1721
  sortByTermRelevance(params) {
1722
1722
  const { productIds, totalResult, limits, filters, fieldsHelper } = params;
1723
- const defaultGender = filters?.gender?.at(0) || 'male';
1723
+ // const defaultGender = filters?.gender?.at(0) || 'male'
1724
1724
  const stockData = totalResult.data.filter((product) => product.stock.quantity > 0);
1725
1725
  const stockOut = totalResult.data.filter((product) => product.stock.quantity <= 0);
1726
- const productIdsStockGender = productIds.filter((product) => stockData.some((result) => result.id === product && (result.gender?.includes(defaultGender) || result.gender?.includes('unisex'))));
1727
- const productIdsStockNotGender = productIds.filter((product) => stockData.some((result) => result.id === product && !result.gender?.includes(defaultGender) && !result.gender?.includes('unisex')));
1728
- const productIdsStock = productIdsStockGender.concat(productIdsStockNotGender);
1726
+ const productIdsStock = productIds.filter((product) => stockData.some((result) => result.id === product));
1729
1727
  const productIdsStockOut = productIds.filter((product) => stockOut.some((result) => result.id === product));
1730
1728
  const limitedProductId = productIdsStock
1731
1729
  .concat(productIdsStockOut)
1732
1730
  .slice(limits.offset, limits.offset + limits.limit);
1733
- const orderedId = productIds.filter((product) => limitedProductId.includes(product));
1734
- return this.getDetailedProducts(orderedId, totalResult, fieldsHelper);
1731
+ return this.getDetailedProducts(limitedProductId, totalResult, fieldsHelper);
1735
1732
  }
1736
1733
  async getDetailedProducts(orderedId, totalResult, fieldsHelper) {
1737
1734
  const productCatalog = this.repositoryService.getProductCatalog();
@@ -1758,12 +1755,12 @@ class TermSearchStrategy {
1758
1755
  .search(term, 999, shop === Shops.GLAMSHOP ? 'female' : 'male')
1759
1756
  .then((products) => [...new Set(products.map((product) => product.id))]));
1760
1757
  }
1758
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: TermSearchStrategy, deps: [{ token: CatalogRepositoryService }, { token: CatalogHelpersService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1759
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: TermSearchStrategy }); }
1761
1760
  }
1762
- 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 });
1763
- TermSearchStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: TermSearchStrategy });
1764
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: TermSearchStrategy, decorators: [{
1761
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: TermSearchStrategy, decorators: [{
1765
1762
  type: Injectable
1766
- }], ctorParameters: function () { return [{ type: CatalogRepositoryService }, { type: CatalogHelpersService }]; } });
1763
+ }], ctorParameters: () => [{ type: CatalogRepositoryService }, { type: CatalogHelpersService }] });
1767
1764
 
1768
1765
  class CatalogStrategiesFacade {
1769
1766
  constructor(categoryStrategy, termStrategy, profileStrategy) {
@@ -1771,12 +1768,12 @@ class CatalogStrategiesFacade {
1771
1768
  this.termStrategy = termStrategy;
1772
1769
  this.profileStrategy = profileStrategy;
1773
1770
  }
1771
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogStrategiesFacade, deps: [{ token: CategorySearchStrategy }, { token: TermSearchStrategy }, { token: ProfileSearchStrategy }], target: i0.ɵɵFactoryTarget.Injectable }); }
1772
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogStrategiesFacade }); }
1774
1773
  }
1775
- 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 });
1776
- CatalogStrategiesFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogStrategiesFacade });
1777
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogStrategiesFacade, decorators: [{
1774
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogStrategiesFacade, decorators: [{
1778
1775
  type: Injectable
1779
- }], ctorParameters: function () { return [{ type: CategorySearchStrategy }, { type: TermSearchStrategy }, { type: ProfileSearchStrategy }]; } });
1776
+ }], ctorParameters: () => [{ type: CategorySearchStrategy }, { type: TermSearchStrategy }, { type: ProfileSearchStrategy }] });
1780
1777
 
1781
1778
  class CatalogServiceFacade {
1782
1779
  constructor(helpersService, strategiesFacade, shop) {
@@ -1789,33 +1786,33 @@ class CatalogServiceFacade {
1789
1786
  getCatalogService() {
1790
1787
  return this.catalogService;
1791
1788
  }
1789
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogServiceFacade, deps: [{ token: CatalogHelpersService }, { token: CatalogStrategiesFacade }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
1790
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogServiceFacade }); }
1792
1791
  }
1793
- 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 });
1794
- CatalogServiceFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogServiceFacade });
1795
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogServiceFacade, decorators: [{
1792
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogServiceFacade, decorators: [{
1796
1793
  type: Injectable
1797
- }], ctorParameters: function () { return [{ type: CatalogHelpersService }, { type: CatalogStrategiesFacade }, { type: i3.Shops, decorators: [{
1794
+ }], ctorParameters: () => [{ type: CatalogHelpersService }, { type: CatalogStrategiesFacade }, { type: i3.Shops, decorators: [{
1798
1795
  type: Inject,
1799
1796
  args: [DEFAULT_SHOP]
1800
- }] }]; } });
1797
+ }] }] });
1801
1798
 
1802
1799
  class CategoryRepositoryFacade {
1803
1800
  constructor(categoryRepository, categoryFilterRepository) {
1804
1801
  this.categoryRepository = categoryRepository;
1805
1802
  this.categoryFilterRepository = categoryFilterRepository;
1806
1803
  }
1804
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryRepositoryFacade, deps: [{ token: 'CategoryRepository' }, { token: 'CategoryFilterRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
1805
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryRepositoryFacade }); }
1807
1806
  }
1808
- 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 });
1809
- CategoryRepositoryFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryRepositoryFacade });
1810
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryRepositoryFacade, decorators: [{
1807
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryRepositoryFacade, decorators: [{
1811
1808
  type: Injectable
1812
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1809
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
1813
1810
  type: Inject,
1814
1811
  args: ['CategoryRepository']
1815
1812
  }] }, { type: undefined, decorators: [{
1816
1813
  type: Inject,
1817
1814
  args: ['CategoryFilterRepository']
1818
- }] }]; } });
1815
+ }] }] });
1819
1816
 
1820
1817
  class CategoryService {
1821
1818
  constructor(categoryFacade, productCatalog, shop) {
@@ -1828,7 +1825,7 @@ class CategoryService {
1828
1825
  .findCatalog({
1829
1826
  filters: await this.productCatalog.categoryStructureAdapter.buildProductFilterByCategory(category),
1830
1827
  fields: ['brand'],
1831
- }, options?.mainGender ? options?.mainGender : this.shop === Shops.MENSMARKET ? 'male' : 'female', optionsCache)
1828
+ }, null, optionsCache)
1832
1829
  .then(({ data }) => Object.keys(data.map((product) => product.brand).reduce((brands, brand) => ({ ...brands, [brand]: true }), {})));
1833
1830
  return this.categoryFacade.categoryRepository
1834
1831
  .find({ filters: { brandCategory: true, shop: options?.shop || this.shop }, orderBy: { name: 'asc' } }, optionsCache)
@@ -1839,33 +1836,33 @@ class CategoryService {
1839
1836
  .find({ filters: { categoryId: +category.id } }, optionsCache)
1840
1837
  .then(({ data }) => data.map((categoryFilter) => categoryFilter.filter));
1841
1838
  }
1839
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryService, deps: [{ token: CategoryRepositoryFacade }, { token: ProductCatalogFacade }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
1840
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryService }); }
1842
1841
  }
1843
- 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 });
1844
- CategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService });
1845
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService, decorators: [{
1842
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryService, decorators: [{
1846
1843
  type: Injectable
1847
- }], ctorParameters: function () { return [{ type: CategoryRepositoryFacade }, { type: ProductCatalogFacade }, { type: i3.Shops, decorators: [{
1844
+ }], ctorParameters: () => [{ type: CategoryRepositoryFacade }, { type: ProductCatalogFacade }, { type: i3.Shops, decorators: [{
1848
1845
  type: Inject,
1849
1846
  args: [DEFAULT_SHOP]
1850
- }] }]; } });
1847
+ }] }] });
1851
1848
 
1852
1849
  class ProductCatalogFacade {
1853
1850
  constructor(productRepository, categoryStructureAdapter) {
1854
1851
  this.productRepository = productRepository;
1855
1852
  this.categoryStructureAdapter = categoryStructureAdapter;
1856
1853
  }
1854
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProductCatalogFacade, deps: [{ token: 'ProductRepository' }, { token: CATEGORY_STRUCTURE }], target: i0.ɵɵFactoryTarget.Injectable }); }
1855
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProductCatalogFacade }); }
1857
1856
  }
1858
- 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 });
1859
- ProductCatalogFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductCatalogFacade });
1860
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductCatalogFacade, decorators: [{
1857
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProductCatalogFacade, decorators: [{
1861
1858
  type: Injectable
1862
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1859
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
1863
1860
  type: Inject,
1864
1861
  args: ['ProductRepository']
1865
1862
  }] }, { type: undefined, decorators: [{
1866
1863
  type: Inject,
1867
1864
  args: [CATEGORY_STRUCTURE]
1868
- }] }]; } });
1865
+ }] }] });
1869
1866
 
1870
1867
  class CategoryServiceFacade {
1871
1868
  constructor(categoryRepositoryFacade, productCatalogFacade, shop) {
@@ -1877,15 +1874,15 @@ class CategoryServiceFacade {
1877
1874
  getCategoryService() {
1878
1875
  return this.categoryService;
1879
1876
  }
1877
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryServiceFacade, deps: [{ token: CategoryRepositoryFacade }, { token: ProductCatalogFacade }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
1878
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryServiceFacade }); }
1880
1879
  }
1881
- 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 });
1882
- CategoryServiceFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryServiceFacade });
1883
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryServiceFacade, decorators: [{
1880
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryServiceFacade, decorators: [{
1884
1881
  type: Injectable
1885
- }], ctorParameters: function () { return [{ type: CategoryRepositoryFacade }, { type: ProductCatalogFacade }, { type: i3.Shops, decorators: [{
1882
+ }], ctorParameters: () => [{ type: CategoryRepositoryFacade }, { type: ProductCatalogFacade }, { type: i3.Shops, decorators: [{
1886
1883
  type: Inject,
1887
1884
  args: [DEFAULT_SHOP]
1888
- }] }]; } });
1885
+ }] }] });
1889
1886
 
1890
1887
  class BrandManagerHelper {
1891
1888
  constructor(productCatalog) {
@@ -1932,12 +1929,12 @@ class BrandManagerHelper {
1932
1929
  }, options.mainGender)
1933
1930
  .then((result) => result.distinct.brand);
1934
1931
  }
1932
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: BrandManagerHelper, deps: [{ token: ProductCatalogFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
1933
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: BrandManagerHelper }); }
1935
1934
  }
1936
- BrandManagerHelper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: BrandManagerHelper, deps: [{ token: ProductCatalogFacade }], target: i0.ɵɵFactoryTarget.Injectable });
1937
- BrandManagerHelper.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: BrandManagerHelper });
1938
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: BrandManagerHelper, decorators: [{
1935
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: BrandManagerHelper, decorators: [{
1939
1936
  type: Injectable
1940
- }], ctorParameters: function () { return [{ type: ProductCatalogFacade }]; } });
1937
+ }], ctorParameters: () => [{ type: ProductCatalogFacade }] });
1941
1938
 
1942
1939
  class CatalogFilterHelper {
1943
1940
  buildFilterQuery(filters) {
@@ -1973,10 +1970,10 @@ class CatalogFilterHelper {
1973
1970
  }
1974
1971
  return filterQuery;
1975
1972
  }
1973
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogFilterHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1974
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogFilterHelper }); }
1976
1975
  }
1977
- CatalogFilterHelper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogFilterHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1978
- CatalogFilterHelper.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogFilterHelper });
1979
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogFilterHelper, decorators: [{
1976
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogFilterHelper, decorators: [{
1980
1977
  type: Injectable
1981
1978
  }] });
1982
1979
 
@@ -2023,10 +2020,10 @@ class CatalogSortHelper {
2023
2020
  return {};
2024
2021
  }
2025
2022
  }
2023
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogSortHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2024
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogSortHelper }); }
2026
2025
  }
2027
- CatalogSortHelper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogSortHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2028
- CatalogSortHelper.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogSortHelper });
2029
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogSortHelper, decorators: [{
2026
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogSortHelper, decorators: [{
2030
2027
  type: Injectable
2031
2028
  }] });
2032
2029
 
@@ -2060,10 +2057,10 @@ class ProductFieldsHelper {
2060
2057
  'group',
2061
2058
  ];
2062
2059
  }
2060
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProductFieldsHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2061
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProductFieldsHelper }); }
2063
2062
  }
2064
- ProductFieldsHelper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductFieldsHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2065
- ProductFieldsHelper.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductFieldsHelper });
2066
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductFieldsHelper, decorators: [{
2063
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProductFieldsHelper, decorators: [{
2067
2064
  type: Injectable
2068
2065
  }] });
2069
2066
 
@@ -2082,12 +2079,12 @@ class CatalogOperationsFacade {
2082
2079
  getFieldsHelper() {
2083
2080
  return this.fieldsHelper;
2084
2081
  }
2082
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogOperationsFacade, deps: [{ token: CatalogFilterHelper }, { token: CatalogSortHelper }, { token: ProductFieldsHelper }], target: i0.ɵɵFactoryTarget.Injectable }); }
2083
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogOperationsFacade }); }
2085
2084
  }
2086
- 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 });
2087
- CatalogOperationsFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogOperationsFacade });
2088
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogOperationsFacade, decorators: [{
2085
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogOperationsFacade, decorators: [{
2089
2086
  type: Injectable
2090
- }], ctorParameters: function () { return [{ type: CatalogFilterHelper }, { type: CatalogSortHelper }, { type: ProductFieldsHelper }]; } });
2087
+ }], ctorParameters: () => [{ type: CatalogFilterHelper }, { type: CatalogSortHelper }, { type: ProductFieldsHelper }] });
2091
2088
 
2092
2089
  class ProductManagementFacade {
2093
2090
  constructor(brandManager, productServices) {
@@ -2100,15 +2097,15 @@ class ProductManagementFacade {
2100
2097
  getProductServices() {
2101
2098
  return this.productServices;
2102
2099
  }
2100
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProductManagementFacade, deps: [{ token: BrandManagerHelper }, { token: 'ProductServicesFacade' }], target: i0.ɵɵFactoryTarget.Injectable }); }
2101
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProductManagementFacade }); }
2103
2102
  }
2104
- 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 });
2105
- ProductManagementFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductManagementFacade });
2106
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductManagementFacade, decorators: [{
2103
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProductManagementFacade, decorators: [{
2107
2104
  type: Injectable
2108
- }], ctorParameters: function () { return [{ type: BrandManagerHelper }, { type: undefined, decorators: [{
2105
+ }], ctorParameters: () => [{ type: BrandManagerHelper }, { type: undefined, decorators: [{
2109
2106
  type: Inject,
2110
2107
  args: ['ProductServicesFacade']
2111
- }] }]; } });
2108
+ }] }] });
2112
2109
 
2113
2110
  class CatalogHelpersService {
2114
2111
  constructor(catalogOperations, productManagement) {
@@ -2130,12 +2127,12 @@ class CatalogHelpersService {
2130
2127
  getProductServices() {
2131
2128
  return this.productManagement.getProductServices();
2132
2129
  }
2130
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogHelpersService, deps: [{ token: CatalogOperationsFacade }, { token: ProductManagementFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
2131
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogHelpersService }); }
2133
2132
  }
2134
- 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 });
2135
- CatalogHelpersService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogHelpersService });
2136
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogHelpersService, decorators: [{
2133
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogHelpersService, decorators: [{
2137
2134
  type: Injectable
2138
- }], ctorParameters: function () { return [{ type: CatalogOperationsFacade }, { type: ProductManagementFacade }]; } });
2135
+ }], ctorParameters: () => [{ type: CatalogOperationsFacade }, { type: ProductManagementFacade }] });
2139
2136
 
2140
2137
  class CatalogRepositoryService {
2141
2138
  constructor(productCatalog, productServices) {
@@ -2148,15 +2145,15 @@ class CatalogRepositoryService {
2148
2145
  getProductServices() {
2149
2146
  return this.productServices;
2150
2147
  }
2148
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogRepositoryService, deps: [{ token: ProductCatalogFacade }, { token: 'ProductServicesFacade' }], target: i0.ɵɵFactoryTarget.Injectable }); }
2149
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogRepositoryService }); }
2151
2150
  }
2152
- 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 });
2153
- CatalogRepositoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogRepositoryService });
2154
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogRepositoryService, decorators: [{
2151
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogRepositoryService, decorators: [{
2155
2152
  type: Injectable
2156
- }], ctorParameters: function () { return [{ type: ProductCatalogFacade }, { type: undefined, decorators: [{
2153
+ }], ctorParameters: () => [{ type: ProductCatalogFacade }, { type: undefined, decorators: [{
2157
2154
  type: Inject,
2158
2155
  args: ['ProductServicesFacade']
2159
- }] }]; } });
2156
+ }] }] });
2160
2157
 
2161
2158
  class CatalogService {
2162
2159
  constructor(searchContext, helpersService, shop) {
@@ -2250,15 +2247,15 @@ class CatalogService {
2250
2247
  hasCategory(options) {
2251
2248
  return 'category' in options;
2252
2249
  }
2250
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogService, deps: [{ token: CatalogSearchContext }, { token: CatalogHelpersService }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
2251
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogService }); }
2253
2252
  }
2254
- 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 });
2255
- CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService });
2256
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
2253
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogService, decorators: [{
2257
2254
  type: Injectable
2258
- }], ctorParameters: function () { return [{ type: CatalogSearchContext }, { type: CatalogHelpersService }, { type: i3.Shops, decorators: [{
2255
+ }], ctorParameters: () => [{ type: CatalogSearchContext }, { type: CatalogHelpersService }, { type: i3.Shops, decorators: [{
2259
2256
  type: Inject,
2260
2257
  args: [DEFAULT_SHOP]
2261
- }] }]; } });
2258
+ }] }] });
2262
2259
 
2263
2260
  var ProductSorts;
2264
2261
  (function (ProductSorts) {
@@ -2279,10 +2276,11 @@ __decorate([
2279
2276
  ], CategoryWithTree.prototype, "children", void 0);
2280
2277
 
2281
2278
  class WishlistService {
2282
- constructor(wishlistRepository, shop, logRepository) {
2279
+ constructor(wishlistRepository, productRepository, logRepository, shop) {
2283
2280
  this.wishlistRepository = wishlistRepository;
2284
- this.shop = shop;
2281
+ this.productRepository = productRepository;
2285
2282
  this.logRepository = logRepository;
2283
+ this.shop = shop;
2286
2284
  }
2287
2285
  initializeServices(catalogServiceFacade, categoryServiceFacade) {
2288
2286
  this.catalogService = catalogServiceFacade.getCatalogService();
@@ -2431,12 +2429,7 @@ class WishlistService {
2431
2429
  .then((res) => res.data.at(0));
2432
2430
  }
2433
2431
  async findProductById(id) {
2434
- if (!this.catalogService) {
2435
- throw new Error('CatalogService not initialized. Call initializeServices first.');
2436
- }
2437
- const helpersService = this.catalogService['helpersService'];
2438
- const productServices = helpersService.getProductServices();
2439
- return productServices.productRepository
2432
+ return this.productRepository
2440
2433
  .find({
2441
2434
  fields: ['id', 'sku', 'EAN', 'name', 'brand'],
2442
2435
  filters: {
@@ -2512,21 +2505,24 @@ class WishlistService {
2512
2505
  productBrand: product.brand,
2513
2506
  };
2514
2507
  }
2508
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: WishlistService, deps: [{ token: 'WishlistRepository' }, { token: 'ProductRepository' }, { token: 'LogRepository' }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
2509
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: WishlistService }); }
2515
2510
  }
2516
- WishlistService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, deps: [{ token: 'WishlistRepository' }, { token: DEFAULT_SHOP }, { token: 'LogRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
2517
- WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
2518
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
2511
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: WishlistService, decorators: [{
2519
2512
  type: Injectable
2520
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2513
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
2521
2514
  type: Inject,
2522
2515
  args: ['WishlistRepository']
2523
- }] }, { type: i3.Shops, decorators: [{
2516
+ }] }, { type: undefined, decorators: [{
2524
2517
  type: Inject,
2525
- args: [DEFAULT_SHOP]
2518
+ args: ['ProductRepository']
2526
2519
  }] }, { type: undefined, decorators: [{
2527
2520
  type: Inject,
2528
2521
  args: ['LogRepository']
2529
- }] }]; } });
2522
+ }] }, { type: i3.Shops, decorators: [{
2523
+ type: Inject,
2524
+ args: [DEFAULT_SHOP]
2525
+ }] }] });
2530
2526
 
2531
2527
  class CouponRepositoriesFacade {
2532
2528
  constructor(couponRepository, orderRepository, categoryRepository) {
@@ -2534,12 +2530,12 @@ class CouponRepositoriesFacade {
2534
2530
  this.orderRepository = orderRepository;
2535
2531
  this.categoryRepository = categoryRepository;
2536
2532
  }
2533
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CouponRepositoriesFacade, deps: [{ token: 'CouponRepository' }, { token: 'OrderRepository' }, { token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
2534
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CouponRepositoriesFacade }); }
2537
2535
  }
2538
- 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 });
2539
- CouponRepositoriesFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponRepositoriesFacade });
2540
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponRepositoriesFacade, decorators: [{
2536
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CouponRepositoriesFacade, decorators: [{
2541
2537
  type: Injectable
2542
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2538
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
2543
2539
  type: Inject,
2544
2540
  args: ['CouponRepository']
2545
2541
  }] }, { type: undefined, decorators: [{
@@ -2548,7 +2544,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
2548
2544
  }] }, { type: undefined, decorators: [{
2549
2545
  type: Inject,
2550
2546
  args: ['CategoryRepository']
2551
- }] }]; } });
2547
+ }] }] });
2552
2548
 
2553
2549
  class CouponService {
2554
2550
  constructor(repositoriesFacade, configurationFacade) {
@@ -2779,15 +2775,15 @@ class CouponService {
2779
2775
  }
2780
2776
  return couponUseLimits;
2781
2777
  }
2778
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CouponService, deps: [{ token: CouponRepositoriesFacade }, { token: ConfigurationFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
2779
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CouponService, providedIn: 'root' }); }
2782
2780
  }
2783
- 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 });
2784
- CouponService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, providedIn: 'root' });
2785
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, decorators: [{
2781
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CouponService, decorators: [{
2786
2782
  type: Injectable,
2787
2783
  args: [{
2788
2784
  providedIn: 'root',
2789
2785
  }]
2790
- }], ctorParameters: function () { return [{ type: CouponRepositoriesFacade }, { type: ConfigurationFacade }]; } });
2786
+ }], ctorParameters: () => [{ type: CouponRepositoriesFacade }, { type: ConfigurationFacade }] });
2791
2787
 
2792
2788
  class CheckoutSubscriptionService {
2793
2789
  constructor(checkoutSubscriptionRepository, dataPersistence, couponService) {
@@ -2824,18 +2820,18 @@ class CheckoutSubscriptionService {
2824
2820
  await this.dataPersistence.set('checkoutSubscriptionId', checkout.id).toPromise();
2825
2821
  return checkout;
2826
2822
  }
2823
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutSubscriptionService, deps: [{ token: 'CheckoutSubscriptionRepository' }, { token: PERSISTENCE_PROVIDER }, { token: CouponService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2824
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutSubscriptionService }); }
2827
2825
  }
2828
- 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 });
2829
- CheckoutSubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService });
2830
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService, decorators: [{
2826
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutSubscriptionService, decorators: [{
2831
2827
  type: Injectable
2832
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2828
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
2833
2829
  type: Inject,
2834
2830
  args: ['CheckoutSubscriptionRepository']
2835
2831
  }] }, { type: undefined, decorators: [{
2836
2832
  type: Inject,
2837
2833
  args: [PERSISTENCE_PROVIDER]
2838
- }] }, { type: CouponService }]; } });
2834
+ }] }, { type: CouponService }] });
2839
2835
 
2840
2836
  class UtilHelper {
2841
2837
  static createSlug(name) {
@@ -2861,12 +2857,12 @@ class HomeShopRepositoriesFacade {
2861
2857
  this.homeRepository = homeRepository;
2862
2858
  this.productRepository = productRepository;
2863
2859
  }
2860
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: HomeShopRepositoriesFacade, deps: [{ token: 'CategoryRepository' }, { token: 'HomeRepository' }, { token: 'ProductRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
2861
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: HomeShopRepositoriesFacade }); }
2864
2862
  }
2865
- 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 });
2866
- HomeShopRepositoriesFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopRepositoriesFacade });
2867
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopRepositoriesFacade, decorators: [{
2863
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: HomeShopRepositoriesFacade, decorators: [{
2868
2864
  type: Injectable
2869
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2865
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
2870
2866
  type: Inject,
2871
2867
  args: ['CategoryRepository']
2872
2868
  }] }, { type: undefined, decorators: [{
@@ -2875,7 +2871,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
2875
2871
  }] }, { type: undefined, decorators: [{
2876
2872
  type: Inject,
2877
2873
  args: ['ProductRepository']
2878
- }] }]; } });
2874
+ }] }] });
2879
2875
 
2880
2876
  class HomeShopService {
2881
2877
  get homeId() {
@@ -2980,12 +2976,89 @@ class HomeShopService {
2980
2976
  get gender() {
2981
2977
  return this.homeId === 'mens_market' ? 'masculino' : undefined;
2982
2978
  }
2979
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: HomeShopService, deps: [{ token: HomeShopRepositoriesFacade }, { token: ConfigurationFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
2980
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: HomeShopService }); }
2981
+ }
2982
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: HomeShopService, decorators: [{
2983
+ type: Injectable
2984
+ }], ctorParameters: () => [{ type: HomeShopRepositoriesFacade }, { type: ConfigurationFacade }] });
2985
+
2986
+ class OrderProductReviewService {
2987
+ constructor(orderRepository, productReviewRepository) {
2988
+ this.orderRepository = orderRepository;
2989
+ this.productReviewRepository = productReviewRepository;
2990
+ }
2991
+ async getPendingReviewsByEmail(email) {
2992
+ const products = [];
2993
+ const { data: orders } = await this.orderRepository.find({
2994
+ filters: {
2995
+ user: {
2996
+ email: email,
2997
+ },
2998
+ status: OrderStatus.ENTREGUE,
2999
+ },
3000
+ orderBy: {
3001
+ createdAt: 'desc',
3002
+ },
3003
+ });
3004
+ if (orders.length) {
3005
+ for (const order of orders) {
3006
+ const lineItems = order.lineItems.filter((item) => !item.isGift);
3007
+ for (const item of lineItems) {
3008
+ const productReview = await this.productReviewRepository
3009
+ .find({
3010
+ filters: {
3011
+ orderId: order.id,
3012
+ productId: item.id,
3013
+ status: { operator: Where.ISNULL },
3014
+ },
3015
+ })
3016
+ .then((res) => res.data.at(0));
3017
+ products.push(this.buildProductReview(order, item, productReview));
3018
+ }
3019
+ }
3020
+ }
3021
+ return products;
3022
+ }
3023
+ buildProductReview(order, item, review) {
3024
+ return {
3025
+ id: item.id,
3026
+ orderNumber: order.orderNumber ?? order.id,
3027
+ isEdition: false,
3028
+ name: item.name,
3029
+ image: item.image,
3030
+ deliveryDate: order.deliveredAt || null,
3031
+ evaluationInAnalysis: review ? true : false,
3032
+ shopProductSlug: item.slug,
3033
+ };
3034
+ }
3035
+ async createReview(review) {
3036
+ return this.productReviewRepository.create(ProductReview.toInstance({
3037
+ productId: review.productId.toString(),
3038
+ shop: review.shop,
3039
+ rate: review.rate,
3040
+ author: review.author,
3041
+ email: review.email,
3042
+ location: review.location,
3043
+ review: review.comment,
3044
+ title: review.title,
3045
+ personId: review.personId,
3046
+ points: review.points,
3047
+ orderId: review.orderId,
3048
+ }));
3049
+ }
3050
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OrderProductReviewService, deps: [{ token: 'OrderRepository' }, { token: 'ProductReviewRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
3051
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OrderProductReviewService }); }
2983
3052
  }
2984
- 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 });
2985
- HomeShopService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService });
2986
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService, decorators: [{
3053
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OrderProductReviewService, decorators: [{
2987
3054
  type: Injectable
2988
- }], ctorParameters: function () { return [{ type: HomeShopRepositoriesFacade }, { type: ConfigurationFacade }]; } });
3055
+ }], ctorParameters: () => [{ type: i3.OrderFirestoreRepository, decorators: [{
3056
+ type: Inject,
3057
+ args: ['OrderRepository']
3058
+ }] }, { type: undefined, decorators: [{
3059
+ type: Inject,
3060
+ args: ['ProductReviewRepository']
3061
+ }] }] });
2989
3062
 
2990
3063
  class OrderService {
2991
3064
  constructor(angularFirestore, orderRepository) {
@@ -2999,15 +3072,15 @@ class OrderService {
2999
3072
  .subscribe((doc) => this.orderSubject.next(doc));
3000
3073
  return this.orderSubject;
3001
3074
  }
3075
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OrderService, deps: [{ token: i1$1.Firestore }, { token: 'OrderRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
3076
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OrderService }); }
3002
3077
  }
3003
- 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 });
3004
- OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService });
3005
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
3078
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OrderService, decorators: [{
3006
3079
  type: Injectable
3007
- }], ctorParameters: function () { return [{ type: i1$1.Firestore }, { type: i3.OrderFirestoreRepository, decorators: [{
3080
+ }], ctorParameters: () => [{ type: i1$1.Firestore }, { type: i3.OrderFirestoreRepository, decorators: [{
3008
3081
  type: Inject,
3009
3082
  args: ['OrderRepository']
3010
- }] }]; } });
3083
+ }] }] });
3011
3084
 
3012
3085
  class AngularConnectModule {
3013
3086
  static initializeApp(defaultShop, options, nameOrConfig) {
@@ -3049,116 +3122,117 @@ class AngularConnectModule {
3049
3122
  static createProviderIfExists(token, value) {
3050
3123
  return isNil(value) ? [] : [{ provide: token, useValue: value }];
3051
3124
  }
3052
- }
3053
- AngularConnectModulefac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3054
- 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,
3055
- AngularVertexSeachModule,
3056
- AngularFirebaseAuthModule,
3057
- AngularFirestoreModule,
3058
- AngularHasuraGraphQLModule] });
3059
- AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, providers: [
3060
- AuthService,
3061
- CartService,
3062
- CatalogService,
3063
- CategoryService,
3064
- CheckoutService,
3065
- CheckoutSubscriptionService,
3066
- CouponService,
3067
- HomeShopService,
3068
- OrderService,
3069
- WishlistService,
3070
- ConfigurationFacade,
3071
- CartServicesFacade,
3072
- CheckoutRepositoriesFacade,
3073
- CheckoutDependenciesFacade,
3074
- CategoryRepositoryFacade,
3075
- ProductCatalogFacade,
3076
- CatalogServiceFacade,
3077
- CategoryServiceFacade,
3078
- CatalogStrategiesFacade,
3079
- CatalogOperationsFacade,
3080
- ProductManagementFacade,
3081
- {
3082
- provide: 'ProductServicesFacade',
3083
- useFactory: (productStockNotificationRepository, categoryRepository, productSearch) => ({
3084
- productStockNotificationRepository,
3085
- categoryRepository,
3086
- productSearch,
3125
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3126
+ static { thismod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, imports: [i1$3.FirebaseAppModule, i2.AppCheckModule, i3$1.StorageModule, AngularElasticSeachModule,
3127
+ AngularVertexSeachModule,
3128
+ AngularFirebaseAuthModule,
3129
+ AngularFirestoreModule,
3130
+ AngularHasuraGraphQLModule] }); }
3131
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, providers: [
3132
+ AuthService,
3133
+ CartService,
3134
+ CatalogService,
3135
+ CategoryService,
3136
+ CheckoutService,
3137
+ CheckoutSubscriptionService,
3138
+ CouponService,
3139
+ HomeShopService,
3140
+ OrderService,
3141
+ WishlistService,
3142
+ ConfigurationFacade,
3143
+ CartServicesFacade,
3144
+ CheckoutRepositoriesFacade,
3145
+ CheckoutDependenciesFacade,
3146
+ CategoryRepositoryFacade,
3147
+ ProductCatalogFacade,
3148
+ CatalogServiceFacade,
3149
+ CategoryServiceFacade,
3150
+ CatalogStrategiesFacade,
3151
+ CatalogOperationsFacade,
3152
+ ProductManagementFacade,
3153
+ {
3154
+ provide: 'ProductServicesFacade',
3155
+ useFactory: (productStockNotificationRepository, categoryRepository, productSearch) => ({
3156
+ productStockNotificationRepository,
3157
+ categoryRepository,
3158
+ productSearch,
3159
+ }),
3160
+ deps: ['ProductStockNotificationRepository', 'CategoryRepository', 'ProductSearch'],
3161
+ },
3162
+ CatalogFilterHelper,
3163
+ CatalogSortHelper,
3164
+ ProductFieldsHelper,
3165
+ BrandManagerHelper,
3166
+ CatalogRepositoryService,
3167
+ CatalogHelpersService,
3168
+ CategorySearchStrategy,
3169
+ TermSearchStrategy,
3170
+ ProfileSearchStrategy,
3171
+ {
3172
+ provide: CatalogSearchContext,
3173
+ useFactory: (categoryStrategy, termStrategy, profileStrategy) => {
3174
+ return new CatalogSearchContext(categoryStrategy, termStrategy, profileStrategy);
3175
+ },
3176
+ deps: [CategorySearchStrategy, TermSearchStrategy, ProfileSearchStrategy],
3177
+ },
3178
+ {
3179
+ provide: UpdateUserImage,
3180
+ useFactory: (userRepository, fileUploader) => {
3181
+ return new UpdateUserImage(userRepository, fileUploader);
3182
+ },
3183
+ deps: ['UserRepository', 'FileUploaderService'],
3184
+ },
3185
+ {
3186
+ provide: 'FileUploaderService',
3187
+ useFactory: (storage, baseUrl) => {
3188
+ return new FirebaseFileUploaderService(storage, baseUrl);
3189
+ },
3190
+ deps: [Storage, STORAGE_BASE_URL],
3191
+ },
3192
+ {
3193
+ provide: 'ProductSearch',
3194
+ useExisting: ProductsVertexSearch,
3195
+ },
3196
+ CouponRepositoriesFacade,
3197
+ HomeShopRepositoriesFacade,
3198
+ OrderProductReviewService,
3199
+ ], imports: [provideFirebaseApp((injector) => {
3200
+ const appName = injector.get(FIREBASE_APP_NAME);
3201
+ try {
3202
+ const app = appName ? getApp(appName) : getApp();
3203
+ return app;
3204
+ }
3205
+ catch (error) {
3206
+ console.warn('Firebase app not found, initializing new app');
3207
+ if (error instanceof Error)
3208
+ console.error(error.message);
3209
+ return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
3210
+ }
3087
3211
  }),
3088
- deps: ['ProductStockNotificationRepository', 'CategoryRepository', 'ProductSearch'],
3089
- },
3090
- CatalogFilterHelper,
3091
- CatalogSortHelper,
3092
- ProductFieldsHelper,
3093
- BrandManagerHelper,
3094
- CatalogRepositoryService,
3095
- CatalogHelpersService,
3096
- CategorySearchStrategy,
3097
- TermSearchStrategy,
3098
- ProfileSearchStrategy,
3099
- {
3100
- provide: CatalogSearchContext,
3101
- useFactory: (categoryStrategy, termStrategy, profileStrategy) => {
3102
- return new CatalogSearchContext(categoryStrategy, termStrategy, profileStrategy);
3103
- },
3104
- deps: [CategorySearchStrategy, TermSearchStrategy, ProfileSearchStrategy],
3105
- },
3106
- {
3107
- provide: UpdateUserImage,
3108
- useFactory: (userRepository, fileUploader) => {
3109
- return new UpdateUserImage(userRepository, fileUploader);
3110
- },
3111
- deps: ['UserRepository', 'FileUploaderService'],
3112
- },
3113
- {
3114
- provide: 'FileUploaderService',
3115
- useFactory: (storage, baseUrl) => {
3116
- return new FirebaseFileUploaderService(storage, baseUrl);
3117
- },
3118
- deps: [Storage, STORAGE_BASE_URL],
3119
- },
3120
- {
3121
- provide: 'ProductSearch',
3122
- useExisting: ProductsVertexSearch,
3123
- },
3124
- CouponRepositoriesFacade,
3125
- HomeShopRepositoriesFacade,
3126
- ], imports: [provideFirebaseApp((injector) => {
3127
- const appName = injector.get(FIREBASE_APP_NAME);
3128
- try {
3129
- const app = appName ? getApp(appName) : getApp();
3130
- return app;
3131
- }
3132
- catch (error) {
3133
- console.warn('Firebase app not found, initializing new app');
3134
- if (error instanceof Error)
3135
- console.error(error.message);
3136
- return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
3137
- }
3138
- }),
3139
- provideAppCheck((injector) => {
3140
- const app = injector.get(FirebaseApp);
3141
- try {
3142
- const provider = injector.get(APP_CHECK_PROVIDER);
3143
- if (provider)
3144
- return initializeAppCheck(app, {
3145
- provider,
3146
- isTokenAutoRefreshEnabled: true,
3147
- });
3148
- }
3149
- catch (error) {
3150
- if (error instanceof Error)
3151
- console.error(error.message);
3152
- return;
3153
- }
3154
- }),
3155
- provideStorage((injector) => getStorage(injector.get(FirebaseApp))),
3156
- AngularElasticSeachModule,
3157
- AngularVertexSeachModule,
3158
- AngularFirebaseAuthModule,
3159
- AngularFirestoreModule,
3160
- AngularHasuraGraphQLModule] });
3161
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, decorators: [{
3212
+ provideAppCheck((injector) => {
3213
+ const app = injector.get(FirebaseApp);
3214
+ try {
3215
+ const provider = injector.get(APP_CHECK_PROVIDER);
3216
+ if (provider)
3217
+ return initializeAppCheck(app, {
3218
+ provider,
3219
+ isTokenAutoRefreshEnabled: true,
3220
+ });
3221
+ }
3222
+ catch (error) {
3223
+ if (error instanceof Error)
3224
+ console.error(error.message);
3225
+ return;
3226
+ }
3227
+ }),
3228
+ provideStorage((injector) => getStorage(injector.get(FirebaseApp))),
3229
+ AngularElasticSeachModule,
3230
+ AngularVertexSeachModule,
3231
+ AngularFirebaseAuthModule,
3232
+ AngularFirestoreModule,
3233
+ AngularHasuraGraphQLModule] }); }
3234
+ }
3235
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, decorators: [{
3162
3236
  type: NgModule,
3163
3237
  args: [{
3164
3238
  imports: [
@@ -3265,6 +3339,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
3265
3339
  },
3266
3340
  CouponRepositoriesFacade,
3267
3341
  HomeShopRepositoriesFacade,
3342
+ OrderProductReviewService,
3268
3343
  ],
3269
3344
  }]
3270
3345
  }] });
@@ -3273,5 +3348,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
3273
3348
  * Generated bundle index. Do not edit.
3274
3349
  */
3275
3350
 
3276
- export { AngularConnectModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule, AuthService, CartService, CatalogService, CategoryService, CategoryWithTree, CheckoutService, CheckoutSubscriptionService, CookieDataPersistence, CouponService, HomeShopService, NewCategoryStructureAdapter, OldCategoryStructureAdapter, OrderService, ProductSorts, UtilHelper, WishlistService };
3351
+ export { AngularConnectModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule, AuthService, CartService, CatalogService, CategoryService, CategoryWithTree, CheckoutService, CheckoutSubscriptionService, CookieDataPersistence, CouponService, HomeShopService, NewCategoryStructureAdapter, OldCategoryStructureAdapter, OrderProductReviewService, OrderService, ProductSorts, UtilHelper, WishlistService };
3277
3352
  //# sourceMappingURL=infrab4a-connect-angular.mjs.map