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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/sealog/programacao-preliminar/programacao-preliminar-index/programacao-preliminar-index.component.html":
/*!********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/sealog/programacao-preliminar/programacao-preliminar-index/programacao-preliminar-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\" [formAction]=\"actionForm\"\r\n    [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"row mb-2\">\r\n    <div class=\"col-12\">\r\n        <div class=\"card\">\r\n            <div class=\"card-body\">\r\n                <div class=\"row\">\r\n                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"tipoOperacao\" class=\"required\">{{'labels.natDaOperacao' |\r\n                                translate}}</label>\r\n                            <select id=\"tipoOperacao\" name=\"natDaOperacao\" [(ngModel)]=\"filtro.tipoOperacao\"\r\n                                class=\"form-control form-control-sm\" required (change)=\"refresh()\">\r\n                                <option value=\"\">{{ 'labels.selecione' | translate }}</option>\r\n                                <option [value]=\"1\">{{ 'labels.exportacao' | translate }}</option>\r\n                                <option [value]=\"2\">{{ 'labels.cabotagemDeOrigem' | translate }}</option>\r\n                                <option [value]=\"3\">{{ 'labels.importacao' | translate }}</option>\r\n                                <option [value]=\"4\">{{ 'labels.cabotagemDeDestino' | translate }}</option>\r\n                                <option [value]=\"5\">{{ 'labels.naoDefinida' | translate }}</option>\r\n                            </select>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"tipoCarga\" class=\"required\">{{\"labels.tipoCarga\" | translate}}</label>\r\n                            <app-combo-padrao name=\"tipoCarga\" id=\"tipoCarga\" [(ngModel)]=\"filtro.tipoCarga\"\r\n                                (change)=\"getGrupoProdutos(filtro.tipoCarga, true)\" chave=\"PtlTipoCargaPortologId\"\r\n                                descricao=\"Descricao\" ativo=\"true\" tabela=\"PtlTipoCargaPortolog\" required>\r\n                            </app-combo-padrao>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"codGrupoProduto\" class=\"required\">{{\"labels.regGrupoProduto\" |\r\n                                translate}}</label>\r\n                            <select name=\"regGrupoProduto\" id=\"codGrupoProduto\" class=\"form-control form-control-sm\"\r\n                                [(ngModel)]=\"filtro.codGrupoProduto\" required (change)=\"refresh()\">\r\n                                <option [value]=\"val.chave\" *ngFor=\"let val of gruposDeProdutos\">{{val.valor}}\r\n                                </option>\r\n                            </select>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<ng-container>\r\n    <div class=\"row\">\r\n        <div class=\"col-lg-12 col-md-12\">\r\n            <div class=\"card sem-borda\">\r\n                <div class=\"card-body\">\r\n                    <div class=\"table-wrapper\">\r\n                        <table class=\"table\">\r\n                            <thead>\r\n                                <tr>\r\n                                    <th class=\"text-center\" style=\"width: 12.5%;\"></th>\r\n                                    <th *ngFor=\"let item of dados[0]?.dataList\" class=\"text-center\" style=\"width: 12.5%;\"\r\n                                        [ngClass]=\"{ 'text-danger': isSabadoDomingo(item.dtProgramada) }\">\r\n                                        {{ item.dtProgramada | date: 'dd/MM/yyyy' }}\r\n                                    </th>\r\n                                </tr>\r\n                            </thead>\r\n                            <tbody *ngIf=\"showTable\">\r\n                                <tr *ngFor=\"let item of dados\">\r\n                                    <td>\r\n                                        <div class=\"cell-box no-pointer\">\r\n                                            {{ item.hora }}\r\n                                        </div>\r\n                                    </td>\r\n                                    <td *ngFor=\"let t of item.dataList\" (dblclick)=\"_dbClick(t)\" (click)=\"_click(t)\">\r\n                                        <div class=\"cell-box\" [ngClass]=\"getClassBySitReg(t)\"\r\n                                            [attr.title]=\"getTooltipBySitReg(t)\">\r\n                                            <span>{{ t.qtVeiculo }}</span>\r\n                                            <div *ngIf=\"t.sitReg\">\r\n                                                {{ getSitRegDescription(t.sitReg) }}\r\n                                            </div>\r\n                                        </div>\r\n                                    </td>\r\n                                </tr>\r\n                                <tr *ngIf=\"hasDados\">\r\n                                    <td>\r\n                                        <div class=\"cell-box totalizador no-pointer\">\r\n                                            <strong>TOTAL</strong>\r\n                                        </div>\r\n                                    </td>\r\n                                    <td *ngFor=\"let total of getTotalizadores(dados)\">\r\n                                        <div class=\"cell-box totalizador no-pointer\">\r\n                                            <strong>{{ total }}</strong>\r\n                                        </div>\r\n                                    </td>\r\n                                </tr>\r\n                            </tbody>\r\n                            <tbody *ngIf=\"!showTable\">\r\n                                <tr>\r\n                                    <th colspan=\"9\" style=\"text-align: center\">\r\n                                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                                    </th>\r\n                                </tr>\r\n                            </tbody>\r\n                        </table>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</ng-container>\r\n\r\n<app-propriedades></app-propriedades>\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n<app-programacao-preliminar-qtde-veiculos (onRefresh)=\"refresh()\"></app-programacao-preliminar-qtde-veiculos>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/sealog/programacao-preliminar/programacao-preliminar-liberar/programacao-preliminar-liberar.component.html":
/*!************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/sealog/programacao-preliminar/programacao-preliminar-liberar/programacao-preliminar-liberar.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.listaLiberar\" [sisFormularioId]=\"constantes.sisFormularioId\"\r\n    [itemData]=\"data.regPreliminar\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"row mb-2\">\r\n    <div class=\"col-12\">\r\n        <div class=\"card\">\r\n            <div class=\"card-body\">\r\n                <div class=\"row\">\r\n                    <div class=\"input-group\">\r\n                        <div class=\"col-lg-2 col-md-4 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"dataProgramada\">{{ \"labels.dataProgramada\" | translate\r\n                                    }}</label>\r\n                                <select class=\"form-control form-control-sm\" id=\"dataProgramada\" name=\"dataProgramada\"\r\n                                    (focusin)=\"getComboDtProgramada()\" [(ngModel)]=\"filtro.dataBase\" required>\r\n                                    <option value=\"\">{{ \"labels.todos\" | translate }}</option>\r\n                                    <option *ngFor=\"let t of listaDtProgramada\" value=\"{{t.dtBase}}\">\r\n                                        {{t.dtBase}}\r\n                                    </option>\r\n                                </select>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-2 col-md-4 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"janelaDeProgramacao\">{{'labels.janelaDeProgramacao' |\r\n                                    translate}}</label>\r\n                                <select id=\"janelaDeProgramacao\" name=\"janelaDeProgramacao\" [(ngModel)]=\"filtro.janela\"\r\n                                    class=\"form-control form-control-sm\" required>\r\n                                    <option [value]=\"0\">{{ 'labels.todos' | translate }}</option>\r\n                                    <option [value]=\"1\">{{ '00:00 - 05:59'}}</option>\r\n                                    <option [value]=\"2\">{{ '06:00 - 11:59'}}</option>\r\n                                    <option [value]=\"3\">{{ '12:00 - 17:59'}}</option>\r\n                                    <option [value]=\"4\">{{ '18:00 - 23:59'}}</option>\r\n                                </select>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <div class=\"clearfix\">&nbsp;</div>\r\n                                <button class=\"btn btn-success mr-2\" (click)=\"pesquisar()\" type=\"button\">\r\n                                    <i class=\"fa fa-search\"></i>\r\n                                    {{ 'buttons.seleciona' | translate }}\r\n                                </button>\r\n                                <button class=\"btn btn-default\" (click)=\"cancelar()\" type=\"button\">\r\n                                    <i class=\"icon-close\"></i>\r\n                                    {{ 'buttons.cancela' | translate }}\r\n                                </button>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <div class=\"clearfix\">&nbsp;</div>\r\n                                <button class=\"btn btn-success mr-2\" [disabled]=\"!hasDados\" (click)=\"liberacao()\"\r\n                                    type=\"button\">\r\n                                    <i class=\"fa fa-gears\"></i>\r\n                                    {{ 'buttons.liberacao' | translate }}\r\n                                </button>\r\n                                <button class=\"btn btn-success mr-2\" [disabled]=\"!hasDados\" (click)=\"selectAll()\"\r\n                                    type=\"button\">\r\n                                    <i class=\"fa fa-check\"></i>\r\n                                    {{ 'buttons.todos' | translate }}\r\n                                </button>\r\n\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<div class=\"row\">\r\n    <div class=\"col-lg-12\">\r\n        <div class=\"section-comand-bar\">\r\n            <div class=\"tab-content top\">\r\n                <div class=\"row\">\r\n                    <div class=\"col-12\">\r\n                        <app-table>\r\n                            <div class=\"table-responsive\">\r\n                                <table id=\"dtConsulta\"\r\n                                    class=\"table table-striped table-bordered table-hover nowrap table-sm\">\r\n                                    <thead>\r\n                                        <tr>\r\n                                            <th class=\"text-center\">{{ 'labels.sel' | translate}}</th>\r\n                                            <th style=\"white-space: nowrap;\">{{ 'labels.data' | translate}}</th>\r\n                                            <th style=\"white-space: nowrap;\">{{ 'labels.janela' | translate}}</th>\r\n                                            <th style=\"white-space: nowrap;\">{{ 'labels.tipoDeCarga' | translate}}\r\n                                            </th>\r\n                                            <th>{{ 'labels.natDaOperacao' | translate}}</th>\r\n                                            <th>{{ 'labels.grupoDeProduto' | translate}}</th>\r\n                                            <th class=\"text-right\">{{ 'labels.veiculos' | translate}}</th>\r\n                                        </tr>\r\n                                    </thead>\r\n                                    <tbody>\r\n                                        <tr *ngFor=\"let t of dadosTable; index as i\" (dblclick)=\"rowSelect(t)\"\r\n                                            (click)=\"select(t)\"\r\n                                            [ngClass]=\"{'info': t?.regPreliminar == data?.regPreliminar }\">\r\n                                            <td>\r\n                                                <label class=\"chk\">\r\n                                                    <input type=\"checkbox\" id=\"flagLibera\" name=\"flagLibera\"\r\n                                                        value=\"checked\"\r\n                                                        (ngModelChange)=\"t.flagLibera = $event ? 'S' : 'N'\"\r\n                                                        [ngModel]=\"t.flagLibera ==='S'\"\r\n                                                        style=\"margin-left:auto; margin-right:auto;\" disabled>\r\n                                                    <span [ngClass]=\"{'red':t.flagLibera == 'S' ? true : false}\">\r\n                                                    </span>\r\n                                                </label>\r\n                                            </td>\r\n                                            <td>{{ t.dtProgramada }}</td>\r\n                                            <td style=\"white-space: nowrap;\">{{ t.janela }}</td>\r\n                                            <td style=\"white-space: nowrap;\">{{ t.tipoCarga }}</td>\r\n                                            <td style=\"white-space: nowrap;\">{{ t.tipoOperacao }}</td>\r\n                                            <td style=\"white-space: nowrap;\">{{ t.descrGrupoProduto }}</td>\r\n                                            <td style=\"white-space: nowrap; text-align: right\">{{ t.qtVeiculo }}\r\n                                            </td>\r\n                                        </tr>\r\n                                        <tr *ngIf=\"!hasDados\">\r\n                                            <th colspan=\"7\" style=\"text-align: center\">\r\n                                                {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                                            </th>\r\n                                        </tr>\r\n                                    </tbody>\r\n                                </table>\r\n                            </div>\r\n                        </app-table>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/sealog/programacao-preliminar/programacao-preliminar-qtde-veiculos/programacao-preliminar-qtde-veiculos.component.html":
/*!************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/sealog/programacao-preliminar/programacao-preliminar-qtde-veiculos/programacao-preliminar-qtde-veiculos.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=\"programacao-preliminar-qtde-veiculos-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"modal-dialog modal-sm\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.quantidadeDeVeiculos'| translate }}</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n                <app-validacoes></app-validacoes>\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"veiculos\" class=\"required\">{{'labels.veiculos' | translate}}</label>\n                                <input id=\"veiculos\" name=\"veiculos\" [(ngModel)]=\"data.qtVeiculo\"\n                                    class=\"form-control form-control-sm text-right\" type=\"text\" mask=\"999999999\"\n                                    required>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.ok' | translate }}\n                    </button>\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">cancelar</button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>");

/***/ }),

