@infrab4a/connect-angular 5.0.0-alpha.15 → 5.0.0-alpha.3
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/esm2020/angular-connect.module.mjs +289 -0
- package/esm2020/angular-elastic-search.module.mjs +34 -0
- package/esm2020/angular-firebase-auth.module.mjs +141 -0
- package/esm2020/angular-firestore.module.mjs +541 -0
- package/esm2020/angular-hasura-graphql.module.mjs +333 -0
- package/esm2020/angular-vertex-search.module.mjs +34 -0
- package/{esm2022 → esm2020}/persistence/cookie-data-persistence.mjs +4 -4
- package/{esm2022 → esm2020}/services/auth.service.mjs +6 -6
- package/{esm2022 → esm2020}/services/cart/cart-services.facade.mjs +5 -5
- package/{esm2022 → esm2020}/services/cart.service.mjs +5 -5
- package/{esm2022 → esm2020}/services/catalog/adapters/new-category-structure.adapter.mjs +6 -6
- package/{esm2022 → esm2020}/services/catalog/adapters/old-category-structure.adapter.mjs +6 -6
- package/{esm2022 → esm2020}/services/catalog/catalog.service.mjs +12 -6
- package/esm2020/services/catalog/category.service.mjs +45 -0
- package/{esm2022 → esm2020}/services/catalog/facades/catalog-service.facade.mjs +6 -6
- package/{esm2022 → esm2020}/services/catalog/facades/catalog-strategies.facade.mjs +5 -5
- package/{esm2022 → esm2020}/services/catalog/facades/category-repository.facade.mjs +6 -6
- package/{esm2022 → esm2020}/services/catalog/facades/category-service.facade.mjs +6 -6
- package/{esm2022 → esm2020}/services/catalog/facades/product-catalog.facade.mjs +6 -6
- package/{esm2022 → esm2020}/services/catalog/helpers/brand-manager.helper.mjs +5 -5
- package/{esm2022 → esm2020}/services/catalog/helpers/catalog-filter.helper.mjs +4 -4
- package/{esm2022 → esm2020}/services/catalog/helpers/catalog-sort.helper.mjs +4 -4
- package/{esm2022 → esm2020}/services/catalog/helpers/product-fields.helper.mjs +4 -4
- package/{esm2022 → esm2020}/services/catalog/models/category-with-tree.model.mjs +1 -1
- package/{esm2022 → esm2020}/services/catalog/services/catalog-helpers.service.mjs +5 -5
- package/{esm2022 → esm2020}/services/catalog/services/catalog-operations.facade.mjs +5 -5
- package/{esm2022 → esm2020}/services/catalog/services/catalog-repository.service.mjs +6 -6
- package/{esm2022 → esm2020}/services/catalog/services/product-management.facade.mjs +6 -6
- package/{esm2022 → esm2020}/services/catalog/strategies/category-search.strategy.mjs +5 -5
- package/{esm2022 → esm2020}/services/catalog/strategies/profile-search.strategy.mjs +5 -5
- package/{esm2022 → esm2020}/services/catalog/strategies/term-search.strategy.mjs +5 -5
- package/esm2020/services/catalog/wishlist.service.mjs +256 -0
- package/{esm2022 → esm2020}/services/checkout/checkout-dependencies.facade.mjs +6 -6
- package/{esm2022 → esm2020}/services/checkout/checkout-repositories.facade.mjs +6 -6
- package/{esm2022 → esm2020}/services/checkout-subscription.service.mjs +6 -6
- package/{esm2022 → esm2020}/services/checkout.service.mjs +5 -5
- package/{esm2022 → esm2020}/services/coupon/coupon-repositories.facade.mjs +6 -6
- package/{esm2022 → esm2020}/services/coupon.service.mjs +5 -5
- package/esm2020/services/helpers/util.helper.mjs +18 -0
- package/{esm2022 → esm2020}/services/home-shop/home-shop-repositories.facade.mjs +6 -6
- package/{esm2022 → esm2020}/services/home-shop.service.mjs +5 -5
- package/{esm2022 → esm2020}/services/order.service.mjs +6 -6
- package/{esm2022 → esm2020}/services/shared/configuration.facade.mjs +6 -6
- package/fesm2015/infrab4a-connect-angular.mjs +3385 -0
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/infrab4a-connect-angular.mjs +775 -762
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -0
- package/package.json +17 -10
- package/esm2022/angular-connect.module.mjs +0 -289
- package/esm2022/angular-elastic-search.module.mjs +0 -34
- package/esm2022/angular-firebase-auth.module.mjs +0 -141
- package/esm2022/angular-firestore.module.mjs +0 -541
- package/esm2022/angular-hasura-graphql.module.mjs +0 -333
- package/esm2022/angular-vertex-search.module.mjs +0 -34
- package/esm2022/services/catalog/category.service.mjs +0 -39
- package/esm2022/services/catalog/wishlist.service.mjs +0 -255
- package/esm2022/services/helpers/util.helper.mjs +0 -18
- package/fesm2022/infrab4a-connect-angular.mjs.map +0 -1
- /package/{esm2022 → esm2020}/consts/backend-url.const.mjs +0 -0
- /package/{esm2022 → esm2020}/consts/category-structure.mjs +0 -0
- /package/{esm2022 → esm2020}/consts/default-shop.const.mjs +0 -0
- /package/{esm2022 → esm2020}/consts/es-config.const.mjs +0 -0
- /package/{esm2022 → esm2020}/consts/firebase-const.mjs +0 -0
- /package/{esm2022 → esm2020}/consts/hasura-options.const.mjs +0 -0
- /package/{esm2022 → esm2020}/consts/index.mjs +0 -0
- /package/{esm2022 → esm2020}/consts/persistence.const.mjs +0 -0
- /package/{esm2022 → esm2020}/consts/storage-base-url.const.mjs +0 -0
- /package/{esm2022 → esm2020}/consts/vertex-config.const.mjs +0 -0
- /package/{esm2022 → esm2020}/helpers/index.mjs +0 -0
- /package/{esm2022 → esm2020}/helpers/mobile-operation-system-checker.helper.mjs +0 -0
- /package/{esm2022 → esm2020}/index.mjs +0 -0
- /package/{esm2022 → esm2020}/infrab4a-connect-angular.mjs +0 -0
- /package/{esm2022 → esm2020}/interfaces/catalog-strategies.interface.mjs +0 -0
- /package/{esm2022 → esm2020}/interfaces/category-facades.interface.mjs +0 -0
- /package/{esm2022 → esm2020}/interfaces/index.mjs +0 -0
- /package/{esm2022 → esm2020}/persistence/data-persistence.mjs +0 -0
- /package/{esm2022 → esm2020}/persistence/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/cart/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/adapters/category-structure.adapter.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/adapters/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/context/catalog-search.context.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/enums/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/enums/product-sorts.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/facades/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/helpers/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/models/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/services/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/strategies/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/strategies/types/strategy-params.type.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/types/fetch-products-options.type.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/types/fetch-products-params.type.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/types/fetch-products-response.type.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/types/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/types/method-params.type.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/types/product-sort.type.mjs +0 -0
- /package/{esm2022 → esm2020}/services/checkout/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/coupon/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/coupon/types/coupon-params.type.mjs +0 -0
- /package/{esm2022 → esm2020}/services/helpers/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/home-shop/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/shared/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/types/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/types/required-checkout-data.type.mjs +0 -0
- /package/{esm2022 → esm2020}/services/types/required-checkout-subscription-data.type.mjs +0 -0
- /package/{esm2022 → esm2020}/types/firebase-app-config.type.mjs +0 -0
- /package/{esm2022 → esm2020}/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
|
-
] }); }
|
|
41
32
|
}
|
|
42
|
-
i0.ɵɵ
|
|
33
|
+
AngularElasticSeachModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
34
|
+
AngularElasticSeachModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule });
|
|
35
|
+
AngularElasticSeachModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule, providers: [
|
|
36
|
+
{
|
|
37
|
+
provide: ProductsIndex,
|
|
38
|
+
useFactory: (configuration) => new ProductsIndex(new AxiosAdapter(configuration)),
|
|
39
|
+
deps: [ES_CONFIG],
|
|
40
|
+
},
|
|
41
|
+
] });
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule, decorators: [{
|
|
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
|
-
})] }); }
|
|
139
81
|
}
|
|
140
|
-
i0.ɵɵ
|
|
82
|
+
AngularFirebaseAuthModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
83
|
+
AngularFirebaseAuthModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, imports: [i1.AuthModule] });
|
|
84
|
+
AngularFirebaseAuthModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, providers: [
|
|
85
|
+
{
|
|
86
|
+
provide: 'Authentication',
|
|
87
|
+
useFactory: (authenticationService, userRepository) => {
|
|
88
|
+
return new Authentication(authenticationService, userRepository);
|
|
89
|
+
},
|
|
90
|
+
deps: ['AuthenticationService', 'UserRepository'],
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
provide: 'AuthenticationService',
|
|
94
|
+
useFactory: (angularFireAuth) => {
|
|
95
|
+
return new AuthenticationFirebaseAuthService(angularFireAuth);
|
|
96
|
+
},
|
|
97
|
+
deps: [Auth],
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
provide: 'Register',
|
|
101
|
+
useFactory: (registerService, userRepository) => {
|
|
102
|
+
return new Register(registerService, userRepository);
|
|
103
|
+
},
|
|
104
|
+
deps: ['RegisterService', 'UserRepository'],
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
provide: 'RegisterService',
|
|
108
|
+
useFactory: (angularFireAuth) => {
|
|
109
|
+
return new RegisterFirebaseAuthService(angularFireAuth);
|
|
110
|
+
},
|
|
111
|
+
deps: [Auth],
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
provide: 'SignOut',
|
|
115
|
+
useFactory: (authenticationService) => {
|
|
116
|
+
return new SignOut(authenticationService);
|
|
117
|
+
},
|
|
118
|
+
deps: ['AuthenticationService'],
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
provide: 'RecoveryPassword',
|
|
122
|
+
useFactory: (authenticationService) => {
|
|
123
|
+
return new RecoveryPassword(authenticationService);
|
|
124
|
+
},
|
|
125
|
+
deps: ['AuthenticationService'],
|
|
126
|
+
},
|
|
127
|
+
], imports: [provideAuth((injector) => {
|
|
128
|
+
const app = injector.get(FirebaseApp);
|
|
129
|
+
try {
|
|
130
|
+
return initializeAuth(app, {
|
|
131
|
+
persistence: [indexedDBLocalPersistence, browserLocalPersistence, browserSessionPersistence],
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
catch (error) {
|
|
135
|
+
if (error instanceof Error)
|
|
136
|
+
console.error('Error initializing auth', error.message);
|
|
137
|
+
return getAuth(app);
|
|
138
|
+
}
|
|
139
|
+
})] });
|
|
140
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
|
|
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
|
-
|
|
234
|
-
const interval = setInterval(() => { }, 100);
|
|
235
|
-
request.interval = interval;
|
|
223
|
+
}
|
|
224
|
+
AngularFirestoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
225
|
+
AngularFirestoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1$1.FirestoreModule] });
|
|
226
|
+
AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, providers: [
|
|
227
|
+
{
|
|
228
|
+
provide: 'FirestoreOptions',
|
|
229
|
+
useFactory: (firestore, platformId) => ({
|
|
230
|
+
firestore: new ConnectFirestoreService(firestore),
|
|
231
|
+
interceptors: {
|
|
232
|
+
request: (request) => {
|
|
233
|
+
if (isPlatformBrowser(platformId))
|
|
236
234
|
return request;
|
|
237
|
-
},
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
235
|
+
const interval = setInterval(() => { }, 100);
|
|
236
|
+
request.interval = interval;
|
|
237
|
+
return request;
|
|
238
|
+
},
|
|
239
|
+
response: (response, request) => {
|
|
240
|
+
if (isPlatformBrowser(platformId))
|
|
242
241
|
return response;
|
|
243
|
-
|
|
242
|
+
clearInterval(request.interval);
|
|
243
|
+
return response;
|
|
244
244
|
},
|
|
245
|
-
}),
|
|
246
|
-
deps: [Firestore, PLATFORM_ID],
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
provide: 'BeautyProfileRepository',
|
|
250
|
-
useFactory: (config, userRepository) => {
|
|
251
|
-
return new UserBeautyProfileFirestoreRepository(config, userRepository);
|
|
252
|
-
},
|
|
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
245
|
},
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
246
|
+
}),
|
|
247
|
+
deps: [Firestore, PLATFORM_ID],
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
provide: 'BeautyProfileRepository',
|
|
251
|
+
useFactory: (config, userRepository) => {
|
|
252
|
+
return new UserBeautyProfileFirestoreRepository(config, userRepository);
|
|
253
|
+
},
|
|
254
|
+
deps: ['FirestoreOptions', 'UserRepository'],
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
provide: 'Buy2WinRepository',
|
|
258
|
+
useFactory: (options) => {
|
|
259
|
+
return new Buy2WinFirestoreRepository(options);
|
|
260
|
+
},
|
|
261
|
+
deps: ['FirestoreOptions'],
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
provide: CategoryFirestoreRepository,
|
|
265
|
+
useFactory: (options) => {
|
|
266
|
+
return new CategoryFirestoreRepository(options);
|
|
267
|
+
},
|
|
268
|
+
deps: ['FirestoreOptions'],
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
provide: 'CheckoutRepository',
|
|
272
|
+
useFactory: (options) => {
|
|
273
|
+
return new CheckoutFirestoreRepository(options);
|
|
274
|
+
},
|
|
275
|
+
deps: ['FirestoreOptions'],
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
provide: 'CheckoutSubscriptionRepository',
|
|
279
|
+
useFactory: (options) => {
|
|
280
|
+
return new CheckoutSubscriptionFirestoreRepository(options);
|
|
281
|
+
},
|
|
282
|
+
deps: ['FirestoreOptions'],
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
provide: 'CouponRepository',
|
|
286
|
+
useFactory: (options) => {
|
|
287
|
+
return new CouponFirestoreRepository(options);
|
|
288
|
+
},
|
|
289
|
+
deps: ['FirestoreOptions'],
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
provide: 'CampaignHashtagRepository',
|
|
293
|
+
useFactory: (options) => {
|
|
294
|
+
return new CampaignHashtagFirestoreRepository(options);
|
|
295
|
+
},
|
|
296
|
+
deps: ['FirestoreOptions'],
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
provide: 'CampaignDashboardRepository',
|
|
300
|
+
useFactory: (options) => {
|
|
301
|
+
return new CampaignDashboardFirestoreRepository(options);
|
|
302
|
+
},
|
|
303
|
+
deps: ['FirestoreOptions'],
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
provide: 'EditionRepository',
|
|
307
|
+
useFactory: (options, subscriptionRepository) => {
|
|
308
|
+
return new SubscriptionEditionFirestoreRepository(options, subscriptionRepository);
|
|
309
|
+
},
|
|
310
|
+
deps: ['FirestoreOptions', 'SubscriptionRepository'],
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
provide: 'GroupRepository',
|
|
314
|
+
useFactory: (options) => {
|
|
315
|
+
return new GroupFirestoreRepository(options);
|
|
316
|
+
},
|
|
317
|
+
deps: ['FirestoreOptions'],
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
provide: 'HomeRepository',
|
|
321
|
+
useFactory: (options) => {
|
|
322
|
+
return new HomeFirestoreRepository(options);
|
|
323
|
+
},
|
|
324
|
+
deps: ['FirestoreOptions'],
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
provide: 'LeadRepository',
|
|
328
|
+
useFactory: (options) => {
|
|
329
|
+
return new LeadFirestoreRepository(options);
|
|
330
|
+
},
|
|
331
|
+
deps: ['FirestoreOptions'],
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
provide: 'LegacyOrderRepository',
|
|
335
|
+
useFactory: (options) => {
|
|
336
|
+
return new LegacyOrderFirestoreRepository(options);
|
|
337
|
+
},
|
|
338
|
+
deps: ['FirestoreOptions'],
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
provide: 'ShopMenuRepository',
|
|
342
|
+
useFactory: (options) => {
|
|
343
|
+
return new ShopMenuFirestoreRepository(options);
|
|
344
|
+
},
|
|
345
|
+
deps: ['FirestoreOptions'],
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
provide: 'OrderRepository',
|
|
349
|
+
useFactory: (options) => {
|
|
350
|
+
return new OrderFirestoreRepository(options);
|
|
351
|
+
},
|
|
352
|
+
deps: ['FirestoreOptions'],
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
provide: 'PaymentRepository',
|
|
356
|
+
useFactory: (options) => {
|
|
357
|
+
return new PaymentFirestoreRepository(options);
|
|
358
|
+
},
|
|
359
|
+
deps: ['FirestoreOptions'],
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
provide: ProductFirestoreRepository,
|
|
363
|
+
useFactory: (options) => {
|
|
364
|
+
return new ProductFirestoreRepository(options);
|
|
365
|
+
},
|
|
366
|
+
deps: ['FirestoreOptions'],
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
provide: 'ShopSettingsRepository',
|
|
370
|
+
useFactory: (options) => {
|
|
371
|
+
return new ShopSettingsFirestoreRepository(options);
|
|
372
|
+
},
|
|
373
|
+
deps: ['FirestoreOptions'],
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
provide: 'SubscriptionPaymentRepository',
|
|
377
|
+
useFactory: (options, subscriptionRepository) => {
|
|
378
|
+
return new SubscriptionPaymentFirestoreRepository(options, subscriptionRepository);
|
|
379
|
+
},
|
|
380
|
+
deps: ['FirestoreOptions', 'SubscriptionRepository'],
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
provide: 'SubscriptionPlanRepository',
|
|
384
|
+
useFactory: (options) => {
|
|
385
|
+
return new SubscriptionPlanFirestoreRepository(options);
|
|
386
|
+
},
|
|
387
|
+
deps: ['FirestoreOptions'],
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
provide: 'SubscriptionProductRepository',
|
|
391
|
+
useFactory: (options) => {
|
|
392
|
+
return new SubscriptionProductFirestoreRepository(options);
|
|
393
|
+
},
|
|
394
|
+
deps: ['FirestoreOptions'],
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
provide: 'SubscriptionRepository',
|
|
398
|
+
useFactory: (options) => {
|
|
399
|
+
return new SubscriptionFirestoreRepository(options);
|
|
400
|
+
},
|
|
401
|
+
deps: ['FirestoreOptions'],
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
provide: 'UserRepository',
|
|
405
|
+
useFactory: (options) => {
|
|
406
|
+
return new UserFirestoreRepository(options);
|
|
407
|
+
},
|
|
408
|
+
deps: ['FirestoreOptions'],
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
provide: 'UserAddressRepository',
|
|
412
|
+
useFactory: (options, userRepository) => {
|
|
413
|
+
return new UserAddressFirestoreRepository(options, userRepository);
|
|
414
|
+
},
|
|
415
|
+
deps: ['FirestoreOptions', 'UserRepository'],
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
provide: 'UserPaymentMethodRepository',
|
|
419
|
+
useFactory: (options, userRepository) => {
|
|
420
|
+
return new UserPaymentMethodFirestoreRepository(options, userRepository);
|
|
421
|
+
},
|
|
422
|
+
deps: ['FirestoreOptions', 'UserRepository'],
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
provide: 'SubscriptionMaterializationRepository',
|
|
426
|
+
useFactory: (options) => {
|
|
427
|
+
return new SubscriptionMaterializationFirestoreRepository(options);
|
|
428
|
+
},
|
|
429
|
+
deps: ['FirestoreOptions'],
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
provide: 'SubscriptionSummaryRepository',
|
|
433
|
+
useFactory: (options) => {
|
|
434
|
+
return new SubscriptionSummaryFirestoreRepository(options);
|
|
435
|
+
},
|
|
436
|
+
deps: ['FirestoreOptions'],
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
provide: ProductVariantFirestoreRepository,
|
|
440
|
+
useFactory: (options, productRepository) => {
|
|
441
|
+
return new ProductVariantFirestoreRepository(options, productRepository);
|
|
442
|
+
},
|
|
443
|
+
deps: ['FirestoreOptions', ProductFirestoreRepository],
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
provide: 'OrderBlockedRepository',
|
|
447
|
+
useFactory: (options) => {
|
|
448
|
+
return new OrderBlockedFirestoreRepository(options);
|
|
449
|
+
},
|
|
450
|
+
deps: ['FirestoreOptions'],
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
provide: 'LogRepository',
|
|
454
|
+
useFactory: (options) => {
|
|
455
|
+
return new LogFirestoreRepository(options);
|
|
456
|
+
},
|
|
457
|
+
deps: ['FirestoreOptions'],
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
provide: 'SequenceRepository',
|
|
461
|
+
useFactory: (options) => {
|
|
462
|
+
return new SequenceFirestoreRepository(options);
|
|
463
|
+
},
|
|
464
|
+
deps: ['FirestoreOptions'],
|
|
465
|
+
},
|
|
466
|
+
], imports: [AngularElasticSeachModule,
|
|
467
|
+
provideFirestore((injector) => {
|
|
468
|
+
const platformId = injector.get(PLATFORM_ID);
|
|
469
|
+
if (isPlatformServer(platformId) || !MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
470
|
+
return initializeFirestore(injector.get(FirebaseApp), {
|
|
474
471
|
ignoreUndefinedProperties: true,
|
|
475
|
-
localCache: memoryLocalCache(),
|
|
476
472
|
});
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
473
|
+
const firestore = initializeFirestore(injector.get(FirebaseApp), {
|
|
474
|
+
experimentalForceLongPolling: true,
|
|
475
|
+
ignoreUndefinedProperties: true,
|
|
476
|
+
localCache: memoryLocalCache(),
|
|
477
|
+
});
|
|
478
|
+
return firestore;
|
|
479
|
+
})] });
|
|
480
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, decorators: [{
|
|
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
|
-
|
|
763
|
-
const interval = setInterval(() => { }, 100);
|
|
764
|
-
request.interval = interval;
|
|
750
|
+
}
|
|
751
|
+
AngularHasuraGraphQLModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
752
|
+
AngularHasuraGraphQLModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule });
|
|
753
|
+
AngularHasuraGraphQLModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, providers: [
|
|
754
|
+
{
|
|
755
|
+
provide: 'HasuraConfig',
|
|
756
|
+
useFactory: (options, platformId) => ({
|
|
757
|
+
endpoint: options.endpoint,
|
|
758
|
+
authOptions: options.credentials,
|
|
759
|
+
cache: options.cache,
|
|
760
|
+
interceptors: {
|
|
761
|
+
request: (request) => {
|
|
762
|
+
if (isPlatformBrowser(platformId))
|
|
765
763
|
return request;
|
|
766
|
-
},
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
764
|
+
const interval = setInterval(() => { }, 100);
|
|
765
|
+
request.interval = interval;
|
|
766
|
+
return request;
|
|
767
|
+
},
|
|
768
|
+
response: (response, request) => {
|
|
769
|
+
if (isPlatformBrowser(platformId))
|
|
771
770
|
return response;
|
|
772
|
-
|
|
771
|
+
clearInterval(request.interval);
|
|
772
|
+
return response;
|
|
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);
|
|
785
|
-
},
|
|
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
774
|
},
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
775
|
+
}),
|
|
776
|
+
deps: [HASURA_OPTIONS, PLATFORM_ID],
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
provide: 'CategoryRepository',
|
|
780
|
+
useExisting: CategoryHasuraGraphQLRepository,
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
provide: CategoryHasuraGraphQLRepository,
|
|
784
|
+
useFactory: (options, productRepository, categoryFilterRepository) => {
|
|
785
|
+
return new CategoryHasuraGraphQLRepository(options, productRepository, categoryFilterRepository);
|
|
786
|
+
},
|
|
787
|
+
deps: ['HasuraConfig', ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
provide: 'ProductRepository',
|
|
791
|
+
useExisting: ProductHasuraGraphQLRepository,
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
provide: ProductHasuraGraphQLRepository,
|
|
795
|
+
useFactory: (hasuraConfig) => {
|
|
796
|
+
return new ProductHasuraGraphQLRepository(hasuraConfig);
|
|
797
|
+
},
|
|
798
|
+
deps: ['HasuraConfig'],
|
|
799
|
+
},
|
|
800
|
+
{
|
|
801
|
+
provide: 'ProductReviewRepository',
|
|
802
|
+
useExisting: ProductReviewHasuraGraphQLRepository,
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
provide: ProductReviewHasuraGraphQLRepository,
|
|
806
|
+
useFactory: (hasuraConfig) => {
|
|
807
|
+
return new ProductReviewHasuraGraphQLRepository(hasuraConfig);
|
|
808
|
+
},
|
|
809
|
+
deps: ['HasuraConfig'],
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
provide: 'VariantRepository',
|
|
813
|
+
useExisting: VariantHasuraGraphQLRepository,
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
provide: VariantHasuraGraphQLRepository,
|
|
817
|
+
useFactory: (hasuraConfig) => {
|
|
818
|
+
return new VariantHasuraGraphQLRepository(hasuraConfig);
|
|
819
|
+
},
|
|
820
|
+
deps: ['HasuraConfig'],
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
provide: 'ProductStockNotificationRepository',
|
|
824
|
+
useExisting: ProductStockNotificationHasuraGraphQLRepository,
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
provide: ProductStockNotificationHasuraGraphQLRepository,
|
|
828
|
+
useFactory: (hasuraConfig) => {
|
|
829
|
+
return new ProductStockNotificationHasuraGraphQLRepository(hasuraConfig);
|
|
830
|
+
},
|
|
831
|
+
deps: ['HasuraConfig'],
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
provide: 'CategoryFilterRepository',
|
|
835
|
+
useExisting: CategoryFilterHasuraGraphQLRepository,
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
provide: CategoryFilterHasuraGraphQLRepository,
|
|
839
|
+
useFactory: (options) => {
|
|
840
|
+
return new CategoryFilterHasuraGraphQLRepository(options);
|
|
841
|
+
},
|
|
842
|
+
deps: ['HasuraConfig'],
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
provide: 'FilterOptionRepository',
|
|
846
|
+
useExisting: FilterOptionHasuraGraphQLRepository,
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
provide: FilterOptionHasuraGraphQLRepository,
|
|
850
|
+
useFactory: (options) => {
|
|
851
|
+
return new FilterOptionHasuraGraphQLRepository(options);
|
|
852
|
+
},
|
|
853
|
+
deps: ['HasuraConfig'],
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
provide: 'FilterRepository',
|
|
857
|
+
useExisting: FilterHasuraGraphQLRepository,
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
provide: FilterHasuraGraphQLRepository,
|
|
861
|
+
useFactory: (options, filterOptionRepository, categoryFilterRepository) => {
|
|
862
|
+
return new FilterHasuraGraphQLRepository(options, filterOptionRepository, categoryFilterRepository);
|
|
863
|
+
},
|
|
864
|
+
deps: ['HasuraConfig', FilterOptionHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
provide: CategoryCollectionChildrenHasuraGraphQLRepository,
|
|
868
|
+
useFactory: (options) => new CategoryCollectionChildrenHasuraGraphQLRepository(options),
|
|
869
|
+
deps: ['HasuraConfig'],
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
provide: 'CategoryCollectionChildrenRepository',
|
|
873
|
+
useExisting: CategoryCollectionChildrenHasuraGraphQLRepository,
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
provide: CategoryProductHasuraGraphQLRepository,
|
|
877
|
+
useFactory: (options) => {
|
|
878
|
+
return new CategoryProductHasuraGraphQLRepository(options);
|
|
879
|
+
},
|
|
880
|
+
deps: ['HasuraConfig'],
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
provide: 'CategoryProductRepository',
|
|
884
|
+
useExisting: CategoryProductHasuraGraphQLRepository,
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
provide: WishlistHasuraGraphQLRepository,
|
|
888
|
+
useFactory: (options, categoryProductRepository) => {
|
|
889
|
+
return new WishlistHasuraGraphQLRepository(options, categoryProductRepository);
|
|
890
|
+
},
|
|
891
|
+
deps: ['HasuraConfig', CategoryProductHasuraGraphQLRepository],
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
provide: 'WishlistRepository',
|
|
895
|
+
useExisting: WishlistHasuraGraphQLRepository,
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
provide: ProductErrorsHasuraGraphQLRepository,
|
|
899
|
+
useFactory: (options, productRepository) => {
|
|
900
|
+
return new ProductErrorsHasuraGraphQLRepository(options, productRepository);
|
|
901
|
+
},
|
|
902
|
+
deps: ['HasuraConfig', ProductHasuraGraphQLRepository],
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
provide: 'ProductErrorsRepository',
|
|
906
|
+
useExisting: ProductErrorsHasuraGraphQLRepository,
|
|
907
|
+
},
|
|
908
|
+
] });
|
|
909
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, decorators: [{
|
|
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
|
-
] }); }
|
|
1087
1078
|
}
|
|
1088
|
-
i0.ɵɵ
|
|
1079
|
+
AngularVertexSeachModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularVertexSeachModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1080
|
+
AngularVertexSeachModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularVertexSeachModule });
|
|
1081
|
+
AngularVertexSeachModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularVertexSeachModule, providers: [
|
|
1082
|
+
{
|
|
1083
|
+
provide: ProductsVertexSearch,
|
|
1084
|
+
useFactory: (configuration) => new ProductsVertexSearch(new VertexAxiosAdapter(configuration)),
|
|
1085
|
+
deps: [VERTEX_CONFIG],
|
|
1086
|
+
},
|
|
1087
|
+
] });
|
|
1088
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularVertexSeachModule, decorators: [{
|
|
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 }); }
|
|
1115
1113
|
}
|
|
1116
|
-
i0.ɵɵ
|
|
1114
|
+
CookieDataPersistence.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CookieDataPersistence, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1115
|
+
CookieDataPersistence.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CookieDataPersistence });
|
|
1116
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CookieDataPersistence, decorators: [{
|
|
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 }); }
|
|
1143
1141
|
}
|
|
1144
|
-
i0.ɵɵ
|
|
1142
|
+
AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, deps: [{ token: i1.Auth }, { token: 'UserRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1143
|
+
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService });
|
|
1144
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, decorators: [{
|
|
1145
1145
|
type: Injectable
|
|
1146
|
-
}], ctorParameters: ()
|
|
1146
|
+
}], ctorParameters: function () { return [{ 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 }); }
|
|
1158
1156
|
}
|
|
1159
|
-
i0.ɵɵ
|
|
1157
|
+
CheckoutRepositoriesFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutRepositoriesFacade, deps: [{ token: 'CheckoutRepository' }, { token: 'UserRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1158
|
+
CheckoutRepositoriesFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutRepositoriesFacade });
|
|
1159
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutRepositoriesFacade, decorators: [{
|
|
1160
1160
|
type: Injectable
|
|
1161
|
-
}], ctorParameters: ()
|
|
1161
|
+
}], ctorParameters: function () { return [{ 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 }); }
|
|
1176
1174
|
}
|
|
1177
|
-
i0.ɵɵ
|
|
1175
|
+
CheckoutDependenciesFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutDependenciesFacade, deps: [{ token: PERSISTENCE_PROVIDER }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1176
|
+
CheckoutDependenciesFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutDependenciesFacade });
|
|
1177
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutDependenciesFacade, decorators: [{
|
|
1178
1178
|
type: Injectable
|
|
1179
|
-
}], ctorParameters: ()
|
|
1179
|
+
}], ctorParameters: function () { return [{ 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 }); }
|
|
1197
1195
|
}
|
|
1198
|
-
i0.ɵɵ
|
|
1196
|
+
ConfigurationFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ConfigurationFacade, deps: [{ token: DEFAULT_SHOP }, { token: FIREBASE_OPTIONS }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1197
|
+
ConfigurationFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ConfigurationFacade });
|
|
1198
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ConfigurationFacade, decorators: [{
|
|
1199
1199
|
type: Injectable
|
|
1200
|
-
}], ctorParameters: ()
|
|
1200
|
+
}], ctorParameters: function () { return [{ 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 }); }
|
|
1300
1298
|
}
|
|
1301
|
-
i0.ɵɵ
|
|
1299
|
+
CheckoutService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutService, deps: [{ token: CheckoutRepositoriesFacade }, { token: CheckoutDependenciesFacade }, { token: ConfigurationFacade }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1300
|
+
CheckoutService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutService });
|
|
1301
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutService, decorators: [{
|
|
1302
1302
|
type: Injectable
|
|
1303
|
-
}], ctorParameters: ()
|
|
1303
|
+
}], ctorParameters: function () { return [{ 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 }); }
|
|
1313
1311
|
}
|
|
1314
|
-
i0.ɵɵ
|
|
1312
|
+
CartServicesFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartServicesFacade, deps: [{ token: AuthService }, { token: CheckoutService }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1313
|
+
CartServicesFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartServicesFacade });
|
|
1314
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartServicesFacade, decorators: [{
|
|
1315
1315
|
type: Injectable
|
|
1316
|
-
}], ctorParameters: ()
|
|
1316
|
+
}], ctorParameters: function () { return [{ 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 }); }
|
|
1377
1375
|
}
|
|
1378
|
-
i0.ɵɵ
|
|
1376
|
+
CartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, deps: [{ token: CartServicesFacade }, { token: ConfigurationFacade }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1377
|
+
CartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService });
|
|
1378
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, decorators: [{
|
|
1379
1379
|
type: Injectable
|
|
1380
|
-
}], ctorParameters: ()
|
|
1380
|
+
}], ctorParameters: function () { return [{ 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 }); }
|
|
1414
1412
|
}
|
|
1415
|
-
i0.ɵɵ
|
|
1413
|
+
NewCategoryStructureAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1414
|
+
NewCategoryStructureAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter });
|
|
1415
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter, decorators: [{
|
|
1416
1416
|
type: Injectable
|
|
1417
|
-
}], ctorParameters: ()
|
|
1417
|
+
}], ctorParameters: function () { return [{ 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 }); }
|
|
1434
1432
|
}
|
|
1435
|
-
i0.ɵɵ
|
|
1433
|
+
OldCategoryStructureAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1434
|
+
OldCategoryStructureAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter });
|
|
1435
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter, decorators: [{
|
|
1436
1436
|
type: Injectable
|
|
1437
|
-
}], ctorParameters: ()
|
|
1437
|
+
}], ctorParameters: function () { return [{ 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 }); }
|
|
1605
1603
|
}
|
|
1606
|
-
i0.ɵɵ
|
|
1604
|
+
CategorySearchStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategorySearchStrategy, deps: [{ token: CatalogRepositoryService }, { token: CatalogHelpersService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1605
|
+
CategorySearchStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategorySearchStrategy });
|
|
1606
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategorySearchStrategy, decorators: [{
|
|
1607
1607
|
type: Injectable
|
|
1608
|
-
}], ctorParameters: ()
|
|
1608
|
+
}], ctorParameters: function () { return [{ 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 }); }
|
|
1642
1640
|
}
|
|
1643
|
-
i0.ɵɵ
|
|
1641
|
+
ProfileSearchStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProfileSearchStrategy, deps: [{ token: CatalogRepositoryService }, { token: CatalogHelpersService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1642
|
+
ProfileSearchStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProfileSearchStrategy });
|
|
1643
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProfileSearchStrategy, decorators: [{
|
|
1644
1644
|
type: Injectable
|
|
1645
|
-
}], ctorParameters: ()
|
|
1645
|
+
}], ctorParameters: function () { return [{ 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 }); }
|
|
1763
1761
|
}
|
|
1764
|
-
i0.ɵɵ
|
|
1762
|
+
TermSearchStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: TermSearchStrategy, deps: [{ token: CatalogRepositoryService }, { token: CatalogHelpersService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1763
|
+
TermSearchStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: TermSearchStrategy });
|
|
1764
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: TermSearchStrategy, decorators: [{
|
|
1765
1765
|
type: Injectable
|
|
1766
|
-
}], ctorParameters: ()
|
|
1766
|
+
}], ctorParameters: function () { return [{ 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 }); }
|
|
1776
1774
|
}
|
|
1777
|
-
i0.ɵɵ
|
|
1775
|
+
CatalogStrategiesFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogStrategiesFacade, deps: [{ token: CategorySearchStrategy }, { token: TermSearchStrategy }, { token: ProfileSearchStrategy }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1776
|
+
CatalogStrategiesFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogStrategiesFacade });
|
|
1777
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogStrategiesFacade, decorators: [{
|
|
1778
1778
|
type: Injectable
|
|
1779
|
-
}], ctorParameters: ()
|
|
1779
|
+
}], ctorParameters: function () { return [{ 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 }); }
|
|
1794
1792
|
}
|
|
1795
|
-
i0.ɵɵ
|
|
1793
|
+
CatalogServiceFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogServiceFacade, deps: [{ token: CatalogHelpersService }, { token: CatalogStrategiesFacade }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1794
|
+
CatalogServiceFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogServiceFacade });
|
|
1795
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogServiceFacade, decorators: [{
|
|
1796
1796
|
type: Injectable
|
|
1797
|
-
}], ctorParameters: ()
|
|
1797
|
+
}], ctorParameters: function () { return [{ 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 }); }
|
|
1809
1807
|
}
|
|
1810
|
-
i0.ɵɵ
|
|
1808
|
+
CategoryRepositoryFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryRepositoryFacade, deps: [{ token: 'CategoryRepository' }, { token: 'CategoryFilterRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1809
|
+
CategoryRepositoryFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryRepositoryFacade });
|
|
1810
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryRepositoryFacade, decorators: [{
|
|
1811
1811
|
type: Injectable
|
|
1812
|
-
}], ctorParameters: ()
|
|
1812
|
+
}], ctorParameters: function () { return [{ 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,39 @@ 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 }); }
|
|
1844
1842
|
}
|
|
1845
|
-
i0.ɵɵ
|
|
1843
|
+
CategoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService, deps: [{ token: 'CategoryRepositoryFacade' }, { token: 'ProductCatalogFacade' }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1844
|
+
CategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService });
|
|
1845
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService, decorators: [{
|
|
1846
1846
|
type: Injectable
|
|
1847
|
-
}], ctorParameters: ()
|
|
1847
|
+
}], ctorParameters: function () { return [{ type: CategoryRepositoryFacade, decorators: [{
|
|
1848
|
+
type: Inject,
|
|
1849
|
+
args: ['CategoryRepositoryFacade']
|
|
1850
|
+
}] }, { type: ProductCatalogFacade, decorators: [{
|
|
1851
|
+
type: Inject,
|
|
1852
|
+
args: ['ProductCatalogFacade']
|
|
1853
|
+
}] }, { type: i3.Shops, decorators: [{
|
|
1848
1854
|
type: Inject,
|
|
1849
1855
|
args: [DEFAULT_SHOP]
|
|
1850
|
-
}] }] });
|
|
1856
|
+
}] }]; } });
|
|
1851
1857
|
|
|
1852
1858
|
class ProductCatalogFacade {
|
|
1853
1859
|
constructor(productRepository, categoryStructureAdapter) {
|
|
1854
1860
|
this.productRepository = productRepository;
|
|
1855
1861
|
this.categoryStructureAdapter = categoryStructureAdapter;
|
|
1856
1862
|
}
|
|
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 }); }
|
|
1859
1863
|
}
|
|
1860
|
-
i0.ɵɵ
|
|
1864
|
+
ProductCatalogFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductCatalogFacade, deps: [{ token: 'ProductRepository' }, { token: CATEGORY_STRUCTURE }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1865
|
+
ProductCatalogFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductCatalogFacade });
|
|
1866
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductCatalogFacade, decorators: [{
|
|
1861
1867
|
type: Injectable
|
|
1862
|
-
}], ctorParameters: ()
|
|
1868
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1863
1869
|
type: Inject,
|
|
1864
1870
|
args: ['ProductRepository']
|
|
1865
1871
|
}] }, { type: undefined, decorators: [{
|
|
1866
1872
|
type: Inject,
|
|
1867
1873
|
args: [CATEGORY_STRUCTURE]
|
|
1868
|
-
}] }] });
|
|
1874
|
+
}] }]; } });
|
|
1869
1875
|
|
|
1870
1876
|
class CategoryServiceFacade {
|
|
1871
1877
|
constructor(categoryRepositoryFacade, productCatalogFacade, shop) {
|
|
@@ -1877,15 +1883,15 @@ class CategoryServiceFacade {
|
|
|
1877
1883
|
getCategoryService() {
|
|
1878
1884
|
return this.categoryService;
|
|
1879
1885
|
}
|
|
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 }); }
|
|
1882
1886
|
}
|
|
1883
|
-
i0.ɵɵ
|
|
1887
|
+
CategoryServiceFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryServiceFacade, deps: [{ token: CategoryRepositoryFacade }, { token: ProductCatalogFacade }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1888
|
+
CategoryServiceFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryServiceFacade });
|
|
1889
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryServiceFacade, decorators: [{
|
|
1884
1890
|
type: Injectable
|
|
1885
|
-
}], ctorParameters: ()
|
|
1891
|
+
}], ctorParameters: function () { return [{ type: CategoryRepositoryFacade }, { type: ProductCatalogFacade }, { type: i3.Shops, decorators: [{
|
|
1886
1892
|
type: Inject,
|
|
1887
1893
|
args: [DEFAULT_SHOP]
|
|
1888
|
-
}] }] });
|
|
1894
|
+
}] }]; } });
|
|
1889
1895
|
|
|
1890
1896
|
class BrandManagerHelper {
|
|
1891
1897
|
constructor(productCatalog) {
|
|
@@ -1932,12 +1938,12 @@ class BrandManagerHelper {
|
|
|
1932
1938
|
}, options.mainGender)
|
|
1933
1939
|
.then((result) => result.distinct.brand);
|
|
1934
1940
|
}
|
|
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 }); }
|
|
1937
1941
|
}
|
|
1938
|
-
i0.ɵɵ
|
|
1942
|
+
BrandManagerHelper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: BrandManagerHelper, deps: [{ token: ProductCatalogFacade }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1943
|
+
BrandManagerHelper.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: BrandManagerHelper });
|
|
1944
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: BrandManagerHelper, decorators: [{
|
|
1939
1945
|
type: Injectable
|
|
1940
|
-
}], ctorParameters: ()
|
|
1946
|
+
}], ctorParameters: function () { return [{ type: ProductCatalogFacade }]; } });
|
|
1941
1947
|
|
|
1942
1948
|
class CatalogFilterHelper {
|
|
1943
1949
|
buildFilterQuery(filters) {
|
|
@@ -1973,10 +1979,10 @@ class CatalogFilterHelper {
|
|
|
1973
1979
|
}
|
|
1974
1980
|
return filterQuery;
|
|
1975
1981
|
}
|
|
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 }); }
|
|
1978
1982
|
}
|
|
1979
|
-
i0.ɵɵ
|
|
1983
|
+
CatalogFilterHelper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogFilterHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1984
|
+
CatalogFilterHelper.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogFilterHelper });
|
|
1985
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogFilterHelper, decorators: [{
|
|
1980
1986
|
type: Injectable
|
|
1981
1987
|
}] });
|
|
1982
1988
|
|
|
@@ -2023,10 +2029,10 @@ class CatalogSortHelper {
|
|
|
2023
2029
|
return {};
|
|
2024
2030
|
}
|
|
2025
2031
|
}
|
|
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 }); }
|
|
2028
2032
|
}
|
|
2029
|
-
i0.ɵɵ
|
|
2033
|
+
CatalogSortHelper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogSortHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2034
|
+
CatalogSortHelper.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogSortHelper });
|
|
2035
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogSortHelper, decorators: [{
|
|
2030
2036
|
type: Injectable
|
|
2031
2037
|
}] });
|
|
2032
2038
|
|
|
@@ -2060,10 +2066,10 @@ class ProductFieldsHelper {
|
|
|
2060
2066
|
'group',
|
|
2061
2067
|
];
|
|
2062
2068
|
}
|
|
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 }); }
|
|
2065
2069
|
}
|
|
2066
|
-
i0.ɵɵ
|
|
2070
|
+
ProductFieldsHelper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductFieldsHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2071
|
+
ProductFieldsHelper.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductFieldsHelper });
|
|
2072
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductFieldsHelper, decorators: [{
|
|
2067
2073
|
type: Injectable
|
|
2068
2074
|
}] });
|
|
2069
2075
|
|
|
@@ -2082,12 +2088,12 @@ class CatalogOperationsFacade {
|
|
|
2082
2088
|
getFieldsHelper() {
|
|
2083
2089
|
return this.fieldsHelper;
|
|
2084
2090
|
}
|
|
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 }); }
|
|
2087
2091
|
}
|
|
2088
|
-
i0.ɵɵ
|
|
2092
|
+
CatalogOperationsFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogOperationsFacade, deps: [{ token: CatalogFilterHelper }, { token: CatalogSortHelper }, { token: ProductFieldsHelper }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2093
|
+
CatalogOperationsFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogOperationsFacade });
|
|
2094
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogOperationsFacade, decorators: [{
|
|
2089
2095
|
type: Injectable
|
|
2090
|
-
}], ctorParameters: ()
|
|
2096
|
+
}], ctorParameters: function () { return [{ type: CatalogFilterHelper }, { type: CatalogSortHelper }, { type: ProductFieldsHelper }]; } });
|
|
2091
2097
|
|
|
2092
2098
|
class ProductManagementFacade {
|
|
2093
2099
|
constructor(brandManager, productServices) {
|
|
@@ -2100,15 +2106,15 @@ class ProductManagementFacade {
|
|
|
2100
2106
|
getProductServices() {
|
|
2101
2107
|
return this.productServices;
|
|
2102
2108
|
}
|
|
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 }); }
|
|
2105
2109
|
}
|
|
2106
|
-
i0.ɵɵ
|
|
2110
|
+
ProductManagementFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductManagementFacade, deps: [{ token: BrandManagerHelper }, { token: 'ProductServicesFacade' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2111
|
+
ProductManagementFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductManagementFacade });
|
|
2112
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductManagementFacade, decorators: [{
|
|
2107
2113
|
type: Injectable
|
|
2108
|
-
}], ctorParameters: ()
|
|
2114
|
+
}], ctorParameters: function () { return [{ type: BrandManagerHelper }, { type: undefined, decorators: [{
|
|
2109
2115
|
type: Inject,
|
|
2110
2116
|
args: ['ProductServicesFacade']
|
|
2111
|
-
}] }] });
|
|
2117
|
+
}] }]; } });
|
|
2112
2118
|
|
|
2113
2119
|
class CatalogHelpersService {
|
|
2114
2120
|
constructor(catalogOperations, productManagement) {
|
|
@@ -2130,12 +2136,12 @@ class CatalogHelpersService {
|
|
|
2130
2136
|
getProductServices() {
|
|
2131
2137
|
return this.productManagement.getProductServices();
|
|
2132
2138
|
}
|
|
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 }); }
|
|
2135
2139
|
}
|
|
2136
|
-
i0.ɵɵ
|
|
2140
|
+
CatalogHelpersService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogHelpersService, deps: [{ token: CatalogOperationsFacade }, { token: ProductManagementFacade }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2141
|
+
CatalogHelpersService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogHelpersService });
|
|
2142
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogHelpersService, decorators: [{
|
|
2137
2143
|
type: Injectable
|
|
2138
|
-
}], ctorParameters: ()
|
|
2144
|
+
}], ctorParameters: function () { return [{ type: CatalogOperationsFacade }, { type: ProductManagementFacade }]; } });
|
|
2139
2145
|
|
|
2140
2146
|
class CatalogRepositoryService {
|
|
2141
2147
|
constructor(productCatalog, productServices) {
|
|
@@ -2148,15 +2154,15 @@ class CatalogRepositoryService {
|
|
|
2148
2154
|
getProductServices() {
|
|
2149
2155
|
return this.productServices;
|
|
2150
2156
|
}
|
|
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 }); }
|
|
2153
2157
|
}
|
|
2154
|
-
i0.ɵɵ
|
|
2158
|
+
CatalogRepositoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogRepositoryService, deps: [{ token: ProductCatalogFacade }, { token: 'ProductServicesFacade' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2159
|
+
CatalogRepositoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogRepositoryService });
|
|
2160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogRepositoryService, decorators: [{
|
|
2155
2161
|
type: Injectable
|
|
2156
|
-
}], ctorParameters: ()
|
|
2162
|
+
}], ctorParameters: function () { return [{ type: ProductCatalogFacade }, { type: undefined, decorators: [{
|
|
2157
2163
|
type: Inject,
|
|
2158
2164
|
args: ['ProductServicesFacade']
|
|
2159
|
-
}] }] });
|
|
2165
|
+
}] }]; } });
|
|
2160
2166
|
|
|
2161
2167
|
class CatalogService {
|
|
2162
2168
|
constructor(searchContext, helpersService, shop) {
|
|
@@ -2250,15 +2256,21 @@ class CatalogService {
|
|
|
2250
2256
|
hasCategory(options) {
|
|
2251
2257
|
return 'category' in options;
|
|
2252
2258
|
}
|
|
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 }); }
|
|
2255
2259
|
}
|
|
2256
|
-
i0.ɵɵ
|
|
2260
|
+
CatalogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, deps: [{ token: 'CatalogSearchContext' }, { token: 'CatalogHelpersService' }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2261
|
+
CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService });
|
|
2262
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
|
|
2257
2263
|
type: Injectable
|
|
2258
|
-
}], ctorParameters: ()
|
|
2264
|
+
}], ctorParameters: function () { return [{ type: CatalogSearchContext, decorators: [{
|
|
2265
|
+
type: Inject,
|
|
2266
|
+
args: ['CatalogSearchContext']
|
|
2267
|
+
}] }, { type: CatalogHelpersService, decorators: [{
|
|
2268
|
+
type: Inject,
|
|
2269
|
+
args: ['CatalogHelpersService']
|
|
2270
|
+
}] }, { type: i3.Shops, decorators: [{
|
|
2259
2271
|
type: Inject,
|
|
2260
2272
|
args: [DEFAULT_SHOP]
|
|
2261
|
-
}] }] });
|
|
2273
|
+
}] }]; } });
|
|
2262
2274
|
|
|
2263
2275
|
var ProductSorts;
|
|
2264
2276
|
(function (ProductSorts) {
|
|
@@ -2434,6 +2446,7 @@ class WishlistService {
|
|
|
2434
2446
|
if (!this.catalogService) {
|
|
2435
2447
|
throw new Error('CatalogService not initialized. Call initializeServices first.');
|
|
2436
2448
|
}
|
|
2449
|
+
// Acessar o ProductRepository através do CatalogHelpersService
|
|
2437
2450
|
const helpersService = this.catalogService['helpersService'];
|
|
2438
2451
|
const productServices = helpersService.getProductServices();
|
|
2439
2452
|
return productServices.productRepository
|
|
@@ -2512,12 +2525,12 @@ class WishlistService {
|
|
|
2512
2525
|
productBrand: product.brand,
|
|
2513
2526
|
};
|
|
2514
2527
|
}
|
|
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 }); }
|
|
2517
2528
|
}
|
|
2518
|
-
i0.ɵɵ
|
|
2529
|
+
WishlistService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, deps: [{ token: 'WishlistRepository' }, { token: DEFAULT_SHOP }, { token: 'LogRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2530
|
+
WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
|
|
2531
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
|
|
2519
2532
|
type: Injectable
|
|
2520
|
-
}], ctorParameters: ()
|
|
2533
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
2521
2534
|
type: Inject,
|
|
2522
2535
|
args: ['WishlistRepository']
|
|
2523
2536
|
}] }, { type: i3.Shops, decorators: [{
|
|
@@ -2526,7 +2539,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
|
|
|
2526
2539
|
}] }, { type: undefined, decorators: [{
|
|
2527
2540
|
type: Inject,
|
|
2528
2541
|
args: ['LogRepository']
|
|
2529
|
-
}] }] });
|
|
2542
|
+
}] }]; } });
|
|
2530
2543
|
|
|
2531
2544
|
class CouponRepositoriesFacade {
|
|
2532
2545
|
constructor(couponRepository, orderRepository, categoryRepository) {
|
|
@@ -2534,12 +2547,12 @@ class CouponRepositoriesFacade {
|
|
|
2534
2547
|
this.orderRepository = orderRepository;
|
|
2535
2548
|
this.categoryRepository = categoryRepository;
|
|
2536
2549
|
}
|
|
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 }); }
|
|
2539
2550
|
}
|
|
2540
|
-
i0.ɵɵ
|
|
2551
|
+
CouponRepositoriesFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponRepositoriesFacade, deps: [{ token: 'CouponRepository' }, { token: 'OrderRepository' }, { token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2552
|
+
CouponRepositoriesFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponRepositoriesFacade });
|
|
2553
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponRepositoriesFacade, decorators: [{
|
|
2541
2554
|
type: Injectable
|
|
2542
|
-
}], ctorParameters: ()
|
|
2555
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
2543
2556
|
type: Inject,
|
|
2544
2557
|
args: ['CouponRepository']
|
|
2545
2558
|
}] }, { type: undefined, decorators: [{
|
|
@@ -2548,7 +2561,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
|
|
|
2548
2561
|
}] }, { type: undefined, decorators: [{
|
|
2549
2562
|
type: Inject,
|
|
2550
2563
|
args: ['CategoryRepository']
|
|
2551
|
-
}] }] });
|
|
2564
|
+
}] }]; } });
|
|
2552
2565
|
|
|
2553
2566
|
class CouponService {
|
|
2554
2567
|
constructor(repositoriesFacade, configurationFacade) {
|
|
@@ -2779,15 +2792,15 @@ class CouponService {
|
|
|
2779
2792
|
}
|
|
2780
2793
|
return couponUseLimits;
|
|
2781
2794
|
}
|
|
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' }); }
|
|
2784
2795
|
}
|
|
2785
|
-
i0.ɵɵ
|
|
2796
|
+
CouponService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, deps: [{ token: CouponRepositoriesFacade }, { token: ConfigurationFacade }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2797
|
+
CouponService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, providedIn: 'root' });
|
|
2798
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, decorators: [{
|
|
2786
2799
|
type: Injectable,
|
|
2787
2800
|
args: [{
|
|
2788
2801
|
providedIn: 'root',
|
|
2789
2802
|
}]
|
|
2790
|
-
}], ctorParameters: ()
|
|
2803
|
+
}], ctorParameters: function () { return [{ type: CouponRepositoriesFacade }, { type: ConfigurationFacade }]; } });
|
|
2791
2804
|
|
|
2792
2805
|
class CheckoutSubscriptionService {
|
|
2793
2806
|
constructor(checkoutSubscriptionRepository, dataPersistence, couponService) {
|
|
@@ -2824,34 +2837,34 @@ class CheckoutSubscriptionService {
|
|
|
2824
2837
|
await this.dataPersistence.set('checkoutSubscriptionId', checkout.id).toPromise();
|
|
2825
2838
|
return checkout;
|
|
2826
2839
|
}
|
|
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 }); }
|
|
2829
2840
|
}
|
|
2830
|
-
i0.ɵɵ
|
|
2841
|
+
CheckoutSubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService, deps: [{ token: 'CheckoutSubscriptionRepository' }, { token: PERSISTENCE_PROVIDER }, { token: CouponService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2842
|
+
CheckoutSubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService });
|
|
2843
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService, decorators: [{
|
|
2831
2844
|
type: Injectable
|
|
2832
|
-
}], ctorParameters: ()
|
|
2845
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
2833
2846
|
type: Inject,
|
|
2834
2847
|
args: ['CheckoutSubscriptionRepository']
|
|
2835
2848
|
}] }, { type: undefined, decorators: [{
|
|
2836
2849
|
type: Inject,
|
|
2837
2850
|
args: [PERSISTENCE_PROVIDER]
|
|
2838
|
-
}] }, { type: CouponService }] });
|
|
2851
|
+
}] }, { type: CouponService }]; } });
|
|
2839
2852
|
|
|
2840
2853
|
class UtilHelper {
|
|
2841
2854
|
static createSlug(name) {
|
|
2842
2855
|
return name
|
|
2843
2856
|
.toLowerCase()
|
|
2844
|
-
.replace(/\s+/g, '-')
|
|
2845
|
-
.replace(/[ãàáäâ]/g, 'a')
|
|
2846
|
-
.replace(/[ẽèéëê]/g, 'e')
|
|
2847
|
-
.replace(/[ìíïî]/g, 'i')
|
|
2848
|
-
.replace(/[õòóöô]/g, 'o')
|
|
2849
|
-
.replace(/[ùúüû]/g, 'u')
|
|
2850
|
-
.replace(/[ñ]/g, 'n')
|
|
2851
|
-
.replace(/[ç]/g, 'c')
|
|
2852
|
-
.replace(/[&]/g, 'and')
|
|
2853
|
-
.replace(/[^\w-]+/g, '')
|
|
2854
|
-
.replace(/--+/g, '-');
|
|
2857
|
+
.replace(/\s+/g, '-') // Replace spaces with -
|
|
2858
|
+
.replace(/[ãàáäâ]/g, 'a') // Replace spaces with -
|
|
2859
|
+
.replace(/[ẽèéëê]/g, 'e') // Replace spaces with -
|
|
2860
|
+
.replace(/[ìíïî]/g, 'i') // Replace spaces with -
|
|
2861
|
+
.replace(/[õòóöô]/g, 'o') // Replace spaces with -
|
|
2862
|
+
.replace(/[ùúüû]/g, 'u') // Replace spaces with -
|
|
2863
|
+
.replace(/[ñ]/g, 'n') // Replace spaces with -
|
|
2864
|
+
.replace(/[ç]/g, 'c') // Replace spaces with -
|
|
2865
|
+
.replace(/[&]/g, 'and') // Replace spaces with -
|
|
2866
|
+
.replace(/[^\w-]+/g, '') // Remove all non-word chars
|
|
2867
|
+
.replace(/--+/g, '-'); // Replace multiple - with single -
|
|
2855
2868
|
}
|
|
2856
2869
|
}
|
|
2857
2870
|
|
|
@@ -2861,12 +2874,12 @@ class HomeShopRepositoriesFacade {
|
|
|
2861
2874
|
this.homeRepository = homeRepository;
|
|
2862
2875
|
this.productRepository = productRepository;
|
|
2863
2876
|
}
|
|
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 }); }
|
|
2866
2877
|
}
|
|
2867
|
-
i0.ɵɵ
|
|
2878
|
+
HomeShopRepositoriesFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopRepositoriesFacade, deps: [{ token: 'CategoryRepository' }, { token: 'HomeRepository' }, { token: 'ProductRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2879
|
+
HomeShopRepositoriesFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopRepositoriesFacade });
|
|
2880
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopRepositoriesFacade, decorators: [{
|
|
2868
2881
|
type: Injectable
|
|
2869
|
-
}], ctorParameters: ()
|
|
2882
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
2870
2883
|
type: Inject,
|
|
2871
2884
|
args: ['CategoryRepository']
|
|
2872
2885
|
}] }, { type: undefined, decorators: [{
|
|
@@ -2875,7 +2888,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
|
|
|
2875
2888
|
}] }, { type: undefined, decorators: [{
|
|
2876
2889
|
type: Inject,
|
|
2877
2890
|
args: ['ProductRepository']
|
|
2878
|
-
}] }] });
|
|
2891
|
+
}] }]; } });
|
|
2879
2892
|
|
|
2880
2893
|
class HomeShopService {
|
|
2881
2894
|
get homeId() {
|
|
@@ -2980,12 +2993,12 @@ class HomeShopService {
|
|
|
2980
2993
|
get gender() {
|
|
2981
2994
|
return this.homeId === 'mens_market' ? 'masculino' : undefined;
|
|
2982
2995
|
}
|
|
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 }); }
|
|
2985
2996
|
}
|
|
2986
|
-
i0.ɵɵ
|
|
2997
|
+
HomeShopService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService, deps: [{ token: HomeShopRepositoriesFacade }, { token: ConfigurationFacade }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2998
|
+
HomeShopService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService });
|
|
2999
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService, decorators: [{
|
|
2987
3000
|
type: Injectable
|
|
2988
|
-
}], ctorParameters: ()
|
|
3001
|
+
}], ctorParameters: function () { return [{ type: HomeShopRepositoriesFacade }, { type: ConfigurationFacade }]; } });
|
|
2989
3002
|
|
|
2990
3003
|
class OrderService {
|
|
2991
3004
|
constructor(angularFirestore, orderRepository) {
|
|
@@ -2999,15 +3012,15 @@ class OrderService {
|
|
|
2999
3012
|
.subscribe((doc) => this.orderSubject.next(doc));
|
|
3000
3013
|
return this.orderSubject;
|
|
3001
3014
|
}
|
|
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 }); }
|
|
3004
3015
|
}
|
|
3005
|
-
i0.ɵɵ
|
|
3016
|
+
OrderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, deps: [{ token: i1$1.Firestore }, { token: 'OrderRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3017
|
+
OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService });
|
|
3018
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
|
|
3006
3019
|
type: Injectable
|
|
3007
|
-
}], ctorParameters: ()
|
|
3020
|
+
}], ctorParameters: function () { return [{ type: i1$1.Firestore }, { type: i3.OrderFirestoreRepository, decorators: [{
|
|
3008
3021
|
type: Inject,
|
|
3009
3022
|
args: ['OrderRepository']
|
|
3010
|
-
}] }] });
|
|
3023
|
+
}] }]; } });
|
|
3011
3024
|
|
|
3012
3025
|
class AngularConnectModule {
|
|
3013
3026
|
static initializeApp(defaultShop, options, nameOrConfig) {
|
|
@@ -3049,116 +3062,116 @@ class AngularConnectModule {
|
|
|
3049
3062
|
static createProviderIfExists(token, value) {
|
|
3050
3063
|
return isNil(value) ? [] : [{ provide: token, useValue: value }];
|
|
3051
3064
|
}
|
|
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
|
-
}
|
|
3137
|
-
}),
|
|
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
3065
|
}
|
|
3161
|
-
i0.ɵɵ
|
|
3066
|
+
AngularConnectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3067
|
+
AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [i1$3.FirebaseAppModule, i2.AppCheckModule, i3$1.StorageModule, AngularElasticSeachModule,
|
|
3068
|
+
AngularVertexSeachModule,
|
|
3069
|
+
AngularFirebaseAuthModule,
|
|
3070
|
+
AngularFirestoreModule,
|
|
3071
|
+
AngularHasuraGraphQLModule] });
|
|
3072
|
+
AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, providers: [
|
|
3073
|
+
AuthService,
|
|
3074
|
+
CartService,
|
|
3075
|
+
CatalogService,
|
|
3076
|
+
CategoryService,
|
|
3077
|
+
CheckoutService,
|
|
3078
|
+
CheckoutSubscriptionService,
|
|
3079
|
+
CouponService,
|
|
3080
|
+
HomeShopService,
|
|
3081
|
+
OrderService,
|
|
3082
|
+
WishlistService,
|
|
3083
|
+
ConfigurationFacade,
|
|
3084
|
+
CartServicesFacade,
|
|
3085
|
+
CheckoutRepositoriesFacade,
|
|
3086
|
+
CheckoutDependenciesFacade,
|
|
3087
|
+
CategoryRepositoryFacade,
|
|
3088
|
+
ProductCatalogFacade,
|
|
3089
|
+
CatalogServiceFacade,
|
|
3090
|
+
CategoryServiceFacade,
|
|
3091
|
+
CatalogStrategiesFacade,
|
|
3092
|
+
CatalogOperationsFacade,
|
|
3093
|
+
ProductManagementFacade,
|
|
3094
|
+
{
|
|
3095
|
+
provide: 'ProductServicesFacade',
|
|
3096
|
+
useFactory: (productStockNotificationRepository, categoryRepository, productSearch) => ({
|
|
3097
|
+
productStockNotificationRepository,
|
|
3098
|
+
categoryRepository,
|
|
3099
|
+
productSearch,
|
|
3100
|
+
}),
|
|
3101
|
+
deps: ['ProductStockNotificationRepository', 'CategoryRepository', 'ProductSearch'],
|
|
3102
|
+
},
|
|
3103
|
+
CatalogFilterHelper,
|
|
3104
|
+
CatalogSortHelper,
|
|
3105
|
+
ProductFieldsHelper,
|
|
3106
|
+
BrandManagerHelper,
|
|
3107
|
+
CatalogRepositoryService,
|
|
3108
|
+
CatalogHelpersService,
|
|
3109
|
+
CategorySearchStrategy,
|
|
3110
|
+
TermSearchStrategy,
|
|
3111
|
+
ProfileSearchStrategy,
|
|
3112
|
+
{
|
|
3113
|
+
provide: CatalogSearchContext,
|
|
3114
|
+
useFactory: (categoryStrategy, termStrategy, profileStrategy) => {
|
|
3115
|
+
return new CatalogSearchContext(categoryStrategy, termStrategy, profileStrategy);
|
|
3116
|
+
},
|
|
3117
|
+
deps: [CategorySearchStrategy, TermSearchStrategy, ProfileSearchStrategy],
|
|
3118
|
+
},
|
|
3119
|
+
{
|
|
3120
|
+
provide: UpdateUserImage,
|
|
3121
|
+
useFactory: (userRepository, fileUploader) => {
|
|
3122
|
+
return new UpdateUserImage(userRepository, fileUploader);
|
|
3123
|
+
},
|
|
3124
|
+
deps: ['UserRepository', 'FileUploaderService'],
|
|
3125
|
+
},
|
|
3126
|
+
{
|
|
3127
|
+
provide: 'FileUploaderService',
|
|
3128
|
+
useFactory: (storage, baseUrl) => {
|
|
3129
|
+
return new FirebaseFileUploaderService(storage, baseUrl);
|
|
3130
|
+
},
|
|
3131
|
+
deps: [Storage, STORAGE_BASE_URL],
|
|
3132
|
+
},
|
|
3133
|
+
{
|
|
3134
|
+
provide: 'ProductSearch',
|
|
3135
|
+
useExisting: ProductsVertexSearch,
|
|
3136
|
+
},
|
|
3137
|
+
CouponRepositoriesFacade,
|
|
3138
|
+
HomeShopRepositoriesFacade,
|
|
3139
|
+
], imports: [provideFirebaseApp((injector) => {
|
|
3140
|
+
const appName = injector.get(FIREBASE_APP_NAME);
|
|
3141
|
+
try {
|
|
3142
|
+
const app = appName ? getApp(appName) : getApp();
|
|
3143
|
+
return app;
|
|
3144
|
+
}
|
|
3145
|
+
catch (error) {
|
|
3146
|
+
console.warn('Firebase app not found, initializing new app');
|
|
3147
|
+
if (error instanceof Error)
|
|
3148
|
+
console.error(error.message);
|
|
3149
|
+
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
3150
|
+
}
|
|
3151
|
+
}),
|
|
3152
|
+
provideAppCheck((injector) => {
|
|
3153
|
+
const app = injector.get(FirebaseApp);
|
|
3154
|
+
try {
|
|
3155
|
+
const provider = injector.get(APP_CHECK_PROVIDER);
|
|
3156
|
+
if (provider)
|
|
3157
|
+
return initializeAppCheck(app, {
|
|
3158
|
+
provider,
|
|
3159
|
+
isTokenAutoRefreshEnabled: true,
|
|
3160
|
+
});
|
|
3161
|
+
}
|
|
3162
|
+
catch (error) {
|
|
3163
|
+
if (error instanceof Error)
|
|
3164
|
+
console.error(error.message);
|
|
3165
|
+
return;
|
|
3166
|
+
}
|
|
3167
|
+
}),
|
|
3168
|
+
provideStorage((injector) => getStorage(injector.get(FirebaseApp))),
|
|
3169
|
+
AngularElasticSeachModule,
|
|
3170
|
+
AngularVertexSeachModule,
|
|
3171
|
+
AngularFirebaseAuthModule,
|
|
3172
|
+
AngularFirestoreModule,
|
|
3173
|
+
AngularHasuraGraphQLModule] });
|
|
3174
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, decorators: [{
|
|
3162
3175
|
type: NgModule,
|
|
3163
3176
|
args: [{
|
|
3164
3177
|
imports: [
|