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

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"operacao-vagao-change-data-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"modal-dialog modal-sm\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.alteracaoDeDatas' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-md-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"oper\">{{'labels.operador' | translate}}</label>\r\n                                <input id=\"oper\" name=\"oper\" [(ngModel)]=\"data.operador\"\r\n                                    class=\"form-control form-control-sm\" type=\"text\"\r\n                                    data-title=\"{{'labels.operador' | translate}}\" autofocus>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-md-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"saida\" class=\"required\">{{\"labels.saida\" | translate}}</label>\r\n                                <app-data id=\"saida\" name=\"saida\" [(ngModel)]=\"data.dtSaida\" class=\"dataHora\"\r\n                                    [formatDateTime]=\"mascara.getFormatDataHorMinSeg\" required=\"true\"\r\n                                    (executa)=\"validaDatasInicioFimOperacao()\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-md-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"inicioOperacao\" class=\"inicioOperacao\"\r\n                                    class=\"required\">{{\"labels.inicioOperacao\" | translate}}</label>\r\n                                <app-data id=\"inicioOperacao\" name=\"inicioOperacao\" [(ngModel)]=\"data.dtInicioOperacao\"\r\n                                    class=\"dataHora\" [formatDateTime]=\"mascara.getFormatDataHorMinSeg\" required=\"true\"\r\n                                    (executa)=\"validaDatasInicioFimOperacao()\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-md-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"fimOperacao\" class=\"fimOperacao\" class=\"required\">{{\"labels.fimOperacao\"\r\n                                    | translate}}</label>\r\n                                <app-data id=\"fimOperacao\" name=\"fimOperacao\" [(ngModel)]=\"data.dtFimOperacao\"\r\n                                    class=\"dataHora\" [formatDateTime]=\"mascara.getFormatDataHorMinSeg\" required=\"true\"\r\n                                    (executa)=\"validaDatasInicioFimOperacao()\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.ok' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">cancelar</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-vagao/operacao-vagao-filter/operacao-vagao-filter.component.html":
/*!************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-vagao/operacao-vagao-filter/operacao-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\" id=\"operacao-vagao-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.operacaoVagao' | translate }}</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\" autocomplete=\"off\">\n                <app-validacoes></app-validacoes>\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                            <div class=\"row\">\n                                <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"periodoDe\" class=\"required\">{{\"labels.periodoDe\" | translate\n                                            }}</label>\n                                        <app-data id=\"periodoDe\" name=\"periodoDe\" [(ngModel)]=\"service.filtro.dataI\"\n                                            autofocus class=\"dataHora\" [formatDateTime]=\"mascara.getFormatData\"\n                                            required=\"true\" (executa)=\"validaDatas()\">\n                                        </app-data>\n                                    </div>\n                                </div>\n                                <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"ate\" class=\"required\">{{\"labels.ate\" | translate}}</label>\n                                        <app-data id=\"ate\" name=\"ate\" [(ngModel)]=\"service.filtro.dataF\"\n                                            class=\"dataHora\" [formatDateTime]=\"mascara.getFormatData\" required=\"true\"\n                                            (executa)=\"validaDatas()\">\n                                        </app-data>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}</button>\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'buttons.sair' | translate\n                        }}</button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"operacao-vagao-historico-email-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.historicoDeEmailsEnviados' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <div class=\"\">\r\n                                <div class=\"\">\r\n                                    <div class=\"row\">\r\n                                        <label class=\"col-sm-12 control-label\">{{ 'labels.comboio' | translate\r\n                                            }}</label>\r\n                                        <div class=\"col-sm-3\">\r\n                                            <input type=\"text\" class=\"form-control\" [value]=\"comboioId\" disabled>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"row\">\r\n                                        <label class=\"col-sm-12 control-label\">{{ 'labels.dataComboio' | translate\r\n                                            }}</label>\r\n                                        <div class=\"col-sm-3\">\r\n                                            <input class=\"form-control\" type=\"text\" disabled\r\n                                                [value]=\"dtComboio | date: 'dd/MM/yyyy HH:mm:ss'\">\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"clearfix\">&nbsp;</div>\r\n                    <div class=\"table-responsive\" style=\"overflow: auto; max-height: 300px;\">\r\n                        <table id=\"dtResumo\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\r\n                            <thead>\r\n                                <tr>\r\n                                    <th>{{ 'labels.contador' | translate }}</th>\r\n                                    <th>{{ 'labels.dataEnvio' | translate }}</th>\r\n                                    <th>{{ 'labels.email' | translate }}</th>\r\n                                    <th>{{ 'labels.titulo' | translate }}</th>\r\n                                    <th>{{ 'labels.mensagem' | translate }}</th>\r\n                                </tr>\r\n                            </thead>\r\n                            <tbody>\r\n                                <tr *ngFor=\"let t of dados; index as i\"\r\n                                    [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\"\r\n                                    (click)=\"rowSelect(t,i)\">\r\n                                    <td>{{ t.regEmail }}</td>\r\n                                    <td style=\"white-space: nowrap;\">{{ t.dtOperInc | date: 'dd/MM/yyyy HH:mm:ss' }}\r\n                                    </td>\r\n                                    <td>{{ t.email }}</td>\r\n                                    <td style=\"white-space: nowrap;\">{{ t.titulo }}</td>\r\n                                    <td style=\"white-space: nowrap;\">{{ t.mensagem }}</td>\r\n                                </tr>\r\n                                <tr *ngIf=\"!hasDados\">\r\n                                    <th colspan=\"5\" style=\"text-align: center\">\r\n                                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                                    </th>\r\n                                </tr>\r\n                            </tbody>\r\n                        </table>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.ok' | translate }}\r\n                    </button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-vagao/operacao-vagao-index/operacao-vagao-index.component.html":
/*!**********************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-vagao/operacao-vagao-index/operacao-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\" [itemData]=\"service.data.comboioId\"\r\n    [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <div class=\"row\">\r\n        <div class=\"col-lg-12\">\r\n            <div class=\"clearfix\">\r\n                <ul class=\"nav nav-tabs\">\r\n                    <li class=\"nav-item\">\r\n                        <a class=\"nav-link active show\" data-toggle=\"tab\" href=\"#nav\">{{ 'labels.navegacao' | translate\r\n                            }}</a>\r\n                    </li>\r\n                    <li class=\"nav-item\">\r\n                        <a class=\"nav-link\" data-toggle=\"tab\" href=\"#dad\">{{ 'labels.dados' | translate }}</a>\r\n                    </li>\r\n                </ul>\r\n            </div>\r\n            <div class=\"tab-content top\">\r\n                <div class=\"tab-pane active show\" id=\"nav\">\r\n                    <div class=\"table-responsive\" style=\"overflow: auto; max-height: 500px;\">\r\n                        <table id=\"dtResumo\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\r\n                            <thead>\r\n                                <tr>\r\n                                    <th>{{ 'labels.comboio' | translate }}</th>\r\n                                    <th>{{ 'labels.data' | translate }}</th>\r\n                                    <th>{{ 'labels.operador' | translate }}</th>\r\n                                    <th>{{ 'labels.inicioOperacao' | translate }}</th>\r\n                                    <th>{{ 'labels.fimOperacao' | translate }}</th>\r\n                                </tr>\r\n                            </thead>\r\n                            <tbody>\r\n                                <tr *ngFor=\"let t of service.dados; index as i\"\r\n                                    [ngClass]=\"{'info': t == service.data && i == currentIndex ? true : false}\"\r\n                                    (click)=\"rowSelect(t,i)\">\r\n                                    <td>{{ t.comboioId }}</td>\r\n                                    <td>{{ t.dtComboio | date: 'dd/MM/yyyy' }}</td>\r\n                                    <td>{{ t.operador }}</td>\r\n                                    <td>{{ t.dtInicioOperacao | date: 'dd/MM/yyyy HH:mm:ss' }}</td>\r\n                                    <td>{{ t.dtFimOperacao | date: 'dd/MM/yyyy HH:mm:ss' }}</td>\r\n                                </tr>\r\n                                <tr *ngIf=\"!hasDados\">\r\n                                    <th colspan=\"5\" style=\"text-align: center\">\r\n                                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                                    </th>\r\n                                </tr>\r\n                            </tbody>\r\n                        </table>\r\n                    </div>\r\n                </div>\r\n                <div class=\"tab-pane show\" id=\"dad\">\r\n                    <div class=\"table-responsive\" style=\"overflow: auto; max-height: 500px;\">\r\n                        <table id=\"dtDetalhe\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\r\n                            <thead>\r\n                                <tr>\r\n                                    <th>{{ 'labels.registro' | translate }}</th>\r\n                                    <th style=\"white-space: nowrap;\">{{ 'labels.checklist' | translate }}</th>\r\n                                    <th>{{ 'labels.vagao' | translate }}</th>\r\n                                    <th style=\"white-space: nowrap;\">{{ 'labels.medicaoTanque' | translate }}</th>\r\n                                    <th style=\"white-space: nowrap;\">{{ 'labels.volumeAmbiente' | translate }}</th>\r\n                                    <th style=\"white-space: nowrap;\">{{ 'labels.tempAmostra' | translate }}</th>\r\n                                    <th style=\"white-space: nowrap;\">{{ 'labels.densAmostra' | translate }}</th>\r\n                                    <th style=\"white-space: nowrap;\">{{ 'labels.tempVagao' | translate }}</th>\r\n                                    <th style=\"white-space: nowrap;\">{{ 'labels.fatorDeCorrecao' | translate }}</th>\r\n                                    <th style=\"white-space: nowrap;\">{{ 'labels.densCorrigida20' | translate }}</th>\r\n                                    <th style=\"white-space: nowrap;\">{{ 'labels.pesoCorrigida20' | translate }}</th>\r\n                                    <th style=\"white-space: nowrap;\">{{ 'labels.volume20' | translate }}</th>\r\n                                    <th>{{ 'labels.kilos' | translate }}</th>\r\n                                    <th>{{ 'labels.lacreVeiculo' | translate }}</th>\r\n                                    <th style=\"white-space: nowrap;\">{{ 'labels.lacreAmostra' | translate }}</th>\r\n                                    <th>{{ 'labels.situacao' | translate }}</th>\r\n                                </tr>\r\n                            </thead>\r\n                            <tbody>\r\n                                <tr *ngFor=\"let t of service.dadosDetalhes; index as i\"\r\n                                    [ngClass]=\"{'info': t == service.dataDetalhe && i == currentIndexDetalhe ? true : false}\"\r\n                                    (click)=\"rowSelectDetalhe(t,i)\">\r\n                                    <td>{{ t.entradaVeiculoId }}</td>\r\n                                    <td>{{ t.checkListId }}</td>\r\n                                    <td>{{ t.cadastroPlacaIdCavalo }}</td>\r\n                                    <td style=\"white-space: nowrap; text-align: right;\">{{ t.medicao | formatCurrency:\r\n                                        1}} </td>\r\n                                    <td style=\"white-space: nowrap; text-align: right;\">{{ t.litros | formatCurrency:\r\n                                        0}} </td>\r\n                                    <td style=\"white-space: nowrap; text-align: right;\">{{ t.temperatura |\r\n                                        formatCurrency: 1}} </td>\r\n                                    <td style=\"white-space: nowrap; text-align: right;\">{{ t.densidadePadrao |\r\n                                        formatCurrency: 5}} </td>\r\n                                    <td style=\"white-space: nowrap; text-align: right;\">{{ t.tempPadrao |\r\n                                        formatCurrency: 1}} </td>\r\n                                    <td style=\"white-space: nowrap; text-align: right;\">{{ t.fatorCorrecao |\r\n                                        formatCurrency: 5}} </td>\r\n                                    <td style=\"white-space: nowrap; text-align: right;\">{{ t.densidade | formatCurrency:\r\n                                        5}} </td>\r\n                                    <td style=\"white-space: nowrap; text-align: right;\">{{ t.pesoCorrigido |\r\n                                        formatCurrency: 0}} </td>\r\n                                    <td style=\"white-space: nowrap; text-align: right;\">{{ t.volumeCorrigido |\r\n                                        formatCurrency: 0}} </td>\r\n                                    <td style=\"white-space: nowrap; text-align: right;\">{{ t.kilos | formatCurrency: 0}}\r\n                                    </td>\r\n                                    <td style=\"white-space: nowrap;\">{{ t.lacreVeiculo }} </td>\r\n                                    <td>{{ t.lacreAmostra }} </td>\r\n                                    <td style=\"white-space: nowrap;\">{{ t.descrSitVeiculo }} </td>\r\n                                </tr>\r\n                                <tr *ngIf=\"!hasDados\">\r\n                                    <th colspan=\"16\" style=\"text-align: center\">\r\n                                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                                    </th>\r\n                                </tr>\r\n                            </tbody>\r\n                        </table>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n<app-propriedades></app-propriedades>\r\n<app-operacao-vagao-filter (filtrar)=\"executaFiltro()\"></app-operacao-vagao-filter>\r\n<app-operacao-vagao-print-modal (outConfirma)=\"confirmaImpressao($event)\"></app-operacao-vagao-print-modal>\r\n<app-operacao-vagao-historico-email></app-operacao-vagao-historico-email>\r\n<app-operacao-vagao-change-data (_refresh)=\"_refresh($event)\"></app-operacao-vagao-change-data>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-vagao/operacao-vagao-medicao/operacao-vagao-medicao.component.html":
/*!**************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-vagao/operacao-vagao-medicao/operacao-vagao-medicao.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.listaInformarMedicao\" [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n    <div class=\"col-md-12 col-lg-12\">\n        <div class=\"section-comand-bar\">\n            <div class=\"row\">\n                <div class=\"col-lg-12\">\n                    <app-form-legenda></app-form-legenda>\n                    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\n                        <app-validacoes></app-validacoes>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"oper\">{{'labels.operador' | translate}}</label>\n                                    <input id=\"oper\" name=\"oper\" [(ngModel)]=\"data.operador\"\n                                        class=\"form-control form-control-sm\" type=\"text\"\n                                        data-title=\"{{'labels.operador' | translate}}\" autofocus>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"saida\" class=\"required\">{{\"labels.saida\" | translate}}</label>\n                                    <app-data id=\"saida\" name=\"saida\" [(ngModel)]=\"data.dtSaida\" class=\"dataHora\"\n                                        [formatDateTime]=\"mascara.getFormatData\" required=\"true\"\n                                        (executa)=\"validaDatasInicioFimOperacao()\">\n                                    </app-data>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"inicioOperacao\" class=\"inicioOperacao\"\n                                        class=\"required\">{{\"labels.inicioOperacao\" | translate}}</label>\n                                    <app-data id=\"inicioOperacao\" name=\"inicioOperacao\"\n                                        [(ngModel)]=\"data.dtInicioOperacao\" class=\"dataHora\"\n                                        [formatDateTime]=\"mascara.getFormatDataHorMinSeg\" required=\"true\"\n                                        (executa)=\"validaDatasInicioFimOperacao()\">\n                                    </app-data>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"fimOperacao\" class=\"fimOperacao\" class=\"required\">{{\"labels.fimOperacao\"\n                                        | translate}}</label>\n                                    <app-data id=\"fimOperacao\" name=\"fimOperacao\" [(ngModel)]=\"data.dtFimOperacao\"\n                                        class=\"dataHora\" [formatDateTime]=\"mascara.getFormatDataHorMinSeg\"\n                                        required=\"true\" (executa)=\"validaDatasInicioFimOperacao()\">\n                                    </app-data>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"vagao\">\n                                        {{'labels.vagao' | translate}}\n                                    </label>\n                                    <input id=\"vagao\" name=\"vagao\" class=\"form-control form-control-sm text-uppercase\"\n                                        type=\"text\" maxlength=\"8\" disabled [(ngModel)]=\"data.cadastroPlacaIdCavalo\" />\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-6 col-md-8 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <app-input-description label=\"cliente\"\n                                        [valueID]=\"data?.destinatarioIdTransportadora\"\n                                        [valueDescription]=\"data?.transportadora\">\n                                    </app-input-description>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"capacVagao\">{{'labels.capacVagao' | translate}}</label>\n                                    <input type=\"text\" id=\"capacVagao\" name=\"capacVagao\"\n                                        class=\"form-control form-control-sm\" [(ngModel)]=\"data.capacVagao\" currencyMask\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"dtCertificacao\">\n                                        {{'labels.dtCertificacao' | translate}}\n                                    </label>\n                                    <app-data id=\"dtCertificacao\" name=\"dtCertificacao\"\n                                        data-title=\"{{'labels.dtCertificacao' | translate}}\"\n                                        [(ngModel)]=\"data.dtCertificacao\" [formatDateTime]=\"mascara.getFormatData\"\n                                        disabled>\n                                    </app-data>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"dataHora\">\n                                        {{'labels.dataHora' | translate}}\n                                    </label>\n                                    <app-data id=\"dataHora\" name=\"dataHora\"\n                                        data-title=\"{{'labels.dataHora' | translate}}\" [(ngModel)]=\"data.dtMovimento\"\n                                        [formatDateTime]=\"mascara.getFormatDataHorMinSeg\">\n                                    </app-data>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"medicaoTanque\">{{'labels.medicaoTanque' | translate}}</label>\n                                    <input type=\"text\" id=\"medicaoTanque\" name=\"medicaoTanque\"\n                                        class=\"form-control form-control-sm\" [(ngModel)]=\"data.medicao\" currencyMask\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 1 }\"\n                                        [disabled]=\"!requiredMedicaoTanque\" (blur)=\"calculaMedicao()\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"volumeAmbiente\">{{'labels.volumeAmbiente' | translate}}</label>\n                                    <input type=\"text\" id=\"volumeAmbiente\" name=\"volumeAmbiente\"\n                                        class=\"form-control form-control-sm\" [(ngModel)]=\"data.litros\" currencyMask\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 1 }\" disabled>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"tempAmostra\" class=\"required\">{{'labels.tempAmostra' |\n                                        translate}}</label>\n                                    <input type=\"text\" id=\"tempAmostra\" name=\"tempAmostra\"\n                                        class=\"form-control form-control-sm\" [(ngModel)]=\"data.temperatura\" currencyMask\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 1 }\"\n                                        (blur)=\"calculaMedicao()\" required>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"densAmostra\" class=\"required\">{{'labels.densAmostra' |\n                                        translate}}</label>\n                                    <input type=\"text\" id=\"densAmostra\" name=\"densAmostra\"\n                                        class=\"form-control form-control-sm\" [(ngModel)]=\"data.densidadePadrao\"\n                                        currencyMask\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 5 }\"\n                                        (blur)=\"calculaMedicao()\" required>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"tempVagao\" class=\"required\">{{'labels.tempVagao' | translate}}</label>\n                                    <input type=\"text\" id=\"tempVagao\" name=\"tempVagao\"\n                                        class=\"form-control form-control-sm\" [(ngModel)]=\"data.tempPadrao\" currencyMask\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 5 }\"\n                                        (blur)=\"calculaMedicao()\" required>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"fatorDeCorrecao\">{{'labels.fatorDeCorrecao' | translate}}</label>\n                                    <input type=\"text\" id=\"fatorDeCorrecao\" name=\"fatorDeCorrecao\"\n                                        class=\"form-control form-control-sm\" [(ngModel)]=\"data.fatorCorrecao\"\n                                        currencyMask\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 5 }\" disabled>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"densCorrigida20\">{{'labels.densCorrigida20' | translate}}</label>\n                                    <input type=\"text\" id=\"densCorrigida20\" name=\"densCorrigida20\"\n                                        class=\"form-control form-control-sm\" [(ngModel)]=\"data.densidade\" currencyMask\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 5 }\" disabled>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"volume20\">{{'labels.volume20' | translate}}</label>\n                                    <input type=\"text\" id=\"volume20\" name=\"volume20\"\n                                        class=\"form-control form-control-sm\" [(ngModel)]=\"data.volumeCorrigido\"\n                                        currencyMask\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\" disabled>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"pesoCorrigida20\">{{'labels.pesoCorrigida20' | translate}}</label>\n                                    <input type=\"text\" id=\"pesoCorrigida20\" name=\"pesoCorrigida20\"\n                                        class=\"form-control form-control-sm\" [(ngModel)]=\"data.pesoCorrigido\"\n                                        currencyMask\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\" disabled>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-10 col-md-12 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <app-lacre id=\"lacreVeiculo\" name=\"lacreVeiculo\" label=\"lacreVeiculo\"\n                                        [(ngModel)]=\"data.lacreVeiculo\" [params]=\"paramsLacreV\">\n                                    </app-lacre>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row mb-2\">\n                            <div class=\"col-4\">\n                                <div class=\"form-group\">\n                                    <button class=\"btn btn-success mr-2\" type=\"submit\">\n                                        {{ 'buttons.salvar' | translate }}\n                                    </button>\n                                </div>\n                            </div>\n                        </div>\n                    </form>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-vagao/operacao-vagao-print-modal/operacao-vagao-print-modal.component.html":
/*!**********************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-vagao/operacao-vagao-print-modal/operacao-vagao-print-modal.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=\"modalPrint\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n\t<div class=\"modal-dialog modal-sm\">\r\n\t\t<div class=\"modal-content\">\r\n\t\t\t<form class=\"form\" #frmPrint=\"ngForm\" (ngSubmit)=\"onSubmit(frmPrint)\">\r\n\t\t\t\t<div class=\"modal-header\">\r\n\t\t\t\t\t<h4 class=\"modal-title\">{{ 'titles.imprimir' | translate }}</h4>\r\n\t\t\t\t\t<button type=\"button\" class=\"close\" aria-label=\"Close\" data-dismiss=\"modal\">\r\n\t\t\t\t\t\t<span aria-hidden=\"true\">&times;</span>\r\n\t\t\t\t\t</button>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class=\"modal-body\">\r\n\t\t\t\t\t<div class=\"row\">\r\n\t\t\t\t\t\t<div class=\"col-md-12\">\r\n\t\t\t\t\t\t\t<div class=\"form-group form-group-sm\">\r\n\t\t\t\t\t\t\t\t<label for=\"tipoImpressao\">{{'labels.selecioneCampoSerImpresso' | translate}}</label>\r\n\t\t\t\t\t\t\t\t<select id=\"tipoImpressao\" name=\"tipoImpressao\" class=\"form-control form-control-sm\"\r\n\t\t\t\t\t\t\t\t\t[(ngModel)]=\"tipoSelecionado\">\r\n\t\t\t\t\t\t\t\t\t<option value=\"\">{{ 'labels.selecione' | translate}}</option>\r\n\t\t\t\t\t\t\t\t\t<option *ngFor=\"let tipo of tiposImpressao\" [value]=\"tipo.value\">{{ tipo.label |\r\n\t\t\t\t\t\t\t\t\t\ttranslate}}</option>\r\n\t\t\t\t\t\t\t\t</select>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class=\"modal-footer\">\r\n\t\t\t\t\t<button type=\"submit\" class=\"btn btn-small btn-success\" [disabled]=\"tipoSelecionado == ''\">{{\r\n\t\t\t\t\t\t'buttons.ok' | translate }}</button>\r\n\t\t\t\t\t<button type=\"button\" class=\"btn btn-small btn-default\" data-dismiss=\"modal\">{{ 'buttons.cancelar' |\r\n\t\t\t\t\t\ttranslate }}</button>\r\n\t\t\t\t</div>\r\n\t\t\t</form>\r\n\t\t</div>\r\n\t</div>\r\n</div>");

/***/ }),

