@infrab4a/connect-angular 4.1.3-beta.0 → 4.1.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/angular-connect.module.d.ts +6 -5
- package/angular-firebase-auth.module.d.ts +2 -3
- package/angular-firestore.module.d.ts +2 -3
- package/esm2020/angular-connect.module.mjs +35 -4
- package/esm2020/angular-firebase-auth.module.mjs +6 -21
- package/esm2020/angular-firestore.module.mjs +22 -26
- package/fesm2015/infrab4a-connect-angular.mjs +78 -66
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +78 -66
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { NgModule, InjectionToken, PLATFORM_ID, Injectable, Inject } from '@angular/core';
|
|
3
|
-
import * as i1$
|
|
3
|
+
import * as i1$4 from '@angular/fire/app';
|
|
4
|
+
import { FirebaseApp, provideFirebaseApp, getApp, initializeApp } from '@angular/fire/app';
|
|
5
|
+
import * as i1$2 from '@infrab4a/connect';
|
|
4
6
|
import { ProductsIndex, AxiosAdapter, Authentication, AuthenticationFirebaseAuthService, Register, RegisterFirebaseAuthService, SignOut, RecoveryPassword, UserBeautyProfileFirestoreRepository, Buy2WinFirestoreRepository, CategoryFirestoreRepository, CheckoutFirestoreRepository, CheckoutSubscriptionFirestoreRepository, CouponFirestoreRepository, CampaignHashtagFirestoreRepository, CampaignDashboardFirestoreRepository, SubscriptionEditionFirestoreRepository, HomeFirestoreRepository, LeadFirestoreRepository, LegacyOrderFirestoreRepository, ShopMenuFirestoreRepository, OrderFirestoreRepository, PaymentFirestoreRepository, ProductFirestoreRepository, ShopSettingsFirestoreRepository, SubscriptionPaymentFirestoreRepository, SubscriptionPlanFirestoreRepository, SubscriptionProductFirestoreRepository, SubscriptionFirestoreRepository, UserFirestoreRepository, UserAddressFirestoreRepository, UserPaymentMethodFirestoreRepository, ProductVariantFirestoreRepository, CategoryHasuraGraphQLRepository, ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository, VariantHasuraGraphQLRepository, FilterOptionHasuraGraphQLRepository, FilterHasuraGraphQLRepository, CategoryCollectionChildrenHasuraGraphQLRepository, WishlistHasuraGraphQLRepository, Where, Shops, CheckoutTypes, CouponTypes, Exclusivities, isNil, NotFoundError, Checkout, pick, LineItem, RoundProductPricesHelper, set, InvalidArgumentError, Category, CheckoutSubscription, Product, RequiredArgumentError, add, Order } from '@infrab4a/connect';
|
|
5
|
-
import * as i1 from '@angular/fire/
|
|
6
|
-
import { provideFirebaseApp, initializeApp, FirebaseApp } from '@angular/fire/app';
|
|
7
|
-
import * as i1$1 from '@angular/fire/auth';
|
|
7
|
+
import * as i1 from '@angular/fire/auth';
|
|
8
8
|
import { Auth, provideAuth, getAuth, getIdToken, authState } from '@angular/fire/auth';
|
|
9
|
-
import { isPlatformBrowser } from '@angular/common';
|
|
10
|
-
import * as i1$
|
|
11
|
-
import { Firestore, provideFirestore, getFirestore, initializeFirestore,
|
|
12
|
-
import { initializeApp as initializeApp$1 } from 'firebase/app';
|
|
9
|
+
import { isPlatformBrowser, isPlatformServer } from '@angular/common';
|
|
10
|
+
import * as i1$1 from '@angular/fire/firestore';
|
|
11
|
+
import { Firestore, provideFirestore, getFirestore, initializeFirestore, memoryLocalCache, docSnapshots, doc } from '@angular/fire/firestore';
|
|
13
12
|
import { combineLatest, from, of, throwError, Subject, iif, forkJoin } from 'rxjs';
|
|
14
13
|
import { map, mergeMap, catchError, concatMap, tap } from 'rxjs/operators';
|
|
15
14
|
import { __awaiter, __decorate, __metadata } from 'tslib';
|
|
16
15
|
import cookie from 'js-cookie';
|
|
17
16
|
import { Type } from 'class-transformer';
|
|
18
|
-
import * as i1$
|
|
17
|
+
import * as i1$3 from '@angular/common/http';
|
|
19
18
|
|
|
20
19
|
const ES_CONFIG = 'ES_CONFIG';
|
|
21
20
|
|
|
@@ -72,7 +71,7 @@ class AngularFirebaseAuthModule {
|
|
|
72
71
|
}
|
|
73
72
|
}
|
|
74
73
|
AngularFirebaseAuthModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
75
|
-
AngularFirebaseAuthModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, imports: [i1.
|
|
74
|
+
AngularFirebaseAuthModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, imports: [i1.AuthModule] });
|
|
76
75
|
AngularFirebaseAuthModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, providers: [
|
|
77
76
|
{
|
|
78
77
|
provide: 'Authentication',
|
|
@@ -116,25 +115,11 @@ AngularFirebaseAuthModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0
|
|
|
116
115
|
},
|
|
117
116
|
deps: ['AuthenticationService'],
|
|
118
117
|
},
|
|
119
|
-
], imports: [
|
|
120
|
-
const appName = injector.get(FIREBASE_APP_NAME);
|
|
121
|
-
return appName
|
|
122
|
-
? initializeApp(injector.get(FIREBASE_OPTIONS), appName)
|
|
123
|
-
: initializeApp(injector.get(FIREBASE_OPTIONS));
|
|
124
|
-
}),
|
|
125
|
-
provideAuth(() => getAuth())] });
|
|
118
|
+
], imports: [provideAuth((injector) => getAuth(injector.get(FirebaseApp)))] });
|
|
126
119
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
|
|
127
120
|
type: NgModule,
|
|
128
121
|
args: [{
|
|
129
|
-
imports: [
|
|
130
|
-
provideFirebaseApp((injector) => {
|
|
131
|
-
const appName = injector.get(FIREBASE_APP_NAME);
|
|
132
|
-
return appName
|
|
133
|
-
? initializeApp(injector.get(FIREBASE_OPTIONS), appName)
|
|
134
|
-
: initializeApp(injector.get(FIREBASE_OPTIONS));
|
|
135
|
-
}),
|
|
136
|
-
provideAuth(() => getAuth()),
|
|
137
|
-
],
|
|
122
|
+
imports: [provideAuth((injector) => getAuth(injector.get(FirebaseApp)))],
|
|
138
123
|
providers: [
|
|
139
124
|
{
|
|
140
125
|
provide: 'Authentication',
|
|
@@ -203,7 +188,7 @@ class AngularFirestoreModule {
|
|
|
203
188
|
}
|
|
204
189
|
}
|
|
205
190
|
AngularFirestoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
206
|
-
AngularFirestoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1
|
|
191
|
+
AngularFirestoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1$1.FirestoreModule] });
|
|
207
192
|
AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, providers: [
|
|
208
193
|
{
|
|
209
194
|
provide: 'FirestoreOptions',
|
|
@@ -403,17 +388,16 @@ AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
|
|
|
403
388
|
deps: ['FirestoreOptions', ProductFirestoreRepository],
|
|
404
389
|
},
|
|
405
390
|
], imports: [AngularElasticSeachModule,
|
|
406
|
-
provideFirebaseApp((injector) => {
|
|
407
|
-
const appName = injector.get(FIREBASE_APP_NAME);
|
|
408
|
-
return appName
|
|
409
|
-
? initializeApp$1(injector.get(FIREBASE_OPTIONS), appName)
|
|
410
|
-
: initializeApp$1(injector.get(FIREBASE_OPTIONS));
|
|
411
|
-
}),
|
|
412
391
|
provideFirestore((injector) => {
|
|
392
|
+
const platformId = injector.get(PLATFORM_ID);
|
|
393
|
+
if (isPlatformServer(platformId))
|
|
394
|
+
return getFirestore(injector.get(FirebaseApp));
|
|
413
395
|
if (!MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
414
|
-
return getFirestore();
|
|
415
|
-
const firestore = initializeFirestore(injector.get(FirebaseApp), {
|
|
416
|
-
|
|
396
|
+
return getFirestore(injector.get(FirebaseApp));
|
|
397
|
+
const firestore = initializeFirestore(injector.get(FirebaseApp), {
|
|
398
|
+
experimentalForceLongPolling: true,
|
|
399
|
+
localCache: memoryLocalCache(),
|
|
400
|
+
});
|
|
417
401
|
return firestore;
|
|
418
402
|
})] });
|
|
419
403
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, decorators: [{
|
|
@@ -421,17 +405,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
421
405
|
args: [{
|
|
422
406
|
imports: [
|
|
423
407
|
AngularElasticSeachModule,
|
|
424
|
-
provideFirebaseApp((injector) => {
|
|
425
|
-
const appName = injector.get(FIREBASE_APP_NAME);
|
|
426
|
-
return appName
|
|
427
|
-
? initializeApp$1(injector.get(FIREBASE_OPTIONS), appName)
|
|
428
|
-
: initializeApp$1(injector.get(FIREBASE_OPTIONS));
|
|
429
|
-
}),
|
|
430
408
|
provideFirestore((injector) => {
|
|
409
|
+
const platformId = injector.get(PLATFORM_ID);
|
|
410
|
+
if (isPlatformServer(platformId))
|
|
411
|
+
return getFirestore(injector.get(FirebaseApp));
|
|
431
412
|
if (!MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
432
|
-
return getFirestore();
|
|
433
|
-
const firestore = initializeFirestore(injector.get(FirebaseApp), {
|
|
434
|
-
|
|
413
|
+
return getFirestore(injector.get(FirebaseApp));
|
|
414
|
+
const firestore = initializeFirestore(injector.get(FirebaseApp), {
|
|
415
|
+
experimentalForceLongPolling: true,
|
|
416
|
+
localCache: memoryLocalCache(),
|
|
417
|
+
});
|
|
435
418
|
return firestore;
|
|
436
419
|
}),
|
|
437
420
|
],
|
|
@@ -897,12 +880,12 @@ class AuthService {
|
|
|
897
880
|
return authState(this.angularFireAuth).pipe(catchError(() => of(null)));
|
|
898
881
|
}
|
|
899
882
|
}
|
|
900
|
-
AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, deps: [{ token: i1
|
|
883
|
+
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 });
|
|
901
884
|
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService });
|
|
902
885
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, decorators: [{
|
|
903
886
|
type: Injectable
|
|
904
887
|
}], ctorParameters: function () {
|
|
905
|
-
return [{ type: i1
|
|
888
|
+
return [{ type: i1.Auth }, { type: undefined, decorators: [{
|
|
906
889
|
type: Inject,
|
|
907
890
|
args: ['UserRepository']
|
|
908
891
|
}] }];
|
|
@@ -1134,7 +1117,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1134
1117
|
return [{ type: undefined, decorators: [{
|
|
1135
1118
|
type: Inject,
|
|
1136
1119
|
args: ['CouponRepository']
|
|
1137
|
-
}] }, { type: i1$
|
|
1120
|
+
}] }, { type: i1$2.Shops, decorators: [{
|
|
1138
1121
|
type: Inject,
|
|
1139
1122
|
args: [DEFAULT_SHOP]
|
|
1140
1123
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1201,7 +1184,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1201
1184
|
}] }, { type: undefined, decorators: [{
|
|
1202
1185
|
type: Inject,
|
|
1203
1186
|
args: ['UserRepository']
|
|
1204
|
-
}] }, { type: i1$
|
|
1187
|
+
}] }, { type: i1$2.Shops, decorators: [{
|
|
1205
1188
|
type: Inject,
|
|
1206
1189
|
args: [DEFAULT_SHOP]
|
|
1207
1190
|
}] }];
|
|
@@ -1458,7 +1441,7 @@ CartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version:
|
|
|
1458
1441
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, decorators: [{
|
|
1459
1442
|
type: Injectable
|
|
1460
1443
|
}], ctorParameters: function () {
|
|
1461
|
-
return [{ type: AuthService }, { type: CheckoutService }, { type: i1$
|
|
1444
|
+
return [{ type: AuthService }, { type: CheckoutService }, { type: i1$2.Shops, decorators: [{
|
|
1462
1445
|
type: Inject,
|
|
1463
1446
|
args: [DEFAULT_SHOP]
|
|
1464
1447
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1470,7 +1453,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1470
1453
|
}] }, { type: undefined, decorators: [{
|
|
1471
1454
|
type: Inject,
|
|
1472
1455
|
args: ['VariantRepository']
|
|
1473
|
-
}] }, { type: i1$
|
|
1456
|
+
}] }, { type: i1$2.Buy2WinFirestoreRepository, decorators: [{
|
|
1474
1457
|
type: Inject,
|
|
1475
1458
|
args: ['Buy2WinRepository']
|
|
1476
1459
|
}] }];
|
|
@@ -1578,7 +1561,7 @@ class CatalogService {
|
|
|
1578
1561
|
});
|
|
1579
1562
|
}
|
|
1580
1563
|
}
|
|
1581
|
-
CatalogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, deps: [{ token: 'ProductRepository' }, { token: CATEGORY_STRUCTURE }, { token: DEFAULT_SHOP }, { token: i1$
|
|
1564
|
+
CatalogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, deps: [{ token: 'ProductRepository' }, { token: CATEGORY_STRUCTURE }, { token: DEFAULT_SHOP }, { token: i1$2.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1582
1565
|
CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService });
|
|
1583
1566
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
|
|
1584
1567
|
type: Injectable
|
|
@@ -1589,10 +1572,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1589
1572
|
}] }, { type: undefined, decorators: [{
|
|
1590
1573
|
type: Inject,
|
|
1591
1574
|
args: [CATEGORY_STRUCTURE]
|
|
1592
|
-
}] }, { type: i1$
|
|
1575
|
+
}] }, { type: i1$2.Shops, decorators: [{
|
|
1593
1576
|
type: Inject,
|
|
1594
1577
|
args: [DEFAULT_SHOP]
|
|
1595
|
-
}] }, { type: i1$
|
|
1578
|
+
}] }, { type: i1$2.ProductsIndex }];
|
|
1596
1579
|
} });
|
|
1597
1580
|
|
|
1598
1581
|
class CategoryService {
|
|
@@ -1641,7 +1624,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1641
1624
|
}] }, { type: undefined, decorators: [{
|
|
1642
1625
|
type: Inject,
|
|
1643
1626
|
args: [CATEGORY_STRUCTURE]
|
|
1644
|
-
}] }, { type: i1$
|
|
1627
|
+
}] }, { type: i1$2.Shops, decorators: [{
|
|
1645
1628
|
type: Inject,
|
|
1646
1629
|
args: [DEFAULT_SHOP]
|
|
1647
1630
|
}] }];
|
|
@@ -1824,7 +1807,7 @@ class WishlistService {
|
|
|
1824
1807
|
});
|
|
1825
1808
|
}
|
|
1826
1809
|
}
|
|
1827
|
-
WishlistService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, deps: [{ token: 'WishlistRepository' }, { token: DEFAULT_SHOP }, { token: 'ProductRepository' }, { token: 'CategoryFilterRepository' }, { token: i1$
|
|
1810
|
+
WishlistService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, deps: [{ token: 'WishlistRepository' }, { token: DEFAULT_SHOP }, { token: 'ProductRepository' }, { token: 'CategoryFilterRepository' }, { token: i1$2.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1828
1811
|
WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
|
|
1829
1812
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
|
|
1830
1813
|
type: Injectable
|
|
@@ -1832,7 +1815,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1832
1815
|
return [{ type: undefined, decorators: [{
|
|
1833
1816
|
type: Inject,
|
|
1834
1817
|
args: ['WishlistRepository']
|
|
1835
|
-
}] }, { type: i1$
|
|
1818
|
+
}] }, { type: i1$2.Shops, decorators: [{
|
|
1836
1819
|
type: Inject,
|
|
1837
1820
|
args: [DEFAULT_SHOP]
|
|
1838
1821
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1841,7 +1824,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1841
1824
|
}] }, { type: undefined, decorators: [{
|
|
1842
1825
|
type: Inject,
|
|
1843
1826
|
args: ['CategoryFilterRepository']
|
|
1844
|
-
}] }, { type: i1$
|
|
1827
|
+
}] }, { type: i1$2.ProductsIndex }];
|
|
1845
1828
|
} });
|
|
1846
1829
|
|
|
1847
1830
|
class CheckoutSubscriptionService {
|
|
@@ -2014,7 +1997,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
2014
1997
|
}] }, { type: undefined, decorators: [{
|
|
2015
1998
|
type: Inject,
|
|
2016
1999
|
args: ['ProductRepository']
|
|
2017
|
-
}] }, { type: i1$
|
|
2000
|
+
}] }, { type: i1$2.Shops, decorators: [{
|
|
2018
2001
|
type: Inject,
|
|
2019
2002
|
args: [DEFAULT_SHOP]
|
|
2020
2003
|
}] }];
|
|
@@ -2033,12 +2016,12 @@ class OrderService {
|
|
|
2033
2016
|
return this.orderSubject;
|
|
2034
2017
|
}
|
|
2035
2018
|
}
|
|
2036
|
-
OrderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, deps: [{ token: i1$
|
|
2019
|
+
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 });
|
|
2037
2020
|
OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService });
|
|
2038
2021
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
|
|
2039
2022
|
type: Injectable
|
|
2040
2023
|
}], ctorParameters: function () {
|
|
2041
|
-
return [{ type: i1$
|
|
2024
|
+
return [{ type: i1$1.Firestore }, { type: i1$2.OrderFirestoreRepository, decorators: [{
|
|
2042
2025
|
type: Inject,
|
|
2043
2026
|
args: ['OrderRepository']
|
|
2044
2027
|
}] }];
|
|
@@ -2121,12 +2104,12 @@ class ShippingService {
|
|
|
2121
2104
|
return false;
|
|
2122
2105
|
}
|
|
2123
2106
|
}
|
|
2124
|
-
ShippingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, deps: [{ token: i1$
|
|
2107
|
+
ShippingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, deps: [{ token: i1$3.HttpClient }, { token: BACKEND_URL }, { token: HomeShopService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2125
2108
|
ShippingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService });
|
|
2126
2109
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, decorators: [{
|
|
2127
2110
|
type: Injectable
|
|
2128
2111
|
}], ctorParameters: function () {
|
|
2129
|
-
return [{ type: i1$
|
|
2112
|
+
return [{ type: i1$3.HttpClient }, { type: undefined, decorators: [{
|
|
2130
2113
|
type: Inject,
|
|
2131
2114
|
args: [BACKEND_URL]
|
|
2132
2115
|
}] }, { type: HomeShopService }];
|
|
@@ -2154,7 +2137,10 @@ class AngularConnectModule {
|
|
|
2154
2137
|
}
|
|
2155
2138
|
}
|
|
2156
2139
|
AngularConnectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2157
|
-
AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [
|
|
2140
|
+
AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [i1$4.FirebaseAppModule, AngularElasticSeachModule,
|
|
2141
|
+
AngularFirebaseAuthModule,
|
|
2142
|
+
AngularFirestoreModule,
|
|
2143
|
+
AngularHasuraGraphQLModule] });
|
|
2158
2144
|
AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, providers: [
|
|
2159
2145
|
AuthService,
|
|
2160
2146
|
CartService,
|
|
@@ -2167,11 +2153,37 @@ AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
|
|
|
2167
2153
|
OrderService,
|
|
2168
2154
|
ShippingService,
|
|
2169
2155
|
WishlistService,
|
|
2170
|
-
], imports: [
|
|
2156
|
+
], imports: [provideFirebaseApp((injector) => {
|
|
2157
|
+
const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
|
|
2158
|
+
try {
|
|
2159
|
+
return getApp(appName);
|
|
2160
|
+
}
|
|
2161
|
+
catch (error) {
|
|
2162
|
+
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
2163
|
+
}
|
|
2164
|
+
}),
|
|
2165
|
+
AngularElasticSeachModule,
|
|
2166
|
+
AngularFirebaseAuthModule,
|
|
2167
|
+
AngularFirestoreModule,
|
|
2168
|
+
AngularHasuraGraphQLModule] });
|
|
2171
2169
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, decorators: [{
|
|
2172
2170
|
type: NgModule,
|
|
2173
2171
|
args: [{
|
|
2174
|
-
imports: [
|
|
2172
|
+
imports: [
|
|
2173
|
+
provideFirebaseApp((injector) => {
|
|
2174
|
+
const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
|
|
2175
|
+
try {
|
|
2176
|
+
return getApp(appName);
|
|
2177
|
+
}
|
|
2178
|
+
catch (error) {
|
|
2179
|
+
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
2180
|
+
}
|
|
2181
|
+
}),
|
|
2182
|
+
AngularElasticSeachModule,
|
|
2183
|
+
AngularFirebaseAuthModule,
|
|
2184
|
+
AngularFirestoreModule,
|
|
2185
|
+
AngularHasuraGraphQLModule,
|
|
2186
|
+
],
|
|
2175
2187
|
providers: [
|
|
2176
2188
|
AuthService,
|
|
2177
2189
|
CartService,
|