(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-portal-encerrar-programacao-encerrar-programacao-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/portal/encerrar-programacao/encerrar-programacao-filter/encerrar-programacao-filter.component.html":
/*!****************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/portal/encerrar-programacao/encerrar-programacao-filter/encerrar-programacao-filter.component.html ***!
  \****************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"encerrar-programacao-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-45\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.encerrarProgramacao' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\" >\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"destinatarioId\"></label>\r\n                                <app-pesquisa-destinatario\r\n                                        id=\"destinatarioId\" name=\"destinatarioId\"\r\n                                        showCgcCpf=\"false\" showInscricao=\"false\"\r\n                                        label=\"cliente\"\r\n                                        [(ngModel)]=\"filtro.destinatarioId\">\r\n                                </app-pesquisa-destinatario>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"clearfix\">&nbsp;</div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"porData\" class=\"required\">{{ \"labels.porData\" | translate}}</label>\r\n                                <select id=\"porData\"\r\n                                        [(ngModel)]=filtro.tipoData\r\n                                        required=\"true\"\r\n                                        class=\"form-control form-control-sm\" name=\"situacao\"\r\n                                        data-title=\"{{ 'labels.porData' | translate }}\">\r\n                                    <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\r\n                                    <option *ngFor=\"let t of tipoPorData.get\"\r\n                                            value=\"{{ t.id }}\">\r\n                                        {{ t.descricao }}\r\n                                    </option>\r\n                                </select>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"dtAte\" class=\"required\">{{ 'labels.dtAte' | translate }}</label>\r\n                                <app-data\r\n                                    id=\"dtAte\"\r\n                                    name=\"dtAte\"\r\n                                    required=\"true\"\r\n                                    [(ngModel)]=\"filtro.dtAte\"\r\n                                    data-title=\"{{ 'labels.dtAte' | translate }}\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                        </div>\r\n                        <div class=\"clearfix\">&nbsp;</div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}</button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'buttons.sair' | translate }}</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n</div>\r\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/portal/encerrar-programacao/encerrar-programacao-index/encerrar-programacao-index.component.html":
/*!**************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/portal/encerrar-programacao/encerrar-programacao-index/encerrar-programacao-index.component.html ***!
  \**************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar   [botoesComando]=\"constantes.listaIndex\"\r\n                        [formAction]=\"actionForm\"\r\n                        [sisFormularioId]=\"constantes.sisFormularioId\"\r\n></app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <div class=\"table-responsive\" style=\"overflow: auto;\">\r\n\r\n        <table id=\"dtEncerrarProgramacao\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\r\n        <div class=\"clearfix\">&nbsp;</div>\r\n        <div>\r\n            <button class=\"btn btn-success mr-2\" (click)=\"selectAll()\" type=\"button\">\r\n                {{ 'buttons.todos' | translate }}\r\n            </button>\r\n            <button class=\"btn btn-success mr-2\" (click)=\"gravar()\" type=\"button\">{{\r\n                'buttons.ok' | translate }}\r\n            </button>\r\n            <button class=\"btn btn-success mr-2\" (click)=\"cancelar()\" type=\"button\">{{\r\n                'buttons.cancelar' | translate }}\r\n            </button>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n<app-propriedades></app-propriedades>\r\n<app-encerrar-programacao-filter\r\n            (filtrar)=\"executaFiltro($event)\"></app-encerrar-programacao-filter>\r\n");

/***/ }),

/***/ "./src/app/pages/portal/encerrar-programacao/encerrar-programacao-filter/encerrar-programacao-filter.component.ts":
/*!************************************************************************************************************************!*\
  !*** ./src/app/pages/portal/encerrar-programacao/encerrar-programacao-filter/encerrar-programacao-filter.component.ts ***!
  \************************************************************************************************************************/
