(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-veiculo-saida-vagao-saida-vagao-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/saida-vagao/saida-vagao-index/saida-vagao-index.component.html":
/*!************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/saida-vagao/saida-vagao-index/saida-vagao-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\"></app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <div>\r\n        <button class=\"btn btn-success mr-2\" (click)=\"selectAll()\" type=\"button\">\r\n            {{ 'buttons.selecionaTodos' | translate }}\r\n        </button>\r\n        <button class=\"btn btn-success mr-2\" (click)=\"liberar()\" type=\"button\">{{\r\n            'buttons.liberarSelecionados' | translate }}\r\n        </button>\r\n    </div>\r\n    <div class=\"clearfix\">&nbsp;</div>\r\n    <div class=\"table-responsive\" style=\"height: 300px; overflow: auto;\">\r\n        <table id=\"dtEntradaVagao\" 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>{{ 'labels.registro' | translate}}</th>\r\n                    <th>{{ 'labels.cliente' | translate}}</th>\r\n                    <th>{{ 'labels.transportadora' | translate}}</th>\r\n                    <th>{{ 'labels.placa' | translate}}</th>\r\n                    <th>{{ 'labels.entrada' | translate}}</th>\r\n                    <th>{{ 'labels.produto' | translate }}</th>\r\n                </tr>\r\n            </thead>\r\n            <tbody>\r\n                <tr *ngFor=\"let t of service.dados; index as i\" (dblclick)=\"_dbClick(t, i)\">\r\n                    <td class=\"text-center\">\r\n                        <label class=\"chk\">\r\n                            <input type=\"checkbox\" id=\"seleciona\" name=\"seleciona\" value=\"checked\"\r\n                                (ngModelChange)=\"t.selecionado = $event ? 'S' : 'N'\" \r\n                                [ngModel]=\"t.selecionado ==='S'\"\r\n                                style=\"margin-left:auto; margin-right:auto;\" disabled>\r\n                            <span [ngClass]=\"{'red':t.flag == true ? true : false}\"></span>\r\n                        </label>\r\n                    </td>\r\n                    <td>{{ t.regControle }}</td>\r\n                    <td>{{ t.cliente }}</td>\r\n                    <td>{{ t.nomeTransp }}</td>\r\n                    <td>{{ t.placa }}</td>                    \r\n                    <td>{{ t.dtEntrada | date: 'dd/MM/yyyy HH:mm' }}</td>\r\n                    <td>{{ t.produto }}</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</div>\r\n\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n<app-propriedades></app-propriedades>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".chk input {\n  display: none;\n}\n\n.chk span {\n  width: 18px;\n  height: 18px;\n  display: block;\n  background-color: #fff;\n  border: 1px solid #DDD;\n  border-radius: 18px;\n}\n\nspan.red {\n  background-color: #c03;\n}\n\n.tableFixHead {\n  overflow-y: auto;\n  height: 100px;\n}\n\n.tableFixHead thead th {\n  position: -webkit-sticky;\n  position: sticky;\n  top: 0;\n}\n\n/* Just common table stuff. Really. */\n\ntable {\n  border-collapse: collapse;\n  width: 100%;\n}\n\nth,\ntd {\n  padding: 5px 10px;\n  white-space: nowrap;\n}\n\nth {\n  background: #eee;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvdmVpY3Vsby9zYWlkYS12YWdhby9zYWlkYS12YWdhby1pbmRleC9DOlxcQ29ycG9yYXRlXFxDb3Jwb3JhdGVXZWJEZXNlbnZcXF91bmlzb2x1dGlvbi9zcmNcXGFwcFxccGFnZXNcXHZlaWN1bG9cXHNhaWRhLXZhZ2FvXFxzYWlkYS12YWdhby1pbmRleFxcc2FpZGEtdmFnYW8taW5kZXguY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL3BhZ2VzL3ZlaWN1bG8vc2FpZGEtdmFnYW8vc2FpZGEtdmFnYW8taW5kZXgvc2FpZGEtdmFnYW8taW5kZXguY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxhQUFBO0FDQ0o7O0FERUE7RUFDSSxXQUFBO0VBQ0EsWUFBQTtFQUNBLGNBQUE7RUFDQSxzQkFBQTtFQUNBLHNCQUFBO0VBQ0EsbUJBQUE7QUNDSjs7QURFQTtFQUNJLHNCQUFBO0FDQ0o7O0FERUE7RUFDSSxnQkFBQTtFQUNBLGFBQUE7QUNDSjs7QURFQTtFQUNJLHdCQUFBO0VBQUEsZ0JBQUE7RUFDQSxNQUFBO0FDQ0o7O0FERUEscUNBQUE7O0FBQ0E7RUFDSSx5QkFBQTtFQUNBLFdBQUE7QUNDSjs7QURFQTs7RUFFSSxpQkFBQTtFQUNBLG1CQUFBO0FDQ0o7O0FERUE7RUFDSSxnQkFBQTtBQ0NKIiwiZmlsZSI6InNyYy9hcHAvcGFnZXMvdmVpY3Vsby9zYWlkYS12YWdhby9zYWlkYS12YWdhby1pbmRleC9zYWlkYS12YWdhby1pbmRleC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5jaGsgaW5wdXQge1xyXG4gICAgZGlzcGxheTogbm9uZTtcclxufVxyXG5cclxuLmNoayBzcGFuIHtcclxuICAgIHdpZHRoOiAxOHB4O1xyXG4gICAgaGVpZ2h0OiAxOHB4O1xyXG4gICAgZGlzcGxheTogYmxvY2s7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xyXG4gICAgYm9yZGVyOiAxcHggc29saWQgI0RERDtcclxuICAgIGJvcmRlci1yYWRpdXM6IDE4cHg7XHJcbn1cclxuXHJcbnNwYW4ucmVkIHtcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICNjMDM7XHJcbn1cclxuXHJcbi50YWJsZUZpeEhlYWQge1xyXG4gICAgb3ZlcmZsb3cteTogYXV0bztcclxuICAgIGhlaWdodDogMTAwcHg7XHJcbn1cclxuXHJcbi50YWJsZUZpeEhlYWQgdGhlYWQgdGgge1xyXG4gICAgcG9zaXRpb246IHN0aWNreTtcclxuICAgIHRvcDogMDtcclxufVxyXG5cclxuLyogSnVzdCBjb21tb24gdGFibGUgc3R1ZmYuIFJlYWxseS4gKi9cclxudGFibGUge1xyXG4gICAgYm9yZGVyLWNvbGxhcHNlOiBjb2xsYXBzZTtcclxuICAgIHdpZHRoOiAxMDAlO1xyXG59XHJcblxyXG50aCxcclxudGQge1xyXG4gICAgcGFkZGluZzogNXB4IDEwcHg7XHJcbiAgICB3aGl0ZS1zcGFjZTogbm93cmFwO1xyXG59XHJcblxyXG50aCB7XHJcbiAgICBiYWNrZ3JvdW5kOiAjZWVlO1xyXG59IiwiLmNoayBpbnB1dCB7XG4gIGRpc3BsYXk6IG5vbmU7XG59XG5cbi5jaGsgc3BhbiB7XG4gIHdpZHRoOiAxOHB4O1xuICBoZWlnaHQ6IDE4cHg7XG4gIGRpc3BsYXk6IGJsb2NrO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICBib3JkZXI6IDFweCBzb2xpZCAjREREO1xuICBib3JkZXItcmFkaXVzOiAxOHB4O1xufVxuXG5zcGFuLnJlZCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNjMDM7XG59XG5cbi50YWJsZUZpeEhlYWQge1xuICBvdmVyZmxvdy15OiBhdXRvO1xuICBoZWlnaHQ6IDEwMHB4O1xufVxuXG4udGFibGVGaXhIZWFkIHRoZWFkIHRoIHtcbiAgcG9zaXRpb246IHN0aWNreTtcbiAgdG9wOiAwO1xufVxuXG4vKiBKdXN0IGNvbW1vbiB0YWJsZSBzdHVmZi4gUmVhbGx5LiAqL1xudGFibGUge1xuICBib3JkZXItY29sbGFwc2U6IGNvbGxhcHNlO1xuICB3aWR0aDogMTAwJTtcbn1cblxudGgsXG50ZCB7XG4gIHBhZGRpbmc6IDVweCAxMHB4O1xuICB3aGl0ZS1zcGFjZTogbm93cmFwO1xufVxuXG50aCB7XG4gIGJhY2tncm91bmQ6ICNlZWU7XG59Il19 */");

/***/ }),

