@infrab4a/connect-angular 4.1.3-beta.0 → 4.1.3

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
- 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';
9
+ import { isPlatformBrowser, isPlatformServer } from '@angular/common';
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,25 +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 appName
122
- ? initializeApp(injector.get(FIREBASE_OPTIONS), appName)
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)
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',
@@ -202,7 +187,7 @@ class AngularFirestoreModule {
202
187
  }
203
188
  }
204
189
  AngularFirestoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
205
- 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] });
206
191
  AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, providers: [
207
192
  {
208
193
  provide: 'FirestoreOptions',
@@ -402,17 +387,16 @@ AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
402
387
  deps: ['FirestoreOptions', ProductFirestoreRepository],
403
388
  },
404
389
  ], imports: [AngularElasticSeachModule,
405
- provideFirebaseApp((injector) => {
406
- const appName = injector.get(FIREBASE_APP_NAME);
407
- return appName
408
- ? initializeApp$1(injector.get(FIREBASE_OPTIONS), appName)
409
- : initializeApp$1(injector.get(FIREBASE_OPTIONS));
410
- }),
411
390
  provideFirestore((injector) => {
391
+ const platformId = injector.get(PLATFORM_ID);
392
+ if (isPlatformServer(platformId))
393
+ return getFirestore(injector.get(FirebaseApp));
412
394
  if (!MobileOperationSystemCheckerHelper.isAppleDevice())
413
- return getFirestore();
414
- const firestore = initializeFirestore(injector.get(FirebaseApp), { experimentalForceLongPolling: true });
415
- enableIndexedDbPersistence(firestore).catch(console.error);
395
+ return getFirestore(injector.get(FirebaseApp));
396
+ const firestore = initializeFirestore(injector.get(FirebaseApp), {
397
+ experimentalForceLongPolling: true,
398
+ localCache: memoryLocalCache(),
399
+ });
416
400
  return firestore;
417
401
  })] });
418
402
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, decorators: [{
@@ -420,17 +404,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
420
404
  args: [{
421
405
  imports: [
422
406
  AngularElasticSeachModule,
423
- provideFirebaseApp((injector) => {
424
- const appName = injector.get(FIREBASE_APP_NAME);
425
- return appName
426
- ? initializeApp$1(injector.get(FIREBASE_OPTIONS), appName)
427
- : initializeApp$1(injector.get(FIREBASE_OPTIONS));
428
- }),
429
407
  provideFirestore((injector) => {
408
+ const platformId = injector.get(PLATFORM_ID);
409
+ if (isPlatformServer(platformId))
410
+ return getFirestore(injector.get(FirebaseApp));
430
411
  if (!MobileOperationSystemCheckerHelper.isAppleDevice())
431
- return getFirestore();
432
- const firestore = initializeFirestore(injector.get(FirebaseApp), { experimentalForceLongPolling: true });
433
- enableIndexedDbPersistence(firestore).catch(console.error);
412
+ return getFirestore(injector.get(FirebaseApp));
413
+ const firestore = initializeFirestore(injector.get(FirebaseApp), {
414
+ experimentalForceLongPolling: true,
415
+ localCache: memoryLocalCache(),
416
+ });
434
417
  return firestore;
435
418
  }),
436
419
  ],
@@ -896,11 +879,11 @@ class AuthService {
896
879
  return authState(this.angularFireAuth).pipe(catchError(() => of(null)));
897
880
  }
898
881
  }
899
- 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 });
882
+ 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 });
900
883
  AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService });
901
884
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, decorators: [{
902
885
  type: Injectable
903
- }], ctorParameters: function () { return [{ type: i1$1.Auth }, { type: undefined, decorators: [{
886
+ }], ctorParameters: function () { return [{ type: i1.Auth }, { type: undefined, decorators: [{
904
887
  type: Inject,
905
888
  args: ['UserRepository']
906
889
  }] }]; } });
@@ -1105,7 +1088,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1105
1088
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1106
1089
  type: Inject,
1107
1090
  args: ['CouponRepository']
1108
- }] }, { type: i1$3.Shops, decorators: [{
1091
+ }] }, { type: i1$2.Shops, decorators: [{
1109
1092
  type: Inject,
1110
1093
  args: [DEFAULT_SHOP]
1111
1094
  }] }, { type: undefined, decorators: [{
@@ -1172,7 +1155,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1172
1155
  }] }, { type: undefined, decorators: [{
1173
1156
  type: Inject,
1174
1157
  args: ['UserRepository']
1175
- }] }, { type: i1$3.Shops, decorators: [{
1158
+ }] }, { type: i1$2.Shops, decorators: [{
1176
1159
  type: Inject,
1177
1160
  args: [DEFAULT_SHOP]
1178
1161
  }] }]; } });
@@ -1430,7 +1413,7 @@ CartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15
1430
1413
  CartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService });
1431
1414
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, decorators: [{
1432
1415
  type: Injectable
1433
- }], ctorParameters: function () { return [{ type: AuthService }, { type: CheckoutService }, { type: i1$3.Shops, decorators: [{
1416
+ }], ctorParameters: function () { return [{ type: AuthService }, { type: CheckoutService }, { type: i1$2.Shops, decorators: [{
1434
1417
  type: Inject,
1435
1418
  args: [DEFAULT_SHOP]
1436
1419
  }] }, { type: undefined, decorators: [{
@@ -1442,7 +1425,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1442
1425
  }] }, { type: undefined, decorators: [{
1443
1426
  type: Inject,
1444
1427
  args: ['VariantRepository']
1445
- }] }, { type: i1$3.Buy2WinFirestoreRepository, decorators: [{
1428
+ }] }, { type: i1$2.Buy2WinFirestoreRepository, decorators: [{
1446
1429
  type: Inject,
1447
1430
  args: ['Buy2WinRepository']
1448
1431
  }] }]; } });
@@ -1551,7 +1534,7 @@ class CatalogService {
1551
1534
  .then((data) => ({ id: { operator: Where.IN, value: data.hits.map(({ _source }) => _source.id) } }));
1552
1535
  }
1553
1536
  }
1554
- 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 });
1537
+ 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 });
1555
1538
  CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService });
1556
1539
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
1557
1540
  type: Injectable
@@ -1561,10 +1544,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1561
1544
  }] }, { type: undefined, decorators: [{
1562
1545
  type: Inject,
1563
1546
  args: [CATEGORY_STRUCTURE]
1564
- }] }, { type: i1$3.Shops, decorators: [{
1547
+ }] }, { type: i1$2.Shops, decorators: [{
1565
1548
  type: Inject,
1566
1549
  args: [DEFAULT_SHOP]
1567
- }] }, { type: i1$3.ProductsIndex }]; } });
1550
+ }] }, { type: i1$2.ProductsIndex }]; } });
1568
1551
 
1569
1552
  class CategoryService {
1570
1553
  constructor(productRepository, categoryRepository, categoryFilterRepository, categoryStructureAdapter, shop) {
@@ -1607,7 +1590,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1607
1590
  }] }, { type: undefined, decorators: [{
1608
1591
  type: Inject,
1609
1592
  args: [CATEGORY_STRUCTURE]
1610
- }] }, { type: i1$3.Shops, decorators: [{
1593
+ }] }, { type: i1$2.Shops, decorators: [{
1611
1594
  type: Inject,
1612
1595
  args: [DEFAULT_SHOP]
1613
1596
  }] }]; } });
@@ -1769,14 +1752,14 @@ class WishlistService {
1769
1752
  return wishlist;
1770
1753
  }
1771
1754
  }
1772
- 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 });
1755
+ 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 });
1773
1756
  WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
1774
1757
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
1775
1758
  type: Injectable
1776
1759
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1777
1760
  type: Inject,
1778
1761
  args: ['WishlistRepository']