/*! exports provided: EncerrarProgramacaoFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EncerrarProgramacaoFilterComponent", function() { return EncerrarProgramacaoFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _encerrar_programacao_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../encerrar-programacao.service */ "./src/app/pages/portal/encerrar-programacao/encerrar-programacao.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _encerrar_programacao_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../encerrar-programacao.model */ "./src/app/pages/portal/encerrar-programacao/encerrar-programacao.model.ts");
var __decorate = (undefined && undefined.__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;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var EncerrarProgramacaoFilterComponent = /** @class */ (function () {
    function EncerrarProgramacaoFilterComponent(permissoesUtils, service) {
        this.permissoesUtils = permissoesUtils;
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.tipoPorData = new _encerrar_programacao_model__WEBPACK_IMPORTED_MODULE_4__["TipoPorData"]();
    }
    EncerrarProgramacaoFilterComponent.prototype.ngOnInit = function () {
        if (!this.filtro) {
            this.filtro = new _encerrar_programacao_model__WEBPACK_IMPORTED_MODULE_4__["EncerrarProgramacaoFiltroVo"]();
        }
    };
    EncerrarProgramacaoFilterComponent.prototype.onSubmit = function (form) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.filtrar.emit(this.filtro);
        jQuery('#encerrar-programacao-filter-dialog').modal('hide');
    };
    EncerrarProgramacaoFilterComponent.prototype.back = function () {
        this.permissoesUtils.back();
    };
    EncerrarProgramacaoFilterComponent.ctorParameters = function () { return [
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_1__["PermissoesUtilsService"] },
        { type: _encerrar_programacao_service__WEBPACK_IMPORTED_MODULE_2__["EncerrarProgramacaoService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], EncerrarProgramacaoFilterComponent.prototype, "filtrar", void 0);
    EncerrarProgramacaoFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-encerrar-programacao-filter',
            template: __importDefault(__webpack_require__(/*! raw-loader!./encerrar-programacao-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/portal/encerrar-programacao/encerrar-programacao-filter/encerrar-programacao-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_1__["PermissoesUtilsService"],
            _encerrar_programacao_service__WEBPACK_IMPORTED_MODULE_2__["EncerrarProgramacaoService"]])
    ], EncerrarProgramacaoFilterComponent);
    return EncerrarProgramacaoFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/portal/encerrar-programacao/encerrar-programacao-index/encerrar-programacao-index.component.scss":
/*!************************************************************************************************************************!*\
  !*** ./src/app/pages/portal/encerrar-programacao/encerrar-programacao-index/encerrar-programacao-index.component.scss ***!
  \************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".chk input {\n  display: none;\n}\n\n.chk span {\n  width: 18px;\n  height: 18px;\n  display: block;\n  background-color: #fff;\n  border: 1px solid #DDD;\n  border-radius: 18px;\n}\n\nspan.red {\n  background-color: #c03;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvcG9ydGFsL2VuY2VycmFyLXByb2dyYW1hY2FvL2VuY2VycmFyLXByb2dyYW1hY2FvLWluZGV4L0M6XFxDb3Jwb3JhdGVcXENvcnBvcmF0ZVdlYkRlc2VudlxcX3VuaXNvbHV0aW9uL3NyY1xcYXBwXFxwYWdlc1xccG9ydGFsXFxlbmNlcnJhci1wcm9ncmFtYWNhb1xcZW5jZXJyYXItcHJvZ3JhbWFjYW8taW5kZXhcXGVuY2VycmFyLXByb2dyYW1hY2FvLWluZGV4LmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9wYWdlcy9wb3J0YWwvZW5jZXJyYXItcHJvZ3JhbWFjYW8vZW5jZXJyYXItcHJvZ3JhbWFjYW8taW5kZXgvZW5jZXJyYXItcHJvZ3JhbWFjYW8taW5kZXguY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxhQUFBO0FDQ0o7O0FERUE7RUFDSSxXQUFBO0VBQ0EsWUFBQTtFQUNBLGNBQUE7RUFDQSxzQkFBQTtFQUNBLHNCQUFBO0VBQ0EsbUJBQUE7QUNDSjs7QURFQTtFQUNJLHNCQUFBO0FDQ0oiLCJmaWxlIjoic3JjL2FwcC9wYWdlcy9wb3J0YWwvZW5jZXJyYXItcHJvZ3JhbWFjYW8vZW5jZXJyYXItcHJvZ3JhbWFjYW8taW5kZXgvZW5jZXJyYXItcHJvZ3JhbWFjYW8taW5kZXguY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuY2hrIGlucHV0IHtcclxuICAgIGRpc3BsYXk6IG5vbmU7XHJcbn1cclxuXHJcbi5jaGsgc3BhbiB7XHJcbiAgICB3aWR0aDogMThweDtcclxuICAgIGhlaWdodDogMThweDtcclxuICAgIGRpc3BsYXk6IGJsb2NrO1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcclxuICAgIGJvcmRlcjogMXB4IHNvbGlkICNEREQ7XHJcbiAgICBib3JkZXItcmFkaXVzOiAxOHB4O1xyXG59XHJcblxyXG5zcGFuLnJlZCB7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjYzAzO1xyXG59XHJcblxyXG5cclxuIiwiLmNoayBpbnB1dCB7XG4gIGRpc3BsYXk6IG5vbmU7XG59XG5cbi5jaGsgc3BhbiB7XG4gIHdpZHRoOiAxOHB4O1xuICBoZWlnaHQ6IDE4cHg7XG4gIGRpc3BsYXk6IGJsb2NrO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICBib3JkZXI6IDFweCBzb2xpZCAjREREO1xuICBib3JkZXItcmFkaXVzOiAxOHB4O1xufVxuXG5zcGFuLnJlZCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNjMDM7XG59Il19 */");

/***/ }),

/***/ "./src/app/pages/portal/encerrar-programacao/encerrar-programacao-index/encerrar-programacao-index.component.ts":
/*!**********************************************************************************************************************!*\
  !*** ./src/app/pages/portal/encerrar-programacao/encerrar-programacao-index/encerrar-programacao-index.component.ts ***!
  \**********************************************************************************************************************/
/*! exports provided: EncerrarProgramacaoIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EncerrarProgramacaoIndexComponent", function() { return EncerrarProgramacaoIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _encerrar_programacao_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../encerrar-programacao.model */ "./src/app/pages/portal/encerrar-programacao/encerrar-programacao.model.ts");
/* harmony import */ var _encerrar_programacao_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../encerrar-programacao.constants */ "./src/app/pages/portal/encerrar-programacao/encerrar-programacao.constants.ts");
/* harmony import */ var _encerrar_programacao_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../encerrar-programacao.service */ "./src/app/pages/portal/encerrar-programacao/encerrar-programacao.service.ts");
var __extends = (undefined && undefined.__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 = (undefined && undefined.__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;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};











var EncerrarProgramacaoIndexComponent = /** @class */ (function (_super) {
    __extends(EncerrarProgramacaoIndexComponent, _super);
    function EncerrarProgramacaoIndexComponent(router, datatablesService, funcoesService, messageService, permissoesUtils, service, loginService) {
        var _this = _super.call(this, new _encerrar_programacao_constants__WEBPACK_IMPORTED_MODULE_9__["EncerrarProgramacaoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.datatablesService = datatablesService;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.service = service;
        _this.loginService = loginService;
        _this.data = new _encerrar_programacao_model__WEBPACK_IMPORTED_MODULE_8__["EncerrarProgramacaoDto"]();
        _this.constantes = new _encerrar_programacao_constants__WEBPACK_IMPORTED_MODULE_9__["EncerrarProgramacaoConstants"]();
        _this.dataAux = new _encerrar_programacao_model__WEBPACK_IMPORTED_MODULE_8__["EncerrarProgramacaoFiltroVo"]();
        _this.hasDados = false;
        _this.mensagens = [];
        _this.filtro = new _encerrar_programacao_model__WEBPACK_IMPORTED_MODULE_8__["EncerrarProgramacaoFiltroVo"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.refresh = function () {
            var object = {
                regLog: _this.loginService.getLogin().colaboradorId,
                destinatarioIdCliente: _this.filtro.destinatarioId,
                tipoData: _this.filtro.tipoData,
                dtAte: _this.filtro.dtAte,
            };
            _this.service.getByFiltro(object).subscribe(function (resp) {
                _this.service.dados = resp;
                _this.service.dados.map(function (val) {
                    if (val.selecionado === 'S') {
                        val.flag = true;
                    }
                    else {
                        val.flag = false;
                    }
                });
                _this.hasDados = resp && resp.length > 0;
                var columns = [
                    _this.datatablesService.getBolinha("flag", "sel", "C", _this.flag),
                    _this.datatablesService.getDataString("regOrigem", "programacaoVeiculo"),
                    _this.datatablesService.getDataDateTime("dataEmissao", "emissao", "DD/MM/YYYY HH:mm"),
                    _this.datatablesService.getDataDateTime("dataPrevisao", "previsaoChegada", "DD/MM/yyyy HH:mm"),
                    _this.datatablesService.getDataString("tipo", "tipo"),
                    _this.datatablesService.getDataString("cliente", "cliente"),
                    _this.datatablesService.getDataString("razaoTransp", "transportadora"),
                    _this.datatablesService.getDataString("placaCavalo", "placa"),
                    _this.datatablesService.getDataString("placaCarreta1", "carreta1"),
                    _this.datatablesService.getDataString("placaCarreta2", "carreta2"),
                    _this.datatablesService.getDataString("nomeMotorista", "motorista")
                ];
                _this.datatablesService.datatable("dtEncerrarProgramacao", columns, resp, function (aData) {
                    _this.data = aData;
                });
            });
        };
        _this.flag = function (div) {
            var activeColor = "rgb(255, 0, 0)";
            var disabledColor = "rgb(255, 255, 255)";
            setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {
                return __generator(this, function (_a) {
                    this.data.selecionado = this.data.selecionado === "S" ? "N" : "S";
                    if (this.data.selecionado === "S") {
                        div.css('background-color', activeColor);
                        this.rowSelect(this.data);
                    }
                    else {
                        div.css('background-color', disabledColor);
                        this.rowSelect(this.data);
                    }
                    return [2 /*return*/];
                });
            }); }, 500);
        };
        _this.permissoes = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 2, function () {
                _super.prototype.permissoes.call(_this, _this.constantes);
            });
        };
        return _this;
    }
    EncerrarProgramacaoIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        var base = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            base.geraDados = false;
            base.refresh();
            if (!base.service.dados || base.service.dados.length === 0) {
                if (!base.loginService.isTokenExpired()) {
                    jQuery("#encerrar-programacao-filter-dialog").modal("show");
                }
            }
        }, function () { return _this.permissoesUtils.back(); }, true);
    };
    EncerrarProgramacaoIndexComponent.prototype.filtrar = function () {
        jQuery("#encerrar-programacao-filter-dialog").modal("show");
    };
    EncerrarProgramacaoIndexComponent.prototype.executaFiltro = function (event) {
        this.filtro = event;
        this.geraDados = true;
        this.refresh();
    };
    EncerrarProgramacaoIndexComponent.prototype.rowSelect = function (item) {
        var _this = this;
        this.service.dados.forEach(function (val) {
            if (val.sequencia === item.sequencia) {
                val.flag = !val.flag;
                _this.service.setTmpEncerrarProgramacao(val).subscribe();
            }
        });
    };
    EncerrarProgramacaoIndexComponent.prototype._dbClick = function (item, index) {
        this.currentIndex = index;
        item.selecionado = item.selecionado === "S" ? "N" : "S";
        this.rowSelect(item);
    };
    EncerrarProgramacaoIndexComponent.prototype.selectAll = function () {
        var _this = this;
        if (this.funcoesService.isNotUndefinedOrNull(this.service.dados) && this.service.dados.length > 0) {
            var counter_1 = 0;
            var activeColor_1 = "rgb(255, 0, 0)";
            var disabledColor_1 = "rgb(255, 255, 255)";
            this.service.dados.forEach(function (obj) {
                obj.flag = !obj.flag;
                if (obj.selecionado === 'S') {
                    jQuery("#C" + counter_1).css('background-color', disabledColor_1);
                    obj.selecionado = 'N';
                }
                else {
                    jQuery("#C" + counter_1).css('background-color', activeColor_1);
                    obj.selecionado = 'S';
                }
                counter_1++;
                _this.service.setTmpEncerrarProgramacao(obj).subscribe();
            });
        }
    };
    EncerrarProgramacaoIndexComponent.prototype.gravar = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _this.countMarcado = 0;
            _this.service.dados.forEach(function (obj) {
                if (obj.selecionado === 'S') {
                    _this.countMarcado++;
                }
            });
            if (_this.countMarcado === 0) {
                _this.messageService.warning("titles.encerrarProgramacao", "messages.naoExistemRegistrosSelecionados");
                return;
            }
            _this.dataAux.regLog = _this.loginService.getLogin().colaboradorId;
            _this.dataAux.operador = _this.loginService.getLogin().usuario;
            _this.service.grava(_this.dataAux).subscribe(function (result) {
                var message = null;
                if (result && result.erros.length > 0) {
                    message = result.erros[0].message;
                    _this.mensagens = _this.messageService.validationResult(result.erros[0].message);
                }
                if (!result.isValid) {
                    if (message) {
                        _this.messageService.error("titles.encerrarProgramacao", result.erros[0].message);
                    }
                    _this.funcoesService.backToTop();
                }
                else {
                    _this.messageService.saveSuccess("titles.encerrarProgramacao");
                    _this.geraDados = false;
                    _this.refresh();
                }
            });
        });
    };
    EncerrarProgramacaoIndexComponent.prototype.cancelar = function () {
        var _this = this;
        if (this.funcoesService.isNotUndefinedOrNull(this.service.dados) && this.service.dados.length > 0) {
            this.service.dados.forEach(function (obj) {
                obj.flag = false;
                obj.selecionado = 'N';
                _this.service.setTmpEncerrarProgramacao(obj).subscribe();
            });
        }
    };
    EncerrarProgramacaoIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            var reportTitulo = {
                titulo: '',
                subTitulo: ''
            };
            _this.dataAux.regLog = _this.loginService.getLogin().colaboradorId;
            _this.dataAux.operador = _this.loginService.getLogin().usuario;
            _this.dataAux.destinatarioId = _this.filtro.destinatarioId;
            _this.dataAux.dtAte = _this.filtro.dtAte;
            _this.dataAux.tipoData = _this.filtro.tipoData;
            _this.dataAux.geraDados = _this.filtro.geraDados;
            _this.funcoesService.reportInvoc.invocaRelatorio(_this.constantes.reportId, reportTitulo, {
                regLog: _this.dataAux.regLog,
                operador: _this.dataAux.operador,
                destinatarioId: _this.dataAux.destinatarioId,
                dtAte: _this.dataAux.dtAte,
                tipoData: _this.dataAux.tipoData,
                geraDados: _this.dataAux.geraDados
            });
        });
    };
    EncerrarProgramacaoIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: _encerrar_programacao_service__WEBPACK_IMPORTED_MODULE_10__["EncerrarProgramacaoService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"] }
    ]; };
    EncerrarProgramacaoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-encerrar-programacao-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./encerrar-programacao-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/portal/encerrar-programacao/encerrar-programacao-index/encerrar-programacao-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./encerrar-programacao-index.component.scss */ "./src/app/pages/portal/encerrar-programacao/encerrar-programacao-index/encerrar-programacao-index.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            _encerrar_programacao_service__WEBPACK_IMPORTED_MODULE_10__["EncerrarProgramacaoService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"]])
    ], EncerrarProgramacaoIndexComponent);
    return EncerrarProgramacaoIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/portal/encerrar-programacao/encerrar-programacao.constants.ts":
