ng-easycommerce 0.0.582 → 0.0.583

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.
@@ -10587,7 +10587,7 @@ var __decorate$13 = (this && this.__decorate) || function (decorators, target, k
10587
10587
  };
10588
10588
  var ProductDetailEcComponent = /** @class */ (function (_super) {
10589
10589
  __extends$w(ProductDetailEcComponent, _super);
10590
- function ProductDetailEcComponent(productService, consts, activedRoute, cartService, optionsService, productsService, analyticsService, router, toastrService, meta) {
10590
+ function ProductDetailEcComponent(productService, consts, activedRoute, cartService, optionsService, productsService, analyticsService, router, toastrService, meta, injector) {
10591
10591
  var _this = _super.call(this) || this;
10592
10592
  _this.productService = productService;
10593
10593
  _this.consts = consts;
@@ -10599,12 +10599,14 @@ var ProductDetailEcComponent = /** @class */ (function (_super) {
10599
10599
  _this.router = router;
10600
10600
  _this.toastrService = toastrService;
10601
10601
  _this.meta = meta;
10602
+ _this.injector = injector;
10602
10603
  _this.show = false;
10603
10604
  _this.quantity = 1;
10604
10605
  _this.breadcrumb = [];
10605
10606
  _this.code = null;
10606
10607
  _this.focusImage = null;
10607
10608
  _this.owlOptions = {};
10609
+ _this.showReviews = false;
10608
10610
  _this.addToCart = function () {
10609
10611
  _this.quantity > 0 && _this.productService.addToCart(_this.quantity);
10610
10612
  };
@@ -10684,6 +10686,9 @@ var ProductDetailEcComponent = /** @class */ (function (_super) {
10684
10686
  _this.analyticsService.callEvent('view_item', __assign$o(__assign$o({}, productParam), { currency: _this.consts.currency.code }));
10685
10687
  _this.changeImgFocus(productParam.picturesdefault[0]);
10686
10688
  });
10689
+ _this.injector.get(ChannelConfigService).channelConfig$.subscribe(function (channel) {
10690
+ _this.showReviews = channel.showReviews;
10691
+ });
10687
10692
  _this.ecOnConstruct();
10688
10693
  return _this;
10689
10694
  }
@@ -10710,7 +10715,8 @@ var ProductDetailEcComponent = /** @class */ (function (_super) {
10710
10715
  { type: AnalyticsService },
10711
10716
  { type: Router },
10712
10717
  { type: ToastService },
10713
- { type: Meta }
10718
+ { type: Meta },
10719
+ { type: Injector }
10714
10720
  ]; };
10715
10721
  __decorate$13([
10716
10722
  ViewChild('contact')