/***/ "./src/app/pages/sealog/programacao-preliminar/programacao-preliminar-index/programacao-preliminar-index.component.scss":
/*!******************************************************************************************************************************!*\
  !*** ./src/app/pages/sealog/programacao-preliminar/programacao-preliminar-index/programacao-preliminar-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"] = (":root {\n  --cell-size-large: 80px;\n  --cell-size-small: 60px;\n  --font-size-large: 12px;\n  --font-size-small: 10px;\n}\n\n@media (max-width: 768px) {\n  .cell-box {\n    width: var(--cell-size-large);\n    height: var(--cell-size-large);\n    font-size: var(--font-size-large);\n  }\n}\n\n@media (max-width: 480px) {\n  .cell-box {\n    width: var(--cell-size-small);\n    height: var(--cell-size-small);\n    font-size: var(--font-size-small);\n  }\n}\n\n.table {\n  border-collapse: collapse;\n  width: 100%;\n  border-spacing: 0;\n}\n\n.table th,\n.table td {\n  padding: 0;\n  margin: 0;\n  border: 1px solid #ddd;\n}\n\n.table tr td,\n.table tr th {\n  padding: 0;\n}\n\n.table-wrapper {\n  overflow-x: auto;\n}\n\n.cell-box {\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  width: 100%;\n  height: 90px;\n  text-align: center;\n  background-size: cover;\n  border: 1px solid #978a8a;\n  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.32), -2px -2px 3px rgba(255, 255, 255, 0.45), inset 1px 1px 2px rgba(255, 255, 255, 0.02), inset -1px -1px 2px rgba(0, 0, 0, 0.11);\n  box-sizing: border-box;\n  font-size: 16px;\n  cursor: pointer;\n}\n\n.clBlue {\n  background-color: blue;\n  color: white;\n}\n\n.clRed {\n  background-color: red;\n  color: white;\n}\n\n.clOlive {\n  background-color: olive;\n  color: white;\n}\n\n.clGreen {\n  background-color: green;\n  color: white;\n}\n\n.clGray {\n  background-color: gray;\n  color: white;\n}\n\n.clGray-selected {\n  font-weight: bold;\n  background-color: #c0c0c0;\n  color: black;\n}\n\n.clDefault {\n  background-color: #bfdcc0;\n  color: black;\n}\n\n.selected-cell {\n  font-weight: bold;\n  color: black !important;\n}\n\n.selected-cell-default {\n  background-color: white;\n  font-weight: bold;\n  color: black !important;\n}\n\n.clNavy {\n  background-color: navy;\n  color: white;\n}\n\n.clMaroon {\n  background-color: maroon;\n  color: white;\n}\n\n.clYellow {\n  background-color: yellow;\n  color: black;\n}\n\n.clLime {\n  background-color: lime;\n  color: black;\n}\n\n.totalizador {\n  color: white;\n  background-color: #008081;\n}\n\n.no-pointer {\n  cursor: default;\n}\n/*# sourceMappingURL=data:application/json;base64,  */");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgramacaoPreliminarIndexComponent", function() { return ProgramacaoPreliminarIndexComponent; });