/*!*************************************************************************************!*\
  !*** ./src/app/pages/portal/encerrar-programacao/encerrar-programacao.constants.ts ***!
  \*************************************************************************************/
/*! exports provided: EncerrarProgramacaoConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EncerrarProgramacaoConstants", function() { return EncerrarProgramacaoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var EncerrarProgramacaoConstants = /** @class */ (function () {
    function EncerrarProgramacaoConstants() {
        this.sisFormularioId = 35094;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: 'labels.consulta' },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: 'labels.impressao' },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: 'labels.alteracao' },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: 'labels.permissoes' }
        ];
        this.nomeForm = 'titles.encerrarProgramacao';
        this.reportId = 'PTL0005';
        this.listaIndex = [
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo', depitem: false },
            { title: 'Atualizar', action: 'refresh', icon: 'icon-reload', exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: 'icon-search', exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
    }
    return EncerrarProgramacaoConstants;
}());



/***/ }),

/***/ "./src/app/pages/portal/encerrar-programacao/encerrar-programacao.model.ts":
/*!*********************************************************************************!*\
  !*** ./src/app/pages/portal/encerrar-programacao/encerrar-programacao.model.ts ***!
  \*********************************************************************************/
/*! exports provided: EncerrarProgramacaoFiltroVo, EncerrarProgramacaoDto, TipoPorData */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EncerrarProgramacaoFiltroVo", function() { return EncerrarProgramacaoFiltroVo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EncerrarProgramacaoDto", function() { return EncerrarProgramacaoDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoPorData", function() { return TipoPorData; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var EncerrarProgramacaoFiltroVo = /** @class */ (function () {
    function EncerrarProgramacaoFiltroVo() {
        this.regLog = 0;
        this.destinatarioId = '0';
        this.tipoData = "P";
        this.dtAte = new Date();
        this.operador = "";
        this.geraDados = false;
    }
    return EncerrarProgramacaoFiltroVo;
}());

