ng-easycommerce 0.0.591 → 0.0.593

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;
@@ -6919,6 +6937,7 @@
6919
6937
  _this.codeBlock = 'newsletter_block';
6920
6938
  _this.blocks = [];
6921
6939
  _this.blockContact = null;
6940
+ _this.params = {};
6922
6941
  _this.form_data = {};
6923
6942
  _this.sendForm = function (form, success_message) {
6924
6943
  console.log('enviando...');
@@ -6945,7 +6964,7 @@
6945
6964
  _this.subscribeBlockNews = function (block) {
6946
6965
  };
6947
6966
  _this.setSubject = function () {
6948
- _this.contact_form.setValue(__assign$g(__assign$g({}, _this.contact_form.value), { subject: _this.subject }));
6967
+ _this.contact_form.setValue(__assign$h(__assign$h({}, _this.contact_form.value), { subject: _this.subject }));
6949
6968
  };
6950
6969
  _this.subscribe = function () {
6951
6970
  // PEDIR AL SERVICIO SE LO SUBSCRIBA, Y RESPONDA SI LO SUBSCRIBIÓ O YA ESTABA SUBSCRIPTO
@@ -6980,6 +6999,7 @@
6980
6999
  };
6981
7000
  ContactFormNewsEcComponent.prototype.ngOnInit = function () {
6982
7001
  var _this = this;
7002
+ this.paramsService.parameters.subscribe(function (res) { return _this.params = res; });
6983
7003
  if (!this.block) {
6984
7004
  this.blocksService.getBlocks('home');
6985
7005
  this.blocksService.blocks.pipe(operators.filter(function (blocks) { return (blocks && blocks.length > 0); })).subscribe(function (blocks) {
@@ -6987,12 +7007,12 @@
6987
7007
  if (_this.block.contactForm) {
6988
7008
  _this.block = _this.block.contactForm;
6989
7009
  }
6990
- _this.block = __assign$g(__assign$g({}, _this.block), _this.block.translations[_this.consts.getLocale()]);
7010
+ _this.block = __assign$h(__assign$h({}, _this.block), _this.block.translations[_this.consts.getLocale()]);
6991
7011
  _this.subscribeBlockNews(_this.block);
6992
7012
  });
6993
7013
  }
6994
7014
  else {
6995
- this.block = __assign$g(__assign$g({}, this.block), this.block.translations[this.consts.getLocale()]);
7015
+ this.block = __assign$h(__assign$h({}, this.block), this.block.translations[this.consts.getLocale()]);
6996
7016
  }
6997
7017
  this.subject && this.setSubject();
6998
7018
  this.ecOnInit();
@@ -7052,8 +7072,8 @@
7052
7072
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
7053
7073
  };
7054
7074
  })();
7055
- var __assign$h = (this && this.__assign) || function () {
7056
- __assign$h = Object.assign || function(t) {
7075
+ var __assign$i = (this && this.__assign) || function () {
7076
+ __assign$i = Object.assign || function(t) {
7057
7077
  for (var s, i = 1, n = arguments.length; i < n; i++) {
7058
7078
  s = arguments[i];
7059
7079
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -7061,7 +7081,7 @@
7061
7081
  }
7062
7082
  return t;
7063
7083
  };
7064
- return __assign$h.apply(this, arguments);
7084
+ return __assign$i.apply(this, arguments);
7065
7085
  };
7066
7086
  var __decorate$M = (this && this.__decorate) || function (decorators, target, key, desc) {
7067
7087
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -7107,7 +7127,7 @@
7107
7127
  }
7108
7128
  BlockProductsEcComponent.prototype.ngOnInit = function () {
7109
7129
  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 }));
7130
+ this.meta = __assign$i(__assign$i({}, this.meta), (this.meta.translations ? this.meta.translations[this.consts.getLocale()] : { name: null }));
7111
7131
  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
7132
  this.optionsOwl = {
7113
7133
  loop: this.loop,
@@ -7884,8 +7904,8 @@
7884
7904
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
7885
7905
  };
7886
7906
  })();