/***/ "./src/app/pages/cadastro/densidade-tanque/densidade-tanque.model.ts":
/*!***************************************************************************!*\
  !*** ./src/app/pages/cadastro/densidade-tanque/densidade-tanque.model.ts ***!
  \***************************************************************************/
/*! exports provided: DensidadeTanque, DensidadeTanqueFilter, CalculoDensidadeFilter, CalculoDensidadeRetorno */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DensidadeTanque", function() { return DensidadeTanque; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DensidadeTanqueFilter", function() { return DensidadeTanqueFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CalculoDensidadeFilter", function() { return CalculoDensidadeFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CalculoDensidadeRetorno", function() { return CalculoDensidadeRetorno; });
/* 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");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
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 DensidadeTanque = /** @class */ (function (_super) {
    __extends(DensidadeTanque, _super);
    function DensidadeTanque() {
        var _this = _super.call(this) || this;
        _this.flagAtivo = "S";
        _this.dtDensidade = new Date();
        return _this;
    }
    return DensidadeTanque;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var DensidadeTanqueFilter = /** @class */ (function () {
    function DensidadeTanqueFilter() {
        this.tanqueId = "";
        this.dataI = moment__WEBPACK_IMPORTED_MODULE_1__().startOf('month').toDate();
        this.dataF = new Date();
    }
    return DensidadeTanqueFilter;
}());

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

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



/***/ }),

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

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