var EncerrarProgramacaoDto = /** @class */ (function () {
    function EncerrarProgramacaoDto() {
    }
    return EncerrarProgramacaoDto;
}());

var TipoPorData = /** @class */ (function () {
    function TipoPorData() {
        this.get = [
            { id: "E", descricao: "Emissão" },
            { id: "P", descricao: "Previsão de Chegada" }
        ];
    }
    return TipoPorData;
}());



/***/ }),

/***/ "./src/app/pages/portal/encerrar-programacao/encerrar-programacao.module.ts":
/*!**********************************************************************************!*\
  !*** ./src/app/pages/portal/encerrar-programacao/encerrar-programacao.module.ts ***!
  \**********************************************************************************/
/*! exports provided: EncerrarProgramacaoModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EncerrarProgramacaoModule", function() { return EncerrarProgramacaoModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _encerrar_programacao_filter_encerrar_programacao_filter_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./encerrar-programacao-filter/encerrar-programacao-filter.component */ "./src/app/pages/portal/encerrar-programacao/encerrar-programacao-filter/encerrar-programacao-filter.component.ts");
/* harmony import */ var _encerrar_programacao_index_encerrar_programacao_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./encerrar-programacao-index/encerrar-programacao-index.component */ "./src/app/pages/portal/encerrar-programacao/encerrar-programacao-index/encerrar-programacao-index.component.ts");
/* harmony import */ var _encerrar_programacao_rounting_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./encerrar-programacao.rounting.module */ "./src/app/pages/portal/encerrar-programacao/encerrar-programacao.rounting.module.ts");
var __decorate = (undefined && undefined.__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;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var EncerrarProgramacaoModule = /** @class */ (function () {
    function EncerrarProgramacaoModule() {
    }
    EncerrarProgramacaoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [
                _encerrar_programacao_index_encerrar_programacao_index_component__WEBPACK_IMPORTED_MODULE_3__["EncerrarProgramacaoIndexComponent"],
                _encerrar_programacao_filter_encerrar_programacao_filter_component__WEBPACK_IMPORTED_MODULE_2__["EncerrarProgramacaoFilterComponent"]
            ],
            imports: [
                app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"],
                _encerrar_programacao_rounting_module__WEBPACK_IMPORTED_MODULE_4__["EncerrarProgramacaoRoutingModule"]
            ],
            exports: [
                _encerrar_programacao_filter_encerrar_programacao_filter_component__WEBPACK_IMPORTED_MODULE_2__["EncerrarProgramacaoFilterComponent"]
            ]
        })
    ], EncerrarProgramacaoModule);
    return EncerrarProgramacaoModule;
}());