/***/ "./src/app/pages/veiculo/saida-vagao/saida-vagao-index/saida-vagao-index.component.ts":
/*!********************************************************************************************!*\
  !*** ./src/app/pages/veiculo/saida-vagao/saida-vagao-index/saida-vagao-index.component.ts ***!
  \********************************************************************************************/
/*! exports provided: SaidaVagaoIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SaidaVagaoIndexComponent", function() { return SaidaVagaoIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _saida_vagao_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../saida-vagao.model */ "./src/app/pages/veiculo/saida-vagao/saida-vagao.model.ts");
/* harmony import */ var _saida_vagao_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../saida-vagao.constants */ "./src/app/pages/veiculo/saida-vagao/saida-vagao.constants.ts");
/* harmony import */ var _saida_vagao_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../saida-vagao.service */ "./src/app/pages/veiculo/saida-vagao/saida-vagao.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 SaidaVagaoIndexComponent = /** @class */ (function (_super) {
    __extends(SaidaVagaoIndexComponent, _super);
    function SaidaVagaoIndexComponent(router, datatablesService, funcoesService, messageService, permissoesUtils, service, loginService) {
        var _this = _super.call(this, new _saida_vagao_constants__WEBPACK_IMPORTED_MODULE_9__["SaidaVagaoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.datatablesService = datatablesService;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.service = service;
        _this.loginService = loginService;
        _this.data = new _saida_vagao_model__WEBPACK_IMPORTED_MODULE_8__["SaidaVagaoDto"]();
        _this.constantes = new _saida_vagao_constants__WEBPACK_IMPORTED_MODULE_9__["SaidaVagaoConstants"]();
        _this.hasDados = false;
        _this.mensagens = [];
        _this.target = _this.funcoesService.getTargetLocation();
        _this._atualizar = function () {
            var base = _this;
            base.geraDados = false;
            _this.refresh();
        };
        _this.refresh = function () {
            var object = {
                tipoMov: "S",
                geraDados: _this.geraDados
            };
            _this.service.geraTmp(object).subscribe(function (resp) {
                _this.service.dados = resp;
                _this.service.dados.map(function (val) {
                    if (val.sitReg === 'S') {
                        val.selecionado = "S";
                        val.flag = true;
                    }
                    else {
                        val.selecionado = "N";
                        val.flag = false;
                    }
                });
                _this.hasDados = resp && resp.length > 0;
            });
        };
        _this.permissoes = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 2, function () {
                _super.prototype.permissoes.call(_this, _this.constantes);
            });
        };
        return _this;
    }
    SaidaVagaoIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        var base = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            base.geraDados = true;
            base.refresh();
        }, function () { return _this.permissoesUtils.back(); }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: '_atualizar', func: function () { return _this._atualizar; } },
        ]);
    };
    SaidaVagaoIndexComponent.prototype._dbClick = function (item, index) {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _this.currentIndex = index;
            item.selecionado = item.selecionado === "S" ? "N" : "S";
            _this.rowSelect(item);
        });
    };
    SaidaVagaoIndexComponent.prototype.rowSelect = function (item) {
        var _this = this;
        this.service.dados.forEach(function (val) {
            if (val.regControle === item.regControle) {
                val.flag = !val.flag;
                _this.service.setTmpCtvLiberacaoVagao(val).subscribe();
            }
        });
    };
    SaidaVagaoIndexComponent.prototype.selectAll = function () {
        var _this = this;
        this.service.selectAll({ tipoMov: "S" }).subscribe(function (resp) {
            _this.service.dados = resp;
            _this.service.dados.map(function (val) {
                if (val.sitReg === 'S') {
                    val.selecionado = "S";
                    val.flag = true;
                }
                else {
                    val.selecionado = "N";
                    val.flag = false;
                }
            });
        });
    };
    SaidaVagaoIndexComponent.prototype.liberar = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, 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:
                        this.countMarcado = 0;
                        this.service.dados.forEach(function (obj) {
                            if (obj.selecionado === 'S') {
                                _this.countMarcado++;
                            }
                        });
                        if (this.countMarcado === 0) {
                            this.messageService.warning("titles.saidaVagao", "messages.naoExistemRegistrosSelecionados");
                            return [2 /*return*/];
                        }
                        return [4 /*yield*/, this.service.podeLiberar({ tipoMov: "S" }).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.messageService.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.saidaVagao", m); });
                            return [2 /*return*/];
                        }
                        else {
                            this.executeLiberaVagao();
                        }
                        return [2 /*return*/];
                }
            });
        }); });
    };
    SaidaVagaoIndexComponent.prototype.executeLiberaVagao = 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.liberaVagao({ tipoMov: "S" }).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (this.funcoesService.isNotUndefinedOrNull(validationResult)) {
                            if (!validationResult.isValid) {
                                mensagens = this.messageService.validationResult(validationResult);
                                mensagens.forEach(function (m) { return _this.messageService.warning("titles.saidaVagao", m); });
                                return [2 /*return*/];
                            }
                            else {
                                this.messageService.saveSuccess("titles.saidaVagao");
                                this.geraDados = true;
                                this.refresh();
                            }
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    SaidaVagaoIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: _saida_vagao_service__WEBPACK_IMPORTED_MODULE_10__["SaidaVagaoService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"] }
    ]; };
    SaidaVagaoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-saida-vagao-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./saida-vagao-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/saida-vagao/saida-vagao-index/saida-vagao-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./saida-vagao-index.component.scss */ "./src/app/pages/veiculo/saida-vagao/saida-vagao-index/saida-vagao-index.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            _saida_vagao_service__WEBPACK_IMPORTED_MODULE_10__["SaidaVagaoService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"]])
    ], SaidaVagaoIndexComponent);
    return SaidaVagaoIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/veiculo/saida-vagao/saida-vagao.constants.ts":
