ng-easycommerce 0.0.595 → 0.0.597

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.
Files changed (38) hide show
  1. package/README.md +8 -0
  2. package/bundles/ng-easycommerce.umd.js +81 -13
  3. package/bundles/ng-easycommerce.umd.js.map +1 -1
  4. package/bundles/ng-easycommerce.umd.min.js +1 -1
  5. package/bundles/ng-easycommerce.umd.min.js.map +1 -1
  6. package/esm2015/lib/ec-component/account-ec/order-ec/order-ec.component.js +9 -2
  7. package/esm2015/lib/ec-component/account-ec/orders-list-ec/orders-list-ec.component.js +12 -4
  8. package/esm2015/lib/ec-component/cart-ec/cart-ec.component.js +18 -3
  9. package/esm2015/lib/ec-component/checkout-ec/checkout-ec.component.js +7 -1
  10. package/esm2015/lib/ec-component/checkout-ec/detail-checkout-block-ec/detail-checkout-block-ec.component.js +14 -4
  11. package/esm2015/lib/ec-component/header-ec/header-ec.component.js +6 -1
  12. package/esm2015/lib/ec-component/product-detail-ec/product-detail-ec.component.js +4 -1
  13. package/esm2015/lib/ec-component/product-ec/product-ec.component.js +13 -3
  14. package/esm2015/lib/ec-component/sidebar-ec/sidebar-ec.component.js +13 -3
  15. package/esm5/lib/ec-component/account-ec/order-ec/order-ec.component.js +9 -2
  16. package/esm5/lib/ec-component/account-ec/orders-list-ec/orders-list-ec.component.js +12 -4
  17. package/esm5/lib/ec-component/cart-ec/cart-ec.component.js +18 -3
  18. package/esm5/lib/ec-component/checkout-ec/checkout-ec.component.js +7 -1
  19. package/esm5/lib/ec-component/checkout-ec/detail-checkout-block-ec/detail-checkout-block-ec.component.js +14 -4
  20. package/esm5/lib/ec-component/header-ec/header-ec.component.js +6 -1
  21. package/esm5/lib/ec-component/product-detail-ec/product-detail-ec.component.js +4 -1
  22. package/esm5/lib/ec-component/product-ec/product-ec.component.js +13 -3
  23. package/esm5/lib/ec-component/sidebar-ec/sidebar-ec.component.js +13 -3
  24. package/fesm2015/ng-easycommerce.js +81 -13
  25. package/fesm2015/ng-easycommerce.js.map +1 -1
  26. package/fesm5/ng-easycommerce.js +81 -13
  27. package/fesm5/ng-easycommerce.js.map +1 -1
  28. package/lib/ec-component/account-ec/order-ec/order-ec.component.d.ts +3 -0
  29. package/lib/ec-component/account-ec/orders-list-ec/orders-list-ec.component.d.ts +4 -1
  30. package/lib/ec-component/cart-ec/cart-ec.component.d.ts +6 -1
  31. package/lib/ec-component/checkout-ec/checkout-ec.component.d.ts +1 -0
  32. package/lib/ec-component/checkout-ec/detail-checkout-block-ec/detail-checkout-block-ec.component.d.ts +5 -1
  33. package/lib/ec-component/header-ec/header-ec.component.d.ts +1 -0
  34. package/lib/ec-component/product-detail-ec/product-detail-ec.component.d.ts +1 -0
  35. package/lib/ec-component/product-ec/product-ec.component.d.ts +4 -1
  36. package/lib/ec-component/sidebar-ec/sidebar-ec.component.d.ts +5 -1
  37. package/ng-easycommerce.metadata.json +1 -1
  38. package/package.json +1 -1
@@ -7375,7 +7375,7 @@ var __values = (this && this.__values) || function(o) {
7375
7375
  };
