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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao-arqueacao/cadastro-vagao-arqueacao.component.html":
/*!******************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao-arqueacao/cadastro-vagao-arqueacao.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=\"uni-botoes\" *ngIf=\"!showAdd\">\r\n    <div class=\"btn-group\">\r\n        <button title=\"{{ 'buttons.novo' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"create()\"\r\n                [disabled]=\"disabled\">\r\n            <i class=\"fa fa-plus\"></i>\r\n        </button>\r\n        <button title=\"{{ 'buttons.visualizar' | translate }}\" (click)=\"detail()\" class=\"btn uni-btn btn-sm\"\r\n                [disabled]=\"funcoesService.showButtons.detail(actionForm,  dataAux.sequencia)\">\r\n            <i class=\"fa fa-eye\"></i>\r\n        </button>\r\n        <button title=\"{{ 'buttons.editar' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"edit()\"\r\n                [disabled]=\"disabled || funcoesService.showButtons.detail(actionForm,  dataAux.sequencia)\">\r\n            <i class=\"fa fa-edit\"></i>\r\n        </button>\r\n        <button title=\"{{ 'buttons.excluir' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"remove()\"\r\n                [disabled]=\"disabled || funcoesService.showButtons.detail(actionForm,  dataAux.sequencia)\">\r\n            <i class=\"fa fa-remove\"></i>\r\n        </button>\r\n    </div>\r\n</div>\r\n\r\n<div class=\"uni-botoes\" *ngIf=\"showAdd\">\r\n    <div class=\"btn-group\">\r\n        <button title=\"{{ 'buttons.editar' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"edit()\"\r\n                [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm,  dataAux.sequencia)\">\r\n            <i class=\"fa fa-edit\"></i>\r\n        </button>\r\n        <button title=\"{{ 'buttons.voltar' | translate }}\" (click)=\"back()\" type=\"button\"\r\n                class=\"btn uni-btn btn-sm\">\r\n            <i class=\"fa fa-arrow-left\"></i>\r\n        </button>\r\n    </div>\r\n</div>\r\n\r\n<div class=\"clerfix\">&nbsp;</div>\r\n\r\n<app-card-container tituloCard=\"placa\">\r\n    <input\r\n      value=\"{{cadastroPlacaId}}\"\r\n      class=\"form-control form-control-sm\"\r\n      type=\"text\"\r\n      disabled\r\n    />\r\n</app-card-container>\r\n\r\n<div *ngIf=\"showAdd\">\r\n    <form class=\"form\" #formRequisicaoDescargaItem=\"ngForm\" (ngSubmit)=\"onSubmit(formRequisicaoDescargaItem)\">\r\n        <div class=\"row\">\r\n            <div class=\"col-lg-12\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"row\">\r\n                    <div class=\"col-lg-2\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"alturaArq\" class=\"required\">{{'labels.altura'| translate }}</label>\r\n                            <input type=\"text\" id=\"alturaArq\" name=\"alturaArq\"\r\n                                    class=\"form-control form-control-sm\"\r\n                                    [(ngModel)]=\"data.alturaArq\">\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"col-lg-2\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"volumeArq\" class=\"required\">{{'labels.volume'| translate }}</label>\r\n                            <input type=\"text\" id=\"volumeArq\" name=\"volumeArq\"\r\n                                    class=\"form-control form-control-sm\"\r\n                                    [(ngModel)]=\"data.volumeArq\">\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"form-group\">\r\n                    <button class=\"btn btn-success\" type=\"submit\"\r\n                            [disabled]=\"funcoesService.isDetail(actionForm)\">{{ 'buttons.salvar' | translate }}\r\n                    </button>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </form>\r\n</div>\r\n\r\n<div class=\"row\" *ngIf=\"!showAdd\">\r\n    <div class=\"col-lg-12\">\r\n        <div class=\"table-overflow\">\r\n            <table class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\">\r\n                <thead>\r\n                <tr>\r\n                    <th class=\"text-center\">{{ 'labels.altura' | translate }}</th>\r\n                    <th class=\"text-center\">{{ 'labels.volume' | translate }}</th>\r\n                </tr>\r\n                </thead>\r\n                <tbody>\r\n                <tr *ngFor=\"let c of dados | removeExcluidos\" class=\"clickable\"\r\n                    [ngClass]=\"{ 'info' : c === dataAux }\" (click)=\"(dataAux = c)\">\r\n                    <td class=\"text-center\">{{c.alturaArq}}</td>\r\n                    <td class=\"text-center\">{{c.volumeArq}}</td>\r\n                </tr>\r\n                <tr *ngIf=\"!hasDados\">\r\n                    <th colspan=\"9\">\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>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal fade\" id=\"cp-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"uni-modal-dialog-md-40\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.pesquisaDePlaca' | translate }}</h6>\n            </div>\n            <div class=\"modal-body\">\n                <div class=\"row\">\n                    <div class=\"col-lg-12\">\n                        <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n                            <div class=\"row\">\n                                <div class=\"col-lg-4\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"cadastroPlacaId\">{{ 'labels.placa' | translate}}</label>\n                                        <input id=\"cadastroPlacaId\"\n                                               name=\"cadastroPlacaId\"\n                                               [(ngModel)]=\"filtro.cadastroPlacaId\"\n                                               class=\"form-control form-control-sm\">\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <app-field-container>\n                                            <app-pesquisa-destinatario\n                                                    id=\"destinatarioTransportadoraId\"\n                                                    name=\"destinatarioTransportadoraId\"\n                                                    label=\"transportadora\"\n                                                    [(ngModel)]=\"filtro.destinatarioIdTransportadora\"\n                                                    showCgcCpf=\"false\"\n                                                    showInscricao=\"false\"\n                                                    tipoDestinatario=\"C\"\n                                                    modalTitle=\"{{ 'titles.pesquisaDeTransportadora' | translate }}\">\n                                            </app-pesquisa-destinatario>\n                                        </app-field-container>\n                                    </div>\n                                </div>\n                            </div>\n\n                            <div class=\"modal-footer\">\n                                <button class=\"btn btn-success\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}</button>\n                                <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\n                            </div>\n                        </form>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao-form/cadastro-vagao-form.component.html":
/*!********************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao-form/cadastro-vagao-form.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\n  [botoesComando]=\"constantes.listaForm\"\n  [formAction]=\"actionForm\"\n  [itemData]=\"data.cadastroPlacaId\"\n  [sisFormularioId]=\"constantes.sisFormularioId\"\n>\n</app-menu-command-bar>\n<div class=\"row\">\n  <div class=\"col-lg-12\">\n    <div class=\"section-comand-bar\">\n      <div class=\"tab-content top\">\n        <app-form-legenda></app-form-legenda>\n        <div class=\"clearfix\">\n          <ul class=\"nav nav-tabs\">\n            <li class=\"nav-item\">\n              <a class=\"nav-link active show\" data-toggle=\"tab\" href=\"#ta\">{{\n                \"labels.dados\" | translate\n              }}</a>\n            </li>\n            <li class=\"nav-item\">\n              <a class=\"nav-link\" data-toggle=\"tab\" href=\"#tb\">{{\n                \"labels.arqueacao\" | translate\n              }}</a>\n            </li>\n          </ul>\n        </div>\n        <div class=\"tab-content top\">\n          <div class=\"tab-pane active show\" id=\"ta\">\n            <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\n              <app-validacoes></app-validacoes>\n              <div class=\"row\">\n                <div class=\"col-lg-2\">\n                  <div class=\"form-group form-group-sm\">\n                    <label for=\"placa\" class=\"required\">{{\n                      \"labels.placa\" | translate\n                    }}</label>\n                    <input\n                      id=\"placa\"\n                      name=\"cadastroPlacaId\"\n                      maxlength=\"18\"\n                      [(ngModel)]=\"data.cadastroPlacaId\"\n                      class=\"form-control form-control-sm\"\n                      type=\"text\"\n                      [disabled]=\"!funcoesService.isCreate(actionForm)\"\n                      autofocus\n                      data-title=\"{{ 'labels.Placa' | translate }}\"\n                    />\n                  </div>\n                </div>\n                <div class=\"col-lg-6 col-md-12\">\n                  <label></label>\n                  <div class=\"custom-control custom-checkbox\">\n                      <input id=\"flagAtivo\" name=\"flagAtivo\" [ngModel]=\"data.flagAtivo === 'S'\"\n                          (ngModelChange)=\"data.flagAtivo=$event?'S':'N'\"\n                          class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                          [disabled]=\"funcoesService.isDetail(actionForm)\">\n                      <label class=\"custom-control-label\" for=\"flagAtivo\">{{'labels.ativo' |\n                          translate}}</label>\n                  </div>\n              </div>\n              </div>\n              <div class=\"row\">\n                <div class=\"col-lg-6\">\n                  <div class=\"form-group form-group-sm\">\n                    <app-pesquisa-destinatario\n                      id=\"destinatarioIdTransportadora\"\n                      name=\"destinatarioIdTransportadora\"\n                      label=\"transportadora\"\n                      [(ngModel)]=\"data.destinatarioIdTransportadora\"\n                      [disabled]=\"funcoesService.isDetail(actionForm)\"\n                      [inSelected]=\"data.transportadora\"\n                      showCgcCpf=\"false\"\n                      showInscricao=\"false\"\n                      tipoDestinatario=\"T\"\n                      modalTitle=\"{{\n                        'titles.pesquisaDeTransportadora' | translate\n                      }}\"\n                    ></app-pesquisa-destinatario>\n                  </div>\n                </div>\n              </div>\n              <div class=\"row\">\n                <div class=\"col-lg-3\">\n                  <div class=\"form-group form-group-sm\">\n                    <label for=\"pesoMax\">{{\n                      \"labels.pesoMaxVagao\" | translate\n                    }}</label>\n                    <input\n                      id=\"pesoMax\"\n                      name=\"pesoMaxVagao\"\n                      maxlength=\"9\"\n                      [(ngModel)]=\"data.pesoMax\"\n                      class=\"form-control form-control-sm\"\n                      type=\"text\"\n                      [disabled]=\"funcoesService.isDetail(actionForm)\"\n                    />\n                  </div>\n                </div>\n              </div>\n              <div class=\"row\">\n                <div class=\"col-lg-3\">\n                  <div class=\"form-group form-group-sm\">\n                    <label for=\"certAfericao\">{{\n                      \"labels.certAfericao\" | translate\n                    }}</label>\n                    <input\n                      id=\"certAfericao\"\n                      name=\"certAfericao\"\n                      [(ngModel)]=\"data.certAfericao\"\n                      class=\"form-control form-control-sm\"\n                      type=\"text\"\n                      maxlength=\"9\"\n                      mask=\"999999999\"\n                      [disabled]=\"funcoesService.isDetail(actionForm)\"\n                    />\n                  </div>\n                </div>\n                <div class=\"col-lg-3\">\n                  <div class=\"form-group form-group-sm\">\n                    <label for=\"dtCertificado\">{{\n                      \"labels.dtCertificado\" | translate\n                    }}</label>\n                    <app-data\n                      id=\"dtCertificado\"\n                      name=\"dtCertificado\"\n                      [(ngModel)]=\"data.dtCertificado\"\n                      [disabled]=\"funcoesService.isDetail(actionForm)\"\n                    ></app-data>\n                  </div>\n                </div>\n              </div>\n              <div class=\"row\">\n                <div class=\"col-lg-3\">\n                  <div class=\"form-group form-group-sm\">\n                    <label for=\"espacoVazio\">{{\n                      \"labels.espacoVazio\" | translate\n                    }}</label>\n                    <input\n                      id=\"espacoVazio\"\n                      name=\"espacoVazio\"\n                      maxlength=\"4\"\n                      [(ngModel)]=\"data.espacoVazio\"\n                      class=\"form-control form-control-sm\"\n                      type=\"text\"\n                      [disabled]=\"funcoesService.isDetail(actionForm)\"\n                    />\n                  </div>\n                </div>\n                <div class=\"col-lg-3\">\n                  <div class=\"form-group form-group-sm\">\n                    <label for=\"dtValidadeAfericao\">{{\n                      \"labels.dtValidadeAfericao\" | translate\n                    }}</label>\n                    <app-data\n                      id=\"dtValidadeAfericao\"\n                      name=\"dtValidadeAfericao\"\n                      [(ngModel)]=\"data.dtValidadeAfericao\"\n                      [disabled]=\"funcoesService.isDetail(actionForm)\"\n                    ></app-data>\n                  </div>\n                </div>\n              </div>\n              <div class=\"row\">\n                <div class=\"col-lg-3\">\n                  <div class=\"form-group form-group-sm\">\n                    <label for=\"dtValidadeCl\">{{\n                      \"labels.validadeCheckist\" | translate\n                    }}</label>\n                    <app-data\n                      id=\"dtValidadeCl\"\n                      name=\"validadeCheckist\"\n                      [(ngModel)]=\"data.dtValidadeCl\"\n                      [disabled]=\"funcoesService.isDetail(actionForm)\"\n                    ></app-data>\n                  </div>\n                </div>\n              </div>\n              <div class=\"row\">\n                <div class=\"col-lg-4\">\n                  <span *ngIf=\"data.sisCampoAdds\">\n                    <div\n                      *ngFor=\"let d of data.sisCampoAdds\"\n                      [class.col-lg-6]=\"!d.colunas\"\n                    >\n                      <app-campos-adicionais\n                        name=\"{{ d.campo }}\"\n                        [sisCampoAdd]=\"d\"\n                        [(ngModel)]=\"d.valorCampo\"\n                        [disabled]=\"funcoesService.isDetail(actionForm)\"\n                        [required]=\"d.obrigatorio === 'S'\"\n                      ></app-campos-adicionais>\n                    </div>\n                  </span>\n                </div>\n              </div>\n              <div class=\"row\">\n                <div class=\"col-4\">\n                  <div class=\"form-group\">\n                    <button\n                      class=\"btn btn-success mr-2\"\n                      type=\"submit\"\n                      [disabled]=\"funcoesService.isDetail(actionForm)\"\n                    >\n                      {{ \"buttons.salvar\" | translate }}\n                    </button>\n                    <button\n                      class=\"btn btn-success\"\n                      (click)=\"saveAndCreate(f)\"\n                      type=\"button\"\n                      [disabled]=\"funcoesService.isDetail(actionForm)\"\n                    >\n                      {{ \"buttons.salvarNovo\" | translate }}\n                    </button>\n                  </div>\n                </div>\n              </div>\n            </form>\n          </div>\n          <div class=\"tab-pane\" id=\"tb\">\n            <app-cadastro-vagao-arqueacao\n              [cadastroPlacaId]=\"data.cadastroPlacaId\"\n              [dados]=\"data.cadastroPlacaArqueacoes\"\n              (dataResult)=\"refreshItens($event)\"\n              [disabled]=\"funcoesService.isDetail(actionForm)\"\n            >\n            </app-cadastro-vagao-arqueacao>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao-index/cadastro-vagao-index.component.html":
/*!**********************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao-index/cadastro-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\"\n                      [formAction]=\"actionForm\"\n                      [itemData]=\"data.cadastroPlacaId\"\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <table id=\"dtCadastroVagao\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\n</div>\n\n<app-cadastro-vagao-filter [data]=\"filtro\" (filtrar)=\"executaFiltro($event)\"></app-cadastro-vagao-filter>\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n");

/***/ }),