/***/ }),

/***/ "./src/app/pages/operacao/operacao-vagao/operacao-vagao-change-data/operacao-vagao-change-data.component.ts":
/*!******************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-vagao/operacao-vagao-change-data/operacao-vagao-change-data.component.ts ***!
  \******************************************************************************************************************/
/*! exports provided: OperacaoVagaoChangeDataComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoVagaoChangeDataComponent", function() { return OperacaoVagaoChangeDataComponent; });
/* 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 _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.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_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _operacao_vagao_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../operacao-vagao.model */ "./src/app/pages/operacao/operacao-vagao/operacao-vagao.model.ts");
/* harmony import */ var _operacao_vagao_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../operacao-vagao.service */ "./src/app/pages/operacao/operacao-vagao/operacao-vagao.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __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 OperacaoVagaoChangeDataComponent = /** @class */ (function () {
    function OperacaoVagaoChangeDataComponent(funcoesService, messageService, service, loginService) {
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.service = service;
        this.loginService = loginService;
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        this.mensagens = [];
        this.now = new Date();
        this._refresh = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    OperacaoVagaoChangeDataComponent.prototype.ngOnInit = function () {
        this.data = new _operacao_vagao_model__WEBPACK_IMPORTED_MODULE_6__["OperacaoVagaoComboioDto"]();
        this._refresh.emit(false);
        this.usuarioId = this.loginService.getLogin().usuario;
    };
    OperacaoVagaoChangeDataComponent.prototype.onSubmit = function (form) {
        return __awaiter(this, void 0, void 0, function () {
            var validationResult, mensagens;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (form.invalid) {
                            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formError").emit(form);
                            this.funcoesService.backToTop();
                            return [2 /*return*/];
                        }
                        if (!this.validaDatasInicioFimOperacao())
                            return [2 /*return*/];
                        return [4 /*yield*/, this.service.alterarDatas(this.data).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.messageService.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.operacaoVagao", m); });
                            return [2 /*return*/];
                        }
                        else {
                            jQuery("#operacao-vagao-change-data-dialog").modal("hide");
                            this.messageService.saveSuccess("titles.operacaoVagao");
                            this._refresh.emit(true);
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    OperacaoVagaoChangeDataComponent.prototype.objectSelect = function (current) {
        this.data = current;
        this.data.operador = app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].isEmpty(current.operador) ? this.usuarioId : current.operador;
        this.data.dtSaida = !current.dtSaida ? this.now : current.dtSaida;
        this.data.dtInicioOperacao = !current.dtInicioOperacao ? this.now : current.dtInicioOperacao;
        this.data.dtFimOperacao = !current.dtFimOperacao ? this.now : current.dtFimOperacao;
    };
    OperacaoVagaoChangeDataComponent.prototype.validaDatasInicioFimOperacao = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["DateTimeUtilsStaticService"].maiorA(this.data.dtInicioOperacao, this.data.dtFimOperacao, ['H', 'M'])) {
            this.messageService.warning("titles.operacaoVagao", "messages.finalDeOperacaoNaoPodeSerInferiorAoInicioOperacao");
            return false;
        }
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["DateTimeUtilsStaticService"].menorA(this.data.dtSaida, this.data.dtFimOperacao, ['H', 'M'])) {
            this.messageService.warning("titles.operacaoVagao", "messages.saidaNaoPodeSerInferiorADataDeFinmDeOperacao");
            return false;
        }
        return true;
    };
    OperacaoVagaoChangeDataComponent.ctorParameters = function () { return [
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _operacao_vagao_service__WEBPACK_IMPORTED_MODULE_7__["OperacaoVagaoService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoVagaoChangeDataComponent.prototype, "_refresh", void 0);
    OperacaoVagaoChangeDataComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-operacao-vagao-change-data",
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-vagao-change-data.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-vagao/operacao-vagao-change-data/operacao-vagao-change-data.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _operacao_vagao_service__WEBPACK_IMPORTED_MODULE_7__["OperacaoVagaoService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"]])
    ], OperacaoVagaoChangeDataComponent);
    return OperacaoVagaoChangeDataComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoVagaoFilterComponent", function() { return OperacaoVagaoFilterComponent; });
/* 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 _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _operacao_vagao_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../operacao-vagao.constants */ "./src/app/pages/operacao/operacao-vagao/operacao-vagao.constants.ts");
/* harmony import */ var _operacao_vagao_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../operacao-vagao.service */ "./src/app/pages/operacao/operacao-vagao/operacao-vagao.service.ts");
/* harmony import */ var _operacao_vagao_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../operacao-vagao.model */ "./src/app/pages/operacao/operacao-vagao/operacao-vagao.model.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};









