@infrab4a/connect-angular 5.0.0-alpha.14 → 5.0.0-alpha.15
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.
- package/esm2022/angular-connect.module.mjs +289 -0
- package/esm2022/angular-elastic-search.module.mjs +34 -0
- package/esm2022/angular-firebase-auth.module.mjs +141 -0
- package/esm2022/angular-firestore.module.mjs +541 -0
- package/esm2022/angular-hasura-graphql.module.mjs +333 -0
- package/esm2022/angular-vertex-search.module.mjs +34 -0
- package/{esm2020 → esm2022}/persistence/cookie-data-persistence.mjs +4 -4
- package/{esm2020 → esm2022}/services/auth.service.mjs +6 -6
- package/{esm2020 → esm2022}/services/cart/cart-services.facade.mjs +5 -5
- package/{esm2020 → esm2022}/services/cart.service.mjs +5 -5
- package/{esm2020 → esm2022}/services/catalog/adapters/new-category-structure.adapter.mjs +6 -6
- package/{esm2020 → esm2022}/services/catalog/adapters/old-category-structure.adapter.mjs +6 -6
- package/{esm2020 → esm2022}/services/catalog/catalog.service.mjs +6 -6
- package/{esm2020 → esm2022}/services/catalog/category.service.mjs +6 -6
- package/{esm2020 → esm2022}/services/catalog/facades/catalog-service.facade.mjs +6 -6
- package/{esm2020 → esm2022}/services/catalog/facades/catalog-strategies.facade.mjs +5 -5
- package/{esm2020 → esm2022}/services/catalog/facades/category-repository.facade.mjs +6 -6
- package/{esm2020 → esm2022}/services/catalog/facades/category-service.facade.mjs +6 -6
- package/{esm2020 → esm2022}/services/catalog/facades/product-catalog.facade.mjs +6 -6
- package/{esm2020 → esm2022}/services/catalog/helpers/brand-manager.helper.mjs +5 -5
- package/{esm2020 → esm2022}/services/catalog/helpers/catalog-filter.helper.mjs +4 -4
- package/{esm2020 → esm2022}/services/catalog/helpers/catalog-sort.helper.mjs +4 -4
- package/{esm2020 → esm2022}/services/catalog/helpers/product-fields.helper.mjs +4 -4
- package/{esm2020 → esm2022}/services/catalog/models/category-with-tree.model.mjs +1 -1
- package/{esm2020 → esm2022}/services/catalog/services/catalog-helpers.service.mjs +5 -5
- package/{esm2020 → esm2022}/services/catalog/services/catalog-operations.facade.mjs +5 -5
- package/{esm2020 → esm2022}/services/catalog/services/catalog-repository.service.mjs +6 -6
- package/{esm2020 → esm2022}/services/catalog/services/product-management.facade.mjs +6 -6
- package/{esm2020 → esm2022}/services/catalog/strategies/category-search.strategy.mjs +5 -5
- package/{esm2020 → esm2022}/services/catalog/strategies/profile-search.strategy.mjs +5 -5
- package/{esm2020 → esm2022}/services/catalog/strategies/term-search.strategy.mjs +5 -5
- package/{esm2020 → esm2022}/services/catalog/wishlist.service.mjs +6 -6
- package/{esm2020 → esm2022}/services/checkout/checkout-dependencies.facade.mjs +6 -6
- package/{esm2020 → esm2022}/services/checkout/checkout-repositories.facade.mjs +6 -6
- package/{esm2020 → esm2022}/services/checkout-subscription.service.mjs +6 -6
- package/{esm2020 → esm2022}/services/checkout.service.mjs +5 -5
- package/{esm2020 → esm2022}/services/coupon/coupon-repositories.facade.mjs +6 -6
- package/{esm2020 → esm2022}/services/coupon.service.mjs +5 -5
- package/{esm2020 → esm2022}/services/home-shop/home-shop-repositories.facade.mjs +6 -6
- package/{esm2020 → esm2022}/services/home-shop.service.mjs +5 -5
- package/{esm2020 → esm2022}/services/order.service.mjs +6 -6
- package/{esm2020 → esm2022}/services/shared/configuration.facade.mjs +6 -6
- package/{fesm2020 → fesm2022}/infrab4a-connect-angular.mjs +751 -751
- package/{fesm2020 → fesm2022}/infrab4a-connect-angular.mjs.map +1 -1
- package/package.json +10 -17
- package/esm2020/angular-connect.module.mjs +0 -289
- package/esm2020/angular-elastic-search.module.mjs +0 -34
- package/esm2020/angular-firebase-auth.module.mjs +0 -141
- package/esm2020/angular-firestore.module.mjs +0 -541
- package/esm2020/angular-hasura-graphql.module.mjs +0 -333
- package/esm2020/angular-vertex-search.module.mjs +0 -34
- package/fesm2015/infrab4a-connect-angular.mjs +0 -3372
- package/fesm2015/infrab4a-connect-angular.mjs.map +0 -1
- /package/{esm2020 → esm2022}/consts/backend-url.const.mjs +0 -0
- /package/{esm2020 → esm2022}/consts/category-structure.mjs +0 -0
- /package/{esm2020 → esm2022}/consts/default-shop.const.mjs +0 -0
- /package/{esm2020 → esm2022}/consts/es-config.const.mjs +0 -0
- /package/{esm2020 → esm2022}/consts/firebase-const.mjs +0 -0
- /package/{esm2020 → esm2022}/consts/hasura-options.const.mjs +0 -0
- /package/{esm2020 → esm2022}/consts/index.mjs +0 -0
- /package/{esm2020 → esm2022}/consts/persistence.const.mjs +0 -0
- /package/{esm2020 → esm2022}/consts/storage-base-url.const.mjs +0 -0
- /package/{esm2020 → esm2022}/consts/vertex-config.const.mjs +0 -0
- /package/{esm2020 → esm2022}/helpers/index.mjs +0 -0
- /package/{esm2020 → esm2022}/helpers/mobile-operation-system-checker.helper.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/infrab4a-connect-angular.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/catalog-strategies.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/category-facades.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/index.mjs +0 -0
- /package/{esm2020 → esm2022}/persistence/data-persistence.mjs +0 -0
- /package/{esm2020 → esm2022}/persistence/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/cart/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/adapters/category-structure.adapter.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/adapters/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/context/catalog-search.context.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/enums/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/enums/product-sorts.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/facades/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/helpers/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/models/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/services/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/strategies/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/strategies/types/strategy-params.type.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/types/fetch-products-options.type.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/types/fetch-products-params.type.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/types/fetch-products-response.type.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/types/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/types/method-params.type.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/types/product-sort.type.mjs +0 -0
- /package/{esm2020 → esm2022}/services/checkout/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/coupon/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/coupon/types/coupon-params.type.mjs +0 -0
- /package/{esm2020 → esm2022}/services/helpers/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/helpers/util.helper.mjs +0 -0
- /package/{esm2020 → esm2022}/services/home-shop/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/shared/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/types/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/types/required-checkout-data.type.mjs +0 -0
- /package/{esm2020 → esm2022}/services/types/required-checkout-subscription-data.type.mjs +0 -0
- /package/{esm2020 → esm2022}/types/firebase-app-config.type.mjs +0 -0
- /package/{esm2020 → esm2022}/types/index.mjs +0 -0
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
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 { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1$1.FirestoreModule] }); }
|
|
225
|
+
static { this.ɵinj = 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
|
-
|
|
236
|
-
request
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
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
|
-
|
|
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
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
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
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
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
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
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 { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularHasuraGraphQLModule }); }
|
|
752
|
+
static { this.ɵinj = 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
|
-
|
|
765
|
-
request
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
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
|
-
|
|
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
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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) {
|
|
@@ -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
|
-
|
|
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:
|
|
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
|
-
|
|
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:
|
|
1645
|
+
}], ctorParameters: () => [{ type: CatalogRepositoryService }, { type: CatalogHelpersService }] });
|
|
1646
1646
|
|
|
1647
1647
|
class TermSearchStrategy {
|
|
1648
1648
|
constructor(repositoryService, helpersService) {
|
|
@@ -1758,12 +1758,12 @@ class TermSearchStrategy {
|
|
|
1758
1758
|
.search(term, 999, shop === Shops.GLAMSHOP ? 'female' : 'male')
|
|
1759
1759
|
.then((products) => [...new Set(products.map((product) => product.id))]));
|
|
1760
1760
|
}
|
|
1761
|
+
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 }); }
|
|
1762
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: TermSearchStrategy }); }
|
|
1761
1763
|
}
|
|
1762
|
-
|
|
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: [{
|
|
1764
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: TermSearchStrategy, decorators: [{
|
|
1765
1765
|
type: Injectable
|
|
1766
|
-
}], ctorParameters:
|
|
1766
|
+
}], ctorParameters: () => [{ type: CatalogRepositoryService }, { type: CatalogHelpersService }] });
|
|
1767
1767
|
|
|
1768
1768
|
class CatalogStrategiesFacade {
|
|
1769
1769
|
constructor(categoryStrategy, termStrategy, profileStrategy) {
|
|
@@ -1771,12 +1771,12 @@ class CatalogStrategiesFacade {
|
|
|
1771
1771
|
this.termStrategy = termStrategy;
|
|
1772
1772
|
this.profileStrategy = profileStrategy;
|
|
1773
1773
|
}
|
|
1774
|
+
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 }); }
|
|
1775
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogStrategiesFacade }); }
|
|
1774
1776
|
}
|
|
1775
|
-
|
|
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: [{
|
|
1777
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogStrategiesFacade, decorators: [{
|
|
1778
1778
|
type: Injectable
|
|
1779
|
-
}], ctorParameters:
|
|
1779
|
+
}], ctorParameters: () => [{ type: CategorySearchStrategy }, { type: TermSearchStrategy }, { type: ProfileSearchStrategy }] });
|
|
1780
1780
|
|
|
1781
1781
|
class CatalogServiceFacade {
|
|
1782
1782
|
constructor(helpersService, strategiesFacade, shop) {
|
|
@@ -1789,33 +1789,33 @@ class CatalogServiceFacade {
|
|
|
1789
1789
|
getCatalogService() {
|
|
1790
1790
|
return this.catalogService;
|
|
1791
1791
|
}
|
|
1792
|
+
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 }); }
|
|
1793
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogServiceFacade }); }
|
|
1792
1794
|
}
|
|
1793
|
-
|
|
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: [{
|
|
1795
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogServiceFacade, decorators: [{
|
|
1796
1796
|
type: Injectable
|
|
1797
|
-
}], ctorParameters:
|
|
1797
|
+
}], ctorParameters: () => [{ type: CatalogHelpersService }, { type: CatalogStrategiesFacade }, { type: i3.Shops, decorators: [{
|
|
1798
1798
|
type: Inject,
|
|
1799
1799
|
args: [DEFAULT_SHOP]
|
|
1800
|
-
}] }]
|
|
1800
|
+
}] }] });
|
|
1801
1801
|
|
|
1802
1802
|
class CategoryRepositoryFacade {
|
|
1803
1803
|
constructor(categoryRepository, categoryFilterRepository) {
|
|
1804
1804
|
this.categoryRepository = categoryRepository;
|
|
1805
1805
|
this.categoryFilterRepository = categoryFilterRepository;
|
|
1806
1806
|
}
|
|
1807
|
+
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 }); }
|
|
1808
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryRepositoryFacade }); }
|
|
1807
1809
|
}
|
|
1808
|
-
|
|
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: [{
|
|
1810
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryRepositoryFacade, decorators: [{
|
|
1811
1811
|
type: Injectable
|
|
1812
|
-
}], ctorParameters:
|
|
1812
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1813
1813
|
type: Inject,
|
|
1814
1814
|
args: ['CategoryRepository']
|
|
1815
1815
|
}] }, { type: undefined, decorators: [{
|
|
1816
1816
|
type: Inject,
|
|
1817
1817
|
args: ['CategoryFilterRepository']
|
|
1818
|
-
}] }]
|
|
1818
|
+
}] }] });
|
|
1819
1819
|
|
|
1820
1820
|
class CategoryService {
|
|
1821
1821
|
constructor(categoryFacade, productCatalog, shop) {
|
|
@@ -1839,33 +1839,33 @@ class CategoryService {
|
|
|
1839
1839
|
.find({ filters: { categoryId: +category.id } }, optionsCache)
|
|
1840
1840
|
.then(({ data }) => data.map((categoryFilter) => categoryFilter.filter));
|
|
1841
1841
|
}
|
|
1842
|
+
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 }); }
|
|
1843
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryService }); }
|
|
1842
1844
|
}
|
|
1843
|
-
|
|
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: [{
|
|
1845
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryService, decorators: [{
|
|
1846
1846
|
type: Injectable
|
|
1847
|
-
}], ctorParameters:
|
|
1847
|
+
}], ctorParameters: () => [{ type: CategoryRepositoryFacade }, { type: ProductCatalogFacade }, { type: i3.Shops, decorators: [{
|
|
1848
1848
|
type: Inject,
|
|
1849
1849
|
args: [DEFAULT_SHOP]
|
|
1850
|
-
}] }]
|
|
1850
|
+
}] }] });
|
|
1851
1851
|
|
|
1852
1852
|
class ProductCatalogFacade {
|
|
1853
1853
|
constructor(productRepository, categoryStructureAdapter) {
|
|
1854
1854
|
this.productRepository = productRepository;
|
|
1855
1855
|
this.categoryStructureAdapter = categoryStructureAdapter;
|
|
1856
1856
|
}
|
|
1857
|
+
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 }); }
|
|
1858
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProductCatalogFacade }); }
|
|
1857
1859
|
}
|
|
1858
|
-
|
|
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: [{
|
|
1860
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProductCatalogFacade, decorators: [{
|
|
1861
1861
|
type: Injectable
|
|
1862
|
-
}], ctorParameters:
|
|
1862
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1863
1863
|
type: Inject,
|
|
1864
1864
|
args: ['ProductRepository']
|
|
1865
1865
|
}] }, { type: undefined, decorators: [{
|
|
1866
1866
|
type: Inject,
|
|
1867
1867
|
args: [CATEGORY_STRUCTURE]
|
|
1868
|
-
}] }]
|
|
1868
|
+
}] }] });
|
|
1869
1869
|
|
|
1870
1870
|
class CategoryServiceFacade {
|
|
1871
1871
|
constructor(categoryRepositoryFacade, productCatalogFacade, shop) {
|
|
@@ -1877,15 +1877,15 @@ class CategoryServiceFacade {
|
|
|
1877
1877
|
getCategoryService() {
|
|
1878
1878
|
return this.categoryService;
|
|
1879
1879
|
}
|
|
1880
|
+
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 }); }
|
|
1881
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryServiceFacade }); }
|
|
1880
1882
|
}
|
|
1881
|
-
|
|
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: [{
|
|
1883
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryServiceFacade, decorators: [{
|
|
1884
1884
|
type: Injectable
|
|
1885
|
-
}], ctorParameters:
|
|
1885
|
+
}], ctorParameters: () => [{ type: CategoryRepositoryFacade }, { type: ProductCatalogFacade }, { type: i3.Shops, decorators: [{
|
|
1886
1886
|
type: Inject,
|
|
1887
1887
|
args: [DEFAULT_SHOP]
|
|
1888
|
-
}] }]
|
|
1888
|
+
}] }] });
|
|
1889
1889
|
|
|
1890
1890
|
class BrandManagerHelper {
|
|
1891
1891
|
constructor(productCatalog) {
|
|
@@ -1932,12 +1932,12 @@ class BrandManagerHelper {
|
|
|
1932
1932
|
}, options.mainGender)
|
|
1933
1933
|
.then((result) => result.distinct.brand);
|
|
1934
1934
|
}
|
|
1935
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: BrandManagerHelper, deps: [{ token: ProductCatalogFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1936
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: BrandManagerHelper }); }
|
|
1935
1937
|
}
|
|
1936
|
-
|
|
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: [{
|
|
1938
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: BrandManagerHelper, decorators: [{
|
|
1939
1939
|
type: Injectable
|
|
1940
|
-
}], ctorParameters:
|
|
1940
|
+
}], ctorParameters: () => [{ type: ProductCatalogFacade }] });
|
|
1941
1941
|
|
|
1942
1942
|
class CatalogFilterHelper {
|
|
1943
1943
|
buildFilterQuery(filters) {
|
|
@@ -1973,10 +1973,10 @@ class CatalogFilterHelper {
|
|
|
1973
1973
|
}
|
|
1974
1974
|
return filterQuery;
|
|
1975
1975
|
}
|
|
1976
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogFilterHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1977
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogFilterHelper }); }
|
|
1976
1978
|
}
|
|
1977
|
-
|
|
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: [{
|
|
1979
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogFilterHelper, decorators: [{
|
|
1980
1980
|
type: Injectable
|
|
1981
1981
|
}] });
|
|
1982
1982
|
|
|
@@ -2023,10 +2023,10 @@ class CatalogSortHelper {
|
|
|
2023
2023
|
return {};
|
|
2024
2024
|
}
|
|
2025
2025
|
}
|
|
2026
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogSortHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2027
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogSortHelper }); }
|
|
2026
2028
|
}
|
|
2027
|
-
|
|
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: [{
|
|
2029
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogSortHelper, decorators: [{
|
|
2030
2030
|
type: Injectable
|
|
2031
2031
|
}] });
|
|
2032
2032
|
|
|
@@ -2060,10 +2060,10 @@ class ProductFieldsHelper {
|
|
|
2060
2060
|
'group',
|
|
2061
2061
|
];
|
|
2062
2062
|
}
|
|
2063
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProductFieldsHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2064
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProductFieldsHelper }); }
|
|
2063
2065
|
}
|
|
2064
|
-
|
|
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: [{
|
|
2066
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProductFieldsHelper, decorators: [{
|
|
2067
2067
|
type: Injectable
|
|
2068
2068
|
}] });
|
|
2069
2069
|
|
|
@@ -2082,12 +2082,12 @@ class CatalogOperationsFacade {
|
|
|
2082
2082
|
getFieldsHelper() {
|
|
2083
2083
|
return this.fieldsHelper;
|
|
2084
2084
|
}
|
|
2085
|
+
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 }); }
|
|
2086
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogOperationsFacade }); }
|
|
2085
2087
|
}
|
|
2086
|
-
|
|
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: [{
|
|
2088
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogOperationsFacade, decorators: [{
|
|
2089
2089
|
type: Injectable
|
|
2090
|
-
}], ctorParameters:
|
|
2090
|
+
}], ctorParameters: () => [{ type: CatalogFilterHelper }, { type: CatalogSortHelper }, { type: ProductFieldsHelper }] });
|
|
2091
2091
|
|
|
2092
2092
|
class ProductManagementFacade {
|
|
2093
2093
|
constructor(brandManager, productServices) {
|
|
@@ -2100,15 +2100,15 @@ class ProductManagementFacade {
|
|
|
2100
2100
|
getProductServices() {
|
|
2101
2101
|
return this.productServices;
|
|
2102
2102
|
}
|
|
2103
|
+
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 }); }
|
|
2104
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProductManagementFacade }); }
|
|
2103
2105
|
}
|
|
2104
|
-
|
|
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: [{
|
|
2106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ProductManagementFacade, decorators: [{
|
|
2107
2107
|
type: Injectable
|
|
2108
|
-
}], ctorParameters:
|
|
2108
|
+
}], ctorParameters: () => [{ type: BrandManagerHelper }, { type: undefined, decorators: [{
|
|
2109
2109
|
type: Inject,
|
|
2110
2110
|
args: ['ProductServicesFacade']
|
|
2111
|
-
}] }]
|
|
2111
|
+
}] }] });
|
|
2112
2112
|
|
|
2113
2113
|
class CatalogHelpersService {
|
|
2114
2114
|
constructor(catalogOperations, productManagement) {
|
|
@@ -2130,12 +2130,12 @@ class CatalogHelpersService {
|
|
|
2130
2130
|
getProductServices() {
|
|
2131
2131
|
return this.productManagement.getProductServices();
|
|
2132
2132
|
}
|
|
2133
|
+
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 }); }
|
|
2134
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogHelpersService }); }
|
|
2133
2135
|
}
|
|
2134
|
-
|
|
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: [{
|
|
2136
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogHelpersService, decorators: [{
|
|
2137
2137
|
type: Injectable
|
|
2138
|
-
}], ctorParameters:
|
|
2138
|
+
}], ctorParameters: () => [{ type: CatalogOperationsFacade }, { type: ProductManagementFacade }] });
|
|
2139
2139
|
|
|
2140
2140
|
class CatalogRepositoryService {
|
|
2141
2141
|
constructor(productCatalog, productServices) {
|
|
@@ -2148,15 +2148,15 @@ class CatalogRepositoryService {
|
|
|
2148
2148
|
getProductServices() {
|
|
2149
2149
|
return this.productServices;
|
|
2150
2150
|
}
|
|
2151
|
+
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 }); }
|
|
2152
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogRepositoryService }); }
|
|
2151
2153
|
}
|
|
2152
|
-
|
|
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: [{
|
|
2154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogRepositoryService, decorators: [{
|
|
2155
2155
|
type: Injectable
|
|
2156
|
-
}], ctorParameters:
|
|
2156
|
+
}], ctorParameters: () => [{ type: ProductCatalogFacade }, { type: undefined, decorators: [{
|
|
2157
2157
|
type: Inject,
|
|
2158
2158
|
args: ['ProductServicesFacade']
|
|
2159
|
-
}] }]
|
|
2159
|
+
}] }] });
|
|
2160
2160
|
|
|
2161
2161
|
class CatalogService {
|
|
2162
2162
|
constructor(searchContext, helpersService, shop) {
|
|
@@ -2250,15 +2250,15 @@ class CatalogService {
|
|
|
2250
2250
|
hasCategory(options) {
|
|
2251
2251
|
return 'category' in options;
|
|
2252
2252
|
}
|
|
2253
|
+
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 }); }
|
|
2254
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogService }); }
|
|
2253
2255
|
}
|
|
2254
|
-
|
|
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: [{
|
|
2256
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogService, decorators: [{
|
|
2257
2257
|
type: Injectable
|
|
2258
|
-
}], ctorParameters:
|
|
2258
|
+
}], ctorParameters: () => [{ type: CatalogSearchContext }, { type: CatalogHelpersService }, { type: i3.Shops, decorators: [{
|
|
2259
2259
|
type: Inject,
|
|
2260
2260
|
args: [DEFAULT_SHOP]
|
|
2261
|
-
}] }]
|
|
2261
|
+
}] }] });
|
|
2262
2262
|
|
|
2263
2263
|
var ProductSorts;
|
|
2264
2264
|
(function (ProductSorts) {
|
|
@@ -2512,12 +2512,12 @@ class WishlistService {
|
|
|
2512
2512
|
productBrand: product.brand,
|
|
2513
2513
|
};
|
|
2514
2514
|
}
|
|
2515
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: WishlistService, deps: [{ token: 'WishlistRepository' }, { token: DEFAULT_SHOP }, { token: 'LogRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2516
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: WishlistService }); }
|
|
2515
2517
|
}
|
|
2516
|
-
|
|
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: [{
|
|
2518
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: WishlistService, decorators: [{
|
|
2519
2519
|
type: Injectable
|
|
2520
|
-
}], ctorParameters:
|
|
2520
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2521
2521
|
type: Inject,
|
|
2522
2522
|
args: ['WishlistRepository']
|
|
2523
2523
|
}] }, { type: i3.Shops, decorators: [{
|
|
@@ -2526,7 +2526,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
2526
2526
|
}] }, { type: undefined, decorators: [{
|
|
2527
2527
|
type: Inject,
|
|
2528
2528
|
args: ['LogRepository']
|
|
2529
|
-
}] }]
|
|
2529
|
+
}] }] });
|
|
2530
2530
|
|
|
2531
2531
|
class CouponRepositoriesFacade {
|
|
2532
2532
|
constructor(couponRepository, orderRepository, categoryRepository) {
|
|
@@ -2534,12 +2534,12 @@ class CouponRepositoriesFacade {
|
|
|
2534
2534
|
this.orderRepository = orderRepository;
|
|
2535
2535
|
this.categoryRepository = categoryRepository;
|
|
2536
2536
|
}
|
|
2537
|
+
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 }); }
|
|
2538
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CouponRepositoriesFacade }); }
|
|
2537
2539
|
}
|
|
2538
|
-
|
|
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: [{
|
|
2540
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CouponRepositoriesFacade, decorators: [{
|
|
2541
2541
|
type: Injectable
|
|
2542
|
-
}], ctorParameters:
|
|
2542
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2543
2543
|
type: Inject,
|
|
2544
2544
|
args: ['CouponRepository']
|
|
2545
2545
|
}] }, { type: undefined, decorators: [{
|
|
@@ -2548,7 +2548,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
2548
2548
|
}] }, { type: undefined, decorators: [{
|
|
2549
2549
|
type: Inject,
|
|
2550
2550
|
args: ['CategoryRepository']
|
|
2551
|
-
}] }]
|
|
2551
|
+
}] }] });
|
|
2552
2552
|
|
|
2553
2553
|
class CouponService {
|
|
2554
2554
|
constructor(repositoriesFacade, configurationFacade) {
|
|
@@ -2779,15 +2779,15 @@ class CouponService {
|
|
|
2779
2779
|
}
|
|
2780
2780
|
return couponUseLimits;
|
|
2781
2781
|
}
|
|
2782
|
+
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 }); }
|
|
2783
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CouponService, providedIn: 'root' }); }
|
|
2782
2784
|
}
|
|
2783
|
-
|
|
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: [{
|
|
2785
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CouponService, decorators: [{
|
|
2786
2786
|
type: Injectable,
|
|
2787
2787
|
args: [{
|
|
2788
2788
|
providedIn: 'root',
|
|
2789
2789
|
}]
|
|
2790
|
-
}], ctorParameters:
|
|
2790
|
+
}], ctorParameters: () => [{ type: CouponRepositoriesFacade }, { type: ConfigurationFacade }] });
|
|
2791
2791
|
|
|
2792
2792
|
class CheckoutSubscriptionService {
|
|
2793
2793
|
constructor(checkoutSubscriptionRepository, dataPersistence, couponService) {
|
|
@@ -2824,18 +2824,18 @@ class CheckoutSubscriptionService {
|
|
|
2824
2824
|
await this.dataPersistence.set('checkoutSubscriptionId', checkout.id).toPromise();
|
|
2825
2825
|
return checkout;
|
|
2826
2826
|
}
|
|
2827
|
+
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 }); }
|
|
2828
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutSubscriptionService }); }
|
|
2827
2829
|
}
|
|
2828
|
-
|
|
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: [{
|
|
2830
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutSubscriptionService, decorators: [{
|
|
2831
2831
|
type: Injectable
|
|
2832
|
-
}], ctorParameters:
|
|
2832
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2833
2833
|
type: Inject,
|
|
2834
2834
|
args: ['CheckoutSubscriptionRepository']
|
|
2835
2835
|
}] }, { type: undefined, decorators: [{
|
|
2836
2836
|
type: Inject,
|
|
2837
2837
|
args: [PERSISTENCE_PROVIDER]
|
|
2838
|
-
}] }, { type: CouponService }]
|
|
2838
|
+
}] }, { type: CouponService }] });
|
|
2839
2839
|
|
|
2840
2840
|
class UtilHelper {
|
|
2841
2841
|
static createSlug(name) {
|
|
@@ -2861,12 +2861,12 @@ class HomeShopRepositoriesFacade {
|
|
|
2861
2861
|
this.homeRepository = homeRepository;
|
|
2862
2862
|
this.productRepository = productRepository;
|
|
2863
2863
|
}
|
|
2864
|
+
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 }); }
|
|
2865
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: HomeShopRepositoriesFacade }); }
|
|
2864
2866
|
}
|
|
2865
|
-
|
|
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: [{
|
|
2867
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: HomeShopRepositoriesFacade, decorators: [{
|
|
2868
2868
|
type: Injectable
|
|
2869
|
-
}], ctorParameters:
|
|
2869
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2870
2870
|
type: Inject,
|
|
2871
2871
|
args: ['CategoryRepository']
|
|
2872
2872
|
}] }, { type: undefined, decorators: [{
|
|
@@ -2875,7 +2875,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
2875
2875
|
}] }, { type: undefined, decorators: [{
|
|
2876
2876
|
type: Inject,
|
|
2877
2877
|
args: ['ProductRepository']
|
|
2878
|
-
}] }]
|
|
2878
|
+
}] }] });
|
|
2879
2879
|
|
|
2880
2880
|
class HomeShopService {
|
|
2881
2881
|
get homeId() {
|
|
@@ -2980,12 +2980,12 @@ class HomeShopService {
|
|
|
2980
2980
|
get gender() {
|
|
2981
2981
|
return this.homeId === 'mens_market' ? 'masculino' : undefined;
|
|
2982
2982
|
}
|
|
2983
|
+
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 }); }
|
|
2984
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: HomeShopService }); }
|
|
2983
2985
|
}
|
|
2984
|
-
|
|
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: [{
|
|
2986
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: HomeShopService, decorators: [{
|
|
2987
2987
|
type: Injectable
|
|
2988
|
-
}], ctorParameters:
|
|
2988
|
+
}], ctorParameters: () => [{ type: HomeShopRepositoriesFacade }, { type: ConfigurationFacade }] });
|
|
2989
2989
|
|
|
2990
2990
|
class OrderService {
|
|
2991
2991
|
constructor(angularFirestore, orderRepository) {
|
|
@@ -2999,15 +2999,15 @@ class OrderService {
|
|
|
2999
2999
|
.subscribe((doc) => this.orderSubject.next(doc));
|
|
3000
3000
|
return this.orderSubject;
|
|
3001
3001
|
}
|
|
3002
|
+
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 }); }
|
|
3003
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OrderService }); }
|
|
3002
3004
|
}
|
|
3003
|
-
|
|
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: [{
|
|
3005
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OrderService, decorators: [{
|
|
3006
3006
|
type: Injectable
|
|
3007
|
-
}], ctorParameters:
|
|
3007
|
+
}], ctorParameters: () => [{ type: i1$1.Firestore }, { type: i3.OrderFirestoreRepository, decorators: [{
|
|
3008
3008
|
type: Inject,
|
|
3009
3009
|
args: ['OrderRepository']
|
|
3010
|
-
}] }]
|
|
3010
|
+
}] }] });
|
|
3011
3011
|
|
|
3012
3012
|
class AngularConnectModule {
|
|
3013
3013
|
static initializeApp(defaultShop, options, nameOrConfig) {
|
|
@@ -3049,116 +3049,116 @@ class AngularConnectModule {
|
|
|
3049
3049
|
static createProviderIfExists(token, value) {
|
|
3050
3050
|
return isNil(value) ? [] : [{ provide: token, useValue: value }];
|
|
3051
3051
|
}
|
|
3052
|
-
}
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3052
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3053
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, imports: [i1$3.FirebaseAppModule, i2.AppCheckModule, i3$1.StorageModule, AngularElasticSeachModule,
|
|
3054
|
+
AngularVertexSeachModule,
|
|
3055
|
+
AngularFirebaseAuthModule,
|
|
3056
|
+
AngularFirestoreModule,
|
|
3057
|
+
AngularHasuraGraphQLModule] }); }
|
|
3058
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, providers: [
|
|
3059
|
+
AuthService,
|
|
3060
|
+
CartService,
|
|
3061
|
+
CatalogService,
|
|
3062
|
+
CategoryService,
|
|
3063
|
+
CheckoutService,
|
|
3064
|
+
CheckoutSubscriptionService,
|
|
3065
|
+
CouponService,
|
|
3066
|
+
HomeShopService,
|
|
3067
|
+
OrderService,
|
|
3068
|
+
WishlistService,
|
|
3069
|
+
ConfigurationFacade,
|
|
3070
|
+
CartServicesFacade,
|
|
3071
|
+
CheckoutRepositoriesFacade,
|
|
3072
|
+
CheckoutDependenciesFacade,
|
|
3073
|
+
CategoryRepositoryFacade,
|
|
3074
|
+
ProductCatalogFacade,
|
|
3075
|
+
CatalogServiceFacade,
|
|
3076
|
+
CategoryServiceFacade,
|
|
3077
|
+
CatalogStrategiesFacade,
|
|
3078
|
+
CatalogOperationsFacade,
|
|
3079
|
+
ProductManagementFacade,
|
|
3080
|
+
{
|
|
3081
|
+
provide: 'ProductServicesFacade',
|
|
3082
|
+
useFactory: (productStockNotificationRepository, categoryRepository, productSearch) => ({
|
|
3083
|
+
productStockNotificationRepository,
|
|
3084
|
+
categoryRepository,
|
|
3085
|
+
productSearch,
|
|
3086
|
+
}),
|
|
3087
|
+
deps: ['ProductStockNotificationRepository', 'CategoryRepository', 'ProductSearch'],
|
|
3088
|
+
},
|
|
3089
|
+
CatalogFilterHelper,
|
|
3090
|
+
CatalogSortHelper,
|
|
3091
|
+
ProductFieldsHelper,
|
|
3092
|
+
BrandManagerHelper,
|
|
3093
|
+
CatalogRepositoryService,
|
|
3094
|
+
CatalogHelpersService,
|
|
3095
|
+
CategorySearchStrategy,
|
|
3096
|
+
TermSearchStrategy,
|
|
3097
|
+
ProfileSearchStrategy,
|
|
3098
|
+
{
|
|
3099
|
+
provide: CatalogSearchContext,
|
|
3100
|
+
useFactory: (categoryStrategy, termStrategy, profileStrategy) => {
|
|
3101
|
+
return new CatalogSearchContext(categoryStrategy, termStrategy, profileStrategy);
|
|
3102
|
+
},
|
|
3103
|
+
deps: [CategorySearchStrategy, TermSearchStrategy, ProfileSearchStrategy],
|
|
3104
|
+
},
|
|
3105
|
+
{
|
|
3106
|
+
provide: UpdateUserImage,
|
|
3107
|
+
useFactory: (userRepository, fileUploader) => {
|
|
3108
|
+
return new UpdateUserImage(userRepository, fileUploader);
|
|
3109
|
+
},
|
|
3110
|
+
deps: ['UserRepository', 'FileUploaderService'],
|
|
3111
|
+
},
|
|
3112
|
+
{
|
|
3113
|
+
provide: 'FileUploaderService',
|
|
3114
|
+
useFactory: (storage, baseUrl) => {
|
|
3115
|
+
return new FirebaseFileUploaderService(storage, baseUrl);
|
|
3116
|
+
},
|
|
3117
|
+
deps: [Storage, STORAGE_BASE_URL],
|
|
3118
|
+
},
|
|
3119
|
+
{
|
|
3120
|
+
provide: 'ProductSearch',
|
|
3121
|
+
useExisting: ProductsVertexSearch,
|
|
3122
|
+
},
|
|
3123
|
+
CouponRepositoriesFacade,
|
|
3124
|
+
HomeShopRepositoriesFacade,
|
|
3125
|
+
], imports: [provideFirebaseApp((injector) => {
|
|
3126
|
+
const appName = injector.get(FIREBASE_APP_NAME);
|
|
3127
|
+
try {
|
|
3128
|
+
const app = appName ? getApp(appName) : getApp();
|
|
3129
|
+
return app;
|
|
3130
|
+
}
|
|
3131
|
+
catch (error) {
|
|
3132
|
+
console.warn('Firebase app not found, initializing new app');
|
|
3133
|
+
if (error instanceof Error)
|
|
3134
|
+
console.error(error.message);
|
|
3135
|
+
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
3136
|
+
}
|
|
3087
3137
|
}),
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
},
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
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: [{
|
|
3138
|
+
provideAppCheck((injector) => {
|
|
3139
|
+
const app = injector.get(FirebaseApp);
|
|
3140
|
+
try {
|
|
3141
|
+
const provider = injector.get(APP_CHECK_PROVIDER);
|
|
3142
|
+
if (provider)
|
|
3143
|
+
return initializeAppCheck(app, {
|
|
3144
|
+
provider,
|
|
3145
|
+
isTokenAutoRefreshEnabled: true,
|
|
3146
|
+
});
|
|
3147
|
+
}
|
|
3148
|
+
catch (error) {
|
|
3149
|
+
if (error instanceof Error)
|
|
3150
|
+
console.error(error.message);
|
|
3151
|
+
return;
|
|
3152
|
+
}
|
|
3153
|
+
}),
|
|
3154
|
+
provideStorage((injector) => getStorage(injector.get(FirebaseApp))),
|
|
3155
|
+
AngularElasticSeachModule,
|
|
3156
|
+
AngularVertexSeachModule,
|
|
3157
|
+
AngularFirebaseAuthModule,
|
|
3158
|
+
AngularFirestoreModule,
|
|
3159
|
+
AngularHasuraGraphQLModule] }); }
|
|
3160
|
+
}
|
|
3161
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, decorators: [{
|
|
3162
3162
|
type: NgModule,
|
|
3163
3163
|
args: [{
|
|
3164
3164
|
imports: [
|