7887
- var __assign$i = (this && this.__assign) || function () {
7888
- __assign$i = Object.assign || function(t) {
7907
+ var __assign$j = (this && this.__assign) || function () {
7908
+ __assign$j = Object.assign || function(t) {
7889
7909
  for (var s, i = 1, n = arguments.length; i < n; i++) {
7890
7910
  s = arguments[i];
7891
7911
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -7893,7 +7913,7 @@
7893
7913
  }
7894
7914
  return t;
7895
7915
  };
7896
- return __assign$i.apply(this, arguments);
7916
+ return __assign$j.apply(this, arguments);
7897
7917
  };
7898
7918
  var __decorate$Q = (this && this.__decorate) || function (decorators, target, key, desc) {
7899
7919
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -8093,9 +8113,9 @@
8093
8113
  switch (_a.label) {
8094
8114
  case 0:
8095
8115
  this.loading = true;
8096
- data = { shippingAddress: __assign$i(__assign$i({}, this.checkoutForm.getRawValue()), { phoneNumber: this.checkoutForm.value.phoneNumber.toString() }), notes: (this.checkoutForm.getRawValue()).notes };
8116
+ data = { shippingAddress: __assign$j(__assign$j({}, this.checkoutForm.getRawValue()), { phoneNumber: this.checkoutForm.value.phoneNumber.toString() }), notes: (this.checkoutForm.getRawValue()).notes };
8097
8117
  if (!this.viewDataFacturacion && this.checkoutFormFacturacion.valid)
8098
- data = __assign$i(__assign$i({}, data), { notes: data.notes, billingAddress: this.checkoutFormFacturacion.getRawValue() });
8118
+ data = __assign$j(__assign$j({}, data), { notes: data.notes, billingAddress: this.checkoutFormFacturacion.getRawValue() });
8099
8119
  _a.label = 1;
8100
8120
  case 1:
8101
8121
  _a.trys.push([1, 3, , 4]);
@@ -8202,12 +8222,12 @@
8202
8222
  _this.getLabelNotesParam = function () { return _this.hasParams(_this.params, 'label_notes_' + _this.consts.getChannel() + '_' + _this.consts.getLocale().split('_')[0]); };
8203
8223
  _this.getParamByChannelAndLanguage = function (nameParam) { return _this.hasParams(_this.params, nameParam + _this.consts.getChannel() + '_' + _this.consts.getLocale().split('_')[0]); };
8204
8224
  _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
8225
+ _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
8226
  }));
8207
8227
  _this.checkoutForm.statusChanges
8208
8228
  .pipe(operators.filter(function () { _this.onFormChange(); return _this.checkoutForm.valid; }))
8209
8229
  .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
8230
+ _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
8231
  }));
8212
8232
  _this.checkoutFormFacturacion.statusChanges
8213
8233
  .pipe(operators.filter(function () { _this.onFormChange(); return _this.checkoutFormFacturacion.valid; }))
@@ -8423,8 +8443,8 @@
8423
8443
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
8424
8444
  };
8425
8445
  })();
8426
- var __assign$j = (this && this.__assign) || function () {
8427
- __assign$j = Object.assign || function(t) {
8446
+ var __assign$k = (this && this.__assign) || function () {
8447
+ __assign$k = Object.assign || function(t) {
8428
8448
  for (var s, i = 1, n = arguments.length; i < n; i++) {
8429
8449
  s = arguments[i];
8430
8450
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -8432,7 +8452,7 @@
8432
8452
  }
8433
8453
  return t;
8434
8454
  };
8435
- return __assign$j.apply(this, arguments);
8455
+ return __assign$k.apply(this, arguments);
8436
8456
  };
8437
8457
  var __decorate$S = (this && this.__decorate) || function (decorators, target, key, desc) {
8438
8458
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -8502,7 +8522,7 @@
8502
8522
  _this.loading_internal_mp = false;
8503
8523
  _this.method_data$ = _this.methodDataSubject.asObservable();
8504
8524
  _this.loading$ = _this.loadingSubject.asObservable();
8505
- _this.allData = function () { return (__assign$j(__assign$j({}, _this.paymentService.getUserData().shippingAddress), _this.paymentService.getShipmentData())); };
8525
+ _this.allData = function () { return (__assign$k(__assign$k({}, _this.paymentService.getUserData().shippingAddress), _this.paymentService.getShipmentData())); };
8506
8526
  _this.setError = function (message) {
8507
8527
  _this.error = message;
8508
8528
  };
@@ -8633,8 +8653,8 @@
8633
8653
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
8634
8654
  };
8635
8655
  })();
