ng-easycommerce 0.0.580 → 0.0.581

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.
@@ -9537,7 +9537,7 @@ var __spread$5 = (this && this.__spread) || function () {
9537
9537
  };
9538
9538
  var HeaderEcComponent = /** @class */ (function (_super) {
9539
9539
  __extends$t(HeaderEcComponent, _super);
9540
- function HeaderEcComponent(router, consts, cartService, optionsService, paramsService, productsService, authService, translate, renderer) {
9540
+ function HeaderEcComponent(router, consts, cartService, optionsService, paramsService, productsService, authService, translate, renderer, channelConfigService) {
9541
9541
  var _this = _super.call(this) || this;
9542
9542
  _this.router = router;
9543
9543
  _this.consts = consts;
@@ -9548,6 +9548,7 @@ var HeaderEcComponent = /** @class */ (function (_super) {
9548
9548
  _this.authService = authService;
9549
9549
  _this.translate = translate;
9550
9550
  _this.renderer = renderer;
9551
+ _this.channelConfigService = channelConfigService;
9551
9552
  //og elden
9552
9553
  _this.menuItems = [];
9553
9554
  _this.menuItemsSections = [];
@@ -9557,6 +9558,8 @@ var HeaderEcComponent = /** @class */ (function (_super) {
9557
9558
  _this.envetUrlTransparent = ["/home", "/"];
9558
9559
  _this.params = {};
9559
9560
  _this.toggled = false;
9561
+ _this.locales = [];
9562
+ _this.selectedLocale = 'ESP';
9560
9563
  _this.updateMenuItemSection = function (elements) {
9561
9564
  _this.menuItemsSections = _this.optionsService.generateMenu(elements);
9562
9565
  _this.menuItemsSections = _this.ecUpdateMenuItemSection(_this.menuItemsSections);
@@ -9676,6 +9679,12 @@ var HeaderEcComponent = /** @class */ (function (_super) {
9676
9679
  this.mediaMenu = mediaQuery.matches;
9677
9680
  this.subscribeToBalance();
9678
9681
  this.ecOnInit();
9682
+ this.channelConfigService.locales.subscribe(function (res) {
9683
+ _this.locales = res;
9684
+ if (_this.locales.length > 0) {
9685
+ _this.selectedLocale = _this.locales[0].name;
9686
+ }
9687
+ });
9679
9688
  };
9680
9689
  HeaderEcComponent.prototype.subscribeToBalance = function () {
9681
9690
  var _this = this;
@@ -9692,7 +9701,8 @@ var HeaderEcComponent = /** @class */ (function (_super) {
9692
9701
  { type: ProductsService },
9693
9702
  { type: AuthService },
9694
9703
  { type: TranslateService },
9695
- { type: Renderer2 }
9704
+ { type: Renderer2 },
9705
+ { type: ChannelConfigService }
9696
9706
  ]; };
9697
9707
  __decorate$_([
9698
9708
  ViewChild("menu")