var OperacaoVagaoFilterComponent = /** @class */ (function () {
    function OperacaoVagaoFilterComponent(service, loginService, messageService) {
        this.service = service;
        this.loginService = loginService;
        this.messageService = messageService;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__["Mascaras"]();
        this.constantes = new _operacao_vagao_constants__WEBPACK_IMPORTED_MODULE_4__["OperacaoVagaoConstants"]();
        this.filialId = this.loginService.getLogin().filialId;
    }
    OperacaoVagaoFilterComponent.prototype.ngOnInit = function () {
        if (!this.service.filtro) {
            this.service.filtro = new _operacao_vagao_model__WEBPACK_IMPORTED_MODULE_6__["OperacaoVagaoFilter"]();
        }
    };
    OperacaoVagaoFilterComponent.prototype.onSubmit = function (form) {
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["DateTimeUtilsStaticService"].menorA(this.service.filtro.dataF, this.service.filtro.dataI, ['H', 'M'])) {
            this.messageService.warning("titles.operacaoVagao", "messages.dataInicioNaoPodeSerMaiorDataFim");
            return;
        }
        this.filtrar.emit();
        jQuery("#operacao-vagao-filter-dialog").modal("hide");
    };
    OperacaoVagaoFilterComponent.prototype.validaDatas = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["DateTimeUtilsStaticService"].menorA(this.service.filtro.dataF, this.service.filtro.dataI, ['H', 'M'])) {
            this.messageService.warning("titles.operacaoVagao", "messages.dataInicioNaoPodeSerMaiorDataFim");
        }
    };
    OperacaoVagaoFilterComponent.ctorParameters = function () { return [
        { type: _operacao_vagao_service__WEBPACK_IMPORTED_MODULE_5__["OperacaoVagaoService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_0__["LoginService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoVagaoFilterComponent.prototype, "filtrar", void 0);
    OperacaoVagaoFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-operacao-vagao-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-vagao-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-vagao/operacao-vagao-filter/operacao-vagao-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_operacao_vagao_service__WEBPACK_IMPORTED_MODULE_5__["OperacaoVagaoService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_0__["LoginService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"]])
    ], OperacaoVagaoFilterComponent);
    return OperacaoVagaoFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-vagao/operacao-vagao-historico-email/operacao-vagao-historico-email.component.ts":
/*!**************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-vagao/operacao-vagao-historico-email/operacao-vagao-historico-email.component.ts ***!
  \**************************************************************************************************************************/
/*! exports provided: OperacaoVagaoHistoricoEmailComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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







var OperacaoVagaoHistoricoEmailComponent = /** @class */ (function () {
    function OperacaoVagaoHistoricoEmailComponent(funcoesService, messageService, service, loginService) {
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.service = service;
        this.loginService = loginService;
        this.data = new _operacao_vagao_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoVagaoComboioVagaoEmailDto"]();
        this.hasDados = false;
    }
    OperacaoVagaoHistoricoEmailComponent.prototype.ngOnInit = function () {
    };
    OperacaoVagaoHistoricoEmailComponent.prototype.onSubmit = function (form) {
        jQuery("#operacao-vagao-historico-email-dialog").modal("hide");
    };
    OperacaoVagaoHistoricoEmailComponent.prototype.objectSelect = function (comboioId) {
        var _this = this;
        this.service.getDadosHistoricoEmail({ comboioId: comboioId }).subscribe(function (resp) {
            _this.dados = resp;
            _this.comboioId = comboioId;
            _this.dtComboio = app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["ArrayUtilsStaticService"].any(resp) ? resp[0].dtComboio : "";
            _this.hasDados = resp && resp.length > 0;
        });
    };
    OperacaoVagaoHistoricoEmailComponent.prototype.rowSelect = function (item, index) {
        this.currentIndex = index;
        this.data = item;
    };
    OperacaoVagaoHistoricoEmailComponent.ctorParameters = function () { return [
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__["FuncoesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _operacao_vagao_service__WEBPACK_IMPORTED_MODULE_4__["OperacaoVagaoService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_3__["LoginService"] }
    ]; };
    OperacaoVagaoHistoricoEmailComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-operacao-vagao-historico-email",
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-vagao-historico-email.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-vagao/operacao-vagao-historico-email/operacao-vagao-historico-email.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__["FuncoesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            _operacao_vagao_service__WEBPACK_IMPORTED_MODULE_4__["OperacaoVagaoService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_3__["LoginService"]])
    ], OperacaoVagaoHistoricoEmailComponent);
    return OperacaoVagaoHistoricoEmailComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoVagaoIndexComponent", function() { return OperacaoVagaoIndexComponent; });
/* 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 sweetalert2__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! sweetalert2 */ "./node_modules/sweetalert2/dist/sweetalert2.all.js");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var _operacao_vagao_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../operacao-vagao.constants */ "./src/app/pages/operacao/operacao-vagao/operacao-vagao.constants.ts");
/* harmony import */ var _operacao_vagao_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../operacao-vagao.service */ "./src/app/pages/operacao/operacao-vagao/operacao-vagao.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _operacao_vagao_historico_email_operacao_vagao_historico_email_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../operacao-vagao-historico-email/operacao-vagao-historico-email.component */ "./src/app/pages/operacao/operacao-vagao/operacao-vagao-historico-email/operacao-vagao-historico-email.component.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _operacao_vagao_change_data_operacao_vagao_change_data_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../operacao-vagao-change-data/operacao-vagao-change-data.component */ "./src/app/pages/operacao/operacao-vagao/operacao-vagao-change-data/operacao-vagao-change-data.component.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
















