@infrab4a/connect-angular 4.1.2-beta.16 → 4.1.2-beta.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,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, getApp, 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 { getApp as getApp$1, 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,31 @@ 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) || '[DEFAULT]';
121
+ try {
122
+ return getApp(appName);
123
+ }
124
+ catch (error) {
125
+ return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
126
+ }
127
+ }),
128
+ provideAuth((injector) => getAuth(injector.get(FirebaseApp)))] });
119
129
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
120
130
  type: NgModule,
121
131
  args: [{
122
- imports: [provideAuth((injector) => getAuth(injector.get(FirebaseApp)))],
132
+ imports: [
133
+ provideFirebaseApp((injector) => {
134
+ const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
135
+ try {
136
+ return getApp(appName);
137
+ }
138
+ catch (error) {
139
+ return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
140
+ }
141
+ }),
142
+ provideAuth((injector) => getAuth(injector.get(FirebaseApp))),
143
+ ],
123
144
  providers: [
124
145
  {
125
146
  provide: 'Authentication',
@@ -187,7 +208,7 @@ class AngularFirestoreModule {
187
208
  }
188
209
  }
189
210
  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] });
211
+ AngularFirestoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1.FirebaseAppModule, i1$2.FirestoreModule] });
191
212
  AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, providers: [
192
213
  {
193
214
  provide: 'FirestoreOptions',
@@ -387,34 +408,44 @@ AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
387
408
  deps: ['FirestoreOptions', ProductFirestoreRepository],
388
409
  },
389
410
  ], imports: [AngularElasticSeachModule,
411
+ provideFirebaseApp((injector) => {
412
+ const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
413
+ try {
414
+ return getApp$1(appName);
415
+ }
416
+ catch (error) {
417
+ return initializeApp$1(injector.get(FIREBASE_OPTIONS), appName);
418
+ }
419
+ }),
390
420
  provideFirestore((injector) => {
391
- const platformId = injector.get(PLATFORM_ID);
392
- if (isPlatformServer(platformId))
393
- return getFirestore(injector.get(FirebaseApp));
394
421
  if (!MobileOperationSystemCheckerHelper.isAppleDevice())
395
422
  return getFirestore(injector.get(FirebaseApp));
396
- const firestore = initializeFirestore(injector.get(FirebaseApp), {
423
+ return initializeFirestore(injector.get(FirebaseApp), {
397
424
  experimentalForceLongPolling: true,
398
425
  localCache: memoryLocalCache(),
399
426
  });
400
- return firestore;
401
427
  })] });
402
428
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, decorators: [{
403
429
  type: NgModule,
404
430
  args: [{
405
431
  imports: [
406
432
  AngularElasticSeachModule,
433
+ provideFirebaseApp((injector) => {
434
+ const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
435
+ try {
436
+ return getApp$1(appName);
437
+ }
438
+ catch (error) {
439
+ return initializeApp$1(injector.get(FIREBASE_OPTIONS), appName);
440
+ }
441
+ }),
407
442
  provideFirestore((injector) => {
408
- const platformId = injector.get(PLATFORM_ID);
409
- if (isPlatformServer(platformId))
410
- return getFirestore(injector.get(FirebaseApp));
411
443
  if (!MobileOperationSystemCheckerHelper.isAppleDevice())
412
444
  return getFirestore(injector.get(FirebaseApp));
413
- const firestore = initializeFirestore(injector.get(FirebaseApp), {
445
+ return initializeFirestore(injector.get(FirebaseApp), {
414
446
  experimentalForceLongPolling: true,
415
447
  localCache: memoryLocalCache(),
416
448
  });
417
- return firestore;
418
449
  }),
419
450
  ],
420
451
  providers: [
@@ -879,11 +910,11 @@ class AuthService {
879
910
  return authState(this.angularFireAuth).pipe(catchError(() => of(null)));
880
911
  }
881
912
  }
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 });
913
+ 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 });
883
914
  AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService });
884
915
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, decorators: [{
885
916
  type: Injectable
886
- }], ctorParameters: function () { return [{ type: i1.Auth }, { type: undefined, decorators: [{
917
+ }], ctorParameters: function () { return [{ type: i1$1.Auth }, { type: undefined, decorators: [{
887
918
  type: Inject,
888
919
  args: ['UserRepository']
889
920
  }] }]; } });
@@ -1088,7 +1119,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1088
1119
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1089
1120
  type: Inject,
1090
1121
  args: ['CouponRepository']
1091
- }] }, { type: i1$2.Shops, decorators: [{
1122
+ }] }, { type: i1$3.Shops, decorators: [{
1092
1123
  type: Inject,
1093
1124
  args: [DEFAULT_SHOP]
1094
1125
  }] }, { type: undefined, decorators: [{
@@ -1155,7 +1186,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1155
1186
  }] }, { type: undefined, decorators: [{
1156
1187
  type: Inject,
1157
1188
  args: ['UserRepository']
1158
- }] }, { type: i1$2.Shops, decorators: [{
1189
+ }] }, { type: i1$3.Shops, decorators: [{
1159
1190
  type: Inject,
1160
1191
  args: [DEFAULT_SHOP]
1161
1192
  }] }]; } });
@@ -1413,7 +1444,7 @@ CartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15
1413
1444
  CartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService });
1414
1445
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, decorators: [{
1415
1446
  type: Injectable
1416
- }], ctorParameters: function () { return [{ type: AuthService }, { type: CheckoutService }, { type: i1$2.Shops, decorators: [{
1447
+ }], ctorParameters: function () { return [{ type: AuthService }, { type: CheckoutService }, { type: i1$3.Shops, decorators: [{
1417
1448
  type: Inject,
1418
1449
  args: [DEFAULT_SHOP]
1419
1450
  }] }, { type: undefined, decorators: [{
@@ -1425,7 +1456,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1425
1456
  }] }, { type: undefined, decorators: [{
1426
1457
  type: Inject,
1427
1458
  args: ['VariantRepository']
1428
- }] }, { type: i1$2.Buy2WinFirestoreRepository, decorators: [{
1459
+ }] }, { type: i1$3.Buy2WinFirestoreRepository, decorators: [{
1429
1460
  type: Inject,
1430
1461
  args: ['Buy2WinRepository']
1431
1462
  }] }]; } });
@@ -1534,7 +1565,7 @@ class CatalogService {
1534
1565
  .then((data) => ({ id: { operator: Where.IN, value: data.hits.map(({ _source }) => _source.id) } }));
1535
1566
  }
1536
1567
  }
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 });
1568
+ 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 });
1538
1569
  CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService });
1539
1570
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
1540
1571
  type: Injectable
@@ -1544,10 +1575,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1544
1575
  }] }, { type: undefined, decorators: [{
1545
1576
  type: Inject,
1546
1577
  args: [CATEGORY_STRUCTURE]
1547
- }] }, { type: i1$2.Shops, decorators: [{
1578
+ }] }, { type: i1$3.Shops, decorators: [{
1548
1579
  type: Inject,
1549
1580
  args: [DEFAULT_SHOP]
1550
- }] }, { type: i1$2.ProductsIndex }]; } });
1581
+ }] }, { type: i1$3.ProductsIndex }]; } });
1551
1582
 
1552
1583
  class CategoryService {
1553
1584
  constructor(productRepository, categoryRepository, categoryFilterRepository, categoryStructureAdapter, shop) {
@@ -1590,7 +1621,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1590
1621
  }] }, { type: undefined, decorators: [{
1591
1622
  type: Inject,
1592
1623
  args: [CATEGORY_STRUCTURE]
1593
- }] }, { type: i1$2.Shops, decorators: [{
1624
+ }] }, { type: i1$3.Shops, decorators: [{
1594
1625
  type: Inject,
1595
1626
  args: [DEFAULT_SHOP]
1596
1627
  }] }]; } });
@@ -1752,14 +1783,14 @@ class WishlistService {
1752
1783
  return wishlist;
1753
1784
  }
1754
1785
  }
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 });
1786
+ 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 });
1756
1787
  WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
1757
1788
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
1758
1789
  type: Injectable
1759
1790
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1760
1791
  type: Inject,
1761
1792
  args: ['WishlistRepository']
1762
- }] }, { type: i1$2.Shops, decorators: [{
1793
+ }] }, { type: i1$3.Shops, decorators: [{
1763
1794
  type: Inject,
1764
1795
  args: [DEFAULT_SHOP]
1765
1796
  }] }, { type: undefined, decorators: [{
@@ -1768,7 +1799,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1768
1799
  }] }, { type: undefined, decorators: [{
1769
1800
  type: Inject,
1770
1801
  args: ['CategoryFilterRepository']
1771
- }] }, { type: i1$2.ProductsIndex }]; } });
1802
+ }] }, { type: i1$3.ProductsIndex }]; } });
1772
1803
 
1773
1804
  class CheckoutSubscriptionService {
1774
1805
  constructor(checkoutSubscriptionRepository, subscriptionRepository, couponService) {
@@ -1935,7 +1966,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1935
1966
  }] }, { type: undefined, decorators: [{
1936
1967
  type: Inject,
1937
1968
  args: ['ProductRepository']
1938
- }] }, { type: i1$2.Shops, decorators: [{
1969
+ }] }, { type: i1$3.Shops, decorators: [{
1939
1970
  type: Inject,
1940
1971
  args: [DEFAULT_SHOP]
1941
1972
  }] }]; } });
@@ -1953,11 +1984,11 @@ class OrderService {
1953
1984
  return this.orderSubject;
1954
1985
  }
1955
1986
  }
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 });
1987
+ 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 });
1957
1988
  OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService });
1958
1989
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
1959
1990
  type: Injectable
1960
- }], ctorParameters: function () { return [{ type: i1$1.Firestore }, { type: i1$2.OrderFirestoreRepository, decorators: [{
1991
+ }], ctorParameters: function () { return [{ type: i1$2.Firestore }, { type: i1$3.OrderFirestoreRepository, decorators: [{
1961
1992
  type: Inject,
1962
1993
  args: ['OrderRepository']
1963
1994
  }] }]; } });
@@ -2039,11 +2070,11 @@ class ShippingService {
2039
2070
  return false;
2040
2071
  }
2041
2072
  }
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 });
2073
+ 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 });
2043
2074
  ShippingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService });
2044
2075
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, decorators: [{
2045
2076
  type: Injectable
2046
- }], ctorParameters: function () { return [{ type: i1$3.HttpClient }, { type: undefined, decorators: [{
2077
+ }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
2047
2078
  type: Inject,
2048
2079
  args: [BACKEND_URL]
2049
2080
  }] }, { type: HomeShopService }]; } });
@@ -2070,10 +2101,7 @@ class AngularConnectModule {
2070
2101
  }
2071
2102
  }
2072
2103
  AngularConnectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
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] });
2104
+ AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] });
2077
2105
  AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, providers: [
2078
2106
  AuthService,
2079
2107
  CartService,
@@ -2086,37 +2114,11 @@ AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
2086
2114
  OrderService,
2087
2115
  ShippingService,
2088
2116
  WishlistService,
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] });
2117
+ ], imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] });
2102
2118
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, decorators: [{
2103
2119
  type: NgModule,
2104
2120
  args: [{
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
- ],
2121
+ imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule],
2120
2122
  providers: [
2121
2123
  AuthService,
2122
2124
  CartService,