8636
- var __assign$k = (this && this.__assign) || function () {
8637
- __assign$k = Object.assign || function(t) {
8656
+ var __assign$l = (this && this.__assign) || function () {
8657
+ __assign$l = Object.assign || function(t) {
8638
8658
  for (var s, i = 1, n = arguments.length; i < n; i++) {
8639
8659
  s = arguments[i];
8640
8660
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -8642,7 +8662,7 @@
8642
8662
  }
8643
8663
  return t;
8644
8664
  };
8645
- return __assign$k.apply(this, arguments);
8665
+ return __assign$l.apply(this, arguments);
8646
8666
  };
8647
8667
  var __decorate$T = (this && this.__decorate) || function (decorators, target, key, desc) {
8648
8668
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -8676,7 +8696,7 @@
8676
8696
  _this.buttonsDisabled = false;
8677
8697
  _this.contracts = [];
8678
8698
  _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 });
8699
+ 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
8700
  _this.shipmentService.setContract(contract_data);
8681
8701
  };
8682
8702
  _this.verifyValidate = function (contract, data) {
@@ -8724,7 +8744,7 @@
8724
8744
  });
8725
8745
  this.shipmentService.costs.subscribe(function (cos) {
8726
8746
  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 }); }) }); });
8747
+ _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
8748
  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
8749
  _this.verifyValidate(_this.costs[0].name, _this.costs[0].contracts[0]);
8730
8750
  }
@@ -9510,8 +9530,8 @@
9510
9530
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
9511
9531
  };
9512
9532
  })();
9513
- var __assign$l = (this && this.__assign) || function () {
9514
- __assign$l = Object.assign || function(t) {
9533
+ var __assign$m = (this && this.__assign) || function () {
9534
+ __assign$m = Object.assign || function(t) {
9515
9535
  for (var s, i = 1, n = arguments.length; i < n; i++) {
9516
9536
  s = arguments[i];
9517
9537
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -9519,7 +9539,7 @@
9519
9539
  }
9520
9540
  return t;
9521
9541
  };
9522
- return __assign$l.apply(this, arguments);
9542
+ return __assign$m.apply(this, arguments);
9523
9543
  };
9524
9544
  var __decorate$_ = (this && this.__decorate) || function (decorators, target, key, desc) {
9525
9545
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -9562,7 +9582,7 @@
9562
9582
  if (stackPlace === void 0) { stackPlace = 'end'; }
9563
9583
  var _a, _b;
9564
9584
  (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));
9585
+ ? (_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
9586
  };
9567
9587
  _this.ecUpdateMenuItemSection = function (menuItems) {
9568
9588
  return menuItems;
@@ -9613,8 +9633,8 @@
9613
9633
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
9614
9634
  };
9615
9635
  })();
9616
- var __assign$m = (this && this.__assign) || function () {
9617
- __assign$m = Object.assign || function(t) {
9636
+ var __assign$n = (this && this.__assign) || function () {
9637
+ __assign$n = Object.assign || function(t) {
9618
9638
  for (var s, i = 1, n = arguments.length; i < n; i++) {
9619
9639
  s = arguments[i];
9620
9640
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -9622,7 +9642,7 @@
9622
9642
  }
9623
9643
  return t;
9624
9644
  };
9625
- return __assign$m.apply(this, arguments);
9645
+ return __assign$n.apply(this, arguments);
9626
9646
  };
9627
9647
  var __decorate$$ = (this && this.__decorate) || function (decorators, target, key, desc) {
9628
9648
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -9760,7 +9780,7 @@
9760
9780
  if (stackPlace === void 0) { stackPlace = 'end'; }
9761
9781
  var _a, _b;
9762
9782
  (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));
9783
+ ? (_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
9784
  };
9765
9785
  _this.hasParams = function (params, searched) { return params && params.find(function (param) { return param.code.toLowerCase().includes(searched); }); };
9766
9786
  _this.envetUrlTransparent = _this.changeUrlTransparent(_this.envetUrlTransparent);
@@ -10187,8 +10207,8 @@
10187
10207
  return CurrencyService$1;
10188
10208
  }());