var OperacaoVagaoIndexComponent = /** @class */ (function (_super) {
    __extends(OperacaoVagaoIndexComponent, _super);
    function OperacaoVagaoIndexComponent(router, datatablesService, funcoesService, messageService, permissoesUtils, service, loginService, configuracao) {
        var _this = _super.call(this, new _operacao_vagao_constants__WEBPACK_IMPORTED_MODULE_9__["OperacaoVagaoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.datatablesService = datatablesService;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.service = service;
        _this.loginService = loginService;
        _this.configuracao = configuracao;
        _this.constantes = new _operacao_vagao_constants__WEBPACK_IMPORTED_MODULE_9__["OperacaoVagaoConstants"]();
        _this.hasDados = false;
        _this.hasDadosDetalhe = false;
        _this.paramReportSituacao = false;
        _this.paramReportLacreVeiculo = false;
        _this.mensagens = [];
        _this.target = _this.funcoesService.getTargetLocation();
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.controlaEmail = _this.funcoesService.isBoolean(_this.configuracao.lerConfig("CTV", "ControlaEmail"));
            }
        };
        _this.refresh = function () {
            _this.service.getDados(_this.service.filtro).subscribe(function (resp) {
                _this.service.dados = resp;
                _this.hasDados = resp && resp.length > 0;
                if (_this.hasDados) {
                    _this.rowSelect(_this.service.dados[0], 0);
                }
            });
        };
        _this.permissoes = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 2, function () {
                _super.prototype.permissoes.call(_this, _this.constantes);
            });
        };
        _this._print = function () {
            if (_this.funcoesService.getValue(_this.service.data.comboioId, "I") > 0) {
                _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 3, function () { return jQuery("#modalPrint").modal("show"); });
            }
            else {
                _this.messageService.warning("titles.operacaoVagao", "messages.selecioneUmRegistro");
            }
        };
        _this.infoMedicao = function () {
            if (!_this.itemSelecionado())
                return;
            if (_this.veiculoComCheckListReprovado(_this.service.dataDetalhe.codSitVeiculo))
                return;
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 4, function () { return __awaiter(_this, void 0, void 0, function () {
                var validationResult, mensagens, object;
                var _this = this;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0: return [4 /*yield*/, this.service.podeInformarMedicao({ cadastroPlacaIdCavalo: this.service.dataDetalhe.cadastroPlacaIdCavalo }).toPromise()];
                        case 1:
                            validationResult = _a.sent();
                            if (!validationResult.isValid) {
                                mensagens = this.messageService.validationResult(validationResult);
                                mensagens.forEach(function (m) { return _this.messageService.warning("titles.operacaoVagao", m); });
                                return [2 /*return*/];
                            }
                            object = btoa(JSON.stringify({
                                operacaoVagaoId: this.service.dataDetalhe.operacaoVagaoId,
                                cadastroPlacaIdCavalo: this.service.dataDetalhe.cadastroPlacaIdCavalo,
                                dtSaida: this.service.data.dtSaida,
                                dtInicioOperacao: this.service.data.dtInicioOperacao,
                                dtFimOperacao: this.service.data.dtFimOperacao,
                                destinatarioIdTransportadora: this.service.dataDetalhe.destinatarioIdTransportadora,
                                checkListId: this.service.dataDetalhe.checkListId,
                                checkListItemId: this.service.dataDetalhe.checkListItemId,
                                destinatarioIdCliente: this.service.dataDetalhe.destinatarioIdCliente
                            }));
                            this.router.navigate([this.target + "/operacao/operacaoVagao/informarMedicao/" + object]);
                            return [2 /*return*/];
                    }
                });
            }); });
        };
        _this.liberaVagao = function () {
            if (!_this.itemSelecionado())
                return;
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 5, 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.podeLiberar({ checkListId: this.service.dataDetalhe.checkListId }).toPromise()];
                        case 1:
                            validationResult = _a.sent();
                            if (!validationResult.isValid) {
                                mensagens = this.messageService.validationResult(validationResult);
                                mensagens.forEach(function (m) { return _this.messageService.warning("titles.operacaoVagao", m); });
                                return [2 /*return*/];
                            }
                            else {
                                this.geraACComboioEnviaEmailSetorResp();
                            }
                            return [2 /*return*/];
                    }
                });
            }); });
        };
        _this.reprovaVagao = function () {
            if (!_this.itemSelecionado())
                return;
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 6, 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.podeReprovar({ entradaVeiculoId: this.service.dataDetalhe.entradaVeiculoId }).toPromise()];
                        case 1:
                            validationResult = _a.sent();
                            if (!validationResult.isValid) {
                                mensagens = this.messageService.validationResult(validationResult);
                                mensagens.forEach(function (m) { return _this.messageService.warning("titles.operacaoVagao", m); });
                                return [2 /*return*/];
                            }
                            else {
                                this.messageService.confirm("titles.operacaoVagao", "messages.confirmaBloqueioDoVagao", "null", function () { return __awaiter(_this, void 0, void 0, function () {
                                    return __generator(this, function (_a) {
                                        this.geraACComboio();
                                        return [2 /*return*/];
                                    });
                                }); }, false, function () { });
                            }
                            return [2 /*return*/];
                    }
                });
            }); });
        };
        _this.enviaEmail = function () {
            if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].isNotPositive(_this.service.data.comboioId)) {
                _this.messageService.warning("titles.operacaoVagao", "messages.selecioneUmRegistro");
                return;
            }
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 7, function () { return __awaiter(_this, void 0, void 0, function () {
                var ret, mensagens, title, text, buttonCancel;
                var _this = this;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0: return [4 /*yield*/, this.service.podeEnviarEmail({ comboioId: this.service.data.comboioId }).toPromise()];
                        case 1:
                            ret = _a.sent();
                            this.continua = ret.retRetorno;
                            if (this.continua === "N") {
                                if (ret.mensagem !== "") {
                                    mensagens = ret.mensagem;
                                    mensagens.forEach(function (m) { return _this.messageService.warning("titles.operacaoVagao", m); });
                                    return [2 /*return*/];
                                }
                                else {
                                    title = void 0;
                                    text = void 0;
                                    buttonCancel = void 0;
                                    title = this.messageService.getTranslates("titles", "operacaoVagao");
                                    text = this.messageService.getTranslates("messages", "etapaConcluidaNaoSeraPossivelEnviarEmail");
                                    buttonCancel = this.messageService.getTranslates("buttons", "ok");
                                    sweetalert2__WEBPACK_IMPORTED_MODULE_8___default.a.fire({
                                        title: title,
                                        text: text,
                                        type: "warning",
                                        showCancelButton: false,
                                        confirmButtonColor: "#3085d6",
                                        cancelButtonColor: "#d33",
                                        confirmButtonText: buttonCancel,
                                        cancelButtonText: ""
                                    }).then(function (result) {
                                        if (result.value) {
                                            return;
                                        }
                                    });
                                }
                            }
                            else if ((this.continua === "S")) {
                                this.messageService.confirm("titles.operacaoVagao", "messages.medicaoTanqueProcessoCargaFerroviariaFoiGeradoDesejaReenviarEmail", "null", function () { return __awaiter(_this, void 0, void 0, function () {
                                    return __generator(this, function (_a) {
                                        this.enviaEmailSetorResponsavel(this.service.data.comboioId, "messages.emailEnviadoSucesso");
                                        return [2 /*return*/];
                                    });
                                }); }, false, function () { });
                            }
                            return [2 /*return*/];
                    }
                });
            }); });
        };
        _this.historicoEmail = function () {
            if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].isNotPositive(_this.service.data.comboioId)) {
                _this.messageService.warning("titles.operacaoVagao", "messages.selecioneUmRegistro");
                return;
            }
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 8, function () { return __awaiter(_this, void 0, void 0, function () {
                return __generator(this, function (_a) {
                    this.childOperacaoVagaoHistoricoEmailComponent.objectSelect(this.service.data.comboioId);
                    jQuery("#operacao-vagao-historico-email-dialog").modal("show");
                    return [2 /*return*/];
                });
            }); });
        };
        _this.alterarDatas = function () {
            app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_14__["EventEmitterService"].get("formError").emit(null);
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 9, function () {
                _this.childOperacaoVagaoChangeDataComponent.objectSelect(_this.service.data);
                jQuery("#operacao-vagao-change-data-dialog").modal("show");
            });
        };
        return _this;
    }
    OperacaoVagaoIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
        var base = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            base.refresh();
            if (!base.service.dados || base.service.dados.length === 0) {
                if (!base.loginService.isTokenExpired()) {
                    jQuery("#operacao-vagao-filter-dialog").modal("show");
                }
            }
        }, function () { return _this.permissoesUtils.back(); }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: '_print', func: function () { return _this._print; } },
            { action: 'infoMedicao', func: function () { return _this.infoMedicao; } },
            { action: 'liberaVagao', func: function () { return _this.liberaVagao; } },
            { action: 'reprovaVagao', func: function () { return _this.reprovaVagao; } },
            { action: 'enviaEmail', func: function () { return _this.enviaEmail; } },
            { action: 'historicoEmail', func: function () { return _this.historicoEmail; } },
            { action: 'alterarDatas', func: function () { return _this.alterarDatas; } }
        ]);
    };
    OperacaoVagaoIndexComponent.prototype.filtrar = function () {
        jQuery("#operacao-vagao-filter-dialog").modal("show");
    };
    OperacaoVagaoIndexComponent.prototype.executaFiltro = function () {
        this.refresh();
    };
    OperacaoVagaoIndexComponent.prototype.rowSelect = function (item, index) {
        var _this = this;
        this.currentIndex = index;
        this.service.data = item;
        var object = {
            comboioId: this.service.data.comboioId
        };
        this.service.getDadosOperacaoVagao(object).subscribe(function (resp) {
            _this.service.dadosDetalhes = resp;
            _this.hasDadosDetalhe = resp && resp.length > 0;
        });
        this.enviaEmailAtivo();
        this.historicoEmailAtivo();
    };
    OperacaoVagaoIndexComponent.prototype.rowSelectDetalhe = function (item, index) {
        this.currentIndexDetalhe = index;
        this.service.dataDetalhe = item;
        this.informarMedicaoAtivo();
        this.liberaVagaoAtivo();
        this.reprovaVagaoAtivo();
    };
    OperacaoVagaoIndexComponent.prototype.informarMedicaoAtivo = function () {
        var idx = this.constantes.listaIndex.findIndex(function (c) { return c.action === 'infoMedicao'; });
        if (idx >= 0) {
            this.constantes.listaIndex[idx].disabled = !(this.service.dataDetalhe.codSitVeiculo === 1005);
        }
    };
    OperacaoVagaoIndexComponent.prototype.liberaVagaoAtivo = function () {
        var idx = this.constantes.listaIndex.findIndex(function (c) { return c.action === 'liberaVagao'; });
        if (idx >= 0) {
            this.constantes.listaIndex[idx].disabled = !(this.service.dataDetalhe.codSitVeiculo === 1005);
        }
    };
    OperacaoVagaoIndexComponent.prototype.reprovaVagaoAtivo = function () {
        var idx = this.constantes.listaIndex.findIndex(function (c) { return c.action === 'reprovaVagao'; });
        if (idx >= 0) {
            this.constantes.listaIndex[idx].disabled = !(this.service.dataDetalhe.codSitVeiculo === 1007);
        }
    };
    OperacaoVagaoIndexComponent.prototype.enviaEmailAtivo = function () {
        var idx = this.constantes.listaIndex.findIndex(function (c) { return c.action === 'enviaEmail'; });
        if (idx >= 0) {
            this.constantes.listaIndex[idx].disabled = !(this.controlaEmail);
        }
    };
    OperacaoVagaoIndexComponent.prototype.historicoEmailAtivo = function () {
        var idx = this.constantes.listaIndex.findIndex(function (c) { return c.action === 'historicoEmail'; });
        if (idx >= 0) {
            this.constantes.listaIndex[idx].disabled = !(this.controlaEmail);
        }
    };
    OperacaoVagaoIndexComponent.prototype.itemSelecionado = function () {
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].isNotPositive(this.service.dataDetalhe.operacaoVagaoId)) {
            this.messageService.warning("titles.operacaoVagao", "messages.selecioneUmRegistro");
            return false;
        }
        return true;
    };
    OperacaoVagaoIndexComponent.prototype.veiculoComCheckListReprovado = function (codSitVeiculo) {
        var result = codSitVeiculo === 12;
        if (result)
            this.messageService.warning("titles.operacaoVagao", "messages.veiculoComCheckListReprovado");
        return result;
    };
    OperacaoVagaoIndexComponent.prototype.geraACComboioEnviaEmailSetorResp = function () {
        return __awaiter(this, void 0, void 0, function () {
            var ret;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.service.geraACComboio({ comboioId: this.service.data.comboioId }).toPromise()];
                    case 1:
                        ret = _a.sent();
                        this.continua = ret.retRetorno;
                        if (this.continua === "N") {
                            this.messageService.warning("titles.operacaoVagao", ret.mensagem);
                            return [2 /*return*/];
                        }
                        else if ((this.continua === "S") && (this.controlaEmail)) {
                            this.messageService.confirm("titles.operacaoVagao", "messages.medicaoTanqueProcessoCargaFerroviariaFoiConcluidoDesejaEnviarEmail", "null", function () { return __awaiter(_this, void 0, void 0, function () {
                                return __generator(this, function (_a) {
                                    this.enviaEmailSetorResponsavel(this.service.data.comboioId, "messages.vagaoLiberadoComSucesso");
                                    return [2 /*return*/];
                                });
                            }); }, false, function () { });
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    OperacaoVagaoIndexComponent.prototype.enviaEmailSetorResponsavel = function (comboioId, mensagem) {
        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.enviaEmailSetorResponsavel({ comboioId: comboioId }).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.messageService.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.cadastroOperacional", m); });
                            return [2 /*return*/];
                        }
                        else {
                            this.messageService.success("titles.operacaoVagao", mensagem);
                            this.refresh();
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    OperacaoVagaoIndexComponent.prototype.geraACComboio = function () {
        return __awaiter(this, void 0, void 0, function () {
            var ret;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.service.geraACComboio({ comboioId: this.service.data.comboioId }).toPromise()];
                    case 1:
                        ret = _a.sent();
                        this.continua = ret.retRetorno;
                        if (this.continua === "N") {
                            this.messageService.warning("titles.operacaoVagao", ret.mensagem);
                            return [2 /*return*/];
                        }
                        else if ((this.continua === "S")) {
                            this.messageService.success("titles.operacaoVagao", "messages.vagaoBloqueadoComSucesso");
                            this.refresh();
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    OperacaoVagaoIndexComponent.prototype.confirmaImpressao = function (tipoImpressao) {
        if (tipoImpressao === "situacao") {
            this.paramReportSituacao = true;
            this.paramReportLacreVeiculo = false;
        }
        else if (tipoImpressao === "lacreVeiculo") {
            this.paramReportSituacao = false;
            this.paramReportLacreVeiculo = true;
        }
        else {
            this.paramReportSituacao = true;
            this.paramReportLacreVeiculo = true;
        }
        this.printOperacaoVagao();
    };
    OperacaoVagaoIndexComponent.prototype.printOperacaoVagao = function () {
        if (this.funcoesService.getValue(this.service.data.comboioId, "I") > 0) {
            var reportTitulo = { titulo: '', subTitulo: '' };
            this.funcoesService.reportInvoc.invocaRelatorio(this.constantes.reportId, reportTitulo, {
                filialId: this.loginService.getLogin().filialId,
                comboioId: this.funcoesService.getValue(this.service.data.comboioId, "I"),
                paramReportSituacao: this.paramReportSituacao,
                paramReportLacreVeiculo: this.paramReportLacreVeiculo
            });
        }
        else {
            this.messageService.warning("titles.operacaoVagao", "messages.selecioneUmRegistro");
        }
    };
    OperacaoVagaoIndexComponent.prototype._refresh = function (event) {
        if (event) {
            this.refresh();
        }
    };
    OperacaoVagaoIndexComponent.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: _operacao_vagao_service__WEBPACK_IMPORTED_MODULE_10__["OperacaoVagaoService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_12__["ConfiguracaoFacade"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_operacao_vagao_historico_email_operacao_vagao_historico_email_component__WEBPACK_IMPORTED_MODULE_13__["OperacaoVagaoHistoricoEmailComponent"], { static: false }),
        __metadata("design:type", _operacao_vagao_historico_email_operacao_vagao_historico_email_component__WEBPACK_IMPORTED_MODULE_13__["OperacaoVagaoHistoricoEmailComponent"])
    ], OperacaoVagaoIndexComponent.prototype, "childOperacaoVagaoHistoricoEmailComponent", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_operacao_vagao_change_data_operacao_vagao_change_data_component__WEBPACK_IMPORTED_MODULE_15__["OperacaoVagaoChangeDataComponent"], { static: false }),
        __metadata("design:type", _operacao_vagao_change_data_operacao_vagao_change_data_component__WEBPACK_IMPORTED_MODULE_15__["OperacaoVagaoChangeDataComponent"])
    ], OperacaoVagaoIndexComponent.prototype, "childOperacaoVagaoChangeDataComponent", void 0);
    OperacaoVagaoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-operacao-vagao-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-vagao-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-vagao/operacao-vagao-index/operacao-vagao-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __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"],
            _operacao_vagao_service__WEBPACK_IMPORTED_MODULE_10__["OperacaoVagaoService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_12__["ConfiguracaoFacade"]])
    ], OperacaoVagaoIndexComponent);
    return OperacaoVagaoIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoVagaoMedicaoComponent", function() { return OperacaoVagaoMedicaoComponent; });
/* 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_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../../../../pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var _pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./../../../../pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _operacao_vagao_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../operacao-vagao.model */ "./src/app/pages/operacao/operacao-vagao/operacao-vagao.model.ts");
/* harmony import */ var _operacao_vagao_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../operacao-vagao.constants */ "./src/app/pages/operacao/operacao-vagao/operacao-vagao.constants.ts");
/* harmony import */ var _operacao_vagao_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../operacao-vagao.service */ "./src/app/pages/operacao/operacao-vagao/operacao-vagao.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_pages_cadastro_densidade_tanque_densidade_tanque_model__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! app/pages/cadastro/densidade-tanque/densidade-tanque.model */ "./src/app/pages/cadastro/densidade-tanque/densidade-tanque.model.ts");
/* harmony import */ var app_pages_cadastro_densidade_tanque_densidade_tanque_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! app/pages/cadastro/densidade-tanque/densidade-tanque.service */ "./src/app/pages/cadastro/densidade-tanque/densidade-tanque.service.ts");
/* harmony import */ var app_shared_components_modais_lacre_lacre_model__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! app/shared/components/modais/lacre/lacre.model */ "./src/app/shared/components/modais/lacre/lacre.model.ts");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
/* harmony import */ var app_shared_components_modais_lacre_lacre_service__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! app/shared/components/modais/lacre/lacre.service */ "./src/app/shared/components/modais/lacre/lacre.service.ts");
/* harmony import */ var app_pages_cadastro_cadastro_placa_cadastro_placa_service__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! app/pages/cadastro/cadastro-placa/cadastro-placa.service */ "./src/app/pages/cadastro/cadastro-placa/cadastro-placa.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 OperacaoVagaoMedicaoComponent = /** @class */ (function (_super) {
    __extends(OperacaoVagaoMedicaoComponent, _super);
    function OperacaoVagaoMedicaoComponent(router, activatedRoute, funcoes, configuracao, message, service, destinatarioService, permissoesUtils, loginService, densidadeTanqueService, lacreService, cadastroPlacaService) {
        var _this = _super.call(this, new _operacao_vagao_constants__WEBPACK_IMPORTED_MODULE_10__["OperacaoVagaoConstants"](), funcoes) || this;
        _this.router = router;
        _this.activatedRoute = activatedRoute;
        _this.funcoes = funcoes;
        _this.configuracao = configuracao;
        _this.message = message;
        _this.service = service;
        _this.destinatarioService = destinatarioService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.densidadeTanqueService = densidadeTanqueService;
        _this.lacreService = lacreService;
        _this.cadastroPlacaService = cadastroPlacaService;
        _this.data = new _operacao_vagao_model__WEBPACK_IMPORTED_MODULE_9__["OperacaoVagaoMedicaoDto"]();
        _this.constantes = new _operacao_vagao_constants__WEBPACK_IMPORTED_MODULE_10__["OperacaoVagaoConstants"]();
        _this.now = new Date();
        _this.medicaoVagao = new _operacao_vagao_model__WEBPACK_IMPORTED_MODULE_9__["OperacaoVagaoMedicaoDto"]();
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_13__["Mascaras"]();
        _this.materialId = "";
        _this.kilos = 0;
        _this.paramsLacreV = new app_shared_components_modais_lacre_lacre_model__WEBPACK_IMPORTED_MODULE_19__["ParamsLacre"]();
        _this.target = _this.funcoes.getTargetLocation();
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.altDtMedicaoVagao = _this.funcoesService.isBoolean(_this.configuracao.lerConfig("OPE", "AltDtMedicaoVagao"));
                _this.calc20Derivado = _this.funcoesService.isBoolean(_this.configuracao.lerConfig("OPE", "Calc20Derivado"));
            }
        };
        _this.usuarioId = _this.loginService.getLogin().usuario;
        return _this;
    }
    OperacaoVagaoMedicaoComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
        this.permissoesUtils.validRotina(this.constantes.sisFormularioId, 9, function () {
            var obj = _this.activatedRoute.snapshot.paramMap.get("object");
            _this.urlObject = JSON.parse(atob(obj));
            if (!_this.urlObject) {
                _this.message.warning("titles.operacaoVagao", "messages.nenhumRegistroEncontrado");
                return;
            }
            _this.init(_this.urlObject.operacaoVagaoId);
        }, function () { });
    };
    OperacaoVagaoMedicaoComponent.prototype.init = function (id) {
        var _this = this;
        var object = {
            operacaoVagaoId: id,
            cadastroPlacaIdCavalo: this.urlObject.cadastroPlacaIdCavalo
        };
        this.service.getDadosMedicaoVagao(object).subscribe(function (resp) {
            if (!!resp) {
                _this.medicaoVagao = resp;
                _this.carregaMedicao(_this.medicaoVagao);
            }
            else {
                _this.message.warning("titles.operacaoVagao", "messages.operacaoNaoPermitida");
                _this.back();
            }
        });
    };
    OperacaoVagaoMedicaoComponent.prototype.carregaMedicao = function (medicaoVagao) {
        var _this = this;
        this.data.operador = app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["StringUtilsStaticService"].isEmpty(medicaoVagao.operador) ? this.usuarioId : medicaoVagao.operador;
        this.data.dtSaida = !this.urlObject.dtSaida ? this.now : new Date(this.urlObject.dtSaida);
        this.data.dtInicioOperacao = !this.urlObject.dtInicioOperacao ? this.now : new Date(this.urlObject.dtInicioOperacao);
        this.data.dtFimOperacao = !this.urlObject.dtFimOperacao ? this.now : new Date(this.urlObject.dtFimOperacao);
        this.data.cadastroPlacaIdCavalo = app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["StringUtilsStaticService"].isEmpty(this.urlObject.cadastroPlacaIdCavalo) ? "" : this.urlObject.cadastroPlacaIdCavalo;
        this.data.destinatarioIdTransportadora = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["NumberUtilsStaticService"].toNumber(this.urlObject.destinatarioIdTransportadora);
        if (!!this.data.destinatarioIdTransportadora) {
            this.destinatarioService.getById(this.data.destinatarioIdTransportadora).subscribe(function (resp) {
                _this.data.transportadora = resp.fantasia;
            });
        }
        this.data.capacVagao = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["NumberUtilsStaticService"].toNumber(medicaoVagao.capacVagao);
        this.data.dtCertificacao = medicaoVagao.dtCertificacao;
        this.data.medicao = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["NumberUtilsStaticService"].toNumber(medicaoVagao.medicao);
        this.data.temperatura = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["NumberUtilsStaticService"].toNumber(medicaoVagao.temperatura);
        this.data.densidadePadrao = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["NumberUtilsStaticService"].toNumber(medicaoVagao.densidadePadrao);
        this.data.tempPadrao = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["NumberUtilsStaticService"].toNumber(medicaoVagao.tempPadrao);
        this.data.fatorCorrecao = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["NumberUtilsStaticService"].toNumber(medicaoVagao.fatorCorrecao);
        this.data.densidade = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["NumberUtilsStaticService"].toNumber(medicaoVagao.densidade);
        this.data.volumeCorrigido = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["NumberUtilsStaticService"].toNumber(medicaoVagao.volumeCorrigido);
        this.data.pesoCorrigido = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["NumberUtilsStaticService"].toNumber(medicaoVagao.pesoCorrigido);
        this.data.lacreVeiculo = app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["StringUtilsStaticService"].toString(medicaoVagao.lacreVeiculo);
        this.data.lacreAmostra = app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["StringUtilsStaticService"].toString(medicaoVagao.lacreAmostra);
        this.data.litros = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["NumberUtilsStaticService"].toNumber(medicaoVagao.litros);
        this.data.destinatarioIdCliente = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["NumberUtilsStaticService"].toNumber(this.urlObject.destinatarioIdCliente);
        this.moveParamsLacre();
    };
    OperacaoVagaoMedicaoComponent.prototype.validaDatasInicioFimOperacao = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["DateTimeUtilsStaticService"].maiorA(this.data.dtInicioOperacao, this.data.dtFimOperacao, ['H', 'M'])) {
            this.message.warning("titles.operacaoVagao", "messages.finalDeOperacaoNaoPodeSerInferiorAoInicioOperacao");
            return false;
        }
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["DateTimeUtilsStaticService"].menorA(this.data.dtSaida, this.data.dtFimOperacao, ['H', 'M'])) {
            this.message.warning("titles.operacaoVagao", "messages.saidaNaoPodeSerInferiorADataDeFinmDeOperacao");
            return false;
        }
        return true;
    };
    Object.defineProperty(OperacaoVagaoMedicaoComponent.prototype, "requiredMedicaoTanque", {
        get: function () {
            return this.altDtMedicaoVagao;
        },
        enumerable: true,
        configurable: true
    });
    OperacaoVagaoMedicaoComponent.prototype.calculaMedicao = function () {
        this.getInfoProduto(app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["NumberUtilsStaticService"].toNumber(this.urlObject.checkListId));
    };
    OperacaoVagaoMedicaoComponent.prototype.getInfoProduto = function (checkListId) {
        return __awaiter(this, void 0, void 0, function () {
            var ret;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (!checkListId)
                            return [2 /*return*/];
                        return [4 /*yield*/, this.service.getInfoProduto({ checkListId: checkListId }).toPromise()];
                    case 1:
                        ret = _a.sent();
                        if (ret) {
                            this.materialId = app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["StringUtilsStaticService"].toString(ret.materialId);
                            if (ret.regGrupoProduto === 1 && (this.calc20Derivado)) {
                                this.calculaDados20();
                            }
                            else if (ret.metCalcProduto === "C") {
                                this.kilos = this.data.litros * this.data.densidadePadrao;
                            }
                            else {
                                if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["NumberUtilsStaticService"].toNumberOrUndefined(this.data.densidadePadrao) > 0) {
                                    this.kilos = this.data.litros / this.data.densidadePadrao;
                                }
                            }
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    OperacaoVagaoMedicaoComponent.prototype.calculaDados20 = function () {
        var _this = this;
        var filtroCalculo = new app_pages_cadastro_densidade_tanque_densidade_tanque_model__WEBPACK_IMPORTED_MODULE_17__["CalculoDensidadeFilter"]();
        filtroCalculo.materialId = this.materialId;
        filtroCalculo.temperaturaAmostra = this.data.temperatura;
        filtroCalculo.temperaturaCarroTanque = this.data.tempPadrao;
        filtroCalculo.densidadeAmostra = this.data.densidadePadrao;
        filtroCalculo.volume = this.data.litros;
        filtroCalculo.mostraErro = 'S';
        this.densidadeTanqueService.calculaDados20(filtroCalculo).subscribe(function (resp) {
            if (_this.funcoesService.isNotUndefinedOrNull(resp.msgErro)) {
                _this.message.error("titles.operacaoVagao", resp.msgErro);
            }
            else {
                _this.data.densidade = resp.densidadeCorrigida;
                _this.data.fatorCorrecao = resp.fatorCorrecao;
                _this.data.volumeCorrigido = resp.volumeCorrigido;
                _this.data.pesoCorrigido = resp.pesoCorrigido;
                _this.kilos = resp.pesoCorrigido;
            }
        });
    };
    ;
    OperacaoVagaoMedicaoComponent.prototype.back = function () {
        this.router.navigate(["pages/operacao/operacaoVagao"]);
    };
    OperacaoVagaoMedicaoComponent.prototype.onSubmit = function (form) {
        return __awaiter(this, void 0, void 0, function () {
            var validationResult, mensagens;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("formError").emit(form);
                        if (form.invalid) {
                            this.funcoes.backToTop();
                            return [2 /*return*/];
                        }
                        this.preSave();
                        if (!this.validaDatasInicioFimOperacao())
                            return [2 /*return*/];
                        return [4 /*yield*/, this.service.gravarMedicao(this.data).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.message.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.message.warning("titles.operacaoVagao", m); });
                            return [2 /*return*/];
                        }
                        else {
                            this.message.saveSuccess("titles.operacaoVagao");
                            this.back();
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    OperacaoVagaoMedicaoComponent.prototype.preSave = function () {
        this.service.operador = this.data.operador;
        this.service.dtSaida = this.data.dtSaida;
        this.service.dtInicioOperacao = this.data.dtInicioOperacao;
        this.service.dtFimOperacao = this.data.dtFimOperacao;
        this.data.operacaoVagaoId = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["NumberUtilsStaticService"].toNumber(this.urlObject.operacaoVagaoId);
        this.data.checkListId = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["NumberUtilsStaticService"].toNumber(this.urlObject.checkListId);
        this.data.checkListItemId = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["NumberUtilsStaticService"].toNumber(this.urlObject.checkListItemId);
        this.data.kilos = this.kilos;
    };
    OperacaoVagaoMedicaoComponent.prototype.moveParamsLacre = function () {
        return __awaiter(this, void 0, void 0, function () {
            var total;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.cadastroPlacaService.getQuantidLacre({
                            cadastroPlacaIdCavalo: this.data.cadastroPlacaIdCavalo,
                            cadastroPlacaIdCarreta1: "",
                            cadastroPlacaIdCarreta2: ""
                        }).toPromise()];
                    case 1:
                        total = _a.sent();
                        this.paramsLacreV.codDest = this.data.destinatarioIdCliente;
                        this.paramsLacreV.tipoMov = "C";
                        this.paramsLacreV.tipoLacre = "V";
                        this.paramsLacreV.autorizacao = 0;
                        this.paramsLacreV.quantidLacres = total;
                        return [4 /*yield*/, Object(rxjs__WEBPACK_IMPORTED_MODULE_20__["forkJoin"])([
                                this.lacreService.geraTmp(this.paramsLacreV),
                            ]).toPromise()];
                    case 2:
                        _a.sent();
                        return [2 /*return*/];
                }
            });
        });
    };
    OperacaoVagaoMedicaoComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_2__["ConfiguracaoFacade"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"] },
        { type: _operacao_vagao_service__WEBPACK_IMPORTED_MODULE_11__["OperacaoVagaoService"] },
        { type: _pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_3__["DestinatarioService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] },
        { type: _pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"] },
        { type: app_pages_cadastro_densidade_tanque_densidade_tanque_service__WEBPACK_IMPORTED_MODULE_18__["DensidadeTanqueService"] },
        { type: app_shared_components_modais_lacre_lacre_service__WEBPACK_IMPORTED_MODULE_21__["LacreService"] },
        { type: app_pages_cadastro_cadastro_placa_cadastro_placa_service__WEBPACK_IMPORTED_MODULE_22__["CadastroPlacaService"] }
    ]; };
    OperacaoVagaoMedicaoComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-operacao-vagao-medicao",
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-vagao-medicao.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-vagao/operacao-vagao-medicao/operacao-vagao-medicao.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_2__["ConfiguracaoFacade"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"],
            _operacao_vagao_service__WEBPACK_IMPORTED_MODULE_11__["OperacaoVagaoService"],
            _pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_3__["DestinatarioService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"],
            _pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"],
            app_pages_cadastro_densidade_tanque_densidade_tanque_service__WEBPACK_IMPORTED_MODULE_18__["DensidadeTanqueService"],
            app_shared_components_modais_lacre_lacre_service__WEBPACK_IMPORTED_MODULE_21__["LacreService"],
            app_pages_cadastro_cadastro_placa_cadastro_placa_service__WEBPACK_IMPORTED_MODULE_22__["CadastroPlacaService"]])
    ], OperacaoVagaoMedicaoComponent);
    return OperacaoVagaoMedicaoComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_12__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/operacao/operacao-vagao/operacao-vagao-print-modal/operacao-vagao-print-modal.component.ts":
