@infrab4a/connect-angular 4.1.2-beta.8 → 4.1.2-beta.9

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,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, getApp, 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';
10
+ import * as i1$1 from '@angular/fire/firestore';
11
11
  import { Firestore, provideFirestore, getFirestore, initializeFirestore, memoryLocalCache, docSnapshots, doc } from '@angular/fire/firestore';
12
12
  import { combineLatest, from, of, throwError, Subject, iif, forkJoin } from 'rxjs';
13
13
  import { map, mergeMap, catchError, concatMap, tap } from 'rxjs/operators';
14
14
  import { __awaiter, __decorate, __metadata } from 'tslib';
15
15
  import cookie from 'js-cookie';
16
16
  import { Type } from 'class-transformer';
17
- import * as i1$4 from '@angular/common/http';
17
+ import * as i1$3 from '@angular/common/http';
18
18
 
19
19
  const ES_CONFIG = 'ES_CONFIG';
20
20
 
@@ -71,7 +71,7 @@ class AngularFirebaseAuthModule {
71
71
  }
72
72
  }
73
73
  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.FirebaseAppModule, i1$1.AuthModule] });
74
+ AngularFirebaseAuthModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, imports: [i1.AuthModule] });
75
75
  AngularFirebaseAuthModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, providers: [
76
76
  {
77
77
  provide: 'Authentication',
@@ -115,49 +115,11 @@ AngularFirebaseAuthModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0
115
115
  },
116
116
  deps: ['AuthenticationService'],
117
117
  },
118
- ], imports: [provideFirebaseApp((injector) => {
119
- const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
120
- console.log('fire', appName);
121
- console.log('fire', getApp);
122
- try {
123
- return getApp(appName);
124
- }
125
- catch (error) {
126
- try {
127
- console.log('initializeApp', error instanceof Error && error.message);
128
- return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
129
- }
130
- catch (error) {
131
- console.log('getApp', error instanceof Error && error.message);
132
- return getApp();
133
- }
134
- }
135
- }),
136
- provideAuth((injector) => getAuth(injector.get(FirebaseApp)))] });
118
+ ], imports: [provideAuth((injector) => getAuth(injector.get(FirebaseApp)))] });
137
119
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
138
120
  type: NgModule,
