@infrab4a/connect-angular 4.1.2-beta.0 → 4.1.2-beta.10
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 -21
- package/esm2020/angular-firestore.module.mjs +15 -27
- package/fesm2015/infrab4a-connect-angular.mjs +79 -67
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +79 -67
- 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,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}-auth`)
|
|
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}-auth`)
|
|
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,36 +388,26 @@ 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}-firestore`)
|
|
410
|
-
: initializeApp$1(injector.get(FIREBASE_OPTIONS));
|
|
411
|
-
}),
|
|
412
391
|
provideFirestore((injector) => {
|
|
413
392
|
if (!MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
414
|
-
return getFirestore();
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
393
|
+
return getFirestore(injector.get(FirebaseApp));
|
|
394
|
+
return initializeFirestore(injector.get(FirebaseApp), {
|
|
395
|
+
experimentalForceLongPolling: true,
|
|
396
|
+
localCache: memoryLocalCache(),
|
|
397
|
+
});
|
|
418
398
|
})] });
|
|
419
399
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, decorators: [{
|
|
420
400
|
type: NgModule,
|
|
421
401
|
args: [{
|
|
422
402
|
imports: [
|
|
423
403
|
AngularElasticSeachModule,
|
|
424
|
-
provideFirebaseApp((injector) => {
|
|
425
|
-
const appName = injector.get(FIREBASE_APP_NAME);
|
|
426
|
-
return appName
|
|
427
|
-
? initializeApp$1(injector.get(FIREBASE_OPTIONS), `${appName}-firestore`)
|
|
428
|
-
: initializeApp$1(injector.get(FIREBASE_OPTIONS));
|
|
429
|
-
}),
|
|
430
404
|
provideFirestore((injector) => {
|
|
431
405
|
if (!MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
432
|
-
return getFirestore();
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
406
|
+
return getFirestore(injector.get(FirebaseApp));
|
|
407
|
+
return initializeFirestore(injector.get(FirebaseApp), {
|
|
408
|
+
experimentalForceLongPolling: true,
|
|
409
|
+
localCache: memoryLocalCache(),
|
|
410
|
+
});
|
|
436
411
|
}),
|
|
437
412
|
],
|
|
438
413
|
providers: [
|
|
@@ -897,12 +872,12 @@ class AuthService {
|
|
|
897
872
|
return authState(this.angularFireAuth).pipe(catchError(() => of(null)));
|
|
898
873
|
}
|
|
899
874
|
}
|
|
900
|
-
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 });
|
|
901
876
|
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService });
|
|
902
877
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, decorators: [{
|
|
903
878
|
type: Injectable
|
|
904
879
|
}], ctorParameters: function () {
|
|
905
|
-
return [{ type: i1
|
|
880
|
+
return [{ type: i1.Auth }, { type: undefined, decorators: [{
|
|
906
881
|
type: Inject,
|
|
907
882
|
args: ['UserRepository']
|
|
908
883
|
}] }];
|
|
@@ -1134,7 +1109,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1134
1109
|
return [{ type: undefined, decorators: [{
|
|
1135
1110
|
type: Inject,
|
|
1136
1111
|
args: ['CouponRepository']
|
|
1137
|
-
}] }, { type: i1$
|
|
1112
|
+
}] }, { type: i1$2.Shops, decorators: [{
|
|
1138
1113
|
type: Inject,
|
|
1139
1114
|
args: [DEFAULT_SHOP]
|
|
1140
1115
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1201,7 +1176,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1201
1176
|
}] }, { type: undefined, decorators: [{
|
|
1202
1177
|
type: Inject,
|
|
1203
1178
|
args: ['UserRepository']
|
|
1204
|
-
}] }, { type: i1$
|
|
1179
|
+
}] }, { type: i1$2.Shops, decorators: [{
|
|
1205
1180
|
type: Inject,
|
|
1206
1181
|
args: [DEFAULT_SHOP]
|
|
1207
1182
|
}] }];
|
|
@@ -1458,7 +1433,7 @@ CartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version:
|
|
|
1458
1433
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, decorators: [{
|
|
1459
1434
|
type: Injectable
|
|
1460
1435
|
}], ctorParameters: function () {
|
|
1461
|
-
return [{ type: AuthService }, { type: CheckoutService }, { type: i1$
|
|
1436
|
+
return [{ type: AuthService }, { type: CheckoutService }, { type: i1$2.Shops, decorators: [{
|
|
1462
1437
|
type: Inject,
|
|
1463
1438
|
args: [DEFAULT_SHOP]
|
|
1464
1439
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1470,7 +1445,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1470
1445
|
}] }, { type: undefined, decorators: [{
|
|
1471
1446
|
type: Inject,
|
|
1472
1447
|
args: ['VariantRepository']
|
|
1473
|
-
}] }, { type: i1$
|
|
1448
|
+
}] }, { type: i1$2.Buy2WinFirestoreRepository, decorators: [{
|
|
1474
1449
|
type: Inject,
|
|
1475
1450
|
args: ['Buy2WinRepository']
|
|
1476
1451
|
}] }];
|
|
@@ -1578,7 +1553,7 @@ class CatalogService {
|
|
|
1578
1553
|
});
|
|
1579
1554
|
}
|
|
1580
1555
|
}
|
|
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$
|
|
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 });
|
|
1582
1557
|
CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService });
|
|
1583
1558
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
|
|
1584
1559
|
type: Injectable
|
|
@@ -1589,10 +1564,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1589
1564
|
}] }, { type: undefined, decorators: [{
|
|
1590
1565
|
type: Inject,
|
|
1591
1566
|
args: [CATEGORY_STRUCTURE]
|
|
1592
|
-
}] }, { type: i1$
|
|
1567
|
+
}] }, { type: i1$2.Shops, decorators: [{
|
|
1593
1568
|
type: Inject,
|
|
1594
1569
|
args: [DEFAULT_SHOP]
|
|
1595
|
-
}] }, { type: i1$
|
|
1570
|
+
}] }, { type: i1$2.ProductsIndex }];
|
|
1596
1571
|
} });
|
|
1597
1572
|
|
|
1598
1573
|
class CategoryService {
|
|
@@ -1641,7 +1616,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1641
1616
|
}] }, { type: undefined, decorators: [{
|
|
1642
1617
|
type: Inject,
|
|
1643
1618
|
args: [CATEGORY_STRUCTURE]
|
|
1644
|
-
}] }, { type: i1$
|
|
1619
|
+
}] }, { type: i1$2.Shops, decorators: [{
|
|
1645
1620
|
type: Inject,
|
|
1646
1621
|
args: [DEFAULT_SHOP]
|
|
1647
1622
|
}] }];
|
|
@@ -1824,7 +1799,7 @@ class WishlistService {
|
|
|
1824
1799
|
});
|
|
1825
1800
|
}
|
|
1826
1801
|
}
|
|
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$
|
|
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 });
|
|
1828
1803
|
WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
|
|
1829
1804
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
|
|
1830
1805
|
type: Injectable
|
|
@@ -1832,7 +1807,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1832
1807
|
return [{ type: undefined, decorators: [{
|
|
1833
1808
|
type: Inject,
|
|
1834
1809
|
args: ['WishlistRepository']
|
|
1835
|
-
}] }, { type: i1$
|
|
1810
|
+
}] }, { type: i1$2.Shops, decorators: [{
|
|
1836
1811
|
type: Inject,
|
|
1837
1812
|
args: [DEFAULT_SHOP]
|
|
1838
1813
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1841,7 +1816,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1841
1816
|
}] }, { type: undefined, decorators: [{
|
|
1842
1817
|
type: Inject,
|
|
1843
1818
|
args: ['CategoryFilterRepository']
|
|
1844
|
-
}] }, { type: i1$
|
|
1819
|
+
}] }, { type: i1$2.ProductsIndex }];
|
|
1845
1820
|
} });
|
|
1846
1821
|
|
|
1847
1822
|
class CheckoutSubscriptionService {
|
|
@@ -2014,7 +1989,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
2014
1989
|
}] }, { type: undefined, decorators: [{
|
|
2015
1990
|
type: Inject,
|
|
2016
1991
|
args: ['ProductRepository']
|
|
2017
|
-
}] }, { type: i1$
|
|
1992
|
+
}] }, { type: i1$2.Shops, decorators: [{
|
|
2018
1993
|
type: Inject,
|
|
2019
1994
|
args: [DEFAULT_SHOP]
|
|
2020
1995
|
}] }];
|
|
@@ -2033,12 +2008,12 @@ class OrderService {
|
|
|
2033
2008
|
return this.orderSubject;
|
|
2034
2009
|
}
|
|
2035
2010
|
}
|
|
2036
|
-
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 });
|
|
2037
2012
|
OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService });
|
|
2038
2013
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
|
|
2039
2014
|
type: Injectable
|
|
2040
2015
|
}], ctorParameters: function () {
|
|
2041
|
-
return [{ type: i1$
|
|
2016
|
+
return [{ type: i1$1.Firestore }, { type: i1$2.OrderFirestoreRepository, decorators: [{
|
|
2042
2017
|
type: Inject,
|
|
2043
2018
|
args: ['OrderRepository']
|
|
2044
2019
|
}] }];
|
|
@@ -2121,12 +2096,12 @@ class ShippingService {
|
|
|
2121
2096
|
return false;
|
|
2122
2097
|
}
|
|
2123
2098
|
}
|
|
2124
|
-
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 });
|
|
2125
2100
|
ShippingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService });
|
|
2126
2101
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, decorators: [{
|
|
2127
2102
|
type: Injectable
|
|
2128
2103
|
}], ctorParameters: function () {
|
|
2129
|
-
return [{ type: i1$
|
|
2104
|
+
return [{ type: i1$3.HttpClient }, { type: undefined, decorators: [{
|
|
2130
2105
|
type: Inject,
|
|
2131
2106
|
args: [BACKEND_URL]
|
|
2132
2107
|
}] }, { type: HomeShopService }];
|
|
@@ -2154,7 +2129,10 @@ class AngularConnectModule {
|
|
|
2154
2129
|
}
|
|
2155
2130
|
}
|
|
2156
2131
|
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: [
|
|
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] });
|
|
2158
2136
|
AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, providers: [
|
|
2159
2137
|
AuthService,
|
|
2160
2138
|
CartService,
|
|
@@ -2167,11 +2145,45 @@ AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
|
|
|
2167
2145
|
OrderService,
|
|
2168
2146
|
ShippingService,
|
|
2169
2147
|
WishlistService,
|
|
2170
|
-
], 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] });
|
|
2171
2165
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, decorators: [{
|
|
2172
2166
|
type: NgModule,
|
|
2173
2167
|
args: [{
|
|
2174
|
-
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
|
+
],
|
|
2175
2187
|
providers: [
|
|
2176
2188
|
AuthService,
|
|
2177
2189
|
CartService,
|