ng-easycommerce 0.0.621 → 0.0.622

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.
@@ -14040,6 +14040,17 @@ var __extends$T = (this && this.__extends) || (function () {
14040
14040
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14041
14041
  };
14042
14042
  })();
14043
+ var __assign$r = (this && this.__assign) || function () {
14044
+ __assign$r = Object.assign || function(t) {
14045
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
14046
+ s = arguments[i];
14047
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
14048
+ t[p] = s[p];
14049
+ }
14050
+ return t;
14051
+ };
14052
+ return __assign$r.apply(this, arguments);
14053
+ };
14043
14054
  var __decorate$1s = (this && this.__decorate) || function (decorators, target, key, desc) {
14044
14055
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14045
14056
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -14101,7 +14112,9 @@ var RegisterWholesalerFormEcComponent = /** @class */ (function (_super) {
14101
14112
  ;
14102
14113
  _this.register_loading = true;
14103
14114
  if (_this.registerForm.valid) {
14104
- _this.authService.signUpWholesaler(_this.registerForm.value).toPromise().then(function (res) {
14115
+ // Convertir postcode a string antes de enviar
14116
+ var formValue = __assign$r(__assign$r({}, _this.registerForm.value), { postcode: String(_this.registerForm.value.postcode) });
14117
+ _this.authService.signUpWholesaler(formValue).toPromise().then(function (res) {
14105
14118
  _this.register_loading = false;
14106
14119
  _this.toastr.show('register-ok');
14107
14120
  _this.success = true;
@@ -15584,8 +15597,8 @@ var __extends$11 = (this && this.__extends) || (function () {
15584
15597
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15585
15598
  };
15586
15599
  })();
15587
- var __assign$r = (this && this.__assign) || function () {
15588
- __assign$r = Object.assign || function(t) {
15600
+ var __assign$s = (this && this.__assign) || function () {
15601
+ __assign$s = Object.assign || function(t) {
15589
15602
  for (var s, i = 1, n = arguments.length; i < n; i++) {
15590
15603
  s = arguments[i];
15591
15604
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -15593,7 +15606,7 @@ var __assign$r = (this && this.__assign) || function () {
15593
15606
  }
15594
15607
  return t;
15595
15608
  };
15596
- return __assign$r.apply(this, arguments);
15609
+ return __assign$s.apply(this, arguments);
15597
15610
  };
15598
15611
  var __decorate$1C = (this && this.__decorate) || function (decorators, target, key, desc) {
15599
15612
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -15640,7 +15653,7 @@ var SelectChannelEcComponent = /** @class */ (function (_super) {
15640
15653
  var _this = this;
15641
15654
  this.subs = this.authService.channelsUser.pipe(filter(function (res) { return res != null && res.length > 0; })).subscribe(function (res) {
15642
15655
  _this.channels = res.map(function (item) {
15643
- return __assign$r(__assign$r({}, item), { selected: false });
15656
+ return __assign$s(__assign$s({}, item), { selected: false });
15644
15657
  });
15645
15658
  _this.initializeTemplate();
15646
15659
  });
@@ -16859,8 +16872,8 @@ var __extends$16 = (this && this.__extends) || (function () {
16859
16872
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16860
16873
  };
16861
16874
  })();
16862
- var __assign$s = (this && this.__assign) || function () {
16863
- __assign$s = Object.assign || function(t) {
16875
+ var __assign$t = (this && this.__assign) || function () {
16876
+ __assign$t = Object.assign || function(t) {
16864
16877
  for (var s, i = 1, n = arguments.length; i < n; i++) {
16865
16878
  s = arguments[i];
16866
16879
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -16868,7 +16881,7 @@ var __assign$s = (this && this.__assign) || function () {
16868
16881
  }
16869
16882
  return t;
16870
16883
  };
16871
- return __assign$s.apply(this, arguments);
16884
+ return __assign$t.apply(this, arguments);
16872
16885
  };
16873
16886
  var __decorate$1L = (this && this.__decorate) || function (decorators, target, key, desc) {
16874
16887
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -16912,7 +16925,7 @@ var ProductFoundEcComponent = /** @class */ (function (_super) {
16912
16925
  window.scroll(0, 0);
16913
16926
  });
16914
16927
  _this.productService.product$.pipe(filter(function (data) { return data && data.id && data.id != 0; })).subscribe(function (productParam) {
16915
- _this.analyticsService.callEvent('view_item', __assign$s(__assign$s({}, productParam), { currency: _this.consts.currency.code }));
16928
+ _this.analyticsService.callEvent('view_item', __assign$t(__assign$t({}, productParam), { currency: _this.consts.currency.code }));
16916
16929
  });
16917
16930
  _this.ecOnConstruct();
16918
16931
  return _this;
@@ -18095,8 +18108,8 @@ var BancardCatastroEcComponent = /** @class */ (function (_super) {
18095
18108
  return BancardCatastroEcComponent;
18096
18109
  }(ComponentHelper));
18097
18110
 
18098
- var __assign$t = (this && this.__assign) || function () {
18099
- __assign$t = Object.assign || function(t) {
18111
+ var __assign$u = (this && this.__assign) || function () {
18112
+ __assign$u = Object.assign || function(t) {
18100
18113
  for (var s, i = 1, n = arguments.length; i < n; i++) {
18101
18114
  s = arguments[i];
18102
18115
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -18104,7 +18117,7 @@ var __assign$t = (this && this.__assign) || function () {
18104
18117
  }
18105
18118
  return t;
18106
18119
  };
18107
- return __assign$t.apply(this, arguments);
18120
+ return __assign$u.apply(this, arguments);
18108
18121
  };
18109
18122
  var __decorate$1U = (this && this.__decorate) || function (decorators, target, key, desc) {
18110
18123
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -18171,7 +18184,7 @@ var CookiesService = /** @class */ (function () {
18171
18184
  * @description realiza un merge con los valores por defecto para rellenar el objeto de cookies
18172
18185
  */
18173
18186
  this.setDefaultParameters = function () {
18174
- _this.cookies = __assign$t(__assign$t({}, _this.defaultValues), _this.cookies);
18187
+ _this.cookies = __assign$u(__assign$u({}, _this.defaultValues), _this.cookies);
18175
18188
  };
18176
18189
  /**
18177
18190
  * @description procesa el parametro ingresado, para transformarlo en un atributo del objeto de cookies.
@@ -18192,7 +18205,7 @@ var CookiesService = /** @class */ (function () {
18192
18205
  break;
18193
18206
  case 'others':
18194
18207
  !_this.cookies[attrName] ? _this.cookies[attrName] = {} : null;
18195
- _this.cookies[attrName] = __assign$t(__assign$t({}, _this.cookies[attrName]), _this.othersAttrProcessing(element));
18208
+ _this.cookies[attrName] = __assign$u(__assign$u({}, _this.cookies[attrName]), _this.othersAttrProcessing(element));
18196
18209
  break;
18197
18210
  case 'message':
18198
18211
  _this.cookies[attrName] = _this.messageAttrProcessing(element);
@@ -18244,7 +18257,7 @@ var CookiesService = /** @class */ (function () {
18244
18257
  break;
18245
18258
  default:
18246
18259
  //console.log(value)
18247
- objReturn = __assign$t(__assign$t({}, objReturn), _this.getObjByFormatType(objReturn.type, value));
18260
+ objReturn = __assign$u(__assign$u({}, objReturn), _this.getObjByFormatType(objReturn.type, value));
18248
18261
  break;
18249
18262
  }
18250
18263
  }