/* harmony import */ var app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.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_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__ = __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_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _programacao_preliminar_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../programacao-preliminar.constants */ "./src/app/pages/sealog/programacao-preliminar/programacao-preliminar.constants.ts");
/* harmony import */ var _programacao_preliminar_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../programacao-preliminar.model */ "./src/app/pages/sealog/programacao-preliminar/programacao-preliminar.model.ts");
/* harmony import */ var _programacao_preliminar_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../programacao-preliminar.service */ "./src/app/pages/sealog/programacao-preliminar/programacao-preliminar.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var app_shared_components_combos_combo_padrao_combo_padrao_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! app/shared/components/combos/combo-padrao/combo-padrao.service */ "./src/app/shared/components/combos/combo-padrao/combo-padrao.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var _programacao_preliminar_qtde_veiculos_programacao_preliminar_qtde_veiculos_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../programacao-preliminar-qtde-veiculos/programacao-preliminar-qtde-veiculos.component */ "./src/app/pages/sealog/programacao-preliminar/programacao-preliminar-qtde-veiculos/programacao-preliminar-qtde-veiculos.component.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 ProgramacaoPreliminarIndexComponent = /** @class */ (function (_super) {
    __extends(ProgramacaoPreliminarIndexComponent, _super);
    function ProgramacaoPreliminarIndexComponent(router, datatablesService, service, permissoesUtils, messageService, configuracao, funcoesService, loginService, comboPadraoService) {
        var _this = _super.call(this, new _programacao_preliminar_constants__WEBPACK_IMPORTED_MODULE_10__["ProgramacaoPreliminarConstants"](), funcoesService) || this;
        _this.router = router;
        _this.datatablesService = datatablesService;
        _this.service = service;
        _this.permissoesUtils = permissoesUtils;
        _this.messageService = messageService;
        _this.configuracao = configuracao;
        _this.funcoesService = funcoesService;
        _this.loginService = loginService;
        _this.comboPadraoService = comboPadraoService;
        _this.dados = [];
        _this.data = new _programacao_preliminar_model__WEBPACK_IMPORTED_MODULE_11__["ProgramacaoPreliminar"]();
        _this.filtro = new _programacao_preliminar_model__WEBPACK_IMPORTED_MODULE_11__["ProgramacaoPreliminarFilter"]();
        _this.constantes = new _programacao_preliminar_constants__WEBPACK_IMPORTED_MODULE_10__["ProgramacaoPreliminarConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.mensagens = [];
        _this.gruposDeProdutos = [];
        _this.dataServidor = new Date();
        _this.liberar = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 3, function () {
                _this.router.navigate([_this.target + "/sealog/programacaoPreliminar/liberar"]);
            });
        };
        _this.proximoDia = function () {
            _this.filtro.dataI = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["DateTimeUtilsStaticService"].addDays(_this.filtro.dataI, 1);
            _this.refresh();
        };
        _this.diaAnterior = function () {
            if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["DateTimeUtilsStaticService"].menorOuIgualAHoje(_this.filtro.dataI))
                return;
            _this.filtro.dataI = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["DateTimeUtilsStaticService"].addDays(_this.filtro.dataI, -1);
            _this.refresh();
        };
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.service.configs.natOperacaoPortolog = _this.configuracao.lerConfig("PTL", "NatOperacaoPortolog");
                _this.service.configs.tipoCargaPortolog = _this.configuracao.lerConfig("PTL", "TipoCargaPortolog");
                _this.service.configs.grupoProdutoPortolog = _this.configuracao.lerConfig("PTL", "GrupoProdutoPortolog");
                _this.posLoadConfig();
            }
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        _this.filialId = loginService.getLogin().filialId;
        return _this;
    }
    ProgramacaoPreliminarIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        if (!this.filtro) {
            this.filtro = new _programacao_preliminar_model__WEBPACK_IMPORTED_MODULE_11__["ProgramacaoPreliminarFilter"]();
        }
        ;
        this.configuracao.getConfig(this.constantes.parametrosConfig, this.loadConfig);
        this.permissoesUtils
            .verificaRotina(this.constantes.sisFormularioId, 1, function () { }, function () { return _this.permissoesUtils.back(); }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: 'liberar', func: function () { return _this.liberar; } },
            { action: 'proximoDia', func: function () { return _this.proximoDia; } },
            { action: 'diaAnterior', func: function () { return _this.diaAnterior; } }
        ]);
    };
    ProgramacaoPreliminarIndexComponent.prototype.trataBotoes = function () {
        this.buttonDisabled('listaIndex', 'diaAnterior', app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["DateTimeUtilsStaticService"].menorOuIgualAHoje(this.filtro.dataI));
    };
    ProgramacaoPreliminarIndexComponent.prototype.refresh = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        this.data = new _programacao_preliminar_model__WEBPACK_IMPORTED_MODULE_11__["ProgramacaoPreliminar"]();
                        this.trataBotoes();
                        if (!this.checaConfigs())
                            return [2 /*return*/];
                        if (!this.filtro.tipoOperacao || !this.filtro.tipoCarga || !this.filtro.codGrupoProduto)
                            return [2 /*return*/];
                        _a = this;
                        return [4 /*yield*/, this.service.getByFiltro(this.filtro)];
                    case 1:
                        _a.dados = _b.sent();
                        return [2 /*return*/];
                }
            });
        });
    };
    Object.defineProperty(ProgramacaoPreliminarIndexComponent.prototype, "showTable", {
        get: function () {
            return (!!this.filtro.tipoOperacao && !!this.filtro.tipoCarga && !!this.filtro.codGrupoProduto);
        },
        enumerable: true,
        configurable: true
    });
    ProgramacaoPreliminarIndexComponent.prototype.posLoadConfig = function () {
        if (!this.checaConfigs())
            return;
        this.filtro.tipoOperacao = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].toNumberOrUndefined(this.service.configs.natOperacaoPortolog);
        this.filtro.tipoCarga = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].toNumberOrUndefined(this.service.configs.tipoCargaPortolog);
        this.filtro.codGrupoProduto = app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].toString(this.service.configs.grupoProdutoPortolog);
        this.getGrupoProdutos(this.filtro.tipoCarga);
    };
    ProgramacaoPreliminarIndexComponent.prototype.getGrupoProdutos = function (tipoCarga, loadFirstDefault) {
        if (loadFirstDefault === void 0) { loadFirstDefault = false; }
        return __awaiter(this, void 0, void 0, function () {
            var condicionaisOptions, _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        if (!tipoCarga) {
                            this.gruposDeProdutos = [];
                            return [2 /*return*/];
                        }
                        condicionaisOptions = [
                            {
                                operadorLogico: "AND",
                                campo: "TipoCarga",
                                operador: "=",
                                valor: tipoCarga
                            }
                        ];
                        _a = this;
                        return [4 /*yield*/, this.comboPadraoService.get('PtlGrupoDeProdutos', 'CodGrupoProduto', 'DescrGrupoProduto', true, '', '', 0, condicionaisOptions).toPromise()];
                    case 1:
                        _a.gruposDeProdutos = _b.sent();
                        this.gruposDeProdutos.unshift({ chave: '', valor: 'Selecione' });
                        if (loadFirstDefault) {
                            this.filtro.codGrupoProduto = this.gruposDeProdutos[1].chave;
                        }
                        this.refresh();
                        return [2 /*return*/];
                }
            });
        });
    };
    ProgramacaoPreliminarIndexComponent.prototype.checaConfigs = function () {
        if (!this.service.configs.natOperacaoPortolog) {
            this.messageService.warning("titles.programacaoPreliminar", "messages.paramNatOperacaoPortologNaoConfigurado");
            return false;
        }
        if (!this.service.configs.tipoCargaPortolog) {
            this.messageService.warning("titles.programacaoPreliminar", "messages.paramTipoCargaPortologNaoConfigurado");
            return false;
        }
        if (!this.service.configs.grupoProdutoPortolog) {
            this.messageService.warning("titles.programacaoPreliminar", "messages.paramGrupoProdutoPortologNaoConfigurado");
            return false;
        }
        return true;
    };
    ProgramacaoPreliminarIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    Object.defineProperty(ProgramacaoPreliminarIndexComponent.prototype, "hasDados", {
        get: function () {
            return app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["ArrayUtilsStaticService"].any(this.dados);
        },
        enumerable: true,
        configurable: true
    });
    ProgramacaoPreliminarIndexComponent.prototype._dbClick = function (item) {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (!_this.validaSetQtdeVeiculos(item))
                return;
            _this.childProgPreliminarQtdeVeiculosComponent.objectSelect(item, _this.filtro);
            app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_17__["ModalUtilsStaticService"].openModal("programacao-preliminar-qtde-veiculos-dialog");
        });
    };
    ProgramacaoPreliminarIndexComponent.prototype.validaSetQtdeVeiculos = function (item) {
        var _this = this;
        if (!this.filtro.tipoOperacao || !this.filtro.tipoCarga || !this.filtro.codGrupoProduto)
            return;
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["DateTimeUtilsStaticService"].menorAHoje(item.dtProgramada)) {
            this.messageService.warning("titles.programacaoPreliminar", "messages.somenteProgPreliminaresHoraAcimaAtual");
            return false;
        }
        if (item.sitReg === "L") {
            var message = this.messageService.getTranslates("messages", "naoPossivelEditarProgLiberadaDesejaCancelar");
            this.messageService.confirm("titles.programacaoPreliminar", message, null, function () {
                return _this.executaCancelarLiberacao(item.regPreliminar);
            });
            return false;
        }
        if (item.sitReg === "F") {
            this.messageService.warning("titles.programacaoPreliminar", "messages.naoPossivelEditarProgramacoesEncerradas");
            return false;
        }
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["DateTimeUtilsStaticService"].hoje(item.dtProgramada)) {
            this.messageService.warning("titles.programacaoPreliminar", "messages.naoPossivelEditarJanelasEncerradas");
            return false;
        }
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["DateTimeUtilsStaticService"].hoje(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["DateTimeUtilsStaticService"].addDays(item.dtProgramada, -1))) {
            if (item.janela === 1 && this.isAfterServerTime(17)) {
                this.messageService.warning("titles.programacaoPreliminar", "messages.naoPossivelEditarJanelasEncerradas");
                return false;
            }
        }
        return true;
    };
    ProgramacaoPreliminarIndexComponent.prototype.executaCancelarLiberacao = function (regPreliminar) {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _this.service.cancelarLiberacao(regPreliminar).subscribe(function (result) {
                _this.mensagens = _this.messageService.validationResult(result);
                if (!result.isValid) {
                    _this.messageService.warning("titles.programacaoPreliminar", _this.mensagens[0]);
                }
                else {
                    _this.messageService.success("Sucesso", "messages.programacaoCancelada");
                    _this.refresh();
                }
            });
        });
    };
    ProgramacaoPreliminarIndexComponent.prototype._click = function (item) {
        this.data = item;
    };
    ProgramacaoPreliminarIndexComponent.prototype.isSabadoDomingo = function (date) {
        var dt = new Date(date);
        var dia = dt.getDay();
        return dia === 0 || dia === 6; // 0 = Domingo, 6 = Sábado
    };
    ProgramacaoPreliminarIndexComponent.prototype.getClassBySitReg = function (item) {
        var baseClass = '';
        switch (item.sitReg) {
            case 'L':
                baseClass = this.data.progPreliminarCellBoxId === item.progPreliminarCellBoxId ? 'clNavy' : 'clBlue';
                break;
            case 'V':
                baseClass = this.data.progPreliminarCellBoxId === item.progPreliminarCellBoxId ? 'clMaroon' : 'clRed';
                break;
            case 'R':
                baseClass = this.data.progPreliminarCellBoxId === item.progPreliminarCellBoxId ? 'clYellow' : 'clOlive';
                break;
            case 'F':
                baseClass = this.data.progPreliminarCellBoxId === item.progPreliminarCellBoxId ? 'clLime' : 'clGreen';
                break;
            case 'E':
                baseClass = 'clRed';
                break;
            default:
                baseClass = '';
                break;
        }
        if (this.data.progPreliminarCellBoxId === item.progPreliminarCellBoxId && !!baseClass) {
            baseClass += ' selected-cell';
        }
        return baseClass || this.getStyleByConditions(item);
    };
    ProgramacaoPreliminarIndexComponent.prototype.getSitRegDescription = function (sitReg) {
        switch (sitReg) {
            case 'E':
                return 'Com Erro';
            case 'L':
                return 'Liberado';
            case 'F':
                return 'Finalizado';
            case 'V':
                return 'Validação';
            case 'R':
                return 'Retorno';
            default:
                return '';
        }
    };
    ProgramacaoPreliminarIndexComponent.prototype.getTooltipBySitReg = function (item) {
        switch (item.sitReg) {
            case 'L':
                return 'Programação Preliminar Liberada';
            case 'V':
                return 'Aguardando a Validação do Arquivo';
            case 'R':
                return 'Aguardando o Retorno do Arquivo';
            case 'F':
                return 'Programação Preliminar Finalizada';
            case 'E':
                return "Programa\u00E7\u00E3o Preliminar com Erro: " + item.descrErro;
            default:
                return app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["DateTimeUtilsStaticService"].hoje(item.dtProgramada) ? 'Janela de Programação Encerrada' : '';
        }
    };
    ProgramacaoPreliminarIndexComponent.prototype.getStyleByConditions = function (item) {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["DateTimeUtilsStaticService"].hoje(item.dtProgramada)) {
            if (this.data.progPreliminarCellBoxId !== item.progPreliminarCellBoxId) {
                return 'clGray';
            }
            else {
                if ((item.janela <= 3 && this.isAfterServerTime(5)) || (item.janela === 4 && this.isAfterServerTime(11))) {
                    return 'clGray-selected';
                }
                else {
                    return 'selected-cell-default';
                }
            }
        }
        else if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["DateTimeUtilsStaticService"].hoje(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["DateTimeUtilsStaticService"].addDays(item.dtProgramada, -1))) {
            if (item.janela === 1 && this.isAfterServerTime(17)) {
                return this.data.progPreliminarCellBoxId !== item.progPreliminarCellBoxId ? 'clGray' : 'clGray-selected';
            }
            else if (this.data.progPreliminarCellBoxId === item.progPreliminarCellBoxId) {
                return 'selected-cell-default';
            }
            else {
                return 'clDefault';
            }
        }
        else if (this.data.progPreliminarCellBoxId === item.progPreliminarCellBoxId) {
            return 'selected-cell-default';
        }
        else {
            return 'clDefault';
        }
    };
    ProgramacaoPreliminarIndexComponent.prototype.isAfterServerTime = function (hour) {
        var currentHour = this.dataServidor.getHours();
        return currentHour > hour;
    };
    ProgramacaoPreliminarIndexComponent.prototype.getTotalizadores = function (dados) {
        var totais = [];
        if (!dados || dados.length === 0)
            return totais;
        var numColunas = dados[0].dataList.length;
        for (var i = 0; i < numColunas; i++) {
            var total = 0;
            for (var _i = 0, dados_1 = dados; _i < dados_1.length; _i++) {
                var linha = dados_1[_i];
                total += linha.dataList[i].qtVeiculo;
            }
            totais.push(total);
        }
        return totais;
    };
    ProgramacaoPreliminarIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_6__["DatatablesService"] },
        { type: _programacao_preliminar_service__WEBPACK_IMPORTED_MODULE_12__["ProgramacaoPreliminarService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__["MessageService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_1__["ConfiguracaoFacade"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"] },
        { type: app_shared_components_combos_combo_padrao_combo_padrao_service__WEBPACK_IMPORTED_MODULE_15__["ComboPadraoService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"])(_programacao_preliminar_qtde_veiculos_programacao_preliminar_qtde_veiculos_component__WEBPACK_IMPORTED_MODULE_18__["ProgramacaoPreliminarQtdeVeiculosComponent"], { static: false }),
        __metadata("design:type", _programacao_preliminar_qtde_veiculos_programacao_preliminar_qtde_veiculos_component__WEBPACK_IMPORTED_MODULE_18__["ProgramacaoPreliminarQtdeVeiculosComponent"])
    ], ProgramacaoPreliminarIndexComponent.prototype, "childProgPreliminarQtdeVeiculosComponent", void 0);
    ProgramacaoPreliminarIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"])({
            selector: "app-programacao-preliminar-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./programacao-preliminar-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/sealog/programacao-preliminar/programacao-preliminar-index/programacao-preliminar-index.component.html")).default,
            styles: [__importDefault(__webpack_require__(/*! ./programacao-preliminar-index.component.scss */ "./src/app/pages/sealog/programacao-preliminar/programacao-preliminar-index/programacao-preliminar-index.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_6__["DatatablesService"],
            _programacao_preliminar_service__WEBPACK_IMPORTED_MODULE_12__["ProgramacaoPreliminarService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__["MessageService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_1__["ConfiguracaoFacade"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"],
            app_shared_components_combos_combo_padrao_combo_padrao_service__WEBPACK_IMPORTED_MODULE_15__["ComboPadraoService"]])
    ], ProgramacaoPreliminarIndexComponent);
    return ProgramacaoPreliminarIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/sealog/programacao-preliminar/programacao-preliminar-liberar/programacao-preliminar-liberar.component.scss":
/*!**********************************************************************************************************************************!*\
  !*** ./src/app/pages/sealog/programacao-preliminar/programacao-preliminar-liberar/programacao-preliminar-liberar.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: 12px;\n  height: 12px;\n  display: block;\n  background-color: #fff;\n  border: 1px solid #DDD;\n  border-radius: 50%;\n}\n\nspan.red {\n  background-color: #c03;\n}\n\ninput[type=checkbox] {\n  cursor: pointer;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvc2VhbG9nL3Byb2dyYW1hY2FvLXByZWxpbWluYXIvcHJvZ3JhbWFjYW8tcHJlbGltaW5hci1saWJlcmFyL0M6XFxDb3Jwb3JhdGVcXENvcnBvcmF0ZVdlYkRlc2VudlxcX3VuaXNvbHV0aW9uL3NyY1xcYXBwXFxwYWdlc1xcc2VhbG9nXFxwcm9ncmFtYWNhby1wcmVsaW1pbmFyXFxwcm9ncmFtYWNhby1wcmVsaW1pbmFyLWxpYmVyYXJcXHByb2dyYW1hY2FvLXByZWxpbWluYXItbGliZXJhci5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvc2VhbG9nL3Byb2dyYW1hY2FvLXByZWxpbWluYXIvcHJvZ3JhbWFjYW8tcHJlbGltaW5hci1saWJlcmFyL3Byb2dyYW1hY2FvLXByZWxpbWluYXItbGliZXJhci5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLGFBQUE7QUNDRjs7QURFQTtFQUNFLFdBQUE7RUFDQSxZQUFBO0VBQ0EsY0FBQTtFQUNBLHNCQUFBO0VBQ0Esc0JBQUE7RUFDQSxrQkFBQTtBQ0NGOztBREVBO0VBQ0Usc0JBQUE7QUNDRjs7QURFQTtFQUNFLGVBQUE7QUNDRiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL3NlYWxvZy9wcm9ncmFtYWNhby1wcmVsaW1pbmFyL3Byb2dyYW1hY2FvLXByZWxpbWluYXItbGliZXJhci9wcm9ncmFtYWNhby1wcmVsaW1pbmFyLWxpYmVyYXIuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuY2hrIGlucHV0IHtcclxuICBkaXNwbGF5OiBub25lO1xyXG59XHJcblxyXG4uY2hrIHNwYW4ge1xyXG4gIHdpZHRoOiAxMnB4O1xyXG4gIGhlaWdodDogMTJweDtcclxuICBkaXNwbGF5OiBibG9jaztcclxuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xyXG4gIGJvcmRlcjogMXB4IHNvbGlkICNEREQ7XHJcbiAgYm9yZGVyLXJhZGl1czogNTAlO1xyXG59XHJcblxyXG5zcGFuLnJlZCB7XHJcbiAgYmFja2dyb3VuZC1jb2xvcjogI2MwMztcclxufVxyXG5cclxuaW5wdXRbdHlwZT1cImNoZWNrYm94XCJdIHtcclxuICBjdXJzb3I6IHBvaW50ZXI7XHJcbn0iLCIuY2hrIGlucHV0IHtcbiAgZGlzcGxheTogbm9uZTtcbn1cblxuLmNoayBzcGFuIHtcbiAgd2lkdGg6IDEycHg7XG4gIGhlaWdodDogMTJweDtcbiAgZGlzcGxheTogYmxvY2s7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNEREQ7XG4gIGJvcmRlci1yYWRpdXM6IDUwJTtcbn1cblxuc3Bhbi5yZWQge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjYzAzO1xufVxuXG5pbnB1dFt0eXBlPWNoZWNrYm94XSB7XG4gIGN1cnNvcjogcG9pbnRlcjtcbn0iXX0= */");

/***/ }),