/*!********************************************************************!*\
  !*** ./src/app/pages/veiculo/saida-vagao/saida-vagao.constants.ts ***!
  \********************************************************************/
/*! exports provided: SaidaVagaoConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SaidaVagaoConstants", function() { return SaidaVagaoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var SaidaVagaoConstants = /** @class */ (function () {
    function SaidaVagaoConstants() {
        this.sisFormularioId = 230153;
        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.permissoes' }
        ];
        this.nomeForm = 'titles.saidaVagao';
        this.listaIndex = [
            { title: 'Atualizar', action: '_atualizar', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo', depitem: false },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
    }
    return SaidaVagaoConstants;
}());



/***/ }),

/***/ "./src/app/pages/veiculo/saida-vagao/saida-vagao.model.ts":
/*!****************************************************************!*\
  !*** ./src/app/pages/veiculo/saida-vagao/saida-vagao.model.ts ***!
  \****************************************************************/
/*! exports provided: SaidaVagaoDto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SaidaVagaoDto", function() { return SaidaVagaoDto; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var SaidaVagaoDto = /** @class */ (function () {
    function SaidaVagaoDto() {
    }
    return SaidaVagaoDto;
}());



/***/ }),

/***/ "./src/app/pages/veiculo/saida-vagao/saida-vagao.module.ts":
/*!*****************************************************************!*\
  !*** ./src/app/pages/veiculo/saida-vagao/saida-vagao.module.ts ***!
  \*****************************************************************/
