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
package/fesm5/ng-easycommerce.js
CHANGED
|
@@ -4295,7 +4295,13 @@ var AuthService = /** @class */ (function () {
|
|
|
4295
4295
|
return of(err.toString());
|
|
4296
4296
|
})).toPromise();
|
|
4297
4297
|
};
|
|
4298
|
-
this.signUp = function (data) {
|
|
4298
|
+
this.signUp = function (data) {
|
|
4299
|
+
// Convertir el email a minúsculas si existe
|
|
4300
|
+
if (data.email) {
|
|
4301
|
+
data = __assign$9(__assign$9({}, data), { email: data.email.toLowerCase() });
|
|
4302
|
+
}
|
|
4303
|
+
return _this.connection.post(_this.registerApi(), data);
|
|
4304
|
+
};
|
|
4299
4305
|
this.confirmAccount = function (token) {
|
|
4300
4306
|
return _this.connection.get(_this.confirmAccountApi(token));
|
|
4301
4307
|
};
|
|
@@ -4313,7 +4319,13 @@ var AuthService = /** @class */ (function () {
|
|
|
4313
4319
|
};
|
|
4314
4320
|
this.getExpiratesAt = function () { return localStorage.getItem(_this.EXPIRATES_IN); };
|
|
4315
4321
|
this.hasToRefresh = function () { return _this.getRefreshToken(); };
|
|
4316
|
-
this.signUpWholesaler = function (data) {
|
|
4322
|
+
this.signUpWholesaler = function (data) {
|
|
4323
|
+
// Convertir el email a minúsculas si existe
|
|
4324
|
+
if (data.email) {
|
|
4325
|
+
data = __assign$9(__assign$9({}, data), { email: data.email.toLowerCase() });
|
|
4326
|
+
}
|
|
4327
|
+
return _this.connection.post(_this.registerWholesalerApi(), data);
|
|
4328
|
+
};
|
|
4317
4329
|
this.getCountriesData = function () { return __awaiter$4(_this, void 0, void 0, function () { return __generator$4(this, function (_a) {
|
|
4318
4330
|
return [2 /*return*/, this.connection.get(this.countriesApi()).pipe(map(function (res) { return res._embedded.items; })).toPromise()];
|
|
4319
4331
|
}); }); };
|
|
@@ -4416,7 +4428,8 @@ var AuthService = /** @class */ (function () {
|
|
|
4416
4428
|
this.injector.get(ChannelConfigService).channelConfig$.subscribe(function (ch) { return _this.channel = ch; });
|
|
4417
4429
|
this.injector.get(ChannelConfigService).channels.subscribe(function (ch) { return _this.channels = ch; });
|
|
4418
4430
|
this.loggingInSubject.next(true);
|
|
4419
|
-
|
|
4431
|
+
// Convertir el username a minúsculas
|
|
4432
|
+
user = __assign$9(__assign$9(__assign$9({}, user), { username: user.username.toLowerCase() }), this.constants.loginExtraData());
|
|
4420
4433
|
var result = this.connection.post(this.tokenApi(), user).pipe(map(function (res) {
|
|
4421
4434
|
if (_this.channelAccessPermission(__assign$9(__assign$9({}, user), res)) && _this.isAllowedRole(withRoles, res.type)) {
|
|
4422
4435
|
_this.doLoginUser(__assign$9(__assign$9({}, user), res));
|
|
@@ -8514,6 +8527,7 @@ var PaymentService = /** @class */ (function (_super) {
|
|
|
8514
8527
|
_this.getCheckoutMobbexApi = function () { return 'shop-api/' + _this.consts.getChannel() + '/mobbex/' + _this.cartService.getCartToken() + '/process-payment'; };
|
|
8515
8528
|
_this.getCheckoutBancardApi = function () { return 'shop-api/' + _this.consts.getChannel() + '/bancard/' + _this.cartService.getCartToken() + '/process-payment'; }; //?testOrderNumber=' + this.getRandomArbitrary()
|
|
8516
8529
|
_this.getCheckoutBambooApi = function () { return 'shop-api/' + _this.consts.getChannel() + '/bamboo/' + _this.cartService.getCartToken() + '/process-payment'; };
|
|
8530
|
+
_this.getCheckoutPlaceToPayApi = function () { return 'shop-api/' + _this.consts.getChannel() + '/place-to-pay/' + _this.cartService.getCartToken() + '/process-payment'; };
|
|
8517
8531
|
_this.putPaymentApi = function (method) { return _this.baseApi() + '/payment/' + method; };
|
|
8518
8532
|
_this.getPaymentMethods = function () { return __awaiter$a(_this, void 0, void 0, function () {
|
|
8519
8533
|
var _this = this;
|
|
@@ -8537,6 +8551,9 @@ var PaymentService = /** @class */ (function (_super) {
|
|
|
8537
8551
|
_this.getCheckoutMobbex = function (shipment_data) { return _this.connection.post(_this.getCheckoutMobbexApi(), shipment_data).toPromise(); };
|
|
8538
8552
|
_this.getCheckoutBancard = function (shipment_data) { return _this.connection.get(_this.getCheckoutBancardApi(), shipment_data).toPromise(); };
|
|
8539
8553
|
_this.getCheckoutBamboo = function (shipment_data) { return _this.connection.get(_this.getCheckoutBambooApi(), shipment_data).toPromise(); };
|
|
8554
|
+
_this.getCheckoutPlaceToPay = function (shipment_data) {
|
|
8555
|
+
return _this.connection.post(_this.getCheckoutPlaceToPayApi(), shipment_data).toPromise();
|
|
8556
|
+
};
|
|
8540
8557
|
_this.getRandomArbitrary = function () { return Math.round(Math.random() * (Number(9999999) - Number(2000003)) + Number(2000003)); };
|
|
8541
8558
|
_this.getPaymentMethods();
|
|
8542
8559
|
return _this;
|
|
@@ -8707,6 +8724,7 @@ var PaymentEcComponent = /** @class */ (function (_super) {
|
|
|
8707
8724
|
_this.isBankTransfer = function (code) { return code && code.toLocaleLowerCase().includes('bank_transfer'); };
|
|
8708
8725
|
_this.isCatastro = function (code) { return code && code.toLocaleLowerCase().includes('catastro'); };
|
|
8709
8726
|
_this.isBamboo = function (code) { return code && code.toLocaleLowerCase().includes('bamboo'); };
|
|
8727
|
+
_this.isPlaceToPay = function (code) { return code && code.toLocaleLowerCase().includes('place_to_pay'); };
|
|
8710
8728
|
_this.getPKCulqi = function (method) {
|
|
8711
8729
|
return window.location.href.includes('easycommercetech')
|
|
8712
8730
|
? method.config.public_testing_key
|
|
@@ -8757,7 +8775,7 @@ var PaymentEcComponent = /** @class */ (function (_super) {
|
|
|
8757
8775
|
PaymentEcComponent = __decorate$S([
|
|
8758
8776
|
Component({
|
|
8759
8777
|
selector: 'app-payment-ec',
|
|
8760
|
-
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",
|
|
8778
|
+
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>",
|
|
8761
8779
|
providers: [PaymentService],
|
|
8762
8780
|
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}"]
|
|
8763
8781
|
})
|
|
@@ -18721,6 +18739,141 @@ var SidebarEcComponent = /** @class */ (function () {
|
|
|
18721
18739
|
return SidebarEcComponent;
|
|
18722
18740
|
}());
|
|
18723
18741
|
|
|
18742
|
+
var __extends$1f = (this && this.__extends) || (function () {
|
|
18743
|
+
var extendStatics = function (d, b) {
|
|
18744
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18745
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
18746
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
18747
|
+
return extendStatics(d, b);
|
|
18748
|
+
};
|
|
18749
|
+
return function (d, b) {
|
|
18750
|
+
extendStatics(d, b);
|
|
18751
|
+
function __() { this.constructor = d; }
|
|
18752
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18753
|
+
};
|
|
18754
|
+
})();
|
|
18755
|
+
var __decorate$20 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18756
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
18757
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
18758
|
+
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;
|
|
18759
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18760
|
+
};
|
|
18761
|
+
var PlaceToPayEcComponent = /** @class */ (function (_super) {
|
|
18762
|
+
__extends$1f(PlaceToPayEcComponent, _super);
|
|
18763
|
+
function PlaceToPayEcComponent(renderer, connection, toastrService, consts, cartService, activedRoute) {
|
|
18764
|
+
var _this = _super.call(this) || this;
|
|
18765
|
+
_this.renderer = renderer;
|
|
18766
|
+
_this.connection = connection;
|
|
18767
|
+
_this.toastrService = toastrService;
|
|
18768
|
+
_this.consts = consts;
|
|
18769
|
+
_this.cartService = cartService;
|
|
18770
|
+
_this.activedRoute = activedRoute;
|
|
18771
|
+
_this.method = null;
|
|
18772
|
+
_this.total_amount = 0;
|
|
18773
|
+
_this.ready = new EventEmitter();
|
|
18774
|
+
_this.loading = false;
|
|
18775
|
+
_this.closeModal = '';
|
|
18776
|
+
_this.dataRedirect = function () {
|
|
18777
|
+
return _this.consts.getUrlBase() + 'shop-api/' + _this.consts.getChannel() + '/place-to-pay/' + _this.cartService.cart_token + '/process-payment';
|
|
18778
|
+
};
|
|
18779
|
+
_this.iniciar = function () {
|
|
18780
|
+
_this.closeModal = '';
|
|
18781
|
+
_this.clearStorageState();
|
|
18782
|
+
_this.ventana = window.open(_this.url);
|
|
18783
|
+
_this.callState();
|
|
18784
|
+
};
|
|
18785
|
+
_this.clearStorageState = function () {
|
|
18786
|
+
sessionStorage.removeItem('state');
|
|
18787
|
+
localStorage.removeItem('state');
|
|
18788
|
+
};
|
|
18789
|
+
_this.clickClose = function () {
|
|
18790
|
+
var _a;
|
|
18791
|
+
_this.closeModal = 'cancel';
|
|
18792
|
+
(_a = _this.ventana) === null || _a === void 0 ? void 0 : _a.close();
|
|
18793
|
+
};
|
|
18794
|
+
_this.callState = function () {
|
|
18795
|
+
var _a, _b, _c, _d;
|
|
18796
|
+
var state = _this.closeModal !== '' ? _this.closeModal : localStorage.getItem('state');
|
|
18797
|
+
!state && ((_a = _this.ventana) === null || _a === void 0 ? void 0 : _a.closed) && (state = 'cancel');
|
|
18798
|
+
_this.loading = true;
|
|
18799
|
+
if (state) {
|
|
18800
|
+
_this.loading = false;
|
|
18801
|
+
localStorage.removeItem('state');
|
|
18802
|
+
if (state === 'success' || state === 'pending') {
|
|
18803
|
+
(_b = _this.ventana) === null || _b === void 0 ? void 0 : _b.close();
|
|
18804
|
+
_this.ready.emit(true);
|
|
18805
|
+
return;
|
|
18806
|
+
}
|
|
18807
|
+
if (state === 'failure' || state === 'cancel') {
|
|
18808
|
+
(_c = _this.ventana) === null || _c === void 0 ? void 0 : _c.close();
|
|
18809
|
+
_this.processError(state === 'cancel' ? 'Se canceló el pago con Place to Pay' : '');
|
|
18810
|
+
return;
|
|
18811
|
+
}
|
|
18812
|
+
(_d = _this.ventana) === null || _d === void 0 ? void 0 : _d.close();
|
|
18813
|
+
_this.processError('');
|
|
18814
|
+
return;
|
|
18815
|
+
}
|
|
18816
|
+
setTimeout(function () {
|
|
18817
|
+
_this.callState();
|
|
18818
|
+
}, 5000);
|
|
18819
|
+
};
|
|
18820
|
+
_this.processError = function (err) {
|
|
18821
|
+
_this.toastrService.show(err !== '' ? err : 'payment-error');
|
|
18822
|
+
};
|
|
18823
|
+
_this.getPreference = function () {
|
|
18824
|
+
_this.paymentServiceInst.getCheckoutPlaceToPay(_this.allData).then(function (res) {
|
|
18825
|
+
var _a, _b;
|
|
18826
|
+
if (((_a = res.status) === null || _a === void 0 ? void 0 : _a.status) === 'OK') {
|
|
18827
|
+
_this.url = res.processUrl;
|
|
18828
|
+
}
|
|
18829
|
+
else {
|
|
18830
|
+
_this.processError(((_b = res.status) === null || _b === void 0 ? void 0 : _b.message) || 'Ocurrió un error. Inténtelo más tarde.');
|
|
18831
|
+
}
|
|
18832
|
+
}, function (err) { return _this.processError('Ocurrió un error al procesar el pago. Inténtelo más tarde.'); });
|
|
18833
|
+
};
|
|
18834
|
+
_this.ecOnConstruct();
|
|
18835
|
+
return _this;
|
|
18836
|
+
}
|
|
18837
|
+
PlaceToPayEcComponent.prototype.ngOnInit = function () {
|
|
18838
|
+
this.getPreference();
|
|
18839
|
+
this.ecOnInit();
|
|
18840
|
+
};
|
|
18841
|
+
PlaceToPayEcComponent.prototype.ngOnDestroy = function () {
|
|
18842
|
+
// Código necesario al destruir el componente
|
|
18843
|
+
};
|
|
18844
|
+
PlaceToPayEcComponent.ctorParameters = function () { return [
|
|
18845
|
+
{ type: Renderer2 },
|
|
18846
|
+
{ type: ConnectionService },
|
|
18847
|
+
{ type: ToastService },
|
|
18848
|
+
{ type: Constants },
|
|
18849
|
+
{ type: CartService },
|
|
18850
|
+
{ type: ActivatedRoute }
|
|
18851
|
+
]; };
|
|
18852
|
+
__decorate$20([
|
|
18853
|
+
Input()
|
|
18854
|
+
], PlaceToPayEcComponent.prototype, "method", void 0);
|
|
18855
|
+
__decorate$20([
|
|
18856
|
+
Input()
|
|
18857
|
+
], PlaceToPayEcComponent.prototype, "total_amount", void 0);
|
|
18858
|
+
__decorate$20([
|
|
18859
|
+
Input()
|
|
18860
|
+
], PlaceToPayEcComponent.prototype, "paymentServiceInst", void 0);
|
|
18861
|
+
__decorate$20([
|
|
18862
|
+
Input()
|
|
18863
|
+
], PlaceToPayEcComponent.prototype, "allData", void 0);
|
|
18864
|
+
__decorate$20([
|
|
18865
|
+
Output()
|
|
18866
|
+
], PlaceToPayEcComponent.prototype, "ready", void 0);
|
|
18867
|
+
PlaceToPayEcComponent = __decorate$20([
|
|
18868
|
+
Component({
|
|
18869
|
+
selector: 'app-place-to-pay-ec',
|
|
18870
|
+
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>",
|
|
18871
|
+
styles: [""]
|
|
18872
|
+
})
|
|
18873
|
+
], PlaceToPayEcComponent);
|
|
18874
|
+
return PlaceToPayEcComponent;
|
|
18875
|
+
}(ComponentHelper));
|
|
18876
|
+
|
|
18724
18877
|
// //Component base
|
|
18725
18878
|
var components = [
|
|
18726
18879
|
BlockBannerBoxesEcComponent,
|
|
@@ -18775,6 +18928,7 @@ var components = [
|
|
|
18775
18928
|
ConfirmAccountEcComponent,
|
|
18776
18929
|
PasswordResetEcComponent,
|
|
18777
18930
|
CecaRedirectEcComponent,
|
|
18931
|
+
PlaceToPayEcComponent,
|
|
18778
18932
|
RegisterWholesalerFormEcComponent,
|
|
18779
18933
|
ShareBlockEcComponent,
|
|
18780
18934
|
DetailCheckoutBlockEcComponent,
|
|
@@ -18804,7 +18958,7 @@ var components = [
|
|
|
18804
18958
|
SidebarEcComponent
|
|
18805
18959
|
];
|
|
18806
18960
|
|
|
18807
|
-
var __decorate$
|
|
18961
|
+
var __decorate$21 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18808
18962
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
18809
18963
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
18810
18964
|
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;
|
|
@@ -18884,16 +19038,16 @@ var AddActionRedirectDirective = /** @class */ (function () {
|
|
|
18884
19038
|
{ type: BlocksService },
|
|
18885
19039
|
{ type: Router }
|
|
18886
19040
|
]; };
|
|
18887
|
-
__decorate$
|
|
19041
|
+
__decorate$21([
|
|
18888
19042
|
Input()
|
|
18889
19043
|
], AddActionRedirectDirective.prototype, "ecAddActionRedirect", null);
|
|
18890
|
-
__decorate$
|
|
19044
|
+
__decorate$21([
|
|
18891
19045
|
Input()
|
|
18892
19046
|
], AddActionRedirectDirective.prototype, "classStrSpacing", null);
|
|
18893
|
-
__decorate$
|
|
19047
|
+
__decorate$21([
|
|
18894
19048
|
Input()
|
|
18895
19049
|
], AddActionRedirectDirective.prototype, "isTransparent", null);
|
|
18896
|
-
AddActionRedirectDirective = __decorate$
|
|
19050
|
+
AddActionRedirectDirective = __decorate$21([
|
|
18897
19051
|
Directive({
|
|
18898
19052
|
selector: "[ecAddActionRedirect]",
|
|
18899
19053
|
}),
|
|
@@ -18902,7 +19056,7 @@ var AddActionRedirectDirective = /** @class */ (function () {
|
|
|
18902
19056
|
return AddActionRedirectDirective;
|
|
18903
19057
|
}());
|
|
18904
19058
|
|
|
18905
|
-
var __decorate$
|
|
19059
|
+
var __decorate$22 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18906
19060
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
18907
19061
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
18908
19062
|
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;
|
|
@@ -18967,13 +19121,13 @@ var ProductStockDirective = /** @class */ (function () {
|
|
|
18967
19121
|
{ type: TemplateRef },
|
|
18968
19122
|
{ type: ViewContainerRef }
|
|
18969
19123
|
]; };
|
|
18970
|
-
__decorate$
|
|
19124
|
+
__decorate$22([
|
|
18971
19125
|
Input()
|
|
18972
19126
|
], ProductStockDirective.prototype, "ecProductStockElse", void 0);
|
|
18973
|
-
__decorate$
|
|
19127
|
+
__decorate$22([
|
|
18974
19128
|
Input()
|
|
18975
19129
|
], ProductStockDirective.prototype, "ecProductStock", null);
|
|
18976
|
-
ProductStockDirective = __decorate$
|
|
19130
|
+
ProductStockDirective = __decorate$22([
|
|
18977
19131
|
Directive({
|
|
18978
19132
|
selector: "[ecProductStock]"
|
|
18979
19133
|
})
|
|
@@ -18981,7 +19135,7 @@ var ProductStockDirective = /** @class */ (function () {
|
|
|
18981
19135
|
return ProductStockDirective;
|
|
18982
19136
|
}());
|
|
18983
19137
|
|
|
18984
|
-
var __decorate$
|
|
19138
|
+
var __decorate$23 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18985
19139
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
18986
19140
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
18987
19141
|
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;
|
|
@@ -19122,16 +19276,16 @@ var ProductOffDirective = /** @class */ (function () {
|
|
|
19122
19276
|
{ type: ElementRef },
|
|
19123
19277
|
{ type: Renderer2 }
|
|
19124
19278
|
]; };
|
|
19125
|
-
__decorate$
|
|
19279
|
+
__decorate$23([
|
|
19126
19280
|
Input()
|
|
19127
19281
|
], ProductOffDirective.prototype, "ecProductOff", null);
|
|
19128
|
-
__decorate$
|
|
19282
|
+
__decorate$23([
|
|
19129
19283
|
Input()
|
|
19130
19284
|
], ProductOffDirective.prototype, "classStrSpacing", null);
|
|
19131
|
-
__decorate$
|
|
19285
|
+
__decorate$23([
|
|
19132
19286
|
Input()
|
|
19133
19287
|
], ProductOffDirective.prototype, "customMessage", null);
|
|
19134
|
-
ProductOffDirective = __decorate$
|
|
19288
|
+
ProductOffDirective = __decorate$23([
|
|
19135
19289
|
Directive({
|
|
19136
19290
|
selector: "[ecProductOff]",
|
|
19137
19291
|
}),
|
|
@@ -19140,7 +19294,7 @@ var ProductOffDirective = /** @class */ (function () {
|
|
|
19140
19294
|
return ProductOffDirective;
|
|
19141
19295
|
}());
|
|
19142
19296
|
|
|
19143
|
-
var __decorate$
|
|
19297
|
+
var __decorate$24 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19144
19298
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19145
19299
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19146
19300
|
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;
|
|
@@ -19198,10 +19352,10 @@ var ProductMiniStandardDirective = /** @class */ (function () {
|
|
|
19198
19352
|
{ type: Renderer2 },
|
|
19199
19353
|
{ type: Constants }
|
|
19200
19354
|
]; };
|
|
19201
|
-
__decorate$
|
|
19355
|
+
__decorate$24([
|
|
19202
19356
|
Input()
|
|
19203
19357
|
], ProductMiniStandardDirective.prototype, "ecProductMiniStandard", null);
|
|
19204
|
-
ProductMiniStandardDirective = __decorate$
|
|
19358
|
+
ProductMiniStandardDirective = __decorate$24([
|
|
19205
19359
|
Directive({
|
|
19206
19360
|
selector: '[ecProductMiniStandard]'
|
|
19207
19361
|
})
|
|
@@ -19209,7 +19363,7 @@ var ProductMiniStandardDirective = /** @class */ (function () {
|
|
|
19209
19363
|
return ProductMiniStandardDirective;
|
|
19210
19364
|
}());
|
|
19211
19365
|
|
|
19212
|
-
var __decorate$
|
|
19366
|
+
var __decorate$25 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19213
19367
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19214
19368
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19215
19369
|
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;
|
|
@@ -19252,13 +19406,13 @@ var AuthWholesalerDirective = /** @class */ (function () {
|
|
|
19252
19406
|
{ type: ViewContainerRef },
|
|
19253
19407
|
{ type: AuthService }
|
|
19254
19408
|
]; };
|
|
19255
|
-
__decorate$
|
|
19409
|
+
__decorate$25([
|
|
19256
19410
|
Input()
|
|
19257
19411
|
], AuthWholesalerDirective.prototype, "ecAuthWholesalerElse", void 0);
|
|
19258
|
-
__decorate$
|
|
19412
|
+
__decorate$25([
|
|
19259
19413
|
Input()
|
|
19260
19414
|
], AuthWholesalerDirective.prototype, "ecAuthWholesaler", null);
|
|
19261
|
-
AuthWholesalerDirective = __decorate$
|
|
19415
|
+
AuthWholesalerDirective = __decorate$25([
|
|
19262
19416
|
Directive({
|
|
19263
19417
|
selector: "[ecAuthWholesaler]"
|
|
19264
19418
|
})
|
|
@@ -19266,7 +19420,7 @@ var AuthWholesalerDirective = /** @class */ (function () {
|
|
|
19266
19420
|
return AuthWholesalerDirective;
|
|
19267
19421
|
}());
|
|
19268
19422
|
|
|
19269
|
-
var __decorate$
|
|
19423
|
+
var __decorate$26 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19270
19424
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19271
19425
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19272
19426
|
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;
|
|
@@ -19288,10 +19442,10 @@ var ReloadViewDirective = /** @class */ (function () {
|
|
|
19288
19442
|
{ type: TemplateRef },
|
|
19289
19443
|
{ type: ViewContainerRef }
|
|
19290
19444
|
]; };
|
|
19291
|
-
__decorate$
|
|
19445
|
+
__decorate$26([
|
|
19292
19446
|
Input()
|
|
19293
19447
|
], ReloadViewDirective.prototype, "ecReloadView", void 0);
|
|
19294
|
-
ReloadViewDirective = __decorate$
|
|
19448
|
+
ReloadViewDirective = __decorate$26([
|
|
19295
19449
|
Directive({
|
|
19296
19450
|
selector: '[ecReloadView]'
|
|
19297
19451
|
})
|
|
@@ -19314,7 +19468,7 @@ var directives = [
|
|
|
19314
19468
|
ReloadViewDirective,
|
|
19315
19469
|
];
|
|
19316
19470
|
|
|
19317
|
-
var __decorate$
|
|
19471
|
+
var __decorate$27 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19318
19472
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19319
19473
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19320
19474
|
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;
|
|
@@ -19374,7 +19528,7 @@ var ecCurrencySymbolPipe = /** @class */ (function () {
|
|
|
19374
19528
|
{ type: CurrencyService },
|
|
19375
19529
|
{ type: Injector }
|
|
19376
19530
|
]; };
|
|
19377
|
-
ecCurrencySymbolPipe = __decorate$
|
|
19531
|
+
ecCurrencySymbolPipe = __decorate$27([
|
|
19378
19532
|
Pipe({
|
|
19379
19533
|
name: 'ecCurrencySymbol',
|
|
19380
19534
|
})
|
|
@@ -19382,7 +19536,7 @@ var ecCurrencySymbolPipe = /** @class */ (function () {
|
|
|
19382
19536
|
return ecCurrencySymbolPipe;
|
|
19383
19537
|
}());
|
|
19384
19538
|
|
|
19385
|
-
var __decorate$
|
|
19539
|
+
var __decorate$28 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19386
19540
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19387
19541
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19388
19542
|
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;
|
|
@@ -19398,7 +19552,7 @@ var EcSanitizerHtmlPipe = /** @class */ (function () {
|
|
|
19398
19552
|
EcSanitizerHtmlPipe.ctorParameters = function () { return [
|
|
19399
19553
|
{ type: DomSanitizer }
|
|
19400
19554
|
]; };
|
|
19401
|
-
EcSanitizerHtmlPipe = __decorate$
|
|
19555
|
+
EcSanitizerHtmlPipe = __decorate$28([
|
|
19402
19556
|
Pipe({
|
|
19403
19557
|
name: 'ecSanitizerHtml'
|
|
19404
19558
|
})
|
|
@@ -19406,7 +19560,7 @@ var EcSanitizerHtmlPipe = /** @class */ (function () {
|
|
|
19406
19560
|
return EcSanitizerHtmlPipe;
|
|
19407
19561
|
}());
|
|
19408
19562
|
|
|
19409
|
-
var __decorate$
|
|
19563
|
+
var __decorate$29 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19410
19564
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19411
19565
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19412
19566
|
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;
|
|
@@ -19422,7 +19576,7 @@ var EcSanitizerUrlPipe = /** @class */ (function () {
|
|
|
19422
19576
|
EcSanitizerUrlPipe.ctorParameters = function () { return [
|
|
19423
19577
|
{ type: DomSanitizer }
|
|
19424
19578
|
]; };
|
|
19425
|
-
EcSanitizerUrlPipe = __decorate$
|
|
19579
|
+
EcSanitizerUrlPipe = __decorate$29([
|
|
19426
19580
|
Pipe({
|
|
19427
19581
|
name: 'ecSanitizerUrl'
|
|
19428
19582
|
})
|
|
@@ -19437,7 +19591,7 @@ var pipes = [
|
|
|
19437
19591
|
EcSanitizerUrlPipe
|
|
19438
19592
|
];
|
|
19439
19593
|
|
|
19440
|
-
var __decorate$
|
|
19594
|
+
var __decorate$2a = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19441
19595
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19442
19596
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19443
19597
|
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;
|
|
@@ -19524,7 +19678,7 @@ var NgEasycommerceModule = /** @class */ (function () {
|
|
|
19524
19678
|
};
|
|
19525
19679
|
};
|
|
19526
19680
|
var NgEasycommerceModule_1;
|
|
19527
|
-
NgEasycommerceModule = NgEasycommerceModule_1 = __decorate$
|
|
19681
|
+
NgEasycommerceModule = NgEasycommerceModule_1 = __decorate$2a([
|
|
19528
19682
|
NgModule({
|
|
19529
19683
|
exports: [
|
|
19530
19684
|
OrderByPipe,
|
|
@@ -19554,6 +19708,7 @@ var NgEasycommerceModule = /** @class */ (function () {
|
|
|
19554
19708
|
pipes,
|
|
19555
19709
|
EcSanitizerHtmlPipe,
|
|
19556
19710
|
EcSanitizerUrlPipe,
|
|
19711
|
+
PlaceToPayEcComponent,
|
|
19557
19712
|
],
|
|
19558
19713
|
providers: []
|
|
19559
19714
|
})
|
|
@@ -19561,7 +19716,7 @@ var NgEasycommerceModule = /** @class */ (function () {
|
|
|
19561
19716
|
return NgEasycommerceModule;
|
|
19562
19717
|
}());
|
|
19563
19718
|
|
|
19564
|
-
var __decorate$
|
|
19719
|
+
var __decorate$2b = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19565
19720
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19566
19721
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19567
19722
|
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;
|
|
@@ -19609,7 +19764,7 @@ var GiftCardService = /** @class */ (function () {
|
|
|
19609
19764
|
{ type: ConnectionService }
|
|
19610
19765
|
]; };
|
|
19611
19766
|
GiftCardService$1.ɵprov = ɵɵdefineInjectable({ factory: function GiftCardService_Factory() { return new GiftCardService(ɵɵinject(Constants), ɵɵinject(CartService), ɵɵinject(ConnectionService)); }, token: GiftCardService, providedIn: "root" });
|
|
19612
|
-
GiftCardService$1 = __decorate$
|
|
19767
|
+
GiftCardService$1 = __decorate$2b([
|
|
19613
19768
|
Injectable({
|
|
19614
19769
|
providedIn: 'root'
|
|
19615
19770
|
})
|
|
@@ -19617,7 +19772,7 @@ var GiftCardService = /** @class */ (function () {
|
|
|
19617
19772
|
return GiftCardService$1;
|
|
19618
19773
|
}());
|
|
19619
19774
|
|
|
19620
|
-
var __decorate$
|
|
19775
|
+
var __decorate$2c = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19621
19776
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19622
19777
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19623
19778
|
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;
|
|
@@ -19673,7 +19828,7 @@ var WishlistService = /** @class */ (function () {
|
|
|
19673
19828
|
{ type: ToastrService }
|
|
19674
19829
|
]; };
|
|
19675
19830
|
WishlistService$1.ɵprov = ɵɵdefineInjectable({ factory: function WishlistService_Factory() { return new WishlistService(ɵɵinject(ToastrService)); }, token: WishlistService, providedIn: "root" });
|
|
19676
|
-
WishlistService$1 = __decorate$
|
|
19831
|
+
WishlistService$1 = __decorate$2c([
|
|
19677
19832
|
Injectable({
|
|
19678
19833
|
providedIn: 'root'
|
|
19679
19834
|
})
|
|
@@ -19681,7 +19836,7 @@ var WishlistService = /** @class */ (function () {
|
|
|
19681
19836
|
return WishlistService$1;
|
|
19682
19837
|
}());
|
|
19683
19838
|
|
|
19684
|
-
var __decorate$
|
|
19839
|
+
var __decorate$2d = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19685
19840
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19686
19841
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19687
19842
|
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;
|
|
@@ -19716,7 +19871,7 @@ var StandardReuseStrategy = /** @class */ (function () {
|
|
|
19716
19871
|
StandardReuseStrategy.ctorParameters = function () { return [
|
|
19717
19872
|
{ type: undefined, decorators: [{ type: Inject, args: ['env',] }] }
|
|
19718
19873
|
]; };
|
|
19719
|
-
StandardReuseStrategy = __decorate$
|
|
19874
|
+
StandardReuseStrategy = __decorate$2d([
|
|
19720
19875
|
Injectable(),
|
|
19721
19876
|
__param$d(0, Inject('env'))
|
|
19722
19877
|
], StandardReuseStrategy);
|
|
@@ -19731,5 +19886,5 @@ var StandardReuseStrategy = /** @class */ (function () {
|
|
|
19731
19886
|
* Generated bundle index. Do not edit.
|
|
19732
19887
|
*/
|
|
19733
19888
|
|
|
19734
|
-
export { AbleBuyerGuardService, AccountEcComponent, AddActionRedirectDirective, AddressingService, AnalyticsService, AttributesFilter, AuthEcComponent, AuthGuardService, AuthInterceptor, AuthService, AuthWholesalerDirective, BambooEcComponent, BancardEcComponent, BancardRedirectEcComponent, BannerService, BlockBannerBoxesEcComponent, BlockBannerFullEcComponent, BlockFormContactEcComponent, BlockHtmlEcComponent, BlockProductsEcComponent, BlocksEcComponent, BlocksService, BrowserWindowRef, BuildYourEcComponent, CaptchaService, CartEcComponent, CartLoadEcComponent, CartService, CategoryFilter, CecaRedirectEcComponent, ChannelConfigService, CheckoutEcComponent, CheckoutErrorComponent, CheckoutReadyGuard, CheckoutService, CollectionEcComponent, ConcatenatedAssociationsService, ConfirmAccountEcComponent, ConnectionService, Constants, ContactFormNewsEcComponent, CookiesEcComponent, CouponEcComponent, CurrencyService, DataFormEcComponent, DataformService, DecidirEcComponent, DetailCheckoutBlockEcComponent, DynamicsFilter, EcSanitizerHtmlPipe, EcSanitizerUrlPipe, FaqsContentEcComponent, Filter, FilterOptionTypes, FiltersEcComponent, FiltersService, FiltersTopEcComponent, FooterEcComponent, ForgotPasswordEcComponent, GiftCardService, HeaderEcComponent, HomeEcComponent, LoadingFullEcComponent, LoadingInlineEcComponent, LoadingSectionEcComponent, LoggedInGuard, LoginEcComponent, LoginFormEcComponent, MPCreditEcComponent, MobbexEcComponent, ModalConfigEcComponent, ModalCookiesEcComponent, MpRedirectEcComponent, MultipleItemsToCartEcComponent, NgEasycommerceModule, OptionsService, OrderEcComponent, OrdersEcComponent, OrdersService, PaginationService, ParametersService, ParamsContext, PasswordResetEcComponent, PaymentEcComponent, PaymentService, PaypalExpressEcComponent, PriceEcComponent, ProductDetailEcComponent, ProductDetailService, ProductEcComponent, ProductFoundEcComponent, ProductMiniStandardDirective, ProductStockDirective, ProductsService, RatingEcComponent, RedSysProEcComponent, RedSysRedirectEcComponent, RedSysRedirectOutEcComponent, RedsysCatchEcComponent, RegisterFormEcComponent, RegisterWholesalerFormEcComponent, RelatedProductsEcComponent, ReviewsEcComponent, ReviewsFormEcComponent, ReviewsService, SectionContainerEcComponent, SelectChannelEcComponent, ShareBlockEcComponent, ShipmentEcComponent, ShipmentService, SidebarCookiesEcComponent, SidebarEcComponent, SortFilter, StandardReuseStrategy, Step, StoresEcComponent, StoresService, SuccessEcComponent, ToastCookiesEcComponent, ToastService, User, UserRoleGuardService, UtilsService, VariantsEcComponent, WINDOW, WINDOW_PROVIDERS, WindowRef, WishlistService, browserWindowProvider, ecCurrencySymbolPipe, windowFactory, windowProvider, OrderByPipe as ɵa, components as ɵb,
|
|
19889
|
+
export { AbleBuyerGuardService, AccountEcComponent, AddActionRedirectDirective, AddressingService, AnalyticsService, AttributesFilter, AuthEcComponent, AuthGuardService, AuthInterceptor, AuthService, AuthWholesalerDirective, BambooEcComponent, BancardEcComponent, BancardRedirectEcComponent, BannerService, BlockBannerBoxesEcComponent, BlockBannerFullEcComponent, BlockFormContactEcComponent, BlockHtmlEcComponent, BlockProductsEcComponent, BlocksEcComponent, BlocksService, BrowserWindowRef, BuildYourEcComponent, CaptchaService, CartEcComponent, CartLoadEcComponent, CartService, CategoryFilter, CecaRedirectEcComponent, ChannelConfigService, CheckoutEcComponent, CheckoutErrorComponent, CheckoutReadyGuard, CheckoutService, CollectionEcComponent, ConcatenatedAssociationsService, ConfirmAccountEcComponent, ConnectionService, Constants, ContactFormNewsEcComponent, CookiesEcComponent, CouponEcComponent, CurrencyService, DataFormEcComponent, DataformService, DecidirEcComponent, DetailCheckoutBlockEcComponent, DynamicsFilter, EcSanitizerHtmlPipe, EcSanitizerUrlPipe, FaqsContentEcComponent, Filter, FilterOptionTypes, FiltersEcComponent, FiltersService, FiltersTopEcComponent, FooterEcComponent, ForgotPasswordEcComponent, GiftCardService, HeaderEcComponent, HomeEcComponent, LoadingFullEcComponent, LoadingInlineEcComponent, LoadingSectionEcComponent, LoggedInGuard, LoginEcComponent, LoginFormEcComponent, MPCreditEcComponent, MobbexEcComponent, ModalConfigEcComponent, ModalCookiesEcComponent, MpRedirectEcComponent, MultipleItemsToCartEcComponent, NgEasycommerceModule, OptionsService, OrderEcComponent, OrdersEcComponent, OrdersService, PaginationService, ParametersService, ParamsContext, PasswordResetEcComponent, PaymentEcComponent, PaymentService, PaypalExpressEcComponent, PriceEcComponent, ProductDetailEcComponent, ProductDetailService, ProductEcComponent, ProductFoundEcComponent, ProductMiniStandardDirective, ProductStockDirective, ProductsService, RatingEcComponent, RedSysProEcComponent, RedSysRedirectEcComponent, RedSysRedirectOutEcComponent, RedsysCatchEcComponent, RegisterFormEcComponent, RegisterWholesalerFormEcComponent, RelatedProductsEcComponent, ReviewsEcComponent, ReviewsFormEcComponent, ReviewsService, SectionContainerEcComponent, SelectChannelEcComponent, ShareBlockEcComponent, ShipmentEcComponent, ShipmentService, SidebarCookiesEcComponent, SidebarEcComponent, SortFilter, StandardReuseStrategy, Step, StoresEcComponent, StoresService, SuccessEcComponent, ToastCookiesEcComponent, ToastService, User, UserRoleGuardService, UtilsService, VariantsEcComponent, WINDOW, WINDOW_PROVIDERS, WindowRef, WishlistService, browserWindowProvider, ecCurrencySymbolPipe, windowFactory, windowProvider, OrderByPipe as ɵa, components as ɵb, pipes as ɵba, OptionsOfProductListDataReceiverService as ɵbb, PaymentUtils as ɵbc, CustomerInterceptor as ɵbd, SellerDashboardContainerEcComponent as ɵc, MagnizoomComponent as ɵd, RecaptchaEcComponent as ɵe, ComparedProductsEcComponent as ɵf, StepEcComponent as ɵg, CulqiEcComponent as ɵh, BancardCatastroEcComponent as ɵi, PlaceToPayEcComponent as ɵj, ComponentHelper as ɵk, BlocksRepositoryService as ɵl, FacebookPixelService as ɵm, GoogleAnalyticsService as ɵn, GTMService as ɵo, MetricoolPixelService as ɵp, DopplerService as ɵq, OrderUtilityService as ɵr, StepService as ɵs, ErrorHandlerService as ɵt, IpService as ɵu, ShipmentDataTransformer as ɵv, CookiesService as ɵw, directives as ɵx, ProductOffDirective as ɵy, ReloadViewDirective as ɵz };
|
|
19735
19890
|
//# sourceMappingURL=ng-easycommerce.js.map
|