@infrab4a/connect-angular 4.1.2-beta.15 → 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';
11
- import { Firestore, provideFirestore, getFirestore, initializeFirestore, enableIndexedDbPersistence, docSnapshots, doc } from '@angular/fire/firestore';
9
+ import { isPlatformBrowser } from '@angular/common';
10
+ import * as i1$2 from '@angular/fire/firestore';
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 cookie from 'js-cookie';
15
16
  import { __decorate, __metadata } from 'tslib';
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',
@@ -187,7 +198,7 @@ class AngularFirestoreModule {
187
198
  }
188
199
  }
189
200
  AngularFirestoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
190
- AngularFirestoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1$1.FirestoreModule] });
201
+ AngularFirestoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1.FirebaseAppModule, i1$2.FirestoreModule] });
191
202
  AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, providers: [
192
203
  {
193
204
  provide: 'FirestoreOptions',
@@ -387,32 +398,34 @@ AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
387
398
  deps: ['FirestoreOptions', ProductFirestoreRepository],
388
399
  },
389
400
  ], imports: [AngularElasticSeachModule,
401
+ provideFirebaseApp((injector) => {
402
+ const appName = injector.get(FIREBASE_APP_NAME);
403
+ return initializeApp$1(injector.get(FIREBASE_OPTIONS), `${appName || 'firebase'}-firestore`);
404
+ }),
390
405
  provideFirestore((injector) => {
391
- const platformId = injector.get(PLATFORM_ID);
392
- console.log('platformId', platformId);
393
- if (isPlatformServer(platformId))
394
- return getFirestore(injector.get(FirebaseApp));
395
406
  if (!MobileOperationSystemCheckerHelper.isAppleDevice())
396
- return getFirestore(injector.get(FirebaseApp));
397
- const firestore = initializeFirestore(injector.get(FirebaseApp), { experimentalForceLongPolling: true });
398
- enableIndexedDbPersistence(firestore).catch(console.error);
399
- return firestore;
407
+ return getFirestore();
408
+ return initializeFirestore(injector.get(FirebaseApp), {
409
+ experimentalForceLongPolling: true,
410
+ localCache: memoryLocalCache(),
411
+ });
400
412
  })] });
401
413
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, decorators: [{
402
414
  type: NgModule,
403
415
  args: [{
404
416
  imports: [
405
417
  AngularElasticSeachModule,
418
+ provideFirebaseApp((injector) => {
419
+ const appName = injector.get(FIREBASE_APP_NAME);
420
+ return initializeApp$1(injector.get(FIREBASE_OPTIONS), `${appName || 'firebase'}-firestore`);
421
+ }),
406
422
  provideFirestore((injector) => {
407
- const platformId = injector.get(PLATFORM_ID);
408
- console.log('platformId', platformId);
409
- if (isPlatformServer(platformId))
410
- return getFirestore(injector.get(FirebaseApp));
411
423
  if (!MobileOperationSystemCheckerHelper.isAppleDevice())
412
- return getFirestore(injector.get(FirebaseApp));
413
- const firestore = initializeFirestore(injector.get(FirebaseApp), { experimentalForceLongPolling: true });
414
- enableIndexedDbPersistence(firestore).catch(console.error);
415
- return firestore;
424
+ return getFirestore();
425
+ return initializeFirestore(injector.get(FirebaseApp), {
426
+ experimentalForceLongPolling: true,
427
+ localCache: memoryLocalCache(),
428
+ });
416
429
  }),
417
430
  ],
418
431
  providers: [
@@ -877,11 +890,11 @@ class AuthService {
877
890
  return authState(this.angularFireAuth).pipe(catchError(() => of(null)));
878
891
  }
879
892
  }
880
- 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
+ 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 });
881
894
  AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService });
882
895
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, decorators: [{
883
896
  type: Injectable
884
- }], ctorParameters: function () { return [{ type: i1.Auth }, { type: undefined, decorators: [{
897
+ }], ctorParameters: function () { return [{ type: i1$1.Auth }, { type: undefined, decorators: [{
885
898
  type: Inject,
886
899
  args: ['UserRepository']
887
900
  }] }]; } });
@@ -1086,7 +1099,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1086
1099
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1087
1100
  type: Inject,
1088
1101
  args: ['CouponRepository']
1089
- }] }, { type: i1$2.Shops, decorators: [{
1102
+ }] }, { type: i1$3.Shops, decorators: [{
1090
1103
  type: Inject,
1091
1104
  args: [DEFAULT_SHOP]
1092
1105
  }] }, { type: undefined, decorators: [{
@@ -1153,7 +1166,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1153
1166
  }] }, { type: undefined, decorators: [{
1154
1167
  type: Inject,
1155
1168
  args: ['UserRepository']
1156
- }] }, { type: i1$2.Shops, decorators: [{
1169
+ }] }, { type: i1$3.Shops, decorators: [{
1157
1170
  type: Inject,
1158
1171
  args: [DEFAULT_SHOP]
1159
1172
  }] }]; } });
@@ -1411,7 +1424,7 @@ CartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15
1411
1424
  CartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService });
1412
1425
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, decorators: [{
1413
1426
  type: Injectable
1414
- }], ctorParameters: function () { return [{ type: AuthService }, { type: CheckoutService }, { type: i1$2.Shops, decorators: [{
1427
+ }], ctorParameters: function () { return [{ type: AuthService }, { type: CheckoutService }, { type: i1$3.Shops, decorators: [{
1415
1428
  type: Inject,
1416
1429
  args: [DEFAULT_SHOP]
1417
1430
  }] }, { type: undefined, decorators: [{
@@ -1423,7 +1436,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1423
1436
  }] }, { type: undefined, decorators: [{
1424
1437
  type: Inject,
1425
1438
  args: ['VariantRepository']
1426
- }] }, { type: i1$2.Buy2WinFirestoreRepository, decorators: [{
1439
+ }] }, { type: i1$3.Buy2WinFirestoreRepository, decorators: [{
1427
1440
  type: Inject,
1428
1441
  args: ['Buy2WinRepository']
1429
1442
  }] }]; } });
@@ -1532,7 +1545,7 @@ class CatalogService {
1532
1545
  .then((data) => ({ id: { operator: Where.IN, value: data.hits.map(({ _source }) => _source.id) } }));
1533
1546
  }
1534
1547
  }
1535
- 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 });
1548
+ 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 });
1536
1549
  CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService });
1537
1550
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
1538
1551
  type: Injectable
@@ -1542,10 +1555,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1542
1555
  }] }, { type: undefined, decorators: [{
1543
1556
  type: Inject,
1544
1557
  args: [CATEGORY_STRUCTURE]
1545
- }] }, { type: i1$2.Shops, decorators: [{
1558
+ }] }, { type: i1$3.Shops, decorators: [{
1546
1559
  type: Inject,
1547
1560
  args: [DEFAULT_SHOP]
1548
- }] }, { type: i1$2.ProductsIndex }]; } });
1561
+ }] }, { type: i1$3.ProductsIndex }]; } });
1549
1562
 
1550
1563
  class CategoryService {
1551
1564
  constructor(productRepository, categoryRepository, categoryFilterRepository, categoryStructureAdapter, shop) {
@@ -1588,7 +1601,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1588
1601
  }] }, { type: undefined, decorators: [{
1589
1602
  type: Inject,
1590
1603
  args: [CATEGORY_STRUCTURE]
1591
- }] }, { type: i1$2.Shops, decorators: [{
1604
+ }] }, { type: i1$3.Shops, decorators: [{
1592
1605
  type: Inject,
1593
1606
  args: [DEFAULT_SHOP]
1594
1607
  }] }]; } });
@@ -1750,14 +1763,14 @@ class WishlistService {
1750
1763
  return wishlist;
1751
1764
  }
1752
1765
  }
1753
- 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 });
1766
+ 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 });
1754
1767
  WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
1755
1768
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
1756
1769
  type: Injectable
1757
1770
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1758
1771
  type: Inject,
1759
1772
  args: ['WishlistRepository']
1760
- }] }, { type: i1$2.Shops, decorators: [{
1773
+ }] }, { type: i1$3.Shops, decorators: [{
1761
1774
  type: Inject,
1762
1775
  args: [DEFAULT_SHOP]
1763
1776
  }] }, { type: undefined, decorators: [{
@@ -1766,7 +1779,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1766
1779
  }] }, { type: undefined, decorators: [{
1767
1780
  type: Inject,
1768
1781
  args: ['CategoryFilterRepository']
1769
- }] }, { type: i1$2.ProductsIndex }]; } });
1782
+ }] }, { type: i1$3.ProductsIndex }]; } });
1770
1783
 
