@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 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,34 +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
- if (isPlatformServer(platformId))
393
- return getFirestore(injector.get(FirebaseApp));
394
406
  if (!MobileOperationSystemCheckerHelper.isAppleDevice())
395
- return getFirestore(injector.get(FirebaseApp));
396
- const firestore = initializeFirestore(injector.get(FirebaseApp), {
407
+ return getFirestore();
408
+ return initializeFirestore(injector.get(FirebaseApp), {
397
409
  experimentalForceLongPolling: true,
398
410
  localCache: memoryLocalCache(),
399
411
  });
400
- return firestore;
401
412
  })] });
402
413
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, decorators: [{
403
414
  type: NgModule,
404
415
  args: [{
405
416
  imports: [
406
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
+ }),
407
422
  provideFirestore((injector) => {
408
- const platformId = injector.get(PLATFORM_ID);
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), {
424
+ return getFirestore();
425
+ return initializeFirestore(injector.get(FirebaseApp), {
414
426
  experimentalForceLongPolling: true,
415
427
  localCache: memoryLocalCache(),
416
428
  });
417
- return firestore;
418
429
  }),
419
430
  ],
420
431
  providers: [
@@ -879,11 +890,11 @@ class AuthService {
879
890
  return authState(this.angularFireAuth).pipe(catchError(() => of(null)));
880
891
  }
881
892
  }
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 });
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 });
883
894
  AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService });
884
895
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, decorators: [{
885
896
  type: Injectable
886
- }], ctorParameters: function () { return [{ type: i1.Auth }, { type: undefined, decorators: [{
897
+ }], ctorParameters: function () { return [{ type: i1$1.Auth }, { type: undefined, decorators: [{
887
898
  type: Inject,
888
899
  args: ['UserRepository']
889
900
  }] }]; } });
@@ -1088,7 +1099,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1088
1099
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1089
1100
  type: Inject,
1090
1101
  args: ['CouponRepository']
1091
- }] }, { type: i1$2.Shops, decorators: [{
1102
+ }] }, { type: i1$3.Shops, decorators: [{
1092
1103
  type: Inject,
1093
1104
  args: [DEFAULT_SHOP]
1094
1105
  }] }, { type: undefined, decorators: [{
@@ -1155,7 +1166,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1155
1166
  }] }, { type: undefined, decorators: [{
1156
1167
  type: Inject,
1157
1168
  args: ['UserRepository']
1158
- }] }, { type: i1$2.Shops, decorators: [{
1169
+ }] }, { type: i1$3.Shops, decorators: [{
1159
1170
  type: Inject,
1160
1171
  args: [DEFAULT_SHOP]
1161
1172
  }] }]; } });
@@ -1413,7 +1424,7 @@ CartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15
1413
1424
  CartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService });
1414
1425
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, decorators: [{
1415
1426
  type: Injectable
1416
- }], 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: [{
1417
1428
  type: Inject,
1418
1429
  args: [DEFAULT_SHOP]
1419
1430
  }] }, { type: undefined, decorators: [{
@@ -1425,7 +1436,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1425
1436
  }] }, { type: undefined, decorators: [{
1426
1437
  type: Inject,
1427
1438
  args: ['VariantRepository']
1428
- }] }, { type: i1$2.Buy2WinFirestoreRepository, decorators: [{
1439
+ }] }, { type: i1$3.Buy2WinFirestoreRepository, decorators: [{
1429
1440
  type: Inject,
1430
1441
  args: ['Buy2WinRepository']
1431
1442
  }] }]; } });
@@ -1534,7 +1545,7 @@ class CatalogService {
1534
1545
  .then((data) => ({ id: { operator: Where.IN, value: data.hits.map(({ _source }) => _source.id) } }));
1535
1546
  }
1536
1547
  }
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 });
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 });
1538
1549
  CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService });
1539
1550
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
1540
1551
  type: Injectable
@@ -1544,10 +1555,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1544
1555
  }] }, { type: undefined, decorators: [{
1545
1556
  type: Inject,
1546
1557
  args: [CATEGORY_STRUCTURE]
1547
- }] }, { type: i1$2.Shops, decorators: [{
1558
+ }] }, { type: i1$3.Shops, decorators: [{
1548
1559
  type: Inject,
1549
1560
  args: [DEFAULT_SHOP]
1550
- }] }, { type: i1$2.ProductsIndex }]; } });
1561
+ }] }, { type: i1$3.ProductsIndex }]; } });
1551
1562
 
