ng-easycommerce 0.0.601 → 0.0.603
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/bundles/ng-easycommerce.umd.js +218 -62
- package/bundles/ng-easycommerce.umd.js.map +1 -1
- package/bundles/ng-easycommerce.umd.min.js +1 -1
- package/bundles/ng-easycommerce.umd.min.js.map +1 -1
- package/esm2015/lib/ec-component/checkout-ec/payment-ec/payment-ec.component.js +3 -2
- package/esm2015/lib/ec-component/index.js +4 -1
- package/esm2015/lib/ec-component/widgets-ec/place-to-pay-ec/place-to-pay-ec.component.js +125 -0
- package/esm2015/lib/ec-component/widgets-ec/redsys-catch-ec/redsys-catch-ec.component.js +1 -1
- package/esm2015/lib/ng-easycommerce.module.js +3 -1
- package/esm2015/lib/services/auth.service.js +17 -4
- package/esm2015/lib/services/checkout/payment.service.js +3 -1
- package/esm2015/ng-easycommerce.js +22 -21
- package/esm5/lib/ec-component/checkout-ec/payment-ec/payment-ec.component.js +3 -2
- package/esm5/lib/ec-component/index.js +4 -1
- package/esm5/lib/ec-component/widgets-ec/place-to-pay-ec/place-to-pay-ec.component.js +143 -0
- package/esm5/lib/ec-component/widgets-ec/redsys-catch-ec/redsys-catch-ec.component.js +1 -1
- package/esm5/lib/ng-easycommerce.module.js +3 -1
- package/esm5/lib/services/auth.service.js +17 -4
- package/esm5/lib/services/checkout/payment.service.js +5 -1
- package/esm5/ng-easycommerce.js +22 -21
- package/fesm2015/ng-easycommerce.js +178 -43
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +198 -43
- package/fesm5/ng-easycommerce.js.map +1 -1
- package/lib/ec-component/checkout-ec/payment-ec/payment-ec.component.d.ts +1 -0
- package/lib/ec-component/index.d.ts +1 -0
- package/lib/ec-component/widgets-ec/place-to-pay-ec/place-to-pay-ec.component.d.ts +34 -0
- package/lib/services/checkout/payment.service.d.ts +2 -0
- package/ng-easycommerce.d.ts +21 -20
- package/ng-easycommerce.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -4281,7 +4281,13 @@
|
|
|
4281
4281
|
return rxjs.of(err.toString());
|
|
4282
4282
|
})).toPromise();
|
|
4283
4283
|
};
|
|
4284
|
-
this.signUp = function (data) {
|
|
4284
|
+
this.signUp = function (data) {
|
|
4285
|
+
// Convertir el email a minúsculas si existe
|
|
4286
|
+
if (data.email) {
|
|
4287
|
+
data = __assign$9(__assign$9({}, data), { email: data.email.toLowerCase() });
|
|
4288
|
+
}
|
|
4289
|
+
return _this.connection.post(_this.registerApi(), data);
|
|
4290
|
+
};
|
|
4285
4291
|
this.confirmAccount = function (token) {
|
|
4286
4292
|
return _this.connection.get(_this.confirmAccountApi(token));
|
|
4287
4293
|
};
|
|
@@ -4299,7 +4305,13 @@
|
|
|
4299
4305
|
};
|
|
4300
4306
|
this.getExpiratesAt = function () { return localStorage.getItem(_this.EXPIRATES_IN); };
|
|
4301
4307
|
this.hasToRefresh = function () { return _this.getRefreshToken(); };
|
|
4302
|
-
this.signUpWholesaler = function (data) {
|
|
4308
|
+
this.signUpWholesaler = function (data) {
|
|
4309
|
+
// Convertir el email a minúsculas si existe
|
|
4310
|
+
if (data.email) {
|
|
4311
|
+
data = __assign$9(__assign$9({}, data), { email: data.email.toLowerCase() });
|
|
4312
|
+
}
|
|
4313
|
+
return _this.connection.post(_this.registerWholesalerApi(), data);
|
|
4314
|
+
};
|
|
4303
4315
|
this.getCountriesData = function () { return __awaiter$4(_this, void 0, void 0, function () { return __generator$4(this, function (_a) {
|
|
4304
4316
|
return [2 /*return*/, this.connection.get(this.countriesApi()).pipe(operators.map(function (res) { return res._embedded.items; })).toPromise()];
|
|
4305
4317
|
}); }); };
|
|
@@ -4402,7 +4414,8 @@
|
|
|
4402
4414
|
this.injector.get(ChannelConfigService).channelConfig$.subscribe(function (ch) { return _this.channel = ch; });
|
|
4403
4415
|
this.injector.get(ChannelConfigService).channels.subscribe(function (ch) { return _this.channels = ch; });
|
|
4404
4416
|
this.loggingInSubject.next(true);
|
|
4405
|
-
|
|
4417
|
+
// Convertir el username a minúsculas
|
|
4418
|
+
user = __assign$9(__assign$9(__assign$9({}, user), { username: user.username.toLowerCase() }), this.constants.loginExtraData());
|
|
4406
4419
|
var result = this.connection.post(this.tokenApi(), user).pipe(operators.map(function (res) {
|
|
4407
4420
|
if (_this.channelAccessPermission(__assign$9(__assign$9({}, user), res)) && _this.isAllowedRole(withRoles, res.type)) {
|
|
4408
4421
|
_this.doLoginUser(__assign$9(__assign$9({}, user), res));
|
|
@@ -8500,6 +8513,7 @@
|
|
|
8500
8513
|
_this.getCheckoutMobbexApi = function () { return 'shop-api/' + _this.consts.getChannel() + '/mobbex/' + _this.cartService.getCartToken() + '/process-payment'; };
|
|
8501
8514
|
_this.getCheckoutBancardApi = function () { return 'shop-api/' + _this.consts.getChannel() + '/bancard/' + _this.cartService.getCartToken() + '/process-payment'; }; //?testOrderNumber=' + this.getRandomArbitrary()
|
|
8502
8515
|
_this.getCheckoutBambooApi = function () { return 'shop-api/' + _this.consts.getChannel() + '/bamboo/' + _this.cartService.getCartToken() + '/process-payment'; };
|
|
8516
|
+
_this.getCheckoutPlaceToPayApi = function () { return 'shop-api/' + _this.consts.getChannel() + '/place-to-pay/' + _this.cartService.getCartToken() + '/process-payment'; };
|
|
8503
8517
|
_this.putPaymentApi = function (method) { return _this.baseApi() + '/payment/' + method; };
|
|
8504
8518
|
_this.getPaymentMethods = function () { return __awaiter$a(_this, void 0, void 0, function () {
|
|
8505
8519
|
var _this = this;
|
|
@@ -8523,6 +8537,9 @@
|
|
|
8523
8537
|
_this.getCheckoutMobbex = function (shipment_data) { return _this.connection.post(_this.getCheckoutMobbexApi(), shipment_data).toPromise(); };
|
|
8524
8538
|
_this.getCheckoutBancard = function (shipment_data) { return _this.connection.get(_this.getCheckoutBancardApi(), shipment_data).toPromise(); };
|
|
8525
8539
|
_this.getCheckoutBamboo = function (shipment_data) { return _this.connection.get(_this.getCheckoutBambooApi(), shipment_data).toPromise(); };
|
|
8540
|
+
_this.getCheckoutPlaceToPay = function (shipment_data) {
|
|
8541
|
+
return _this.connection.post(_this.getCheckoutPlaceToPayApi(), shipment_data).toPromise();
|
|
8542
|
+
};
|
|
8526
8543
|
_this.getRandomArbitrary = function () { return Math.round(Math.random() * (Number(9999999) - Number(2000003)) + Number(2000003)); };
|
|
8527
8544
|
_this.getPaymentMethods();
|
|
8528
8545
|
return _this;
|
|
@@ -8693,6 +8710,7 @@
|
|
|
8693
8710
|
_this.isBankTransfer = function (code) { return code && code.toLocaleLowerCase().includes('bank_transfer'); };
|
|
8694
8711
|
_this.isCatastro = function (code) { return code && code.toLocaleLowerCase().includes('catastro'); };
|
|
8695
8712
|
_this.isBamboo = function (code) { return code && code.toLocaleLowerCase().includes('bamboo'); };
|
|
8713
|
+
_this.isPlaceToPay = function (code) { return code && code.toLocaleLowerCase().includes('place_to_pay'); };
|
|
8696
8714
|
_this.getPKCulqi = function (method) {
|
|
8697
8715
|
return window.location.href.includes('easycommercetech')
|
|
8698
8716
|
? method.config.public_testing_key
|
|
@@ -8743,7 +8761,7 @@
|
|
|
8743
8761
|
PaymentEcComponent = __decorate$S([
|
|
8744
8762
|
core.Component({
|
|
8745
8763
|
selector: 'app-payment-ec',
|
|
8746
|
-
template: "<div class=\"container-fluid\" *ngIf=\"(paymentService.methods$ | async) as methods\">\n\n <div class=\"row\">\n <div class=\"col-12\">\n <div class=\"card \">\n <div class=\"card-header text-dark text-center\">\n <h4>{{ 'select-method' | translate }}</h4>\n <div class=\"btn-toolbar justify-content-center\" role=\"toolbar\" aria-label=\"Envios toolbar\">\n <div class=\"\" role=\"group\" aria-label=\"Grupo botones envio\">\n <div class=\"d-flex align-content-start justify-content-center flex-wrap\">\n <button type=\"button\" class=\"btn btn-outline-secondary mx-1 mb-1\"\n *ngFor=\"let method of methods; let x = index\"\n (click)=\"setMethod(method) ; setActive($event)\">\n {{ method.name | translate }}\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class=\"card-body text-center\">\n <div class=\"row justify-content-center\" *ngIf=\"(method_data$ | async) as method\">\n <ng-container *ngIf=\"!loading_internal ; else loading\">\n <div class=\"method-container text-dark\" *ngIf=\"isMP(method.code)\">\n <p id=\"faqs\" class=\"qt px-5 \">{{ method.description }}</p>\n <p class=\"px-5\">{{ method.instructions }}</p>\n <app-mp-redirect-ec (ready)=\"verifyValidate($event)\" [method]=\"method\" [paymentServiceInst]=\"paymentService\" [allData]=\"allData()\"></app-mp-redirect-ec>\n </div>\n <div class=\"method-container text-dark text-left\" *ngIf=\"isMPTarjetaDeCredito(method.code)\">\n <div class=\"row\">\n <div class=\"col-12\">\n <p id=\"faqs\" class=\"qt px-5 \">{{ method.description }}</p>\n <p class=\"px-5\">{{ method.instructions }}</p>\n <div app-mp-credit-ec (ready)=\"verifyValidate()\" [public_key]=\"getPK(method)\"\n [user_data]=\"allData()\" [total_amount]=\"total_amount\">\n </div>\n </div>\n </div>\n </div>\n <div class=\"method-container text-dark text-start\"\n *ngIf=\"isRedirectRedsys(method.code)\">\n <div class=\"row\">\n <div class=\"col-12\">\n <ng-container *ngIf=\"!method.code.includes('bizum') && !method.code.includes('_out_')\">\n <app-redsys-redirect-ec (ready)=\"verifyValidate($event)\" [method]=\"method\" [user_data]=\"allData()\">\n </app-redsys-redirect-ec>\n </ng-container>\n <ng-container *ngIf=\"method.code.includes('bizum') || method.code.includes('_out_')\">\n <app-redsys-redirect-out-ec (ready)=\"verifyValidate($event)\" [method]=\"method\" [user_data]=\"allData()\">\n </app-redsys-redirect-out-ec>\n </ng-container>\n </div>\n </div>\n </div>\n <div class=\"method-container text-dark text-start\" *ngIf=\"isRedirectCecaBank(method.code)\">\n <div class=\"row\">\n <div class=\"col-12\">\n <app-ceca-redirect-ec (ready)=\"verifyValidate($event)\" [method]=\"method\" [user_data]=\"allData()\">\n </app-ceca-redirect-ec>\n </div>\n </div>\n </div>\n <div class=\"method-container text-dark text-start\" *ngIf=\"isPeyPalExpress(method.code)\">\n <div class=\"container\">\n <div class=\"row justify-content-center\">\n <div class=\"col-12\">\n <app-paypal-express-ec (ready)=\"verifyValidate($event)\" [method]=\"method\" [user_data]=\"allData()\"\n [total_amount]=\"total_amount\">\n </app-paypal-express-ec>\n </div>\n </div>\n </div>\n </div>\n <div class=\"method-container text-dark text-start\" *ngIf=\"isMobbex(method.code)\">\n <div class=\"container\">\n <div class=\"row justify-content-center\">\n <div class=\"col-12\">\n <app-mobbex-ec (ready)=\"verifyValidate($event)\" [method]=\"method\" [user_data]=\"allData()\" [paymentServiceInst]=\"paymentService\"\n [total_amount]=\"total_amount\">\n </app-mobbex-ec>\n </div>\n </div>\n </div>\n </div>\n <div class=\"method-container text-dark text-start\" *ngIf=\"isBancard(method.code)\">\n <div class=\"container\">\n <div class=\"row justify-content-center\">\n <div class=\"col-12\">\n <app-bancard-ec (ready)=\"verifyValidate($event)\" [method]=\"method\" [user_data]=\"allData()\"\n [paymentServiceInst]=\"paymentService\" [total_amount]=\"total_amount\">\n </app-bancard-ec>\n </div>\n </div>\n </div>\n </div>\n <div class=\"method-container text-dark text-start\" *ngIf=\"isDecidir(method.code)\">\n <div class=\"container\">\n <div class=\"row justify-content-center\">\n <div class=\"col-12\">\n <app-decidir-ec (ready)=\"verifyValidate($event)\" [method]=\"method\" [user_data]=\"allData()\" [paymentServiceInst]=\"paymentService\"\n [total_amount]=\"total_amount\">\n </app-decidir-ec>\n </div>\n </div>\n </div>\n </div>\n <div class=\"method-container text-dark\" *ngIf=\"isMethodOffline(method.code)\">\n <p id=\"faqs\" class=\"qt px-5\">{{ method.description }}</p>\n <p class=\"px-5\">{{ method.instructions }}</p>\n <div class=\"end-button\">\n <button class=\"btn comprar\" (click)=\"setLoading() && verifyValidate()\">{{ ('pay-with-offline'| translate) }}</button>\n </div>\n <ng-container *ngIf=\"(loading$ | async) as load\">\n <div class=\"mt-2\" *ngIf=\"load\">\n <app-loading-inline-ec></app-loading-inline-ec>\n </div>\n </ng-container>\n </div>\n <div class=\"method-container text-dark text-start\" *ngIf=\"isCulqi(method.code)\">\n <div class=\"container\">\n <div class=\"row justify-content-center\">\n <div class=\"col-12\">\n <!-- <app-mobbex-ec (ready)=\"verifyValidate($event)\" [method]=\"method\" [user_data]=\"allData()\" [paymentServiceInst]=\"paymentService\"\n [total_amount]=\"total_amount\">\n </app-mobbex-ec> -->\n <app-culqi-ec [apiKey]=\"getPKCulqi(method)\" [method]=\"method\" [amount]=\"total_amount\" [customStyle]=\"true\" (ready)=\"verifyValidate()\"></app-culqi-ec>\n </div>\n </div>\n </div>\n </div>\n <div class=\"method-container text-dark text-start\" *ngIf=\"isCatastro(method.code)\">\n <div class=\"container\">\n <div class=\"row justify-content-center\">\n <div class=\"col-12\">\n <app-bancard-catastro-ec (ready)=\"verifyValidate($event)\" [method]=\"method\" [user_data]=\"allData()\"\n [paymentServiceInst]=\"paymentService\" [total_amount]=\"total_amount\"></app-bancard-catastro-ec>\n </div>\n </div>\n </div>\n </div>\n <div class=\"method-container text-dark text-start\" *ngIf=\"isBamboo(method.code)\">\n <div class=\"container\">\n <div class=\"row justify-content-center\">\n <div class=\"col-12\">\n <app-bamboo-ec (ready)=\"verifyValidate($event)\" [method]=\"method\" [user_data]=\"allData()\"\n [paymentServiceInst]=\"paymentService\" [total_amount]=\"total_amount\"></app-bamboo-ec>\n </div>\n </div>\n </div>\n </div>\n <div class=\"method-container text-dark\" *ngIf=\"isBankTransfer(method.code)\">\n <div class=\"row px-0 description-cont\">\n <ng-container *ngFor=\"let line of method.description.split('\\r\\n'); let i=index\">\n <p [id]=\"'faqs-'+i\" [class]=\"'qt px-5 m-0 line-'+i\">{{ line }}</p>\n </ng-container>\n </div>\n <hr *ngIf=\"method.instructions\">\n <div *ngIf=\"method.instructions\" class=\"row px-0 instructions-cont mb-1\">\n <h5 class=\"instructions-title\">{{ ('instructions' | translate) }}</h5>\n <ng-container *ngFor=\"let line of method.instructions.split('\\r\\n'); let i=index\">\n <p [class]=\"'px-5 m-0 instructions-text line-'+i \">{{ line }}</p>\n </ng-container>\n </div>\n\n <div class=\"end-button\">\n <button class=\"btn comprar\" (click)=\"setLoading() && verifyValidate()\">{{\n ('pay-with-transfer'\n | translate) }}</button>\n </div>\n <ng-container *ngIf=\"(loading$ | async) as load\">\n <div class=\"mt-2\" *ngIf=\"load\">\n <app-loading-inline-ec></app-loading-inline-ec>\n </div>\n </ng-container>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<ng-template #mercadoPago>\n <div class=\"row \">\n <div class=\"col-12 text-center\">\n <app-loading-inline-ec *ngIf=\"loading_internal_mp\"></app-loading-inline-ec>\n <form action=\"javascript:void(0)\" #formContainer></form>\n </div>\n </div>\n</ng-template>\n\n<ng-template #loading>\n <app-loading-inline-ec></app-loading-inline-ec>\n</ng-template>\n",
|
|
8764
|
+
template: "<div class=\"container-fluid\" *ngIf=\"(paymentService.methods$ | async) as methods\">\n\n <div class=\"row\">\n <div class=\"col-12\">\n <div class=\"card \">\n <div class=\"card-header text-dark text-center\">\n <h4>{{ 'select-method' | translate }}</h4>\n <div class=\"btn-toolbar justify-content-center\" role=\"toolbar\" aria-label=\"Envios toolbar\">\n <div class=\"\" role=\"group\" aria-label=\"Grupo botones envio\">\n <div class=\"d-flex align-content-start justify-content-center flex-wrap\">\n <button type=\"button\" class=\"btn btn-outline-secondary mx-1 mb-1\"\n *ngFor=\"let method of methods; let x = index\"\n (click)=\"setMethod(method) ; setActive($event)\">\n {{ method.name | translate }}\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class=\"card-body text-center\">\n <div class=\"row justify-content-center\" *ngIf=\"(method_data$ | async) as method\">\n <ng-container *ngIf=\"!loading_internal ; else loading\">\n <div class=\"method-container text-dark\" *ngIf=\"isMP(method.code)\">\n <p id=\"faqs\" class=\"qt px-5 \">{{ method.description }}</p>\n <p class=\"px-5\">{{ method.instructions }}</p>\n <app-mp-redirect-ec (ready)=\"verifyValidate($event)\" [method]=\"method\"\n [paymentServiceInst]=\"paymentService\" [allData]=\"allData()\"></app-mp-redirect-ec>\n </div>\n <div class=\"method-container text-dark text-left\" *ngIf=\"isMPTarjetaDeCredito(method.code)\">\n <div class=\"row\">\n <div class=\"col-12\">\n <p id=\"faqs\" class=\"qt px-5 \">{{ method.description }}</p>\n <p class=\"px-5\">{{ method.instructions }}</p>\n <div app-mp-credit-ec (ready)=\"verifyValidate()\" [public_key]=\"getPK(method)\"\n [user_data]=\"allData()\" [total_amount]=\"total_amount\">\n </div>\n </div>\n </div>\n </div>\n <div class=\"method-container text-dark text-start\" *ngIf=\"isRedirectRedsys(method.code)\">\n <div class=\"row\">\n <div class=\"col-12\">\n <ng-container\n *ngIf=\"!method.code.includes('bizum') && !method.code.includes('_out_')\">\n <app-redsys-redirect-ec (ready)=\"verifyValidate($event)\" [method]=\"method\"\n [user_data]=\"allData()\">\n </app-redsys-redirect-ec>\n </ng-container>\n <ng-container\n *ngIf=\"method.code.includes('bizum') || method.code.includes('_out_')\">\n <app-redsys-redirect-out-ec (ready)=\"verifyValidate($event)\"\n [method]=\"method\" [user_data]=\"allData()\">\n </app-redsys-redirect-out-ec>\n </ng-container>\n </div>\n </div>\n </div>\n <div class=\"method-container text-dark text-start\" *ngIf=\"isRedirectCecaBank(method.code)\">\n <div class=\"row\">\n <div class=\"col-12\">\n <app-ceca-redirect-ec (ready)=\"verifyValidate($event)\" [method]=\"method\"\n [user_data]=\"allData()\">\n </app-ceca-redirect-ec>\n </div>\n </div>\n </div>\n <div class=\"method-container text-dark text-start\" *ngIf=\"isPeyPalExpress(method.code)\">\n <div class=\"container\">\n <div class=\"row justify-content-center\">\n <div class=\"col-12\">\n <app-paypal-express-ec (ready)=\"verifyValidate($event)\" [method]=\"method\"\n [user_data]=\"allData()\" [total_amount]=\"total_amount\">\n </app-paypal-express-ec>\n </div>\n </div>\n </div>\n </div>\n <div class=\"method-container text-dark text-start\" *ngIf=\"isMobbex(method.code)\">\n <div class=\"container\">\n <div class=\"row justify-content-center\">\n <div class=\"col-12\">\n <app-mobbex-ec (ready)=\"verifyValidate($event)\" [method]=\"method\"\n [user_data]=\"allData()\" [paymentServiceInst]=\"paymentService\"\n [total_amount]=\"total_amount\">\n </app-mobbex-ec>\n </div>\n </div>\n </div>\n </div>\n <div class=\"method-container text-dark text-start\" *ngIf=\"isBancard(method.code)\">\n <div class=\"container\">\n <div class=\"row justify-content-center\">\n <div class=\"col-12\">\n <app-bancard-ec (ready)=\"verifyValidate($event)\" [method]=\"method\"\n [user_data]=\"allData()\" [paymentServiceInst]=\"paymentService\"\n [total_amount]=\"total_amount\">\n </app-bancard-ec>\n </div>\n </div>\n </div>\n </div>\n <div class=\"method-container text-dark text-start\" *ngIf=\"isDecidir(method.code)\">\n <div class=\"container\">\n <div class=\"row justify-content-center\">\n <div class=\"col-12\">\n <app-decidir-ec (ready)=\"verifyValidate($event)\" [method]=\"method\"\n [user_data]=\"allData()\" [paymentServiceInst]=\"paymentService\"\n [total_amount]=\"total_amount\">\n </app-decidir-ec>\n </div>\n </div>\n </div>\n </div>\n <div class=\"method-container text-dark\" *ngIf=\"isMethodOffline(method.code)\">\n <p id=\"faqs\" class=\"qt px-5\">{{ method.description }}</p>\n <p class=\"px-5\">{{ method.instructions }}</p>\n <div class=\"end-button\">\n <button class=\"btn comprar\" (click)=\"setLoading() && verifyValidate()\">{{\n ('pay-with-offline'| translate) }}</button>\n </div>\n <ng-container *ngIf=\"(loading$ | async) as load\">\n <div class=\"mt-2\" *ngIf=\"load\">\n <app-loading-inline-ec></app-loading-inline-ec>\n </div>\n </ng-container>\n </div>\n <div class=\"method-container text-dark text-start\" *ngIf=\"isCulqi(method.code)\">\n <div class=\"container\">\n <div class=\"row justify-content-center\">\n <div class=\"col-12\">\n <!-- <app-mobbex-ec (ready)=\"verifyValidate($event)\" [method]=\"method\" [user_data]=\"allData()\" [paymentServiceInst]=\"paymentService\"\n [total_amount]=\"total_amount\">\n </app-mobbex-ec> -->\n <app-culqi-ec [apiKey]=\"getPKCulqi(method)\" [method]=\"method\"\n [amount]=\"total_amount\" [customStyle]=\"true\"\n (ready)=\"verifyValidate()\"></app-culqi-ec>\n </div>\n </div>\n </div>\n </div>\n <div class=\"method-container text-dark text-start\" *ngIf=\"isCatastro(method.code)\">\n <div class=\"container\">\n <div class=\"row justify-content-center\">\n <div class=\"col-12\">\n <app-bancard-catastro-ec (ready)=\"verifyValidate($event)\" [method]=\"method\"\n [user_data]=\"allData()\" [paymentServiceInst]=\"paymentService\"\n [total_amount]=\"total_amount\"></app-bancard-catastro-ec>\n </div>\n </div>\n </div>\n </div>\n <div class=\"method-container text-dark text-start\" *ngIf=\"isBamboo(method.code)\">\n <div class=\"container\">\n <div class=\"row justify-content-center\">\n <div class=\"col-12\">\n <app-bamboo-ec (ready)=\"verifyValidate($event)\" [method]=\"method\"\n [user_data]=\"allData()\" [paymentServiceInst]=\"paymentService\"\n [total_amount]=\"total_amount\"></app-bamboo-ec>\n </div>\n </div>\n </div>\n </div>\n <div class=\"method-container text-dark\" *ngIf=\"isBankTransfer(method.code)\">\n <div class=\"row px-0 description-cont\">\n <ng-container *ngFor=\"let line of method.description.split('\\r\\n'); let i=index\">\n <p [id]=\"'faqs-'+i\" [class]=\"'qt px-5 m-0 line-'+i\">{{ line }}</p>\n </ng-container>\n </div>\n <hr *ngIf=\"method.instructions\">\n <div *ngIf=\"method.instructions\" class=\"row px-0 instructions-cont mb-1\">\n <h5 class=\"instructions-title\">{{ ('instructions' | translate) }}</h5>\n <ng-container *ngFor=\"let line of method.instructions.split('\\r\\n'); let i=index\">\n <p [class]=\"'px-5 m-0 instructions-text line-'+i \">{{ line }}</p>\n </ng-container>\n </div>\n\n <div class=\"end-button\">\n <button class=\"btn comprar\" (click)=\"setLoading() && verifyValidate()\">{{\n ('pay-with-transfer'\n | translate) }}</button>\n </div>\n <ng-container *ngIf=\"(loading$ | async) as load\">\n <div class=\"mt-2\" *ngIf=\"load\">\n <app-loading-inline-ec></app-loading-inline-ec>\n </div>\n </ng-container>\n </div>\n <div class=\"method-container text-dark\" *ngIf=\"isPlaceToPay(method.code)\">\n <p id=\"faqs\" class=\"qt px-5 \">{{ method.description }}</p>\n <p class=\"px-5\">{{ method.instructions }}</p>\n <app-place-to-pay-ec (ready)=\"verifyValidate($event)\" [method]=\"method\"\n [paymentServiceInst]=\"paymentService\" [allData]=\"allData()\">\n </app-place-to-pay-ec>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<ng-template #mercadoPago>\n <div class=\"row \">\n <div class=\"col-12 text-center\">\n <app-loading-inline-ec *ngIf=\"loading_internal_mp\"></app-loading-inline-ec>\n <form action=\"javascript:void(0)\" #formContainer></form>\n </div>\n </div>\n</ng-template>\n\n<ng-template #loading>\n <app-loading-inline-ec></app-loading-inline-ec>\n</ng-template>",
|
|
8747
8765
|
providers: [PaymentService],
|
|
8748
8766
|
styles: ["div.col-12 form{text-align:center}.option-container>div{margin-bottom:15px}@media only screen and (min-width:600px){.option-container{display:flex;justify-content:space-between;margin-top:20px}}.method-container{width:100%}.active{background-color:#000!important;color:#fff!important}.comprar{background:#000;color:#fff;display:inline-block;font-size:18px;font-weight:600;padding:10px 25px;text-decoration:none;text-transform:uppercase}"]
|
|
8749
8767
|
})
|
|
@@ -18707,6 +18725,141 @@
|
|
|
18707
18725
|
return SidebarEcComponent;
|
|
18708
18726
|
}());
|
|
18709
18727
|
|
|
18728
|
+
var __extends$1f = (this && this.__extends) || (function () {
|
|
18729
|
+
var extendStatics = function (d, b) {
|
|
18730
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18731
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
18732
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
18733
|
+
return extendStatics(d, b);
|
|
18734
|
+
};
|
|
18735
|
+
return function (d, b) {
|
|
18736
|
+
extendStatics(d, b);
|
|
18737
|
+
function __() { this.constructor = d; }
|
|
18738
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18739
|
+
};
|
|
18740
|
+
})();
|
|
18741
|
+
var __decorate$20 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18742
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
18743
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
18744
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18745
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18746
|
+
};
|
|
18747
|
+
var PlaceToPayEcComponent = /** @class */ (function (_super) {
|
|
18748
|
+
__extends$1f(PlaceToPayEcComponent, _super);
|
|
18749
|
+
function PlaceToPayEcComponent(renderer, connection, toastrService, consts, cartService, activedRoute) {
|
|
18750
|
+
var _this = _super.call(this) || this;
|
|
18751
|
+
_this.renderer = renderer;
|
|
18752
|
+
_this.connection = connection;
|
|
18753
|
+
_this.toastrService = toastrService;
|
|
18754
|
+
_this.consts = consts;
|
|
18755
|
+
_this.cartService = cartService;
|
|
18756
|
+
_this.activedRoute = activedRoute;
|
|
18757
|
+
_this.method = null;
|
|
18758
|
+
_this.total_amount = 0;
|
|
18759
|
+
_this.ready = new core.EventEmitter();
|
|
18760
|
+
_this.loading = false;
|
|
18761
|
+
_this.closeModal = '';
|
|
18762
|
+
_this.dataRedirect = function () {
|
|
18763
|
+
return _this.consts.getUrlBase() + 'shop-api/' + _this.consts.getChannel() + '/place-to-pay/' + _this.cartService.cart_token + '/process-payment';
|
|
18764
|
+
};
|
|
18765
|
+
_this.iniciar = function () {
|
|
18766
|
+
_this.closeModal = '';
|
|
18767
|
+
_this.clearStorageState();
|
|
18768
|
+
_this.ventana = window.open(_this.url);
|
|
18769
|
+
_this.callState();
|
|
18770
|
+
};
|
|
18771
|
+
_this.clearStorageState = function () {
|
|
18772
|
+
sessionStorage.removeItem('state');
|
|
18773
|
+
localStorage.removeItem('state');
|
|
18774
|
+
};
|
|
18775
|
+
_this.clickClose = function () {
|
|
18776
|
+
var _a;
|
|
18777
|
+
_this.closeModal = 'cancel';
|
|
18778
|
+
(_a = _this.ventana) === null || _a === void 0 ? void 0 : _a.close();
|
|
18779
|
+
};
|
|
18780
|
+
_this.callState = function () {
|
|
18781
|
+
var _a, _b, _c, _d;
|
|
18782
|
+
var state = _this.closeModal !== '' ? _this.closeModal : localStorage.getItem('state');
|
|
18783
|
+
!state && ((_a = _this.ventana) === null || _a === void 0 ? void 0 : _a.closed) && (state = 'cancel');
|
|
18784
|
+
_this.loading = true;
|
|
18785
|
+
if (state) {
|
|
18786
|
+
_this.loading = false;
|
|
18787
|
+
localStorage.removeItem('state');
|
|
18788
|
+
if (state === 'success' || state === 'pending') {
|
|
18789
|
+
(_b = _this.ventana) === null || _b === void 0 ? void 0 : _b.close();
|
|
18790
|
+
_this.ready.emit(true);
|
|
18791
|
+
return;
|
|
18792
|
+
}
|
|
18793
|
+
if (state === 'failure' || state === 'cancel') {
|
|
18794
|
+
(_c = _this.ventana) === null || _c === void 0 ? void 0 : _c.close();
|
|
18795
|
+
_this.processError(state === 'cancel' ? 'Se canceló el pago con Place to Pay' : '');
|
|
18796
|
+
return;
|
|
18797
|
+
}
|
|
18798
|
+
(_d = _this.ventana) === null || _d === void 0 ? void 0 : _d.close();
|
|
18799
|
+
_this.processError('');
|
|
18800
|
+
return;
|
|
18801
|
+
}
|
|
18802
|
+
setTimeout(function () {
|
|
18803
|
+
_this.callState();
|
|
18804
|
+
}, 5000);
|
|
18805
|
+
};
|
|
18806
|
+
_this.processError = function (err) {
|
|
18807
|
+
_this.toastrService.show(err !== '' ? err : 'payment-error');
|
|
18808
|
+
};
|
|
18809
|
+
_this.getPreference = function () {
|
|
18810
|
+
_this.paymentServiceInst.getCheckoutPlaceToPay(_this.allData).then(function (res) {
|
|
18811
|
+
var _a, _b;
|
|
18812
|
+
if (((_a = res.status) === null || _a === void 0 ? void 0 : _a.status) === 'OK') {
|
|
18813
|
+
_this.url = res.processUrl;
|
|
18814
|
+
}
|
|
18815
|
+
else {
|
|
18816
|
+
_this.processError(((_b = res.status) === null || _b === void 0 ? void 0 : _b.message) || 'Ocurrió un error. Inténtelo más tarde.');
|
|
18817
|
+
}
|
|
18818
|
+
}, function (err) { return _this.processError('Ocurrió un error al procesar el pago. Inténtelo más tarde.'); });
|
|
18819
|
+
};
|
|
18820
|
+
_this.ecOnConstruct();
|
|
18821
|
+
return _this;
|
|
18822
|
+
}
|
|
18823
|
+
PlaceToPayEcComponent.prototype.ngOnInit = function () {
|
|
18824
|
+
this.getPreference();
|
|
18825
|
+
this.ecOnInit();
|
|
18826
|
+
};
|
|
18827
|
+
PlaceToPayEcComponent.prototype.ngOnDestroy = function () {
|
|
18828
|
+
// Código necesario al destruir el componente
|
|
18829
|
+
};
|
|
18830
|
+
PlaceToPayEcComponent.ctorParameters = function () { return [
|
|
18831
|
+
{ type: core.Renderer2 },
|
|
18832
|
+
{ type: ConnectionService },
|
|
18833
|
+
{ type: ToastService },
|
|
18834
|
+
{ type: Constants },
|
|
18835
|
+
{ type: CartService },
|
|
18836
|
+
{ type: router.ActivatedRoute }
|
|
18837
|
+
]; };
|
|
18838
|
+
__decorate$20([
|
|
18839
|
+
core.Input()
|
|
18840
|
+
], PlaceToPayEcComponent.prototype, "method", void 0);
|
|
18841
|
+
__decorate$20([
|
|
18842
|
+
core.Input()
|
|
18843
|
+
], PlaceToPayEcComponent.prototype, "total_amount", void 0);
|
|
18844
|
+
__decorate$20([
|
|
18845
|
+
core.Input()
|
|
18846
|
+
], PlaceToPayEcComponent.prototype, "paymentServiceInst", void 0);
|
|
18847
|
+
__decorate$20([
|
|
18848
|
+
core.Input()
|
|
18849
|
+
], PlaceToPayEcComponent.prototype, "allData", void 0);
|
|
18850
|
+
__decorate$20([
|
|
18851
|
+
core.Output()
|
|
18852
|
+
], PlaceToPayEcComponent.prototype, "ready", void 0);
|
|
18853
|
+
PlaceToPayEcComponent = __decorate$20([
|
|
18854
|
+
core.Component({
|
|
18855
|
+
selector: 'app-place-to-pay-ec',
|
|
18856
|
+
template: "<div class=\"text-center\">\n <ng-container *ngIf=\"url; else loadingUrl\">\n <ng-container *ngIf=\"!loading; else loadingTemp\">\n <button (click)=\"iniciar()\" class=\"btn btn-outline-secondary rounded-0 comprar mt-3\">Pagar</button>\n </ng-container>\n </ng-container>\n</div>\n\n<ng-template #loadingUrl>\n <div class=\"d-flex flex-column justify-content-center align-items-center mt-2\">\n <app-loading-full-ec></app-loading-full-ec>\n </div>\n</ng-template>\n\n<ng-template #loadingTemp>\n <div class=\"d-flex flex-column justify-content-center align-items-center mt-2\">\n <h3>Procesando el pago por Place to Pay</h3>\n <h5>Recuerde hacer click en \"Volver al sitio\" desde Place to Pay para finalizar la compra.</h5>\n <app-loading-full-ec></app-loading-full-ec>\n </div>\n <div class=\"container-fluid\">\n <div class=\"row\">\n <div class=\"col-5\">\n <hr>\n </div>\n <div class=\"col-2 text-center\">\n <label>o</label>\n </div>\n <div class=\"col-5\">\n <hr>\n </div>\n </div>\n </div>\n <div class=\"d-flex flex-column justify-content-center align-items-center mt-2\">\n <button (click)=\"clickClose()\" class=\"btn btn-outline-secondary rounded-0 comprar\">Cancelar pago</button>\n </div>\n</ng-template>",
|
|
18857
|
+
styles: [""]
|
|
18858
|
+
})
|
|
18859
|
+
], PlaceToPayEcComponent);
|
|
18860
|
+
return PlaceToPayEcComponent;
|
|
18861
|
+
}(ComponentHelper));
|
|
18862
|
+
|
|
18710
18863
|
// //Component base
|
|
18711
18864
|
var components = [
|
|
18712
18865
|
BlockBannerBoxesEcComponent,
|
|
@@ -18761,6 +18914,7 @@
|
|
|
18761
18914
|
ConfirmAccountEcComponent,
|
|
18762
18915
|
PasswordResetEcComponent,
|
|
18763
18916
|
CecaRedirectEcComponent,
|
|
18917
|
+
PlaceToPayEcComponent,
|
|
18764
18918
|
RegisterWholesalerFormEcComponent,
|
|
18765
18919
|
ShareBlockEcComponent,
|
|
18766
18920
|
DetailCheckoutBlockEcComponent,
|
|
@@ -18790,7 +18944,7 @@
|
|
|
18790
18944
|
SidebarEcComponent
|
|
18791
18945
|
];
|
|
18792
18946
|
|
|
18793
|
-
var __decorate$
|
|
18947
|
+
var __decorate$21 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18794
18948
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
18795
18949
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
18796
18950
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -18870,16 +19024,16 @@
|
|
|
18870
19024
|
{ type: BlocksService },
|
|
18871
19025
|
{ type: router.Router }
|
|
18872
19026
|
]; };
|
|
18873
|
-
__decorate$
|
|
19027
|
+
__decorate$21([
|
|
18874
19028
|
core.Input()
|
|
18875
19029
|
], AddActionRedirectDirective.prototype, "ecAddActionRedirect", null);
|
|
18876
|
-
__decorate$
|
|
19030
|
+
__decorate$21([
|
|
18877
19031
|
core.Input()
|
|
18878
19032
|
], AddActionRedirectDirective.prototype, "classStrSpacing", null);
|
|
18879
|
-
__decorate$
|
|
19033
|
+
__decorate$21([
|
|
18880
19034
|
core.Input()
|
|
18881
19035
|
], AddActionRedirectDirective.prototype, "isTransparent", null);
|
|
18882
|
-
AddActionRedirectDirective = __decorate$
|
|
19036
|
+
AddActionRedirectDirective = __decorate$21([
|
|
18883
19037
|
core.Directive({
|
|
18884
19038
|
selector: "[ecAddActionRedirect]",
|
|
18885
19039
|
}),
|
|
@@ -18888,7 +19042,7 @@
|
|
|
18888
19042
|
return AddActionRedirectDirective;
|
|
18889
19043
|
}());
|
|
18890
19044
|
|
|
18891
|
-
var __decorate$
|
|
19045
|
+
var __decorate$22 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18892
19046
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
18893
19047
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
18894
19048
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -18953,13 +19107,13 @@
|
|
|
18953
19107
|
{ type: core.TemplateRef },
|
|
18954
19108
|
{ type: core.ViewContainerRef }
|
|
18955
19109
|
]; };
|
|
18956
|
-
__decorate$
|
|
19110
|
+
__decorate$22([
|
|
18957
19111
|
core.Input()
|
|
18958
19112
|
], ProductStockDirective.prototype, "ecProductStockElse", void 0);
|
|
18959
|
-
__decorate$
|
|
19113
|
+
__decorate$22([
|
|
18960
19114
|
core.Input()
|
|
18961
19115
|
], ProductStockDirective.prototype, "ecProductStock", null);
|
|
18962
|
-
ProductStockDirective = __decorate$
|
|
19116
|
+
ProductStockDirective = __decorate$22([
|
|
18963
19117
|
core.Directive({
|
|
18964
19118
|
selector: "[ecProductStock]"
|
|
18965
19119
|
})
|
|
@@ -18967,7 +19121,7 @@
|
|
|
18967
19121
|
return ProductStockDirective;
|
|
18968
19122
|
}());
|
|
18969
19123
|
|
|
18970
|
-
var __decorate$
|
|
19124
|
+
var __decorate$23 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18971
19125
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
18972
19126
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
18973
19127
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -19108,16 +19262,16 @@
|
|
|
19108
19262
|
{ type: core.ElementRef },
|
|
19109
19263
|
{ type: core.Renderer2 }
|
|
19110
19264
|
]; };
|
|
19111
|
-
__decorate$
|
|
19265
|
+
__decorate$23([
|
|
19112
19266
|
core.Input()
|
|
19113
19267
|
], ProductOffDirective.prototype, "ecProductOff", null);
|
|
19114
|
-
__decorate$
|
|
19268
|
+
__decorate$23([
|
|
19115
19269
|
core.Input()
|
|
19116
19270
|
], ProductOffDirective.prototype, "classStrSpacing", null);
|
|
19117
|
-
__decorate$
|
|
19271
|
+
__decorate$23([
|
|
19118
19272
|
core.Input()
|
|
19119
19273
|
], ProductOffDirective.prototype, "customMessage", null);
|
|
19120
|
-
ProductOffDirective = __decorate$
|
|
19274
|
+
ProductOffDirective = __decorate$23([
|
|
19121
19275
|
core.Directive({
|
|
19122
19276
|
selector: "[ecProductOff]",
|
|
19123
19277
|
}),
|
|
@@ -19126,7 +19280,7 @@
|
|
|
19126
19280
|
return ProductOffDirective;
|
|
19127
19281
|
}());
|
|
19128
19282
|
|
|
19129
|
-
var __decorate$
|
|
19283
|
+
var __decorate$24 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19130
19284
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19131
19285
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19132
19286
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -19184,10 +19338,10 @@
|
|
|
19184
19338
|
{ type: core.Renderer2 },
|
|
19185
19339
|
{ type: Constants }
|
|
19186
19340
|
]; };
|
|
19187
|
-
__decorate$
|
|
19341
|
+
__decorate$24([
|
|
19188
19342
|
core.Input()
|
|
19189
19343
|
], ProductMiniStandardDirective.prototype, "ecProductMiniStandard", null);
|
|
19190
|
-
ProductMiniStandardDirective = __decorate$
|
|
19344
|
+
ProductMiniStandardDirective = __decorate$24([
|
|
19191
19345
|
core.Directive({
|
|
19192
19346
|
selector: '[ecProductMiniStandard]'
|
|
19193
19347
|
})
|
|
@@ -19195,7 +19349,7 @@
|
|
|
19195
19349
|
return ProductMiniStandardDirective;
|
|
19196
19350
|
}());
|
|
19197
19351
|
|
|
19198
|
-
var __decorate$
|
|
19352
|
+
var __decorate$25 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19199
19353
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19200
19354
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19201
19355
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -19238,13 +19392,13 @@
|
|
|
19238
19392
|
{ type: core.ViewContainerRef },
|
|
19239
19393
|
{ type: AuthService }
|
|
19240
19394
|
]; };
|
|
19241
|
-
__decorate$
|
|
19395
|
+
__decorate$25([
|
|
19242
19396
|
core.Input()
|
|
19243
19397
|
], AuthWholesalerDirective.prototype, "ecAuthWholesalerElse", void 0);
|
|
19244
|
-
__decorate$
|
|
19398
|
+
__decorate$25([
|
|
19245
19399
|
core.Input()
|
|
19246
19400
|
], AuthWholesalerDirective.prototype, "ecAuthWholesaler", null);
|
|
19247
|
-
AuthWholesalerDirective = __decorate$
|
|
19401
|
+
AuthWholesalerDirective = __decorate$25([
|
|
19248
19402
|
core.Directive({
|
|
19249
19403
|
selector: "[ecAuthWholesaler]"
|
|
19250
19404
|
})
|
|
@@ -19252,7 +19406,7 @@
|
|
|
19252
19406
|
return AuthWholesalerDirective;
|
|
19253
19407
|
}());
|
|
19254
19408
|
|
|
19255
|
-
var __decorate$
|
|
19409
|
+
var __decorate$26 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19256
19410
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19257
19411
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19258
19412
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -19274,10 +19428,10 @@
|
|
|
19274
19428
|
{ type: core.TemplateRef },
|
|
19275
19429
|
{ type: core.ViewContainerRef }
|
|
19276
19430
|
]; };
|
|
19277
|
-
__decorate$
|
|
19431
|
+
__decorate$26([
|
|
19278
19432
|
core.Input()
|
|
19279
19433
|
], ReloadViewDirective.prototype, "ecReloadView", void 0);
|
|
19280
|
-
ReloadViewDirective = __decorate$
|
|
19434
|
+
ReloadViewDirective = __decorate$26([
|
|
19281
19435
|
core.Directive({
|
|
19282
19436
|
selector: '[ecReloadView]'
|
|
19283
19437
|
})
|
|
@@ -19300,7 +19454,7 @@
|
|
|
19300
19454
|
ReloadViewDirective,
|
|
19301
19455
|
];
|
|
19302
19456
|
|
|
19303
|
-
var __decorate$
|
|
19457
|
+
var __decorate$27 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19304
19458
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19305
19459
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19306
19460
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -19360,7 +19514,7 @@
|
|
|
19360
19514
|
{ type: CurrencyService },
|
|
19361
19515
|
{ type: core.Injector }
|
|
19362
19516
|
]; };
|
|
19363
|
-
ecCurrencySymbolPipe = __decorate$
|
|
19517
|
+
ecCurrencySymbolPipe = __decorate$27([
|
|
19364
19518
|
core.Pipe({
|
|
19365
19519
|
name: 'ecCurrencySymbol',
|
|
19366
19520
|
})
|
|
@@ -19368,7 +19522,7 @@
|
|
|
19368
19522
|
return ecCurrencySymbolPipe;
|
|
19369
19523
|
}());
|
|
19370
19524
|
|
|
19371
|
-
var __decorate$
|
|
19525
|
+
var __decorate$28 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19372
19526
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19373
19527
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19374
19528
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -19384,7 +19538,7 @@
|
|
|
19384
19538
|
EcSanitizerHtmlPipe.ctorParameters = function () { return [
|
|
19385
19539
|
{ type: platformBrowser.DomSanitizer }
|
|
19386
19540
|
]; };
|
|
19387
|
-
EcSanitizerHtmlPipe = __decorate$
|
|
19541
|
+
EcSanitizerHtmlPipe = __decorate$28([
|
|
19388
19542
|
core.Pipe({
|
|
19389
19543
|
name: 'ecSanitizerHtml'
|
|
19390
19544
|
})
|
|
@@ -19392,7 +19546,7 @@
|
|
|
19392
19546
|
return EcSanitizerHtmlPipe;
|
|
19393
19547
|
}());
|
|
19394
19548
|
|
|
19395
|
-
var __decorate$
|
|
19549
|
+
var __decorate$29 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19396
19550
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19397
19551
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19398
19552
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -19408,7 +19562,7 @@
|
|
|
19408
19562
|
EcSanitizerUrlPipe.ctorParameters = function () { return [
|
|
19409
19563
|
{ type: platformBrowser.DomSanitizer }
|
|
19410
19564
|
]; };
|
|
19411
|
-
EcSanitizerUrlPipe = __decorate$
|
|
19565
|
+
EcSanitizerUrlPipe = __decorate$29([
|
|
19412
19566
|
core.Pipe({
|
|
19413
19567
|
name: 'ecSanitizerUrl'
|
|
19414
19568
|
})
|
|
@@ -19423,7 +19577,7 @@
|
|
|
19423
19577
|
EcSanitizerUrlPipe
|
|
19424
19578
|
];
|
|
19425
19579
|
|
|
19426
|
-
var __decorate$
|
|
19580
|
+
var __decorate$2a = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19427
19581
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19428
19582
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19429
19583
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -19510,7 +19664,7 @@
|
|
|
19510
19664
|
};
|
|
19511
19665
|
};
|
|
19512
19666
|
var NgEasycommerceModule_1;
|
|
19513
|
-
NgEasycommerceModule = NgEasycommerceModule_1 = __decorate$
|
|
19667
|
+
NgEasycommerceModule = NgEasycommerceModule_1 = __decorate$2a([
|
|
19514
19668
|
core.NgModule({
|
|
19515
19669
|
exports: [
|
|
19516
19670
|
OrderByPipe,
|
|
@@ -19540,6 +19694,7 @@
|
|
|
19540
19694
|
pipes,
|
|
19541
19695
|
EcSanitizerHtmlPipe,
|
|
19542
19696
|
EcSanitizerUrlPipe,
|
|
19697
|
+
PlaceToPayEcComponent,
|
|
19543
19698
|
],
|
|
19544
19699
|
providers: []
|
|
19545
19700
|
})
|
|
@@ -19547,7 +19702,7 @@
|
|
|
19547
19702
|
return NgEasycommerceModule;
|
|
19548
19703
|
}());
|
|
19549
19704
|
|
|
19550
|
-
var __decorate$
|
|
19705
|
+
var __decorate$2b = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19551
19706
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19552
19707
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19553
19708
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -19595,7 +19750,7 @@
|
|
|
19595
19750
|
{ type: ConnectionService }
|
|
19596
19751
|
]; };
|
|
19597
19752
|
GiftCardService$1.ɵprov = core.ɵɵdefineInjectable({ factory: function GiftCardService_Factory() { return new GiftCardService(core.ɵɵinject(Constants), core.ɵɵinject(CartService), core.ɵɵinject(ConnectionService)); }, token: GiftCardService, providedIn: "root" });
|
|
19598
|
-
GiftCardService$1 = __decorate$
|
|
19753
|
+
GiftCardService$1 = __decorate$2b([
|
|
19599
19754
|
core.Injectable({
|
|
19600
19755
|
providedIn: 'root'
|
|
19601
19756
|
})
|
|
@@ -19603,7 +19758,7 @@
|
|
|
19603
19758
|
return GiftCardService$1;
|
|
19604
19759
|
}());
|
|
19605
19760
|
|
|
19606
|
-
var __decorate$
|
|
19761
|
+
var __decorate$2c = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19607
19762
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19608
19763
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19609
19764
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -19659,7 +19814,7 @@
|
|
|
19659
19814
|
{ type: ngxToastr.ToastrService }
|
|
19660
19815
|
]; };
|
|
19661
19816
|
WishlistService$1.ɵprov = core.ɵɵdefineInjectable({ factory: function WishlistService_Factory() { return new WishlistService(core.ɵɵinject(ngxToastr.ToastrService)); }, token: WishlistService, providedIn: "root" });
|
|
19662
|
-
WishlistService$1 = __decorate$
|
|
19817
|
+
WishlistService$1 = __decorate$2c([
|
|
19663
19818
|
core.Injectable({
|
|
19664
19819
|
providedIn: 'root'
|
|
19665
19820
|
})
|
|
@@ -19667,7 +19822,7 @@
|
|
|
19667
19822
|
return WishlistService$1;
|
|
19668
19823
|
}());
|
|
19669
19824
|
|
|
19670
|
-
var __decorate$
|
|
19825
|
+
var __decorate$2d = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19671
19826
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19672
19827
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19673
19828
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -19702,7 +19857,7 @@
|
|
|
19702
19857
|
StandardReuseStrategy.ctorParameters = function () { return [
|
|
19703
19858
|
{ type: undefined, decorators: [{ type: core.Inject, args: ['env',] }] }
|
|
19704
19859
|
]; };
|
|
19705
|
-
StandardReuseStrategy = __decorate$
|
|
19860
|
+
StandardReuseStrategy = __decorate$2d([
|
|
19706
19861
|
core.Injectable(),
|
|
19707
19862
|
__param$d(0, core.Inject('env'))
|
|
19708
19863
|
], StandardReuseStrategy);
|
|
@@ -19842,9 +19997,10 @@
|
|
|
19842
19997
|
exports.windowProvider = windowProvider;
|
|
19843
19998
|
exports.ɵa = OrderByPipe;
|
|
19844
19999
|
exports.ɵb = components;
|
|
19845
|
-
exports.ɵba =
|
|
19846
|
-
exports.ɵbb =
|
|
19847
|
-
exports.ɵbc =
|
|
20000
|
+
exports.ɵba = pipes;
|
|
20001
|
+
exports.ɵbb = OptionsOfProductListDataReceiverService;
|
|
20002
|
+
exports.ɵbc = PaymentUtils;
|
|
20003
|
+
exports.ɵbd = CustomerInterceptor;
|
|
19848
20004
|
exports.ɵc = SellerDashboardContainerEcComponent;
|
|
19849
20005
|
exports.ɵd = MagnizoomComponent;
|
|
19850
20006
|
exports.ɵe = RecaptchaEcComponent;
|
|
@@ -19852,23 +20008,23 @@
|
|
|
19852
20008
|
exports.ɵg = StepEcComponent;
|
|
19853
20009
|
exports.ɵh = CulqiEcComponent;
|
|
19854
20010
|
exports.ɵi = BancardCatastroEcComponent;
|
|
19855
|
-
exports.ɵj =
|
|
19856
|
-
exports.ɵk =
|
|
19857
|
-
exports.ɵl =
|
|
19858
|
-
exports.ɵm =
|
|
19859
|
-
exports.ɵn =
|
|
19860
|
-
exports.ɵo =
|
|
19861
|
-
exports.ɵp =
|
|
19862
|
-
exports.ɵq =
|
|
19863
|
-
exports.ɵr =
|
|
19864
|
-
exports.ɵs =
|
|
19865
|
-
exports.ɵt =
|
|
19866
|
-
exports.ɵu =
|
|
19867
|
-
exports.ɵv =
|
|
19868
|
-
exports.ɵw =
|
|
19869
|
-
exports.ɵx =
|
|
19870
|
-
exports.ɵy =
|
|
19871
|
-
exports.ɵz =
|
|
20011
|
+
exports.ɵj = PlaceToPayEcComponent;
|
|
20012
|
+
exports.ɵk = ComponentHelper;
|
|
20013
|
+
exports.ɵl = BlocksRepositoryService;
|
|
20014
|
+
exports.ɵm = FacebookPixelService;
|
|
20015
|
+
exports.ɵn = GoogleAnalyticsService;
|
|
20016
|
+
exports.ɵo = GTMService;
|
|
20017
|
+
exports.ɵp = MetricoolPixelService;
|
|
20018
|
+
exports.ɵq = DopplerService;
|
|
20019
|
+
exports.ɵr = OrderUtilityService;
|
|
20020
|
+
exports.ɵs = StepService;
|
|
20021
|
+
exports.ɵt = ErrorHandlerService;
|
|
20022
|
+
exports.ɵu = IpService;
|
|
20023
|
+
exports.ɵv = ShipmentDataTransformer;
|
|
20024
|
+
exports.ɵw = CookiesService;
|
|
20025
|
+
exports.ɵx = directives;
|
|
20026
|
+
exports.ɵy = ProductOffDirective;
|
|
20027
|
+
exports.ɵz = ReloadViewDirective;
|
|
19872
20028
|
|
|
19873
20029
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
19874
20030
|
|