/***/ "./src/app/pages/sealog/programacao-preliminar/programacao-preliminar-liberar/programacao-preliminar-liberar.component.ts":
/*!********************************************************************************************************************************!*\
  !*** ./src/app/pages/sealog/programacao-preliminar/programacao-preliminar-liberar/programacao-preliminar-liberar.component.ts ***!
  \********************************************************************************************************************************/
/*! exports provided: ProgramacaoPreliminarLiberarComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgramacaoPreliminarLiberarComponent", function() { return ProgramacaoPreliminarLiberarComponent; });
/* 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_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__ = __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_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_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__ = __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_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
/* harmony import */ var app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var _programacao_preliminar_model__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../programacao-preliminar.model */ "./src/app/pages/sealog/programacao-preliminar/programacao-preliminar.model.ts");
/* harmony import */ var _programacao_preliminar_constants__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../programacao-preliminar.constants */ "./src/app/pages/sealog/programacao-preliminar/programacao-preliminar.constants.ts");
/* harmony import */ var _programacao_preliminar_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../programacao-preliminar.service */ "./src/app/pages/sealog/programacao-preliminar/programacao-preliminar.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 ProgramacaoPreliminarLiberarComponent = /** @class */ (function (_super) {
    __extends(ProgramacaoPreliminarLiberarComponent, _super);
    function ProgramacaoPreliminarLiberarComponent(router, configuracao, funcoesService, messageService, permissoesUtils, service, loginService) {
        var _this = _super.call(this, new _programacao_preliminar_constants__WEBPACK_IMPORTED_MODULE_13__["ProgramacaoPreliminarConstants"](), funcoesService) || this;
        _this.router = router;
        _this.configuracao = configuracao;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.service = service;
        _this.loginService = loginService;
        _this.filtro = new _programacao_preliminar_model__WEBPACK_IMPORTED_MODULE_12__["ProgramacaoPreliminarLiberarFilter"]();
        _this.data = new _programacao_preliminar_model__WEBPACK_IMPORTED_MODULE_12__["ProgramacaoPreliminarLiberarDto"]();
        _this.constantes = new _programacao_preliminar_constants__WEBPACK_IMPORTED_MODULE_13__["ProgramacaoPreliminarConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.mensagens = [];
        _this.geraDados = true;
        _this.refresh = function () {
            _this.filtro.geraDados = _this.geraDados;
            _this.data = new _programacao_preliminar_model__WEBPACK_IMPORTED_MODULE_12__["ProgramacaoPreliminarLiberarDto"]();
            _this.service.getProgPreliminarLiberar(_this.filtro).subscribe(function (resp) {
                _this.dados = resp;
            });
        };
        return _this;
    }
    ProgramacaoPreliminarLiberarComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            if (!_this.loginService.isTokenExpired()) {
                _this.getComboDtProgramada();
            }
        }, function () { return _this.permissoesUtils.back(); }, true);
    };
    ProgramacaoPreliminarLiberarComponent.prototype.getComboDtProgramada = function () {
        var _this = this;
        this.service.getComboDtProgramada().subscribe(function (ret) {
            if (!!ret) {
                _this.listaDtProgramada = ret;
            }
        });
    };
    ProgramacaoPreliminarLiberarComponent.prototype.pesquisar = function () {
        this.geraDados = true;
        this.refresh();
    };
    ProgramacaoPreliminarLiberarComponent.prototype.onMarcarDesmarcar = function () {
        return __awaiter(this, void 0, void 0, function () {
            var validationResult, mensagens;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (!this.itemSelecionado())
                            return [2 /*return*/];
                        this.data.flagLibera = this.data.flagLibera === 'S' ? 'N' : 'S';
                        return [4 /*yield*/, this.service.setFlagLibera(this.data).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.messageService.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.programacaoPreliminar", m); });
                            return [2 /*return*/];
                        }
                        else {
                            this.geraDados = false;
                            this.refresh();
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    ProgramacaoPreliminarLiberarComponent.prototype.select = function (item) {
        this.data = item;
    };
    ProgramacaoPreliminarLiberarComponent.prototype.itemSelecionado = function () {
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["NumberUtilsStaticService"].isNotPositive(this.data.regPreliminar)) {
            this.messageService.warning("titles.programacaoPreliminar", "messages.selecioneUmRegistro");
            return false;
        }
        return true;
    };
    ProgramacaoPreliminarLiberarComponent.prototype.rowSelect = function (item) {
        this.data = item;
        this.onMarcarDesmarcar();
    };
    ProgramacaoPreliminarLiberarComponent.prototype.selectAll = function () {
        return __awaiter(this, void 0, void 0, function () {
            var validationResult, mensagens;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.service.selecionaTodos().toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.messageService.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.programacaoPreliminar", m); });
                            return [2 /*return*/];
                        }
                        else {
                            this.geraDados = false;
                            this.refresh();
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    ProgramacaoPreliminarLiberarComponent.prototype.liberacao = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () { return __awaiter(_this, void 0, void 0, function () {
            var hasFlagLiberaS;
            var _this = this;
            return __generator(this, function (_a) {
                if (this.hasDados) {
                    hasFlagLiberaS = this.existeRegistroFlagLiberaS();
                    if (!hasFlagLiberaS) {
                        this.messageService.warning("titles.programacaoPreliminar", "messages.selecionePeloMenosUmaProgramacao");
                        return [2 /*return*/];
                    }
                    else {
                        this.messageService.confirm("titles.programacaoPreliminar", "messages.confirmaLiberacaoProgramacaoPreliminar", "null", function () { return __awaiter(_this, void 0, void 0, function () {
                            return __generator(this, function (_a) {
                                switch (_a.label) {
                                    case 0: return [4 /*yield*/, this.executaLiberacao()];
                                    case 1:
                                        _a.sent();
                                        return [2 /*return*/];
                                }
                            });
                        }); }, false, function () {
                        });
                    }
                }
                else {
                    this.messageService.warning("titles.programacaoPreliminar", "messages.tabelaVazia");
                    return [2 /*return*/];
                }
                return [2 /*return*/];
            });
        }); });
    };
    ProgramacaoPreliminarLiberarComponent.prototype.executaLiberacao = function () {
        return __awaiter(this, void 0, void 0, function () {
            var validationResult, mensagens;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.service.programacaoPreliminarLibera().toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.messageService.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.programacaoPreliminar", m); });
                            return [2 /*return*/];
                        }
                        else {
                            this.messageService.success("titles.programacaoPreliminar", "messages.registrosReprocessadosComSucesso");
                            this.refresh();
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    ProgramacaoPreliminarLiberarComponent.prototype.existeRegistroFlagLiberaS = function () {
        return this.dados.some(function (obj) { return obj.flagLibera === "S"; });
    };
    ProgramacaoPreliminarLiberarComponent.prototype.cancelar = function () {
        this.dados = null;
        this.data = new _programacao_preliminar_model__WEBPACK_IMPORTED_MODULE_12__["ProgramacaoPreliminarLiberarDto"]();
        this.filtro = new _programacao_preliminar_model__WEBPACK_IMPORTED_MODULE_12__["ProgramacaoPreliminarLiberarFilter"]();
        this.back();
    };
    Object.defineProperty(ProgramacaoPreliminarLiberarComponent.prototype, "hasDados", {
        get: function () {
            return app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["ArrayUtilsStaticService"].any(this.dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(ProgramacaoPreliminarLiberarComponent.prototype, "dadosTable", {
        get: function () {
            if (!this.table)
                return [];
            if (!this.hasDados || !this.table.filtro) {
                return this.table.getPage(this.dados);
            }
            return this.table.getPage(this.dadosFilterTable);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(ProgramacaoPreliminarLiberarComponent.prototype, "dadosFilterTable", {
        get: function () {
            var _this = this;
            return this.dados.filter(function (v) {
                return app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].exist(v.dtProgramada, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].exist(v.janela, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].exist(v.tipoCarga, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].exist(v.tipoOperacao, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].exist(v.descrGrupoProduto, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["NumberUtilsStaticService"].exist(v.qtVeiculo, _this.table.filtro);
            });
        },
        enumerable: true,
        configurable: true
    });
    ProgramacaoPreliminarLiberarComponent.prototype.back = function () {
        this.router.navigate([this.target + "/sealog/programacaoPreliminar"]);
    };
    ProgramacaoPreliminarLiberarComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_7__["ConfiguracaoFacade"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"] },
        { type: _programacao_preliminar_service__WEBPACK_IMPORTED_MODULE_14__["ProgramacaoPreliminarService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_10__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_10__["TableComponent"])
    ], ProgramacaoPreliminarLiberarComponent.prototype, "table", void 0);
    ProgramacaoPreliminarLiberarComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-programacao-preliminar-liberar",
            template: __importDefault(__webpack_require__(/*! raw-loader!./programacao-preliminar-liberar.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/sealog/programacao-preliminar/programacao-preliminar-liberar/programacao-preliminar-liberar.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./programacao-preliminar-liberar.component.scss */ "./src/app/pages/sealog/programacao-preliminar/programacao-preliminar-liberar/programacao-preliminar-liberar.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_7__["ConfiguracaoFacade"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"],
            _programacao_preliminar_service__WEBPACK_IMPORTED_MODULE_14__["ProgramacaoPreliminarService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"]])
    ], ProgramacaoPreliminarLiberarComponent);
    return ProgramacaoPreliminarLiberarComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/sealog/programacao-preliminar/programacao-preliminar-qtde-veiculos/programacao-preliminar-qtde-veiculos.component.ts":
/*!********************************************************************************************************************************************!*\
  !*** ./src/app/pages/sealog/programacao-preliminar/programacao-preliminar-qtde-veiculos/programacao-preliminar-qtde-veiculos.component.ts ***!
  \********************************************************************************************************************************************/
/*! exports provided: ProgramacaoPreliminarQtdeVeiculosComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgramacaoPreliminarQtdeVeiculosComponent", function() { return ProgramacaoPreliminarQtdeVeiculosComponent; });
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _programacao_preliminar_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../programacao-preliminar.model */ "./src/app/pages/sealog/programacao-preliminar/programacao-preliminar.model.ts");
/* harmony import */ var _programacao_preliminar_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../programacao-preliminar.service */ "./src/app/pages/sealog/programacao-preliminar/programacao-preliminar.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _programacao_preliminar_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../programacao-preliminar.constants */ "./src/app/pages/sealog/programacao-preliminar/programacao-preliminar.constants.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.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 ProgramacaoPreliminarQtdeVeiculosComponent = /** @class */ (function () {
    function ProgramacaoPreliminarQtdeVeiculosComponent(permissoesUtils, service, messageService) {
        this.permissoesUtils = permissoesUtils;
        this.service = service;
        this.messageService = messageService;
        this.onRefresh = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.data = new _programacao_preliminar_model__WEBPACK_IMPORTED_MODULE_3__["SetProgramacaoPreliminarGravaDto"]();
        this.constantes = new _programacao_preliminar_constants__WEBPACK_IMPORTED_MODULE_6__["ProgramacaoPreliminarConstants"]();
    }
    ProgramacaoPreliminarQtdeVeiculosComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _this.service.programacaoPreliminarGrava(_this.data).subscribe(function (resp) {
                if (!resp.isValid) {
                    var mensagens = _this.messageService.validationResult(resp);
                    mensagens.forEach(function (m) { return _this.messageService.warning("titles.programacaoPreliminar", m); });
                    return;
                }
                else {
                    _this.onRefresh.emit();
                    app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["ModalUtilsStaticService"].closeModal('programacao-preliminar-qtde-veiculos-dialog');
                    _this.messageService.saveSuccess("titles.programacaoPreliminar");
                }
            });
        });
    };
    ProgramacaoPreliminarQtdeVeiculosComponent.prototype.objectSelect = function (item, filtro) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit();
        this.data.regPreliminar = item.regPreliminar;
        this.data.dtProgramada = item.dtProgramada;
        this.data.janela = item.janela;
        this.data.tipoCarga = filtro.tipoCarga;
        this.data.tipoOperacao = filtro.tipoOperacao;
        this.data.codGrupoProduto = filtro.codGrupoProduto;
        this.data.qtVeiculo = item.qtVeiculo;
    };
    ProgramacaoPreliminarQtdeVeiculosComponent.ctorParameters = function () { return [
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] },
        { type: _programacao_preliminar_service__WEBPACK_IMPORTED_MODULE_4__["ProgramacaoPreliminarService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(),
        __metadata("design:type", Object)
    ], ProgramacaoPreliminarQtdeVeiculosComponent.prototype, "onRefresh", void 0);
    ProgramacaoPreliminarQtdeVeiculosComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: 'app-programacao-preliminar-qtde-veiculos',
            template: __importDefault(__webpack_require__(/*! raw-loader!./programacao-preliminar-qtde-veiculos.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/sealog/programacao-preliminar/programacao-preliminar-qtde-veiculos/programacao-preliminar-qtde-veiculos.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"],
            _programacao_preliminar_service__WEBPACK_IMPORTED_MODULE_4__["ProgramacaoPreliminarService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"]])
    ], ProgramacaoPreliminarQtdeVeiculosComponent);
    return ProgramacaoPreliminarQtdeVeiculosComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgramacaoPreliminarConstants", function() { return ProgramacaoPreliminarConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ProgramacaoPreliminarConstants = /** @class */ (function () {
    function ProgramacaoPreliminarConstants() {
        this.sisFormularioId = 375224;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.liberar" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.cancelarLiberacao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.programacaoPreliminar";
        this.reportId = "CAD0000";
        this.reportTitulo = { "titulo": "Programação Preliminar", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'liberar', action: 'liberar', icon: "fa fa-check", exibeButton: true, eximeMenu: true, menuName: 'Arquivo', disabled: false },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'proximoDia', action: 'proximoDia', icon: "icon-arrow-right", exibeButton: false, eximeMenu: true, menuName: 'Movimento', disabled: false },
            { title: 'diaAnterior', action: 'diaAnterior', icon: "icon-arrow-left", exibeButton: false, eximeMenu: true, menuName: 'Movimento', disabled: false }
        ];
        this.listaLiberar = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' }
        ];
        this.parametrosConfig = [
            {
                sistema: 'PTL', parametros: [
                    'NatOperacaoPortolog',
                    'TipoCargaPortolog',
                    'GrupoProdutoPortolog'
                ]
            }
        ];
    }
    return ProgramacaoPreliminarConstants;
}());



/***/ }),

/***/ "./src/app/pages/sealog/programacao-preliminar/programacao-preliminar.model.ts":
/*!*************************************************************************************!*\
  !*** ./src/app/pages/sealog/programacao-preliminar/programacao-preliminar.model.ts ***!
  \*************************************************************************************/
/*! exports provided: ProgramacaoPreliminarFilter, ProgramacaoPreliminarList, ProgramacaoPreliminar, SetProgramacaoPreliminarGravaDto, ProgramacaoPreliminarLiberarDto, ProgramacaoPreliminarLiberarFilter, ProgPreliminarComboDtPrograma */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgramacaoPreliminarFilter", function() { return ProgramacaoPreliminarFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgramacaoPreliminarList", function() { return ProgramacaoPreliminarList; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgramacaoPreliminar", function() { return ProgramacaoPreliminar; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SetProgramacaoPreliminarGravaDto", function() { return SetProgramacaoPreliminarGravaDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgramacaoPreliminarLiberarDto", function() { return ProgramacaoPreliminarLiberarDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgramacaoPreliminarLiberarFilter", function() { return ProgramacaoPreliminarLiberarFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgPreliminarComboDtPrograma", function() { return ProgPreliminarComboDtPrograma; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ProgramacaoPreliminarFilter = /** @class */ (function () {
    function ProgramacaoPreliminarFilter() {
        this.dataI = new Date();
    }
    return ProgramacaoPreliminarFilter;
}());

var ProgramacaoPreliminarList = /** @class */ (function () {
    function ProgramacaoPreliminarList(hora, dataList) {
        this.hora = hora;
        this.dataList = dataList;
    }
    return ProgramacaoPreliminarList;
}());

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

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

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

var ProgramacaoPreliminarLiberarFilter = /** @class */ (function () {
    function ProgramacaoPreliminarLiberarFilter() {
        this.janela = 0;
        this.dataBase = "";
        this.geraDados = true;
    }
    return ProgramacaoPreliminarLiberarFilter;
}());

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



/***/ }),

/***/ "./src/app/pages/sealog/programacao-preliminar/programacao-preliminar.module.ts":
/*!**************************************************************************************!*\
  !*** ./src/app/pages/sealog/programacao-preliminar/programacao-preliminar.module.ts ***!
  \**************************************************************************************/
/*! exports provided: ProgramacaoPreliminarModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgramacaoPreliminarModule", function() { return ProgramacaoPreliminarModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _programacao_preliminar_routing_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./programacao-preliminar.routing.module */ "./src/app/pages/sealog/programacao-preliminar/programacao-preliminar.routing.module.ts");
/* harmony import */ var _programacao_preliminar_index_programacao_preliminar_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./programacao-preliminar-index/programacao-preliminar-index.component */ "./src/app/pages/sealog/programacao-preliminar/programacao-preliminar-index/programacao-preliminar-index.component.ts");
/* harmony import */ var app_shared_shared_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _programacao_preliminar_qtde_veiculos_programacao_preliminar_qtde_veiculos_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./programacao-preliminar-qtde-veiculos/programacao-preliminar-qtde-veiculos.component */ "./src/app/pages/sealog/programacao-preliminar/programacao-preliminar-qtde-veiculos/programacao-preliminar-qtde-veiculos.component.ts");
/* harmony import */ var _programacao_preliminar_liberar_programacao_preliminar_liberar_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./programacao-preliminar-liberar/programacao-preliminar-liberar.component */ "./src/app/pages/sealog/programacao-preliminar/programacao-preliminar-liberar/programacao-preliminar-liberar.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 ProgramacaoPreliminarModule = /** @class */ (function () {
    function ProgramacaoPreliminarModule() {
    }
    ProgramacaoPreliminarModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [
                _programacao_preliminar_index_programacao_preliminar_index_component__WEBPACK_IMPORTED_MODULE_2__["ProgramacaoPreliminarIndexComponent"],
                _programacao_preliminar_qtde_veiculos_programacao_preliminar_qtde_veiculos_component__WEBPACK_IMPORTED_MODULE_4__["ProgramacaoPreliminarQtdeVeiculosComponent"],
                _programacao_preliminar_liberar_programacao_preliminar_liberar_component__WEBPACK_IMPORTED_MODULE_5__["ProgramacaoPreliminarLiberarComponent"]
            ],
            imports: [
                app_shared_shared_module__WEBPACK_IMPORTED_MODULE_3__["SharedModule"],
                _programacao_preliminar_routing_module__WEBPACK_IMPORTED_MODULE_1__["ProgramacaoPreliminarRoutingModule"]
            ]
        })
    ], ProgramacaoPreliminarModule);
    return ProgramacaoPreliminarModule;
}());



