@infrab4a/connect-angular 4.1.2-beta.1 → 4.1.2-beta.11
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 +43 -4
- package/esm2020/angular-firebase-auth.module.mjs +6 -17
- package/esm2020/angular-firestore.module.mjs +15 -23
- package/fesm2015/infrab4a-connect-angular.mjs +79 -59
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +79 -59
- 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
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';
|
|
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,21 +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 initializeApp(injector.get(FIREBASE_OPTIONS), `${appName || 'firebase'}-auth`);
|
|
122
|
-
}),
|
|
123
|
-
provideAuth(() => getAuth())] });
|
|
118
|
+
], imports: [provideAuth((injector) => getAuth(injector.get(FirebaseApp)))] });
|
|
124
119
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
|
|
125
120
|
type: NgModule,
|
|
126
121
|
args: [{
|
|
127
|
-
imports: [
|
|
128
|
-
provideFirebaseApp((injector) => {
|
|
129
|
-
const appName = injector.get(FIREBASE_APP_NAME);
|
|
130
|
-
return initializeApp(injector.get(FIREBASE_OPTIONS), `${appName || 'firebase'}-auth`);
|
|
131
|
-
}),
|
|
132
|
-
provideAuth(() => getAuth()),
|
|
133
|
-
],
|
|
122
|
+
imports: [provideAuth((injector) => getAuth(injector.get(FirebaseApp)))],
|
|
134
123
|
providers: [
|
|
135
124
|
{
|
|
136
125
|
provide: 'Authentication',
|
|
@@ -199,7 +188,7 @@ class AngularFirestoreModule {
|
|
|
199
188
|
}
|
|
200
189
|
}
|
|
201
190
|
AngularFirestoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
202
|
-
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] });
|
|
203
192
|
AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, providers: [
|
|
204
193
|
{
|
|
205
194
|
provide: 'FirestoreOptions',
|
|
@@ -399,32 +388,26 @@ AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
|
|
|
399
388
|
deps: ['FirestoreOptions', ProductFirestoreRepository],
|
|
400
389
|
},
|
|
401
390
|
], imports: [AngularElasticSeachModule,
|
|
402
|
-
provideFirebaseApp((injector) => {
|
|
403
|
-
const appName = injector.get(FIREBASE_APP_NAME);
|
|
404
|
-
return initializeApp$1(injector.get(FIREBASE_OPTIONS), `${appName || 'firebase'}-firestore`);
|
|
405
|
-
}),
|
|
406
391
|
provideFirestore((injector) => {
|
|
407
392
|
if (!MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
408
|
-
return getFirestore();
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
393
|
+
return getFirestore(injector.get(FirebaseApp));
|
|
394
|
+
return initializeFirestore(injector.get(FirebaseApp), {
|
|
395
|
+
experimentalForceLongPolling: true,
|
|
396
|
+
localCache: memoryLocalCache(),
|
|
397
|
+
});
|
|
412
398
|
})] });
|
|
413
399
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, decorators: [{
|
|
414
400
|
type: NgModule,
|
|
415
401
|
args: [{
|
|
416
402
|
imports: [
|
|
417
403
|
AngularElasticSeachModule,
|
|
418
|
-
provideFirebaseApp((injector) => {
|
|
419
|
-
const appName = injector.get(FIREBASE_APP_NAME);
|
|
420
|
-
return initializeApp$1(injector.get(FIREBASE_OPTIONS), `${appName || 'firebase'}-firestore`);
|
|
421
|
-
}),
|
|
422
404
|
provideFirestore((injector) => {
|
|
423
405
|
if (!MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
424
|
-
return getFirestore();
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
406
|
+
return getFirestore(injector.get(FirebaseApp));
|
|
407
|
+
return initializeFirestore(injector.get(FirebaseApp), {
|
|
408
|
+
experimentalForceLongPolling: true,
|
|
409
|
+
localCache: memoryLocalCache(),
|
|
410
|
+
});
|
|
428
411
|
}),
|
|
429
412
|
],
|
|
430
413
|
providers: [
|
|
@@ -889,12 +872,12 @@ class AuthService {
|
|
|
889
872
|
return authState(this.angularFireAuth).pipe(catchError(() => of(null)));
|
|
890
873
|
}
|
|
891
874
|
}
|
|
892
|
-
AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, deps: [{ token: i1
|
|
875
|
+
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 });
|
|
893
876
|
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService });
|
|
894
877
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, decorators: [{
|
|
895
878
|
type: Injectable
|
|
896
879
|
}], ctorParameters: function () {
|
|
897
|
-
return [{ type: i1
|
|
880
|
+
return [{ type: i1.Auth }, { type: undefined, decorators: [{
|
|
898
881
|
type: Inject,
|
|
899
882
|
args: ['UserRepository']
|
|
900
883
|
}] }];
|
|
@@ -1126,7 +1109,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1126
1109
|
return [{ type: undefined, decorators: [{
|
|
1127
1110
|
type: Inject,
|
|
1128
1111
|
args: ['CouponRepository']
|
|
1129
|
-
}] }, { type: i1$
|
|
1112
|
+
}] }, { type: i1$2.Shops, decorators: [{
|
|
1130
1113
|
type: Inject,
|
|
1131
1114
|
args: [DEFAULT_SHOP]
|
|
1132
1115
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1193,7 +1176,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1193
1176
|
}] }, { type: undefined, decorators: [{
|
|
1194
1177
|
type: Inject,
|
|
1195
1178
|
args: ['UserRepository']
|
|
1196
|
-
}] }, { type: i1$
|
|
1179
|
+
}] }, { type: i1$2.Shops, decorators: [{
|
|
1197
1180
|
type: Inject,
|
|
1198
1181
|
args: [DEFAULT_SHOP]
|
|
1199
1182
|
}] }];
|
|
@@ -1450,7 +1433,7 @@ CartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version:
|
|
|
1450
1433
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, decorators: [{
|
|
1451
1434
|
type: Injectable
|
|
1452
1435
|
}], ctorParameters: function () {
|
|
1453
|
-
return [{ type: AuthService }, { type: CheckoutService }, { type: i1$
|
|
1436
|
+
return [{ type: AuthService }, { type: CheckoutService }, { type: i1$2.Shops, decorators: [{
|
|
1454
1437
|
type: Inject,
|
|
1455
1438
|
args: [DEFAULT_SHOP]
|
|
1456
1439
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1462,7 +1445,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1462
1445
|
}] }, { type: undefined, decorators: [{
|
|
1463
1446
|
type: Inject,
|
|
1464
1447
|
args: ['VariantRepository']
|
|
1465
|
-
}] }, { type: i1$
|
|
1448
|
+
}] }, { type: i1$2.Buy2WinFirestoreRepository, decorators: [{
|
|
1466
1449
|
type: Inject,
|
|
1467
1450
|
args: ['Buy2WinRepository']
|
|
1468
1451
|
}] }];
|
|
@@ -1570,7 +1553,7 @@ class CatalogService {
|
|
|
1570
1553
|
});
|
|
1571
1554
|
}
|
|
1572
1555
|
}
|
|
1573
|
-
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$
|
|
1556
|
+
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 });
|
|
1574
1557
|
CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService });
|
|
1575
1558
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
|
|
1576
1559
|
type: Injectable
|
|
@@ -1581,10 +1564,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1581
1564
|
}] }, { type: undefined, decorators: [{
|
|
1582
1565
|
type: Inject,
|
|
1583
1566
|
args: [CATEGORY_STRUCTURE]
|
|
1584
|
-
}] }, { type: i1$
|
|
1567
|
+
}] }, { type: i1$2.Shops, decorators: [{
|
|
1585
1568
|
type: Inject,
|
|
1586
1569
|
args: [DEFAULT_SHOP]
|
|
1587
|
-
}] }, { type: i1$
|
|
1570
|
+
}] }, { type: i1$2.ProductsIndex }];
|
|
1588
1571
|
} });
|
|
1589
1572
|
|
|
1590
1573
|
class CategoryService {
|
|
@@ -1633,7 +1616,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1633
1616
|
}] }, { type: undefined, decorators: [{
|
|
1634
1617
|
type: Inject,
|
|
1635
1618
|
args: [CATEGORY_STRUCTURE]
|
|
1636
|
-
}] }, { type: i1$
|
|
1619
|
+
}] }, { type: i1$2.Shops, decorators: [{
|
|
1637
1620
|
type: Inject,
|
|
1638
1621
|
args: [DEFAULT_SHOP]
|
|
1639
1622
|
}] }];
|
|
@@ -1816,7 +1799,7 @@ class WishlistService {
|
|
|
1816
1799
|
});
|
|
1817
1800
|
}
|
|
1818
1801
|
}
|
|
1819
|
-
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$
|
|
1802
|
+
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 });
|
|
1820
1803
|
WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
|
|
1821
1804
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
|
|
1822
1805
|
type: Injectable
|
|
@@ -1824,7 +1807,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1824
1807
|
return [{ type: undefined, decorators: [{
|
|
1825
1808
|
type: Inject,
|
|
1826
1809
|
args: ['WishlistRepository']
|
|
1827
|
-
}] }, { type: i1$
|
|
1810
|
+
}] }, { type: i1$2.Shops, decorators: [{
|
|
1828
1811
|
type: Inject,
|
|
1829
1812
|
args: [DEFAULT_SHOP]
|
|
1830
1813
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1833,7 +1816,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1833
1816
|
}] }, { type: undefined, decorators: [{
|
|
1834
1817
|
type: Inject,
|
|
1835
1818
|
args: ['CategoryFilterRepository']
|
|
1836
|
-
}] }, { type: i1$
|
|
1819
|
+
}] }, { type: i1$2.ProductsIndex }];
|
|
1837
1820
|
} });
|
|
1838
1821
|
|
|
1839
1822
|
class CheckoutSubscriptionService {
|
|
@@ -2006,7 +1989,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
2006
1989
|
}] }, { type: undefined, decorators: [{
|
|
2007
1990
|
type: Inject,
|
|
2008
1991
|
args: ['ProductRepository']
|
|
2009
|
-
}] }, { type: i1$
|
|
1992
|
+
}] }, { type: i1$2.Shops, decorators: [{
|
|
2010
1993
|
type: Inject,
|
|
2011
1994
|
args: [DEFAULT_SHOP]
|
|
2012
1995
|
}] }];
|
|
@@ -2025,12 +2008,12 @@ class OrderService {
|
|
|
2025
2008
|
return this.orderSubject;
|
|
2026
2009
|
}
|
|
2027
2010
|
}
|
|
2028
|
-
OrderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, deps: [{ token: i1$
|
|
2011
|
+
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 });
|
|
2029
2012
|
OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService });
|
|
2030
2013
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
|
|
2031
2014
|
type: Injectable
|
|
2032
2015
|
}], ctorParameters: function () {
|
|
2033
|
-
return [{ type: i1$
|
|
2016
|
+
return [{ type: i1$1.Firestore }, { type: i1$2.OrderFirestoreRepository, decorators: [{
|
|
2034
2017
|
type: Inject,
|
|
2035
2018
|
args: ['OrderRepository']
|
|
2036
2019
|
}] }];
|
|
@@ -2113,12 +2096,12 @@ class ShippingService {
|
|
|
2113
2096
|
return false;
|
|
2114
2097
|
}
|
|
2115
2098
|
}
|
|
2116
|
-
ShippingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, deps: [{ token: i1$
|
|
2099
|
+
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 });
|
|
2117
2100
|
ShippingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService });
|
|
2118
2101
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, decorators: [{
|
|
2119
2102
|
type: Injectable
|
|
2120
2103
|
}], ctorParameters: function () {
|
|
2121
|
-
return [{ type: i1$
|
|
2104
|
+
return [{ type: i1$3.HttpClient }, { type: undefined, decorators: [{
|
|
2122
2105
|
type: Inject,
|
|
2123
2106
|
args: [BACKEND_URL]
|
|
2124
2107
|
}] }, { type: HomeShopService }];
|
|
@@ -2146,7 +2129,10 @@ class AngularConnectModule {
|
|
|
2146
2129
|
}
|
|
2147
2130
|
}
|
|
2148
2131
|
AngularConnectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2149
|
-
AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [
|
|
2132
|
+
AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [i1$4.FirebaseAppModule, AngularElasticSeachModule,
|
|
2133
|
+
AngularFirebaseAuthModule,
|
|
2134
|
+
AngularFirestoreModule,
|
|
2135
|
+
AngularHasuraGraphQLModule] });
|
|
2150
2136
|
AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, providers: [
|
|
2151
2137
|
AuthService,
|
|
2152
2138
|
CartService,
|
|
@@ -2159,11 +2145,45 @@ AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
|
|
|
2159
2145
|
OrderService,
|
|
2160
2146
|
ShippingService,
|
|
2161
2147
|
WishlistService,
|
|
2162
|
-
], imports: [
|
|
2148
|
+
], imports: [provideFirebaseApp((injector) => {
|
|
2149
|
+
const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
|
|
2150
|
+
console.log('fire', appName);
|
|
2151
|
+
console.log('options', FIREBASE_OPTIONS);
|
|
2152
|
+
console.log('fire', getApp);
|
|
2153
|
+
try {
|
|
2154
|
+
return getApp(appName);
|
|
2155
|
+
}
|
|
2156
|
+
catch (error) {
|
|
2157
|
+
console.log('initializeApp', error instanceof Error && error.message);
|
|
2158
|
+
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
2159
|
+
}
|
|
2160
|
+
}),
|
|
2161
|
+
AngularElasticSeachModule,
|
|
2162
|
+
AngularFirebaseAuthModule,
|
|
2163
|
+
AngularFirestoreModule,
|
|
2164
|
+
AngularHasuraGraphQLModule] });
|
|
2163
2165
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, decorators: [{
|
|
2164
2166
|
type: NgModule,
|
|
2165
2167
|
args: [{
|
|
2166
|
-
imports: [
|
|
2168
|
+
imports: [
|
|
2169
|
+
provideFirebaseApp((injector) => {
|
|
2170
|
+
const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
|
|
2171
|
+
console.log('fire', appName);
|
|
2172
|
+
console.log('options', FIREBASE_OPTIONS);
|
|
2173
|
+
console.log('fire', getApp);
|
|
2174
|
+
try {
|
|
2175
|
+
return getApp(appName);
|
|
2176
|
+
}
|
|
2177
|
+
catch (error) {
|
|
2178
|
+
console.log('initializeApp', error instanceof Error && error.message);
|
|
2179
|
+
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
2180
|
+
}
|
|
2181
|
+
}),
|
|
2182
|
+
AngularElasticSeachModule,
|
|
2183
|
+
AngularFirebaseAuthModule,
|
|
2184
|
+
AngularFirestoreModule,
|
|
2185
|
+
AngularHasuraGraphQLModule,
|
|
2186
|
+
],
|
|
2167
2187
|
providers: [
|
|
2168
2188
|
AuthService,
|
|
2169
2189
|
CartService,
|