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.
package/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ # version 0.0.622
2
+ - Registro B2B se convierte el postcode en string ya que sino da error
1
3
  # version 0.0.621
2
4
  - Se agregan traducciones
3
5
  # version 0.0.620
@@ -14026,6 +14026,17 @@
14026
14026
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14027
14027
  };
14028
14028
  })();
14029
+ var __assign$r = (this && this.__assign) || function () {
14030
+ __assign$r = Object.assign || function(t) {
14031
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
14032
+ s = arguments[i];
14033
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
14034
+ t[p] = s[p];
14035
+ }
14036
+ return t;
14037
+ };
14038
+ return __assign$r.apply(this, arguments);
14039
+ };
14029
14040
  var __decorate$1s = (this && this.__decorate) || function (decorators, target, key, desc) {
14030
14041
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14031
14042
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -14087,7 +14098,9 @@
14087
14098
  ;
14088
14099
  _this.register_loading = true;
14089
14100
  if (_this.registerForm.valid) {
14090
- _this.authService.signUpWholesaler(_this.registerForm.value).toPromise().then(function (res) {
14101
+ // Convertir postcode a string antes de enviar
14102
+ var formValue = __assign$r(__assign$r({}, _this.registerForm.value), { postcode: String(_this.registerForm.value.postcode) });
14103
+ _this.authService.signUpWholesaler(formValue).toPromise().then(function (res) {
14091
14104
  _this.register_loading = false;
14092
14105
  _this.toastr.show('register-ok');
14093
14106
  _this.success = true;
@@ -15570,8 +15583,8 @@
15570
15583
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15571
15584
  };
15572
15585
  })();
15573
- var __assign$r = (this && this.__assign) || function () {
15574
- __assign$r = Object.assign || function(t) {
15586
+ var __assign$s = (this && this.__assign) || function () {
15587
+ __assign$s = Object.assign || function(t) {
15575
15588
  for (var s, i = 1, n = arguments.length; i < n; i++) {
15576
15589
  s = arguments[i];
15577
15590
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -15579,7 +15592,7 @@
15579
15592
  }
15580
15593
  return t;
15581
15594
  };
15582
- return __assign$r.apply(this, arguments);
15595
+ return __assign$s.apply(this, arguments);
15583
15596
  };
15584
15597
  var __decorate$1C = (this && this.__decorate) || function (decorators, target, key, desc) {
15585
15598
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -15626,7 +15639,7 @@
15626
15639
  var _this = this;
15627
15640
  this.subs = this.authService.channelsUser.pipe(operators.filter(function (res) { return res != null && res.length > 0; })).subscribe(function (res) {
15628
15641
  _this.channels = res.map(function (item) {
15629
- return __assign$r(__assign$r({}, item), { selected: false });
15642
+ return __assign$s(__assign$s({}, item), { selected: false });
15630
15643
  });
15631
15644
  _this.initializeTemplate();
15632
15645
  });
@@ -16845,8 +16858,8 @@
16845
16858
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16846
16859
  };
16847
16860
  })();
16848
- var __assign$s = (this && this.__assign) || function () {
16849
- __assign$s = Object.assign || function(t) {
16861
+ var __assign$t = (this && this.__assign) || function () {
16862
+ __assign$t = Object.assign || function(t) {
16850
16863
  for (var s, i = 1, n = arguments.length; i < n; i++) {
16851
16864
  s = arguments[i];
16852
16865
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -16854,7 +16867,7 @@
16854
16867
  }
16855
16868
  return t;
16856
16869
  };
16857
- return __assign$s.apply(this, arguments);
16870
+ return __assign$t.apply(this, arguments);
16858
16871
  };
16859
16872
  var __decorate$1L = (this && this.__decorate) || function (decorators, target, key, desc) {
16860
16873
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -16898,7 +16911,7 @@
16898
16911
  window.scroll(0, 0);
16899
16912
  });
16900
16913
  _this.productService.product$.pipe(operators.filter(function (data) { return data && data.id && data.id != 0; })).subscribe(function (productParam) {
16901
- _this.analyticsService.callEvent('view_item', __assign$s(__assign$s({}, productParam), { currency: _this.consts.currency.code }));
16914
+ _this.analyticsService.callEvent('view_item', __assign$t(__assign$t({}, productParam), { currency: _this.consts.currency.code }));
16902
16915
  });
16903
16916
  _this.ecOnConstruct();
16904
16917
  return _this;
@@ -18081,8 +18094,8 @@
18081
18094
  return BancardCatastroEcComponent;
18082
18095
  }(ComponentHelper));
18083
18096
 
18084
- var __assign$t = (this && this.__assign) || function () {
18085
- __assign$t = Object.assign || function(t) {
18097
+ var __assign$u = (this && this.__assign) || function () {
18098
+ __assign$u = Object.assign || function(t) {
18086
18099
  for (var s, i = 1, n = arguments.length; i < n; i++) {
18087
18100
  s = arguments[i];
18088
18101
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -18090,7 +18103,7 @@
18090
18103
  }
18091
18104
  return t;
18092
18105
  };
18093
- return __assign$t.apply(this, arguments);
18106
+ return __assign$u.apply(this, arguments);
18094
18107
  };
18095
18108
  var __decorate$1U = (this && this.__decorate) || function (decorators, target, key, desc) {
18096
18109
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -18157,7 +18170,7 @@
18157
18170
  * @description realiza un merge con los valores por defecto para rellenar el objeto de cookies
18158
18171
  */
18159
18172
  this.setDefaultParameters = function () {
18160
- _this.cookies = __assign$t(__assign$t({}, _this.defaultValues), _this.cookies);
18173
+ _this.cookies = __assign$u(__assign$u({}, _this.defaultValues), _this.cookies);
18161
18174
  };
18162
18175
  /**
18163
18176
  * @description procesa el parametro ingresado, para transformarlo en un atributo del objeto de cookies.
@@ -18178,7 +18191,7 @@
18178
18191
  break;
18179
18192
  case 'others':
18180
18193
  !_this.cookies[attrName] ? _this.cookies[attrName] = {} : null;
18181
- _this.cookies[attrName] = __assign$t(__assign$t({}, _this.cookies[attrName]), _this.othersAttrProcessing(element));
18194
+ _this.cookies[attrName] = __assign$u(__assign$u({}, _this.cookies[attrName]), _this.othersAttrProcessing(element));
18182
18195
  break;
18183
18196
  case 'message':
18184
18197
  _this.cookies[attrName] = _this.messageAttrProcessing(element);
@@ -18230,7 +18243,7 @@
18230
18243
  break;
18231
18244
  default:
18232
18245
  //console.log(value)
18233
- objReturn = __assign$t(__assign$t({}, objReturn), _this.getObjByFormatType(objReturn.type, value));
18246
+ objReturn = __assign$u(__assign$u({}, objReturn), _this.getObjByFormatType(objReturn.type, value));
18234
18247
  break;
18235
18248
  }
18236
18249
  }