10189
10209
 
10190
- var __assign$n = (this && this.__assign) || function () {
10191
- __assign$n = Object.assign || function(t) {
10210
+ var __assign$o = (this && this.__assign) || function () {
10211
+ __assign$o = Object.assign || function(t) {
10192
10212
  for (var s, i = 1, n = arguments.length; i < n; i++) {
10193
10213
  s = arguments[i];
10194
10214
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -10196,7 +10216,7 @@
10196
10216
  }
10197
10217
  return t;
10198
10218
  };
10199
- return __assign$n.apply(this, arguments);
10219
+ return __assign$o.apply(this, arguments);
10200
10220
  };
10201
10221
  var __decorate$13 = (this && this.__decorate) || function (decorators, target, key, desc) {
10202
10222
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -10598,7 +10618,7 @@
10598
10618
  product_selected.price = parseFloat(this.asociatedDataSubject.value.price);
10599
10619
  product_selected.saleprice = parseFloat(this.asociatedDataSubject.value.price);
10600
10620
  product_selected.options = {};
10601
- this.variants[0].options.forEach(function (option) { return product_selected.options = __assign$n(__assign$n({}, product_selected.options), option); });
10621
+ this.variants[0].options.forEach(function (option) { return product_selected.options = __assign$o(__assign$o({}, product_selected.options), option); });
10602
10622
  return product_selected;
10603
10623
  };
10604
10624
  /**
@@ -10640,7 +10660,7 @@
10640
10660
  }
10641
10661
  variantsAvailable.push(aux);
10642
10662
  });
10643
- return variantsAvailable.filter(function (va) { return _this.constants.containsAll(__assign$n({}, variantsSelected), va); });
10663
+ return variantsAvailable.filter(function (va) { return _this.constants.containsAll(__assign$o({}, variantsSelected), va); });
10644
10664
  };
10645
10665
  /**
10646
10666
  *
@@ -10684,8 +10704,8 @@
10684
10704
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10685
10705
  };
10686
10706
  })();
10687
- var __assign$o = (this && this.__assign) || function () {
10688
- __assign$o = Object.assign || function(t) {
10707
+ var __assign$p = (this && this.__assign) || function () {
10708
+ __assign$p = Object.assign || function(t) {
10689
10709
  for (var s, i = 1, n = arguments.length; i < n; i++) {
10690
10710
  s = arguments[i];
10691
10711
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -10693,7 +10713,7 @@
10693
10713
  }
10694
10714
  return t;
10695
10715
  };
10696
- return __assign$o.apply(this, arguments);
10716
+ return __assign$p.apply(this, arguments);
10697
10717
  };
10698
10718
  var __decorate$14 = (this && this.__decorate) || function (decorators, target, key, desc) {
10699
10719
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -10799,7 +10819,7 @@
10799
10819
  }
10800
10820
  });
10801
10821
  _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 }));
10822
+ _this.analyticsService.callEvent('view_item', __assign$p(__assign$p({}, productParam), { currency: _this.consts.currency.code }));
10803
10823
  _this.changeImgFocus(productParam.picturesdefault[0]);
10804
10824
  });
10805
10825
  _this.injector.get(ChannelConfigService).channelConfig$.subscribe(function (channel) {
@@ -11709,8 +11729,8 @@
11709
11729
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
11710
11730
  };
11711
11731
  })();
11712
- var __assign$p = (this && this.__assign) || function () {
11713
- __assign$p = Object.assign || function(t) {
11732
+ var __assign$q = (this && this.__assign) || function () {
11733
+ __assign$q = Object.assign || function(t) {
11714
11734
  for (var s, i = 1, n = arguments.length; i < n; i++) {
11715
11735
  s = arguments[i];
11716
11736
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -11718,7 +11738,7 @@
11718
11738
  }
11719
11739
  return t;
11720
11740
  };
11721
- return __assign$p.apply(this, arguments);
11741
+ return __assign$q.apply(this, arguments);
11722
11742
  };
11723
11743
  var __decorate$1e = (this && this.__decorate) || function (decorators, target, key, desc) {
11724
11744
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -11811,7 +11831,7 @@
11811
11831
  _this.payment_method = payment_data.id;
11812
11832
  _this.issuer_id = payment_data.issuer.id;
11813
11833
  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 }));
11834
+ _this.installments.push(__assign$q(__assign$q({}, payerCost), { name: ('Cuotas: ' + payerCost.installments + ' - Total: ' + _this.calculateTotal(payerCost)), value: payerCost.installments }));
11815
11835
  });
11816
11836
  _this.installment_data = payment_data;
11817
11837
  }
@@ -11898,7 +11918,7 @@
11898
11918
  if (status == 200 && response.length) {
11899
11919
  _this.installments = [];
11900
11920
  response[0].payer_costs.forEach(function (payerCost) {
11901
- _this.installments.push(__assign$p(__assign$p({}, payerCost), { name: payerCost.recommended_message, value: payerCost.installments }));
11921
+ _this.installments.push(__assign$q(__assign$q({}, payerCost), { name: payerCost.recommended_message, value: payerCost.installments }));
11902
11922
  });
11903
11923
  _this.installment_data = response[0];
11904
11924
  }
@@ -13240,7 +13260,7 @@
13240
13260
  default:
13241
13261
  messageKey = 'register-success';
13242
13262
  }
13243
- _this.toastr.show(messageKey);
13263
+ _this.toastr.showPersistent(messageKey);
13244
13264
  _this.analyticsService.callEvent('sign_up', {
13245
13265
  firstName: _this.registerForm.value.firstName,
13246
13266
  lastName: _this.registerForm.value.lastName,
@@ -13257,7 +13277,7 @@
13257
13277
  }, function (error) {
13258
13278
  _this.register_loading = false;
13259
13279
  if (error.status == 400) {
13260
- _this.toastr.show('El email ingresado ya se encuentra registrado.');
13280
+ _this.toastr.showPersistent('El email ingresado ya se encuentra registrado.');
13261
13281
  }
13262
13282
  else {
13263
13283
  _this.toastr.show('Error en el registro. Vuelva a intentarlo más tarde.');
@@ -13299,6 +13319,9 @@
13299
13319
  });
13300
13320
  this.ecOnInit();
13301
13321
  };
13322
+ RegisterFormEcComponent.prototype.prueba = function () {
13323
+ this.toastr.showPersistent('hola');
13324
+ };
13302
13325
  RegisterFormEcComponent.ctorParameters = function () { return [
13303
13326
  { type: AuthService },
13304
13327
  { type: ToastService },
@@ -15216,8 +15239,8 @@
15216
15239
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15217
15240
  };
15218
15241
  })();
15219
- var __assign$q = (this && this.__assign) || function () {
15220
- __assign$q = Object.assign || function(t) {
15242
+ var __assign$r = (this && this.__assign) || function () {
15243
+ __assign$r = Object.assign || function(t) {
15221
15244
  for (var s, i = 1, n = arguments.length; i < n; i++) {
15222
15245
  s = arguments[i];
15223
15246
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -15225,7 +15248,7 @@
15225
15248
  }
15226
15249
  return t;
15227
15250
  };
15228
- return __assign$q.apply(this, arguments);
15251
+ return __assign$r.apply(this, arguments);
15229
15252
  };
15230
15253
  var __decorate$1C = (this && this.__decorate) || function (decorators, target, key, desc) {
15231
15254
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -15272,7 +15295,7 @@
15272
15295
  var _this = this;
15273
15296
  this.subs = this.authService.channelsUser.pipe(operators.filter(function (res) { return res != null && res.length > 0; })).subscribe(function (res) {
15274
15297
  _this.channels = res.map(function (item) {
15275
- return __assign$q(__assign$q({}, item), { selected: false });
15298
+ return __assign$r(__assign$r({}, item), { selected: false });
15276
15299
  });
15277
15300
  _this.initializeTemplate();
15278
15301
  });
@@ -16491,8 +16514,8 @@
16491
16514
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16492
16515
  };
16493
16516
  })();
16494
- var __assign$r = (this && this.__assign) || function () {
16495
- __assign$r = Object.assign || function(t) {
16517
+ var __assign$s = (this && this.__assign) || function () {
16518
+ __assign$s = Object.assign || function(t) {
16496
16519
  for (var s, i = 1, n = arguments.length; i < n; i++) {
16497
16520
  s = arguments[i];
16498
16521
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -16500,7 +16523,7 @@
16500
16523
  }
16501
16524
  return t;
16502
16525
  };
16503
- return __assign$r.apply(this, arguments);
16526
+ return __assign$s.apply(this, arguments);
16504
16527
  };
16505
16528
  var __decorate$1L = (this && this.__decorate) || function (decorators, target, key, desc) {
16506
16529
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -16544,7 +16567,7 @@
16544
16567
  window.scroll(0, 0);
16545
16568
  });
16546
16569
  _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 }));
16570
+ _this.analyticsService.callEvent('view_item', __assign$s(__assign$s({}, productParam), { currency: _this.consts.currency.code }));
16548
16571
  });
16549
16572
  _this.ecOnConstruct();
16550
16573
  return _this;
@@ -17727,8 +17750,8 @@
17727
17750
  return BancardCatastroEcComponent;
17728
17751
  }(ComponentHelper));
17729
17752
 
17730
- var __assign$s = (this && this.__assign) || function () {
17731
- __assign$s = Object.assign || function(t) {
17753
+ var __assign$t = (this && this.__assign) || function () {
17754
+ __assign$t = Object.assign || function(t) {
17732
17755
  for (var s, i = 1, n = arguments.length; i < n; i++) {
17733
17756
  s = arguments[i];
17734
17757
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -17736,7 +17759,7 @@
17736
17759
  }
17737
17760
  return t;
17738
17761
  };
17739
- return __assign$s.apply(this, arguments);
17762
+ return __assign$t.apply(this, arguments);
17740
17763
  };
17741
17764
  var __decorate$1U = (this && this.__decorate) || function (decorators, target, key, desc) {
17742
17765
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -17803,7 +17826,7 @@
17803
17826
  * @description realiza un merge con los valores por defecto para rellenar el objeto de cookies
17804
17827
  */
17805
17828
  this.setDefaultParameters = function () {
17806
- _this.cookies = __assign$s(__assign$s({}, _this.defaultValues), _this.cookies);
17829
+ _this.cookies = __assign$t(__assign$t({}, _this.defaultValues), _this.cookies);
17807
17830
  };
17808
17831
  /**
17809
17832
  * @description procesa el parametro ingresado, para transformarlo en un atributo del objeto de cookies.
@@ -17824,7 +17847,7 @@
17824
17847
  break;
17825
17848
  case 'others':
17826
17849
  !_this.cookies[attrName] ? _this.cookies[attrName] = {} : null;
17827
- _this.cookies[attrName] = __assign$s(__assign$s({}, _this.cookies[attrName]), _this.othersAttrProcessing(element));
17850
+ _this.cookies[attrName] = __assign$t(__assign$t({}, _this.cookies[attrName]), _this.othersAttrProcessing(element));
17828
17851
  break;
17829
17852
  case 'message':
17830
17853
  _this.cookies[attrName] = _this.messageAttrProcessing(element);
@@ -17876,7 +17899,7 @@
17876
17899
  break;
17877
17900
  default:
17878
17901
  //console.log(value)
17879
- objReturn = __assign$s(__assign$s({}, objReturn), _this.getObjByFormatType(objReturn.type, value));
17902
+ objReturn = __assign$t(__assign$t({}, objReturn), _this.getObjByFormatType(objReturn.type, value));
17880
17903
  break;
17881
17904
  }
17882
17905
  }