ng-easycommerce 0.0.590 → 0.0.592

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.
@@ -3280,6 +3280,17 @@
3280
3280
  return ErrorHandlerService;
3281
3281
  }());
3282
3282
 
3283
+ var __assign$6 = (this && this.__assign) || function () {
3284
+ __assign$6 = Object.assign || function(t) {
3285
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
3286
+ s = arguments[i];
3287
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
3288
+ t[p] = s[p];
3289
+ }
3290
+ return t;
3291
+ };
3292
+ return __assign$6.apply(this, arguments);
3293
+ };
3283
3294
  var __decorate$h = (this && this.__decorate) || function (decorators, target, key, desc) {
3284
3295
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3285
3296
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -3306,6 +3317,13 @@
3306
3317
  if (configToastr === void 0) { configToastr = _this.configToast; }
3307
3318
  _this.translation.get(message, interpolateParams).pipe(operators.take(1)).subscribe(function (res) { return _this.toastrService.show((res ? res : message), title, configToastr); });
3308
3319
  };
3320
+ this.showPersistent = function (message, interpolateParams, title, configToastr) {
3321
+ if (interpolateParams === void 0) { interpolateParams = {}; }
3322
+ if (title === void 0) { title = ''; }
3323
+ if (configToastr === void 0) { configToastr = _this.configToast; }
3324
+ var persistentConfig = __assign$6(__assign$6({}, configToastr), { closeButton: true, timeOut: 0, extendedTimeOut: 0 });
3325
+ _this.translation.get(message, interpolateParams).pipe(operators.take(1)).subscribe(function (res) { return _this.toastrService.show((res ? res : message), title, persistentConfig); });
3326
+ };
3309
3327
  this.configToast = {};
3310
3328
  }
3311
3329
  ToastService.ctorParameters = function () { return [
@@ -3348,8 +3366,8 @@
3348
3366
  return IpService;
3349
3367
  }());
3350
3368
 
3351
- var __assign$6 = (this && this.__assign) || function () {
3352
- __assign$6 = Object.assign || function(t) {
3369
+ var __assign$7 = (this && this.__assign) || function () {
3370
+ __assign$7 = Object.assign || function(t) {
3353
3371
  for (var s, i = 1, n = arguments.length; i < n; i++) {
3354
3372
  s = arguments[i];
3355
3373
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -3357,7 +3375,7 @@
3357
3375
  }
3358
3376
  return t;
3359
3377
  };
3360
- return __assign$6.apply(this, arguments);
3378
+ return __assign$7.apply(this, arguments);
3361
3379
  };
3362
3380
  var __decorate$j = (this && this.__decorate) || function (decorators, target, key, desc) {
3363
3381
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -3478,7 +3496,7 @@
3478
3496
  var urlWithParams = _this.getHasPurchaseConditions() + "?" + queryString;
3479
3497
  _this.connection.getErrorNotHandler(urlWithParams).toPromise().then(function (res) {
3480
3498
  var _a, _b;
3481
- _this.analyticsService.callEvent('checkout_init', __assign$6(__assign$6({}, _this.cartLocal), { currency: (_a = _this.cartLocal) === null || _a === void 0 ? void 0 : _a.currency, value: (_b = _this.cartLocal) === null || _b === void 0 ? void 0 : _b.total }));
3499
+ _this.analyticsService.callEvent('checkout_init', __assign$7(__assign$7({}, _this.cartLocal), { currency: (_a = _this.cartLocal) === null || _a === void 0 ? void 0 : _a.currency, value: (_b = _this.cartLocal) === null || _b === void 0 ? void 0 : _b.total }));
3482
3500
  });
3483
3501
  });
3484
3502
  };
@@ -3565,7 +3583,7 @@
3565
3583
  return [2 /*return*/, ({ ok: false, require_login: true, message: 'not-completed' })];
3566
3584
  }
3567
3585
  this.setOrder(result);
3568
- this.analyticsService.callEvent('purchase', __assign$6(__assign$6({}, result), { currency: result.currency, value: result.total }));
3586
+ this.analyticsService.callEvent('purchase', __assign$7(__assign$7({}, result), { currency: result.currency, value: result.total }));
3569
3587
  this.cartService.clearAndResetCart();
3570
3588
  this.canCheckoutSubject.next(false);
3571
3589
  this.onReadySubject.next(false);
@@ -3578,7 +3596,7 @@
3578
3596
  var _a, _b, _c;
3579
3597
  var result = _this.orderUtils.getPromotions(cart);
3580
3598
  if (((_a = _this.authService.getUserProfileAsUser()) === null || _a === void 0 ? void 0 : _a.isWholesaler()) && cart.totals.taxes != 0) {
3581
- var total = __assign$6({}, result[result.length - 1]);
3599
+ var total = __assign$7({}, result[result.length - 1]);
3582
3600
  result[result.length - 1] = {
3583
3601
  type: 'taxes',
3584
3602
  name: 'taxes',
@@ -3589,7 +3607,7 @@
3589
3607
  var shipment = (_b = result) === null || _b === void 0 ? void 0 : _b.find(function (promotion) { return promotion.type == "shipment"; });
3590
3608
  if (!shipment && cart.totals.shipping != 0) {
3591
3609
  if (((_c = result) === null || _c === void 0 ? void 0 : _c.length) && !result.find(function (item) { return item.type === "shipment"; })) {
3592
- var total = __assign$6({}, result[result.length - 1]);
3610
+ var total = __assign$7({}, result[result.length - 1]);
3593
3611
  result[result.length - 1] = {
3594
3612
  type: 'shipment',
3595
3613
  name: 'shipment',
@@ -3731,8 +3749,8 @@
3731
3749
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3732
3750
  };
3733
3751
  })();
3734
- var __assign$7 = (this && this.__assign) || function () {
3735
- __assign$7 = Object.assign || function(t) {
3752
+ var __assign$8 = (this && this.__assign) || function () {
3753
+ __assign$8 = Object.assign || function(t) {
3736
3754
  for (var s, i = 1, n = arguments.length; i < n; i++) {
3737
3755
  s = arguments[i];
3738
3756
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -3740,7 +3758,7 @@
3740
3758
  }
3741
3759
  return t;
3742
3760
  };
3743
- return __assign$7.apply(this, arguments);
3761
+ return __assign$8.apply(this, arguments);
3744
3762
  };
3745
3763
  var __decorate$k = (this && this.__decorate) || function (decorators, target, key, desc) {
3746
3764
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -3809,7 +3827,7 @@
3809
3827
  return [2 /*return*/, this.connection.get(this.countriesApi()).pipe(operators.map(function (res) { var _a, _b; return (_b = (_a = res) === null || _a === void 0 ? void 0 : _a._embedded) === null || _b === void 0 ? void 0 : _b.items; })).toPromise()];
3810
3828
  }); }); };