/***/ }),

/***/ "./src/app/pages/sealog/programacao-preliminar/programacao-preliminar.routing.module.ts":
/*!**********************************************************************************************!*\
  !*** ./src/app/pages/sealog/programacao-preliminar/programacao-preliminar.routing.module.ts ***!
  \**********************************************************************************************/
/*! exports provided: ProgramacaoPreliminarRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgramacaoPreliminarRoutingModule", function() { return ProgramacaoPreliminarRoutingModule; });
/* 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 _programacao_preliminar_index_programacao_preliminar_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./programacao-preliminar-index/programacao-preliminar-index.component */ "./src/app/pages/sealog/programacao-preliminar/programacao-preliminar-index/programacao-preliminar-index.component.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _programacao_preliminar_liberar_programacao_preliminar_liberar_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./programacao-preliminar-liberar/programacao-preliminar-liberar.component */ "./src/app/pages/sealog/programacao-preliminar/programacao-preliminar-liberar/programacao-preliminar-liberar.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 ProgramacaoPreliminarRoutes = [
    {
        path: "",
        component: _programacao_preliminar_index_programacao_preliminar_index_component__WEBPACK_IMPORTED_MODULE_2__["ProgramacaoPreliminarIndexComponent"],
        data: {
            breadcrumb: "programacaoPreliminar",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__["ActionForm"].index }
        }
    },
    {
        path: "liberar",
        component: _programacao_preliminar_liberar_programacao_preliminar_liberar_component__WEBPACK_IMPORTED_MODULE_4__["ProgramacaoPreliminarLiberarComponent"],
        data: {
            breadcrumb: "programacaoPreliminar",
            breadcrumbSub: "liberar"
        }
    },
];
var ProgramacaoPreliminarRoutingModule = /** @class */ (function () {
    function ProgramacaoPreliminarRoutingModule() {
    }
    ProgramacaoPreliminarRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(ProgramacaoPreliminarRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]],
        })
    ], ProgramacaoPreliminarRoutingModule);
    return ProgramacaoPreliminarRoutingModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgramacaoPreliminarService", function() { return ProgramacaoPreliminarService; });