/*!******************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-vagao/operacao-vagao-print-modal/operacao-vagao-print-modal.component.ts ***!
  \******************************************************************************************************************/
/*! exports provided: OperacaoVagaoPrintModalComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoVagaoPrintModalComponent", function() { return OperacaoVagaoPrintModalComponent; });
/* 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_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 app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _operacao_vagao_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../operacao-vagao.service */ "./src/app/pages/operacao/operacao-vagao/operacao-vagao.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var OperacaoVagaoPrintModalComponent = /** @class */ (function () {
    function OperacaoVagaoPrintModalComponent(router, funcoes, service) {
        this.router = router;
        this.funcoes = funcoes;
        this.service = service;
        this.outConfirma = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    OperacaoVagaoPrintModalComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(_this.router, event);
        });
        this.tipoSelecionado = "";
        this.initListaTiposImpressao();
    };
    OperacaoVagaoPrintModalComponent.prototype.initListaTiposImpressao = function () {
        this.tiposImpressao = [
            { value: "situacao", label: "labels.situacao" },
            { value: "lacreVeiculo", label: "labels.lacreVeiculo" },
            { value: "ambos", label: "labels.ambos" }
        ];
    };
    OperacaoVagaoPrintModalComponent.prototype.onSubmit = function (form) {
        if (form.invalid) {
            app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.outConfirma.emit(this.tipoSelecionado);
        this.tipoSelecionado = "";
        jQuery("#modalPrint").modal("hide");
    };
    OperacaoVagaoPrintModalComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: _operacao_vagao_service__WEBPACK_IMPORTED_MODULE_4__["OperacaoVagaoService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoVagaoPrintModalComponent.prototype, "outConfirma", void 0);
    OperacaoVagaoPrintModalComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-operacao-vagao-print-modal",
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-vagao-print-modal.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-vagao/operacao-vagao-print-modal/operacao-vagao-print-modal.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _operacao_vagao_service__WEBPACK_IMPORTED_MODULE_4__["OperacaoVagaoService"]])
    ], OperacaoVagaoPrintModalComponent);
    return OperacaoVagaoPrintModalComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoVagaoConstants", function() { return OperacaoVagaoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var OperacaoVagaoConstants = /** @class */ (function () {
    function OperacaoVagaoConstants() {
        this.sisFormularioId = 250098;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.infoMedicao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.liberaVagao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.reprovaVagao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 7, acao: "labels.enviaEmail" },
            { sisFormularioId: this.sisFormularioId, libRotina: 8, acao: "labels.historicoEmail" },
            { sisFormularioId: this.sisFormularioId, libRotina: 9, acao: "labels.alterarDatas" },
        ];
        this.sisSistemaId = "OPE";
        this.nomeForm = "titles.operacaoVagao";
        this.reportId = "OPE0025";
        this.reportTitulo = { "titulo": "", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { 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: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'InfoMedicao', action: 'infoMedicao', icon: "fa fa-wpforms", exibeButton: true, eximeMenu: true, menuName: 'Movimento', disabled: true },
            { title: 'LiberaVagao', action: 'liberaVagao', icon: "fa fa-thumbs-o-up", exibeButton: true, eximeMenu: true, menuName: 'Movimento', disabled: true },
            { title: 'ReprovaVagao', action: 'reprovaVagao', icon: "fa fa-thumbs-o-down", exibeButton: true, eximeMenu: true, menuName: 'Movimento', disabled: true },
            { title: 'EnviaEmail', action: 'enviaEmail', icon: "fa fa-envelope-o", exibeButton: true, eximeMenu: true, menuName: 'Movimento', disabled: true },
            { title: 'HistoricoEmail', action: 'historicoEmail', icon: "fa fa-history", exibeButton: true, eximeMenu: true, menuName: 'Movimento', disabled: true },
            { title: 'AlterarDatas', action: 'alterarDatas', icon: "icon-calendar", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
        this.listaForm = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.listaInformarMedicao = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.listaParam = [
            { 'sistema': 'OPE', 'parametros': ['AltDtMedicaoVagao', 'Calc20Derivado'] },
            { 'sistema': 'CTV', 'parametros': ['ControlaEmail'] },
        ];
    }
    return OperacaoVagaoConstants;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-vagao/operacao-vagao.model.ts":
/*!***********************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-vagao/operacao-vagao.model.ts ***!
  \***********************************************************************/
/*! exports provided: OperacaoVagaoFilter, OperacaoVagaoComboioDto, OperacaoVagaoDto, OperacaoVagaoMedicaoDto, OperacaoVagaoComboioVagaoEmailDto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoVagaoFilter", function() { return OperacaoVagaoFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoVagaoComboioDto", function() { return OperacaoVagaoComboioDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoVagaoDto", function() { return OperacaoVagaoDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoVagaoMedicaoDto", function() { return OperacaoVagaoMedicaoDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoVagaoComboioVagaoEmailDto", function() { return OperacaoVagaoComboioVagaoEmailDto; });
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

var OperacaoVagaoFilter = /** @class */ (function () {
    function OperacaoVagaoFilter() {
        this.dataI = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].addDays(new Date(), -3);
        this.dataF = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].getFinalDay();
    }
    return OperacaoVagaoFilter;
}());

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

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

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

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



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoVagaoModule", function() { return OperacaoVagaoModule; });
/* 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 _operacao_vagao_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./operacao-vagao.routing.module */ "./src/app/pages/operacao/operacao-vagao/operacao-vagao.routing.module.ts");
/* harmony import */ var _operacao_vagao_index_operacao_vagao_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./operacao-vagao-index/operacao-vagao-index.component */ "./src/app/pages/operacao/operacao-vagao/operacao-vagao-index/operacao-vagao-index.component.ts");
/* harmony import */ var _operacao_vagao_filter_operacao_vagao_filter_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./operacao-vagao-filter/operacao-vagao-filter.component */ "./src/app/pages/operacao/operacao-vagao/operacao-vagao-filter/operacao-vagao-filter.component.ts");
/* harmony import */ var _operacao_vagao_medicao_operacao_vagao_medicao_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./operacao-vagao-medicao/operacao-vagao-medicao.component */ "./src/app/pages/operacao/operacao-vagao/operacao-vagao-medicao/operacao-vagao-medicao.component.ts");
/* harmony import */ var _operacao_vagao_print_modal_operacao_vagao_print_modal_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./operacao-vagao-print-modal/operacao-vagao-print-modal.component */ "./src/app/pages/operacao/operacao-vagao/operacao-vagao-print-modal/operacao-vagao-print-modal.component.ts");
/* harmony import */ var _operacao_vagao_historico_email_operacao_vagao_historico_email_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./operacao-vagao-historico-email/operacao-vagao-historico-email.component */ "./src/app/pages/operacao/operacao-vagao/operacao-vagao-historico-email/operacao-vagao-historico-email.component.ts");
/* harmony import */ var _operacao_vagao_change_data_operacao_vagao_change_data_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./operacao-vagao-change-data/operacao-vagao-change-data.component */ "./src/app/pages/operacao/operacao-vagao/operacao-vagao-change-data/operacao-vagao-change-data.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 OperacaoVagaoModule = /** @class */ (function () {
    function OperacaoVagaoModule() {
    }
    OperacaoVagaoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _operacao_vagao_routing_module__WEBPACK_IMPORTED_MODULE_2__["OperacaoVagaoRoutingModule"]],
            declarations: [_operacao_vagao_index_operacao_vagao_index_component__WEBPACK_IMPORTED_MODULE_3__["OperacaoVagaoIndexComponent"],
                _operacao_vagao_filter_operacao_vagao_filter_component__WEBPACK_IMPORTED_MODULE_4__["OperacaoVagaoFilterComponent"],
                _operacao_vagao_medicao_operacao_vagao_medicao_component__WEBPACK_IMPORTED_MODULE_5__["OperacaoVagaoMedicaoComponent"],
                _operacao_vagao_print_modal_operacao_vagao_print_modal_component__WEBPACK_IMPORTED_MODULE_6__["OperacaoVagaoPrintModalComponent"],
                _operacao_vagao_historico_email_operacao_vagao_historico_email_component__WEBPACK_IMPORTED_MODULE_7__["OperacaoVagaoHistoricoEmailComponent"],
                _operacao_vagao_change_data_operacao_vagao_change_data_component__WEBPACK_IMPORTED_MODULE_8__["OperacaoVagaoChangeDataComponent"]]
        })
    ], OperacaoVagaoModule);
    return OperacaoVagaoModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoVagaoRoutingModule", function() { return OperacaoVagaoRoutingModule; });