1771
1784
  class CheckoutSubscriptionService {
1772
1785
  constructor(checkoutSubscriptionRepository, subscriptionRepository, couponService) {
@@ -1933,7 +1946,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1933
1946
  }] }, { type: undefined, decorators: [{
1934
1947
  type: Inject,
1935
1948
  args: ['ProductRepository']
1936
- }] }, { type: i1$2.Shops, decorators: [{
1949
+ }] }, { type: i1$3.Shops, decorators: [{
1937
1950
  type: Inject,
1938
1951
  args: [DEFAULT_SHOP]
1939
1952
  }] }]; } });
@@ -1951,11 +1964,11 @@ class OrderService {
1951
1964
  return this.orderSubject;
1952
1965
  }
1953
1966
  }
1954
- 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 });
1967
+ 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 });
1955
1968
  OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService });
1956
1969
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
1957
1970
  type: Injectable
1958
- }], ctorParameters: function () { return [{ type: i1$1.Firestore }, { type: i1$2.OrderFirestoreRepository, decorators: [{
1971
+ }], ctorParameters: function () { return [{ type: i1$2.Firestore }, { type: i1$3.OrderFirestoreRepository, decorators: [{
1959
1972
  type: Inject,
1960
1973
  args: ['OrderRepository']
1961
1974
  }] }]; } });
@@ -2037,11 +2050,11 @@ class ShippingService {
2037
2050
  return false;
2038
2051
  }
2039
2052
  }
2040
- 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 });
2053
+ 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 });
2041
2054
  ShippingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService });
2042
2055
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, decorators: [{
2043
2056
  type: Injectable
2044
- }], ctorParameters: function () { return [{ type: i1$3.HttpClient }, { type: undefined, decorators: [{
2057
+ }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
2045
2058
  type: Inject,
2046
2059
  args: [BACKEND_URL]
2047
2060
  }] }, { type: HomeShopService }]; } });
@@ -2068,10 +2081,7 @@ class AngularConnectModule {
2068
2081
  }
2069
2082
  }
2070
2083
  AngularConnectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2071
- AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [i1$4.FirebaseAppModule, AngularElasticSeachModule,
2072
- AngularFirebaseAuthModule,
2073
- AngularFirestoreModule,
2074
- AngularHasuraGraphQLModule] });
2084
+ AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] });
2075
2085
  AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, providers: [
2076
2086
  AuthService,
2077
2087
  CartService,
@@ -2084,45 +2094,11 @@ AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
2084
2094
  OrderService,
2085
2095
  ShippingService,
2086
2096
  WishlistService,
2087
- ], imports: [provideFirebaseApp((injector) => {
2088
- const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
2089
- console.log('fire', appName);
2090
- console.log('options', FIREBASE_OPTIONS);
2091
- console.log('fire', getApp);
2092
- try {
2093
- return getApp(appName);
2094
- }
2095
- catch (error) {
2096
- console.log('initializeApp', error instanceof Error && error.message);
2097
- return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
2098
- }
2099
- }),
2100
- AngularElasticSeachModule,
2101
- AngularFirebaseAuthModule,
2102
- AngularFirestoreModule,
2103
- AngularHasuraGraphQLModule] });
2097
+ ], imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] });
2104
2098
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, decorators: [{
2105
2099
  type: NgModule,
2106
2100
  args: [{
2107
- imports: [
2108
- provideFirebaseApp((injector) => {
2109
- const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
2110
- console.log('fire', appName);
2111
- console.log('options', FIREBASE_OPTIONS);
2112
- console.log('fire', getApp);
2113
- try {
2114
- return getApp(appName);
2115
- }
2116
- catch (error) {
2117
- console.log('initializeApp', error instanceof Error && error.message);
2118
- return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
2119
- }
2120
- }),
2121
- AngularElasticSeachModule,
2122
- AngularFirebaseAuthModule,
2123
- AngularFirestoreModule,
2124
- AngularHasuraGraphQLModule,
2125
- ],
2101
+ imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule],
2126
2102
  providers: [
2127
2103
  AuthService,
2128
2104
  CartService,