/***/ "./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao-arqueacao/cadastro-vagao-arqueacao.component.ts":
/*!**************************************************************************************************************!*\
  !*** ./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao-arqueacao/cadastro-vagao-arqueacao.component.ts ***!
  \**************************************************************************************************************/
/*! exports provided: CadastroVagaoArqueacaoComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CadastroVagaoArqueacaoComponent", function() { return CadastroVagaoArqueacaoComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* 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 _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _cadastro_vagao_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../cadastro-vagao.model */ "./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao.model.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};






var CadastroVagaoArqueacaoComponent = /** @class */ (function () {
    function CadastroVagaoArqueacaoComponent(messageService, funcoesService) {
        this.messageService = messageService;
        this.funcoesService = funcoesService;
        this.dataResult = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.dataAux = new _cadastro_vagao_model__WEBPACK_IMPORTED_MODULE_5__["CadastroVagaoArqueacao"]();
        this.data = new _cadastro_vagao_model__WEBPACK_IMPORTED_MODULE_5__["CadastroVagaoArqueacao"]();
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
        this.hasDados = false;
    }
    CadastroVagaoArqueacaoComponent.prototype.ngDoCheck = function () {
        this.hasDados =
            this.dados && this.dados.length > 0 &&
                this.dados.filter(function (v) {
                    if (v["sitReg"] !== "E") {
                        return true;
                    }
                    return false;
                }).length > 0;
        if (!this.isDoCheck) {
            if (this.dados) {
                for (var i = 1; i <= this.dados.length; i++) {
                    this.dados[i - 1]["sequencia"] = i;
                }
                this.isDoCheck = true;
            }
        }
    };
    CadastroVagaoArqueacaoComponent.prototype.create = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].create;
        this.data = new _cadastro_vagao_model__WEBPACK_IMPORTED_MODULE_5__["CadastroVagaoArqueacao"](this.cadastroPlacaId);
    };
    CadastroVagaoArqueacaoComponent.prototype.edit = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].edit;
        this.data = this.dataAux;
    };
    CadastroVagaoArqueacaoComponent.prototype.detail = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].detail;
        this.data = this.dataAux;
    };
    CadastroVagaoArqueacaoComponent.prototype.back = function () {
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
    };
    CadastroVagaoArqueacaoComponent.prototype.remove = function () {
        var _this = this;
        this.data = this.dataAux;
        if (!this.funcoesService.isUndefinedOrNull(this.data.sequencia)) {
            this.messageService.removeConfirm(function () {
                var i = _this.dados.findIndex(function (x) { return x.sequencia === _this.data.sequencia; });
                _this.data["sitReg"] = "E";
                _this.dados[i] = _this.data;
            });
        }
    };
    CadastroVagaoArqueacaoComponent.prototype.onSubmit = function (form) {
        var _this = this;
        if (form.invalid) {
            app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        if (this.data.sequencia && this.data.sequencia > 0) {
            if (this.dados.length > 0) {
                var i = this.dados.findIndex(function (x) { return x.sequencia === _this.data.sequencia; });
                this.dados[i] = this.data;
            }
            else {
                this.dados = [];
                this.dados.push(this.data);
            }
        }
        else {
            this.setSequencia();
            if (this.funcoesService.isUndefinedOrNull(this.dados)) {
                this.dados = [];
            }
            this.dados.push(this.data);
        }
        this.data = new _cadastro_vagao_model__WEBPACK_IMPORTED_MODULE_5__["CadastroVagaoArqueacao"]();
        this.dataResult.emit(this.dados);
        this.back();
    };
    CadastroVagaoArqueacaoComponent.prototype.setSequencia = function () {
        if (this.funcoesService.isUndefinedOrNull(this.data.item) || this.data.item === 0) {
            var s = this.dados ? this.dados.length : 0;
            this.data.sequencia = s + 1;
        }
        else {
            this.data.sequencia = this.data.sequencia;
        }
    };
    CadastroVagaoArqueacaoComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", String)
    ], CadastroVagaoArqueacaoComponent.prototype, "cadastroPlacaId", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Array)
    ], CadastroVagaoArqueacaoComponent.prototype, "dados", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], CadastroVagaoArqueacaoComponent.prototype, "disabled", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], CadastroVagaoArqueacaoComponent.prototype, "dataResult", void 0);
    CadastroVagaoArqueacaoComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-cadastro-vagao-arqueacao",
            template: __importDefault(__webpack_require__(/*! raw-loader!./cadastro-vagao-arqueacao.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao-arqueacao/cadastro-vagao-arqueacao.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"]])
    ], CadastroVagaoArqueacaoComponent);
    return CadastroVagaoArqueacaoComponent;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao-filter/cadastro-vagao-filter.component.ts":
/*!********************************************************************************************************!*\
  !*** ./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao-filter/cadastro-vagao-filter.component.ts ***!
  \********************************************************************************************************/
/*! exports provided: CadastroVagaoFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CadastroVagaoFilterComponent", function() { return CadastroVagaoFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _cadastro_vagao_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../cadastro-vagao.model */ "./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao.model.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};


var CadastroVagaoFilterComponent = /** @class */ (function () {
    function CadastroVagaoFilterComponent() {
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    CadastroVagaoFilterComponent.prototype.ngOnInit = function () {
        this.filtro = this.data;
    };
    CadastroVagaoFilterComponent.prototype.onSubmit = function (form) {
        if (!form.invalid) {
            this.filtrar.emit(this.filtro);
            jQuery("#cp-filter-dialog").modal("hide");
        }
    };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _cadastro_vagao_model__WEBPACK_IMPORTED_MODULE_1__["CadastroVagaoFilter"])
    ], CadastroVagaoFilterComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], CadastroVagaoFilterComponent.prototype, "filtrar", void 0);
    CadastroVagaoFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-cadastro-vagao-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./cadastro-vagao-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao-filter/cadastro-vagao-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [])
    ], CadastroVagaoFilterComponent);
    return CadastroVagaoFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao-form/cadastro-vagao-form.component.ts":
