@infrab4a/connect-angular 4.1.2-beta.16 → 4.1.2-beta.2

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.
@@ -1,20 +1,21 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { NgModule, InjectionToken, PLATFORM_ID, Injectable, Inject } from '@angular/core';
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';
3
+ import * as i1$3 from '@infrab4a/connect';
6
4
  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';
7
- import * as i1 from '@angular/fire/auth';
5
+ import * as i1 from '@angular/fire/app';
6
+ import { provideFirebaseApp, initializeApp, FirebaseApp } from '@angular/fire/app';
7
+ import * as i1$1 from '@angular/fire/auth';
8
8
  import { Auth, provideAuth, getAuth, getIdToken, authState } from '@angular/fire/auth';
9
- import { isPlatformBrowser, isPlatformServer } from '@angular/common';
10
- import * as i1$1 from '@angular/fire/firestore';
9
+ import { isPlatformBrowser } from '@angular/common';
10
+ import * as i1$2 from '@angular/fire/firestore';
11
11
  import { Firestore, provideFirestore, getFirestore, initializeFirestore, memoryLocalCache, docSnapshots, doc } from '@angular/fire/firestore';
12
+ import { initializeApp as initializeApp$1 } from 'firebase/app';
12
13
  import { combineLatest, from, of, throwError, Subject, iif, forkJoin } from 'rxjs';
13
14
  import { map, mergeMap, catchError, concatMap, tap } from 'rxjs/operators';
14
15
  import { __awaiter, __decorate, __metadata } from 'tslib';
15
16
  import cookie from 'js-cookie';
16
17
  import { Type } from 'class-transformer';
17
- import * as i1$3 from '@angular/common/http';
18
+ import * as i1$4 from '@angular/common/http';
18
19
 
19
20
  const ES_CONFIG = 'ES_CONFIG';
20
21
 
@@ -71,7 +72,7 @@ class AngularFirebaseAuthModule {
71
72
  }
72
73
  }
73
74
  AngularFirebaseAuthModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
74
- AngularFirebaseAuthModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, imports: [i1.AuthModule] });
75
+ AngularFirebaseAuthModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, imports: [i1.FirebaseAppModule, i1$1.AuthModule] });
75
76
  AngularFirebaseAuthModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, providers: [
76
77
  {
77
78
  provide: 'Authentication',
@@ -115,11 +116,21 @@ AngularFirebaseAuthModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0
115
116
  },
116
117
  deps: ['AuthenticationService'],
117
118
  },
118
- ], imports: [provideAuth((injector) => getAuth(injector.get(FirebaseApp)))] });
119
+ ], imports: [provideFirebaseApp((injector) => {
120
+ const appName = injector.get(FIREBASE_APP_NAME);
121
+ return initializeApp(injector.get(FIREBASE_OPTIONS), `${appName || 'firebase'}-auth`);
122
+ }),
123
+ provideAuth(() => getAuth())] });
119
124
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
120
125
  type: NgModule,
121
126
  args: [{
122
- imports: [provideAuth((injector) => getAuth(injector.get(FirebaseApp)))],
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
+ ],
123
134
  providers: [
124
135
  {
125
136
  provide: 'Authentication',
@@ -188,7 +199,7 @@ class AngularFirestoreModule {
188
199
  }
189
200
  }
190
201
  AngularFirestoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
191
- AngularFirestoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1$1.FirestoreModule] });
202
+ AngularFirestoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1.FirebaseAppModule, i1$2.FirestoreModule] });
192
203
  AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, providers: [
193
204
  {
194
205
  provide: 'FirestoreOptions',
@@ -388,34 +399,34 @@ AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
388
399
  deps: ['FirestoreOptions', ProductFirestoreRepository],
389
400
  },
390
401
  ], 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
+ }),
391
406
  provideFirestore((injector) => {
392
- const platformId = injector.get(PLATFORM_ID);
393
- if (isPlatformServer(platformId))
394
- return getFirestore(injector.get(FirebaseApp));
395
407
  if (!MobileOperationSystemCheckerHelper.isAppleDevice())
396
- return getFirestore(injector.get(FirebaseApp));
397
- const firestore = initializeFirestore(injector.get(FirebaseApp), {
408
+ return getFirestore();
409
+ return initializeFirestore(injector.get(FirebaseApp), {
398
410
  experimentalForceLongPolling: true,
399
411
  localCache: memoryLocalCache(),
400
412
  });
401
- return firestore;
402
413
  })] });