/* 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 _operacao_vagao_index_operacao_vagao_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./operacao-vagao-index/operacao-vagao-index.component */ "./src/app/pages/operacao/operacao-vagao/operacao-vagao-index/operacao-vagao-index.component.ts");
/* harmony import */ var _operacao_vagao_medicao_operacao_vagao_medicao_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./operacao-vagao-medicao/operacao-vagao-medicao.component */ "./src/app/pages/operacao/operacao-vagao/operacao-vagao-medicao/operacao-vagao-medicao.component.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.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: _operacao_vagao_index_operacao_vagao_index_component__WEBPACK_IMPORTED_MODULE_2__["OperacaoVagaoIndexComponent"],
        data: { breadcrumb: "operacaoVagao" }
    },
    {
        path: "informarMedicao/:object",
        component: _operacao_vagao_medicao_operacao_vagao_medicao_component__WEBPACK_IMPORTED_MODULE_3__["OperacaoVagaoMedicaoComponent"],
        data: {
            breadcrumb: "operacaoVagao",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].edit }
        }
    }
];
var OperacaoVagaoRoutingModule = /** @class */ (function () {
    function OperacaoVagaoRoutingModule() {
    }
    OperacaoVagaoRoutingModule = __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"]]
        })
    ], OperacaoVagaoRoutingModule);
    return OperacaoVagaoRoutingModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoVagaoService", function() { return OperacaoVagaoService; });
