@infrab4a/connect-angular 4.1.2-beta.1 → 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.
@@ -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 from '@infrab4a/connect';
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/app';
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$2 from '@angular/fire/firestore';
11
- import { Firestore, provideFirestore, getFirestore, initializeFirestore, enableIndexedDbPersistence, docSnapshots, doc } from '@angular/fire/firestore';
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 cookie from 'js-cookie';
16
15
  import { __decorate, __metadata } from 'tslib';
17
16
  import { Type } from 'class-transformer';
18
- import * as i1$4 from '@angular/common/http';
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.FirebaseAppModule, i1$1.AuthModule] });
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: [provideFirebaseApp((injector) => {
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',
@@ -198,7 +187,7 @@ class AngularFirestoreModule {
198
187
  }
199
188
  }
200
189
  AngularFirestoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
201
- AngularFirestoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1.FirebaseAppModule, i1$2.FirestoreModule] });
190
+ AngularFirestoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1$1.FirestoreModule] });
202
191
  AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, providers: [
203
192
  {
204
193
  provide: 'FirestoreOptions',
@@ -398,32 +387,26 @@ AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
398
387
  deps: ['FirestoreOptions', ProductFirestoreRepository],
399
388
  },
400
389
  ], 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
- }),
405
390
  provideFirestore((injector) => {
406
391
  if (!MobileOperationSystemCheckerHelper.isAppleDevice())
407
- return getFirestore();
408
- const firestore = initializeFirestore(injector.get(FirebaseApp), { experimentalForceLongPolling: true });
409
- enableIndexedDbPersistence(firestore).catch(console.error);
410
- return firestore;
392
+ return getFirestore(injector.get(FirebaseApp));
393
+ return initializeFirestore(injector.get(FirebaseApp), {
394
+ experimentalForceLongPolling: true,
395
+ localCache: memoryLocalCache(),
396
+ });
411
397
  })] });
412
398
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, decorators: [{
413
399
  type: NgModule,
414
400
  args: [{
415
401
  imports: [
416
402
  AngularElasticSeachModule,
417
- provideFirebaseApp((injector) => {
418
- const appName = injector.get(FIREBASE_APP_NAME);
419
- return initializeApp$1(injector.get(FIREBASE_OPTIONS), `${appName || 'firebase'}-firestore`);
420
- }),
421
403
  provideFirestore((injector) => {
422
404
  if (!MobileOperationSystemCheckerHelper.isAppleDevice())
423
- return getFirestore();
424
- const firestore = initializeFirestore(injector.get(FirebaseApp), { experimentalForceLongPolling: true });
425
- enableIndexedDbPersistence(firestore).catch(console.error);
426
- return firestore;
405
+ return getFirestore(injector.get(FirebaseApp));
406
+ return initializeFirestore(injector.get(FirebaseApp), {
407
+ experimentalForceLongPolling: true,
408
+ localCache: memoryLocalCache(),
409
+ });
427
410
  }),
428
411
  ],
429
412
  providers: [
@@ -888,11 +871,11 @@ class AuthService {
888
871
  return authState(this.angularFireAuth).pipe(catchError(() => of(null)));
889
872
  }
890
873
  }
891
- 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 });
874
+ 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 });
892
875
  AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService });
893
876
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, decorators: [{
894
877
  type: Injectable
895
- }], ctorParameters: function () { return [{ type: i1$1.Auth }, { type: undefined, decorators: [{
878
+ }], ctorParameters: function () { return [{ type: i1.Auth }, { type: undefined, decorators: [{
896
879
  type: Inject,
897
880
  args: ['UserRepository']
898
881
  }] }]; } });
@@ -1097,7 +1080,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1097
1080
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1098
1081
  type: Inject,
1099
1082
  args: ['CouponRepository']
1100
- }] }, { type: i1$3.Shops, decorators: [{
1083
+ }] }, { type: i1$2.Shops, decorators: [{
1101
1084
  type: Inject,
1102
1085
  args: [DEFAULT_SHOP]
1103
1086
  }] }, { type: undefined, decorators: [{
@@ -1164,7 +1147,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1164
1147
  }] }, { type: undefined, decorators: [{
1165
1148
  type: Inject,
1166
1149
  args: ['UserRepository']
1167
- }] }, { type: i1$3.Shops, decorators: [{
1150
+ }] }, { type: i1$2.Shops, decorators: [{
1168
1151
  type: Inject,
1169
1152
  args: [DEFAULT_SHOP]
1170
1153
  }] }]; } });