403
414
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, decorators: [{
404
415
  type: NgModule,
405
416
  args: [{
406
417
  imports: [
407
418
  AngularElasticSeachModule,
419
+ provideFirebaseApp((injector) => {
420
+ const appName = injector.get(FIREBASE_APP_NAME);
421
+ return initializeApp$1(injector.get(FIREBASE_OPTIONS), `${appName || 'firebase'}-firestore`);
422
+ }),
408
423
  provideFirestore((injector) => {
409
- const platformId = injector.get(PLATFORM_ID);
410
- if (isPlatformServer(platformId))
411
- return getFirestore(injector.get(FirebaseApp));
412
424
  if (!MobileOperationSystemCheckerHelper.isAppleDevice())
413
- return getFirestore(injector.get(FirebaseApp));
414
- const firestore = initializeFirestore(injector.get(FirebaseApp), {
425
+ return getFirestore();
426
+ return initializeFirestore(injector.get(FirebaseApp), {
415
427
  experimentalForceLongPolling: true,
416
428
  localCache: memoryLocalCache(),
417
429
  });
418
- return firestore;
419
430
  }),
420
431
  ],
421
432
  providers: [
@@ -880,12 +891,12 @@ class AuthService {
880
891
  return authState(this.angularFireAuth).pipe(catchError(() => of(null)));
881
892
  }
882
893
  }
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 });
894
+ AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, deps: [{ token: i1$1.Auth }, { token: 'UserRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
884
895
  AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService });
885
896
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, decorators: [{
886
897
  type: Injectable
887
898
  }], ctorParameters: function () {
888
- return [{ type: i1.Auth }, { type: undefined, decorators: [{
899
+ return [{ type: i1$1.Auth }, { type: undefined, decorators: [{
889
900
  type: Inject,
890
901
  args: ['UserRepository']
891
902
  }] }];
@@ -1117,7 +1128,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1117
1128
  return [{ type: undefined, decorators: [{
1118
1129
  type: Inject,
1119
1130
  args: ['CouponRepository']
1120
- }] }, { type: i1$2.Shops, decorators: [{
1131
+ }] }, { type: i1$3.Shops, decorators: [{
1121
1132
  type: Inject,
1122
1133
  args: [DEFAULT_SHOP]
1123
1134
  }] }, { type: undefined, decorators: [{
@@ -1184,7 +1195,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1184
1195
  }] }, { type: undefined, decorators: [{
1185
1196
  type: Inject,
1186
1197
  args: ['UserRepository']
1187
- }] }, { type: i1$2.Shops, decorators: [{
1198
+ }] }, { type: i1$3.Shops, decorators: [{
1188
1199
  type: Inject,
1189
1200
  args: [DEFAULT_SHOP]
1190
1201
  }] }];
@@ -1441,7 +1452,7 @@ CartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version:
1441
1452
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, decorators: [{
1442
1453
  type: Injectable
1443
1454
  }], ctorParameters: function () {
1444
- return [{ type: AuthService }, { type: CheckoutService }, { type: i1$2.Shops, decorators: [{
1455
+ return [{ type: AuthService }, { type: CheckoutService }, { type: i1$3.Shops, decorators: [{
1445
1456
  type: Inject,
1446
1457
  args: [DEFAULT_SHOP]
1447
1458
  }] }, { type: undefined, decorators: [{
@@ -1453,7 +1464,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1453
1464
  }] }, { type: undefined, decorators: [{
1454
1465
  type: Inject,
1455
1466
  args: ['VariantRepository']
1456
- }] }, { type: i1$2.Buy2WinFirestoreRepository, decorators: [{
1467
+ }] }, { type: i1$3.Buy2WinFirestoreRepository, decorators: [{
1457
1468
  type: Inject,
1458
1469
  args: ['Buy2WinRepository']
1459
1470
  }] }];
@@ -1561,7 +1572,7 @@ class CatalogService {
1561
1572
  });
1562
1573
  }
1563
1574
  }
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 });
1575
+ 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$3.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable });
1565
1576
  CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService });
1566
1577
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
1567
1578
  type: Injectable
@@ -1572,10 +1583,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1572
1583
  }] }, { type: undefined, decorators: [{
1573
1584
  type: Inject,
1574
1585
  args: [CATEGORY_STRUCTURE]
1575
- }] }, { type: i1$2.Shops, decorators: [{
1586
+ }] }, { type: i1$3.Shops, decorators: [{
1576
1587
  type: Inject,
1577
1588
  args: [DEFAULT_SHOP]
1578
- }] }, { type: i1$2.ProductsIndex }];
1589
+ }] }, { type: i1$3.ProductsIndex }];
1579
1590
  } });