139
121
  args: [{
140
- imports: [
141
- provideFirebaseApp((injector) => {
142
- const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
143
- console.log('fire', appName);
144
- console.log('fire', getApp);
145
- try {
146
- return getApp(appName);
147
- }
148
- catch (error) {
149
- try {
150
- console.log('initializeApp', error instanceof Error && error.message);
151
- return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
152
- }
153
- catch (error) {
154
- console.log('getApp', error instanceof Error && error.message);
155
- return getApp();
156
- }
157
- }
158
- }),
159
- provideAuth((injector) => getAuth(injector.get(FirebaseApp))),
160
- ],
122
+ imports: [provideAuth((injector) => getAuth(injector.get(FirebaseApp)))],
161
123
  providers: [
162
124
  {
163
125
  provide: 'Authentication',
@@ -226,7 +188,7 @@ class AngularFirestoreModule {
226
188
  }
227
189
  }
228
190
  AngularFirestoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
229
- AngularFirestoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1.FirebaseAppModule, i1$2.FirestoreModule] });
191
+ AngularFirestoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1$1.FirestoreModule] });
230
192
  AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, providers: [
231
193
  {
232
194
  provide: 'FirestoreOptions',
@@ -426,24 +388,6 @@ AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
426
388
  deps: ['FirestoreOptions', ProductFirestoreRepository],
427
389
  },
428
390
  ], imports: [AngularElasticSeachModule,
429
- provideFirebaseApp((injector) => {
430
- const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
431
- console.log('fire', appName);
432
- console.log('fire', getApp);
433
- try {
434
- return getApp(appName);
435
- }
436
- catch (error) {
437
- try {
438
- console.log('initializeApp', error instanceof Error && error.message);
439
- return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
440
- }
441
- catch (error) {
442
- console.log('getApp', error instanceof Error && error.message);
443
- return getApp();
444
- }
445
- }
446
- }),
447
391
  provideFirestore((injector) => {
448
392
  if (!MobileOperationSystemCheckerHelper.isAppleDevice())
449
393
  return getFirestore(injector.get(FirebaseApp));
@@ -457,24 +401,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
457
401
  args: [{
458
402
  imports: [
459
403
  AngularElasticSeachModule,
460
- provideFirebaseApp((injector) => {
461
- const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
462
- console.log('fire', appName);
463
- console.log('fire', getApp);
464
- try {
465
- return getApp(appName);
466
- }
467
- catch (error) {
468
- try {
469
- console.log('initializeApp', error instanceof Error && error.message);
470
- return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
471
- }
472
- catch (error) {
473
- console.log('getApp', error instanceof Error && error.message);
474
- return getApp();
475
- }
476
- }
477
- }),
478
404
  provideFirestore((injector) => {
479
405
  if (!MobileOperationSystemCheckerHelper.isAppleDevice())
480
406
  return getFirestore(injector.get(FirebaseApp));
@@ -946,12 +872,12 @@ class AuthService {
946
872
  return authState(this.angularFireAuth).pipe(catchError(() => of(null)));
947
873
  }
948
874
  }
949
- 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 });
875
+ 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 });
950
876
  AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService });
951
877
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, decorators: [{
952
878
  type: Injectable
953
879
  }], ctorParameters: function () {
954
- return [{ type: i1$1.Auth }, { type: undefined, decorators: [{
880
+ return [{ type: i1.Auth }, { type: undefined, decorators: [{
955
881
  type: Inject,
956
882
  args: ['UserRepository']
957
883
  }] }];
@@ -1183,7 +1109,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1183
1109
  return [{ type: undefined, decorators: [{
1184
1110
  type: Inject,
1185
1111
  args: ['CouponRepository']
1186
- }] }, { type: i1$3.Shops, decorators: [{
1112
+ }] }, { type: i1$2.Shops, decorators: [{
1187
1113
  type: Inject,
1188
1114
  args: [DEFAULT_SHOP]
1189
1115
  }] }, { type: undefined, decorators: [{
@@ -1250,7 +1176,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1250
1176
  }] }, { type: undefined, decorators: [{
1251
1177
  type: Inject,
1252
1178
  args: ['UserRepository']
1253
- }] }, { type: i1$3.Shops, decorators: [{
1179
+ }] }, { type: i1$2.Shops, decorators: [{
1254
1180
  type: Inject,
1255
1181
  args: [DEFAULT_SHOP]
1256
1182
  }] }];
@@ -1507,7 +1433,7 @@ CartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version:
1507
1433
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, decorators: [{
1508
1434
  type: Injectable
1509
1435
  }], ctorParameters: function () {
1510
- return [{ type: AuthService }, { type: CheckoutService }, { type: i1$3.Shops, decorators: [{
1436
+ return [{ type: AuthService }, { type: CheckoutService }, { type: i1$2.Shops, decorators: [{
1511
1437
  type: Inject,
1512
1438
  args: [DEFAULT_SHOP]
1513
1439
  }] }, { type: undefined, decorators: [{
@@ -1519,7 +1445,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1519
1445
  }] }, { type: undefined, decorators: [{
1520
1446
  type: Inject,
1521
1447
  args: ['VariantRepository']
1522
- }] }, { type: i1$3.Buy2WinFirestoreRepository, decorators: [{
1448
+ }] }, { type: i1$2.Buy2WinFirestoreRepository, decorators: [{
1523
1449
  type: Inject,
1524
1450
  args: ['Buy2WinRepository']
1525
1451
  }] }];
@@ -1627,7 +1553,7 @@ class CatalogService {
1627
1553
  });
1628
1554
  }
1629
1555
  }
1630
- 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 });
1556
+ 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 });
1631
1557
  CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService });
1632
1558
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
1633
1559
  type: Injectable
@@ -1638,10 +1564,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1638
1564
  }] }, { type: undefined, decorators: [{
1639
1565
  type: Inject,
1640
1566
  args: [CATEGORY_STRUCTURE]
1641
- }] }, { type: i1$3.Shops, decorators: [{
1567
+ }] }, { type: i1$2.Shops, decorators: [{
1642
1568
  type: Inject,
1643
1569
  args: [DEFAULT_SHOP]
1644
- }] }, { type: i1$3.ProductsIndex }];
1570
+ }] }, { type: i1$2.ProductsIndex }];
1645
1571
  } });
1646
1572
 
1647
1573
  class CategoryService {
@@ -1690,7 +1616,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1690
1616
  }] }, { type: undefined, decorators: [{
1691
1617
  type: Inject,
1692
1618
  args: [CATEGORY_STRUCTURE]
1693
- }] }, { type: i1$3.Shops, decorators: [{
1619
+ }] }, { type: i1$2.Shops, decorators: [{
1694
1620
  type: Inject,
1695
1621
  args: [DEFAULT_SHOP]
1696
1622
  }] }];
@@ -1873,7 +1799,7 @@ class WishlistService {
1873
1799
  });
1874
1800
  }
1875
1801
  }
1876
- 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 });
1802
+ 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 });
1877
1803
  WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
1878
1804
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
1879
1805
  type: Injectable