7376
7376
  var CartEcComponent = /** @class */ (function (_super) {
7377
7377
  __extends$g(CartEcComponent, _super);
7378
- function CartEcComponent(cartService, authService, consts, productsService, router, modalService, toastrService, addressingService) {
7378
+ function CartEcComponent(cartService, authService, consts, productsService, router, modalService, toastrService, addressingService, channelConfigService) {
7379
7379
  var _this = _super.call(this) || this;
7380
7380
  _this.cartService = cartService;
7381
7381
  _this.authService = authService;
@@ -7385,6 +7385,7 @@ var CartEcComponent = /** @class */ (function (_super) {
7385
7385
  _this.modalService = modalService;
7386
7386
  _this.toastrService = toastrService;
7387
7387
  _this.addressingService = addressingService;
7388
+ _this.channelConfigService = channelConfigService;
7388
7389
  _this.variantsToShow = ['TALLE', 'COLOR'];
7389
7390
  _this.isLoggedIn = false;
7390
7391
  _this.mediaUrl = '';
@@ -7394,6 +7395,9 @@ var CartEcComponent = /** @class */ (function (_super) {
7394
7395
  _this.updateStock = false;
7395
7396
  _this.exitUpdate = false;
7396
7397
  _this.isDisabled = false;
7398
+ _this.hidePrices = false;
7399
+ _this.hideDiscounts = false;
7400
+ _this.hideTaxes = false;
7397
7401
  _this.toDecimal = function (amount) { return _this.consts.toDecimal(amount); };
7398
7402
  _this.actualizarCantidad = function (item, cantidad, stock, id) {
7399
7403
  if (id) {
@@ -7478,6 +7482,15 @@ var CartEcComponent = /** @class */ (function (_super) {
7478
7482
  window.scroll(0, 0);
7479
7483
  this.cartService.promotions.subscribe(function (promotions) { return _this.promotions = promotions; });
7480
7484
  // console.log(this.cartService.getTaxes());
7485
+ this.channelConfigService.channelConfig$.subscribe(function (channel) {
7486
+ var _a, _b, _c, _d, _e, _f;
7487
+ _this.hidePrices = (_b = (_a = channel) === null || _a === void 0 ? void 0 : _a.hidePrices, (_b !== null && _b !== void 0 ? _b : false));
7488
+ _this.hideDiscounts = (_d = (_c = channel) === null || _c === void 0 ? void 0 : _c.hideDiscounts, (_d !== null && _d !== void 0 ? _d : false));
7489
+ _this.hideTaxes = (_f = (_e = channel) === null || _e === void 0 ? void 0 : _e.hideTaxes, (_f !== null && _f !== void 0 ? _f : false));
7490
+ if (_this.hidePrices) {
7491
+ _this.router.navigate(['/']);
7492
+ }
7493
+ });
7481
7494
  this.ecOnInit();
7482
7495
  };
7483
7496
  CartEcComponent.prototype.redirectCheckout = function () {
@@ -7751,7 +7764,8 @@ var CartEcComponent = /** @class */ (function (_super) {
7751
7764
  { type: Router },
7752
7765
  { type: BsModalService },
7753
7766
  { type: ToastService },
7754
- { type: AddressingService }
7767
+ { type: AddressingService },
7768
+ { type: ChannelConfigService }
7755
7769
  ]; };
7756
7770
  CartEcComponent = __decorate$O([
7757
7771
  Component({
@@ -7796,6 +7810,7 @@ var CheckoutEcComponent = /** @class */ (function (_super) {
7796
7810
  _this.canCheckout = false;
7797
7811
  _this.require_login = false;
7798
7812
  _this.steps = [];
7813
+ _this.hidePrices = false;
7799
7814
  _this.loading$ = _this.loadingSubject.asObservable();
7800
7815
  _this.initializeCheckout = function () {
7801
7816
  var _a, _b, _c, _d;
@@ -7874,8 +7889,13 @@ var CheckoutEcComponent = /** @class */ (function (_super) {
7874
7889
  }
7875
7890
  };
7876
7891
  _this.channelService.channelConfig$.subscribe(function (res) {
7892
+ var _a, _b;
7877
7893
  _this.channel = res;
7878
7894
  _this.initializeSteps();
7895
+ _this.hidePrices = (_b = (_a = res) === null || _a === void 0 ? void 0 : _a.hidePrices, (_b !== null && _b !== void 0 ? _b : false));
7896
+ if (_this.hidePrices) {
7897
+ _this.router.navigate(['/']);
7898
+ }
7879
7899
  //console.log(this.stepEnabled(3))
7880
7900
  });
7881
7901
  _this.ecOnConstruct();
@@ -9718,6 +9738,7 @@ var HeaderEcComponent = /** @class */ (function (_super) {
9718
9738
  _this.toggled = false;
9719
9739
  _this.locales = [];
9720
9740
  _this.selectedLocale = 'ESP';
9741
+ _this.hidePrices = false;
9721
9742
  _this.updateMenuItemSection = function (elements) {
9722
9743
  _this.menuItemsSections = _this.optionsService.generateMenu(elements);
9723
9744
  _this.menuItemsSections = _this.ecUpdateMenuItemSection(_this.menuItemsSections);
@@ -9843,6 +9864,10 @@ var HeaderEcComponent = /** @class */ (function (_super) {
9843
9864
  _this.selectedLocale = _this.locales[0].name;
9844
9865
  }
9845
9866
  });
9867
+ this.channelConfigService.channelConfig$.subscribe(function (channel) {
9868
+ var _a, _b;
9869
+ _this.hidePrices = (_b = (_a = channel) === null || _a === void 0 ? void 0 : _a.hidePrices, (_b !== null && _b !== void 0 ? _b : false));
9870
+ });
9846
9871
  };
9847
9872
  HeaderEcComponent.prototype.subscribeToBalance = function () {
9848
9873
  var _this = this;
@@ -10766,6 +10791,7 @@ var ProductDetailEcComponent = /** @class */ (function (_super) {
10766
10791
  _this.focusImage = null;
10767
10792
  _this.owlOptions = {};
10768
10793
  _this.showReviews = false;
10794
+ _this.hidePrices = false;
10769
10795
  _this.addToCart = function () {
10770
10796
  _this.quantity > 0 && _this.productService.addToCart(_this.quantity);
10771
10797
  };
@@ -10846,7 +10872,9 @@ var ProductDetailEcComponent = /** @class */ (function (_super) {
10846
10872
  _this.changeImgFocus(productParam.picturesdefault[0]);
10847
10873
  });
10848
10874
  _this.injector.get(ChannelConfigService).channelConfig$.subscribe(function (channel) {
10875
+ var _a, _b;
10849
10876
  _this.showReviews = channel.showReviews;
10877
+ _this.hidePrices = (_b = (_a = channel) === null || _a === void 0 ? void 0 : _a.hidePrices, (_b !== null && _b !== void 0 ? _b : false));
10850
10878
  });
10851
10879
  _this.ecOnConstruct();
10852
10880
  return _this;
@@ -10912,7 +10940,7 @@ var __decorate$15 = (this && this.__decorate) || function (decorators, target, k
10912
10940
  };
10913
10941
  var ProductEcComponent = /** @class */ (function (_super) {
10914
10942
  __extends$x(ProductEcComponent, _super);
10915
- function ProductEcComponent(consts, router, productService, authService, toastrService, analyticsService) {
10943
+ function ProductEcComponent(consts, router, productService, authService, toastrService, analyticsService, injector) {
10916
10944
  var _this = _super.call(this) || this;
10917
10945
  _this.consts = consts;
10918
10946
  _this.router = router;
@@ -10920,9 +10948,11 @@ var ProductEcComponent = /** @class */ (function (_super) {
10920
10948
  _this.authService = authService;
10921
10949
  _this.toastrService = toastrService;
10922
10950
  _this.analyticsService = analyticsService;
10951
+ _this.injector = injector;
10923
10952
  _this.quantity = 1;
10924
10953
  _this.stock = 0;
10925
10954
  _this.data = null;
10955
+ _this.hidePrices = false;
10926
10956
  /**
10927
10957
  * @description variable utilizada mutar de la vista de lista, a la de box.
10928
10958
  */
@@ -10983,6 +11013,11 @@ var ProductEcComponent = /** @class */ (function (_super) {
10983
11013
  .filter(function (attribute) { return attribute.code === 'marca'; })
10984
11014
  .map(function (attribute) { return attribute.children[0].name; });
10985
11015
  };
11016
+ var channelConfigService = _this.injector.get(ChannelConfigService);
11017
+ channelConfigService.channelConfig$.subscribe(function (channel) {
11018
+ var _a, _b;
11019
+ _this.hidePrices = (_b = (_a = channel) === null || _a === void 0 ? void 0 : _a.hidePrices, (_b !== null && _b !== void 0 ? _b : false));
11020
+ });
10986
11021
  _this.ecOnConstruct();
10987
11022
  return _this;
10988
11023
  }
@@ -11004,7 +11039,8 @@ var ProductEcComponent = /** @class */ (function (_super) {
11004
11039
  { type: ProductDetailService },
11005
11040
  { type: AuthService },
11006
11041
  { type: ToastService },
11007
- { type: AnalyticsService }
11042
+ { type: AnalyticsService },
11043
+ { type: Injector }
11008
11044
  ]; };
11009
11045
  __decorate$15([
11010
11046
  Input()
@@ -12747,16 +12783,18 @@ var __decorate$1k = (this && this.__decorate) || function (decorators, target, k
12747
12783
  };
12748
12784
  var OrdersEcComponent = /** @class */ (function (_super) {
12749
12785
  __extends$L(OrdersEcComponent, _super);
12750
- function OrdersEcComponent(ordersService, router, consts, cartService) {
12786
+ function OrdersEcComponent(ordersService, router, consts, cartService, channelConfigService) {
12751
12787
  var _this = _super.call(this) || this;
12752
12788
  _this.ordersService = ordersService;
12753
12789
  _this.router = router;
12754
12790
  _this.consts = consts;
12755
12791
  _this.cartService = cartService;
12792
+ _this.channelConfigService = channelConfigService;
12756
12793
  _this.loading = true;
12757
12794
  _this.showImage = true;
12758
12795
  _this.showPrice = false;
12759
12796
  _this.creditAmountConfigured = false;
12797
+ _this.hidePrices = false;
12760
12798
  /**
12761
12799
  * @description name -> nombre de clave de valuesToSort; asc -> true: ascendente, false: descendente
12762
12800
  */
@@ -12901,12 +12939,17 @@ var OrdersEcComponent = /** @class */ (function (_super) {
12901
12939
  this.cartService.creditAmount$.subscribe(function (creditAmount) {
12902
12940
  _this.creditAmountConfigured = creditAmount !== null;
12903
12941
  });
12942
+ this.channelConfigService.channelConfig$.subscribe(function (channel) {
12943
+ var _a, _b;
12944
+ _this.hidePrices = (_b = (_a = channel) === null || _a === void 0 ? void 0 : _a.hidePrices, (_b !== null && _b !== void 0 ? _b : false));
12945
+ });
12904
12946
  };
12905
12947
  OrdersEcComponent.ctorParameters = function () { return [
12906
12948
  { type: OrdersService },
12907
12949
  { type: Router },
12908
12950
  { type: Constants },
12909
- { type: CartService }
12951
+ { type: CartService },
12952
+ { type: ChannelConfigService }
12910
12953
  ]; };
12911
12954
  __decorate$1k([
12912
12955
  Input()
@@ -12914,7 +12957,7 @@ var OrdersEcComponent = /** @class */ (function (_super) {
12914
12957
  OrdersEcComponent = __decorate$1k([
12915
12958
  Component({
12916
12959
  selector: 'app-orders-ec',
12917
- template: "<div class=\"container-fluid\" id=\"ordersEcComponent\">\n <section id=\"orders\" class=\"w-100\" *ngIf=\"!loading; else loadingView\">\n <div *ngIf=\"orders && orders.length; else noOrders\">\n <div class=\"row mb-1 border-bottom\">\n <div class=\"col-lg-2 col-12\">\n <p [class]=\"'st dropdown-toggle cursor-pointer my-2 '+ (currentSort.name == 'number' ? 'applied ' + (!currentSort.asc ? 'asc' : 'desc') : '')\"\n (click)=\"sortOrders('number')\">{{ 'order' | translate }}:</p>\n </div>\n <div class=\"col-lg-2 col-12\">\n <p [class]=\"'st dropdown-toggle cursor-pointer my-2 '+ (currentSort.name == 'paymentState' ? 'applied ' + (!currentSort.asc ? 'asc' : 'desc') : '')\"\n (click)=\"sortOrders('paymentState')\">{{ 'payment-state' | translate }}:</p>\n </div>\n <div class=\"col-lg-2 col-12\">\n <p [class]=\"'st dropdown-toggle cursor-pointer my-2 '+ (currentSort.name == 'method' ? 'applied ' + (!currentSort.asc ? 'asc' : 'desc') : '')\"\n (click)=\"sortOrders('method')\">{{ 'shipment-method' | translate }}:</p>\n </div>\n <div class=\"col-lg-2 col-12 \">\n <p [class]=\"'st dropdown-toggle cursor-pointer my-2 '+ (currentSort.name == 'methodState' ? 'applied ' + (!currentSort.asc ? 'asc' : 'desc') : '')\"\n (click)=\"sortOrders('methodState')\">\n {{ 'shipment-state' | translate }}:</p>\n </div>\n <div class=\"col-lg-2 col-12\">\n <p [class]=\"'st dropdown-toggle cursor-pointer my-2 '+ (currentSort.name == 'date' ? 'applied ' + (!currentSort.asc ? 'asc' : 'desc') : '')\"\n (click)=\"sortOrders('date')\">{{ 'date' | translate }}:</p>\n </div>\n <div class=\"col-lg-2 col-12\">\n <p [class]=\"'st dropdown-toggle cursor-pointer my-2 '+ (currentSort.name == 'total' ? 'applied ' + (!currentSort.asc ? 'asc' : 'desc') : '')\"\n (click)=\"sortOrders('total')\">{{ 'total' | translate }}:</p>\n </div>\n </div>\n <div class=\"row item border-bottom py-2\" *ngFor=\"let order of orders\">\n <div class=\"col-lg-2 col-12\">\n <h5 class=\"fw-bold\">\n {{ order.number }}\n </h5>\n <!-- <ng-container *ngIf=\"showImage\">\n <ng-container *ngIf=\"order.items[0].product.variants[0]?.images?.length ; else defaultpicture\">\n <img class=\"smc maxwidth\" [src]=\"mediaUrl + order.items[0].product.variants[0].images[0]\" alt=\"\">\n </ng-container>\n <ng-template #defaultpicture>\n <img *ngIf=\"order.items[0].product.picturesdefault\" class=\"smc maxwidth\"\n [src]=\"mediaUrl + order.items[0].product.picturesdefault[0]\" alt=\"\">\n </ng-template>\n </ng-container> -->\n </div>\n <div class=\"col-lg-2 col-12\">\n <p class=\"price\" *ngIf=\"order.payments && order.payments.length > 0\">\n {{ order.payments[0].state | translate | titlecase }}\n </p>\n </div>\n <div class=\"col-lg-2 col-12\">\n\n <p class=\"price\">\n {{ order.shipments[0].method.name }}\n </p>\n </div>\n <div class=\"col-lg-2 col-12\">\n <p class=\"price\">\n {{ order.shipments[0].state | translate | titlecase }}\n </p>\n <!-- ACA DEBERIA IR EL LINK DE SEGUIMIENTO -->\n <!-- <button class=\"btn btn-outline-dark btnLogout px-3 py-1 font-size-10 w-auto btn-sm\">Ver seguimiento</button> -->\n <a *ngIf=\"order.tracking\" [href]=\"order.tracking\"\n class=\"btn btn-outline-dark btnLogout px-3 py-1 font-size-10 w-auto btn-sm\">Ver seguimiento</a>\n </div>\n <div class=\"col-lg-2 col-12\">\n <p class=\"price\">\n {{ toDate(order.checkoutCompletedAt, 'DD/MM/YYYY') | translate }}<br>\n {{ toDate(order.checkoutCompletedAt, 'h:mm:ss a') | translate }}\n </p>\n </div>\n <div class=\"col-lg-2 col-12\">\n <h5 class=\"fw-bold text-nowrap\" *ngIf=\"(creditAmountConfigured ? showPrice : true)\">\n {{ (order.totals.total) | ecCurrencySymbol }}\n </h5>\n <button class=\"btn px-0 w-100 btdetalle\" (click)=\"goToOrder(order)\">{{\n 'see-order' | translate }}</button>\n </div>\n </div>\n </div>\n </section>\n</div>\n\n<ng-template #noOrders>\n <div class=\"w-100 h-50\">\n <div class=\"d-flex flex-row justify-content-center align-items-center text-center\">\n <h5>{{ 'no-orders' | translate }}</h5>\n </div>\n </div>\n</ng-template>\n\n<ng-template #errorView>\n <div class=\"w-100 h-50\">\n <div class=\"d-flex flex-row justify-content-center align-items-center text-center\">\n <h4>{{ 'orders-error' | translate }}</h4>\n </div>\n </div>\n</ng-template>\n\n<ng-template #loadingView>\n <div class=\"w-100 h-50 py-5\">\n <div class=\"d-flex flex-row justify-content-center align-items-center text-center\">\n <app-loading-full-ec></app-loading-full-ec>\n </div>\n </div>\n</ng-template>",
12960
+ template: "<div class=\"container-fluid\" id=\"ordersEcComponent\">\n <section id=\"orders\" class=\"w-100\" *ngIf=\"!loading; else loadingView\">\n <ng-container *ngIf=\"!hidePrices\">\n <div *ngIf=\"orders && orders.length; else noOrders\">\n <div class=\"row mb-1 border-bottom\">\n <div class=\"col-lg-2 col-12\">\n <p [class]=\"'st dropdown-toggle cursor-pointer my-2 '+ (currentSort.name == 'number' ? 'applied ' + (!currentSort.asc ? 'asc' : 'desc') : '')\"\n (click)=\"sortOrders('number')\">{{ 'order' | translate }}:</p>\n </div>\n <div class=\"col-lg-2 col-12\">\n <p [class]=\"'st dropdown-toggle cursor-pointer my-2 '+ (currentSort.name == 'paymentState' ? 'applied ' + (!currentSort.asc ? 'asc' : 'desc') : '')\"\n (click)=\"sortOrders('paymentState')\">{{ 'payment-state' | translate }}:</p>\n </div>\n <div class=\"col-lg-2 col-12\">\n <p [class]=\"'st dropdown-toggle cursor-pointer my-2 '+ (currentSort.name == 'method' ? 'applied ' + (!currentSort.asc ? 'asc' : 'desc') : '')\"\n (click)=\"sortOrders('method')\">{{ 'shipment-method' | translate }}:</p>\n </div>\n <div class=\"col-lg-2 col-12 \">\n <p [class]=\"'st dropdown-toggle cursor-pointer my-2 '+ (currentSort.name == 'methodState' ? 'applied ' + (!currentSort.asc ? 'asc' : 'desc') : '')\"\n (click)=\"sortOrders('methodState')\">\n {{ 'shipment-state' | translate }}:</p>\n </div>\n <div class=\"col-lg-2 col-12\">\n <p [class]=\"'st dropdown-toggle cursor-pointer my-2 '+ (currentSort.name == 'date' ? 'applied ' + (!currentSort.asc ? 'asc' : 'desc') : '')\"\n (click)=\"sortOrders('date')\">{{ 'date' | translate }}:</p>\n </div>\n <div class=\"col-lg-2 col-12\">\n <p [class]=\"'st dropdown-toggle cursor-pointer my-2 '+ (currentSort.name == 'total' ? 'applied ' + (!currentSort.asc ? 'asc' : 'desc') : '')\"\n (click)=\"sortOrders('total')\">{{ 'total' | translate }}:</p>\n </div>\n </div>\n <div class=\"row item border-bottom py-2\" *ngFor=\"let order of orders\">\n <div class=\"col-lg-2 col-12\">\n <h5 class=\"fw-bold\">\n {{ order.number }}\n </h5>\n <!-- <ng-container *ngIf=\"showImage\">\n <ng-container *ngIf=\"order.items[0].product.variants[0]?.images?.length ; else defaultpicture\">\n <img class=\"smc maxwidth\" [src]=\"mediaUrl + order.items[0].product.variants[0].images[0]\" alt=\"\">\n </ng-container>\n <ng-template #defaultpicture>\n <img *ngIf=\"order.items[0].product.picturesdefault\" class=\"smc maxwidth\"\n [src]=\"mediaUrl + order.items[0].product.picturesdefault[0]\" alt=\"\">\n </ng-template>\n </ng-container> -->\n </div>\n <div class=\"col-lg-2 col-12\">\n <p class=\"price\" *ngIf=\"order.payments && order.payments.length > 0\">\n {{ order.payments[0].state | translate | titlecase }}\n </p>\n </div>\n <div class=\"col-lg-2 col-12\">\n\n <p class=\"price\">\n {{ order.shipments[0].method.name }}\n </p>\n </div>\n <div class=\"col-lg-2 col-12\">\n <p class=\"price\">\n {{ order.shipments[0].state | translate | titlecase }}\n </p>\n <!-- ACA DEBERIA IR EL LINK DE SEGUIMIENTO -->\n <!-- <button class=\"btn btn-outline-dark btnLogout px-3 py-1 font-size-10 w-auto btn-sm\">Ver seguimiento</button> -->\n <a *ngIf=\"order.tracking\" [href]=\"order.tracking\"\n class=\"btn btn-outline-dark btnLogout px-3 py-1 font-size-10 w-auto btn-sm\">Ver\n seguimiento</a>\n </div>\n <div class=\"col-lg-2 col-12\">\n <p class=\"price\">\n {{ toDate(order.checkoutCompletedAt, 'DD/MM/YYYY') | translate }}<br>\n {{ toDate(order.checkoutCompletedAt, 'h:mm:ss a') | translate }}\n </p>\n </div>\n <div class=\"col-lg-2 col-12\">\n <h5 class=\"fw-bold text-nowrap\" *ngIf=\"(creditAmountConfigured ? showPrice : true)\">\n {{ (order.totals.total) | ecCurrencySymbol }}\n </h5>\n <button class=\"btn px-0 w-100 btdetalle\" (click)=\"goToOrder(order)\">{{\n 'see-order' | translate }}</button>\n </div>\n </div>\n </div>\n </ng-container>\n </section>\n</div>\n\n<ng-template #noOrders>\n <div class=\"w-100 h-50\">\n <div class=\"d-flex flex-row justify-content-center align-items-center text-center\">\n <h5>{{ 'no-orders' | translate }}</h5>\n </div>\n </div>\n</ng-template>\n\n<ng-template #errorView>\n <div class=\"w-100 h-50\">\n <div class=\"d-flex flex-row justify-content-center align-items-center text-center\">\n <h4>{{ 'orders-error' | translate }}</h4>\n </div>\n </div>\n</ng-template>\n\n<ng-template #loadingView>\n <div class=\"w-100 h-50 py-5\">\n <div class=\"d-flex flex-row justify-content-center align-items-center text-center\">\n <app-loading-full-ec></app-loading-full-ec>\n </div>\n </div>\n</ng-template>",
12918
12961
  styles: ["#ordersEcComponent .btn.btdetalle{background-color:#000;color:#fff;border-color:#000;border-width:1px;border-radius:10px;padding:10px 0}#ordersEcComponent .btn.btdetalle:hover{background-color:#fff;color:#000;border-color:#000}.asc.dropdown-toggle::after{transform:rotate(180deg)}.applied.dropdown-toggle::after{color:#198754}"]
12919
12962
  })
12920
12963
  ], OrdersEcComponent);
@@ -12994,6 +13037,9 @@ var OrderEcComponent = /** @class */ (function (_super) {
12994
13037
  _this.allowRepeatOrders = false;
12995
13038
  _this.showPrice = false;
12996
13039
  _this.creditAmountConfigured = false;
13040
+ _this.hidePrices = false;
13041
+ _this.hideDiscounts = false;
13042
+ _this.hideTaxes = false;
12997
13043
  _this.toDate = function (date, format) { return moment(date).format(!format && 'DD/MM/YYYY, h:mm:ss a' || format); };
12998
13044
  _this.callError = function () {
12999
13045
  _this.error = '?';
@@ -13036,12 +13082,16 @@ var OrderEcComponent = /** @class */ (function (_super) {
13036
13082
  _this.callError();
13037
13083
  };
13038
13084
  this.channelConfigService.channelConfig$.subscribe(function (config) {
13085
+ var _a, _b, _c, _d, _e, _f;
13039
13086
  if (config && config.allowRepeatOrders !== undefined) {
13040
13087
  _this.allowRepeatOrders = config.allowRepeatOrders;
13041
13088
  }
13042
13089
  else {
13043
13090
  _this.allowRepeatOrders = false;
13044
13091
  }
13092
+ _this.hidePrices = (_b = (_a = config) === null || _a === void 0 ? void 0 : _a.hidePrices, (_b !== null && _b !== void 0 ? _b : false));
13093
+ _this.hideDiscounts = (_d = (_c = config) === null || _c === void 0 ? void 0 : _c.hideDiscounts, (_d !== null && _d !== void 0 ? _d : false));
13094
+ _this.hideTaxes = (_f = (_e = config) === null || _e === void 0 ? void 0 : _e.hideTaxes, (_f !== null && _f !== void 0 ? _f : false));
13045
13095
  });
13046
13096
  this.cartService.showPrice$.subscribe(function (showPrice) {
13047
13097
  _this.showPrice = showPrice;
@@ -13070,7 +13120,7 @@ var OrderEcComponent = /** @class */ (function (_super) {
13070
13120
  OrderEcComponent = __decorate$1l([
13071
13121
  Component({
13072
13122
  selector: 'app-order-ec',
13073
- template: "<main class=\"py-5\" id=\"orderEcComponent\">\n <div class=\"container\">\n <div class=\"wrap\" *ngIf=\"!loading; else loadingView\">\n <div *ngIf=\"order; else noOrder\">\n\n <div class=\"row justify-content-between \">\n <div class=\"col-sm-auto col-12 font-brandon\">\n <h4 class=\"tit1 fw-bold\">{{ ('order' | translate) + ': ' + order.number }}</h4>\n </div>\n <ng-container *ngIf=\"order?.invoice\">\n <div class=\"col-sm col-12 font-brandon\">\n <a target=\"_blank\" [href]=\"consts.getUrlBase().slice(0, -1) + order.invoice\"\n class=\"btn btn-link btn-invoice\">\n <i class=\"fas fa-file-download me-1\"></i>\n {{ 'download' | translate }} {{ 'invoices' | translate | titlecase }}\n </a>\n </div>\n </ng-container>\n <a (click)=\"volver()\" class=\"col-auto text-end\">\n <button class=\"btn btvolver bg-gray text-white\">{{ 'back-to-orders' | translate }}</button>\n </a>\n </div>\n\n <section id=\"orders\">\n <div class=\"row pt-2\">\n <div class=\"col-md-2 col-12\">\n <p class=\"st\">{{ 'payment-state' | translate }}:</p>\n <p class=\"\">\n {{ order.payments[0].state | translate }}\n </p>\n </div>\n <div class=\"col-md-2 col-12 font-brandon\">\n <p class=\"st\">{{ 'shipment-state' | translate }}:</p>\n <p class=\"\">\n {{ order.shipments[0].state | translate }}\n </p>\n </div>\n <div class=\"col-md-2 col-12 font-brandon\">\n <p class=\"st\">{{ 'payment-method' | translate }}:</p>\n <p class=\"\">\n {{ order.payments[0]?.method?.name | translate }}\n </p>\n </div>\n <div class=\"col-md-2 col-12 font-brandon\">\n <p class=\"st\">{{ 'shipment-method' | translate }}:</p>\n <p class=\"\">\n {{ order.shipments[0].method.name }}\n </p>\n <!-- ACA DEBERIA IR EL LINK DE SEGUIMIENTO -->\n <a *ngIf=\"order.tracking\" [href]=\"order.tracking\"\n class=\"btn btn-outline-dark btnLogout px-3 py-1 font-size-10 w-auto btn-sm\">Ver\n seguimiento</a>\n </div>\n <div class=\"col-md-2 col-12 font-brandon\">\n <p class=\"st\">{{ 'date' | translate }}:</p>\n <p class=\"\">\n {{ toDate(order.checkoutCompletedAt, 'DD/MM/YYYY') | translate }}<br>\n {{ toDate(order.checkoutCompletedAt, 'h:mm:ss a') | translate }}\n </p>\n </div>\n <div class=\"col-md-2 col-12 font-brandon\" *ngIf=\"(creditAmountConfigured ? showPrice : true)\">\n <p class=\"st\">{{ 'total' | translate }}:</p>\n <h5 class=\"fw-bold\">\n {{ (order.totals.total) | ecCurrencySymbol}}\n\n </h5>\n </div>\n </div>\n </section>\n\n <div class=\"text-end mt-3\" *ngIf=\"allowRepeatOrders\">\n <button class=\"btn btn-primary mb-2\" (click)=\"repeatOrder()\">\n {{ 'repeat-order' | translate }}\n </button>\n </div>\n\n <div class=\"container py-3 border-top border-bottom\">\n <div *ngIf=\"order.items.length; else noProducts\" class=\"row\">\n <div class=\"col-2 font-sm font-brandon d-none d-md-block\">\n {{ 'product' | translate | uppercase }}\n </div>\n <div class=\"col-4 font-sm font-brandon d-none d-md-block\">\n {{ 'description' | translate | uppercase }}\n </div>\n <div id=\"colLots\" *ngIf=\"ordersService.channelConfig.applyOrderLot\"\n class=\"col-1 font-sm font-brandon d-none d-md-block\">\n <!-- {{ 'description' | translate | uppercase }} -->\n {{ 'lots' | translate | uppercase }}\n </div>\n <div class=\"col-2 text-center font-sm font-brandon d-none d-md-block\"\n *ngIf=\"(creditAmountConfigured ? showPrice : true)\">\n {{ 'unit-price' | translate | uppercase }}\n </div>\n <div class=\"col-1 text-center font-sm font-brandon d-none d-md-block\">\n {{ 'quantity' | translate | uppercase }}\n </div>\n <div class=\"col-2 text-end font-sm font-brandon d-none d-md-block\"\n *ngIf=\"(creditAmountConfigured ? showPrice : true)\">\n {{ 'total' | translate | uppercase }}\n </div>\n </div>\n <ng-container *ngFor=\"let item of order.items; let i = index\">\n <div class=\"row cart-items\">\n <div class=\"col-5 col-md-2 py-2\">\n <ng-container *ngIf=\"item.product.variants[0]?.images?.length ; else defaultpicture\">\n <img class=\"smc maxwidth img-fluid rounded-custom \"\n [src]=\"consts.mediaUrl() + item.product.variants[0].images[0]\" alt=\"\">\n </ng-container>\n <ng-template #defaultpicture>\n <img *ngIf=\"item.product.picturesdefault\"\n class=\"smc maxwidth img-fluid rounded-custom\"\n [src]=\"consts.mediaUrl() + item.product.picturesdefault[0]\" alt=\"\">\n </ng-template>\n </div>\n <div\n class=\"col-md-4 col-7 flex-column flex-md-row justify-content-start d-flex align-items-center\">\n <p class=\"font-brandon d-flex w-100 mb-0\">\n {{ item.product.name }} (Cod:{{ item.product.variants[0].code }})\n </p>\n </div>\n <div class=\"col-md-1 col-1 flex-column flex-md-row justify-content-start d-flex align-items-center\"\n *ngIf=\"ordersService.channelConfig.applyOrderLot\">\n <input type=\"button\" class=\"btn btn-primary btnSeguir m-0 text-center\" type=\"button\"\n [attr.data-bs-toggle]=\"'collapse'\" [attr.data-bs-target]=\"'#collapseExample'+i\"\n aria-expanded=\"false\" [attr.aria-controls]=\"'collapseExample'+i\"\n value=\"{{ 'see' | translate | uppercase }}\">\n </div>\n <div class=\"container d-md-none\">\n <div class=\"row\">\n <div class=\"col-4\">\n <p class=\"text-center w-100 m-0\"> {{ item.quantity }}</p>\n </div>\n <div class=\"col-4 font-xl\" *ngIf=\"(creditAmountConfigured ? showPrice : true)\">\n <p class=\"text-center w-100 m-0\"> {{ (item.product.variants[0].saleprice ?\n item.product.variants[0].saleprice : item.product.variants[0].price) |\n ecCurrencySymbol}}</p>\n </div>\n <div class=\"col-4 font-xl\" *ngIf=\"(creditAmountConfigured ? showPrice : true)\">\n <p class=\"text-center w-100 m-0\"> {{ ((item.product.variants[0].saleprice ?\n item.product.variants[0].saleprice : item.product.variants[0].price) *\n item.quantity) | ecCurrencySymbol}}</p>\n </div>\n </div>\n </div>\n\n <div class=\"col-2 d-none d-md-flex align-items-center\"\n *ngIf=\"(creditAmountConfigured ? showPrice : true)\">\n <p class=\"text-center w-100 m-0\">\n {{ (item.product.variants[0].saleprice ? item.product.variants[0].saleprice :\n item.product.variants[0].price) | ecCurrencySymbol}}\n </p>\n </div>\n <div class=\"col-1 d-none d-md-flex align-items-center\">\n <p class=\"text-center w-100 m-0\"> {{ item.quantity }}</p>\n </div>\n <div class=\"col-2 d-none d-md-flex align-items-center\"\n *ngIf=\"(creditAmountConfigured ? showPrice : true)\">\n <p class=\"text-end w-100 m-0\">\n {{ ((item.product.variants[0].saleprice ? item.product.variants[0].saleprice :\n item.product.variants[0].price) * item.quantity) | ecCurrencySymbol}}</p>\n </div>\n <div class=\"collapse\" [attr.id]=\"'collapseExample'+i\">\n <div class=\"card card-body\">\n <table class=\"table table-striped\">\n <thead>\n <tr>\n <th scope=\"col\">#</th>\n <th scope=\"col\">Estado</th>\n <th scope=\"col\">Cantidad</th>\n <th scope=\"col\">Fecha Solicitada</th>\n <th scope=\"col\">Fecha Estimada</th>\n <th scope=\"col\">Sede</th>\n <th scope=\"col\">Nota</th>\n <th scope=\"col\">Total Lote</th>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngFor=\"let lot of item.orderItemLot\">\n <tr>\n <th scope=\"row\">{{lot.id}}</th>\n <td>{{lot.lot_status}}</td>\n <td>{{lot.quantity}}</td>\n <td>{{ toDate(lot.date_request, 'DD/MM/YYYY') | translate }}</td>\n <td *ngIf=\"lot.date_deliver; else sinFechaEstimada\">{{\n toDate(lot.date_deliver, 'DD/MM/YYYY') | translate }}</td>\n <ng-template #sinFechaEstimada>\n <td>Pendiente</td>\n </ng-template>\n <td>{{lot.shipping_address_name}}</td>\n <td>{{lot.notes}}</td>\n <td>{{lot.total_lot | ecCurrencySymbol}}</td>\n </tr>\n </ng-container>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n </ng-container>\n </div>\n\n <div class=\"container\">\n <div class=\"row\">\n <div class=\"col-12 col-md-6\"></div>\n <div class=\"col-12 col-md-6\" *ngIf=\"(creditAmountConfigured ? showPrice : true)\">\n <div class=\"row py-4\">\n <div class=\"col-6 font-brandon font-md text-gray border-bottom \">{{ 'total-products' |\n translate }}</div>\n <div class=\"col-6 font-brandon font-md text-gray border-bottom text-end\">\n {{ (order.totals.items) | ecCurrencySymbol }}\n </div>\n\n <div class=\"col-6 font-brandon font-md text-gray border-bottom \">{{ 'shipment' |\n translate }}</div>\n <div class=\"col-6 font-brandon font-md text-gray border-bottom text-end\">\n {{ (order.totals.shipping || '0') | ecCurrencySymbol }}\n\n </div>\n\n <div *ngIf=\"order.totals.promotion && order.totals.promotion != 0\"\n class=\"col-6 font-brandon font-md text-gray border-bottom \">{{ 'discount' |\n translate }}</div>\n <div *ngIf=\"order.totals.promotion && order.totals.promotion != 0\"\n class=\"col-6 font-brandon font-md text-gray border-bottom text-end text-end\">\n {{ (order.totals.promotion) | ecCurrencySymbol }}</div>\n\n <div *ngIf=\"order.totals.taxes && order.totals.taxes != 0 \"\n class=\"col-6 font-brandon font-md text-gray border-bottom \">\n {{ 'taxes' | translate }}</div>\n <div *ngIf=\"order.totals.taxes && order.totals.taxes != 0\"\n class=\"col-6 font-brandon font-md text-gray border-bottom text-end\">\n {{ (order.totals.taxes) | ecCurrencySymbol }}</div>\n\n <div class=\"col-6 font-brandon font-md\">{{ 'total' | translate | uppercase }}</div>\n <div class=\"col-6 font-brandon font-md text-end\">\n {{ (order.totals.total) | ecCurrencySymbol }}\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n</main>\n\n<ng-template #noOrder>\n <div class=\"w-100 h-50\">\n <div class=\"d-flex flex-row justify-content-center align-items-center text-center\">\n <h5>{{ 'no-orders' | translate }}</h5>\n </div>\n </div>\n</ng-template>\n\n<ng-template #loadingView>\n <div class=\"w-100 h-50 py-5\">\n <div class=\"d-flex flex-row justify-content-center align-items-center text-center\">\n <app-loading-full-ec></app-loading-full-ec>\n </div>\n </div>\n</ng-template>",
13123
+ template: "<main class=\"py-5\" id=\"orderEcComponent\">\n <div class=\"container\">\n <div class=\"wrap\" *ngIf=\"!loading; else loadingView\">\n <div *ngIf=\"order; else noOrder\">\n\n <div class=\"row justify-content-between \">\n <div class=\"col-sm-auto col-12 font-brandon\">\n <h4 class=\"tit1 fw-bold\">{{ ('order' | translate) + ': ' + order.number }}</h4>\n </div>\n <ng-container *ngIf=\"order?.invoice\">\n <div class=\"col-sm col-12 font-brandon\">\n <a target=\"_blank\" [href]=\"consts.getUrlBase().slice(0, -1) + order.invoice\"\n class=\"btn btn-link btn-invoice\">\n <i class=\"fas fa-file-download me-1\"></i>\n {{ 'download' | translate }} {{ 'invoices' | translate | titlecase }}\n </a>\n </div>\n </ng-container>\n <a (click)=\"volver()\" class=\"col-auto text-end\">\n <button class=\"btn btvolver bg-gray text-white\">{{ 'back-to-orders' | translate }}</button>\n </a>\n </div>\n\n <section id=\"orders\">\n <div class=\"row pt-2\">\n <div class=\"col-md-2 col-12\">\n <p class=\"st\">{{ 'payment-state' | translate }}:</p>\n <p class=\"\">\n {{ order.payments[0].state | translate }}\n </p>\n </div>\n <div class=\"col-md-2 col-12 font-brandon\">\n <p class=\"st\">{{ 'shipment-state' | translate }}:</p>\n <p class=\"\">\n {{ order.shipments[0].state | translate }}\n </p>\n </div>\n <div class=\"col-md-2 col-12 font-brandon\">\n <p class=\"st\">{{ 'payment-method' | translate }}:</p>\n <p class=\"\">\n {{ order.payments[0]?.method?.name | translate }}\n </p>\n </div>\n <div class=\"col-md-2 col-12 font-brandon\">\n <p class=\"st\">{{ 'shipment-method' | translate }}:</p>\n <p class=\"\">\n {{ order.shipments[0].method.name }}\n </p>\n <!-- ACA DEBERIA IR EL LINK DE SEGUIMIENTO -->\n <a *ngIf=\"order.tracking\" [href]=\"order.tracking\"\n class=\"btn btn-outline-dark btnLogout px-3 py-1 font-size-10 w-auto btn-sm\">Ver\n seguimiento</a>\n </div>\n <div class=\"col-md-2 col-12 font-brandon\">\n <p class=\"st\">{{ 'date' | translate }}:</p>\n <p class=\"\">\n {{ toDate(order.checkoutCompletedAt, 'DD/MM/YYYY') | translate }}<br>\n {{ toDate(order.checkoutCompletedAt, 'h:mm:ss a') | translate }}\n </p>\n </div>\n <div class=\"col-md-2 col-12 font-brandon\" *ngIf=\"(creditAmountConfigured ? showPrice : true)\">\n <p class=\"st\">{{ 'total' | translate }}:</p>\n <h5 class=\"fw-bold\">\n {{ (order.totals.total) | ecCurrencySymbol}}\n\n </h5>\n </div>\n </div>\n </section>\n\n <div class=\"text-end mt-3\" *ngIf=\"!hidePrices && allowRepeatOrders\">\n <button class=\"btn btn-primary mb-2\" (click)=\"repeatOrder()\">\n {{ 'repeat-order' | translate }}\n </button>\n </div>\n\n <div class=\"container py-3 border-top border-bottom\">\n <div *ngIf=\"order.items.length; else noProducts\" class=\"row\">\n <div class=\"col-2 font-sm font-brandon d-none d-md-block\">\n {{ 'product' | translate | uppercase }}\n </div>\n <div class=\"col-4 font-sm font-brandon d-none d-md-block\">\n {{ 'description' | translate | uppercase }}\n </div>\n <div id=\"colLots\" *ngIf=\"ordersService.channelConfig.applyOrderLot\"\n class=\"col-1 font-sm font-brandon d-none d-md-block\">\n <!-- {{ 'description' | translate | uppercase }} -->\n {{ 'lots' | translate | uppercase }}\n </div>\n <div class=\"col-2 text-center font-sm font-brandon d-none d-md-block\"\n *ngIf=\"(creditAmountConfigured ? showPrice : true)\">\n {{ 'unit-price' | translate | uppercase }}\n </div>\n <div class=\"col-1 text-center font-sm font-brandon d-none d-md-block\">\n {{ 'quantity' | translate | uppercase }}\n </div>\n <div class=\"col-2 text-end font-sm font-brandon d-none d-md-block\"\n *ngIf=\"(creditAmountConfigured ? showPrice : true)\">\n {{ 'total' | translate | uppercase }}\n </div>\n </div>\n <ng-container *ngFor=\"let item of order.items; let i = index\">\n <div class=\"row cart-items\">\n <div class=\"col-5 col-md-2 py-2\">\n <ng-container *ngIf=\"item.product.variants[0]?.images?.length ; else defaultpicture\">\n <img class=\"smc maxwidth img-fluid rounded-custom \"\n [src]=\"consts.mediaUrl() + item.product.variants[0].images[0]\" alt=\"\">\n </ng-container>\n <ng-template #defaultpicture>\n <img *ngIf=\"item.product.picturesdefault\"\n class=\"smc maxwidth img-fluid rounded-custom\"\n [src]=\"consts.mediaUrl() + item.product.picturesdefault[0]\" alt=\"\">\n </ng-template>\n </div>\n <div\n class=\"col-md-4 col-7 flex-column flex-md-row justify-content-start d-flex align-items-center\">\n <p class=\"font-brandon d-flex w-100 mb-0\">\n {{ item.product.name }} (Cod:{{ item.product.variants[0].code }})\n </p>\n </div>\n <div class=\"col-md-1 col-1 flex-column flex-md-row justify-content-start d-flex align-items-center\"\n *ngIf=\"ordersService.channelConfig.applyOrderLot\">\n <input type=\"button\" class=\"btn btn-primary btnSeguir m-0 text-center\" type=\"button\"\n [attr.data-bs-toggle]=\"'collapse'\" [attr.data-bs-target]=\"'#collapseExample'+i\"\n aria-expanded=\"false\" [attr.aria-controls]=\"'collapseExample'+i\"\n value=\"{{ 'see' | translate | uppercase }}\">\n </div>\n <div class=\"container d-md-none\">\n <div class=\"row\">\n <div class=\"col-4\">\n <p class=\"text-center w-100 m-0\"> {{ item.quantity }}</p>\n </div>\n <div class=\"col-4 font-xl\" *ngIf=\"(creditAmountConfigured ? showPrice : true)\">\n <p class=\"text-center w-100 m-0\"> {{ (item.product.variants[0].saleprice ?\n item.product.variants[0].saleprice : item.product.variants[0].price) |\n ecCurrencySymbol}}</p>\n </div>\n <div class=\"col-4 font-xl\" *ngIf=\"(creditAmountConfigured ? showPrice : true)\">\n <p class=\"text-center w-100 m-0\"> {{ ((item.product.variants[0].saleprice ?\n item.product.variants[0].saleprice : item.product.variants[0].price) *\n item.quantity) | ecCurrencySymbol}}</p>\n </div>\n </div>\n </div>\n\n <div class=\"col-2 d-none d-md-flex align-items-center\"\n *ngIf=\"(creditAmountConfigured ? showPrice : true)\">\n <p class=\"text-center w-100 m-0\">\n {{ (item.product.variants[0].saleprice ? item.product.variants[0].saleprice :\n item.product.variants[0].price) | ecCurrencySymbol}}\n </p>\n </div>\n <div class=\"col-1 d-none d-md-flex align-items-center\">\n <p class=\"text-center w-100 m-0\"> {{ item.quantity }}</p>\n </div>\n <div class=\"col-2 d-none d-md-flex align-items-center\"\n *ngIf=\"(creditAmountConfigured ? showPrice : true)\">\n <p class=\"text-end w-100 m-0\">\n {{ ((item.product.variants[0].saleprice ? item.product.variants[0].saleprice :\n item.product.variants[0].price) * item.quantity) | ecCurrencySymbol}}</p>\n </div>\n <div class=\"collapse\" [attr.id]=\"'collapseExample'+i\">\n <div class=\"card card-body\">\n <table class=\"table table-striped\">\n <thead>\n <tr>\n <th scope=\"col\">#</th>\n <th scope=\"col\">Estado</th>\n <th scope=\"col\">Cantidad</th>\n <th scope=\"col\">Fecha Solicitada</th>\n <th scope=\"col\">Fecha Estimada</th>\n <th scope=\"col\">Sede</th>\n <th scope=\"col\">Nota</th>\n <th scope=\"col\">Total Lote</th>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngFor=\"let lot of item.orderItemLot\">\n <tr>\n <th scope=\"row\">{{lot.id}}</th>\n <td>{{lot.lot_status}}</td>\n <td>{{lot.quantity}}</td>\n <td>{{ toDate(lot.date_request, 'DD/MM/YYYY') | translate }}</td>\n <td *ngIf=\"lot.date_deliver; else sinFechaEstimada\">{{\n toDate(lot.date_deliver, 'DD/MM/YYYY') | translate }}</td>\n <ng-template #sinFechaEstimada>\n <td>Pendiente</td>\n </ng-template>\n <td>{{lot.shipping_address_name}}</td>\n <td>{{lot.notes}}</td>\n <td>{{lot.total_lot | ecCurrencySymbol}}</td>\n </tr>\n </ng-container>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n </ng-container>\n </div>\n\n <div class=\"container\">\n <div class=\"row\">\n <div class=\"col-12 col-md-6\"></div>\n <div class=\"col-12 col-md-6\" *ngIf=\"(creditAmountConfigured ? showPrice : true)\">\n <div class=\"row py-4\">\n <div class=\"col-6 font-brandon font-md text-gray border-bottom \">{{ 'total-products' |\n translate }}</div>\n <div class=\"col-6 font-brandon font-md text-gray border-bottom text-end\">\n {{ (order.totals.items) | ecCurrencySymbol }}\n </div>\n\n <div class=\"col-6 font-brandon font-md text-gray border-bottom \">{{ 'shipment' |\n translate }}</div>\n <div class=\"col-6 font-brandon font-md text-gray border-bottom text-end\">\n {{ (order.totals.shipping || '0') | ecCurrencySymbol }}\n\n </div>\n\n <div *ngIf=\"!hideDiscounts && order.totals.promotion && order.totals.promotion != 0\"\n class=\"col-6 font-brandon font-md text-gray border-bottom \">{{ 'discount' |\n translate }}</div>\n <div *ngIf=\"!hideDiscounts && order.totals.promotion && order.totals.promotion != 0\"\n class=\"col-6 font-brandon font-md text-gray border-bottom text-end text-end\">\n {{ (order.totals.promotion) | ecCurrencySymbol }}</div>\n\n <div *ngIf=\"!hideTaxes && order.totals.taxes && order.totals.taxes != 0 \"\n class=\"col-6 font-brandon font-md text-gray border-bottom \">\n {{ 'taxes' | translate }}</div>\n <div *ngIf=\"!hideTaxes && order.totals.taxes && order.totals.taxes != 0\"\n class=\"col-6 font-brandon font-md text-gray border-bottom text-end\">\n {{ (order.totals.taxes) | ecCurrencySymbol }}</div>\n\n <div class=\"col-6 font-brandon font-md\">{{ 'total' | translate | uppercase }}</div>\n <div class=\"col-6 font-brandon font-md text-end\">\n {{ (order.totals.total) | ecCurrencySymbol }}\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n</main>\n\n<ng-template #noOrder>\n <div class=\"w-100 h-50\">\n <div class=\"d-flex flex-row justify-content-center align-items-center text-center\">\n <h5>{{ 'no-orders' | translate }}</h5>\n </div>\n </div>\n</ng-template>\n\n<ng-template #loadingView>\n <div class=\"w-100 h-50 py-5\">\n <div class=\"d-flex flex-row justify-content-center align-items-center text-center\">\n <app-loading-full-ec></app-loading-full-ec>\n </div>\n </div>\n</ng-template>",
13074
13124
  styles: [".maxwidth{max-width:100px}"]
13075
13125
  })
13076
13126
  ], OrderEcComponent);
@@ -14082,15 +14132,18 @@ var __decorate$1u = (this && this.__decorate) || function (decorators, target, k
14082
14132
  };
14083
14133
  var DetailCheckoutBlockEcComponent = /** @class */ (function (_super) {
14084
14134
  __extends$V(DetailCheckoutBlockEcComponent, _super);
14085
- function DetailCheckoutBlockEcComponent(checkoutService, cartService) {
14135
+ function DetailCheckoutBlockEcComponent(checkoutService, cartService, channelConfigService) {
14086
14136
  var _this = _super.call(this) || this;
14087
14137
  _this.checkoutService = checkoutService;
14088
14138
  _this.cartService = cartService;
14139
+ _this.channelConfigService = channelConfigService;
14089
14140
  _this.data = null;
14090
14141
  _this.discountTotal = 0;
14091
14142
  _this.couponTotal = 0;
14092
14143
  _this.showPrice = false;
14093
14144
  _this.creditAmountConfigured = false;
14145
+ _this.hideDiscounts = false;
14146
+ _this.hideTaxes = false;
14094
14147
  _this.getIcon = function (data_item) {
14095
14148
  switch (data_item.type) {
14096
14149
  case 'coupon': return 'fas fa-ticket-alt fa-3x';
@@ -14123,6 +14176,11 @@ var DetailCheckoutBlockEcComponent = /** @class */ (function (_super) {
14123
14176
  this.cartService.creditAmount$.subscribe(function (creditAmount) {
14124
14177
  _this.creditAmountConfigured = creditAmount !== null;
14125
14178
  });
14179
+ this.channelConfigService.channelConfig$.subscribe(function (channel) {
14180
+ var _a, _b, _c, _d;
14181
+ _this.hideDiscounts = (_b = (_a = channel) === null || _a === void 0 ? void 0 : _a.hideDiscounts, (_b !== null && _b !== void 0 ? _b : false));
14182
+ _this.hideTaxes = (_d = (_c = channel) === null || _c === void 0 ? void 0 : _c.hideTaxes, (_d !== null && _d !== void 0 ? _d : false));
14183
+ });
14126
14184
  };
14127
14185
  DetailCheckoutBlockEcComponent.prototype.calcularTotales = function () {
14128
14186
  if (this.data) {
@@ -14136,7 +14194,8 @@ var DetailCheckoutBlockEcComponent = /** @class */ (function (_super) {
14136
14194
  };
14137
14195
  DetailCheckoutBlockEcComponent.ctorParameters = function () { return [
14138
14196
  { type: CheckoutService },
14139
- { type: CartService }
14197
+ { type: CartService },
14198
+ { type: ChannelConfigService }
14140
14199
  ]; };
14141
14200
  __decorate$1u([
14142
14201
  Input()
@@ -14144,7 +14203,7 @@ var DetailCheckoutBlockEcComponent = /** @class */ (function (_super) {
14144
14203
  DetailCheckoutBlockEcComponent = __decorate$1u([
14145
14204
  Component({
14146
14205
  selector: 'app-detail-checkout-block-ec',
14147
- template: "<div id=\"appDetailCheckoutBlockEc\" class=\"d-flex flex-row w-100 justify-content-center flex-wrap\"\n *ngIf=\"data && (creditAmountConfigured ? showPrice : true)\">\n <ng-container *ngFor=\"let item of data; let i = index\">\n <ng-container *ngIf=\"item.type != 'discount' && item.type != 'coupon'\">\n <div class=\"d-flex flex-column justify-content-center mx-sm-3 mx-2 text-center mb-4 resumen\">\n <i ngClass=\"mb-2 colorIconoCheckout\" [class]=\"getIcon(item)\"></i>\n <strong class=\"text-center w-100 font-brandon font-md mb-1\">{{ item.type | translate }}</strong>\n <span class=\"text-center w-100 font-brandon font-md text-gray\">{{ (item.amount != 0 ) ? (item.amount |\n ecCurrencySymbol) : ('free' | translate) }}</span>\n </div>\n </ng-container>\n\n\n <!-- Mostrar total de descuentos -->\n <div class=\"d-flex flex-column justify-content-center mx-sm-3 mx-2 text-center mb-4 resumen\"\n *ngIf=\"this.discountTotal != 0 && i === 1\">\n <i ngClass=\"mb-2 colorIconoCheckout\" [class]=\"getIcon2('discount')\"></i>\n <strong class=\"text-center w-100 font-brandon font-md mb-1\">Descuento</strong>\n <span class=\"text-center w-100 font-brandon font-md text-gray\">{{ (this.discountTotal | ecCurrencySymbol)\n }}</span>\n </div>\n\n <!-- Mostrar total de cupones -->\n <div class=\"d-flex flex-column justify-content-center mx-sm-3 mx-2 text-center mb-4 resumen\"\n *ngIf=\"this.couponTotal != 0 && i === 1\">\n <i ngClass=\"mb-2 colorIconoCheckout\" [class]=\"getIcon2('coupon')\"></i>\n <strong class=\"text-center w-100 font-brandon font-md mb-1\">Cupon</strong>\n <span class=\"text-center w-100 font-brandon font-md text-gray\">{{(this.couponTotal| ecCurrencySymbol)\n }}</span>\n </div>\n </ng-container>\n</div>",
14206
+ template: "<div id=\"appDetailCheckoutBlockEc\" class=\"d-flex flex-row w-100 justify-content-center flex-wrap\"\n *ngIf=\"data && (creditAmountConfigured ? showPrice : true)\">\n <ng-container *ngFor=\"let item of data; let i = index\">\n <ng-container *ngIf=\"item.type != 'discount' && item.type != 'coupon'\">\n <div class=\"d-flex flex-column justify-content-center mx-sm-3 mx-2 text-center mb-4 resumen\">\n <i ngClass=\"mb-2 colorIconoCheckout\" [class]=\"getIcon(item)\"></i>\n <strong class=\"text-center w-100 font-brandon font-md mb-1\">{{ item.type | translate }}</strong>\n <span class=\"text-center w-100 font-brandon font-md text-gray\">{{ (item.amount != 0 ) ? (item.amount |\n ecCurrencySymbol) : ('free' | translate) }}</span>\n </div>\n </ng-container>\n\n\n <!-- Mostrar total de descuentos -->\n <div class=\"d-flex flex-column justify-content-center mx-sm-3 mx-2 text-center mb-4 resumen\"\n *ngIf=\"!hideDiscounts && this.discountTotal != 0 && i === 1\">\n <i ngClass=\"mb-2 colorIconoCheckout\" [class]=\"getIcon2('discount')\"></i>\n <strong class=\"text-center w-100 font-brandon font-md mb-1\">Descuento</strong>\n <span class=\"text-center w-100 font-brandon font-md text-gray\">{{ (this.discountTotal | ecCurrencySymbol)\n }}</span>\n </div>\n\n <!-- Mostrar total de cupones -->\n <div class=\"d-flex flex-column justify-content-center mx-sm-3 mx-2 text-center mb-4 resumen\"\n *ngIf=\"!hideDiscounts && this.couponTotal != 0 && i === 1\">\n <i ngClass=\"mb-2 colorIconoCheckout\" [class]=\"getIcon2('coupon')\"></i>\n <strong class=\"text-center w-100 font-brandon font-md mb-1\">Cupon</strong>\n <span class=\"text-center w-100 font-brandon font-md text-gray\">{{(this.couponTotal| ecCurrencySymbol)\n }}</span>\n </div>\n </ng-container>\n</div>",
14148
14207
  styles: [""]
14149
14208
  })
14150
14209
  ], DetailCheckoutBlockEcComponent);
@@ -18465,16 +18524,19 @@ var __decorate$1$ = (this && this.__decorate) || function (decorators, target, k
18465
18524
  return c > 3 && r && Object.defineProperty(target, key, r), r;
18466
18525
  };
18467
18526
  var SidebarEcComponent = /** @class */ (function () {
18468
- function SidebarEcComponent(cartService, consts, authService, router, toastrService) {
18527
+ function SidebarEcComponent(cartService, consts, authService, router, toastrService, channelConfigService) {
18469
18528
  var _this = this;
18470
18529
  this.cartService = cartService;
18471
18530
  this.consts = consts;
18472
18531
  this.authService = authService;
18473
18532
  this.router = router;
18474
18533
  this.toastrService = toastrService;
18534
+ this.channelConfigService = channelConfigService;
18475
18535
  this.user = null;
18476
18536
  this.promotions = [];
18477
18537
  this.variantsToShow = ['TALLE', 'COLOR'];
18538
+ this.hideDiscounts = false;
18539
+ this.hideTaxes = false;
18478
18540
  this.actualizarCantidad = function (item, cantidad, stock, id) {
18479
18541
  if (id) {
18480
18542
  var elem_1 = document.getElementById(id);
@@ -18538,6 +18600,11 @@ var SidebarEcComponent = /** @class */ (function () {
18538
18600
  this.authService.getUserProfile().subscribe(function (u) {
18539
18601
  _this.user = u;
18540
18602
  });
18603
+ this.channelConfigService.channelConfig$.subscribe(function (channel) {
18604
+ var _a, _b, _c, _d;
18605
+ _this.hideDiscounts = (_b = (_a = channel) === null || _a === void 0 ? void 0 : _a.hideDiscounts, (_b !== null && _b !== void 0 ? _b : false));
18606
+ _this.hideTaxes = (_d = (_c = channel) === null || _c === void 0 ? void 0 : _c.hideTaxes, (_d !== null && _d !== void 0 ? _d : false));
18607
+ });
18541
18608
  };
18542
18609
  SidebarEcComponent.prototype.redirectDetailProduct = function (product) {
18543
18610
  var variant = product.variants[0];
@@ -18559,7 +18626,8 @@ var SidebarEcComponent = /** @class */ (function () {
18559
18626
  { type: Constants },
18560
18627
  { type: AuthService },
18561
18628
  { type: Router },
18562
- { type: ToastService }
18629
+ { type: ToastService },
18630
+ { type: ChannelConfigService }
18563
18631
  ]; };
18564
18632
  SidebarEcComponent = __decorate$1$([
18565
18633
  Component({