1779
- }] }, { type: i1$3.Shops, decorators: [{
1762
+ }] }, { type: i1$2.Shops, decorators: [{
1780
1763
  type: Inject,
1781
1764
  args: [DEFAULT_SHOP]
1782
1765
  }] }, { type: undefined, decorators: [{
@@ -1785,7 +1768,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1785
1768
  }] }, { type: undefined, decorators: [{
1786
1769
  type: Inject,
1787
1770
  args: ['CategoryFilterRepository']
1788
- }] }, { type: i1$3.ProductsIndex }]; } });
1771
+ }] }, { type: i1$2.ProductsIndex }]; } });
1789
1772
 
1790
1773
  class CheckoutSubscriptionService {
1791
1774
  constructor(checkoutSubscriptionRepository, subscriptionRepository, couponService) {
@@ -1952,7 +1935,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1952
1935
  }] }, { type: undefined, decorators: [{
1953
1936
  type: Inject,
1954
1937
  args: ['ProductRepository']
1955
- }] }, { type: i1$3.Shops, decorators: [{
1938
+ }] }, { type: i1$2.Shops, decorators: [{
1956
1939
  type: Inject,
1957
1940
  args: [DEFAULT_SHOP]
1958
1941
  }] }]; } });
@@ -1970,11 +1953,11 @@ class OrderService {
1970
1953
  return this.orderSubject;
1971
1954
  }
1972
1955
  }
1973
- 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 });
1956
+ 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 });
1974
1957
  OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService });
1975
1958
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
1976
1959
  type: Injectable
1977
- }], ctorParameters: function () { return [{ type: i1$2.Firestore }, { type: i1$3.OrderFirestoreRepository, decorators: [{
1960
+ }], ctorParameters: function () { return [{ type: i1$1.Firestore }, { type: i1$2.OrderFirestoreRepository, decorators: [{
1978
1961
  type: Inject,
1979
1962
  args: ['OrderRepository']
1980
1963
  }] }]; } });
@@ -2056,11 +2039,11 @@ class ShippingService {
2056
2039
  return false;
2057
2040
  }
2058
2041
  }
2059
- 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 });
2042
+ 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 });
2060
2043
  ShippingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService });
2061
2044
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, decorators: [{
2062
2045
  type: Injectable
2063
- }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
2046
+ }], ctorParameters: function () { return [{ type: i1$3.HttpClient }, { type: undefined, decorators: [{
2064
2047
  type: Inject,
2065
2048
  args: [BACKEND_URL]
2066
2049
  }] }, { type: HomeShopService }]; } });
@@ -2087,7 +2070,10 @@ class AngularConnectModule {
2087
2070
  }
2088
2071
  }
2089
2072
  AngularConnectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2090
- AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] });
2073
+ AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [i1$4.FirebaseAppModule, AngularElasticSeachModule,
2074
+ AngularFirebaseAuthModule,
2075
+ AngularFirestoreModule,
2076
+ AngularHasuraGraphQLModule] });
2091
2077
  AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, providers: [
2092
2078
  AuthService,
2093
2079
  CartService,
@@ -2100,11 +2086,37 @@ AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
2100
2086
  OrderService,
2101
2087
  ShippingService,
2102
2088
  WishlistService,
2103
- ], imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] });
2089
+ ], imports: [provideFirebaseApp((injector) => {
2090
+ const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
2091
+ try {
2092
+ return getApp(appName);
2093
+ }
2094
+ catch (error) {
2095
+ return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
2096
+ }
2097
+ }),
2098
+ AngularElasticSeachModule,
2099
+ AngularFirebaseAuthModule,
2100
+ AngularFirestoreModule,
2101
+ AngularHasuraGraphQLModule] });
2104
2102
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, decorators: [{
2105
2103
  type: NgModule,
2106
2104
  args: [{
2107
- imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule],
2105
+ imports: [
2106
+ provideFirebaseApp((injector) => {
2107
+ const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
2108
+ try {
2109
+ return getApp(appName);
2110
+ }
2111
+ catch (error) {
2112
+ return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
2113
+ }
2114
+ }),
2115
+ AngularElasticSeachModule,
2116
+ AngularFirebaseAuthModule,
2117
+ AngularFirestoreModule,
2118
+ AngularHasuraGraphQLModule,
2119
+ ],
2108
2120
  providers: [
2109
2121
  AuthService,
2110
2122
  CartService,