{"size": 3295, "ext": "js", "max_stars_repo_path": "AirlineGt/AirlineGt/wwwroot/clientapp/out-tsc/app/shared/seleccion/seleccion.component.js", "max_stars_repo_name": "Spinedac3/Venta-boletos-de-avion-ASP.NET-Core-MVC-Angular-SQL-Server", "max_stars_repo_stars_event_min_datetime": "2019-11-19T01:10:16.000Z", "max_stars_repo_stars_event_max_datetime": "2020-06-02T21:55:08.000Z", "max_issues_repo_path": "AirlineGt/AirlineGt/wwwroot/clientapp/out-tsc/app/shared/seleccion/seleccion.component.js", "max_issues_repo_name": "Spinedac3/Venta-boletos-de-avion-ASP.NET-Core-MVC-Angular-SQL-Server", "max_issues_repo_issues_event_min_datetime": "2021-03-09T23:35:20.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T20:20:10.000Z", "max_forks_repo_path": "AirlineGt/AirlineGt/wwwroot/clientapp/out-tsc/app/shared/seleccion/seleccion.component.js", "max_forks_repo_name": "Spinedac3/Venta-boletos-de-avion-ASP.NET-Core-MVC-Angular-SQL-Server", "max_forks_repo_forks_event_min_datetime": "2020-06-02T21:55:13.000Z", "max_forks_repo_forks_event_max_datetime": "2020-06-02T21:55:13.000Z"}
{"max_stars_count": 3, "max_issues_count": 8, "max_forks_count": 1, "avg_line_length": 43.3552631579, "max_line_length": 92, "alphanum_fraction": 0.6124430956}
import { __decorate, __metadata } from "tslib";
import { Component } from '@angular/core';
import { DataService } from '../data-service.service';
import { Router } from '@angular/router';
import { Body } from '../body';
var SeleccionComponent = /** @class */ (function () {
    function SeleccionComponent(dataService, router) {
        this.dataService = dataService;
        this.router = router;
        this.body = new Body();
    }
    SeleccionComponent.prototype.facturar = function () {
        var _this = this;
        this.dataService.seleccion.subTotal = this.dataService.seleccion.subtotal;
        this.dataService.Facturar()
            .subscribe(function (success) {
            if (success) {
                _this.router.navigate(['resumenCompra']);
            }
        }, function (err) { return _this.errorMessage = "No se pudo procesar la compra"; });
    };
    SeleccionComponent.prototype.vuelosRegreso = function () {
        this.router.navigate(["vuelosRegreso"]);
        this.body.atributo1 = "action name: Vuelos Ida";
        this.body.atributo2 = "destiny: Vuelos Regreso";
        this.dataService.pageReady(this.body).subscribe(function (success) {
            if (success) {
                console.log("Navigation funciono");
            }
        }, function (err) { return console.log("Navigation no funciono"); });
    };
    SeleccionComponent.prototype.infoPasajero = function () {
        this.router.navigate(["infoPasajero"]);
        this.body.atributo1 = "action name: Vuelos Regreso";
        this.body.atributo2 = "destiny: Info Pasajero";
        this.dataService.pageReady(this.body).subscribe(function (success) {
            if (success) {
                console.log("Navigation funciono");
            }
        }, function (err) { return console.log("Navigation no funciono"); });
    };
    SeleccionComponent.prototype.equipajeAdicional = function () {
        this.router.navigate(["equipajeAdicional"]);
        this.body.atributo1 = "action name: Info Pasajero";
        this.body.atributo2 = "destiny: Info Tarjeta";
        this.dataService.pageReady(this.body).subscribe(function (success) {
            if (success) {
                console.log("Navigation funciono");
            }
        }, function (err) { return console.log("Navigation no funciono"); });
    };
    SeleccionComponent.prototype.pago = function () {
        this.router.navigate(["pago"]);
        this.body.atributo1 = "action name: Info Pasajero";
        this.body.atributo2 = "destiny: Factura";
        this.dataService.pageReady(this.body).subscribe(function (success) {
            if (success) {
                console.log("Navigation funciono");
            }
        }, function (err) { return console.log("Navigation no funciono"); });
    };
    SeleccionComponent.prototype.ngOnInit = function () {
    };
    SeleccionComponent = __decorate([
        Component({
            selector: 'app-seleccion',
            templateUrl: './seleccion.component.html',
            styleUrls: ['./seleccion.component.css']
        }),
        __metadata("design:paramtypes", [DataService,
            Router])
    ], SeleccionComponent);
    return SeleccionComponent;
}());
export { SeleccionComponent };
//# sourceMappingURL=seleccion.component.js.map