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
|
@@ -3660,7 +3660,13 @@ let AuthService = class AuthService {
|
|
|
3660
3660
|
return of(err.toString());
|
|
3661
3661
|
})).toPromise();
|
|
3662
3662
|
};
|
|
3663
|
-
this.signUp = (data) =>
|
|
3663
|
+
this.signUp = (data) => {
|
|
3664
|
+
// Convertir el email a minúsculas si existe
|
|
3665
|
+
if (data.email) {
|
|
3666
|
+
data = Object.assign(Object.assign({}, data), { email: data.email.toLowerCase() });
|
|
3667
|
+
}
|
|
3668
|
+
return this.connection.post(this.registerApi(), data);
|
|
3669
|
+
};
|
|
3664
3670
|
this.confirmAccount = (token) => this.connection.get(this.confirmAccountApi(token));
|
|
3665
3671
|
this.passwordReset = (new_password, token) => {
|
|
3666
3672
|
const data = { password: { first: new_password, second: new_password } };
|
|
@@ -3674,7 +3680,13 @@ let AuthService = class AuthService {
|
|
|
3674
3680
|
};
|
|
3675
3681
|
this.getExpiratesAt = () => localStorage.getItem(this.EXPIRATES_IN);
|
|
3676
3682
|
this.hasToRefresh = () => this.getRefreshToken();
|
|
3677
|
-
this.signUpWholesaler = (data) =>
|
|
3683
|
+
this.signUpWholesaler = (data) => {
|
|
3684
|
+
// Convertir el email a minúsculas si existe
|
|
3685
|
+
if (data.email) {
|
|
3686
|
+
data = Object.assign(Object.assign({}, data), { email: data.email.toLowerCase() });
|
|
3687
|
+
}
|
|
3688
|
+
return this.connection.post(this.registerWholesalerApi(), data);
|
|
3689
|
+
};
|
|
3678
3690
|
this.getCountriesData = () => __awaiter$4(this, void 0, void 0, function* () { return this.connection.get(this.countriesApi()).pipe(map(res => res._embedded.items)).toPromise(); });
|
|
3679
3691
|
this.setActiveChannelChange = (activelyChangeChannelsOnLogin) => this.activeChannelChange = activelyChangeChannelsOnLogin;
|
|
3680
3692
|
this.isAllowedRole = (allowedRoles, role) => {
|
|
@@ -3770,7 +3782,8 @@ let AuthService = class AuthService {
|
|
|
3770
3782
|
this.injector.get(ChannelConfigService).channelConfig$.subscribe(ch => this.channel = ch);
|
|
3771
3783
|
this.injector.get(ChannelConfigService).channels.subscribe(ch => this.channels = ch);
|
|
3772
3784
|
this.loggingInSubject.next(true);
|
|
3773
|
-
|
|
3785
|
+
// Convertir el username a minúsculas
|
|
3786
|
+
user = Object.assign(Object.assign(Object.assign({}, user), { username: user.username.toLowerCase() }), this.constants.loginExtraData());
|
|
3774
3787
|
let result = this.connection.post(this.tokenApi(), user).pipe(map(res => {
|
|
3775
3788
|
if (this.channelAccessPermission(Object.assign(Object.assign({}, user), res)) && this.isAllowedRole(withRoles, res.type)) {
|
|
3776
3789
|
this.doLoginUser(Object.assign(Object.assign({}, user), res));
|
|
@@ -7142,6 +7155,7 @@ let PaymentService = class PaymentService extends StepService {
|
|
|
7142
7155
|
this.getCheckoutMobbexApi = () => 'shop-api/' + this.consts.getChannel() + '/mobbex/' + this.cartService.getCartToken() + '/process-payment';
|
|
7143
7156
|
this.getCheckoutBancardApi = () => 'shop-api/' + this.consts.getChannel() + '/bancard/' + this.cartService.getCartToken() + '/process-payment'; //?testOrderNumber=' + this.getRandomArbitrary()
|
|
7144
7157
|
this.getCheckoutBambooApi = () => 'shop-api/' + this.consts.getChannel() + '/bamboo/' + this.cartService.getCartToken() + '/process-payment';
|
|
7158
|
+
this.getCheckoutPlaceToPayApi = () => 'shop-api/' + this.consts.getChannel() + '/place-to-pay/' + this.cartService.getCartToken() + '/process-payment';
|
|
7145
7159
|
this.putPaymentApi = (method) => this.baseApi() + '/payment/' + method;
|
|
7146
7160
|
this.getPaymentMethods = () => __awaiter$a(this, void 0, void 0, function* () {
|
|
7147
7161
|
return this.connection.get(this.getPaymentMethodsApi()).toPromise().then(res => { var _a; return ((_a = res.payments) === null || _a === void 0 ? void 0 : _a.length) && this.paymentMethodsSubject.next(Object.keys(res.payments[0].methods).map(key => res.payments[0].methods[key])); }, err => this.toastrService.show('operation-error'));
|
|
@@ -7160,6 +7174,7 @@ let PaymentService = class PaymentService extends StepService {
|
|
|
7160
7174
|
this.getCheckoutMobbex = (shipment_data) => this.connection.post(this.getCheckoutMobbexApi(), shipment_data).toPromise();
|
|
7161
7175
|
this.getCheckoutBancard = (shipment_data) => this.connection.get(this.getCheckoutBancardApi(), shipment_data).toPromise();
|
|
7162
7176
|
this.getCheckoutBamboo = (shipment_data) => this.connection.get(this.getCheckoutBambooApi(), shipment_data).toPromise();
|
|
7177
|
+
this.getCheckoutPlaceToPay = (shipment_data) => this.connection.post(this.getCheckoutPlaceToPayApi(), shipment_data).toPromise();
|
|
7163
7178
|
this.getRandomArbitrary = () => Math.round(Math.random() * (Number(9999999) - Number(2000003)) + Number(2000003));
|
|
7164
7179
|
this.getPaymentMethods();
|
|
7165
7180
|
}
|
|
@@ -7252,6 +7267,7 @@ let PaymentEcComponent = class PaymentEcComponent extends ComponentHelper {
|
|
|
7252
7267
|
this.isBankTransfer = (code) => code && code.toLocaleLowerCase().includes('bank_transfer');
|
|
7253
7268
|
this.isCatastro = (code) => code && code.toLocaleLowerCase().includes('catastro');
|
|
7254
7269
|
this.isBamboo = (code) => code && code.toLocaleLowerCase().includes('bamboo');
|
|
7270
|
+
this.isPlaceToPay = (code) => code && code.toLocaleLowerCase().includes('place_to_pay');
|
|
7255
7271
|
this.getPKCulqi = method => {
|
|
7256
7272
|
return window.location.href.includes('easycommercetech')
|
|
7257
7273
|
? method.config.public_testing_key
|
|
@@ -7290,7 +7306,7 @@ __decorate$S([
|
|
|
7290
7306
|
PaymentEcComponent = __decorate$S([
|
|
7291
7307
|
Component({
|
|
7292
7308
|
selector: 'app-payment-ec',
|
|
7293
|
-
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",
|
|
7309
|
+
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>",
|
|
7294
7310
|
providers: [PaymentService],
|
|
7295
7311
|
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}"]
|
|
7296
7312
|
})
|
|
@@ -15796,6 +15812,123 @@ SidebarEcComponent = __decorate$1$([
|
|
|
15796
15812
|
})
|
|
15797
15813
|
], SidebarEcComponent);
|
|
15798
15814
|
|
|
15815
|
+
var __decorate$20 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15816
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15817
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15818
|
+
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;
|
|
15819
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15820
|
+
};
|
|
15821
|
+
let PlaceToPayEcComponent = class PlaceToPayEcComponent extends ComponentHelper {
|
|
15822
|
+
constructor(renderer, connection, toastrService, consts, cartService, activedRoute) {
|
|
15823
|
+
super();
|
|
15824
|
+
this.renderer = renderer;
|
|
15825
|
+
this.connection = connection;
|
|
15826
|
+
this.toastrService = toastrService;
|
|
15827
|
+
this.consts = consts;
|
|
15828
|
+
this.cartService = cartService;
|
|
15829
|
+
this.activedRoute = activedRoute;
|
|
15830
|
+
this.method = null;
|
|
15831
|
+
this.total_amount = 0;
|
|
15832
|
+
this.ready = new EventEmitter();
|
|
15833
|
+
this.loading = false;
|
|
15834
|
+
this.closeModal = '';
|
|
15835
|
+
this.dataRedirect = () => this.consts.getUrlBase() + 'shop-api/' + this.consts.getChannel() + '/place-to-pay/' + this.cartService.cart_token + '/process-payment';
|
|
15836
|
+
this.iniciar = () => {
|
|
15837
|
+
this.closeModal = '';
|
|
15838
|
+
this.clearStorageState();
|
|
15839
|
+
this.ventana = window.open(this.url);
|
|
15840
|
+
this.callState();
|
|
15841
|
+
};
|
|
15842
|
+
this.clearStorageState = () => {
|
|
15843
|
+
sessionStorage.removeItem('state');
|
|
15844
|
+
localStorage.removeItem('state');
|
|
15845
|
+
};
|
|
15846
|
+
this.clickClose = () => {
|
|
15847
|
+
var _a;
|
|
15848
|
+
this.closeModal = 'cancel';
|
|
15849
|
+
(_a = this.ventana) === null || _a === void 0 ? void 0 : _a.close();
|
|
15850
|
+
};
|
|
15851
|
+
this.callState = () => {
|
|
15852
|
+
var _a, _b, _c, _d;
|
|
15853
|
+
let state = this.closeModal !== '' ? this.closeModal : localStorage.getItem('state');
|
|
15854
|
+
!state && ((_a = this.ventana) === null || _a === void 0 ? void 0 : _a.closed) && (state = 'cancel');
|
|
15855
|
+
this.loading = true;
|
|
15856
|
+
if (state) {
|
|
15857
|
+
this.loading = false;
|
|
15858
|
+
localStorage.removeItem('state');
|
|
15859
|
+
if (state === 'success' || state === 'pending') {
|
|
15860
|
+
(_b = this.ventana) === null || _b === void 0 ? void 0 : _b.close();
|
|
15861
|
+
this.ready.emit(true);
|
|
15862
|
+
return;
|
|
15863
|
+
}
|
|
15864
|
+
if (state === 'failure' || state === 'cancel') {
|
|
15865
|
+
(_c = this.ventana) === null || _c === void 0 ? void 0 : _c.close();
|
|
15866
|
+
this.processError(state === 'cancel' ? 'Se canceló el pago con Place to Pay' : '');
|
|
15867
|
+
return;
|
|
15868
|
+
}
|
|
15869
|
+
(_d = this.ventana) === null || _d === void 0 ? void 0 : _d.close();
|
|
15870
|
+
this.processError('');
|
|
15871
|
+
return;
|
|
15872
|
+
}
|
|
15873
|
+
setTimeout(() => {
|
|
15874
|
+
this.callState();
|
|
15875
|
+
}, 5000);
|
|
15876
|
+
};
|
|
15877
|
+
this.processError = (err) => {
|
|
15878
|
+
this.toastrService.show(err !== '' ? err : 'payment-error');
|
|
15879
|
+
};
|
|
15880
|
+
this.getPreference = () => {
|
|
15881
|
+
this.paymentServiceInst.getCheckoutPlaceToPay(this.allData).then(res => {
|
|
15882
|
+
var _a, _b;
|
|
15883
|
+
if (((_a = res.status) === null || _a === void 0 ? void 0 : _a.status) === 'OK') {
|
|
15884
|
+
this.url = res.processUrl;
|
|
15885
|
+
}
|
|
15886
|
+
else {
|
|
15887
|
+
this.processError(((_b = res.status) === null || _b === void 0 ? void 0 : _b.message) || 'Ocurrió un error. Inténtelo más tarde.');
|
|
15888
|
+
}
|
|
15889
|
+
}, err => this.processError('Ocurrió un error al procesar el pago. Inténtelo más tarde.'));
|
|
15890
|
+
};
|
|
15891
|
+
this.ecOnConstruct();
|
|
15892
|
+
}
|
|
15893
|
+
ngOnInit() {
|
|
15894
|
+
this.getPreference();
|
|
15895
|
+
this.ecOnInit();
|
|
15896
|
+
}
|
|
15897
|
+
ngOnDestroy() {
|
|
15898
|
+
// Código necesario al destruir el componente
|
|
15899
|
+
}
|
|
15900
|
+
};
|
|
15901
|
+
PlaceToPayEcComponent.ctorParameters = () => [
|
|
15902
|
+
{ type: Renderer2 },
|
|
15903
|
+
{ type: ConnectionService },
|
|
15904
|
+
{ type: ToastService },
|
|
15905
|
+
{ type: Constants },
|
|
15906
|
+
{ type: CartService },
|
|
15907
|
+
{ type: ActivatedRoute }
|
|
15908
|
+
];
|
|
15909
|
+
__decorate$20([
|
|
15910
|
+
Input()
|
|
15911
|
+
], PlaceToPayEcComponent.prototype, "method", void 0);
|
|
15912
|
+
__decorate$20([
|
|
15913
|
+
Input()
|
|
15914
|
+
], PlaceToPayEcComponent.prototype, "total_amount", void 0);
|
|
15915
|
+
__decorate$20([
|
|
15916
|
+
Input()
|
|
15917
|
+
], PlaceToPayEcComponent.prototype, "paymentServiceInst", void 0);
|
|
15918
|
+
__decorate$20([
|
|
15919
|
+
Input()
|
|
15920
|
+
], PlaceToPayEcComponent.prototype, "allData", void 0);
|
|
15921
|
+
__decorate$20([
|
|
15922
|
+
Output()
|
|
15923
|
+
], PlaceToPayEcComponent.prototype, "ready", void 0);
|
|
15924
|
+
PlaceToPayEcComponent = __decorate$20([
|
|
15925
|
+
Component({
|
|
15926
|
+
selector: 'app-place-to-pay-ec',
|
|
15927
|
+
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>",
|
|
15928
|
+
styles: [""]
|
|
15929
|
+
})
|
|
15930
|
+
], PlaceToPayEcComponent);
|
|
15931
|
+
|
|
15799
15932
|
// //Component base
|
|
15800
15933
|
const components = [
|
|
15801
15934
|
BlockBannerBoxesEcComponent,
|
|
@@ -15850,6 +15983,7 @@ const components = [
|
|
|
15850
15983
|
ConfirmAccountEcComponent,
|
|
15851
15984
|
PasswordResetEcComponent,
|
|
15852
15985
|
CecaRedirectEcComponent,
|
|
15986
|
+
PlaceToPayEcComponent,
|
|
15853
15987
|
RegisterWholesalerFormEcComponent,
|
|
15854
15988
|
ShareBlockEcComponent,
|
|
15855
15989
|
DetailCheckoutBlockEcComponent,
|
|
@@ -15879,7 +16013,7 @@ const components = [
|
|
|
15879
16013
|
SidebarEcComponent
|
|
15880
16014
|
];
|
|
15881
16015
|
|
|
15882
|
-
var __decorate$
|
|
16016
|
+
var __decorate$21 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15883
16017
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15884
16018
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15885
16019
|
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;
|
|
@@ -15943,23 +16077,23 @@ AddActionRedirectDirective.ctorParameters = () => [
|
|
|
15943
16077
|
{ type: BlocksService },
|
|
15944
16078
|
{ type: Router }
|
|
15945
16079
|
];
|
|
15946
|
-
__decorate$
|
|
16080
|
+
__decorate$21([
|
|
15947
16081
|
Input()
|
|
15948
16082
|
], AddActionRedirectDirective.prototype, "ecAddActionRedirect", null);
|
|
15949
|
-
__decorate$
|
|
16083
|
+
__decorate$21([
|
|
15950
16084
|
Input()
|
|
15951
16085
|
], AddActionRedirectDirective.prototype, "classStrSpacing", null);
|
|
15952
|
-
__decorate$
|
|
16086
|
+
__decorate$21([
|
|
15953
16087
|
Input()
|
|
15954
16088
|
], AddActionRedirectDirective.prototype, "isTransparent", null);
|
|
15955
|
-
AddActionRedirectDirective = __decorate$
|
|
16089
|
+
AddActionRedirectDirective = __decorate$21([
|
|
15956
16090
|
Directive({
|
|
15957
16091
|
selector: "[ecAddActionRedirect]",
|
|
15958
16092
|
}),
|
|
15959
16093
|
__param$b(0, Inject(DOCUMENT))
|
|
15960
16094
|
], AddActionRedirectDirective);
|
|
15961
16095
|
|
|
15962
|
-
var __decorate$
|
|
16096
|
+
var __decorate$22 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15963
16097
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15964
16098
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15965
16099
|
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;
|
|
@@ -16020,19 +16154,19 @@ ProductStockDirective.ctorParameters = () => [
|
|
|
16020
16154
|
{ type: TemplateRef },
|
|
16021
16155
|
{ type: ViewContainerRef }
|
|
16022
16156
|
];
|
|
16023
|
-
__decorate$
|
|
16157
|
+
__decorate$22([
|
|
16024
16158
|
Input()
|
|
16025
16159
|
], ProductStockDirective.prototype, "ecProductStockElse", void 0);
|
|
16026
|
-
__decorate$
|
|
16160
|
+
__decorate$22([
|
|
16027
16161
|
Input()
|
|
16028
16162
|
], ProductStockDirective.prototype, "ecProductStock", null);
|
|
16029
|
-
ProductStockDirective = __decorate$
|
|
16163
|
+
ProductStockDirective = __decorate$22([
|
|
16030
16164
|
Directive({
|
|
16031
16165
|
selector: "[ecProductStock]"
|
|
16032
16166
|
})
|
|
16033
16167
|
], ProductStockDirective);
|
|
16034
16168
|
|
|
16035
|
-
var __decorate$
|
|
16169
|
+
var __decorate$23 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
16036
16170
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16037
16171
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16038
16172
|
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;
|
|
@@ -16157,23 +16291,23 @@ ProductOffDirective.ctorParameters = () => [
|
|
|
16157
16291
|
{ type: ElementRef },
|
|
16158
16292
|
{ type: Renderer2 }
|
|
16159
16293
|
];
|
|
16160
|
-
__decorate$
|
|
16294
|
+
__decorate$23([
|
|
16161
16295
|
Input()
|
|
16162
16296
|
], ProductOffDirective.prototype, "ecProductOff", null);
|
|
16163
|
-
__decorate$
|
|
16297
|
+
__decorate$23([
|
|
16164
16298
|
Input()
|
|
16165
16299
|
], ProductOffDirective.prototype, "classStrSpacing", null);
|
|
16166
|
-
__decorate$
|
|
16300
|
+
__decorate$23([
|
|
16167
16301
|
Input()
|
|
16168
16302
|
], ProductOffDirective.prototype, "customMessage", null);
|
|
16169
|
-
ProductOffDirective = __decorate$
|
|
16303
|
+
ProductOffDirective = __decorate$23([
|
|
16170
16304
|
Directive({
|
|
16171
16305
|
selector: "[ecProductOff]",
|
|
16172
16306
|
}),
|
|
16173
16307
|
__param$c(0, Inject(DOCUMENT))
|
|
16174
16308
|
], ProductOffDirective);
|
|
16175
16309
|
|
|
16176
|
-
var __decorate$
|
|
16310
|
+
var __decorate$24 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
16177
16311
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16178
16312
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16179
16313
|
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;
|
|
@@ -16226,16 +16360,16 @@ ProductMiniStandardDirective.ctorParameters = () => [
|
|
|
16226
16360
|
{ type: Renderer2 },
|
|
16227
16361
|
{ type: Constants }
|
|
16228
16362
|
];
|
|
16229
|
-
__decorate$
|
|
16363
|
+
__decorate$24([
|
|
16230
16364
|
Input()
|
|
16231
16365
|
], ProductMiniStandardDirective.prototype, "ecProductMiniStandard", null);
|
|
16232
|
-
ProductMiniStandardDirective = __decorate$
|
|
16366
|
+
ProductMiniStandardDirective = __decorate$24([
|
|
16233
16367
|
Directive({
|
|
16234
16368
|
selector: '[ecProductMiniStandard]'
|
|
16235
16369
|
})
|
|
16236
16370
|
], ProductMiniStandardDirective);
|
|
16237
16371
|
|
|
16238
|
-
var __decorate$
|
|
16372
|
+
var __decorate$25 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
16239
16373
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16240
16374
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16241
16375
|
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;
|
|
@@ -16274,19 +16408,19 @@ AuthWholesalerDirective.ctorParameters = () => [
|
|
|
16274
16408
|
{ type: ViewContainerRef },
|
|
16275
16409
|
{ type: AuthService }
|
|
16276
16410
|
];
|
|
16277
|
-
__decorate$
|
|
16411
|
+
__decorate$25([
|
|
16278
16412
|
Input()
|
|
16279
16413
|
], AuthWholesalerDirective.prototype, "ecAuthWholesalerElse", void 0);
|
|
16280
|
-
__decorate$
|
|
16414
|
+
__decorate$25([
|
|
16281
16415
|
Input()
|
|
16282
16416
|
], AuthWholesalerDirective.prototype, "ecAuthWholesaler", null);
|
|
16283
|
-
AuthWholesalerDirective = __decorate$
|
|
16417
|
+
AuthWholesalerDirective = __decorate$25([
|
|
16284
16418
|
Directive({
|
|
16285
16419
|
selector: "[ecAuthWholesaler]"
|
|
16286
16420
|
})
|
|
16287
16421
|
], AuthWholesalerDirective);
|
|
16288
16422
|
|
|
16289
|
-
var __decorate$
|
|
16423
|
+
var __decorate$26 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
16290
16424
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16291
16425
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16292
16426
|
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;
|
|
@@ -16309,10 +16443,10 @@ ReloadViewDirective.ctorParameters = () => [
|
|
|
16309
16443
|
{ type: TemplateRef },
|
|
16310
16444
|
{ type: ViewContainerRef }
|
|
16311
16445
|
];
|
|
16312
|
-
__decorate$
|
|
16446
|
+
__decorate$26([
|
|
16313
16447
|
Input()
|
|
16314
16448
|
], ReloadViewDirective.prototype, "ecReloadView", void 0);
|
|
16315
|
-
ReloadViewDirective = __decorate$
|
|
16449
|
+
ReloadViewDirective = __decorate$26([
|
|
16316
16450
|
Directive({
|
|
16317
16451
|
selector: '[ecReloadView]'
|
|
16318
16452
|
})
|
|
@@ -16333,7 +16467,7 @@ const directives = [
|
|
|
16333
16467
|
ReloadViewDirective,
|
|
16334
16468
|
];
|
|
16335
16469
|
|
|
16336
|
-
var __decorate$
|
|
16470
|
+
var __decorate$27 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
16337
16471
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16338
16472
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16339
16473
|
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;
|
|
@@ -16393,13 +16527,13 @@ ecCurrencySymbolPipe.ctorParameters = () => [
|
|
|
16393
16527
|
{ type: CurrencyService },
|
|
16394
16528
|
{ type: Injector }
|
|
16395
16529
|
];
|
|
16396
|
-
ecCurrencySymbolPipe = __decorate$
|
|
16530
|
+
ecCurrencySymbolPipe = __decorate$27([
|
|
16397
16531
|
Pipe({
|
|
16398
16532
|
name: 'ecCurrencySymbol',
|
|
16399
16533
|
})
|
|
16400
16534
|
], ecCurrencySymbolPipe);
|
|
16401
16535
|
|
|
16402
|
-
var __decorate$
|
|
16536
|
+
var __decorate$28 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
16403
16537
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16404
16538
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16405
16539
|
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;
|
|
@@ -16416,13 +16550,13 @@ let EcSanitizerHtmlPipe = class EcSanitizerHtmlPipe {
|
|
|
16416
16550
|
EcSanitizerHtmlPipe.ctorParameters = () => [
|
|
16417
16551
|
{ type: DomSanitizer }
|
|
16418
16552
|
];
|
|
16419
|
-
EcSanitizerHtmlPipe = __decorate$
|
|
16553
|
+
EcSanitizerHtmlPipe = __decorate$28([
|
|
16420
16554
|
Pipe({
|
|
16421
16555
|
name: 'ecSanitizerHtml'
|
|
16422
16556
|
})
|
|
16423
16557
|
], EcSanitizerHtmlPipe);
|
|
16424
16558
|
|
|
16425
|
-
var __decorate$
|
|
16559
|
+
var __decorate$29 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
16426
16560
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16427
16561
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16428
16562
|
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;
|
|
@@ -16439,7 +16573,7 @@ let EcSanitizerUrlPipe = class EcSanitizerUrlPipe {
|
|
|
16439
16573
|
EcSanitizerUrlPipe.ctorParameters = () => [
|
|
16440
16574
|
{ type: DomSanitizer }
|
|
16441
16575
|
];
|
|
16442
|
-
EcSanitizerUrlPipe = __decorate$
|
|
16576
|
+
EcSanitizerUrlPipe = __decorate$29([
|
|
16443
16577
|
Pipe({
|
|
16444
16578
|
name: 'ecSanitizerUrl'
|
|
16445
16579
|
})
|
|
@@ -16452,7 +16586,7 @@ const pipes = [
|
|
|
16452
16586
|
EcSanitizerUrlPipe
|
|
16453
16587
|
];
|
|
16454
16588
|
|
|
16455
|
-
var __decorate$
|
|
16589
|
+
var __decorate$2a = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
16456
16590
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16457
16591
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16458
16592
|
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;
|
|
@@ -16537,7 +16671,7 @@ let NgEasycommerceModule = NgEasycommerceModule_1 = class NgEasycommerceModule {
|
|
|
16537
16671
|
};
|
|
16538
16672
|
}
|
|
16539
16673
|
};
|
|
16540
|
-
NgEasycommerceModule = NgEasycommerceModule_1 = __decorate$
|
|
16674
|
+
NgEasycommerceModule = NgEasycommerceModule_1 = __decorate$2a([
|
|
16541
16675
|
NgModule({
|
|
16542
16676
|
exports: [
|
|
16543
16677
|
OrderByPipe,
|
|
@@ -16567,12 +16701,13 @@ NgEasycommerceModule = NgEasycommerceModule_1 = __decorate$29([
|
|
|
16567
16701
|
pipes,
|
|
16568
16702
|
EcSanitizerHtmlPipe,
|
|
16569
16703
|
EcSanitizerUrlPipe,
|
|
16704
|
+
PlaceToPayEcComponent,
|
|
16570
16705
|
],
|
|
16571
16706
|
providers: []
|
|
16572
16707
|
})
|
|
16573
16708
|
], NgEasycommerceModule);
|
|
16574
16709
|
|
|
16575
|
-
var __decorate$
|
|
16710
|
+
var __decorate$2b = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
16576
16711
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16577
16712
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16578
16713
|
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;
|
|
@@ -16620,13 +16755,13 @@ GiftCardService.ctorParameters = () => [
|
|
|
16620
16755
|
{ type: ConnectionService }
|
|
16621
16756
|
];
|
|
16622
16757
|
GiftCardService.ɵprov = ɵɵdefineInjectable({ factory: function GiftCardService_Factory() { return new GiftCardService(ɵɵinject(Constants), ɵɵinject(CartService), ɵɵinject(ConnectionService)); }, token: GiftCardService, providedIn: "root" });
|
|
16623
|
-
GiftCardService = __decorate$
|
|
16758
|
+
GiftCardService = __decorate$2b([
|
|
16624
16759
|
Injectable({
|
|
16625
16760
|
providedIn: 'root'
|
|
16626
16761
|
})
|
|
16627
16762
|
], GiftCardService);
|
|
16628
16763
|
|
|
16629
|
-
var __decorate$
|
|
16764
|
+
var __decorate$2c = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
16630
16765
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16631
16766
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16632
16767
|
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;
|
|
@@ -16683,13 +16818,13 @@ WishlistService.ctorParameters = () => [
|
|
|
16683
16818
|
{ type: ToastrService }
|
|
16684
16819
|
];
|
|
16685
16820
|
WishlistService.ɵprov = ɵɵdefineInjectable({ factory: function WishlistService_Factory() { return new WishlistService(ɵɵinject(ToastrService)); }, token: WishlistService, providedIn: "root" });
|
|
16686
|
-
WishlistService = __decorate$
|
|
16821
|
+
WishlistService = __decorate$2c([
|
|
16687
16822
|
Injectable({
|
|
16688
16823
|
providedIn: 'root'
|
|
16689
16824
|
})
|
|
16690
16825
|
], WishlistService);
|
|
16691
16826
|
|
|
16692
|
-
var __decorate$
|
|
16827
|
+
var __decorate$2d = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
16693
16828
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16694
16829
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16695
16830
|
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;
|
|
@@ -16725,7 +16860,7 @@ let StandardReuseStrategy = class StandardReuseStrategy {
|
|
|
16725
16860
|
StandardReuseStrategy.ctorParameters = () => [
|
|
16726
16861
|
{ type: undefined, decorators: [{ type: Inject, args: ['env',] }] }
|
|
16727
16862
|
];
|
|
16728
|
-
StandardReuseStrategy = __decorate$
|
|
16863
|
+
StandardReuseStrategy = __decorate$2d([
|
|
16729
16864
|
Injectable(),
|
|
16730
16865
|
__param$d(0, Inject('env'))
|
|
16731
16866
|
], StandardReuseStrategy);
|
|
@@ -16738,5 +16873,5 @@ StandardReuseStrategy = __decorate$2c([
|
|
|
16738
16873
|
* Generated bundle index. Do not edit.
|
|
16739
16874
|
*/
|
|
16740
16875
|
|
|
16741
|
-
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,
|
|
16876
|
+
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 };
|
|
16742
16877
|
//# sourceMappingURL=ng-easycommerce.js.map
|