@@ -1422,7 +1405,7 @@ CartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15
1422
1405
  CartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService });
1423
1406
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, decorators: [{
1424
1407
  type: Injectable
1425
- }], ctorParameters: function () { return [{ type: AuthService }, { type: CheckoutService }, { type: i1$3.Shops, decorators: [{
1408
+ }], ctorParameters: function () { return [{ type: AuthService }, { type: CheckoutService }, { type: i1$2.Shops, decorators: [{
1426
1409
  type: Inject,
1427
1410
  args: [DEFAULT_SHOP]
1428
1411
  }] }, { type: undefined, decorators: [{
@@ -1434,7 +1417,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1434
1417
  }] }, { type: undefined, decorators: [{
1435
1418
  type: Inject,
1436
1419
  args: ['VariantRepository']
1437
- }] }, { type: i1$3.Buy2WinFirestoreRepository, decorators: [{
1420
+ }] }, { type: i1$2.Buy2WinFirestoreRepository, decorators: [{
1438
1421
  type: Inject,
1439
1422
  args: ['Buy2WinRepository']
1440
1423
  }] }]; } });
@@ -1543,7 +1526,7 @@ class CatalogService {
1543
1526
  .then((data) => ({ id: { operator: Where.IN, value: data.hits.map(({ _source }) => _source.id) } }));
1544
1527
  }
1545
1528
  }
1546
- 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 });
1529
+ 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 });
1547
1530
  CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService });
1548
1531
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
1549
1532
  type: Injectable
@@ -1553,10 +1536,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1553
1536
  }] }, { type: undefined, decorators: [{
1554
1537
  type: Inject,
1555
1538
  args: [CATEGORY_STRUCTURE]
1556
- }] }, { type: i1$3.Shops, decorators: [{
1539
+ }] }, { type: i1$2.Shops, decorators: [{
1557
1540
  type: Inject,
1558
1541
  args: [DEFAULT_SHOP]
1559
- }] }, { type: i1$3.ProductsIndex }]; } });
1542
+ }] }, { type: i1$2.ProductsIndex }]; } });
1560
1543
 
1561
1544
  class CategoryService {
1562
1545
  constructor(productRepository, categoryRepository, categoryFilterRepository, categoryStructureAdapter, shop) {
@@ -1599,7 +1582,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1599
1582
  }] }, { type: undefined, decorators: [{
1600
1583
  type: Inject,
1601
1584
  args: [CATEGORY_STRUCTURE]
1602
- }] }, { type: i1$3.Shops, decorators: [{
1585
+ }] }, { type: i1$2.Shops, decorators: [{
1603
1586
  type: Inject,
1604
1587
  args: [DEFAULT_SHOP]
1605
1588
  }] }]; } });
@@ -1761,14 +1744,14 @@ class WishlistService {
1761
1744
  return wishlist;
1762
1745
  }
1763
1746
  }
1764
- 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 });
1747
+ 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 });
1765
1748
  WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
1766
1749
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
1767
1750
  type: Injectable
1768
1751
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1769
1752
  type: Inject,
1770
1753
  args: ['WishlistRepository']
1771
- }] }, { type: i1$3.Shops, decorators: [{
1754
+ }] }, { type: i1$2.Shops, decorators: [{
1772
1755
  type: Inject,
1773
1756
  args: [DEFAULT_SHOP]
1774
1757
  }] }, { type: undefined, decorators: [{
@@ -1777,7 +1760,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1777
1760
  }] }, { type: undefined, decorators: [{
1778
1761
  type: Inject,
1779
1762
  args: ['CategoryFilterRepository']
1780
- }] }, { type: i1$3.ProductsIndex }]; } });
1763
+ }] }, { type: i1$2.ProductsIndex }]; } });
1781
1764
 
