ng-easycommerce 0.0.573 → 0.0.575
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 +8 -0
- package/assets/ec-i18n/ct.json +2 -0
- package/assets/ec-i18n/en.json +2 -0
- package/assets/ec-i18n/es.json +2 -0
- package/assets/ec-i18n/fr.json +2 -0
- package/assets/ec-i18n/gl.json +2 -0
- package/assets/ec-i18n/pr.json +2 -0
- package/bundles/ng-easycommerce.umd.js +41 -5
- 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/auth-ec/register-form-ec/register-form-ec.component.js +38 -5
- package/esm2015/lib/ec-component/widgets-ec/bancard-catastro-ec/bancard-catastro-ec.component.js +5 -2
- package/esm5/lib/ec-component/auth-ec/register-form-ec/register-form-ec.component.js +39 -5
- package/esm5/lib/ec-component/widgets-ec/bancard-catastro-ec/bancard-catastro-ec.component.js +5 -2
- package/fesm2015/ng-easycommerce.js +40 -5
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +41 -5
- package/fesm5/ng-easycommerce.js.map +1 -1
- package/lib/ec-component/auth-ec/register-form-ec/register-form-ec.component.d.ts +5 -1
- package/lib/ec-component/widgets-ec/bancard-catastro-ec/bancard-catastro-ec.component.d.ts +1 -0
- package/ng-easycommerce.metadata.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
# version 0.0.575
|
|
2
|
+
- Modificación para evitar redirigir al home si el check `isAccountVerificationRequired` no está en true.
|
|
3
|
+
# version 0.0.574
|
|
4
|
+
- Decidir se reinicia modal al terminar o cancelar el agregar nueva tarjeta
|
|
5
|
+
- Se agregó una alerta al registrar un usuario para que se muestre un mensaje de acuerdo a las siguientes condiciones:
|
|
6
|
+
- Si `isAccountVerificationRequired` es true, se muestra el mensaje `register-ok`.
|
|
7
|
+
- Si `isSendWelcomeEmail` es true y `isAccountVerificationRequired` es false, se muestra el mensaje `register-welcome`.
|
|
8
|
+
- Si ambos checks son false, se muestra el mensaje `register-success`.
|
|
1
9
|
# version 0.0.573
|
|
2
10
|
- Se modifica y se agrega funcion para actualizar el stock y cambie al disponible en caso de que sea mayor. Tambien lo elimina en caso de que el stock sea 0.
|
|
3
11
|
# version 0.0.572
|
package/assets/ec-i18n/ct.json
CHANGED
|
@@ -266,6 +266,8 @@
|
|
|
266
266
|
"newsletter-thanks": "Gràcies per subscriure a les notícies",
|
|
267
267
|
"notes": "Detalls addicionals d'enviament",
|
|
268
268
|
"register-ok": "Es va enviar un mail a la seva casella de correu a la seva nova compte",
|
|
269
|
+
"register-welcome": "Registre completat amb èxit. S'ha enviat un correu electrònic de benvinguda a la seva bústia",
|
|
270
|
+
"register-success": "Registre completat amb èxit. Si us plau, iniciï sessió",
|
|
269
271
|
"thanks-for-register-detail": "Ara ja podeu entrar. A continuació li deixem l'accés a l'inici de sessió",
|
|
270
272
|
"thanks-for-register": "Gràcies per registrar",
|
|
271
273
|
"pickup-store": "Botiga de recollida",
|
package/assets/ec-i18n/en.json
CHANGED
|
@@ -250,6 +250,8 @@
|
|
|
250
250
|
"redirect-cart": "Redirecting to cart",
|
|
251
251
|
"register": "Register",
|
|
252
252
|
"register-ok": "An email was sent to your mailbox to verify your new account",
|
|
253
|
+
"register-welcome": "Registration successful. A welcome email has been sent to your mailbox",
|
|
254
|
+
"register-success": "Registration successful. Please log in",
|
|
253
255
|
"related-products": "Related Products",
|
|
254
256
|
"repeat-new-password": "Repeat new password",
|
|
255
257
|
"repeat-password": "Repeat password",
|
package/assets/ec-i18n/es.json
CHANGED
|
@@ -253,6 +253,8 @@
|
|
|
253
253
|
"redirect-cart": "Redirigiendo al carrito",
|
|
254
254
|
"register": "Solicitar Registro",
|
|
255
255
|
"register-ok": "Se envió un mail a su casilla de correo para verificar su nueva cuenta",
|
|
256
|
+
"register-welcome": "Registro exitoso. Se ha enviado un email de bienvenida a su casilla de correo",
|
|
257
|
+
"register-success": "Registro exitoso. Por favor, inicie sesión",
|
|
256
258
|
"related-products": "Productos relacionados",
|
|
257
259
|
"repeat-new-password": "Repita nueva contraseña",
|
|
258
260
|
"repeat-password": "Confirme la contraseña",
|
package/assets/ec-i18n/fr.json
CHANGED
|
@@ -258,6 +258,8 @@
|
|
|
258
258
|
"newsletter-thanks": "Merci de vous être abonné aux nouvelles",
|
|
259
259
|
"notes": "Détails d'expédition supplémentaires",
|
|
260
260
|
"register-ok": "Un e-mail a été envoyé à votre boîte aux lettres pour vérifier votre nouveau compte",
|
|
261
|
+
"register-welcome": "Inscription réussie. Un e-mail de bienvenue a été envoyé à votre boîte de réception",
|
|
262
|
+
"register-success": "Inscription réussie. Veuillez vous connecter",
|
|
261
263
|
"thanks-for-register-detail": "Vous pouvez maintenant vous connecter. Ensuite, nous vous laissons l'accès à la connexion",
|
|
262
264
|
"thanks-for-register": "Merci de votre inscription",
|
|
263
265
|
"pickup-store": "Magasin de ramassage",
|
package/assets/ec-i18n/gl.json
CHANGED
|
@@ -266,6 +266,8 @@
|
|
|
266
266
|
"newsletter-thanks": "Grazas por subscribirte á noticia",
|
|
267
267
|
"notes": "Detalles adicionais de envío",
|
|
268
268
|
"register-ok": "Enviouse un correo electrónico á súa caixa de correo para verificar a súa nova conta",
|
|
269
|
+
"register-welcome": "Rexistro exitoso. Enviouse un correo electrónico de benvida á túa caixa de correo",
|
|
270
|
+
"register-success": "Rexistro exitoso. Por favor, inicie sesión",
|
|
269
271
|
"thanks-for-register-detail": "Agora podes iniciar sesión. Entón deixámosche acceso ao inicio de sesión",
|
|
270
272
|
"thanks-for-register": "Grazas por rexistrarse",
|
|
271
273
|
"pickup-store": "Tenda de recollida",
|
package/assets/ec-i18n/pr.json
CHANGED
|
@@ -266,6 +266,8 @@
|
|
|
266
266
|
"newsletter-thanks": "Obrigado por se inscrever nas notícias",
|
|
267
267
|
"notes": "Detalhes adicionais de envio",
|
|
268
268
|
"register-ok": "Um email foi enviado para sua caixa de correio para verificar sua nova conta",
|
|
269
|
+
"register-welcome": "Registro bem-sucedido. Um e-mail de boas-vindas foi enviado para sua caixa de correio",
|
|
270
|
+
"register-success": "Registro bem-sucedido. Por favor, faça login",
|
|
269
271
|
"thanks-for-register-detail": "Agora você pode fazer login. Então deixamos você acessar o login",
|
|
270
272
|
"thanks-for-register": "Obrigado por se registrar",
|
|
271
273
|
"pickup-store": "Retiro na local",
|
|
@@ -13001,13 +13001,14 @@
|
|
|
13001
13001
|
};
|
|
13002
13002
|
var RegisterFormEcComponent = /** @class */ (function (_super) {
|
|
13003
13003
|
__extends$O(RegisterFormEcComponent, _super);
|
|
13004
|
-
function RegisterFormEcComponent(authService, toastr, router, analyticsService, formBuilder) {
|
|
13004
|
+
function RegisterFormEcComponent(authService, toastr, router, analyticsService, formBuilder, channelConfigService) {
|
|
13005
13005
|
var _this = _super.call(this) || this;
|
|
13006
13006
|
_this.authService = authService;
|
|
13007
13007
|
_this.toastr = toastr;
|
|
13008
13008
|
_this.router = router;
|
|
13009
13009
|
_this.analyticsService = analyticsService;
|
|
13010
13010
|
_this.formBuilder = formBuilder;
|
|
13011
|
+
_this.channelConfigService = channelConfigService;
|
|
13011
13012
|
_this.isLogged = true;
|
|
13012
13013
|
_this.darkMode = false;
|
|
13013
13014
|
_this.redirect = true;
|
|
@@ -13024,6 +13025,8 @@
|
|
|
13024
13025
|
newsletter: false,
|
|
13025
13026
|
terms: false,
|
|
13026
13027
|
};
|
|
13028
|
+
_this.isAccountVerificationRequired = false;
|
|
13029
|
+
_this.isSendWelcomeEmail = false;
|
|
13027
13030
|
_this.setProp = function (prop, event) {
|
|
13028
13031
|
_this.registroUsuario[prop] = event.target.value;
|
|
13029
13032
|
};
|
|
@@ -13048,7 +13051,18 @@
|
|
|
13048
13051
|
if (_this.registerForm.valid) {
|
|
13049
13052
|
_this.authService.signUp(_this.registerForm.value).toPromise().then(function (res) {
|
|
13050
13053
|
_this.register_loading = false;
|
|
13051
|
-
|
|
13054
|
+
var messageKey;
|
|
13055
|
+
switch (true) {
|
|
13056
|
+
case _this.isAccountVerificationRequired:
|
|
13057
|
+
messageKey = 'register-ok';
|
|
13058
|
+
break;
|
|
13059
|
+
case _this.isSendWelcomeEmail:
|
|
13060
|
+
messageKey = 'register-welcome';
|
|
13061
|
+
break;
|
|
13062
|
+
default:
|
|
13063
|
+
messageKey = 'register-success';
|
|
13064
|
+
}
|
|
13065
|
+
_this.toastr.show(messageKey);
|
|
13052
13066
|
_this.analyticsService.callEvent('sign_up', {
|
|
13053
13067
|
firstName: _this.registerForm.value.firstName,
|
|
13054
13068
|
lastName: _this.registerForm.value.lastName,
|
|
@@ -13056,7 +13070,10 @@
|
|
|
13056
13070
|
});
|
|
13057
13071
|
_this.success = true;
|
|
13058
13072
|
_this.ready.emit(true);
|
|
13059
|
-
if (_this.redirect) {
|
|
13073
|
+
if (messageKey !== 'register-ok' && _this.redirect) {
|
|
13074
|
+
_this.registerForm.reset();
|
|
13075
|
+
}
|
|
13076
|
+
if (_this.redirect && messageKey === 'register-ok') {
|
|
13060
13077
|
_this.router.navigateByUrl('home');
|
|
13061
13078
|
}
|
|
13062
13079
|
}, function (error) {
|
|
@@ -13078,6 +13095,7 @@
|
|
|
13078
13095
|
return _this;
|
|
13079
13096
|
}
|
|
13080
13097
|
RegisterFormEcComponent.prototype.ngOnInit = function () {
|
|
13098
|
+
var _this = this;
|
|
13081
13099
|
this.registerForm = this.formBuilder.group({
|
|
13082
13100
|
firstName: ['', forms.Validators.required],
|
|
13083
13101
|
lastName: ['', forms.Validators.required],
|
|
@@ -13087,6 +13105,20 @@
|
|
|
13087
13105
|
newsletter: [false],
|
|
13088
13106
|
terms: ['', forms.Validators.required],
|
|
13089
13107
|
});
|
|
13108
|
+
this.channelConfigService.channelConfig$.subscribe(function (config) {
|
|
13109
|
+
if (config && config.isAccountVerificationRequired !== undefined) {
|
|
13110
|
+
_this.isAccountVerificationRequired = config.isAccountVerificationRequired;
|
|
13111
|
+
}
|
|
13112
|
+
else {
|
|
13113
|
+
_this.isAccountVerificationRequired = false;
|
|
13114
|
+
}
|
|
13115
|
+
if (config && config.isSendWelcomeEmail !== undefined) {
|
|
13116
|
+
_this.isSendWelcomeEmail = config.isSendWelcomeEmail;
|
|
13117
|
+
}
|
|
13118
|
+
else {
|
|
13119
|
+
_this.isSendWelcomeEmail = false;
|
|
13120
|
+
}
|
|
13121
|
+
});
|
|
13090
13122
|
this.ecOnInit();
|
|
13091
13123
|
};
|
|
13092
13124
|
RegisterFormEcComponent.ctorParameters = function () { return [
|
|
@@ -13094,7 +13126,8 @@
|
|
|
13094
13126
|
{ type: ToastService },
|
|
13095
13127
|
{ type: router.Router },
|
|
13096
13128
|
{ type: AnalyticsService },
|
|
13097
|
-
{ type: forms.FormBuilder }
|
|
13129
|
+
{ type: forms.FormBuilder },
|
|
13130
|
+
{ type: ChannelConfigService }
|
|
13098
13131
|
]; };
|
|
13099
13132
|
__decorate$1m([
|
|
13100
13133
|
core.Input()
|
|
@@ -17457,6 +17490,9 @@
|
|
|
17457
17490
|
}, 1000);
|
|
17458
17491
|
}
|
|
17459
17492
|
};
|
|
17493
|
+
BancardCatastroEcComponent.prototype.openModal = function () {
|
|
17494
|
+
this.infoPreview = true;
|
|
17495
|
+
};
|
|
17460
17496
|
BancardCatastroEcComponent.prototype.closeModal = function () {
|
|
17461
17497
|
};
|
|
17462
17498
|
BancardCatastroEcComponent.ctorParameters = function () { return [
|
|
@@ -17492,7 +17528,7 @@
|
|
|
17492
17528
|
BancardCatastroEcComponent = __decorate$1S([
|
|
17493
17529
|
core.Component({
|
|
17494
17530
|
selector: 'app-bancard-catastro-ec',
|
|
17495
|
-
template: "<div *ngIf=\"!loading; else loadingView\">\r\n <div class=\"row my-3\">\r\n <ng-container *ngIf=\"registered_cards && registered_cards.length > 0; else notCards\">\r\n <ng-container *ngFor=\"let card of registered_cards; let x=index\">\r\n <div class=\"col-12 col-md-6\">\r\n <div class=\"card my-2\">\r\n <div class=\"card-body\">\r\n <div class=\"row\">\r\n <div class=\"col-12 col-md-9\">\r\n <h5 class=\"card-title\">Terminada en {{card.card_masked_number.slice(-4)}}</h5>\r\n <!-- <h6 class=\"card-subtitle mb-2 text-muted\">Card subtitle</h6> -->\r\n <!-- <p class=\"card-text\">Some quick example text to build on the card title and make up the bulk of the card's content.</p>\r\n -->\r\n <p class=\"card-text text-muted\">{{card.card_brand}}</p>\r\n <p class=\"card-text text-muted\">Vencimiento: {{card.expiration_date}}</p>\r\n </div>\r\n <div class=\"col-3 d-none d-md-flex\">\r\n <div class=\"d-flex flex-column justify-content-between align-items-center w-100\">\r\n <div class=\"d-flex justify-content-end w-100\">\r\n <a class=\"cursor-pointer text-primary\" (click)=\"deleteCard(card.card_id)\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-trash3\"\r\n viewBox=\"0 0 16 16\">\r\n <path\r\n d=\"M6.5 1h3a.5.5 0 0 1 .5.5v1H6v-1a.5.5 0 0 1 .5-.5ZM11 2.5v-1A1.5 1.5 0 0 0 9.5 0h-3A1.5 1.5 0 0 0 5 1.5v1H2.506a.58.58 0 0 0-.01 0H1.5a.5.5 0 0 0 0 1h.538l.853 10.66A2 2 0 0 0 4.885 16h6.23a2 2 0 0 0 1.994-1.84l.853-10.66h.538a.5.5 0 0 0 0-1h-.995a.59.59 0 0 0-.01 0H11Zm1.958 1-.846 10.58a1 1 0 0 1-.997.92h-6.23a1 1 0 0 1-.997-.92L3.042 3.5h9.916Zm-7.487 1a.5.5 0 0 1 .528.47l.5 8.5a.5.5 0 0 1-.998.06L5 5.03a.5.5 0 0 1 .47-.53Zm5.058 0a.5.5 0 0 1 .47.53l-.5 8.5a.5.5 0 1 1-.998-.06l.5-8.5a.5.5 0 0 1 .528-.47ZM8 4.5a.5.5 0 0 1 .5.5v8.5a.5.5 0 0 1-1 0V5a.5.5 0 0 1 .5-.5Z\" />\r\n </svg>\r\n </a>\r\n </div>\r\n <img [src]=\"getCardImg(card.card_brand)\" class=\"img-card\" />\r\n \r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"card-footer d-flex flex-row justify-content-end\">\r\n <ng-container *ngIf=\"!checkingPayment; else buttonLoading\">\r\n <button *ngIf=\"card.card_type == 'credit'; else debito\" class=\"btn comprar text-white\" data-bs-toggle=\"modal\"\r\n data-bs-target=\"#modalCuotas\" (click)=\"setCurrentCardID(card.card_id)\">Pagar</button>\r\n <ng-template #debito>\r\n <button class=\"btn comprar text-white\" (click)=\"toPay(card.card_id)\">Pagar</button>\r\n </ng-template>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #notCards>\r\n <div class=\"col-12 d-flex justify-content-center\">\r\n <h6>Usted no posee tarjetas registrada. Para continuar con este m\u00E9todo de pago por favor registre una\r\n tarjeta presionando el bot\u00F3n de <span class=\"text-decoration-underline fs-6\"> Nueva tarjeta</span>\r\n </h6>\r\n </div>\r\n </ng-template>\r\n </div>\r\n <div class=\"d-flex flex-row w-full justify-content-center\">\r\n <button class=\"btn comprar text-white\" data-bs-toggle=\"modal\" data-bs-target=\"#catastro\"\r\n (click)=\"getProcessId()\">Nueva Tarjeta</button>\r\n </div>\r\n</div>\r\n\r\n<div class=\"modal\" tabindex=\"-1\" id=\"catastro\">\r\n <div class=\"modal-dialog\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <!-- <h5 class=\"modal-title\">Modal title</h5> -->\r\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\r\n (click)=\"closeModal()\"></button>\r\n </div>\r\n <div class=\"modal-body d-flex flex-column justify-content-center align-items-center\">\r\n <ng-container *ngIf=\"infoPreview; else iframe\">\r\n <div class=\"alert alert-warning \" role=\"alert\">\r\n <p class=\"mb-0\">Estimado usuario,</p>\r\n <p> A continuaci\u00F3n usted pasar\u00E1 por \u00FAnica vez por un proceso de\r\n validaci\u00F3n con preguntas de seguridad. Para iniciar favor tener en\r\n cuenta las siguientes recomendaciones:</p>\r\n <ol class=\"list-group list-group-numbered\">\r\n <li class=\"list-group-item list-group-item-warning\">Verifique su n\u00FAmero de c\u00E9dula de\r\n identidad</li>\r\n <li class=\"list-group-item list-group-item-warning\">Tenga a mano sus tarjetas de cr\u00E9dito y\r\n d\u00E9bito activas</li>\r\n <li class=\"list-group-item list-group-item-warning\">Verifique el monto y lugar de sus\r\n \u00FAltimas compras en\r\n comercios o extracciones en cajeros</li>\r\n </ol>\r\n </div>\r\n <div class=\"d-flex flex-row w-full justify-content-center\">\r\n <a class=\"cursor-pointer text-dark fs-xs\" (click)=\"skipInfoPreview()\">Saltar</a>\r\n </div>\r\n </ng-container>\r\n <ng-template #iframe>\r\n <iframe *ngIf=\"url; else loadingView\" [src]=\"url\" frameborder=\"0\" class=\"iframeStyle\"></iframe>\r\n </ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n\r\n<!-- Modal -->\r\n<div class=\"modal fade\" id=\"modalCuotas\" tabindex=\"-1\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog modal-dialog-centered modal-sm\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\" id=\"exampleModalLabel\">Elija el n\u00FAmero de cuotas</h5>\r\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body\">\r\n <select class=\"form-select\" aria-label=\"Default select example\"\r\n (change)=\"setNumberOfPayments($event.target.value)\">\r\n <option selected disabled>Selecciones la cantidad de cuotas</option>\r\n <option value=\"1\">1 cuota</option>\r\n <option value=\"3\">3 cuotas</option>\r\n <option value=\"6\">6 cuotas</option>\r\n <option value=\"12\">12 cuotas</option>\r\n </select>\r\n </div>\r\n <div class=\"modal-footer\" *ngIf=\"canPay()\">\r\n <button type=\"button\" class=\"btn comprar text-white\" data-bs-dismiss=\"modal\"\r\n (click)=\"toPay(currentCardID)\">Pagar</button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<ng-template #loadingView>\r\n <div>\r\n <app-loading-inline-ec></app-loading-inline-ec>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #buttonLoading>\r\n <button type=\"button\" class=\"btn comprar text-white\" data-bs-dismiss=\"modal\"> \r\n <app-loading-inline-ec></app-loading-inline-ec>\r\n </button>\r\n</ng-template>",
|
|
17531
|
+
template: "<div *ngIf=\"!loading; else loadingView\">\r\n <div class=\"row my-3\">\r\n <ng-container *ngIf=\"registered_cards && registered_cards.length > 0; else notCards\">\r\n <ng-container *ngFor=\"let card of registered_cards; let x=index\">\r\n <div class=\"col-12 col-md-6\">\r\n <div class=\"card my-2\">\r\n <div class=\"card-body\">\r\n <div class=\"row\">\r\n <div class=\"col-12 col-md-9\">\r\n <h5 class=\"card-title\">Terminada en {{card.card_masked_number.slice(-4)}}</h5>\r\n <!-- <h6 class=\"card-subtitle mb-2 text-muted\">Card subtitle</h6> -->\r\n <!-- <p class=\"card-text\">Some quick example text to build on the card title and make up the bulk of the card's content.</p>\r\n -->\r\n <p class=\"card-text text-muted\">{{card.card_brand}}</p>\r\n <p class=\"card-text text-muted\">Vencimiento: {{card.expiration_date}}</p>\r\n </div>\r\n <div class=\"col-3 d-none d-md-flex\">\r\n <div class=\"d-flex flex-column justify-content-between align-items-center w-100\">\r\n <div class=\"d-flex justify-content-end w-100\">\r\n <a class=\"cursor-pointer text-primary\" (click)=\"deleteCard(card.card_id)\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-trash3\"\r\n viewBox=\"0 0 16 16\">\r\n <path\r\n d=\"M6.5 1h3a.5.5 0 0 1 .5.5v1H6v-1a.5.5 0 0 1 .5-.5ZM11 2.5v-1A1.5 1.5 0 0 0 9.5 0h-3A1.5 1.5 0 0 0 5 1.5v1H2.506a.58.58 0 0 0-.01 0H1.5a.5.5 0 0 0 0 1h.538l.853 10.66A2 2 0 0 0 4.885 16h6.23a2 2 0 0 0 1.994-1.84l.853-10.66h.538a.5.5 0 0 0 0-1h-.995a.59.59 0 0 0-.01 0H11Zm1.958 1-.846 10.58a1 1 0 0 1-.997.92h-6.23a1 1 0 0 1-.997-.92L3.042 3.5h9.916Zm-7.487 1a.5.5 0 0 1 .528.47l.5 8.5a.5.5 0 0 1-.998.06L5 5.03a.5.5 0 0 1 .47-.53Zm5.058 0a.5.5 0 0 1 .47.53l-.5 8.5a.5.5 0 1 1-.998-.06l.5-8.5a.5.5 0 0 1 .528-.47ZM8 4.5a.5.5 0 0 1 .5.5v8.5a.5.5 0 0 1-1 0V5a.5.5 0 0 1 .5-.5Z\" />\r\n </svg>\r\n </a>\r\n </div>\r\n <img [src]=\"getCardImg(card.card_brand)\" class=\"img-card\" />\r\n \r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"card-footer d-flex flex-row justify-content-end\">\r\n <ng-container *ngIf=\"!checkingPayment; else buttonLoading\">\r\n <button *ngIf=\"card.card_type == 'credit'; else debito\" class=\"btn comprar text-white\" data-bs-toggle=\"modal\"\r\n data-bs-target=\"#modalCuotas\" (click)=\"setCurrentCardID(card.card_id)\">Pagar</button>\r\n <ng-template #debito>\r\n <button class=\"btn comprar text-white\" (click)=\"toPay(card.card_id)\">Pagar</button>\r\n </ng-template>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #notCards>\r\n <div class=\"col-12 d-flex justify-content-center\">\r\n <h6>Usted no posee tarjetas registrada. Para continuar con este m\u00E9todo de pago por favor registre una\r\n tarjeta presionando el bot\u00F3n de <span class=\"text-decoration-underline fs-6\"> Nueva tarjeta</span>\r\n </h6>\r\n </div>\r\n </ng-template>\r\n </div>\r\n <div class=\"d-flex flex-row w-full justify-content-center\">\r\n <button class=\"btn comprar text-white\" data-bs-toggle=\"modal\" data-bs-target=\"#catastro\"\r\n (click)=\"getProcessId(); openModal()\">Nueva Tarjeta</button>\r\n </div>\r\n</div>\r\n\r\n<div class=\"modal\" tabindex=\"-1\" id=\"catastro\">\r\n <div class=\"modal-dialog\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <!-- <h5 class=\"modal-title\">Modal title</h5> -->\r\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"\r\n (click)=\"closeModal()\"></button>\r\n </div>\r\n <div class=\"modal-body d-flex flex-column justify-content-center align-items-center\">\r\n <ng-container *ngIf=\"infoPreview; else iframe\">\r\n <div class=\"alert alert-warning \" role=\"alert\">\r\n <p class=\"mb-0\">Estimado usuario,</p>\r\n <p> A continuaci\u00F3n usted pasar\u00E1 por \u00FAnica vez por un proceso de\r\n validaci\u00F3n con preguntas de seguridad. Para iniciar favor tener en\r\n cuenta las siguientes recomendaciones:</p>\r\n <ol class=\"list-group list-group-numbered\">\r\n <li class=\"list-group-item list-group-item-warning\">Verifique su n\u00FAmero de c\u00E9dula de\r\n identidad</li>\r\n <li class=\"list-group-item list-group-item-warning\">Tenga a mano sus tarjetas de cr\u00E9dito y\r\n d\u00E9bito activas</li>\r\n <li class=\"list-group-item list-group-item-warning\">Verifique el monto y lugar de sus\r\n \u00FAltimas compras en\r\n comercios o extracciones en cajeros</li>\r\n </ol>\r\n </div>\r\n <div class=\"d-flex flex-row w-full justify-content-center\">\r\n <a class=\"cursor-pointer text-dark fs-xs\" (click)=\"skipInfoPreview()\">Saltar</a>\r\n </div>\r\n </ng-container>\r\n <ng-template #iframe>\r\n <iframe *ngIf=\"url; else loadingView\" [src]=\"url\" frameborder=\"0\" class=\"iframeStyle\"></iframe>\r\n </ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n\r\n<!-- Modal -->\r\n<div class=\"modal fade\" id=\"modalCuotas\" tabindex=\"-1\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog modal-dialog-centered modal-sm\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\" id=\"exampleModalLabel\">Elija el n\u00FAmero de cuotas</h5>\r\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body\">\r\n <select class=\"form-select\" aria-label=\"Default select example\"\r\n (change)=\"setNumberOfPayments($event.target.value)\">\r\n <option selected disabled>Selecciones la cantidad de cuotas</option>\r\n <option value=\"1\">1 cuota</option>\r\n <option value=\"3\">3 cuotas</option>\r\n <option value=\"6\">6 cuotas</option>\r\n <option value=\"12\">12 cuotas</option>\r\n </select>\r\n </div>\r\n <div class=\"modal-footer\" *ngIf=\"canPay()\">\r\n <button type=\"button\" class=\"btn comprar text-white\" data-bs-dismiss=\"modal\"\r\n (click)=\"toPay(currentCardID)\">Pagar</button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<ng-template #loadingView>\r\n <div>\r\n <app-loading-inline-ec></app-loading-inline-ec>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #buttonLoading>\r\n <button type=\"button\" class=\"btn comprar text-white\" data-bs-dismiss=\"modal\"> \r\n <app-loading-inline-ec></app-loading-inline-ec>\r\n </button>\r\n</ng-template>",
|
|
17496
17532
|
styles: [".iframeStyle{min-height:520px!important;width:80%}.img-card{width:90px;height:90px}"]
|
|
17497
17533
|
})
|
|
17498
17534
|
], BancardCatastroEcComponent);
|