/*!****************************************************************************************************!*\
  !*** ./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao-form/cadastro-vagao-form.component.ts ***!
  \****************************************************************************************************/
/*! exports provided: CadastroVagaoFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CadastroVagaoFormComponent", function() { return CadastroVagaoFormComponent; });
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.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 _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.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_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 _cadastro_vagao_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../cadastro-vagao.service */ "./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao.service.ts");
/* harmony import */ var app_pages_cadastro_cadastro_vagao_cadastro_vagao_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/pages/cadastro/cadastro-vagao/cadastro-vagao.model */ "./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao.model.ts");
/* harmony import */ var _cadastro_vagao_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../cadastro-vagao.constants */ "./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao.constants.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.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 CadastroVagaoFormComponent = /** @class */ (function (_super) {
    __extends(CadastroVagaoFormComponent, _super);
    function CadastroVagaoFormComponent(login, router, messageService, activatedRoute, cadastroVagaoService, funcoesService, permissoesUtils) {
        var _this = _super.call(this, new _cadastro_vagao_constants__WEBPACK_IMPORTED_MODULE_8__["CadastroVagaoConstants"](), funcoesService) || this;
        _this.login = login;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.cadastroVagaoService = cadastroVagaoService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new app_pages_cadastro_cadastro_vagao_cadastro_vagao_model__WEBPACK_IMPORTED_MODULE_7__["CadastroVagao"]();
        _this.mensagens = [];
        _this.constantes = new _cadastro_vagao_constants__WEBPACK_IMPORTED_MODULE_8__["CadastroVagaoConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    CadastroVagaoFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            if (id) {
                _this.cadastroVagaoService.getById(id).subscribe(function (resp) {
                    _this.data = resp;
                    _this.data.transportadora = resp.transportadora;
                });
            }
            else {
                _this.data = new app_pages_cadastro_cadastro_vagao_cadastro_vagao_model__WEBPACK_IMPORTED_MODULE_7__["CadastroVagao"]();
                _this.getCamposAdicionais();
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    CadastroVagaoFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        if (this.data.cadastroPlacaArqueacoes !== undefined) {
            this.data.cadastroPlacaArqueacoes.forEach(function (item) {
                item.cadastroPlacaId = _this.data.cadastroPlacaId;
            });
        }
        this.data.logRotina = "Manutenção de Vagões";
        this.cadastroVagaoService
            .save(this.data, ((this.data.estadoId = this.login.getLogin().estadoIdFilial),
            this.funcoesService.isEdit(this.actionForm)))
            .subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result.validationResult);
            if (!result.validationResult.isValid) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.cadastroVagao");
                if (create) {
                    _this.data = new app_pages_cadastro_cadastro_vagao_cadastro_vagao_model__WEBPACK_IMPORTED_MODULE_7__["CadastroVagao"]();
                    _this.router.navigate([_this.target + "/cadastro/cadastroVagao/create"]);
                }
                else {
                    _this.back();
                }
            }
        });
    };
    CadastroVagaoFormComponent.prototype.edit = function () {
        this.router.navigate(["pages/cadastro/cadastroVagao", "edit", this.data.cadastroPlacaId]);
    };
    CadastroVagaoFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    CadastroVagaoFormComponent.prototype.back = function () {
        this.router.navigate(["pages/cadastro/cadastroVagao"]);
    };
    CadastroVagaoFormComponent.prototype.getCamposAdicionais = function () {
        var _this = this;
        this.funcoesService.camposAdicionais
            .get(this.constantes.sisFormularioId)
            .subscribe(function (data) {
            _this.data.sisCampoAdds = data;
        });
    };
    CadastroVagaoFormComponent.prototype.refreshItens = function (event) {
        this.data.cadastroPlacaArqueacoes = event;
    };
    CadastroVagaoFormComponent.ctorParameters = function () { return [
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_0__["LoginService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"] },
        { type: _cadastro_vagao_service__WEBPACK_IMPORTED_MODULE_6__["CadastroVagaoService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__["PermissoesUtilsService"] }
    ]; };
    CadastroVagaoFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-cadastro-vagao-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./cadastro-vagao-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao-form/cadastro-vagao-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_login_login_service__WEBPACK_IMPORTED_MODULE_0__["LoginService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"],
            _cadastro_vagao_service__WEBPACK_IMPORTED_MODULE_6__["CadastroVagaoService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__["PermissoesUtilsService"]])
    ], CadastroVagaoFormComponent);
    return CadastroVagaoFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_9__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CadastroVagaoIndexComponent", function() { return CadastroVagaoIndexComponent; });