1580
1591
 
1581
1592
  class CategoryService {
@@ -1624,7 +1635,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1624
1635
  }] }, { type: undefined, decorators: [{
1625
1636
  type: Inject,
1626
1637
  args: [CATEGORY_STRUCTURE]
1627
- }] }, { type: i1$2.Shops, decorators: [{
1638
+ }] }, { type: i1$3.Shops, decorators: [{
1628
1639
  type: Inject,
1629
1640
  args: [DEFAULT_SHOP]
1630
1641
  }] }];
@@ -1807,7 +1818,7 @@ class WishlistService {
1807
1818
  });
1808
1819
  }
1809
1820
  }
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 });
1821
+ 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$3.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable });
1811
1822
  WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
1812
1823
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
1813
1824
  type: Injectable
@@ -1815,7 +1826,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1815
1826
  return [{ type: undefined, decorators: [{
1816
1827
  type: Inject,
1817
1828
  args: ['WishlistRepository']
1818
- }] }, { type: i1$2.Shops, decorators: [{
1829
+ }] }, { type: i1$3.Shops, decorators: [{
1819
1830
  type: Inject,
1820
1831
  args: [DEFAULT_SHOP]
1821
1832
  }] }, { type: undefined, decorators: [{
@@ -1824,7 +1835,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1824
1835
  }] }, { type: undefined, decorators: [{
1825
1836
  type: Inject,
1826
1837
  args: ['CategoryFilterRepository']
1827
- }] }, { type: i1$2.ProductsIndex }];
1838
+ }] }, { type: i1$3.ProductsIndex }];
1828
1839
  } });
1829
1840
 
1830
1841
  class CheckoutSubscriptionService {
@@ -1997,7 +2008,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1997
2008
  }] }, { type: undefined, decorators: [{
1998
2009
  type: Inject,
1999
2010
  args: ['ProductRepository']
2000
- }] }, { type: i1$2.Shops, decorators: [{
2011
+ }] }, { type: i1$3.Shops, decorators: [{
2001
2012
  type: Inject,
2002
2013
  args: [DEFAULT_SHOP]
2003
2014
  }] }];
@@ -2016,12 +2027,12 @@ class OrderService {
2016
2027
  return this.orderSubject;
2017
2028
  }
2018
2029
  }
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 });
2030
+ OrderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, deps: [{ token: i1$2.Firestore }, { token: 'OrderRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
2020
2031
  OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService });
2021
2032
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
2022
2033
  type: Injectable
2023
2034
  }], ctorParameters: function () {
2024
- return [{ type: i1$1.Firestore }, { type: i1$2.OrderFirestoreRepository, decorators: [{
2035
+ return [{ type: i1$2.Firestore }, { type: i1$3.OrderFirestoreRepository, decorators: [{
2025
2036
  type: Inject,
2026
2037
  args: ['OrderRepository']
2027
2038
  }] }];
@@ -2104,12 +2115,12 @@ class ShippingService {
2104
2115
  return false;
2105
2116
  }
2106
2117
  }
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 });
2118
+ ShippingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, deps: [{ token: i1$4.HttpClient }, { token: BACKEND_URL }, { token: HomeShopService }], target: i0.ɵɵFactoryTarget.Injectable });
2108
2119
  ShippingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService });
2109
2120
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, decorators: [{
2110
2121
  type: Injectable
2111
2122
  }], ctorParameters: function () {
2112
- return [{ type: i1$3.HttpClient }, { type: undefined, decorators: [{
2123
+ return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
2113
2124
  type: Inject,
2114
2125
  args: [BACKEND_URL]
2115
2126
  }] }, { type: HomeShopService }];
@@ -2137,10 +2148,7 @@ class AngularConnectModule {
2137
2148
  }
2138
2149
  }
2139
2150
  AngularConnectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
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] });
2151
+ AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] });
2144
2152
  AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, providers: [
2145
2153
  AuthService,
2146
2154
  CartService,
@@ -2153,37 +2161,11 @@ AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
2153
2161
  OrderService,
2154
2162
  ShippingService,
2155
2163
  WishlistService,
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] });
2164
+ ], imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] });
2169
2165
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, decorators: [{
2170
2166
  type: NgModule,
2171
2167
  args: [{
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
- ],
2168
+ imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule],
2187
2169
  providers: [
2188
2170
  AuthService,
2189
2171
  CartService,