@infrab4a/connect-angular 3.3.3-beta.1 → 3.4.0-beta.0

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,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('rxjs/operators'), require('@angular/fire/auth'), require('@infrab4a/connect'), require('js-cookie'), require('ts-custom-error'), require('@angular/fire/firestore'), require('@angular/fire')) :
3
- typeof define === 'function' && define.amd ? define('@infrab4a/connect-angular', ['exports', '@angular/core', 'rxjs', 'rxjs/operators', '@angular/fire/auth', '@infrab4a/connect', 'js-cookie', 'ts-custom-error', '@angular/fire/firestore', '@angular/fire'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.infrab4a = global.infrab4a || {}, global.infrab4a["connect-angular"] = {}), global.ng.core, global.rxjs, global.rxjs.operators, global.ng.fire.auth, global["@infrab4a/connect"], global["js-cookie"], global["ts-custom-error"], global.ng.fire.firestore, global.ng.fire));
5
- })(this, (function (exports, i0, rxjs, operators, i1, i2, cookie, tsCustomError, i1$1, fire) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('rxjs/operators'), require('@angular/fire/auth'), require('@infrab4a/connect'), require('js-cookie'), require('ts-custom-error'), require('@angular/fire/firestore'), require('@angular/common/http'), require('@angular/fire')) :
3
+ typeof define === 'function' && define.amd ? define('@infrab4a/connect-angular', ['exports', '@angular/core', 'rxjs', 'rxjs/operators', '@angular/fire/auth', '@infrab4a/connect', 'js-cookie', 'ts-custom-error', '@angular/fire/firestore', '@angular/common/http', '@angular/fire'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.infrab4a = global.infrab4a || {}, global.infrab4a["connect-angular"] = {}), global.ng.core, global.rxjs, global.rxjs.operators, global.ng.fire.auth, global["@infrab4a/connect"], global["js-cookie"], global["ts-custom-error"], global.ng.fire.firestore, global.ng.common.http, global.ng.fire));
5
+ })(this, (function (exports, i0, rxjs, operators, i1, i1$1, cookie, tsCustomError, i1$2, i1$3, fire) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -26,9 +26,10 @@
26
26
 
27
27
  var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
28
28
  var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
29
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
30
- var cookie__default = /*#__PURE__*/_interopDefaultLegacy(cookie);
31
29
  var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
30
+ var cookie__default = /*#__PURE__*/_interopDefaultLegacy(cookie);
31
+ var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
32
+ var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
32
33
 
33
34
  /*! *****************************************************************************
34
35
  Copyright (c) Microsoft Corporation.
@@ -389,6 +390,8 @@
389
390
  }] }];
390
391
  } });
391
392
 
393
+ var API_URL = 'API_URL';
394
+
392
395
  var DEFAULT_SHOP = 'DEFAULT_SHOP';
393
396
 
394
397
  var ES_CONFIG = 'ES_CONFIG';
@@ -427,7 +430,7 @@
427
430
  this.separateValidCoupons = function (coupons, userEmail) { return coupons
428
431
  .map(function (coupon) {
429
432
  try {
430
- if (!(coupon instanceof i2.Coupon))
433
+ if (!(coupon instanceof i1$1.Coupon))
431
434
  throw new InvalidCouponError('Cupom inválido.');
432
435
  if (_this.isValidCoupon(coupon, userEmail))
433
436
  return coupon;
@@ -436,7 +439,7 @@
436
439
  return error;
437
440
  }
438
441
  })
439
- .reduce(function (current, coupon) { return (Object.assign(Object.assign({}, current), (coupon instanceof i2.Coupon
442
+ .reduce(function (current, coupon) { return (Object.assign(Object.assign({}, current), (coupon instanceof i1$1.Coupon
440
443
  ? { valids: __spreadArray(__spreadArray([], __read(current.valids)), [coupon]) }
441
444
  : { invalids: __spreadArray(__spreadArray([], __read(current.invalids)), [coupon]) }))); }, {
442
445
  valids: [],
@@ -447,8 +450,8 @@
447
450
  var _this = this;
448
451
  return rxjs.from(this.couponRepository.find({
449
452
  filters: {
450
- nickname: { operator: i2.Where.EQUALS, value: nickname },
451
- active: { operator: i2.Where.EQUALS, value: true },
453
+ nickname: { operator: i1$1.Where.EQUALS, value: nickname },
454
+ active: { operator: i1$1.Where.EQUALS, value: true },
452
455
  },
453
456
  })).pipe(operators.concatMap(function (coupons) { return _this.checkCouponRules(coupons, checkoutType, plan, checkout, isSubscription); }), operators.concatMap(function (coupon) { return _this.checkCouponUseAndLimit(coupon, userEmail, checkout); }), operators.map(function (coupon) { return _this.isValidCoupon(coupon, userEmail); }), operators.map(function (coupon) { return coupon; }));
454
457
  };
@@ -460,17 +463,17 @@
460
463
  // Get Primeiro Cupom (o find do repository retorna um array)
461
464
  var coupon = coupons.data.shift();
462
465
  // Verifica se o cupom é aplicavel na loja
463
- var isInShop = coupon.shopAvailability === i2.Shops.ALL || coupon.shopAvailability === this.defaultShop;
466
+ var isInShop = coupon.shopAvailability === i1$1.Shops.ALL || coupon.shopAvailability === this.defaultShop;
464
467
  // Cupon não aplicavel a loja retorna erro
465
468
  if (!isInShop)
466
469
  return rxjs.throwError('Cupom inválido para loja.');
467
470
  // Verifica se o coupon é aplicado no checkout que está sendo realizado
468
- var isCheckoutType = coupon.checkoutType === i2.CheckoutTypes.ALL || coupon.checkoutType === checkoutType;
471
+ var isCheckoutType = coupon.checkoutType === i1$1.CheckoutTypes.ALL || coupon.checkoutType === checkoutType;
469
472
  // Cupon não aplicavel ao checkout retorna erro
470
473
  if (!isCheckoutType)
471
474
  return rxjs.throwError('Cupom inválido. Erro de checkout.');
472
475
  // Verifica se o cupom é ou pode ser aplicado para subscription
473
- if (checkoutType === i2.CheckoutTypes.ALL || checkoutType === i2.CheckoutTypes.SUBSCRIPTION) {
476
+ if (checkoutType === i1$1.CheckoutTypes.ALL || checkoutType === i1$1.CheckoutTypes.SUBSCRIPTION) {
474
477
  // Se o cupom tiver um plano associado, verifica se é o mesmo plano do checkout da assinatura
475
478
  if (coupon.plan && coupon.plan.toUpperCase() !== plan.toUpperCase())
476
479
  return rxjs.throwError('Cupom inválido para sua assinatura.');
@@ -531,9 +534,9 @@
531
534
  CouponService.prototype.calcDiscountSubscription = function (coupon, checkout) {
532
535
  //
533
536
  var discount = 0;
534
- if (coupon.type === i2.CouponTypes.ABSOLUTE)
537
+ if (coupon.type === i1$1.CouponTypes.ABSOLUTE)
535
538
  discount = coupon.discount;
536
- else if (coupon.type === i2.CouponTypes.PERCENTAGE)
539
+ else if (coupon.type === i1$1.CouponTypes.PERCENTAGE)
537
540
  discount = checkout.subscriptionPlan.recurrencePrice * (coupon.discount / 100);
538
541
  return rxjs.of(discount);
539
542
  };
@@ -546,8 +549,8 @@
546
549
  discount = 0;
547
550
  _d = coupon.type;
548
551
  switch (_d) {
549
- case i2.CouponTypes.ABSOLUTE: return [3 /*break*/, 1];
550
- case i2.CouponTypes.PERCENTAGE: return [3 /*break*/, 2];
552
+ case i1$1.CouponTypes.ABSOLUTE: return [3 /*break*/, 1];
553
+ case i1$1.CouponTypes.PERCENTAGE: return [3 /*break*/, 2];
551
554
  }
552
555
  return [3 /*break*/, 4];
553
556
  case 1:
@@ -648,33 +651,33 @@
648
651
  switch (_d.label) {
649
652
  case 0:
650
653
  // Verifica se o email do usuário é coorporativo
651
- if (!this.emailIsFromCollaborator(userEmail) && coupon.exclusivityType === i2.Exclusivities.COLLABORATORS)
654
+ if (!this.emailIsFromCollaborator(userEmail) && coupon.exclusivityType === i1$1.Exclusivities.COLLABORATORS)
652
655
  throw new InvalidCouponError('Você não é colaborador.');
653
656
  // Verifica se o email do usuário é associado ao cupom de uso por usuario
654
- if (coupon.exclusivityType === i2.Exclusivities.SPECIFIC_USER && coupon.userExclusiveEmail !== userEmail)
657
+ if (coupon.exclusivityType === i1$1.Exclusivities.SPECIFIC_USER && coupon.userExclusiveEmail !== userEmail)
655
658
  throw new InvalidCouponError('Cupom não é válido para este usuário.');
656
- couponRuleSubscription = coupon.exclusivityType === i2.Exclusivities.ACTIVE_SUBSCRIBER ||
657
- coupon.exclusivityType === i2.Exclusivities.INACTIVE_SUBSCRIBER ||
658
- coupon.exclusivityType === i2.Exclusivities.NON_SUBSCRIBER;
659
+ couponRuleSubscription = coupon.exclusivityType === i1$1.Exclusivities.ACTIVE_SUBSCRIBER ||
660
+ coupon.exclusivityType === i1$1.Exclusivities.INACTIVE_SUBSCRIBER ||
661
+ coupon.exclusivityType === i1$1.Exclusivities.NON_SUBSCRIBER;
659
662
  if (!(couponRuleSubscription && userEmail)) return [3 /*break*/, 2];
660
663
  return [4 /*yield*/, this.subscriptionRepository
661
664
  .find({
662
665
  filters: {
663
666
  user: {
664
- email: { operator: i2.Where.EQUALS, value: userEmail },
667
+ email: { operator: i1$1.Where.EQUALS, value: userEmail },
665
668
  },
666
669
  },
667
670
  })
668
671
  .then(function (sub) { return sub.data; })];
669
672
  case 1:
670
673
  sub = _d.sent();
671
- activeSubs = sub === null || sub === void 0 ? void 0 : sub.filter(function (s) { return s.status === i2.Status.ACTIVE; });
674
+ activeSubs = sub === null || sub === void 0 ? void 0 : sub.filter(function (s) { return s.status === i1$1.Status.ACTIVE; });
672
675
  switch (coupon.exclusivityType) {
673
- case i2.Exclusivities.ACTIVE_SUBSCRIBER:
676
+ case i1$1.Exclusivities.ACTIVE_SUBSCRIBER:
674
677
  return [2 /*return*/, activeSubs.length > 0];
675
- case i2.Exclusivities.INACTIVE_SUBSCRIBER:
678
+ case i1$1.Exclusivities.INACTIVE_SUBSCRIBER:
676
679
  return [2 /*return*/, activeSubs.length === 0];
677
- case i2.Exclusivities.NON_SUBSCRIBER:
680
+ case i1$1.Exclusivities.NON_SUBSCRIBER:
678
681
  return [2 /*return*/, sub.length === 0];
679
682
  default:
680
683
  return [2 /*return*/, false];
@@ -722,7 +725,7 @@
722
725
  return [{ type: undefined, decorators: [{
723
726
  type: i0.Inject,
724
727
  args: ['CouponRepository']
725
- }] }, { type: i2__namespace.Shops, decorators: [{
728
+ }] }, { type: i1__namespace$1.Shops, decorators: [{
726
729
  type: i0.Inject,
727
730
  args: [DEFAULT_SHOP]
728
731
  }] }, { type: undefined, decorators: [{
@@ -747,19 +750,19 @@
747
750
  }
748
751
  CheckoutService.prototype.getCheckout = function (checkoutData) {
749
752
  var checkoutId = cookie__default["default"].get('checkoutId');
750
- if (!i2.isNil(checkoutId))
753
+ if (!i1$1.isNil(checkoutId))
751
754
  return rxjs.from(this.checkoutRepository.get({ id: checkoutId }));
752
755
  return rxjs.from(this.createCheckout(checkoutData));
753
756
  };
754
757
  CheckoutService.prototype.getUserByCheckout = function (checkoutId) {
755
758
  var _this = this;
756
- return rxjs.from(this.checkoutRepository.get({ id: checkoutId })).pipe(operators.concatMap(function (checkout) { var _a; return ((_a = checkout === null || checkout === void 0 ? void 0 : checkout.user) === null || _a === void 0 ? void 0 : _a.id) ? rxjs.of(checkout.user) : rxjs.from(_this.userRepository.get({ id: checkout.user.id })); }), operators.concatMap(function (user) { return rxjs.of(user) || rxjs.throwError(function () { return new i2.NotFoundError('User is not found'); }); }));
759
+ return rxjs.from(this.checkoutRepository.get({ id: checkoutId })).pipe(operators.concatMap(function (checkout) { var _a; return ((_a = checkout === null || checkout === void 0 ? void 0 : checkout.user) === null || _a === void 0 ? void 0 : _a.id) ? rxjs.of(checkout.user) : rxjs.from(_this.userRepository.get({ id: checkout.user.id })); }), operators.concatMap(function (user) { return rxjs.of(user) || rxjs.throwError(function () { return new i1$1.NotFoundError('User is not found'); }); }));
757
760
  };
758
761
  CheckoutService.prototype.updateCheckoutLineItems = function (checkout) {
759
- return rxjs.from(this.checkoutRepository.update(i2.Checkout.toInstance({ id: checkout.id, lineItems: checkout.lineItems })));
762
+ return rxjs.from(this.checkoutRepository.update(i1$1.Checkout.toInstance({ id: checkout.id, lineItems: checkout.lineItems })));
760
763
  };
761
764
  CheckoutService.prototype.updateCheckoutUser = function (checkout) {
762
- return rxjs.from(this.checkoutRepository.update(i2.Checkout.toInstance({ id: checkout.id, user: checkout.user })));
765
+ return rxjs.from(this.checkoutRepository.update(i1$1.Checkout.toInstance({ id: checkout.id, user: checkout.user })));
763
766
  };
764
767
  CheckoutService.prototype.clearCheckoutFromSession = function () {
765
768
  cookie__default["default"].remove('checkoutId');
@@ -779,7 +782,7 @@
779
782
  return this.getCheckout().pipe(operators.concatMap(function (checkout) {
780
783
  var _a;
781
784
  return _this.couponService
782
- .checkCoupon(nickname, (_a = checkout.user) === null || _a === void 0 ? void 0 : _a.email, i2.CheckoutTypes.ECOMMERCE, checkout.user.subscriptionPlan, checkout, false)
785
+ .checkCoupon(nickname, (_a = checkout.user) === null || _a === void 0 ? void 0 : _a.email, i1$1.CheckoutTypes.ECOMMERCE, checkout.user.subscriptionPlan, checkout, false)
783
786
  .pipe();
784
787
  }));
785
788
  };
@@ -788,7 +791,7 @@
788
791
  var checkout;
789
792
  return __generator(this, function (_b) {
790
793
  switch (_b.label) {
791
- case 0: return [4 /*yield*/, this.checkoutRepository.create(Object.assign(Object.assign({ createdAt: new Date() }, i2.Checkout.toInstance(i2.pick(checkoutData, ['user', 'shop'])).toPlain()), { shop: (checkoutData === null || checkoutData === void 0 ? void 0 : checkoutData.shop) || this.defaultShop }))];
794
+ case 0: return [4 /*yield*/, this.checkoutRepository.create(Object.assign(Object.assign({ createdAt: new Date() }, i1$1.Checkout.toInstance(i1$1.pick(checkoutData, ['user', 'shop'])).toPlain()), { shop: (checkoutData === null || checkoutData === void 0 ? void 0 : checkoutData.shop) || this.defaultShop }))];
792
795
  case 1:
793
796
  checkout = _b.sent();
794
797
  cookie__default["default"].set('checkoutId', checkout.id);
@@ -813,7 +816,7 @@
813
816
  }] }, { type: undefined, decorators: [{
814
817
  type: i0.Inject,
815
818
  args: ['UserRepository']
816
- }] }, { type: i2__namespace.Shops, decorators: [{
819
+ }] }, { type: i1__namespace$1.Shops, decorators: [{
817
820
  type: i0.Inject,
818
821
  args: [DEFAULT_SHOP]
819
822
  }] }];
@@ -827,7 +830,7 @@
827
830
  this.defaultShop = defaultShop;
828
831
  this.productRepository = productRepository;
829
832
  this.cartSubject = new rxjs.Subject();
830
- this.updateLineItemInCart = function (lineItem, quantity, checkout) { return (i2.isNil(checkout) ? _this.checkoutService.getCheckout() : rxjs.of(checkout)).pipe(operators.concatMap(function (checkoutLoaded) {
833
+ this.updateLineItemInCart = function (lineItem, quantity, checkout) { return (i1$1.isNil(checkout) ? _this.checkoutService.getCheckout() : rxjs.of(checkout)).pipe(operators.concatMap(function (checkoutLoaded) {
831
834
  var _a;
832
835
  var items = [];
833
836
  var index = (_a = checkoutLoaded.lineItems) === null || _a === void 0 ? void 0 : _a.map(function (checkoutItem) { return checkoutItem.sku; }).indexOf(lineItem.sku);
@@ -845,7 +848,7 @@
845
848
  var cart = {};
846
849
  items === null || items === void 0 ? void 0 : items.forEach(function (item) {
847
850
  var _a;
848
- return (cart[item.sku] = i2.LineItem.toInstance(Object.assign(Object.assign({}, (cart[item.sku] || item)), { quantity: (((_a = cart[item.sku]) === null || _a === void 0 ? void 0 : _a.quantity) || 0) + (item.quantity ? item.quantity : 1) })));
851
+ return (cart[item.sku] = i1$1.LineItem.toInstance(Object.assign(Object.assign({}, (cart[item.sku] || item)), { quantity: (((_a = cart[item.sku]) === null || _a === void 0 ? void 0 : _a.quantity) || 0) + (item.quantity ? item.quantity : 1) })));
849
852
  });
850
853
  return cart;
851
854
  };
@@ -869,10 +872,9 @@
869
872
  shop: checkout.shop || this.defaultShop,
870
873
  isSubscriber: (_e = checkout.user) === null || _e === void 0 ? void 0 : _e.isSubscriber,
871
874
  });
872
- console.log('checkout buildLineItem', checkout);
873
875
  return [2 /*return*/, {
874
876
  checkout: checkout,
875
- lineItem: i2.LineItem.toInstance({
877
+ lineItem: i1$1.LineItem.toInstance({
876
878
  id: id,
877
879
  name: name !== null && name !== void 0 ? name : product.name,
878
880
  EAN: EAN !== null && EAN !== void 0 ? EAN : product.EAN,
@@ -900,8 +902,7 @@
900
902
  var info = product.price;
901
903
  if (product.isGift)
902
904
  return 0;
903
- console.log('getProductPrice', isSubscriber, info.subscriberPrice);
904
- return (isSubscriber && info.subscriberPrice > 0) ? info.subscriberPrice : info.price;
905
+ return isSubscriber && info.subscriberPrice > 0 ? info.subscriberPrice : info.price;
905
906
  };
906
907
  this.checkMaxStock = function (item, quantity) {
907
908
  var _a;
@@ -928,7 +929,7 @@
928
929
  return this.checkoutService.getCheckout().pipe(operators.map(function (checkout) {
929
930
  var _a;
930
931
  var checkoutItem = (_a = checkout.lineItems) === null || _a === void 0 ? void 0 : _a.find(function (lineItem) { return lineItem.sku === item.sku; });
931
- if (!i2.isNil(checkoutItem))
932
+ if (!i1$1.isNil(checkoutItem))
932
933
  checkoutItem.quantity -= checkoutItem.quantity > 1 ? 1 : 0;
933
934
  return checkout;
934
935
  }), operators.concatMap(function (checkout) { return _this.checkoutService.updateCheckoutLineItems(checkout); }), operators.map(function (checkout) { return _this.generateCartObject(checkout.lineItems); }), operators.tap(function (cart) { return _this.cartSubject.next(cart); }));
@@ -955,14 +956,14 @@
955
956
  };
956
957
  CartService.prototype.updateUserCart = function (user) {
957
958
  var _this = this;
958
- return this.checkoutService.getCheckout().pipe(operators.concatMap(function (checkout) { return _this.checkoutService.updateCheckoutUser(i2.Checkout.toInstance(Object.assign(Object.assign({}, checkout.toPlain()), { user: user }))); }), operators.concatMap(function (checkout) { return __awaiter(_this, void 0, void 0, function () {
959
+ return this.checkoutService.getCheckout().pipe(operators.concatMap(function (checkout) { return _this.checkoutService.updateCheckoutUser(i1$1.Checkout.toInstance(Object.assign(Object.assign({}, checkout.toPlain()), { user: user }))); }), operators.concatMap(function (checkout) { return __awaiter(_this, void 0, void 0, function () {
959
960
  var _a, _b, _h, _j, _k, _l, _m, _o, _p, _q, _r;
960
961
  var _this = this;
961
962
  return __generator(this, function (_s) {
962
963
  switch (_s.label) {
963
964
  case 0:
964
965
  _j = (_h = this.checkoutService).updateCheckoutLineItems;
965
- _l = (_k = i2.Checkout).toInstance;
966
+ _l = (_k = i1$1.Checkout).toInstance;
966
967
  _o = (_m = Object).assign;
967
968
  _p = [Object.assign({}, checkout.toPlain())];
968
969
  _q = {};
@@ -1002,7 +1003,7 @@
1002
1003
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: CartService, decorators: [{
1003
1004
  type: i0.Injectable
1004
1005
  }], ctorParameters: function () {
1005
- return [{ type: AuthService }, { type: CheckoutService }, { type: i2__namespace.Shops, decorators: [{
1006
+ return [{ type: AuthService }, { type: CheckoutService }, { type: i1__namespace$1.Shops, decorators: [{
1006
1007
  type: i0.Inject,
1007
1008
  args: [DEFAULT_SHOP]
1008
1009
  }] }, { type: undefined, decorators: [{
@@ -1019,7 +1020,7 @@
1019
1020
  }
1020
1021
  CheckoutSubscriptionService.prototype.getCheckoutSubscription = function (checkoutData) {
1021
1022
  var checkoutId = cookie__default["default"].get('checkoutSubscriptionId');
1022
- if (!i2.isNil(checkoutId))
1023
+ if (!i1$1.isNil(checkoutId))
1023
1024
  return rxjs.from(this.checkoutSubscriptionRepository.get({ id: checkoutId }));
1024
1025
  return rxjs.from(this.createCheckoutSubscription(checkoutData));
1025
1026
  };
@@ -1028,7 +1029,7 @@
1028
1029
  var checkout;
1029
1030
  return __generator(this, function (_a) {
1030
1031
  switch (_a.label) {
1031
- case 0: return [4 /*yield*/, this.checkoutSubscriptionRepository.create(Object.assign({ createdAt: new Date() }, i2.CheckoutSubscription.toInstance(i2.pick(checkoutData, ['user', 'shop'])).toPlain()))];
1032
+ case 0: return [4 /*yield*/, this.checkoutSubscriptionRepository.create(Object.assign({ createdAt: new Date() }, i1$1.CheckoutSubscription.toInstance(i1$1.pick(checkoutData, ['user', 'shop'])).toPlain()))];
1032
1033
  case 1:
1033
1034
  checkout = _a.sent();
1034
1035
  cookie__default["default"].set('checkoutSubscriptionId', checkout.id);
@@ -1043,7 +1044,7 @@
1043
1044
  };
1044
1045
  CheckoutSubscriptionService.prototype.checkCoupon = function (nickname, userEmail) {
1045
1046
  var _this = this;
1046
- return this.getCheckoutSubscription().pipe(operators.concatMap(function (checkout) { return _this.couponService.checkCoupon(nickname, userEmail, i2.CheckoutTypes.SUBSCRIPTION, checkout.subscriptionPlan.name, null, true).pipe(); }));
1047
+ return this.getCheckoutSubscription().pipe(operators.concatMap(function (checkout) { return _this.couponService.checkCoupon(nickname, userEmail, i1$1.CheckoutTypes.SUBSCRIPTION, checkout.subscriptionPlan.name, null, true).pipe(); }));
1047
1048
  };
1048
1049
  CheckoutSubscriptionService.prototype.calcDiscountSubscription = function (coupon) {
1049
1050
  var _this = this;
@@ -1065,65 +1066,40 @@
1065
1066
  }] }, { type: CouponService }];
1066
1067
  } });
1067
1068
 
1068
- var OrderService = /** @class */ (function () {
1069
- function OrderService(angularFirestore, orderRepository) {
1070
- this.angularFirestore = angularFirestore;
1071
- this.orderRepository = orderRepository;
1072
- this.orderSubject = new rxjs.Subject();
1073
- }
1074
- OrderService.prototype.getOrder = function (id) {
1075
- var _this = this;
1076
- this.angularFirestore
1077
- .doc(this.orderRepository.collectionName + "/" + id)
1078
- .valueChanges()
1079
- .pipe(operators.map(function (doc) { return i2.Order.toInstance(doc); }))
1080
- .subscribe(function (doc) { return _this.orderSubject.next(doc); });
1081
- return this.orderSubject;
1082
- };
1083
- return OrderService;
1084
- }());
1085
- OrderService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: OrderService, deps: [{ token: i1__namespace$1.AngularFirestore }, { token: 'OrderRepository' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1086
- OrderService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: OrderService });
1087
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: OrderService, decorators: [{
1088
- type: i0.Injectable
1089
- }], ctorParameters: function () {
1090
- return [{ type: i1__namespace$1.AngularFirestore }, { type: i2__namespace.OrderFirestoreRepository, decorators: [{
1091
- type: i0.Inject,
1092
- args: ['OrderRepository']
1093
- }] }];
1094
- } });
1095
-
1096
1069
  var HomeShopService = /** @class */ (function () {
1097
1070
  function HomeShopService(categoryRepository, homeRepository, productRepository, defaultShop) {
1098
1071
  this.categoryRepository = categoryRepository;
1099
1072
  this.homeRepository = homeRepository;
1100
1073
  this.productRepository = productRepository;
1101
1074
  this.defaultShop = defaultShop;
1102
- this.buildCategoryGroupWithRequiredData = function (group) { return ({
1103
- category: i2.Category.toInstance(i2.pick(group.category.toPlain(), ['id', 'name', 'slug', 'conditions'])),
1104
- products: group.products.map(function (product) { return i2.Product.toInstance(i2.pick(product.toPlain(), [
1105
- 'id',
1106
- 'price',
1107
- 'reviews',
1108
- 'hasVariants',
1109
- 'slug',
1110
- 'sku',
1111
- 'stock',
1112
- 'costPrice',
1113
- 'images',
1114
- 'miniatures',
1115
- 'name',
1116
- 'weight',
1117
- 'rate',
1118
- 'type'
1119
- ])); }),
1120
- }); };
1075
+ this.buildCategoryGroupWithRequiredData = function (group) {
1076
+ var _a, _b;
1077
+ return ({
1078
+ category: i1$1.Category.toInstance(i1$1.pick(((_a = group === null || group === void 0 ? void 0 : group.category) === null || _a === void 0 ? void 0 : _a.toPlain()) || {}, ['id', 'name', 'slug', 'conditions'])),
1079
+ products: ((_b = group === null || group === void 0 ? void 0 : group.products) === null || _b === void 0 ? void 0 : _b.map(function (product) { return i1$1.Product.toInstance(i1$1.pick((product === null || product === void 0 ? void 0 : product.toPlain()) || {}, [
1080
+ 'id',
1081
+ 'price',
1082
+ 'reviews',
1083
+ 'hasVariants',
1084
+ 'slug',
1085
+ 'sku',
1086
+ 'stock',
1087
+ 'costPrice',
1088
+ 'images',
1089
+ 'miniatures',
1090
+ 'name',
1091
+ 'weight',
1092
+ 'rate',
1093
+ 'type',
1094
+ ])); })) || [],
1095
+ });
1096
+ };
1121
1097
  }
1122
1098
  Object.defineProperty(HomeShopService.prototype, "homeId", {
1123
1099
  get: function () {
1124
- if (this.defaultShop === i2.Shops.GLAMSHOP)
1100
+ if (this.defaultShop === i1$1.Shops.GLAMSHOP)
1125
1101
  return 'glamshop';
1126
- if (this.defaultShop === i2.Shops.MENSMARKET)
1102
+ if (this.defaultShop === i1$1.Shops.MENSMARKET)
1127
1103
  return 'mens_market';
1128
1104
  return null;
1129
1105
  },
@@ -1134,8 +1110,8 @@
1134
1110
  var _this = this;
1135
1111
  return this.getHomeConfiguration().pipe(operators.map(function (home) { var _a; return (((_a = home === null || home === void 0 ? void 0 : home.data) === null || _a === void 0 ? void 0 : _a.expiresAt) > new Date() ? home : null); }), operators.concatMap(function (home) { return home
1136
1112
  ? rxjs.of(home)
1137
- : rxjs.forkJoin([_this.getDiscoverProducts(), _this.getFeaturedProducts(), _this.getVerticalProducts()]).pipe(operators.map(function (_b) {
1138
- var _c = __read(_b, 3), discoverProducts = _c[0], featuredProducts = _c[1], verticalProducts = _c[2];
1113
+ : rxjs.forkJoin([_this.getDiscoverProducts(), _this.getFeaturedProducts(), _this.getVerticalProducts()]).pipe(operators.map(function (_c) {
1114
+ var _d = __read(_c, 3), discoverProducts = _d[0], featuredProducts = _d[1], verticalProducts = _d[2];
1139
1115
  return ({
1140
1116
  discoverProducts: discoverProducts,
1141
1117
  featuredProducts: featuredProducts,
@@ -1169,10 +1145,10 @@
1169
1145
  HomeShopService.prototype.getVerticalProducts = function () {
1170
1146
  var _this = this;
1171
1147
  return this.getHomeConfiguration().pipe(operators.concatMap(function (home) { return rxjs.forkJoin(home.verticalCarousels.filter(Boolean).map(function (id) { return rxjs.from(_this.categoryRepository.get({ id: id })).pipe(operators.concatMap(function (category) { return rxjs.from(_this.productRepository.find({
1172
- filters: { categories: { operator: i2.Where.IN, value: [category.id] } },
1148
+ filters: { categories: { operator: i1$1.Where.IN, value: [category.id] } },
1173
1149
  limits: { limit: 12 },
1174
- })).pipe(operators.map(function (products) { return ({ category: category, products: products }); })); }), operators.map(function (_b) {
1175
- var category = _b.category, products = _b.products;
1150
+ })).pipe(operators.map(function (products) { return ({ category: category, products: products }); })); }), operators.map(function (_c) {
1151
+ var category = _c.category, products = _c.products;
1176
1152
  return ({ category: category, products: products.data });
1177
1153
  }), operators.map(_this.buildCategoryGroupWithRequiredData)); })); }));
1178
1154
  };
@@ -1181,14 +1157,14 @@
1181
1157
  return rxjs.of(this.homeConfiguration).pipe(operators.concatMap(function (home) { return home
1182
1158
  ? rxjs.of(home)
1183
1159
  : !_this.homeId
1184
- ? rxjs.throwError(new i2.RequiredArgumentError(['homeId']))
1160
+ ? rxjs.throwError(new i1$1.RequiredArgumentError(['homeId']))
1185
1161
  : rxjs.from(_this.homeRepository.get({ id: _this.homeId })).pipe(operators.tap(function (homeLoaded) { return (_this.homeConfiguration = homeLoaded); })); }));
1186
1162
  };
1187
1163
  HomeShopService.prototype.saveHomeData = function (homeData) {
1188
1164
  var _this = this;
1189
1165
  var data = {
1190
1166
  createdAt: new Date(),
1191
- expiresAt: i2.add(new Date(), { hours: 1 }),
1167
+ expiresAt: i1$1.add(new Date(), { hours: 1 }),
1192
1168
  data: homeData,
1193
1169
  };
1194
1170
  return rxjs.from(this.homeRepository.update({
@@ -1212,12 +1188,85 @@
1212
1188
  }] }, { type: undefined, decorators: [{
1213
1189
  type: i0.Inject,
1214
1190
  args: ['ProductRepository']
1215
- }] }, { type: i2__namespace.Shops, decorators: [{
1191
+ }] }, { type: i1__namespace$1.Shops, decorators: [{
1216
1192
  type: i0.Inject,
1217
1193
  args: [DEFAULT_SHOP]
1218
1194
  }] }];
1219
1195
  } });
1220
1196
 
1197
+ var OrderService = /** @class */ (function () {
1198
+ function OrderService(angularFirestore, orderRepository) {
1199
+ this.angularFirestore = angularFirestore;
1200
+ this.orderRepository = orderRepository;
1201
+ this.orderSubject = new rxjs.Subject();
1202
+ }
1203
+ OrderService.prototype.getOrder = function (id) {
1204
+ var _this = this;
1205
+ this.angularFirestore
1206
+ .doc(this.orderRepository.collectionName + "/" + id)
1207
+ .valueChanges()
1208
+ .pipe(operators.map(function (doc) { return i1$1.Order.toInstance(doc); }))
1209
+ .subscribe(function (doc) { return _this.orderSubject.next(doc); });
1210
+ return this.orderSubject;
1211
+ };
1212
+ return OrderService;
1213
+ }());
1214
+ OrderService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: OrderService, deps: [{ token: i1__namespace$2.AngularFirestore }, { token: 'OrderRepository' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1215
+ OrderService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: OrderService });
1216
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: OrderService, decorators: [{
1217
+ type: i0.Injectable
1218
+ }], ctorParameters: function () {
1219
+ return [{ type: i1__namespace$2.AngularFirestore }, { type: i1__namespace$1.OrderFirestoreRepository, decorators: [{
1220
+ type: i0.Inject,
1221
+ args: ['OrderRepository']
1222
+ }] }];
1223
+ } });
1224
+
1225
+ var ShippingService = /** @class */ (function () {
1226
+ function ShippingService(http) {
1227
+ this.http = http;
1228
+ }
1229
+ ShippingService.prototype.getMensShippingMethods = function (zip, weightGrams, totalPrice, personId, subscriptionPlan) {
1230
+ return this.http.get(API_URL + "/open/checkshippingcompany?personId=" + personId + "&postalCode=" + zip + "&weightGrams=" + weightGrams)
1231
+ .pipe(operators.map(function (data) { return data.result; }), operators.map(function (shippingMethods) {
1232
+ var shippingMethodsResponse = [];
1233
+ if (!shippingMethods.length)
1234
+ return [];
1235
+ if (totalPrice >= 200) {
1236
+ return shippingMethods.map(function (s) {
1237
+ if (s.serviceName !== 'Same Day')
1238
+ return Object.assign(Object.assign({}, s), { totalPrice: 0 });
1239
+ else
1240
+ return s;
1241
+ });
1242
+ }
1243
+ if (subscriptionPlan && subscriptionPlan == 'SELECT') {
1244
+ return shippingMethods.map(function (s) {
1245
+ if (s.serviceName !== 'Same Day')
1246
+ return Object.assign(Object.assign({}, s), { totalPrice: 0 });
1247
+ else
1248
+ return s;
1249
+ });
1250
+ }
1251
+ if (subscriptionPlan && subscriptionPlan == 'PRIME') {
1252
+ return shippingMethods.map(function (s) {
1253
+ if (s.serviceName !== 'Same Day')
1254
+ return Object.assign(Object.assign({}, s), { totalPrice: s.totalPrice / 2 });
1255
+ else
1256
+ return s;
1257
+ });
1258
+ }
1259
+ return shippingMethodsResponse;
1260
+ }));
1261
+ };
1262
+ return ShippingService;
1263
+ }());
1264
+ ShippingService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: ShippingService, deps: [{ token: i1__namespace$3.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1265
+ ShippingService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: ShippingService });
1266
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: ShippingService, decorators: [{
1267
+ type: i0.Injectable
1268
+ }], ctorParameters: function () { return [{ type: i1__namespace$3.HttpClient }]; } });
1269
+
1221
1270
  var AngularFirebaseAuthModule = /** @class */ (function () {
1222
1271
  function AngularFirebaseAuthModule() {
1223
1272
  }
@@ -1238,42 +1287,42 @@
1238
1287
  {
1239
1288
  provide: 'Authentication',
1240
1289
  useFactory: function (authenticationService, userRepository) {
1241
- return new i2.Authentication(authenticationService, userRepository);
1290
+ return new i1$1.Authentication(authenticationService, userRepository);
1242
1291
  },
1243
1292
  deps: ['AuthenticationService', 'UserRepository'],
1244
1293
  },
1245
1294
  {
1246
1295
  provide: 'AuthenticationService',
1247
1296
  useFactory: function (angularFireAuth) {
1248
- return new i2.AuthenticationFirebaseAuthService(angularFireAuth);
1297
+ return new i1$1.AuthenticationFirebaseAuthService(angularFireAuth);
1249
1298
  },
1250
1299
  deps: [i1.AngularFireAuth],
1251
1300
  },
1252
1301
  {
1253
1302
  provide: 'Register',
1254
1303
  useFactory: function (registerService, userRepository) {
1255
- return new i2.Register(registerService, userRepository);
1304
+ return new i1$1.Register(registerService, userRepository);
1256
1305
  },
1257
1306
  deps: ['RegisterService', 'UserRepository'],
1258
1307
  },
1259
1308
  {
1260
1309
  provide: 'RegisterService',
1261
1310
  useFactory: function (angularFireAuth) {
1262
- return new i2.RegisterFirebaseAuthService(angularFireAuth);
1311
+ return new i1$1.RegisterFirebaseAuthService(angularFireAuth);
1263
1312
  },
1264
1313
  deps: [i1.AngularFireAuth],
1265
1314
  },
1266
1315
  {
1267
1316
  provide: 'SignOut',
1268
1317
  useFactory: function (authenticationService) {
1269
- return new i2.SignOut(authenticationService);
1318
+ return new i1$1.SignOut(authenticationService);
1270
1319
  },
1271
1320
  deps: ['AuthenticationService'],
1272
1321
  },
1273
1322
  {
1274
1323
  provide: 'RecoveryPassword',
1275
1324
  useFactory: function (authenticationService) {
1276
- return new i2.RecoveryPassword(authenticationService);
1325
+ return new i1$1.RecoveryPassword(authenticationService);
1277
1326
  },
1278
1327
  deps: ['AuthenticationService'],
1279
1328
  },
@@ -1286,42 +1335,42 @@
1286
1335
  {
1287
1336
  provide: 'Authentication',
1288
1337
  useFactory: function (authenticationService, userRepository) {
1289
- return new i2.Authentication(authenticationService, userRepository);
1338
+ return new i1$1.Authentication(authenticationService, userRepository);
1290
1339
  },
1291
1340
  deps: ['AuthenticationService', 'UserRepository'],
1292
1341
  },
1293
1342
  {
1294
1343
  provide: 'AuthenticationService',
1295
1344
  useFactory: function (angularFireAuth) {
1296
- return new i2.AuthenticationFirebaseAuthService(angularFireAuth);
1345
+ return new i1$1.AuthenticationFirebaseAuthService(angularFireAuth);
1297
1346
  },
1298
1347
  deps: [i1.AngularFireAuth],
1299
1348
  },
1300
1349
  {
1301
1350
  provide: 'Register',
1302
1351
  useFactory: function (registerService, userRepository) {
1303
- return new i2.Register(registerService, userRepository);
1352
+ return new i1$1.Register(registerService, userRepository);
1304
1353
  },
1305
1354
  deps: ['RegisterService', 'UserRepository'],
1306
1355
  },
1307
1356
  {
1308
1357
  provide: 'RegisterService',
1309
1358
  useFactory: function (angularFireAuth) {
1310
- return new i2.RegisterFirebaseAuthService(angularFireAuth);
1359
+ return new i1$1.RegisterFirebaseAuthService(angularFireAuth);
1311
1360
  },
1312
1361
  deps: [i1.AngularFireAuth],
1313
1362
  },
1314
1363
  {
1315
1364
  provide: 'SignOut',
1316
1365
  useFactory: function (authenticationService) {
1317
- return new i2.SignOut(authenticationService);
1366
+ return new i1$1.SignOut(authenticationService);
1318
1367
  },
1319
1368
  deps: ['AuthenticationService'],
1320
1369
  },
1321
1370
  {
1322
1371
  provide: 'RecoveryPassword',
1323
1372
  useFactory: function (authenticationService) {
1324
- return new i2.RecoveryPassword(authenticationService);
1373
+ return new i1$1.RecoveryPassword(authenticationService);
1325
1374
  },
1326
1375
  deps: ['AuthenticationService'],
1327
1376
  },
@@ -1344,9 +1393,9 @@
1344
1393
  AngularElasticSeachModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: AngularElasticSeachModule });
1345
1394
  AngularElasticSeachModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: AngularElasticSeachModule, providers: [
1346
1395
  {
1347
- provide: i2.ProductsIndex,
1396
+ provide: i1$1.ProductsIndex,
1348
1397
  useFactory: function (configuration) {
1349
- return new i2.ProductsIndex(new i2.AxiosAdapter(configuration));
1398
+ return new i1$1.ProductsIndex(new i1$1.AxiosAdapter(configuration));
1350
1399
  },
1351
1400
  deps: [ES_CONFIG],
1352
1401
  },
@@ -1356,9 +1405,9 @@
1356
1405
  args: [{
1357
1406
  providers: [
1358
1407
  {
1359
- provide: i2.ProductsIndex,
1408
+ provide: i1$1.ProductsIndex,
1360
1409
  useFactory: function (configuration) {
1361
- return new i2.ProductsIndex(new i2.AxiosAdapter(configuration));
1410
+ return new i1$1.ProductsIndex(new i1$1.AxiosAdapter(configuration));
1362
1411
  },
1363
1412
  deps: [ES_CONFIG],
1364
1413
  },
@@ -1387,161 +1436,161 @@
1387
1436
  {
1388
1437
  provide: 'BeautyProfileRepository',
1389
1438
  useFactory: function (firestore, userRepository) {
1390
- return new i2.UserBeautyProfileFirestoreRepository(firestore.firestore, userRepository);
1439
+ return new i1$1.UserBeautyProfileFirestoreRepository(firestore.firestore, userRepository);
1391
1440
  },
1392
- deps: [i1$1.AngularFirestore, 'UserRepository'],
1441
+ deps: [i1$2.AngularFirestore, 'UserRepository'],
1393
1442
  },
1394
1443
  {
1395
1444
  provide: 'Buy2WinRepository',
1396
1445
  useFactory: function (firestore) {
1397
- return new i2.Buy2WinFirestoreRepository(firestore.firestore);
1446
+ return new i1$1.Buy2WinFirestoreRepository(firestore.firestore);
1398
1447
  },
1399
- deps: [i1$1.AngularFirestore],
1448
+ deps: [i1$2.AngularFirestore],
1400
1449
  },
1401
1450
  {
1402
- provide: i2.CategoryFirestoreRepository,
1451
+ provide: i1$1.CategoryFirestoreRepository,
1403
1452
  useFactory: function (firestore) {
1404
- return new i2.CategoryFirestoreRepository(firestore.firestore);
1453
+ return new i1$1.CategoryFirestoreRepository(firestore.firestore);
1405
1454
  },
1406
- deps: [i1$1.AngularFirestore],
1455
+ deps: [i1$2.AngularFirestore],
1407
1456
  },
1408
1457
  {
1409
1458
  provide: 'CheckoutRepository',
1410
1459
  useFactory: function (firestore) {
1411
- return new i2.CheckoutFirestoreRepository(firestore.firestore);
1460
+ return new i1$1.CheckoutFirestoreRepository(firestore.firestore);
1412
1461
  },
1413
- deps: [i1$1.AngularFirestore],
1462
+ deps: [i1$2.AngularFirestore],
1414
1463
  },
1415
1464
  {
1416
1465
  provide: 'CheckoutSubscriptionRepository',
1417
1466
  useFactory: function (firestore) {
1418
- return new i2.CheckoutSubscriptionFirestoreRepository(firestore.firestore);
1467
+ return new i1$1.CheckoutSubscriptionFirestoreRepository(firestore.firestore);
1419
1468
  },
1420
- deps: [i1$1.AngularFirestore],
1469
+ deps: [i1$2.AngularFirestore],
1421
1470
  },
1422
1471
  {
1423
1472
  provide: 'CouponRepository',
1424
1473
  useFactory: function (firestore) {
1425
- return new i2.CouponFirestoreRepository(firestore.firestore);
1474
+ return new i1$1.CouponFirestoreRepository(firestore.firestore);
1426
1475
  },
1427
- deps: [i1$1.AngularFirestore],
1476
+ deps: [i1$2.AngularFirestore],
1428
1477
  },
1429
1478
  {
1430
1479
  provide: 'EditionRepository',
1431
1480
  useFactory: function (firestore, subscriptionRepository) {
1432
- return new i2.SubscriptionEditionFirestoreRepository(firestore.firestore, subscriptionRepository);
1481
+ return new i1$1.SubscriptionEditionFirestoreRepository(firestore.firestore, subscriptionRepository);
1433
1482
  },
1434
- deps: [i1$1.AngularFirestore, 'SubscriptionRepository'],
1483
+ deps: [i1$2.AngularFirestore, 'SubscriptionRepository'],
1435
1484
  },
1436
1485
  {
1437
1486
  provide: 'HomeRepository',
1438
1487
  useFactory: function (firestore) {
1439
- return new i2.HomeFirestoreRepository(firestore.firestore);
1488
+ return new i1$1.HomeFirestoreRepository(firestore.firestore);
1440
1489
  },
1441
- deps: [i1$1.AngularFirestore],
1490
+ deps: [i1$2.AngularFirestore],
1442
1491
  },
1443
1492
  {
1444
1493
  provide: 'LeadRepository',
1445
1494
  useFactory: function (firestore) {
1446
- return new i2.LeadFirestoreRepository(firestore.firestore);
1495
+ return new i1$1.LeadFirestoreRepository(firestore.firestore);
1447
1496
  },
1448
- deps: [i1$1.AngularFirestore],
1497
+ deps: [i1$2.AngularFirestore],
1449
1498
  },
1450
1499
  {
1451
1500
  provide: 'LegacyOrderRepository',
1452
1501
  useFactory: function (firestore) {
1453
- return new i2.LegacyOrderFirestoreRepository(firestore.firestore);
1502
+ return new i1$1.LegacyOrderFirestoreRepository(firestore.firestore);
1454
1503
  },
1455
- deps: [i1$1.AngularFirestore],
1504
+ deps: [i1$2.AngularFirestore],
1456
1505
  },
1457
1506
  {
1458
1507
  provide: 'ShopMenuRepository',
1459
1508
  useFactory: function (firestore) {
1460
- return new i2.ShopMenuFirestoreRepository(firestore.firestore);
1509
+ return new i1$1.ShopMenuFirestoreRepository(firestore.firestore);
1461
1510
  },
1462
- deps: [i1$1.AngularFirestore],
1511
+ deps: [i1$2.AngularFirestore],
1463
1512
  },
1464
1513
  {
1465
1514
  provide: 'OrderRepository',
1466
1515
  useFactory: function (firestore) {
1467
- return new i2.OrderFirestoreRepository(firestore.firestore);
1516
+ return new i1$1.OrderFirestoreRepository(firestore.firestore);
1468
1517
  },
1469
- deps: [i1$1.AngularFirestore],
1518
+ deps: [i1$2.AngularFirestore],
1470
1519
  },
1471
1520
  {
1472
1521
  provide: 'PaymentRepository',
1473
1522
  useFactory: function (firestore) {
1474
- return new i2.PaymentFirestoreRepository(firestore.firestore);
1523
+ return new i1$1.PaymentFirestoreRepository(firestore.firestore);
1475
1524
  },
1476
- deps: [i1$1.AngularFirestore],
1525
+ deps: [i1$2.AngularFirestore],
1477
1526
  },
1478
1527
  {
1479
- provide: i2.ProductFirestoreRepository,
1528
+ provide: i1$1.ProductFirestoreRepository,
1480
1529
  useFactory: function (firestore) {
1481
- return new i2.ProductFirestoreRepository(firestore.firestore);
1530
+ return new i1$1.ProductFirestoreRepository(firestore.firestore);
1482
1531
  },
1483
- deps: [i1$1.AngularFirestore],
1532
+ deps: [i1$2.AngularFirestore],
1484
1533
  },
1485
1534
  {
1486
1535
  provide: 'SubscriptionPaymentRepository',
1487
1536
  useFactory: function (firestore, subscriptionRepository) {
1488
- return new i2.SubscriptionPaymentFirestoreRepository(firestore.firestore, subscriptionRepository);
1537
+ return new i1$1.SubscriptionPaymentFirestoreRepository(firestore.firestore, subscriptionRepository);
1489
1538
  },
1490
- deps: [i1$1.AngularFirestore, 'SubscriptionRepository'],
1539
+ deps: [i1$2.AngularFirestore, 'SubscriptionRepository'],
1491
1540
  },
1492
1541
  {
1493
1542
  provide: 'SubscriptionPlanRepository',
1494
1543
  useFactory: function (firestore) {
1495
- return new i2.SubscriptionPlanFirestoreRepository(firestore.firestore);
1544
+ return new i1$1.SubscriptionPlanFirestoreRepository(firestore.firestore);
1496
1545
  },
1497
- deps: [i1$1.AngularFirestore],
1546
+ deps: [i1$2.AngularFirestore],
1498
1547
  },
1499
1548
  {
1500
1549
  provide: 'SubscriptionProductRepository',
1501
1550
  useFactory: function (firestore) {
1502
- return new i2.SubscriptionProductFirestoreRepository(firestore.firestore);
1551
+ return new i1$1.SubscriptionProductFirestoreRepository(firestore.firestore);
1503
1552
  },
1504
- deps: [i1$1.AngularFirestore],
1553
+ deps: [i1$2.AngularFirestore],
1505
1554
  },
1506
1555
  {
1507
1556
  provide: 'SubscriptionRepository',
1508
1557
  useFactory: function (firestore) {
1509
- return new i2.SubscriptionFirestoreRepository(firestore.firestore);
1558
+ return new i1$1.SubscriptionFirestoreRepository(firestore.firestore);
1510
1559
  },
1511
- deps: [i1$1.AngularFirestore],
1560
+ deps: [i1$2.AngularFirestore],
1512
1561
  },
1513
1562
  {
1514
1563
  provide: 'UserRepository',
1515
1564
  useFactory: function (firestore) {
1516
- return new i2.UserFirestoreRepository(firestore.firestore);
1565
+ return new i1$1.UserFirestoreRepository(firestore.firestore);
1517
1566
  },
1518
- deps: [i1$1.AngularFirestore],
1567
+ deps: [i1$2.AngularFirestore],
1519
1568
  },
1520
1569
  {
1521
1570
  provide: 'UserAddressRepository',
1522
1571
  useFactory: function (firestore, userRepository) {
1523
- return new i2.UserAddressFirestoreRepository(firestore.firestore, userRepository);
1572
+ return new i1$1.UserAddressFirestoreRepository(firestore.firestore, userRepository);
1524
1573
  },
1525
- deps: [i1$1.AngularFirestore, 'UserRepository'],
1574
+ deps: [i1$2.AngularFirestore, 'UserRepository'],
1526
1575
  },
1527
1576
  {
1528
1577
  provide: 'UserPaymentMethodRepository',
1529
1578
  useFactory: function (firestore, userRepository) {
1530
- return new i2.UserPaymentMethodFirestoreRepository(firestore.firestore, userRepository);
1579
+ return new i1$1.UserPaymentMethodFirestoreRepository(firestore.firestore, userRepository);
1531
1580
  },
1532
- deps: [i1$1.AngularFirestore, 'UserRepository'],
1581
+ deps: [i1$2.AngularFirestore, 'UserRepository'],
1533
1582
  },
1534
1583
  {
1535
- provide: i2.ProductVariantFirestoreRepository,
1584
+ provide: i1$1.ProductVariantFirestoreRepository,
1536
1585
  useFactory: function (firestore, productRepository) {
1537
- return new i2.ProductVariantFirestoreRepository(firestore.firestore, productRepository);
1586
+ return new i1$1.ProductVariantFirestoreRepository(firestore.firestore, productRepository);
1538
1587
  },
1539
- deps: [i1$1.AngularFirestore, i2.ProductFirestoreRepository],
1588
+ deps: [i1$2.AngularFirestore, i1$1.ProductFirestoreRepository],
1540
1589
  },
1541
1590
  {
1542
1591
  provide: i0.APP_INITIALIZER,
1543
1592
  useFactory: function (firestore) { return function () { return firestore.firestore.settings({ ignoreUndefinedProperties: true }); }; },
1544
- deps: [i1$1.AngularFirestore],
1593
+ deps: [i1$2.AngularFirestore],
1545
1594
  multi: true,
1546
1595
  },
1547
1596
  ], imports: [[fire.AngularFireModule, AngularElasticSeachModule]] });
@@ -1553,161 +1602,161 @@
1553
1602
  {
1554
1603
  provide: 'BeautyProfileRepository',
1555
1604
  useFactory: function (firestore, userRepository) {
1556
- return new i2.UserBeautyProfileFirestoreRepository(firestore.firestore, userRepository);
1605
+ return new i1$1.UserBeautyProfileFirestoreRepository(firestore.firestore, userRepository);
1557
1606
  },
1558
- deps: [i1$1.AngularFirestore, 'UserRepository'],
1607
+ deps: [i1$2.AngularFirestore, 'UserRepository'],
1559
1608
  },
1560
1609
  {
1561
1610
  provide: 'Buy2WinRepository',
1562
1611
  useFactory: function (firestore) {
1563
- return new i2.Buy2WinFirestoreRepository(firestore.firestore);
1612
+ return new i1$1.Buy2WinFirestoreRepository(firestore.firestore);
1564
1613
  },
1565
- deps: [i1$1.AngularFirestore],
1614
+ deps: [i1$2.AngularFirestore],
1566
1615
  },
1567
1616
  {
1568
- provide: i2.CategoryFirestoreRepository,
1617
+ provide: i1$1.CategoryFirestoreRepository,
1569
1618
  useFactory: function (firestore) {
1570
- return new i2.CategoryFirestoreRepository(firestore.firestore);
1619
+ return new i1$1.CategoryFirestoreRepository(firestore.firestore);
1571
1620
  },
1572
- deps: [i1$1.AngularFirestore],
1621
+ deps: [i1$2.AngularFirestore],
1573
1622
  },
1574
1623
  {
1575
1624
  provide: 'CheckoutRepository',
1576
1625
  useFactory: function (firestore) {
1577
- return new i2.CheckoutFirestoreRepository(firestore.firestore);
1626
+ return new i1$1.CheckoutFirestoreRepository(firestore.firestore);
1578
1627
  },
1579
- deps: [i1$1.AngularFirestore],
1628
+ deps: [i1$2.AngularFirestore],
1580
1629
  },
1581
1630
  {
1582
1631
  provide: 'CheckoutSubscriptionRepository',
1583
1632
  useFactory: function (firestore) {
1584
- return new i2.CheckoutSubscriptionFirestoreRepository(firestore.firestore);
1633
+ return new i1$1.CheckoutSubscriptionFirestoreRepository(firestore.firestore);
1585
1634
  },
1586
- deps: [i1$1.AngularFirestore],
1635
+ deps: [i1$2.AngularFirestore],
1587
1636
  },
1588
1637
  {
1589
1638
  provide: 'CouponRepository',
1590
1639
  useFactory: function (firestore) {
1591
- return new i2.CouponFirestoreRepository(firestore.firestore);
1640
+ return new i1$1.CouponFirestoreRepository(firestore.firestore);
1592
1641
  },
1593
- deps: [i1$1.AngularFirestore],
1642
+ deps: [i1$2.AngularFirestore],
1594
1643
  },
1595
1644
  {
1596
1645
  provide: 'EditionRepository',
1597
1646
  useFactory: function (firestore, subscriptionRepository) {
1598
- return new i2.SubscriptionEditionFirestoreRepository(firestore.firestore, subscriptionRepository);
1647
+ return new i1$1.SubscriptionEditionFirestoreRepository(firestore.firestore, subscriptionRepository);
1599
1648
  },
1600
- deps: [i1$1.AngularFirestore, 'SubscriptionRepository'],
1649
+ deps: [i1$2.AngularFirestore, 'SubscriptionRepository'],
1601
1650
  },
1602
1651
  {
1603
1652
  provide: 'HomeRepository',
1604
1653
  useFactory: function (firestore) {
1605
- return new i2.HomeFirestoreRepository(firestore.firestore);
1654
+ return new i1$1.HomeFirestoreRepository(firestore.firestore);
1606
1655
  },
1607
- deps: [i1$1.AngularFirestore],
1656
+ deps: [i1$2.AngularFirestore],
1608
1657
  },
1609
1658
  {
1610
1659
  provide: 'LeadRepository',
1611
1660
  useFactory: function (firestore) {
1612
- return new i2.LeadFirestoreRepository(firestore.firestore);
1661
+ return new i1$1.LeadFirestoreRepository(firestore.firestore);
1613
1662
  },
1614
- deps: [i1$1.AngularFirestore],
1663
+ deps: [i1$2.AngularFirestore],
1615
1664
  },
1616
1665
  {
1617
1666
  provide: 'LegacyOrderRepository',
1618
1667
  useFactory: function (firestore) {
1619
- return new i2.LegacyOrderFirestoreRepository(firestore.firestore);
1668
+ return new i1$1.LegacyOrderFirestoreRepository(firestore.firestore);
1620
1669
  },
1621
- deps: [i1$1.AngularFirestore],
1670
+ deps: [i1$2.AngularFirestore],
1622
1671
  },
1623
1672
  {
1624
1673
  provide: 'ShopMenuRepository',
1625
1674
  useFactory: function (firestore) {
1626
- return new i2.ShopMenuFirestoreRepository(firestore.firestore);
1675
+ return new i1$1.ShopMenuFirestoreRepository(firestore.firestore);
1627
1676
  },
1628
- deps: [i1$1.AngularFirestore],
1677
+ deps: [i1$2.AngularFirestore],
1629
1678
  },
1630
1679
  {
1631
1680
  provide: 'OrderRepository',
1632
1681
  useFactory: function (firestore) {
1633
- return new i2.OrderFirestoreRepository(firestore.firestore);
1682
+ return new i1$1.OrderFirestoreRepository(firestore.firestore);
1634
1683
  },
1635
- deps: [i1$1.AngularFirestore],
1684
+ deps: [i1$2.AngularFirestore],
1636
1685
  },
1637
1686
  {
1638
1687
  provide: 'PaymentRepository',
1639
1688
  useFactory: function (firestore) {
1640
- return new i2.PaymentFirestoreRepository(firestore.firestore);
1689
+ return new i1$1.PaymentFirestoreRepository(firestore.firestore);
1641
1690
  },
1642
- deps: [i1$1.AngularFirestore],
1691
+ deps: [i1$2.AngularFirestore],
1643
1692
  },
1644
1693
  {
1645
- provide: i2.ProductFirestoreRepository,
1694
+ provide: i1$1.ProductFirestoreRepository,
1646
1695
  useFactory: function (firestore) {
1647
- return new i2.ProductFirestoreRepository(firestore.firestore);
1696
+ return new i1$1.ProductFirestoreRepository(firestore.firestore);
1648
1697
  },
1649
- deps: [i1$1.AngularFirestore],
1698
+ deps: [i1$2.AngularFirestore],
1650
1699
  },
1651
1700
  {
1652
1701
  provide: 'SubscriptionPaymentRepository',
1653
1702
  useFactory: function (firestore, subscriptionRepository) {
1654
- return new i2.SubscriptionPaymentFirestoreRepository(firestore.firestore, subscriptionRepository);
1703
+ return new i1$1.SubscriptionPaymentFirestoreRepository(firestore.firestore, subscriptionRepository);
1655
1704
  },
1656
- deps: [i1$1.AngularFirestore, 'SubscriptionRepository'],
1705
+ deps: [i1$2.AngularFirestore, 'SubscriptionRepository'],
1657
1706
  },
1658
1707
  {
1659
1708
  provide: 'SubscriptionPlanRepository',
1660
1709
  useFactory: function (firestore) {
1661
- return new i2.SubscriptionPlanFirestoreRepository(firestore.firestore);
1710
+ return new i1$1.SubscriptionPlanFirestoreRepository(firestore.firestore);
1662
1711
  },
1663
- deps: [i1$1.AngularFirestore],
1712
+ deps: [i1$2.AngularFirestore],
1664
1713
  },
1665
1714
  {
1666
1715
  provide: 'SubscriptionProductRepository',
1667
1716
  useFactory: function (firestore) {
1668
- return new i2.SubscriptionProductFirestoreRepository(firestore.firestore);
1717
+ return new i1$1.SubscriptionProductFirestoreRepository(firestore.firestore);
1669
1718
  },
1670
- deps: [i1$1.AngularFirestore],
1719
+ deps: [i1$2.AngularFirestore],
1671
1720
  },
1672
1721
  {
1673
1722
  provide: 'SubscriptionRepository',
1674
1723
  useFactory: function (firestore) {
1675
- return new i2.SubscriptionFirestoreRepository(firestore.firestore);
1724
+ return new i1$1.SubscriptionFirestoreRepository(firestore.firestore);
1676
1725
  },
1677
- deps: [i1$1.AngularFirestore],
1726
+ deps: [i1$2.AngularFirestore],
1678
1727
  },
1679
1728
  {
1680
1729
  provide: 'UserRepository',
1681
1730
  useFactory: function (firestore) {
1682
- return new i2.UserFirestoreRepository(firestore.firestore);
1731
+ return new i1$1.UserFirestoreRepository(firestore.firestore);
1683
1732
  },
1684
- deps: [i1$1.AngularFirestore],
1733
+ deps: [i1$2.AngularFirestore],
1685
1734
  },
1686
1735
  {
1687
1736
  provide: 'UserAddressRepository',
1688
1737
  useFactory: function (firestore, userRepository) {
1689
- return new i2.UserAddressFirestoreRepository(firestore.firestore, userRepository);
1738
+ return new i1$1.UserAddressFirestoreRepository(firestore.firestore, userRepository);
1690
1739
  },
1691
- deps: [i1$1.AngularFirestore, 'UserRepository'],
1740
+ deps: [i1$2.AngularFirestore, 'UserRepository'],
1692
1741
  },
1693
1742
  {
1694
1743
  provide: 'UserPaymentMethodRepository',
1695
1744
  useFactory: function (firestore, userRepository) {
1696
- return new i2.UserPaymentMethodFirestoreRepository(firestore.firestore, userRepository);
1745
+ return new i1$1.UserPaymentMethodFirestoreRepository(firestore.firestore, userRepository);
1697
1746
  },
1698
- deps: [i1$1.AngularFirestore, 'UserRepository'],
1747
+ deps: [i1$2.AngularFirestore, 'UserRepository'],
1699
1748
  },
1700
1749
  {
1701
- provide: i2.ProductVariantFirestoreRepository,
1750
+ provide: i1$1.ProductVariantFirestoreRepository,
1702
1751
  useFactory: function (firestore, productRepository) {
1703
- return new i2.ProductVariantFirestoreRepository(firestore.firestore, productRepository);
1752
+ return new i1$1.ProductVariantFirestoreRepository(firestore.firestore, productRepository);
1704
1753
  },
1705
- deps: [i1$1.AngularFirestore, i2.ProductFirestoreRepository],
1754
+ deps: [i1$2.AngularFirestore, i1$1.ProductFirestoreRepository],
1706
1755
  },
1707
1756
  {
1708
1757
  provide: i0.APP_INITIALIZER,
1709
1758
  useFactory: function (firestore) { return function () { return firestore.firestore.settings({ ignoreUndefinedProperties: true }); }; },
1710
- deps: [i1$1.AngularFirestore],
1759
+ deps: [i1$2.AngularFirestore],
1711
1760
  multi: true,
1712
1761
  },
1713
1762
  ],
@@ -1730,34 +1779,34 @@
1730
1779
  AngularHasuraGraphQLModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: AngularHasuraGraphQLModule, providers: [
1731
1780
  {
1732
1781
  provide: 'CategoryRepository',
1733
- useExisting: i2.CategoryHasuraGraphQLRepository,
1782
+ useExisting: i1$1.CategoryHasuraGraphQLRepository,
1734
1783
  },
1735
1784
  {
1736
- provide: i2.CategoryHasuraGraphQLRepository,
1785
+ provide: i1$1.CategoryHasuraGraphQLRepository,
1737
1786
  useFactory: function (options, productRepository) {
1738
- return new i2.CategoryHasuraGraphQLRepository(options.endpoint, options.credentials, productRepository);
1787
+ return new i1$1.CategoryHasuraGraphQLRepository(options.endpoint, options.credentials, productRepository);
1739
1788
  },
1740
- deps: [HASURA_OPTIONS, i2.ProductHasuraGraphQLRepository],
1789
+ deps: [HASURA_OPTIONS, i1$1.ProductHasuraGraphQLRepository],
1741
1790
  },
1742
1791
  {
1743
1792
  provide: 'ProductRepository',
1744
- useExisting: i2.ProductHasuraGraphQLRepository,
1793
+ useExisting: i1$1.ProductHasuraGraphQLRepository,
1745
1794
  },
1746
1795
  {
1747
- provide: i2.ProductHasuraGraphQLRepository,
1796
+ provide: i1$1.ProductHasuraGraphQLRepository,
1748
1797
  useFactory: function (options) {
1749
- return new i2.ProductHasuraGraphQLRepository(options.endpoint, options.credentials);
1798
+ return new i1$1.ProductHasuraGraphQLRepository(options.endpoint, options.credentials);
1750
1799
  },
1751
1800
  deps: [HASURA_OPTIONS],
1752
1801
  },
1753
1802
  {
1754
1803
  provide: 'VariantRepository',
1755
- useExisting: i2.VariantHasuraGraphQLRepository,
1804
+ useExisting: i1$1.VariantHasuraGraphQLRepository,
1756
1805
  },
1757
1806
  {
1758
- provide: i2.VariantHasuraGraphQLRepository,
1807
+ provide: i1$1.VariantHasuraGraphQLRepository,
1759
1808
  useFactory: function (options) {
1760
- return new i2.VariantHasuraGraphQLRepository(options.endpoint, options.credentials);
1809
+ return new i1$1.VariantHasuraGraphQLRepository(options.endpoint, options.credentials);
1761
1810
  },
1762
1811
  deps: [HASURA_OPTIONS],
1763
1812
  },
@@ -1768,34 +1817,34 @@
1768
1817
  providers: [
1769
1818
  {
1770
1819
  provide: 'CategoryRepository',
1771
- useExisting: i2.CategoryHasuraGraphQLRepository,
1820
+ useExisting: i1$1.CategoryHasuraGraphQLRepository,
1772
1821
  },
1773
1822
  {
1774
- provide: i2.CategoryHasuraGraphQLRepository,
1823
+ provide: i1$1.CategoryHasuraGraphQLRepository,
1775
1824
  useFactory: function (options, productRepository) {
1776
- return new i2.CategoryHasuraGraphQLRepository(options.endpoint, options.credentials, productRepository);
1825
+ return new i1$1.CategoryHasuraGraphQLRepository(options.endpoint, options.credentials, productRepository);
1777
1826
  },
1778
- deps: [HASURA_OPTIONS, i2.ProductHasuraGraphQLRepository],
1827
+ deps: [HASURA_OPTIONS, i1$1.ProductHasuraGraphQLRepository],
1779
1828
  },
1780
1829
  {
1781
1830
  provide: 'ProductRepository',
1782
- useExisting: i2.ProductHasuraGraphQLRepository,
1831
+ useExisting: i1$1.ProductHasuraGraphQLRepository,
1783
1832
  },
1784
1833
  {
1785
- provide: i2.ProductHasuraGraphQLRepository,
1834
+ provide: i1$1.ProductHasuraGraphQLRepository,
1786
1835
  useFactory: function (options) {
1787
- return new i2.ProductHasuraGraphQLRepository(options.endpoint, options.credentials);
1836
+ return new i1$1.ProductHasuraGraphQLRepository(options.endpoint, options.credentials);
1788
1837
  },
1789
1838
  deps: [HASURA_OPTIONS],
1790
1839
  },
1791
1840
  {
1792
1841
  provide: 'VariantRepository',
1793
- useExisting: i2.VariantHasuraGraphQLRepository,
1842
+ useExisting: i1$1.VariantHasuraGraphQLRepository,
1794
1843
  },
1795
1844
  {
1796
- provide: i2.VariantHasuraGraphQLRepository,
1845
+ provide: i1$1.VariantHasuraGraphQLRepository,
1797
1846
  useFactory: function (options) {
1798
- return new i2.VariantHasuraGraphQLRepository(options.endpoint, options.credentials);
1847
+ return new i1$1.VariantHasuraGraphQLRepository(options.endpoint, options.credentials);
1799
1848
  },
1800
1849
  deps: [HASURA_OPTIONS],
1801
1850
  },
@@ -1809,7 +1858,7 @@
1809
1858
  AngularConnectModule.initializeApp = function (defaultShop, options, nameOrConfig) {
1810
1859
  return {
1811
1860
  ngModule: AngularConnectModule,
1812
- providers: __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((i2.isNil(defaultShop) ? [] : [{ provide: DEFAULT_SHOP, useValue: defaultShop }]))), __read((i2.isNil(options === null || options === void 0 ? void 0 : options.firebase) ? [] : [{ provide: fire.FIREBASE_OPTIONS, useValue: options === null || options === void 0 ? void 0 : options.firebase }]))), __read((i2.isNil(options === null || options === void 0 ? void 0 : options.firebase) ? [] : [{ provide: fire.FIREBASE_APP_NAME, useValue: nameOrConfig }]))), __read((i2.isNil(options === null || options === void 0 ? void 0 : options.elasticSearch) ? [] : [{ provide: ES_CONFIG, useValue: options.elasticSearch }]))), __read((i2.isNil(options === null || options === void 0 ? void 0 : options.hasura) ? [] : [{ provide: HASURA_OPTIONS, useValue: options.hasura }]))),
1861
+ providers: __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((i1$1.isNil(defaultShop) ? [] : [{ provide: DEFAULT_SHOP, useValue: defaultShop }]))), __read((i1$1.isNil(options === null || options === void 0 ? void 0 : options.firebase) ? [] : [{ provide: fire.FIREBASE_OPTIONS, useValue: options === null || options === void 0 ? void 0 : options.firebase }]))), __read((i1$1.isNil(options === null || options === void 0 ? void 0 : options.firebase) ? [] : [{ provide: fire.FIREBASE_APP_NAME, useValue: nameOrConfig }]))), __read((i1$1.isNil(options === null || options === void 0 ? void 0 : options.elasticSearch) ? [] : [{ provide: ES_CONFIG, useValue: options.elasticSearch }]))), __read((i1$1.isNil(options === null || options === void 0 ? void 0 : options.hasura) ? [] : [{ provide: HASURA_OPTIONS, useValue: options.hasura }]))), __read((i1$1.isNil(options === null || options === void 0 ? void 0 : options.apiUrl) ? [] : [{ provide: API_URL, useValue: options.apiUrl }]))),
1813
1862
  };
1814
1863
  };
1815
1864
  return AngularConnectModule;
@@ -1824,6 +1873,7 @@
1824
1873
  CouponService,
1825
1874
  HomeShopService,
1826
1875
  OrderService,
1876
+ ShippingService
1827
1877
  ], imports: [[fire.AngularFireModule, AngularFirestoreModule, AngularHasuraGraphQLModule]] });
1828
1878
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: AngularConnectModule, decorators: [{
1829
1879
  type: i0.NgModule,
@@ -1837,6 +1887,7 @@
1837
1887
  CouponService,
1838
1888
  HomeShopService,
1839
1889
  OrderService,
1890
+ ShippingService
1840
1891
  ],
1841
1892
  }]
1842
1893
  }] });
@@ -1856,6 +1907,7 @@
1856
1907
  exports.CouponService = CouponService;
1857
1908
  exports.HomeShopService = HomeShopService;
1858
1909
  exports.OrderService = OrderService;
1910
+ exports.ShippingService = ShippingService;
1859
1911
 
1860
1912
  Object.defineProperty(exports, '__esModule', { value: true });
1861
1913