/* 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 _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _cadastro_vagao_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../cadastro-vagao.service */ "./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao.service.ts");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_pages_cadastro_cadastro_vagao_cadastro_vagao_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/pages/cadastro/cadastro-vagao/cadastro-vagao.model */ "./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao.model.ts");
/* harmony import */ var _cadastro_vagao_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../cadastro-vagao.constants */ "./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao.constants.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.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 CadastroVagaoIndexComponent = /** @class */ (function (_super) {
    __extends(CadastroVagaoIndexComponent, _super);
    function CadastroVagaoIndexComponent(router, messageService, cadastroVagaoService, datatablesService, funcoesService, permissoesUtils) {
        var _this = _super.call(this, new _cadastro_vagao_constants__WEBPACK_IMPORTED_MODULE_7__["CadastroVagaoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.cadastroVagaoService = cadastroVagaoService;
        _this.datatablesService = datatablesService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new app_pages_cadastro_cadastro_vagao_cadastro_vagao_model__WEBPACK_IMPORTED_MODULE_6__["CadastroVagao"]();
        _this.constantes = new _cadastro_vagao_constants__WEBPACK_IMPORTED_MODULE_7__["CadastroVagaoConstants"]();
        _this.filtro = new app_pages_cadastro_cadastro_vagao_cadastro_vagao_model__WEBPACK_IMPORTED_MODULE_6__["CadastroVagaoFilter"]();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    CadastroVagaoIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _this.refresh();
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    CadastroVagaoIndexComponent.prototype.create = function () {
        this.router.navigate(["pages/cadastro/cadastroVagao/create"]);
    };
    CadastroVagaoIndexComponent.prototype.edit = function () {
        this.router.navigate(["pages/cadastro/cadastroVagao", "edit", this.data.cadastroPlacaId]);
    };
    CadastroVagaoIndexComponent.prototype.detail = function () {
        this.router.navigate(["pages/cadastro/cadastroVagao", "detail", this.data.cadastroPlacaId]);
    };
    CadastroVagaoIndexComponent.prototype.refresh = function () {
        var _this = this;
        var cadastroPlacaId = this.filtro.cadastroPlacaId === undefined ? "" : this.filtro.cadastroPlacaId;
        var destinatarioIdTransportadora = this.filtro.destinatarioIdTransportadora === undefined ? 0 : +this.filtro.destinatarioIdTransportadora;
        var modal = "";
        this.constantes.paramRelatorio = {
            cadastroPlacaId: cadastroPlacaId,
            destinatarioIdTransportadora: destinatarioIdTransportadora,
            modal: modal
        };
        this.cadastroVagaoService.getByFiltro(this.filtro).subscribe(function (resp) {
            var columns = [
                {
                    data: "cadastroPlacaId",
                    title: _this.messageService.getTranslates("labels", "placa")
                },
                {
                    data: function (row, type) {
                        if (type === "display" && row.transportadora !== null) {
                            return row.transportadora.fantasia;
                        }
                        else {
                            return "";
                        }
                    },
                    title: _this.messageService.getTranslates("labels", "transportadora")
                }
            ];
            _this.datatablesService.datatable("dtCadastroVagao", columns, resp, function (aData) {
                _this.data = aData;
            });
        });
    };
    CadastroVagaoIndexComponent.prototype.remove = function () {
        var _this = this;
        if (!!(this.data.cadastroPlacaId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                _this.messageService.removeConfirm(function () {
                    _this.cadastroVagaoService.remove(_this.data).subscribe(function () {
                        _this.datatablesService.remove("dtCadastroVagao");
                    });
                });
            });
        }
    };
    CadastroVagaoIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    CadastroVagaoIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    CadastroVagaoIndexComponent.prototype.filtrar = function () {
        jQuery("#cp-filter-dialog").modal("show");
    };
    CadastroVagaoIndexComponent.prototype.executaFiltro = function (event) {
        this.filtro = event;
        this.refresh();
    };
    CadastroVagaoIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _cadastro_vagao_service__WEBPACK_IMPORTED_MODULE_3__["CadastroVagaoService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] }
    ]; };
    CadastroVagaoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-cadastro-vagao-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./cadastro-vagao-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao-index/cadastro-vagao-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            _cadastro_vagao_service__WEBPACK_IMPORTED_MODULE_3__["CadastroVagaoService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"]])
    ], CadastroVagaoIndexComponent);
    return CadastroVagaoIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CadastroVagaoConstants", function() { return CadastroVagaoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var CadastroVagaoConstants = /** @class */ (function () {
    function CadastroVagaoConstants() {
        this.sisFormularioId = 1127;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.inclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.exclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.propriedades" },
            { sisFormularioId: this.sisFormularioId, libRotina: 7, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.cadastroVagao";
        this.reportId = "CAD0142";
        this.tabela = "CadastroPlaca";
        this.listaIndex = [
            { title: 'Novo', action: 'create', icon: "icon-plus", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Visualizar', action: 'detail', icon: "icon-eye", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Excluir', action: 'remove', icon: "icon-close", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Propriedade', action: 'properties', icon: "icon-menu", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
        this.listaForm = [
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
    }
    return CadastroVagaoConstants;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao.model.ts":
/*!***********************************************************************!*\
  !*** ./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao.model.ts ***!
  \***********************************************************************/
/*! exports provided: CadastroVagaoFilter, CadastroVagaoDto, CadastroVagao, CadastroVagaoArqueacao */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CadastroVagaoFilter", function() { return CadastroVagaoFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CadastroVagaoDto", function() { return CadastroVagaoDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CadastroVagao", function() { return CadastroVagao; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CadastroVagaoArqueacao", function() { return CadastroVagaoArqueacao; });
/* harmony import */ var _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../shared/services/base/base.model */ "./src/app/shared/services/base/base.model.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 __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

var CadastroVagaoFilter = /** @class */ (function () {
    function CadastroVagaoFilter() {
        this.modal = "F";
        this.qtdeDeRegistros = "";
    }
    return CadastroVagaoFilter;
}());

var CadastroVagaoDto = /** @class */ (function (_super) {
    __extends(CadastroVagaoDto, _super);
    function CadastroVagaoDto() {
        var _this = _super.call(this) || this;
        _this.modal = "F";
        return _this;
    }
    return CadastroVagaoDto;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var CadastroVagao = /** @class */ (function (_super) {
    __extends(CadastroVagao, _super);
    function CadastroVagao() {
        var _this = _super.call(this) || this;
        _this.modal = "F";
        return _this;
    }
    return CadastroVagao;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var CadastroVagaoArqueacao = /** @class */ (function (_super) {
    __extends(CadastroVagaoArqueacao, _super);
    function CadastroVagaoArqueacao(cadastroPlacaId) {
        if (cadastroPlacaId === void 0) { cadastroPlacaId = ""; }
        var _this = _super.call(this) || this;
        _this.cadastroPlacaId = cadastroPlacaId;
        return _this;
    }
    return CadastroVagaoArqueacao;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CadastroVagaoModule", function() { return CadastroVagaoModule; });
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.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_pages_cadastro_cadastro_vagao_cadastro_vagao_index_cadastro_vagao_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/cadastro/cadastro-vagao/cadastro-vagao-index/cadastro-vagao-index.component */ "./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao-index/cadastro-vagao-index.component.ts");
/* harmony import */ var _cadastro_vagao_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./cadastro-vagao.routing.module */ "./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao.routing.module.ts");
/* harmony import */ var app_pages_cadastro_cadastro_vagao_cadastro_vagao_form_cadastro_vagao_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/cadastro/cadastro-vagao/cadastro-vagao-form/cadastro-vagao-form.component */ "./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao-form/cadastro-vagao-form.component.ts");
/* harmony import */ var _cadastro_vagao_filter_cadastro_vagao_filter_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./cadastro-vagao-filter/cadastro-vagao-filter.component */ "./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao-filter/cadastro-vagao-filter.component.ts");
/* harmony import */ var _cadastro_vagao_arqueacao_cadastro_vagao_arqueacao_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./cadastro-vagao-arqueacao/cadastro-vagao-arqueacao.component */ "./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao-arqueacao/cadastro-vagao-arqueacao.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 CadastroVagaoModule = /** @class */ (function () {
    function CadastroVagaoModule() {
    }
    CadastroVagaoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_0__["SharedModule"], _cadastro_vagao_routing_module__WEBPACK_IMPORTED_MODULE_3__["CadastroVagaoRoutingModule"]],
            declarations: [app_pages_cadastro_cadastro_vagao_cadastro_vagao_index_cadastro_vagao_index_component__WEBPACK_IMPORTED_MODULE_2__["CadastroVagaoIndexComponent"], app_pages_cadastro_cadastro_vagao_cadastro_vagao_form_cadastro_vagao_form_component__WEBPACK_IMPORTED_MODULE_4__["CadastroVagaoFormComponent"], _cadastro_vagao_arqueacao_cadastro_vagao_arqueacao_component__WEBPACK_IMPORTED_MODULE_6__["CadastroVagaoArqueacaoComponent"], _cadastro_vagao_filter_cadastro_vagao_filter_component__WEBPACK_IMPORTED_MODULE_5__["CadastroVagaoFilterComponent"]],
            exports: [_cadastro_vagao_arqueacao_cadastro_vagao_arqueacao_component__WEBPACK_IMPORTED_MODULE_6__["CadastroVagaoArqueacaoComponent"]]
        })
    ], CadastroVagaoModule);
    return CadastroVagaoModule;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao.routing.module.ts":
/*!********************************************************************************!*\
  !*** ./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao.routing.module.ts ***!
  \********************************************************************************/
/*! exports provided: CadastroVagaoRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CadastroVagaoRoutingModule", function() { return CadastroVagaoRoutingModule; });
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_pages_cadastro_cadastro_vagao_cadastro_vagao_index_cadastro_vagao_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pages/cadastro/cadastro-vagao/cadastro-vagao-index/cadastro-vagao-index.component */ "./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao-index/cadastro-vagao-index.component.ts");
/* harmony import */ var app_pages_cadastro_cadastro_vagao_cadastro_vagao_form_cadastro_vagao_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/cadastro/cadastro-vagao/cadastro-vagao-form/cadastro-vagao-form.component */ "./src/app/pages/cadastro/cadastro-vagao/cadastro-vagao-form/cadastro-vagao-form.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: app_pages_cadastro_cadastro_vagao_cadastro_vagao_index_cadastro_vagao_index_component__WEBPACK_IMPORTED_MODULE_3__["CadastroVagaoIndexComponent"],
        data: { breadcrumb: "CadastroVagao", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create",
        component: app_pages_cadastro_cadastro_vagao_cadastro_vagao_form_cadastro_vagao_form_component__WEBPACK_IMPORTED_MODULE_4__["CadastroVagaoFormComponent"],
        data: {
            breadcrumb: "CadastroVagao",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: app_pages_cadastro_cadastro_vagao_cadastro_vagao_form_cadastro_vagao_form_component__WEBPACK_IMPORTED_MODULE_4__["CadastroVagaoFormComponent"],
        data: {
            breadcrumb: "CadastroVagao",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: app_pages_cadastro_cadastro_vagao_cadastro_vagao_form_cadastro_vagao_form_component__WEBPACK_IMPORTED_MODULE_4__["CadastroVagaoFormComponent"],
        data: {
            breadcrumb: "CadastroVagao",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var CadastroVagaoRoutingModule = /** @class */ (function () {
    function CadastroVagaoRoutingModule() {
    }
    CadastroVagaoRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_0__["RouterModule"].forChild(MRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_0__["RouterModule"]]
        })
    ], CadastroVagaoRoutingModule);
    return CadastroVagaoRoutingModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CadastroVagaoService", function() { return CadastroVagaoService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
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 CadastroVagaoService = /** @class */ (function (_super) {
    __extends(CadastroVagaoService, _super);
    function CadastroVagaoService(http) {
        return _super.call(this, http, "cadastros/cadastroVagao") || this;
    }
    CadastroVagaoService.prototype.getByFiltro = function (filtro) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/cadastros/cadastroVagao/listar", filtro)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    CadastroVagaoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    CadastroVagaoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], CadastroVagaoService);
    return CadastroVagaoService;
}(app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__["BaseService"]));



/***/ })

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