/* 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 rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/base/base.service */ "./src/app/shared/services/base/base.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 __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};






var ProgramacaoPreliminarService = /** @class */ (function (_super) {
    __extends(ProgramacaoPreliminarService, _super);
    function ProgramacaoPreliminarService(http) {
        var _this = _super.call(this, http, "sealog/programacaoPreliminar") || this;
        _this.configs = {
            natOperacaoPortolog: "",
            tipoCargaPortolog: "",
            grupoProdutoPortolog: ""
        };
        return _this;
    }
    ProgramacaoPreliminarService.prototype.getByFiltro = function (filtro) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/sealog/programacaoPreliminar/getByFiltro", filtro)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError)).toPromise();
    };
    ProgramacaoPreliminarService.prototype.cancelarLiberacao = function (regPreliminar) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/sealog/programacaoPreliminar/cancelarLiberacao", { regPreliminar: regPreliminar })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ProgramacaoPreliminarService.prototype.programacaoPreliminarGrava = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/sealog/programacaoPreliminar/programacaoPreliminarGrava", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ProgramacaoPreliminarService.prototype.getComboDtProgramada = function () {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/sealog/programacaoPreliminar/getComboDtProgramada")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ProgramacaoPreliminarService.prototype.getProgPreliminarLiberar = function (filtro) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/sealog/programacaoPreliminar/getProgPreliminarLiberar", filtro)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ProgramacaoPreliminarService.prototype.setFlagLibera = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/sealog/programacaoPreliminar/setFlagLibera", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ProgramacaoPreliminarService.prototype.selecionaTodos = function () {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/sealog/programacaoPreliminar/selecionaTodos")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ProgramacaoPreliminarService.prototype.programacaoPreliminarLibera = function () {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/sealog/programacaoPreliminar/libera")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ProgramacaoPreliminarService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    ProgramacaoPreliminarService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], ProgramacaoPreliminarService);
    return ProgramacaoPreliminarService;
}(app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_5__["BaseService"]));



/***/ })

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