1552
1563
  class CategoryService {
1553
1564
  constructor(productRepository, categoryRepository, categoryFilterRepository, categoryStructureAdapter, shop) {
@@ -1590,7 +1601,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1590
1601
  }] }, { type: undefined, decorators: [{
1591
1602
  type: Inject,
1592
1603
  args: [CATEGORY_STRUCTURE]
1593
- }] }, { type: i1$2.Shops, decorators: [{
1604
+ }] }, { type: i1$3.Shops, decorators: [{
1594
1605
  type: Inject,
1595
1606
  args: [DEFAULT_SHOP]
1596
1607
  }] }]; } });
@@ -1752,14 +1763,14 @@ class WishlistService {
1752
1763
  return wishlist;
1753
1764
  }
1754
1765
  }
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 });
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 });
1756
1767
  WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
1757
1768
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
1758
1769
  type: Injectable
1759
1770
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1760
1771
  type: Inject,
1761
1772
  args: ['WishlistRepository']
1762
- }] }, { type: i1$2.Shops, decorators: [{
1773
+ }] }, { type: i1$3.Shops, decorators: [{
1763
1774
  type: Inject,
1764
1775
  args: [DEFAULT_SHOP]
1765
1776
  }] }, { type: undefined, decorators: [{
@@ -1768,7 +1779,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1768
1779
  }] }, { type: undefined, decorators: [{
1769
1780
  type: Inject,
1770
1781
  args: ['CategoryFilterRepository']
1771
- }] }, { type: i1$2.ProductsIndex }]; } });
1782
+ }] }, { type: i1$3.ProductsIndex }]; } });
1772
1783
 
1773
1784
  class CheckoutSubscriptionService {
1774
1785
  constructor(checkoutSubscriptionRepository, subscriptionRepository, couponService) {
@@ -1935,7 +1946,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1935
1946
  }] }, { type: undefined, decorators: [{
1936
1947
  type: Inject,
1937
1948
  args: ['ProductRepository']
1938
- }] }, { type: i1$2.Shops, decorators: [{
1949
+ }] }, { type: i1$3.Shops, decorators: [{
1939
1950
  type: Inject,
1940
1951
  args: [DEFAULT_SHOP]
1941
1952
  }] }]; } });
@@ -1953,11 +1964,11 @@ class OrderService {
1953
1964
  return this.orderSubject;
1954
1965
  }
1955
1966
  }
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 });
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 });
1957
1968
  OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService });
1958
1969
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
1959
1970
  type: Injectable
1960
- }], 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: [{
1961
1972
  type: Inject,
1962
1973
  args: ['OrderRepository']
1963
1974
  }] }]; } });
@@ -2039,11 +2050,11 @@ class ShippingService {
2039
2050
  return false;
2040
2051
  }
2041
2052
  }
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 });
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 });
2043
2054
  ShippingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService });
2044
2055
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, decorators: [{
2045
2056
  type: Injectable
2046
- }], ctorParameters: function () { return [{ type: i1$3.HttpClient }, { type: undefined, decorators: [{
2057
+ }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
2047
2058
  type: Inject,
2048
2059
  args: [BACKEND_URL]
2049
2060
  }] }, { type: HomeShopService }]; } });
@@ -2070,10 +2081,7 @@ class AngularConnectModule {
2070
2081
  }
2071
2082
  }
2072
2083
  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] });
2084
+ AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] });
2077
2085
  AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, providers: [
2078
2086
  AuthService,
2079
2087
  CartService,
@@ -2086,37 +2094,11 @@ AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
2086
2094
  OrderService,
2087
2095
  ShippingService,
2088
2096
  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] });
2097
+ ], imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] });
2102
2098
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, decorators: [{
2103
2099
  type: NgModule,
2104
2100
  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
- ],
2101
+ imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule],
2120
2102
  providers: [
2121
2103
  AuthService,
2122
2104
  CartService,