/*! exports provided: SaidaVagaoModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SaidaVagaoModule", function() { return SaidaVagaoModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _saida_vagao_rounting_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./saida-vagao.rounting.module */ "./src/app/pages/veiculo/saida-vagao/saida-vagao.rounting.module.ts");
/* harmony import */ var _saida_vagao_index_saida_vagao_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./saida-vagao-index/saida-vagao-index.component */ "./src/app/pages/veiculo/saida-vagao/saida-vagao-index/saida-vagao-index.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




var SaidaVagaoModule = /** @class */ (function () {
    function SaidaVagaoModule() {
    }
    SaidaVagaoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _saida_vagao_rounting_module__WEBPACK_IMPORTED_MODULE_2__["SaidaVagaoRoutingModule"]],
            declarations: [
                _saida_vagao_index_saida_vagao_index_component__WEBPACK_IMPORTED_MODULE_3__["SaidaVagaoIndexComponent"]
            ]
        })
    ], SaidaVagaoModule);
    return SaidaVagaoModule;
}());



/***/ }),

/***/ "./src/app/pages/veiculo/saida-vagao/saida-vagao.rounting.module.ts":
/*!**************************************************************************!*\
  !*** ./src/app/pages/veiculo/saida-vagao/saida-vagao.rounting.module.ts ***!
  \**************************************************************************/
/*! exports provided: SaidaVagaoRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SaidaVagaoRoutingModule", function() { return SaidaVagaoRoutingModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _saida_vagao_index_saida_vagao_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./saida-vagao-index/saida-vagao-index.component */ "./src/app/pages/veiculo/saida-vagao/saida-vagao-index/saida-vagao-index.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




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



/***/ }),

/***/ "./src/app/pages/veiculo/saida-vagao/saida-vagao.service.ts":
/*!******************************************************************!*\
  !*** ./src/app/pages/veiculo/saida-vagao/saida-vagao.service.ts ***!
  \******************************************************************/
/*! exports provided: SaidaVagaoService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SaidaVagaoService", function() { return SaidaVagaoService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var SaidaVagaoService = /** @class */ (function () {
    function SaidaVagaoService(http) {
        this.http = http;
    }
    SaidaVagaoService.prototype.geraTmp = function (data) {
        return this.http.
            post(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/veiculos/saidaVagao/geraTmp", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    SaidaVagaoService.prototype.setTmpCtvLiberacaoVagao = function (data) {
        return this.http
            .put(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/veiculos/saidaVagao/setTmpCtvLiberacaoVagao", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    SaidaVagaoService.prototype.selectAll = function (data) {
        return this.http
            .put(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/veiculos/saidaVagao/selectAll", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    SaidaVagaoService.prototype.podeLiberar = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/veiculos/saidaVagao/podeLiberar", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    SaidaVagaoService.prototype.liberaVagao = function (filter) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/veiculos/saidaVagao/liberaVagao", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    SaidaVagaoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    SaidaVagaoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], SaidaVagaoService);
    return SaidaVagaoService;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-veiculo-saida-vagao-saida-vagao-module.js.map