3811
3829
  _this.getAddressBook = function () { return __awaiter$3(_this, void 0, void 0, function () { return __generator$3(this, function (_a) {
3812
- return [2 /*return*/, this.connection.get(this.addressBookApi()).pipe(operators.map(function (res) { var _a; return ((_a = res) === null || _a === void 0 ? void 0 : _a.length) && res.map(function (addres) { return addres && __assign$7(__assign$7({}, addres), { selected: addres.default }); }) || null; })).toPromise()];
3830
+ return [2 /*return*/, this.connection.get(this.addressBookApi()).pipe(operators.map(function (res) { var _a; return ((_a = res) === null || _a === void 0 ? void 0 : _a.length) && res.map(function (addres) { return addres && __assign$8(__assign$8({}, addres), { selected: addres.default }); }) || null; })).toPromise()];
3813
3831
  }); }); };
3814
3832
  _this.setHeadquarter = function (sede) {
3815
3833
  return _this.connection.put(_this.headquarterApi(), sede.selected)
@@ -3843,7 +3861,7 @@
3843
3861
  };
3844
3862
  _this.putAddressAndHandle = function (user_data, next, onError) {
3845
3863
  user_data.locale = _this.consts.getLocale();
3846
- var data = { shippingAddress: __assign$7({}, user_data.data) };
3864
+ var data = { shippingAddress: __assign$8({}, user_data.data) };
3847
3865
  _this.connection.put(_this.putAddressApi(), data).toPromise().then(function (res) {
3848
3866
  _this.setStepReady(user_data, res);
3849
3867
  _this.analyticsService.callEvent('payment_info', res);
@@ -4085,8 +4103,8 @@
4085
4103
  return ChannelConfigService$1;
4086
4104
  }());
4087
4105
 
4088
- var __assign$8 = (this && this.__assign) || function () {
4089
- __assign$8 = Object.assign || function(t) {
4106
+ var __assign$9 = (this && this.__assign) || function () {
4107
+ __assign$9 = Object.assign || function(t) {
4090
4108
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4091
4109
  s = arguments[i];
4092
4110
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -4094,7 +4112,7 @@
4094
4112
  }
4095
4113
  return t;
4096
4114
  };
4097
- return __assign$8.apply(this, arguments);
4115
+ return __assign$9.apply(this, arguments);
4098
4116
  };
4099
4117
  var __decorate$m = (this && this.__decorate) || function (decorators, target, key, desc) {
4100
4118
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -4247,7 +4265,7 @@
4247
4265
  */
4248
4266
  this.doLogin = function (user) {
4249
4267
  _this.loggingInSubject.next(true);
4250
- user = __assign$8(__assign$8({}, user), _this.constants.loginExtraData());
4268
+ user = __assign$9(__assign$9({}, user), _this.constants.loginExtraData());
4251
4269
  return _this.connection.post(_this.tokenApi(), user).pipe(operators.map(function (res) { return _this.doLoginUser(res); }), operators.mapTo('ok'), operators.catchError(function (err) {
4252
4270
  _this.loggingInSubject.next(false);
4253
4271
  return rxjs.of(err.toString());
@@ -4374,10 +4392,10 @@
4374
4392
  this.injector.get(ChannelConfigService).channelConfig$.subscribe(function (ch) { return _this.channel = ch; });
4375
4393
  this.injector.get(ChannelConfigService).channels.subscribe(function (ch) { return _this.channels = ch; });
4376
4394
  this.loggingInSubject.next(true);
4377
- user = __assign$8(__assign$8({}, user), this.constants.loginExtraData());
4395
+ user = __assign$9(__assign$9({}, user), this.constants.loginExtraData());
4378
4396
  var result = this.connection.post(this.tokenApi(), user).pipe(operators.map(function (res) {
4379
- if (_this.channelAccessPermission(__assign$8(__assign$8({}, user), res)) && _this.isAllowedRole(withRoles, res.type)) {
4380
- _this.doLoginUser(__assign$8(__assign$8({}, user), res));
4397
+ if (_this.channelAccessPermission(__assign$9(__assign$9({}, user), res)) && _this.isAllowedRole(withRoles, res.type)) {
4398
+ _this.doLoginUser(__assign$9(__assign$9({}, user), res));
4381
4399
  return 'ok';
4382
4400
  }
4383
4401
  return 'error';
@@ -4429,7 +4447,7 @@
4429
4447
  };
4430
4448
  AuthService$1.prototype.refreshToken = function () {
4431
4449
  var _this = this;
4432
- var data = __assign$8(__assign$8({}, this.constants.loginExtraData()), { refresh_token: this.getRefreshToken() });
4450
+ var data = __assign$9(__assign$9({}, this.constants.loginExtraData()), { refresh_token: this.getRefreshToken() });
4433
4451
  return this.connection.post(this.tokenApi(), data).pipe(operators.map(function (res) { return _this.doLoginUser(res); }));
4434
4452
  };
4435
4453
  AuthService$1.prototype.getToken = function () {
@@ -4483,8 +4501,8 @@
4483
4501
  return AuthService$1;
4484
4502
  }());
4485
4503
 
4486
- var __assign$9 = (this && this.__assign) || function () {
4487
- __assign$9 = Object.assign || function(t) {
4504
+ var __assign$a = (this && this.__assign) || function () {
4505
+ __assign$a = Object.assign || function(t) {
4488
4506
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4489
4507
  s = arguments[i];
4490
4508
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -4492,7 +4510,7 @@
4492
4510
  }
4493
4511
  return t;
4494
4512
  };
4495
- return __assign$9.apply(this, arguments);
4513
+ return __assign$a.apply(this, arguments);
4496
4514
  };
4497
4515
  var __decorate$n = (this && this.__decorate) || function (decorators, target, key, desc) {
4498
4516
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -4610,7 +4628,7 @@
4610
4628
  this.showMax$ = this.balanceCustomer$.pipe(operators.map(function (data) { return data.showMax; }));
4611
4629
  this.showPrice$ = this.balanceCustomer$.pipe(operators.map(function (data) { return data.showPrice; }));
4612
4630
  this.getAddressBook = function () { return __awaiter$5(_this, void 0, void 0, function () { return __generator$5(this, function (_a) {
4613
- return [2 /*return*/, this.connection.get(this.addressBookApi()).pipe(operators.map(function (res) { var _a; return ((_a = res) === null || _a === void 0 ? void 0 : _a.length) && res.map(function (addres) { return addres && __assign$9(__assign$9({}, addres), { selected: addres.default }); }) || null; })).toPromise()];
4631
+ return [2 /*return*/, this.connection.get(this.addressBookApi()).pipe(operators.map(function (res) { var _a; return ((_a = res) === null || _a === void 0 ? void 0 : _a.length) && res.map(function (addres) { return addres && __assign$a(__assign$a({}, addres), { selected: addres.default }); }) || null; })).toPromise()];
4614
4632
  }); }); };
4615
4633
  this.getTaxes = function () { return __awaiter$5(_this, void 0, void 0, function () { return __generator$5(this, function (_a) {
4616
4634
  return [2 /*return*/, this.connection.post(this.taxesApi(), { token: this.cart_token }).subscribe(function (res) { return res; })];
@@ -4700,7 +4718,7 @@
4700
4718
  toast && _this.toastrService.show('product-removed');
4701
4719
  _this.updateLocalCart();
4702
4720
  // this.googleAnalytics.removeFromCart(product);
4703
- _this.analyticsService.callEvent('remove_from_cart', __assign$9(__assign$9({}, product), { currency: _this.consts.currency.code }));
4721
+ _this.analyticsService.callEvent('remove_from_cart', __assign$a(__assign$a({}, product), { currency: _this.consts.currency.code }));
4704
4722
  };
4705
4723
  this.addIfAllreadyExists = function (product, variant_id, quantityAdd) {
4706
4724
  if (quantityAdd === void 0) { quantityAdd = 1; }
@@ -4960,7 +4978,7 @@
4960
4978
  var coupon = { code: cart.couponCode };
4961
4979
  try {
4962
4980
  var key = Object.keys(cart.cartDiscounts)[0];
4963
- coupon = __assign$9(__assign$9({}, coupon), { amount: (cart.cartDiscounts && cart.cartDiscounts[key].amount.current) || 0, name: (cart.cartDiscounts && cart.cartDiscounts[key].name) || 'no-name' });
4981
+ coupon = __assign$a(__assign$a({}, coupon), { amount: (cart.cartDiscounts && cart.cartDiscounts[key].amount.current) || 0, name: (cart.cartDiscounts && cart.cartDiscounts[key].name) || 'no-name' });
4964
4982
  }
4965
4983
  catch (e) { }
4966
4984
  (coupon != current_coupon) && _this.couponSubject.next(coupon);
@@ -5157,8 +5175,8 @@
5157
5175
  return CartService$1;
5158
5176
  }());
5159
5177
 
5160
- var __assign$a = (this && this.__assign) || function () {
5161
- __assign$a = Object.assign || function(t) {
5178
+ var __assign$b = (this && this.__assign) || function () {
5179
+ __assign$b = Object.assign || function(t) {
5162
5180
  for (var s, i = 1, n = arguments.length; i < n; i++) {
5163
5181
  s = arguments[i];
5164
5182
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -5166,7 +5184,7 @@
5166
5184
  }
5167
5185
  return t;
5168
5186
  };
5169
- return __assign$a.apply(this, arguments);
5187
+ return __assign$b.apply(this, arguments);
5170
5188
  };
5171
5189
  var __decorate$o = (this && this.__decorate) || function (decorators, target, key, desc) {
5172
5190
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -5248,7 +5266,7 @@
5248
5266
  product.price = product.variants[0].price;
5249
5267
  product.saleprice = (product.price - (product.price * parseFloat(percentaje)));
5250
5268
  product.options = {};
5251
- product.variants[0].options.forEach(function (option) { return product.options = __assign$a(__assign$a({}, product.options), option); });
5269
+ product.variants[0].options.forEach(function (option) { return product.options = __assign$b(__assign$b({}, product.options), option); });
5252
5270
  return product;
5253
5271
  };
5254
5272
  OrdersService$1.ctorParameters = function () { return [
@@ -5266,8 +5284,8 @@
5266
5284
  return OrdersService$1;
5267
5285
  }());
5268
5286
 
5269
- var __assign$b = (this && this.__assign) || function () {
5270
- __assign$b = Object.assign || function(t) {
5287
+ var __assign$c = (this && this.__assign) || function () {
5288
+ __assign$c = Object.assign || function(t) {
5271
5289
  for (var s, i = 1, n = arguments.length; i < n; i++) {
5272
5290
  s = arguments[i];
5273
5291
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -5275,7 +5293,7 @@
5275
5293
  }
5276
5294
  return t;
5277
5295
  };
5278
- return __assign$b.apply(this, arguments);
5296
+ return __assign$c.apply(this, arguments);
5279
5297
  };
5280
5298
  var __decorate$p = (this && this.__decorate) || function (decorators, target, key, desc) {
5281
5299
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -5301,13 +5319,13 @@
5301
5319
  var result = {};
5302
5320
  switch (contract) {
5303
5321
  case 'domicilio':
5304
- result = __assign$b({}, data);
5322
+ result = __assign$c({}, data);
5305
5323
  break;
5306
5324
  // case 'sucursal': result = { ...data, codigo_sucursal: data. }; break;
5307
5325
  // case 'local': result = { ...data, codigo_local: data. }
5308
5326
  }
5309
5327
  if (contract == 'domicilio') {
5310
- result = __assign$b({}, data);
5328
+ result = __assign$c({}, data);
5311
5329
  }
5312
5330
  else {
5313
5331
  result = { codigo_sucursal: data.id };
@@ -5387,8 +5405,8 @@
5387
5405
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
5388
5406
  };
5389
5407
  })();
5390
- var __assign$c = (this && this.__assign) || function () {
5391
- __assign$c = Object.assign || function(t) {
5408
+ var __assign$d = (this && this.__assign) || function () {
5409
+ __assign$d = Object.assign || function(t) {
5392
5410
  for (var s, i = 1, n = arguments.length; i < n; i++) {
5393
5411
  s = arguments[i];
5394
5412
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -5396,7 +5414,7 @@
5396
5414
  }
5397
5415
  return t;
5398
5416
  };
5399
- return __assign$c.apply(this, arguments);
5417
+ return __assign$d.apply(this, arguments);
5400
5418
  };
5401
5419
  var __decorate$r = (this && this.__decorate) || function (decorators, target, key, desc) {
5402
5420
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -5518,7 +5536,7 @@
5518
5536
  return __generator$6(this, function (_a) {
5519
5537
  switch (_a.label) {
5520
5538
  case 0:
5521
- data = __assign$c(__assign$c({}, contract), this.otherParamsForContract(contract));
5539
+ data = __assign$d(__assign$d({}, contract), this.otherParamsForContract(contract));
5522
5540
  return [4 /*yield*/, this.connection.put(this.putContractApi(), data)
5523
5541
  .toPromise().then(function (order) {
5524
5542
  // this.analyticsService.callEvent('shipping_info', order);
@@ -5546,7 +5564,7 @@
5546
5564
  response[branch_delivery].contracts = response[branch_delivery].contracts.map(function (contract) {
5547
5565
  var branch_property = contract.branch_property || {};
5548
5566
  var address_data = branch_property.address || {};
5549
- return __assign$c(__assign$c(__assign$c({ contract: 'branch_delivery', name: contract.name, price: contract.price }, address_data), branch_property), { computed: (address_data.street || '') + ' N° ' + (address_data.number || '') });
5567
+ return __assign$d(__assign$d(__assign$d({ contract: 'branch_delivery', name: contract.name, price: contract.price }, address_data), branch_property), { computed: (address_data.street || '') + ' N° ' + (address_data.number || '') });
5550
5568
  });
5551
5569
  this.costsSubject.next(response);
5552
5570
  }
@@ -6388,8 +6406,8 @@
6388
6406
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6389
6407
  };
6390
6408
  })();
6391
- var __assign$d = (this && this.__assign) || function () {
6392
- __assign$d = Object.assign || function(t) {
6409
+ var __assign$e = (this && this.__assign) || function () {
6410
+ __assign$e = Object.assign || function(t) {
6393
6411
  for (var s, i = 1, n = arguments.length; i < n; i++) {
6394
6412
  s = arguments[i];
6395
6413
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -6397,7 +6415,7 @@
6397
6415
  }
6398
6416
  return t;
6399
6417
  };
6400
- return __assign$d.apply(this, arguments);
6418
+ return __assign$e.apply(this, arguments);
6401
6419
  };
6402
6420
  var __decorate$H = (this && this.__decorate) || function (decorators, target, key, desc) {
6403
6421
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -6465,8 +6483,8 @@
6465
6483
  var _this = this;
6466
6484
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
6467
6485
  this.paramsService.parameters.subscribe(function (res) { return _this.params = res; });
6468
- this.banners = this.banners.map(function (banner) { return __assign$d(__assign$d({}, banner), banner.translations[_this.consts.getLocale()]); });
6469
- this.meta = __assign$d(__assign$d({}, this.meta), this.meta.translations[this.consts.getLocale()]);
6486
+ this.banners = this.banners.map(function (banner) { return __assign$e(__assign$e({}, banner), banner.translations[_this.consts.getLocale()]); });
6487
+ this.meta = __assign$e(__assign$e({}, this.meta), this.meta.translations[this.consts.getLocale()]);
6470
6488
  this.ecOnInit();
6471
6489
  this.options = {
6472
6490
  loop: this.loop,
@@ -6547,8 +6565,8 @@
6547
6565
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6548
6566
  };
6549
6567
  })();
6550
- var __assign$e = (this && this.__assign) || function () {
6551
- __assign$e = Object.assign || function(t) {
6568
+ var __assign$f = (this && this.__assign) || function () {
6569
+ __assign$f = Object.assign || function(t) {
6552
6570
  for (var s, i = 1, n = arguments.length; i < n; i++) {
6553
6571
  s = arguments[i];
6554
6572
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -6556,7 +6574,7 @@
6556
6574
  }
6557
6575
  return t;
6558
6576
  };
6559
- return __assign$e.apply(this, arguments);
6577
+ return __assign$f.apply(this, arguments);
6560
6578
  };
6561
6579
  var __decorate$I = (this && this.__decorate) || function (decorators, target, key, desc) {
6562
6580
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -6602,7 +6620,7 @@
6602
6620
  }
6603
6621
  BlockBannerFullEcComponent.prototype.ngOnInit = function () {
6604
6622
  var _this = this;
6605
- this.banners = this.banners.map(function (banner) { return __assign$e(__assign$e({}, banner), banner.translations[_this.consts.getLocale()]); });
6623
+ this.banners = this.banners.map(function (banner) { return __assign$f(__assign$f({}, banner), banner.translations[_this.consts.getLocale()]); });
6606
6624
  this.ecOnInit();
6607
6625
  // this.options = {
6608
6626
  // loop: this.loop,
@@ -6678,8 +6696,8 @@
6678
6696
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6679
6697
  };
6680
6698
  })();
6681
- var __assign$f = (this && this.__assign) || function () {
6682
- __assign$f = Object.assign || function(t) {
6699
+ var __assign$g = (this && this.__assign) || function () {
6700
+ __assign$g = Object.assign || function(t) {
6683
6701
  for (var s, i = 1, n = arguments.length; i < n; i++) {
6684
6702
  s = arguments[i];
6685
6703
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -6687,7 +6705,7 @@
6687
6705
  }
6688
6706
  return t;
6689
6707
  };
6690
- return __assign$f.apply(this, arguments);
6708
+ return __assign$g.apply(this, arguments);
6691
6709
  };
6692
6710
  var __decorate$J = (this && this.__decorate) || function (decorators, target, key, desc) {
6693
6711
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -6734,7 +6752,7 @@
6734
6752
  }
6735
6753
  };
6736
6754
  _this.setSubject = function () {
6737
- _this.contact_form.setValue(__assign$f(__assign$f({}, _this.contact_form.value), { subject: _this.subject }));
6755
+ _this.contact_form.setValue(__assign$g(__assign$g({}, _this.contact_form.value), { subject: _this.subject }));
6738
6756
  };
6739
6757
  _this.subscribe = function () {
6740
6758
  // PEDIR AL SERVICIO SE LO SUBSCRIBA, Y RESPONDA SI LO SUBSCRIBIÓ O YA ESTABA SUBSCRIPTO
@@ -6785,7 +6803,7 @@
6785
6803
  };
6786
6804
  BlockFormContactEcComponent.prototype.ngOnChanges = function () { };
6787
6805
  BlockFormContactEcComponent.prototype.ngOnInit = function () {
6788
- this.block = __assign$f(__assign$f({}, this.block), this.block.translations[this.consts.getLocale()]);
6806
+ this.block = __assign$g(__assign$g({}, this.block), this.block.translations[this.consts.getLocale()]);
6789
6807
  this.subject && this.setSubject();
6790
6808
  this.ecOnInit();
6791
6809
  };
@@ -6884,8 +6902,8 @@
6884
6902
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6885
6903
  };
6886
6904
  })();
6887
- var __assign$g = (this && this.__assign) || function () {
6888
- __assign$g = Object.assign || function(t) {
6905
+ var __assign$h = (this && this.__assign) || function () {
6906
+ __assign$h = Object.assign || function(t) {
6889
6907
  for (var s, i = 1, n = arguments.length; i < n; i++) {
6890
6908
  s = arguments[i];
6891
6909
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -6893,7 +6911,7 @@
6893
6911
  }
6894
6912
  return t;
6895
6913
  };
6896
- return __assign$g.apply(this, arguments);
6914
+ return __assign$h.apply(this, arguments);
6897
6915
  };
6898
6916
  var __decorate$L = (this && this.__decorate) || function (decorators, target, key, desc) {
6899
6917
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -6945,7 +6963,7 @@
6945
6963
  _this.subscribeBlockNews = function (block) {
6946
6964
  };
6947
6965
  _this.setSubject = function () {
6948
- _this.contact_form.setValue(__assign$g(__assign$g({}, _this.contact_form.value), { subject: _this.subject }));
6966
+ _this.contact_form.setValue(__assign$h(__assign$h({}, _this.contact_form.value), { subject: _this.subject }));
6949
6967
  };
6950
6968
  _this.subscribe = function () {
6951
6969
  // PEDIR AL SERVICIO SE LO SUBSCRIBA, Y RESPONDA SI LO SUBSCRIBIÓ O YA ESTABA SUBSCRIPTO
@@ -6987,12 +7005,12 @@
6987
7005
  if (_this.block.contactForm) {
6988
7006
  _this.block = _this.block.contactForm;
6989
7007
  }
6990
- _this.block = __assign$g(__assign$g({}, _this.block), _this.block.translations[_this.consts.getLocale()]);
7008
+ _this.block = __assign$h(__assign$h({}, _this.block), _this.block.translations[_this.consts.getLocale()]);
6991
7009
  _this.subscribeBlockNews(_this.block);
6992
7010
  });
6993
7011
  }
6994
7012
  else {
6995
- this.block = __assign$g(__assign$g({}, this.block), this.block.translations[this.consts.getLocale()]);
7013
+ this.block = __assign$h(__assign$h({}, this.block), this.block.translations[this.consts.getLocale()]);
6996
7014
  }
6997
7015
  this.subject && this.setSubject();
6998
7016
  this.ecOnInit();
@@ -7052,8 +7070,8 @@
7052
7070
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
7053
7071
  };
7054
7072
  })();
7055
- var __assign$h = (this && this.__assign) || function () {
7056
- __assign$h = Object.assign || function(t) {
7073
+ var __assign$i = (this && this.__assign) || function () {
7074
+ __assign$i = Object.assign || function(t) {
7057
7075
  for (var s, i = 1, n = arguments.length; i < n; i++) {
7058
7076
  s = arguments[i];
7059
7077
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -7061,7 +7079,7 @@
7061
7079
  }
7062
7080
  return t;
7063
7081
  };
7064
- return __assign$h.apply(this, arguments);
7082
+ return __assign$i.apply(this, arguments);
7065
7083
  };
7066
7084
  var __decorate$M = (this && this.__decorate) || function (decorators, target, key, desc) {
7067
7085
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -7107,7 +7125,7 @@
7107
7125
  }
7108
7126
  BlockProductsEcComponent.prototype.ngOnInit = function () {
7109
7127
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
7110
- this.meta = __assign$h(__assign$h({}, this.meta), (this.meta.translations ? this.meta.translations[this.consts.getLocale()] : { name: null }));
7128
+ this.meta = __assign$i(__assign$i({}, this.meta), (this.meta.translations ? this.meta.translations[this.consts.getLocale()] : { name: null }));
7111
7129
  this.analyticsService.callEvent('view_item_list', { products: this.products, item_list_name: this.meta.name || 'Block Products', item_list_id: ((_b = (_a = this.meta.name) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === null || _b === void 0 ? void 0 : _b.replace(' ', '-')) || 'block-products' });
7112
7130
  this.optionsOwl = {
7113
7131
  loop: this.loop,
@@ -7884,8 +7902,8 @@
7884
7902
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
7885
7903
  };
7886
7904
  })();
7887
- var __assign$i = (this && this.__assign) || function () {
7888
- __assign$i = Object.assign || function(t) {
7905
+ var __assign$j = (this && this.__assign) || function () {
7906
+ __assign$j = Object.assign || function(t) {
7889
7907
  for (var s, i = 1, n = arguments.length; i < n; i++) {
7890
7908
  s = arguments[i];
7891
7909
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -7893,7 +7911,7 @@
7893
7911
  }
7894
7912
  return t;
7895
7913
  };
7896
- return __assign$i.apply(this, arguments);
7914
+ return __assign$j.apply(this, arguments);
7897
7915
  };
7898
7916
  var __decorate$Q = (this && this.__decorate) || function (decorators, target, key, desc) {
7899
7917
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -8093,9 +8111,9 @@
8093
8111
  switch (_a.label) {
8094
8112
  case 0:
8095
8113
  this.loading = true;
8096
- data = { shippingAddress: __assign$i(__assign$i({}, this.checkoutForm.getRawValue()), { phoneNumber: this.checkoutForm.value.phoneNumber.toString() }), notes: (this.checkoutForm.getRawValue()).notes };
8114
+ data = { shippingAddress: __assign$j(__assign$j({}, this.checkoutForm.getRawValue()), { phoneNumber: this.checkoutForm.value.phoneNumber.toString() }), notes: (this.checkoutForm.getRawValue()).notes };
8097
8115
  if (!this.viewDataFacturacion && this.checkoutFormFacturacion.valid)
8098
- data = __assign$i(__assign$i({}, data), { notes: data.notes, billingAddress: this.checkoutFormFacturacion.getRawValue() });
8116
+ data = __assign$j(__assign$j({}, data), { notes: data.notes, billingAddress: this.checkoutFormFacturacion.getRawValue() });
8099
8117
  _a.label = 1;
8100
8118
  case 1:
8101
8119
  _a.trys.push([1, 3, , 4]);
@@ -8202,12 +8220,12 @@
8202
8220
  _this.getLabelNotesParam = function () { return _this.hasParams(_this.params, 'label_notes_' + _this.consts.getChannel() + '_' + _this.consts.getLocale().split('_')[0]); };
8203
8221
  _this.getParamByChannelAndLanguage = function (nameParam) { return _this.hasParams(_this.params, nameParam + _this.consts.getChannel() + '_' + _this.consts.getLocale().split('_')[0]); };
8204
8222
  _this.ecOnConstruct();
8205
- _this.checkoutForm = _this.fb.group(__assign$i(__assign$i({}, _this.addressingService.getTypeForm().configForm.formAddres), { postcode: ['', [forms.Validators.required, forms.Validators.pattern(_this.postalCodePattern)]] // Se agrega para que sólo acepte códigos postales mayores que cero
8223
+ _this.checkoutForm = _this.fb.group(__assign$j(__assign$j({}, _this.addressingService.getTypeForm().configForm.formAddres), { postcode: ['', [forms.Validators.required, forms.Validators.pattern(_this.postalCodePattern)]] // Se agrega para que sólo acepte códigos postales mayores que cero
8206
8224
  }));
8207
8225
  _this.checkoutForm.statusChanges
8208
8226
  .pipe(operators.filter(function () { _this.onFormChange(); return _this.checkoutForm.valid; }))
8209
8227
  .subscribe(function () { return _this.onFormValid(); });
8210
- _this.checkoutFormFacturacion = _this.fb.group(__assign$i(__assign$i({}, _this.addressingService.getTypeForm().configForm.formBilling), { postcode: ['', [forms.Validators.required, forms.Validators.pattern(_this.postalCodePattern)]] // Se agrega para que sólo acepte códigos postales mayores que cero
8228
+ _this.checkoutFormFacturacion = _this.fb.group(__assign$j(__assign$j({}, _this.addressingService.getTypeForm().configForm.formBilling), { postcode: ['', [forms.Validators.required, forms.Validators.pattern(_this.postalCodePattern)]] // Se agrega para que sólo acepte códigos postales mayores que cero
8211
8229
  }));
8212
8230
  _this.checkoutFormFacturacion.statusChanges
8213
8231
  .pipe(operators.filter(function () { _this.onFormChange(); return _this.checkoutFormFacturacion.valid; }))
@@ -8423,8 +8441,8 @@
8423
8441
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
8424
8442
  };
8425
8443
  })();
8426
- var __assign$j = (this && this.__assign) || function () {
8427
- __assign$j = Object.assign || function(t) {
8444
+ var __assign$k = (this && this.__assign) || function () {
8445
+ __assign$k = Object.assign || function(t) {
8428
8446
  for (var s, i = 1, n = arguments.length; i < n; i++) {
8429
8447
  s = arguments[i];
8430
8448
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -8432,7 +8450,7 @@
8432
8450
  }
8433
8451
  return t;
8434
8452
  };
8435
- return __assign$j.apply(this, arguments);
8453
+ return __assign$k.apply(this, arguments);
8436
8454
  };
8437
8455
  var __decorate$S = (this && this.__decorate) || function (decorators, target, key, desc) {
8438
8456
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -8502,7 +8520,7 @@
8502
8520
  _this.loading_internal_mp = false;
8503
8521
  _this.method_data$ = _this.methodDataSubject.asObservable();
8504
8522
  _this.loading$ = _this.loadingSubject.asObservable();
8505
- _this.allData = function () { return (__assign$j(__assign$j({}, _this.paymentService.getUserData().shippingAddress), _this.paymentService.getShipmentData())); };
8523
+ _this.allData = function () { return (__assign$k(__assign$k({}, _this.paymentService.getUserData().shippingAddress), _this.paymentService.getShipmentData())); };
8506
8524
  _this.setError = function (message) {
8507
8525
  _this.error = message;
8508
8526
  };
@@ -8633,8 +8651,8 @@
8633
8651
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
8634
8652
  };
8635
8653
  })();
8636
- var __assign$k = (this && this.__assign) || function () {
8637
- __assign$k = Object.assign || function(t) {
8654
+ var __assign$l = (this && this.__assign) || function () {
8655
+ __assign$l = Object.assign || function(t) {
8638
8656
  for (var s, i = 1, n = arguments.length; i < n; i++) {
8639
8657
  s = arguments[i];
8640
8658
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -8642,7 +8660,7 @@
8642
8660
  }
8643
8661
  return t;
8644
8662
  };
8645
- return __assign$k.apply(this, arguments);
8663
+ return __assign$l.apply(this, arguments);
8646
8664
  };
8647
8665
  var __decorate$T = (this && this.__decorate) || function (decorators, target, key, desc) {
8648
8666
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -8676,7 +8694,7 @@
8676
8694
  _this.buttonsDisabled = false;
8677
8695
  _this.contracts = [];
8678
8696
  _this.emitResult = function (method_name, contract_data) {
8679
- contract_data = __assign$k(__assign$k({}, contract_data), { shipping_method_contract: method_name + '_' + contract_data.name, shipping_method_branch_code: method_name == "branch_delivery" ? contract_data.sucursal_id : contract_data.name });
8697
+ contract_data = __assign$l(__assign$l({}, contract_data), { shipping_method_contract: method_name + '_' + contract_data.name, shipping_method_branch_code: method_name == "branch_delivery" ? contract_data.sucursal_id : contract_data.name });
8680
8698
  _this.shipmentService.setContract(contract_data);
8681
8699
  };
8682
8700
  _this.verifyValidate = function (contract, data) {
@@ -8724,7 +8742,7 @@
8724
8742
  });
8725
8743
  this.shipmentService.costs.subscribe(function (cos) {
8726
8744
  var _a, _b;
8727
- _this.costs = cos.map(function (cost) { return __assign$k(__assign$k({}, cost), { contracts: cost.contracts.map(function (co) { return __assign$k(__assign$k({}, co), { selected: false }); }) }); });
8745
+ _this.costs = cos.map(function (cost) { return __assign$l(__assign$l({}, cost), { contracts: cost.contracts.map(function (co) { return __assign$l(__assign$l({}, co), { selected: false }); }) }); });
8728
8746
  if (_this.costs.length && ((_a = _this.costs[0]) === null || _a === void 0 ? void 0 : _a.name) && ((_b = _this.costs[0]) === null || _b === void 0 ? void 0 : _b.contracts[0])) {
8729
8747
  _this.verifyValidate(_this.costs[0].name, _this.costs[0].contracts[0]);
8730
8748
  }
@@ -9510,8 +9528,8 @@
9510
9528
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
9511
9529
  };
9512
9530
  })();
9513
- var __assign$l = (this && this.__assign) || function () {
9514
- __assign$l = Object.assign || function(t) {
9531
+ var __assign$m = (this && this.__assign) || function () {
9532
+ __assign$m = Object.assign || function(t) {
9515
9533
  for (var s, i = 1, n = arguments.length; i < n; i++) {
9516
9534
  s = arguments[i];
9517
9535
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -9519,7 +9537,7 @@
9519
9537
  }
9520
9538
  return t;
9521
9539
  };
9522
- return __assign$l.apply(this, arguments);
9540
+ return __assign$m.apply(this, arguments);
9523
9541
  };
9524
9542
  var __decorate$_ = (this && this.__decorate) || function (decorators, target, key, desc) {
9525
9543
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -9562,7 +9580,7 @@
9562
9580
  if (stackPlace === void 0) { stackPlace = 'end'; }
9563
9581
  var _a, _b;
9564
9582
  (stackPlace == 'start')
9565
- ? (_a = menuItems.find(function (item) { var _a; return (_a = item.code) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(code); })) === null || _a === void 0 ? void 0 : _a.children.unshift(__assign$l({ code: 'sd', name: 'sd', path: '/home', title: 'sd' }, item)) : (_b = menuItems.find(function (item) { var _a; return (_a = item.code) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(code); })) === null || _b === void 0 ? void 0 : _b.children.push(__assign$l({ code: 'sd', name: 'sd', path: '/home', title: 'sd' }, item));
9583
+ ? (_a = menuItems.find(function (item) { var _a; return (_a = item.code) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(code); })) === null || _a === void 0 ? void 0 : _a.children.unshift(__assign$m({ code: 'sd', name: 'sd', path: '/home', title: 'sd' }, item)) : (_b = menuItems.find(function (item) { var _a; return (_a = item.code) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(code); })) === null || _b === void 0 ? void 0 : _b.children.push(__assign$m({ code: 'sd', name: 'sd', path: '/home', title: 'sd' }, item));
9566
9584
  };
9567
9585
  _this.ecUpdateMenuItemSection = function (menuItems) {
9568
9586
  return menuItems;
@@ -9613,8 +9631,8 @@
9613
9631
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
9614
9632
  };
9615
9633
  })();
9616
- var __assign$m = (this && this.__assign) || function () {
9617
- __assign$m = Object.assign || function(t) {
9634
+ var __assign$n = (this && this.__assign) || function () {
9635
+ __assign$n = Object.assign || function(t) {
9618
9636
  for (var s, i = 1, n = arguments.length; i < n; i++) {
9619
9637
  s = arguments[i];
9620
9638
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -9622,7 +9640,7 @@
9622
9640
  }
9623
9641
  return t;
9624
9642
  };
9625
- return __assign$m.apply(this, arguments);
9643
+ return __assign$n.apply(this, arguments);
9626
9644
  };
9627
9645
  var __decorate$$ = (this && this.__decorate) || function (decorators, target, key, desc) {
9628
9646
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -9760,7 +9778,7 @@
9760
9778
  if (stackPlace === void 0) { stackPlace = 'end'; }
9761
9779
  var _a, _b;
9762
9780
  (stackPlace == 'start')
9763
- ? (_a = menuItems.find(function (item) { var _a; return (_a = item.code) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(code); })) === null || _a === void 0 ? void 0 : _a.children.unshift(__assign$m({ code: 'sd', name: 'sd', path: '/home', title: 'sd' }, item)) : (_b = menuItems.find(function (item) { var _a; return (_a = item.code) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(code); })) === null || _b === void 0 ? void 0 : _b.children.push(__assign$m({ code: 'sd', name: 'sd', path: '/home', title: 'sd' }, item));
9781
+ ? (_a = menuItems.find(function (item) { var _a; return (_a = item.code) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(code); })) === null || _a === void 0 ? void 0 : _a.children.unshift(__assign$n({ code: 'sd', name: 'sd', path: '/home', title: 'sd' }, item)) : (_b = menuItems.find(function (item) { var _a; return (_a = item.code) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(code); })) === null || _b === void 0 ? void 0 : _b.children.push(__assign$n({ code: 'sd', name: 'sd', path: '/home', title: 'sd' }, item));
9764
9782
  };
9765
9783
  _this.hasParams = function (params, searched) { return params && params.find(function (param) { return param.code.toLowerCase().includes(searched); }); };
9766
9784
  _this.envetUrlTransparent = _this.changeUrlTransparent(_this.envetUrlTransparent);
@@ -10187,8 +10205,8 @@
10187
10205
  return CurrencyService$1;
10188
10206
  }());
10189
10207
 
10190
- var __assign$n = (this && this.__assign) || function () {
10191
- __assign$n = Object.assign || function(t) {
10208
+ var __assign$o = (this && this.__assign) || function () {
10209
+ __assign$o = Object.assign || function(t) {
10192
10210
  for (var s, i = 1, n = arguments.length; i < n; i++) {
10193
10211
  s = arguments[i];
10194
10212
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -10196,7 +10214,7 @@
10196
10214
  }
10197
10215
  return t;
10198
10216
  };
10199
- return __assign$n.apply(this, arguments);
10217
+ return __assign$o.apply(this, arguments);
10200
10218
  };
10201
10219
  var __decorate$13 = (this && this.__decorate) || function (decorators, target, key, desc) {
10202
10220
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -10598,7 +10616,7 @@
10598
10616
  product_selected.price = parseFloat(this.asociatedDataSubject.value.price);
10599
10617
  product_selected.saleprice = parseFloat(this.asociatedDataSubject.value.price);
10600
10618
  product_selected.options = {};
10601
- this.variants[0].options.forEach(function (option) { return product_selected.options = __assign$n(__assign$n({}, product_selected.options), option); });
10619
+ this.variants[0].options.forEach(function (option) { return product_selected.options = __assign$o(__assign$o({}, product_selected.options), option); });
10602
10620
  return product_selected;
10603
10621
  };
10604
10622
  /**
@@ -10640,7 +10658,7 @@
10640
10658
  }
10641
10659
  variantsAvailable.push(aux);
10642
10660
  });
10643
- return variantsAvailable.filter(function (va) { return _this.constants.containsAll(__assign$n({}, variantsSelected), va); });
10661
+ return variantsAvailable.filter(function (va) { return _this.constants.containsAll(__assign$o({}, variantsSelected), va); });
10644
10662
  };
10645
10663
  /**
10646
10664
  *
@@ -10684,8 +10702,8 @@
10684
10702
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10685
10703
  };
10686
10704
  })();
10687
- var __assign$o = (this && this.__assign) || function () {
10688
- __assign$o = Object.assign || function(t) {
10705
+ var __assign$p = (this && this.__assign) || function () {
10706
+ __assign$p = Object.assign || function(t) {
10689
10707
  for (var s, i = 1, n = arguments.length; i < n; i++) {
10690
10708
  s = arguments[i];
10691
10709
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -10693,7 +10711,7 @@
10693
10711
  }
10694
10712
  return t;
10695
10713
  };
10696
- return __assign$o.apply(this, arguments);
10714
+ return __assign$p.apply(this, arguments);
10697
10715
  };
10698
10716
  var __decorate$14 = (this && this.__decorate) || function (decorators, target, key, desc) {
10699
10717
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -10799,7 +10817,7 @@
10799
10817
  }
10800
10818
  });
10801
10819
  _this.productService.product$.pipe(operators.filter(function (data) { return data && data.id && data.id != 0; })).subscribe(function (productParam) {
10802
- _this.analyticsService.callEvent('view_item', __assign$o(__assign$o({}, productParam), { currency: _this.consts.currency.code }));
10820
+ _this.analyticsService.callEvent('view_item', __assign$p(__assign$p({}, productParam), { currency: _this.consts.currency.code }));
10803
10821
  _this.changeImgFocus(productParam.picturesdefault[0]);
10804
10822
  });
10805
10823
  _this.injector.get(ChannelConfigService).channelConfig$.subscribe(function (channel) {
@@ -11709,8 +11727,8 @@
11709
11727
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
11710
11728
  };
11711
11729
  })();
11712
- var __assign$p = (this && this.__assign) || function () {
11713
- __assign$p = Object.assign || function(t) {
11730
+ var __assign$q = (this && this.__assign) || function () {
11731
+ __assign$q = Object.assign || function(t) {
11714
11732
  for (var s, i = 1, n = arguments.length; i < n; i++) {
11715
11733
  s = arguments[i];
11716
11734
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -11718,7 +11736,7 @@
11718
11736
  }
11719
11737
  return t;
11720
11738
  };
11721
- return __assign$p.apply(this, arguments);
11739
+ return __assign$q.apply(this, arguments);
11722
11740
  };
11723
11741
  var __decorate$1e = (this && this.__decorate) || function (decorators, target, key, desc) {
11724
11742
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -11811,7 +11829,7 @@
11811
11829
  _this.payment_method = payment_data.id;
11812
11830
  _this.issuer_id = payment_data.issuer.id;
11813
11831
  payment_data.payer_costs.forEach(function (payerCost) {
11814
- _this.installments.push(__assign$p(__assign$p({}, payerCost), { name: ('Cuotas: ' + payerCost.installments + ' - Total: ' + _this.calculateTotal(payerCost)), value: payerCost.installments }));
11832
+ _this.installments.push(__assign$q(__assign$q({}, payerCost), { name: ('Cuotas: ' + payerCost.installments + ' - Total: ' + _this.calculateTotal(payerCost)), value: payerCost.installments }));
11815
11833
  });
11816
11834
  _this.installment_data = payment_data;
11817
11835
  }
@@ -11898,7 +11916,7 @@
11898
11916
  if (status == 200 && response.length) {
11899
11917
  _this.installments = [];
11900
11918
  response[0].payer_costs.forEach(function (payerCost) {
11901
- _this.installments.push(__assign$p(__assign$p({}, payerCost), { name: payerCost.recommended_message, value: payerCost.installments }));
11919
+ _this.installments.push(__assign$q(__assign$q({}, payerCost), { name: payerCost.recommended_message, value: payerCost.installments }));
11902
11920
  });
11903
11921
  _this.installment_data = response[0];
11904
11922
  }
@@ -13240,7 +13258,7 @@
13240
13258
  default:
13241
13259
  messageKey = 'register-success';
13242
13260
  }
13243
- _this.toastr.show(messageKey);
13261
+ _this.toastr.showPersistent(messageKey);
13244
13262
  _this.analyticsService.callEvent('sign_up', {
13245
13263
  firstName: _this.registerForm.value.firstName,
13246
13264
  lastName: _this.registerForm.value.lastName,
@@ -13257,7 +13275,7 @@
13257
13275
  }, function (error) {
13258
13276
  _this.register_loading = false;
13259
13277
  if (error.status == 400) {
13260
- _this.toastr.show('El email ingresado ya se encuentra registrado.');
13278
+ _this.toastr.showPersistent('El email ingresado ya se encuentra registrado.');
13261
13279
  }
13262
13280
  else {
13263
13281
  _this.toastr.show('Error en el registro. Vuelva a intentarlo más tarde.');
@@ -13299,6 +13317,9 @@
13299
13317
  });
13300
13318
  this.ecOnInit();
13301
13319
  };
13320
+ RegisterFormEcComponent.prototype.prueba = function () {
13321
+ this.toastr.showPersistent('hola');
13322
+ };
13302
13323
  RegisterFormEcComponent.ctorParameters = function () { return [
13303
13324
  { type: AuthService },
13304
13325
  { type: ToastService },
@@ -15216,8 +15237,8 @@
15216
15237
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15217
15238
  };
15218
15239
  })();
15219
- var __assign$q = (this && this.__assign) || function () {
15220
- __assign$q = Object.assign || function(t) {
15240
+ var __assign$r = (this && this.__assign) || function () {
15241
+ __assign$r = Object.assign || function(t) {
15221
15242
  for (var s, i = 1, n = arguments.length; i < n; i++) {
15222
15243
  s = arguments[i];
15223
15244
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -15225,7 +15246,7 @@
15225
15246
  }
15226
15247
  return t;
15227
15248
  };
15228
- return __assign$q.apply(this, arguments);
15249
+ return __assign$r.apply(this, arguments);
15229
15250
  };
15230
15251
  var __decorate$1C = (this && this.__decorate) || function (decorators, target, key, desc) {
15231
15252
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -15272,7 +15293,7 @@
15272
15293
  var _this = this;
15273
15294
  this.subs = this.authService.channelsUser.pipe(operators.filter(function (res) { return res != null && res.length > 0; })).subscribe(function (res) {
15274
15295
  _this.channels = res.map(function (item) {
15275
- return __assign$q(__assign$q({}, item), { selected: false });
15296
+ return __assign$r(__assign$r({}, item), { selected: false });
15276
15297
  });
15277
15298
  _this.initializeTemplate();
15278
15299
  });
@@ -16491,8 +16512,8 @@
16491
16512
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16492
16513
  };
16493
16514
  })();
16494
- var __assign$r = (this && this.__assign) || function () {
16495
- __assign$r = Object.assign || function(t) {
16515
+ var __assign$s = (this && this.__assign) || function () {
16516
+ __assign$s = Object.assign || function(t) {
16496
16517
  for (var s, i = 1, n = arguments.length; i < n; i++) {
16497
16518
  s = arguments[i];
16498
16519
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -16500,7 +16521,7 @@
16500
16521
  }
16501
16522
  return t;
16502
16523
  };
16503
- return __assign$r.apply(this, arguments);
16524
+ return __assign$s.apply(this, arguments);
16504
16525
  };
16505
16526
  var __decorate$1L = (this && this.__decorate) || function (decorators, target, key, desc) {
16506
16527
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -16544,7 +16565,7 @@
16544
16565
  window.scroll(0, 0);
16545
16566
  });
16546
16567
  _this.productService.product$.pipe(operators.filter(function (data) { return data && data.id && data.id != 0; })).subscribe(function (productParam) {
16547
- _this.analyticsService.callEvent('view_item', __assign$r(__assign$r({}, productParam), { currency: _this.consts.currency.code }));
16568
+ _this.analyticsService.callEvent('view_item', __assign$s(__assign$s({}, productParam), { currency: _this.consts.currency.code }));
16548
16569
  });
16549
16570
  _this.ecOnConstruct();
16550
16571
  return _this;
@@ -17727,8 +17748,8 @@
17727
17748
  return BancardCatastroEcComponent;
17728
17749
  }(ComponentHelper));
17729
17750
 
17730
- var __assign$s = (this && this.__assign) || function () {
17731
- __assign$s = Object.assign || function(t) {
17751
+ var __assign$t = (this && this.__assign) || function () {
17752
+ __assign$t = Object.assign || function(t) {
17732
17753
  for (var s, i = 1, n = arguments.length; i < n; i++) {
17733
17754
  s = arguments[i];
17734
17755
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -17736,7 +17757,7 @@
17736
17757
  }
17737
17758
  return t;
17738
17759
  };
17739
- return __assign$s.apply(this, arguments);
17760
+ return __assign$t.apply(this, arguments);
17740
17761
  };
17741
17762
  var __decorate$1U = (this && this.__decorate) || function (decorators, target, key, desc) {
17742
17763
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -17803,7 +17824,7 @@
17803
17824
  * @description realiza un merge con los valores por defecto para rellenar el objeto de cookies
17804
17825
  */
17805
17826
  this.setDefaultParameters = function () {
17806
- _this.cookies = __assign$s(__assign$s({}, _this.defaultValues), _this.cookies);
17827
+ _this.cookies = __assign$t(__assign$t({}, _this.defaultValues), _this.cookies);
17807
17828
  };
17808
17829
  /**
17809
17830
  * @description procesa el parametro ingresado, para transformarlo en un atributo del objeto de cookies.
@@ -17824,7 +17845,7 @@
17824
17845
  break;
17825
17846
  case 'others':
17826
17847
  !_this.cookies[attrName] ? _this.cookies[attrName] = {} : null;
17827
- _this.cookies[attrName] = __assign$s(__assign$s({}, _this.cookies[attrName]), _this.othersAttrProcessing(element));
17848
+ _this.cookies[attrName] = __assign$t(__assign$t({}, _this.cookies[attrName]), _this.othersAttrProcessing(element));
17828
17849
  break;
17829
17850
  case 'message':
17830
17851
  _this.cookies[attrName] = _this.messageAttrProcessing(element);
@@ -17876,7 +17897,7 @@
17876
17897
  break;
17877
17898
  default:
17878
17899
  //console.log(value)
17879
- objReturn = __assign$s(__assign$s({}, objReturn), _this.getObjByFormatType(objReturn.type, value));
17900
+ objReturn = __assign$t(__assign$t({}, objReturn), _this.getObjByFormatType(objReturn.type, value));
17880
17901
  break;
17881
17902
  }
17882
17903
  }