1782
1765
  class CheckoutSubscriptionService {
1783
1766
  constructor(checkoutSubscriptionRepository, subscriptionRepository, couponService) {
@@ -1944,7 +1927,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1944
1927
  }] }, { type: undefined, decorators: [{
1945
1928
  type: Inject,
1946
1929
  args: ['ProductRepository']
1947
- }] }, { type: i1$3.Shops, decorators: [{
1930
+ }] }, { type: i1$2.Shops, decorators: [{
1948
1931
  type: Inject,
1949
1932
  args: [DEFAULT_SHOP]
1950
1933
  }] }]; } });
@@ -1962,11 +1945,11 @@ class OrderService {
1962
1945
  return this.orderSubject;
1963
1946
  }
1964
1947
  }
1965
- 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 });
1948
+ 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 });
1966
1949
  OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService });
1967
1950
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
1968
1951
  type: Injectable
1969
- }], ctorParameters: function () { return [{ type: i1$2.Firestore }, { type: i1$3.OrderFirestoreRepository, decorators: [{
1952
+ }], ctorParameters: function () { return [{ type: i1$1.Firestore }, { type: i1$2.OrderFirestoreRepository, decorators: [{
1970
1953
  type: Inject,
1971
1954
  args: ['OrderRepository']
1972
1955
  }] }]; } });
@@ -2048,11 +2031,11 @@ class ShippingService {
2048
2031
  return false;
2049
2032
  }
2050
2033
  }
2051
- 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 });
2034
+ 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 });
2052
2035
  ShippingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService });
2053
2036
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, decorators: [{
2054
2037
  type: Injectable
2055
- }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
2038
+ }], ctorParameters: function () { return [{ type: i1$3.HttpClient }, { type: undefined, decorators: [{
2056
2039
  type: Inject,
2057
2040
  args: [BACKEND_URL]
2058
2041
  }] }, { type: HomeShopService }]; } });
@@ -2079,7 +2062,10 @@ class AngularConnectModule {
2079
2062
  }
2080
2063
  }
2081
2064
  AngularConnectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2082
- AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] });
2065
+ AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [i1$4.FirebaseAppModule, AngularElasticSeachModule,
2066
+ AngularFirebaseAuthModule,
2067
+ AngularFirestoreModule,
2068
+ AngularHasuraGraphQLModule] });
2083
2069
  AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, providers: [
2084
2070
  AuthService,
2085
2071
  CartService,
@@ -2092,11 +2078,45 @@ AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
2092
2078
  OrderService,
2093
2079
  ShippingService,
2094
2080
  WishlistService,
2095
- ], imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] });
2081
+ ], imports: [provideFirebaseApp((injector) => {
2082
+ const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
2083
+ console.log('fire', appName);
2084
+ console.log('options', FIREBASE_OPTIONS);
2085
+ console.log('fire', getApp);
2086
+ try {
2087
+ return getApp(appName);
2088
+ }
2089
+ catch (error) {
2090
+ console.log('initializeApp', error instanceof Error && error.message);
2091
+ return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
2092
+ }
2093
+ }),
2094
+ AngularElasticSeachModule,
2095
+ AngularFirebaseAuthModule,
2096
+ AngularFirestoreModule,
2097
+ AngularHasuraGraphQLModule] });
2096
2098
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, decorators: [{
2097
2099
  type: NgModule,
2098
2100
  args: [{
2099
- imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule],
2101
+ imports: [
2102
+ provideFirebaseApp((injector) => {
2103
+ const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
2104
+ console.log('fire', appName);
2105
+ console.log('options', FIREBASE_OPTIONS);
2106
+ console.log('fire', getApp);
2107
+ try {
2108
+ return getApp(appName);
2109
+ }
2110
+ catch (error) {
2111
+ console.log('initializeApp', error instanceof Error && error.message);
2112
+ return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
2113
+ }
2114
+ }),
2115
+ AngularElasticSeachModule,
2116
+ AngularFirebaseAuthModule,
2117
+ AngularFirestoreModule,
2118
+ AngularHasuraGraphQLModule,
2119
+ ],
2100
2120
  providers: [
2101
2121
  AuthService,
2102
2122
  CartService,