/***/ }),

/***/ "./src/app/pages/portal/encerrar-programacao/encerrar-programacao.rounting.module.ts":
/*!*******************************************************************************************!*\
  !*** ./src/app/pages/portal/encerrar-programacao/encerrar-programacao.rounting.module.ts ***!
  \*******************************************************************************************/
/*! exports provided: EncerrarProgramacaoRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EncerrarProgramacaoRoutingModule", function() { return EncerrarProgramacaoRoutingModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _encerrar_programacao_index_encerrar_programacao_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./encerrar-programacao-index/encerrar-programacao-index.component */ "./src/app/pages/portal/encerrar-programacao/encerrar-programacao-index/encerrar-programacao-index.component.ts");
var __decorate = (undefined && undefined.__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;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




var MRoutes = [
    {
        path: '',
        component: _encerrar_programacao_index_encerrar_programacao_index_component__WEBPACK_IMPORTED_MODULE_3__["EncerrarProgramacaoIndexComponent"],
        data: {
            breadcrumb: 'encerrarProgramacao',
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    }
];
var EncerrarProgramacaoRoutingModule = /** @class */ (function () {
    function EncerrarProgramacaoRoutingModule() {
    }
    EncerrarProgramacaoRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(MRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]],
        })
    ], EncerrarProgramacaoRoutingModule);
    return EncerrarProgramacaoRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/portal/encerrar-programacao/encerrar-programacao.service.ts":
/*!***********************************************************************************!*\
  !*** ./src/app/pages/portal/encerrar-programacao/encerrar-programacao.service.ts ***!
  \***********************************************************************************/
/*! exports provided: EncerrarProgramacaoService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EncerrarProgramacaoService", function() { return EncerrarProgramacaoService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
var __decorate = (undefined && undefined.__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;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var EncerrarProgramacaoService = /** @class */ (function () {
    function EncerrarProgramacaoService(http) {
        this.http = http;
    }
    EncerrarProgramacaoService.prototype.getByFiltro = function (data) {
        return this.http.
            post(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/portal/encerrarProgramacao/tmpGrava", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    EncerrarProgramacaoService.prototype.grava = function (data) {
        return this.http
            .put(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/portal/encerrarProgramacao/grava", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    EncerrarProgramacaoService.prototype.setTmpEncerrarProgramacao = function (data) {
        return this.http
            .put(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/portal/encerrarProgramacao/setTmpEncerrarProgramacao", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    EncerrarProgramacaoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    EncerrarProgramacaoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], EncerrarProgramacaoService);
    return EncerrarProgramacaoService;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-portal-encerrar-programacao-encerrar-programacao-module.js.map