ng-easycommerce 0.0.615 → 0.0.616

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.
@@ -7436,7 +7436,7 @@ var CartEcComponent = /** @class */ (function (_super) {
7436
7436
  _this.hideDiscounts = false;
7437
7437
  _this.hideTaxes = false;
7438
7438
  _this.creditAccountShowPrices = null;
7439
- _this.showPriceWithoutTaxes = true;
7439
+ _this.showTaxLegend = false;
7440
7440
  _this.toDecimal = function (amount) { return _this.consts.toDecimal(amount); };
7441
7441
  _this.actualizarCantidad = function (item, cantidad, stock, id) {
7442
7442
  if (id) {
@@ -7526,7 +7526,7 @@ var CartEcComponent = /** @class */ (function (_super) {
7526
7526
  _this.hidePrices = (_b = (_a = channel) === null || _a === void 0 ? void 0 : _a.hidePrices, (_b !== null && _b !== void 0 ? _b : false));
7527
7527
  _this.hideDiscounts = (_d = (_c = channel) === null || _c === void 0 ? void 0 : _c.hideDiscounts, (_d !== null && _d !== void 0 ? _d : false));
7528
7528
  _this.hideTaxes = (_f = (_e = channel) === null || _e === void 0 ? void 0 : _e.hideTaxes, (_f !== null && _f !== void 0 ? _f : false));
7529
- _this.showPriceWithoutTaxes = (_h = (_g = channel) === null || _g === void 0 ? void 0 : _g.showPriceWithoutTaxes, (_h !== null && _h !== void 0 ? _h : true));
7529
+ _this.showTaxLegend = (_h = (_g = channel) === null || _g === void 0 ? void 0 : _g.showTaxLegend, (_h !== null && _h !== void 0 ? _h : false));
7530
7530
  if (_this.hidePrices) {
7531
7531
  _this.router.navigate(['/']);
7532
7532
  }
@@ -12357,7 +12357,7 @@ var PriceEcComponent = /** @class */ (function (_super) {
12357
12357
  _this.taxes = [];
12358
12358
  _this.showTaxLegendOnly = false;
12359
12359
  _this.disableTaxInfo = false;
12360
- _this.showPriceWithoutTaxes = true;
12360
+ _this.showTaxLegend = false;
12361
12361
  _this.hideTaxes = false;
12362
12362
  _this.ecOnConstruct();
12363
12363
  return _this;
@@ -12366,7 +12366,7 @@ var PriceEcComponent = /** @class */ (function (_super) {
12366
12366
  var _this = this;
12367
12367
  this.channelConfigService.channelConfig$.subscribe(function (channel) {
12368
12368
  var _a, _b, _c;
12369
- _this.showPriceWithoutTaxes = (_a = channel) === null || _a === void 0 ? void 0 : _a.showPriceWithoutTaxes;
12369
+ _this.showTaxLegend = (_a = channel) === null || _a === void 0 ? void 0 : _a.showTaxLegend;
12370
12370
  _this.hideTaxes = (_c = (_b = channel) === null || _b === void 0 ? void 0 : _b.hideTaxes, (_c !== null && _c !== void 0 ? _c : false));
12371
12371
  });
12372
12372
  this.ecOnInit();
@@ -12374,7 +12374,7 @@ var PriceEcComponent = /** @class */ (function (_super) {
12374
12374
  Object.defineProperty(PriceEcComponent.prototype, "shouldShowTaxes", {
12375
12375
  get: function () {
12376
12376
  return !this.disableTaxInfo &&
12377
- !this.showPriceWithoutTaxes &&
12377
+ this.showTaxLegend &&
12378
12378
  !this.hideTaxes &&
12379
12379
  !!this.basePrice &&
12380
12380
  !!this.taxeAmount;
@@ -14358,7 +14358,7 @@ var DetailCheckoutBlockEcComponent = /** @class */ (function (_super) {
14358
14358
  _this.creditAccountShowPrices = null;
14359
14359
  _this.hideDiscounts = false;
14360
14360
  _this.hideTaxes = false;
14361
- _this.showPriceWithoutTaxes = true;
14361
+ _this.showTaxLegend = false;
14362
14362
  _this.getIcon = function (data_item) {
14363
14363
  switch (data_item.type) {
14364
14364
  case 'coupon': return 'fas fa-ticket-alt fa-2x';
@@ -14396,7 +14396,7 @@ var DetailCheckoutBlockEcComponent = /** @class */ (function (_super) {
14396
14396
  var _a, _b, _c, _d, _e, _f;
14397
14397
  _this.hideDiscounts = (_b = (_a = channel) === null || _a === void 0 ? void 0 : _a.hideDiscounts, (_b !== null && _b !== void 0 ? _b : false));
14398
14398
  _this.hideTaxes = (_d = (_c = channel) === null || _c === void 0 ? void 0 : _c.hideTaxes, (_d !== null && _d !== void 0 ? _d : false));
14399
- _this.showPriceWithoutTaxes = (_f = (_e = channel) === null || _e === void 0 ? void 0 : _e.showPriceWithoutTaxes, (_f !== null && _f !== void 0 ? _f : true));
14399
+ _this.showTaxLegend = (_f = (_e = channel) === null || _e === void 0 ? void 0 : _e.showTaxLegend, (_f !== null && _f !== void 0 ? _f : false));
14400
14400
  });
14401
14401
  };
14402
14402
  DetailCheckoutBlockEcComponent.prototype.calcularTotales = function () {
@@ -14411,7 +14411,7 @@ var DetailCheckoutBlockEcComponent = /** @class */ (function (_super) {
14411
14411
  };
14412
14412
  DetailCheckoutBlockEcComponent.prototype.getTypeLabel = function (type) {
14413
14413
  if (type === 'taxes') {
14414
- return this.showPriceWithoutTaxes ? 'taxes' : 'national-taxes';
14414
+ return this.showTaxLegend ? 'taxes' : 'national-taxes';
14415
14415
  }
14416
14416
  return type;
14417
14417
  };
@@ -18768,7 +18768,7 @@ var SidebarEcComponent = /** @class */ (function () {
18768
18768
  this.hideDiscounts = false;
18769
18769
  this.hideTaxes = false;
18770
18770
  this.creditAccountShowPrices = null;
18771
- this.showPriceWithoutTaxes = true;
18771
+ this.showTaxLegend = false;
18772
18772
  this.actualizarCantidad = function (item, cantidad, stock, id) {
18773
18773
  if (id) {
18774
18774
  var elem_1 = document.getElementById(id);
@@ -18836,7 +18836,7 @@ var SidebarEcComponent = /** @class */ (function () {
18836
18836
  var _a, _b, _c, _d, _e, _f;
18837
18837
  _this.hideDiscounts = (_b = (_a = channel) === null || _a === void 0 ? void 0 : _a.hideDiscounts, (_b !== null && _b !== void 0 ? _b : false));
18838
18838
  _this.hideTaxes = (_d = (_c = channel) === null || _c === void 0 ? void 0 : _c.hideTaxes, (_d !== null && _d !== void 0 ? _d : false));
18839
- _this.showPriceWithoutTaxes = (_f = (_e = channel) === null || _e === void 0 ? void 0 : _e.showPriceWithoutTaxes, (_f !== null && _f !== void 0 ? _f : true));
18839
+ _this.showTaxLegend = (_f = (_e = channel) === null || _e === void 0 ? void 0 : _e.showTaxLegend, (_f !== null && _f !== void 0 ? _f : false));
18840
18840
  });
18841
18841
  this.cartService.showPrice$.subscribe(function (showPrice) {
18842
18842
  _this.creditAccountShowPrices = showPrice;