var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    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;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { Component } from '@angular/core';
import { Router } from '@angular/router';
import { ComponentHelper } from '../../classes/component-helper';
import { AuthService } from '../../services/auth.service';
import { ParametersService } from '../../services/parameters.service';
var AccountEcComponent = /** @class */ (function (_super) {
    __extends(AccountEcComponent, _super);
    function AccountEcComponent(authService, router, paramsService) {
        var _this = _super.call(this) || this;
        _this.authService = authService;
        _this.router = router;
        _this.paramsService = paramsService;
        _this.params = null;
        _this.logout = function () {
            _this.authService.logout();
            _this.router.navigateByUrl('/home');
        };
        _this.paramsService.parameters.subscribe(function (p) {
            _this.params = p;
        });
        _this.ecOnConstruct();
        return _this;
    }
    AccountEcComponent.prototype.ngOnInit = function () {
        this.ecOnInit();
    };
    AccountEcComponent.ctorParameters = function () { return [
        { type: AuthService },
        { type: Router },
        { type: ParametersService }
    ]; };
    AccountEcComponent = __decorate([
        Component({
            selector: 'app-account-ec',
            template: "<section class=\"perfil\">\n     <div class=\"container row w-100 mx-auto py-md-3\">\n          <div class=\"col-12 py-3\">\n               <div class=\"row w-100 mx-auto border-bottom d-flex justify-content-between align-items-center py-3\">\n                    <h3 class=\"text-black\">MIS PEDIDOS</h3>\n                    <button class=\"btn btn-outline-dark rounded-0 px-3 py-1 font-size-10\" (click)=\"logout()\">CERRAR SESI\u00D3N</button>\n               </div>\n               <app-orders-ec></app-orders-ec>\n          </div>\n     </div>\n</section>",
            styles: [".font-size-10{font-size:10px!important}"]
        })
    ], AccountEcComponent);
    return AccountEcComponent;
}(ComponentHelper));
export { AccountEcComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3VudC1lYy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZy1lYXN5Y29tbWVyY2UvIiwic291cmNlcyI6WyJsaWIvZWMtY29tcG9uZW50L2FjY291bnQtZWMvYWNjb3VudC1lYy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDMUMsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQ3pDLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxnQ0FBZ0MsQ0FBQztBQUNqRSxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFDMUQsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sbUNBQW1DLENBQUM7QUFPdEU7SUFBd0Msc0NBQWU7SUFJbkQsNEJBQXNCLFdBQXdCLEVBQVMsTUFBYyxFQUFTLGFBQWdDO1FBQTlHLFlBQ0ksaUJBQU8sU0FLVjtRQU5xQixpQkFBVyxHQUFYLFdBQVcsQ0FBYTtRQUFTLFlBQU0sR0FBTixNQUFNLENBQVE7UUFBUyxtQkFBYSxHQUFiLGFBQWEsQ0FBbUI7UUFGdkcsWUFBTSxHQUFJLElBQUksQ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