/* 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 _environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _operacao_vagao_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./operacao-vagao.model */ "./src/app/pages/operacao/operacao-vagao/operacao-vagao.model.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
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 OperacaoVagaoService = /** @class */ (function () {
    function OperacaoVagaoService(http, messageService) {
        this.http = http;
        this.messageService = messageService;
        this.data = new _operacao_vagao_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoVagaoComboioDto"]();
        this.dataDetalhe = new _operacao_vagao_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoVagaoDto"]();
    }
    OperacaoVagaoService.prototype.getDados = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/operacao/operacaoVagao/getByFiltro", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    OperacaoVagaoService.prototype.getDadosOperacaoVagao = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/operacao/operacaoVagao/getDadosOperacaoVagao", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    OperacaoVagaoService.prototype.podeInformarMedicao = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/operacao/operacaoVagao/podeInformarMedicao", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    OperacaoVagaoService.prototype.getDadosMedicaoVagao = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/operacao/operacaoVagao/getDadosMedicaoVagao", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    OperacaoVagaoService.prototype.getInfoProduto = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/operacao/operacaoVagao/getInfoProduto", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    OperacaoVagaoService.prototype.gravarMedicao = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/operacao/operacaoVagao/gravarMedicao", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    OperacaoVagaoService.prototype.podeLiberar = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/operacao/operacaoVagao/podeLiberar", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    OperacaoVagaoService.prototype.geraACComboio = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/operacao/operacaoVagao/geraACComboio", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    OperacaoVagaoService.prototype.enviaEmailSetorResponsavel = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/operacao/operacaoVagao/enviaEmailSetorResponsavel", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    OperacaoVagaoService.prototype.podeReprovar = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/operacao/operacaoVagao/podeReprovar", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    OperacaoVagaoService.prototype.podeEnviarEmail = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/operacao/operacaoVagao/podeEnviarEmail", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    OperacaoVagaoService.prototype.getDadosHistoricoEmail = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/operacao/operacaoVagao/getDadosHistoricoEmail", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    OperacaoVagaoService.prototype.alterarDatas = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/operacao/operacaoVagao/alterarDatas", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    OperacaoVagaoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] }
    ]; };
    OperacaoVagaoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"]])
    ], OperacaoVagaoService);
    return OperacaoVagaoService;
}());



/***/ })

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