@infrab4a/connect-angular 4.1.2-beta.9 → 4.1.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.
- package/angular-connect.module.d.ts +5 -6
- package/angular-firebase-auth.module.d.ts +3 -2
- package/angular-firestore.module.d.ts +3 -2
- package/esm2020/angular-connect.module.mjs +4 -43
- package/esm2020/angular-firebase-auth.module.mjs +21 -6
- package/esm2020/angular-firestore.module.mjs +27 -15
- package/fesm2015/infrab4a-connect-angular.mjs +67 -79
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +67 -79
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -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
|
-
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/
|
|
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
9
|
import { isPlatformBrowser } from '@angular/common';
|
|
10
|
-
import * as i1$
|
|
11
|
-
import { Firestore, provideFirestore, getFirestore, initializeFirestore,
|
|
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';
|
|
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$
|
|
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,25 @@ AngularFirebaseAuthModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0
|
|
|
115
116
|
},
|
|
116
117
|
deps: ['AuthenticationService'],
|
|
117
118
|
},
|
|
118
|
-
], imports: [
|
|
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())] });
|
|
119
126
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
|
|
120
127
|
type: NgModule,
|
|
121
128
|
args: [{
|
|
122
|
-
imports: [
|
|
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
|
+
],
|
|
123
138
|
providers: [
|
|
124
139
|
{
|
|
125
140
|
provide: 'Authentication',
|
|
@@ -187,7 +202,7 @@ class AngularFirestoreModule {
|
|
|
187
202
|
}
|
|
188
203
|
}
|
|
189
204
|
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$
|
|
205
|
+
AngularFirestoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1.FirebaseAppModule, i1$2.FirestoreModule] });
|
|
191
206
|
AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, providers: [
|
|
192
207
|
{
|
|
193
208
|
provide: 'FirestoreOptions',
|
|
@@ -387,26 +402,36 @@ AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
|
|
|
387
402
|
deps: ['FirestoreOptions', ProductFirestoreRepository],
|
|
388
403
|
},
|
|
389
404
|
], 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
|
+
}),
|
|
390
411
|
provideFirestore((injector) => {
|
|
391
412
|
if (!MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
392
|
-
return getFirestore(
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
});
|
|
413
|
+
return getFirestore();
|
|
414
|
+
const firestore = initializeFirestore(injector.get(FirebaseApp), { experimentalForceLongPolling: true });
|
|
415
|
+
enableIndexedDbPersistence(firestore).catch(console.error);
|
|
416
|
+
return firestore;
|
|
397
417
|
})] });
|
|
398
418
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, decorators: [{
|
|
399
419
|
type: NgModule,
|
|
400
420
|
args: [{
|
|
401
421
|
imports: [
|
|
402
422
|
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
|
+
}),
|
|
403
429
|
provideFirestore((injector) => {
|
|
404
430
|
if (!MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
405
|
-
return getFirestore(
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
});
|
|
431
|
+
return getFirestore();
|
|
432
|
+
const firestore = initializeFirestore(injector.get(FirebaseApp), { experimentalForceLongPolling: true });
|
|
433
|
+
enableIndexedDbPersistence(firestore).catch(console.error);
|
|
434
|
+
return firestore;
|
|
410
435
|
}),
|
|
411
436
|
],
|
|
412
437
|
providers: [
|
|
@@ -871,11 +896,11 @@ class AuthService {
|
|
|
871
896
|
return authState(this.angularFireAuth).pipe(catchError(() => of(null)));
|
|
872
897
|
}
|
|
873
898
|
}
|
|
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 });
|
|
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 });
|
|
875
900
|
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService });
|
|
876
901
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, decorators: [{
|
|
877
902
|
type: Injectable
|
|
878
|
-
}], ctorParameters: function () { return [{ type: i1.Auth }, { type: undefined, decorators: [{
|
|
903
|
+
}], ctorParameters: function () { return [{ type: i1$1.Auth }, { type: undefined, decorators: [{
|
|
879
904
|
type: Inject,
|
|
880
905
|
args: ['UserRepository']
|
|
881
906
|
}] }]; } });
|
|
@@ -1080,7 +1105,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1080
1105
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1081
1106
|
type: Inject,
|
|
1082
1107
|
args: ['CouponRepository']
|
|
1083
|
-
}] }, { type: i1$
|
|
1108
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
1084
1109
|
type: Inject,
|
|
1085
1110
|
args: [DEFAULT_SHOP]
|
|
1086
1111
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1147,7 +1172,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1147
1172
|
}] }, { type: undefined, decorators: [{
|
|
1148
1173
|
type: Inject,
|
|
1149
1174
|
args: ['UserRepository']
|
|
1150
|
-
}] }, { type: i1$
|
|
1175
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
1151
1176
|
type: Inject,
|
|
1152
1177
|
args: [DEFAULT_SHOP]
|
|
1153
1178
|
}] }]; } });
|
|
@@ -1405,7 +1430,7 @@ CartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15
|
|
|
1405
1430
|
CartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService });
|
|
1406
1431
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, decorators: [{
|
|
1407
1432
|
type: Injectable
|
|
1408
|
-
}], ctorParameters: function () { return [{ type: AuthService }, { type: CheckoutService }, { type: i1$
|
|
1433
|
+
}], ctorParameters: function () { return [{ type: AuthService }, { type: CheckoutService }, { type: i1$3.Shops, decorators: [{
|
|
1409
1434
|
type: Inject,
|
|
1410
1435
|
args: [DEFAULT_SHOP]
|
|
1411
1436
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1417,7 +1442,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1417
1442
|
}] }, { type: undefined, decorators: [{
|
|
1418
1443
|
type: Inject,
|
|
1419
1444
|
args: ['VariantRepository']
|
|
1420
|
-
}] }, { type: i1$
|
|
1445
|
+
}] }, { type: i1$3.Buy2WinFirestoreRepository, decorators: [{
|
|
1421
1446
|
type: Inject,
|
|
1422
1447
|
args: ['Buy2WinRepository']
|
|
1423
1448
|
}] }]; } });
|
|
@@ -1526,7 +1551,7 @@ class CatalogService {
|
|
|
1526
1551
|
.then((data) => ({ id: { operator: Where.IN, value: data.hits.map(({ _source }) => _source.id) } }));
|
|
1527
1552
|
}
|
|
1528
1553
|
}
|
|
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$
|
|
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 });
|
|
1530
1555
|
CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService });
|
|
1531
1556
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
|
|
1532
1557
|
type: Injectable
|
|
@@ -1536,10 +1561,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1536
1561
|
}] }, { type: undefined, decorators: [{
|
|
1537
1562
|
type: Inject,
|
|
1538
1563
|
args: [CATEGORY_STRUCTURE]
|
|
1539
|
-
}] }, { type: i1$
|
|
1564
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
1540
1565
|
type: Inject,
|
|
1541
1566
|
args: [DEFAULT_SHOP]
|
|
1542
|
-
}] }, { type: i1$
|
|
1567
|
+
}] }, { type: i1$3.ProductsIndex }]; } });
|
|
1543
1568
|
|
|
1544
1569
|
class CategoryService {
|
|
1545
1570
|
constructor(productRepository, categoryRepository, categoryFilterRepository, categoryStructureAdapter, shop) {
|
|
@@ -1582,7 +1607,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1582
1607
|
}] }, { type: undefined, decorators: [{
|
|
1583
1608
|
type: Inject,
|
|
1584
1609
|
args: [CATEGORY_STRUCTURE]
|
|
1585
|
-
}] }, { type: i1$
|
|
1610
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
1586
1611
|
type: Inject,
|
|
1587
1612
|
args: [DEFAULT_SHOP]
|
|
1588
1613
|
}] }]; } });
|
|
@@ -1744,14 +1769,14 @@ class WishlistService {
|
|
|
1744
1769
|
return wishlist;
|
|
1745
1770
|
}
|
|
1746
1771
|
}
|
|
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$
|
|
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 });
|
|
1748
1773
|
WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
|
|
1749
1774
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
|
|
1750
1775
|
type: Injectable
|
|
1751
1776
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1752
1777
|
type: Inject,
|
|
1753
1778
|
args: ['WishlistRepository']
|
|
1754
|
-
}] }, { type: i1$
|
|
1779
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
1755
1780
|
type: Inject,
|
|
1756
1781
|
args: [DEFAULT_SHOP]
|
|
1757
1782
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1760,7 +1785,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1760
1785
|
}] }, { type: undefined, decorators: [{
|
|
1761
1786
|
type: Inject,
|
|
1762
1787
|
args: ['CategoryFilterRepository']
|
|
1763
|
-
}] }, { type: i1$
|
|
1788
|
+
}] }, { type: i1$3.ProductsIndex }]; } });
|
|
1764
1789
|
|
|
1765
1790
|
class CheckoutSubscriptionService {
|
|
1766
1791
|
constructor(checkoutSubscriptionRepository, subscriptionRepository, couponService) {
|
|
@@ -1927,7 +1952,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1927
1952
|
}] }, { type: undefined, decorators: [{
|
|
1928
1953
|
type: Inject,
|
|
1929
1954
|
args: ['ProductRepository']
|
|
1930
|
-
}] }, { type: i1$
|
|
1955
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
1931
1956
|
type: Inject,
|
|
1932
1957
|
args: [DEFAULT_SHOP]
|
|
1933
1958
|
}] }]; } });
|
|
@@ -1945,11 +1970,11 @@ class OrderService {
|
|
|
1945
1970
|
return this.orderSubject;
|
|
1946
1971
|
}
|
|
1947
1972
|
}
|
|
1948
|
-
OrderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, deps: [{ token: i1$
|
|
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 });
|
|
1949
1974
|
OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService });
|
|
1950
1975
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
|
|
1951
1976
|
type: Injectable
|
|
1952
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
1977
|
+
}], ctorParameters: function () { return [{ type: i1$2.Firestore }, { type: i1$3.OrderFirestoreRepository, decorators: [{
|
|
1953
1978
|
type: Inject,
|
|
1954
1979
|
args: ['OrderRepository']
|
|
1955
1980
|
}] }]; } });
|
|
@@ -2031,11 +2056,11 @@ class ShippingService {
|
|
|
2031
2056
|
return false;
|
|
2032
2057
|
}
|
|
2033
2058
|
}
|
|
2034
|
-
ShippingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, deps: [{ token: i1$
|
|
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 });
|
|
2035
2060
|
ShippingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService });
|
|
2036
2061
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, decorators: [{
|
|
2037
2062
|
type: Injectable
|
|
2038
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
2063
|
+
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
|
|
2039
2064
|
type: Inject,
|
|
2040
2065
|
args: [BACKEND_URL]
|
|
2041
2066
|
}] }, { type: HomeShopService }]; } });
|
|
@@ -2062,10 +2087,7 @@ class AngularConnectModule {
|
|
|
2062
2087
|
}
|
|
2063
2088
|
}
|
|
2064
2089
|
AngularConnectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2065
|
-
AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [
|
|
2066
|
-
AngularFirebaseAuthModule,
|
|
2067
|
-
AngularFirestoreModule,
|
|
2068
|
-
AngularHasuraGraphQLModule] });
|
|
2090
|
+
AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] });
|
|
2069
2091
|
AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, providers: [
|
|
2070
2092
|
AuthService,
|
|
2071
2093
|
CartService,
|
|
@@ -2078,45 +2100,11 @@ AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
|
|
|
2078
2100
|
OrderService,
|
|
2079
2101
|
ShippingService,
|
|
2080
2102
|
WishlistService,
|
|
2081
|
-
], imports: [
|
|
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] });
|
|
2103
|
+
], imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] });
|
|
2098
2104
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, decorators: [{
|
|
2099
2105
|
type: NgModule,
|
|
2100
2106
|
args: [{
|
|
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
|
-
],
|
|
2107
|
+
imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule],
|
|
2120
2108
|
providers: [
|
|
2121
2109
|
AuthService,
|
|
2122
2110
|
CartService,
|