@@ -1881,7 +1807,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1881
1807
  return [{ type: undefined, decorators: [{
1882
1808
  type: Inject,
1883
1809
  args: ['WishlistRepository']
1884
- }] }, { type: i1$3.Shops, decorators: [{
1810
+ }] }, { type: i1$2.Shops, decorators: [{
1885
1811
  type: Inject,
1886
1812
  args: [DEFAULT_SHOP]
1887
1813
  }] }, { type: undefined, decorators: [{
@@ -1890,7 +1816,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1890
1816
  }] }, { type: undefined, decorators: [{
1891
1817
  type: Inject,
1892
1818
  args: ['CategoryFilterRepository']
1893
- }] }, { type: i1$3.ProductsIndex }];
1819
+ }] }, { type: i1$2.ProductsIndex }];
1894
1820
  } });
1895
1821
 
1896
1822
  class CheckoutSubscriptionService {
@@ -2063,7 +1989,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
2063
1989
  }] }, { type: undefined, decorators: [{
2064
1990
  type: Inject,
2065
1991
  args: ['ProductRepository']
2066
- }] }, { type: i1$3.Shops, decorators: [{
1992
+ }] }, { type: i1$2.Shops, decorators: [{
2067
1993
  type: Inject,
2068
1994
  args: [DEFAULT_SHOP]
2069
1995
  }] }];
@@ -2082,12 +2008,12 @@ class OrderService {
2082
2008
  return this.orderSubject;
2083
2009
  }
2084
2010
  }
2085
- 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 });
2011
+ 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 });
2086
2012
  OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService });
2087
2013
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
2088
2014
  type: Injectable
2089
2015
  }], ctorParameters: function () {
2090
- return [{ type: i1$2.Firestore }, { type: i1$3.OrderFirestoreRepository, decorators: [{
2016
+ return [{ type: i1$1.Firestore }, { type: i1$2.OrderFirestoreRepository, decorators: [{
2091
2017
  type: Inject,
2092
2018
  args: ['OrderRepository']
2093
2019
  }] }];
@@ -2170,12 +2096,12 @@ class ShippingService {
2170
2096
  return false;
2171
2097
  }
2172
2098
  }
2173
- 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 });
2099
+ 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 });
2174
2100
  ShippingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService });
2175
2101
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, decorators: [{
2176
2102
  type: Injectable
2177
2103
  }], ctorParameters: function () {
2178
- return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
2104
+ return [{ type: i1$3.HttpClient }, { type: undefined, decorators: [{
2179
2105
  type: Inject,
2180
2106
  args: [BACKEND_URL]
2181
2107
  }] }, { type: HomeShopService }];
@@ -2203,7 +2129,10 @@ class AngularConnectModule {
2203
2129
  }
2204
2130
  }
2205
2131
  AngularConnectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2206
- AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] });
2132
+ AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [i1$4.FirebaseAppModule, AngularElasticSeachModule,
2133
+ AngularFirebaseAuthModule,
2134
+ AngularFirestoreModule,
2135
+ AngularHasuraGraphQLModule] });
2207
2136
  AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, providers: [
2208
2137
  AuthService,
2209
2138
  CartService,
@@ -2216,11 +2145,45 @@ AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
2216
2145
  OrderService,
2217
2146
  ShippingService,
2218
2147
  WishlistService,
2219
- ], imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] });
2148
+ ], imports: [provideFirebaseApp((injector) => {
2149
+ const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
2150
+ console.log('fire', appName);
2151
+ console.log('options', FIREBASE_OPTIONS);
2152
+ console.log('fire', getApp);
2153
+ try {
2154
+ return getApp(appName);
2155
+ }
2156
+ catch (error) {
2157
+ console.log('initializeApp', error instanceof Error && error.message);
2158
+ return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
2159
+ }
2160
+ }),
2161
+ AngularElasticSeachModule,
2162
+ AngularFirebaseAuthModule,
2163
+ AngularFirestoreModule,
2164
+ AngularHasuraGraphQLModule] });
2220
2165
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, decorators: [{
2221
2166
  type: NgModule,
2222
2167
  args: [{
2223
- imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule],
2168
+ imports: [
2169
+ provideFirebaseApp((injector) => {
2170
+ const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
2171
+ console.log('fire', appName);
2172
+ console.log('options', FIREBASE_OPTIONS);
2173
+ console.log('fire', getApp);
2174
+ try {
2175
+ return getApp(appName);
2176
+ }
2177
+ catch (error) {
2178
+ console.log('initializeApp', error instanceof Error && error.message);
2179
+ return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
2180
+ }
2181
+ }),
2182
+ AngularElasticSeachModule,
2183
+ AngularFirebaseAuthModule,
2184
+ AngularFirestoreModule,
2185
+ AngularHasuraGraphQLModule,
2186
+ ],
2224
2187
  providers: [
2225
2188
  AuthService,
2226
2189
  CartService,