(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-rocha-movimentos-bal-outras-cargas-bal-outras-cargas-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-filter/bal-outras-cargas-filter.component.html":
/*!*****************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-filter/bal-outras-cargas-filter.component.html ***!
  \*****************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal fade\" id=\"oc-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop='static'>\n    <div class=\"uni-modal-dialog-md-40\" role=\"document\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h5 class=\"modal-title\">{{ 'titles.filtroOutrasCargas' | translate }} </h5>\n            </div>\n            <div class=\"modal-body\">\n                <div class=\"row\">\n                    <div class=\"col-lg-12 col-md-12\">\n                        <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n                            <div class=\"row\">\n                                <div class=\"col-lg-6 col-md-6\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"emissaoDe\" class=\"required\">{{'labels.emissaoDe' |\n                                            translate}}</label>\n                                        <app-data id=\"emissaoDe\" name=\"emissaoDe\" [(ngModel)]=\"service.filtro.dataI\">\n                                        </app-data>\n                                    </div>\n                                </div>\n                                <div class=\"col-lg-6 col-md-6\">\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\"></app-data>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <app-field-container>\n                                            <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" tipoDestinatario=\"C\"\n                                                modalTitle=\"pesquisaDeCliente\" label=\"cliente\"\n                                                [(ngModel)]=\"service.filtro.destinatarioIdCliente\" showInscricao=\"false\"\n                                                (outModel)=\"cliente($event)\"\n                                                [inSelected]=\"service.filtro.cliente\" showCgcCpf=\"false\">\n                                            </app-pesquisa-destinatario>\n                                        </app-field-container>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-md-12 col-sm-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <app-pesquisa-material id=\"produto\" name=\"produto\" label=\"produto\"\n                                            modalTitle=\"pesquisaDeProduto\" [inSelected]=\"service.filtro.material\"\n                                            (outModel)=\"material($event)\" [(ngModel)]=\"service.filtro.materialId\">\n                                        </app-pesquisa-material>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <app-pesquisa-destinatario id=\"destinatarioIdTransp\" label=\"transportadora\"\n                                            name=\"destinatarioIdTransp\"\n                                            [(ngModel)]=\"service.filtro.destinatarioIdTransportadora\" showCgcCpf=\"false\"\n                                            showInscricao=\"false\" tipoDestinatario=\"TN\"\n                                            (outModel)=\"transportadora($event)\"\n                                            [inSelected]=\"service.filtro.transportadora\"\n                                            modalTitle=\"pesquisaDeTransportadora\">\n                                        </app-pesquisa-destinatario>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-6 col-md-6\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"autorizacao\">{{ 'labels.autorizacao' | translate}}</label>\n                                        <input id=\"autorizacao\" name=\"autorizacao\"\n                                            [(ngModel)]=\"service.filtro.opCargaId\" class=\"form-control form-control-sm\">\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-6 col-md-6\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"placa\">{{ 'labels.placa' | translate }}</label>\n                                        <input id=\"placa\" name=\"placa\" [(ngModel)]=\"service.filtro.cadastroPlacaIdCavalo\"\n                                            class=\"form-control form-control-sm\">\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"d-flex justify-content-end\">\n                                <button class=\"btn btn-success mr-1\">\n                                    {{ 'buttons.pesquisar' | translate }}\n                                </button>\n                                <button class=\"btn btn-default\" data-dismiss=\"modal\">\n                                    {{ 'buttons.sair' | translate }}\n                                </button>\n                            </div>\n                        </form>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-form/bal-outras-cargas-form.component.html":
/*!*************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-form/bal-outras-cargas-form.component.html ***!
  \*************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaForm\" [formAction]=\"actionForm\" [itemData]=\"data.opCargaId\"\r\n    [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\r\n        <app-form-legenda></app-form-legenda>\r\n        <app-validacoes></app-validacoes>\r\n        <div class=\"row\">\r\n            <div class=\"col-lg-2 col-md-4 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label for=\"autDeOperacao\">{{'labels.autDeOperacao' | translate}}</label>\r\n                    <input id=\"autDeOperacao\" name=\"autDeOperacao\" [(ngModel)]=\"data.opCargaId\"\r\n                        class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                        [options]=\"{ prefix: '', thousands: '', decimal: '', precision: 0 }\" disabled>\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <div class=\"row\">\r\n            <div class=\"col-lg-3 col-md-4 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label for=\"dtChegada\" class=\"required\"> {{ 'labels.dataHoraChegada' | translate }}\r\n                    </label>\r\n                    <app-data-h-m id=\"dtChegada\" name=\"dtChegada\" required=\"true\"\r\n                        [disabled]=\"funcoesService.isDetail(actionForm) ? true: false\" [(ngModel)]=\"data.dtChegada\"\r\n                        (change)=\"replicaData()\"></app-data-h-m>\r\n                </div>\r\n            </div>\r\n            <div class=\"col-lg-3 col-md-4 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label for=\"dataHoraEntrada\" class=\"required\"> {{ 'labels.dataHoraEntrada' | translate }}\r\n                    </label>\r\n                    <app-data-h-m id=\"dataHoraEntrada\" name=\"dataHoraEntrada\" required=\"true\"\r\n                        [disabled]=\"funcoesService.isEdit(actionForm) || funcoesService.isDetail(actionForm) ? true: false\"\r\n                        [(ngModel)]=\"data.dtAutorizacao\" (change)=\"vldDtAutorizacao()\"></app-data-h-m>\r\n                </div>\r\n            </div>\r\n            <div class=\"col-lg-2 col-md-4 col-sm-12\" *ngIf=\"showDtAtracacao\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label for=\"dtAtracacao\" [class.required]=\"showDtAtracacao\"> {{ 'labels.dataHoraAtracacao' |\r\n                        translate }}\r\n                    </label>\r\n                    <app-data id=\"dtAtracacao\" name=\"dtAtracacao\" [required]=\"showDtAtracacao\"\r\n                        [formatDateTime]=\"mascara.getFormatDataHorMin\"\r\n                        [disabled]=\"funcoesService.isDetail(actionForm) ? true: false\" [(ngModel)]=\"data.dtDescarga\"\r\n                        [ngStyle]=\"{'width':'100%'}\">\r\n                    </app-data>\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <div class=\"row\">\r\n            <div class=\"col-lg-6 col-md-9 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label for=\"tipoDeTransporte\" class=\"required\">\r\n                        {{ 'labels.tipoDeTransporte' | translate }}\r\n                    </label>\r\n                    <app-combo-tipos-de-transporte id=\"tipoDeTransporte\" name=\"tipoDeTransporte\" required ativos=\"true\"\r\n                        ordenarPorDescricao=\"true\" [(ngModel)]=\"data.tipoTransp\"\r\n                        [disabled]=\"funcoesService.isDetail(actionForm)\" (outSelected)=\"trataTipoTransp($event)\">\r\n                    </app-combo-tipos-de-transporte>\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <div class=\"row\">\r\n            <div class=\"col-6\">\r\n                <div class=\"row\">\r\n                    <div class=\"col-lg-12\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" label=\"cliente\" required=\"true\"\r\n                                [disabled]=\"funcoesService.isDetail(actionForm)\" modalTitle=\"pesquisaDeCliente\"\r\n                                [(ngModel)]=\"data.destinatarioIdCliente\" [inSelected]=\"data.cliente\"\r\n                                tipoDestinatario=\"C\" showCgcCpf=\"true\" showInscricao=\"false\" (blur)=\"validaDeposito()\">\r\n                            </app-pesquisa-destinatario>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"row\">\r\n                    <div class=\"col-lg-12\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <app-pesquisa-material id=\"produto\" name=\"produto\" label=\"produto\" required=\"true\"\r\n                                [disabled]=\"funcoesService.isDetail(actionForm)\" modalTitle=\"pesquisaDeProduto\"\r\n                                [(ngModel)]=\"data.materialId\" [inSelected]=\"data.material\"\r\n                                (outModel)=\"trataMaterial($event)\" (blur)=\"showSolDadosEnt\">\r\n                            </app-pesquisa-material>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"row\">\r\n                    <div class=\"col-lg-12\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <app-pesquisa-destinatario id=\"clienteVenda\" name=\"clienteVenda\" label=\"clienteVenda\"\r\n                                [disabled]=\"funcoesService.isDetail(actionForm)\" modalTitle=\"pesquisaDeCliente\"\r\n                                [(ngModel)]=\"data.destinatarioIdClienteVenda\" [inSelected]=\"data.clienteVenda\"\r\n                                tipoDestinatario=\"C\" showCgcCpf=\"true\" showInscricao=\"false\">\r\n                            </app-pesquisa-destinatario>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"row\">\r\n                    <div class=\"col-lg-6 col-md-12\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"notaVenda\">\r\n                                {{ \"labels.notaVenda\" | translate }}\r\n                            </label>\r\n                            <input id=\"notaVenda\" name=\"notaVenda\" class=\"form-control form-control-sm\" type=\"text\"\r\n                                currencyMask [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                [disabled]=\"funcoesService.isDetail(actionForm)\" [(ngModel)]=\"data.notaVenda\" />\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"col-lg-6\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"requisicao\">\r\n                                {{ \"labels.requisicao\" | translate }}\r\n                            </label>\r\n                            <input id=\"requisicao\" name=\"requisicao\" class=\"form-control form-control-sm\" type=\"text\"\r\n                                currencyMask [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                [disabled]=\"funcoesService.isDetail(actionForm)\" [(ngModel)]=\"data.requisicao\" />\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"row\">\r\n                    <div class=\"col-lg-6 col-md-12\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <app-pesquisa-osg id=\"ordemServico\" label=\"ordemServico\" name=\"ordemServico\"\r\n                                [destinatarioIdCliente]=\"data.destinatarioIdCliente\" [materialId]=\"data.materialId\"\r\n                                [required]=\"service.configs.osgNaOCD\"\r\n                                [disabled]=\"funcoesService.isDetail(actionForm) || !service.configs.osgNaOCD\"\r\n                                [inpOsg]=\"data.osg\" [(ngModel)]=\"data.osgId\">\r\n                            </app-pesquisa-osg>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n            <div class=\"col-6\">\r\n                <div class=\"row\">\r\n                    <div class=\"col-lg-6 col-md-6 col-sm-12\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"localizacao\">{{'labels.localizacao' | translate}}</label>\r\n                            <app-combo-padrao id=\"localizacao\" name=\"localizacao\" [(ngModel)]=\"data.localizacaoId\"\r\n                                tabela=\"Localizacao\" chave=\"CodLocal\" descricao=\"DescrLocal\" ativos=\"true\"\r\n                                [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                            </app-combo-padrao>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"row\">\r\n                    <div class=\"col-lg-6 col-md-6 col-sm-12 mt-1\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"embalagem\">{{\r\n                                \"labels.embalagem\" | translate\r\n                                }}</label>\r\n                            <app-combo-padrao id=\"embalagem\" name=\"embalagem\" [(ngModel)]=\"data.embalagemId\"\r\n                                tabela=\"Embalagem\" chave=\"Embalagem\" descricao=\"DescrEmbalagem\" ativos=\"true\"\r\n                                [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                            </app-combo-padrao>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <div class=\"row\"\r\n            [ngClass]=\"{'tem-controle-20-tipoOperacao': visibledDados20, 'nao-tem-controle-20': !visibledDados20}\">\r\n            <div class=\"col-lg-6 col-md-6 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label for=\"tipoOperacao\" class=\"required\">\r\n                        {{'labels.tipoOperacao' | translate}}\r\n                    </label>\r\n                    <app-combo-tipo-operacao id=\"tipoOperacao\" name=\"tipoOperacao\" ativos=\"true\" flagAtivo=\"S\"\r\n                        ordenarPorDescricao=\"true\" [(ngModel)]=\"data.tipoOperacaoId\"\r\n                        [disabled]=\"funcoesService.isDetail(actionForm)\" required=\"true\">\r\n                    </app-combo-tipo-operacao>\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <div class=\"row\"\r\n            [ngClass]=\"{'tem-controle-20-tipoTransporte': visibledDados20, 'nao-tem-controle-20': !visibledDados20}\">\r\n            <div class=\"col-lg-4 col-md-3 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label for=\"tipoDocTransporte\" class=\"required\">{{'labels.tipoDocTransporte' | translate}}</label>\r\n                    <app-combo-padrao id=\"tipoDocTransporte\" name=\"tipoDocTransporte\"\r\n                        [(ngModel)]=\"data.tipoDocumentoTranspId\" tabela=\"TipoDocumentoTransp\" chave=\"CodTipoDocto\"\r\n                        descricao=\"DescrTipoDocto\" ativos=\"true\" [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                        (outObjeto)=\"visibledNumeroEmissao($event)\" (blur)=\"showSolDadosEnt\" required=\"true\">\r\n                    </app-combo-padrao>\r\n                </div>\r\n            </div>\r\n            <div class=\"col-lg-2 col-md-4 col-sm-8\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label for=\"numero\" [class.required]=\"showNumeroEmissao\">{{ \"labels.numero\" | translate }}</label>\r\n                    <input id=\"numero\" name=\"numero\" class=\"form-control form-control-sm\" type=\"text\" maxlength=\"20\"\r\n                        [required]=\"showNumeroEmissao\"\r\n                        [disabled]=\"funcoesService.isDetail(actionForm) || !showSolDadosEnt\"\r\n                        [(ngModel)]=\"data.docTranspNumero\" />\r\n                </div>\r\n            </div>\r\n            <div class=\"col-lg-2 col-md-4 col-sm-8\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label for=\"emissao\" [class.required]=\"showSolDadosEnt\">{{ \"labels.emissao\" | translate }}</label>\r\n                    <app-data id=\"emissao\" name=\"emissao\" type=\"text\" [required]=\"showSolDadosEnt\"\r\n                        [disabled]=\"funcoesService.isDetail(actionForm) || !showSolDadosEnt\"\r\n                        [(ngModel)]=\"data.docTranspEmissao\">\r\n                    </app-data>\r\n                </div>\r\n            </div>\r\n            <div class=\"col-lg-2 col-md-4 col-sm-8\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label for=\"tipoFrete\" class=\"required\">{{'labels.tipoFrete' | translate}}</label>\r\n                    <app-combo-padrao id=\"tipoFrete\" name=\"tipoFrete\" [(ngModel)]=\"data.tipoFrete\" tabela=\"TipoFrete\"\r\n                        chave=\"TipoFrete\" descricao=\"DescrTipoFrete\" ativos=\"true\"\r\n                        [disabled]=\"funcoesService.isDetail(actionForm)\" required=\"true\">\r\n                    </app-combo-padrao>\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <div class=\"row\">\r\n            <div class=\"col-lg-8 col-md-10 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <app-pesquisa-destinatario id=\"transportador\" name=\"transportador\" label=\"transportador\"\r\n                        [required]=\"obrigaTransp || funcoesService.isEdit(actionForm)\"\r\n                        [disabled]=\"funcoesService.isDetail(actionForm) || !obrigaTransp\"\r\n                        modalTitle=\"pesquisaDeTransportadora\" [(ngModel)]=\"data.destinatarioIdTransportadora\"\r\n                        [inSelected]=\"data.transportadora\" tipoDestinatario=\"T\" showCgcCpf=\"true\" showInscricao=\"false\">\r\n                    </app-pesquisa-destinatario>\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <div class=\"row\">\r\n            <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label for=\"tipoVeiculo\" class=\"required\">\r\n                        {{'labels.tipoVeiculo' | translate }}\r\n                    </label>\r\n                    <app-combo-tipo-veiculo id=\"tipoVeiculo\" name=\"tipoVeiculo\" required=\"true\" inativos=\"false\"\r\n                        excluidos=\"false\" [(ngModel)]=\"data.tipoVeiculoId\"\r\n                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                    </app-combo-tipo-veiculo>\r\n                </div>\r\n            </div>\r\n            <div class=\"col-lg-2 col-md-3 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label for=\"placaVeiculo\">\r\n                        {{'labels.placaVeiculo' | translate}}\r\n                    </label>\r\n                    <input id=\"placaVeiculo\" name=\"placaVeiculo\" class=\"form-control form-control-sm uppercase\"\r\n                        type=\"text\" maxlength=\"18\" [disabled]=\"funcoesService.isDetail(actionForm) || blockMask\"\r\n                        [mask]=\"mascaraPlaca\" [(ngModel)]=\"data.cadastroPlacaIdCavalo\" />\r\n                </div>\r\n            </div>\r\n            <div class=\"col-lg-2 col-md-6 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label for=\"carreta\">{{'labels.carreta' |\r\n                        translate}}</label>\r\n                    <input id=\"carreta\" name=\"carreta\" [(ngModel)]=\"data.cadastroPlacaIdCarreta1\"\r\n                        class=\"form-control form-control-sm\"\r\n                        [disabled]=\"funcoesService.isDetail(actionForm) || blockMask\" type=\"text\" maxlength=\"18\"\r\n                        [mask]=\"mascaraPlaca\">\r\n                </div>\r\n            </div>\r\n            <div class=\"col-lg-2 col-md-6 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label for=\"carreta1\">{{'labels.carreta1' |\r\n                        translate}}</label>\r\n                    <input id=\"carreta1\" name=\"carreta1\" [(ngModel)]=\"data.cadastroPlacaIdCarreta2\"\r\n                        class=\"form-control form-control-sm\" type=\"text\" maxlength=\"18\" [mask]=\"mascaraPlaca\"\r\n                        [disabled]=\"funcoesService.isDetail(actionForm) || blockMask\">\r\n                </div>\r\n            </div>\r\n            <div class=\"col-lg-2 col-md-6 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label for=\"estado\">{{ 'labels.estado' | translate }}</label>\r\n                    <app-combo-estado id=\"estado\" name=\"estadoId\" [(ngModel)]=\"data.estadoCavalo\"\r\n                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                    </app-combo-estado>\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <div class=\"row\">\r\n            <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label for=\"pedidoVenda\" [class.required]=\"data.obrPedVenda === 'S'\">{{ \"labels.pedidoVenda\" |\r\n                        translate }}</label>\r\n                    <input id=\"pedidoVenda\" name=\"pedidoVenda\" class=\"form-control form-control-sm\" type=\"text\"\r\n                        maxlength=\"250\" [required]=\"data.obrPedVenda === 'S'\"\r\n                        [disabled]=\"funcoesService.isDetail(actionForm)\" [(ngModel)]=\"data.pedidoVenda\" />\r\n                </div>\r\n            </div>\r\n            <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label for=\"pedidoRemessa\" [class.required]=\"data.obrPedRemessa === 'S'\">{{ \"labels.pedidoRemessa\" |\r\n                        translate }}</label>\r\n                    <input id=\"pedidoRemessa\" name=\"pedidoRemessa\" class=\"form-control form-control-sm\" type=\"text\"\r\n                        maxlength=\"250\" [required]=\"data.obrPedRemessa === 'S'\"\r\n                        [disabled]=\"funcoesService.isDetail(actionForm)\" [(ngModel)]=\"data.pedidoRemessa\" />\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <div class=\"row\">\r\n            <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <app-pesquisa-saldo-lote-deposito id=\"deposito\" name=\"deposito\" [label]=\"'deposito'\"\r\n                        [modalTitle]=\"'deposito'\" [required]=\"!exibirDeposito\"\r\n                        [disabled]=\"funcoesService.isDetail(actionForm) || exibirDeposito\" [field]=\"'tanqueId'\"\r\n                        [options]=\"saldoDepositoOptions\" [(ngModel)]=\"data.tanqueId\" (outModel)=\"trataDeposito($event)\"\r\n                        (change)=\"validarQuantid()\">\r\n                    </app-pesquisa-saldo-lote-deposito>\r\n                </div>\r\n            </div>\r\n            <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label for=\"quantidade\" [class.required]=\"enabledQuantid\">{{ \"labels.quantidade\" | translate }}\r\n                    </label>\r\n                    <input id=\"quantidade\" name=\"quantidade\" class=\"form-control form-control-sm\" type=\"text\"\r\n                        currencyMask [options]=\"{ prefix: '', thousands: '', decimal: '', precision: 0 }\"\r\n                        [disabled]=\"funcoesService.isDetail(actionForm) || !enabledQuantid\" [required]=\"enabledQuantid\"\r\n                        [(ngModel)]=\"data.quantid\" />\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <div class=\"row\">\r\n            <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label for=\"plataformaId\" [class.required]=\"requiredCodPlataforma()\">{{'labels.plataforma' |\r\n                        translate}}\r\n                    </label>\r\n                    <app-combo-plataforma id=\"plataformaId\" name=\"plataformaId\" [(ngModel)]=\"data.plataformaId\"\r\n                        [disabled]=\"funcoesService.isDetail(actionForm)\" [required]=\"requiredCodPlataforma()\">\r\n                    </app-combo-plataforma>\r\n                </div>\r\n            </div>\r\n            <div class=\"col-lg-3 col-md-3 col-sm-12\" *ngIf=\"requiredStoLaudo && dataLoaded\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label for=\"laudo\" requiredStoLaudo [class.required]=\"requiredStoLaudo\">{{'labels.laudo' |\r\n                        translate}}</label>\r\n                    <app-outras-cargas-sto-laudo id=\"laudo\" name=\"laudo\" [(ngModel)]=\"data.stoLaudoId\"\r\n                        [regLaudo]=\"data.stoLaudoId\" [dtAutorizacao]=\"data.dtAutorizacao\"\r\n                        [destinatarioIdCliente]=\"data.destinatarioIdCliente\"\r\n                        [destinatarioIdTransportadora]=\"data.destinatarioIdTransportadora\"\r\n                        [materialId]=\"data.materialId\" [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                        [required]=\"requiredStoLaudo\">\r\n                    </app-outras-cargas-sto-laudo>\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <div class=\"row\">\r\n            <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label for=\"pesoLiq\" class=\"required\">\r\n                        {{ \"labels.pesoLiq\" | translate }}\r\n                    </label>\r\n                    <input id=\"pesoLiq\" name=\"pesoLiq\" class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                        [disabled]=\"funcoesService.isDetail(actionForm)\" [(ngModel)]=\"data.pesoLiq\" required />\r\n                </div>\r\n            </div>\r\n            <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label>{{'labels.regTerno' | translate}}</label>\r\n                    <app-combo-terno id=\"terno\" name=\"terno\" [(ngModel)]=\"data.ternoId\"\r\n                        [disabled]=\"funcoesService.isDetail(actionForm)\"></app-combo-terno>\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <div class=\"row\">\r\n            <div class=\"col-lg-3 col-md-4 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label for=\"dtIniOper\" class=\"required\"> {{ 'labels.dtIniOper' | translate }}\r\n                    </label>\r\n                    <app-data id=\"dtIniOper\" name=\"dtIniOper\" required=\"true\"\r\n                        [formatDateTime]=\"mascara.getFormatDataHorMin\"\r\n                        [disabled]=\"funcoesService.isDetail(actionForm) ? true: false\" [(ngModel)]=\"data.dtIniOper\"\r\n                        [ngStyle]=\"{'width':'100%'}\"></app-data>\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <div class=\"row\">\r\n            <div class=\"col-lg-3 col-md-4 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label for=\"dtFimOper\" class=\"required\"> {{ 'labels.flagFinalOper' | translate }}\r\n                    </label>\r\n                    <app-data id=\"dtFimOper\" name=\"dtFimOper\" required=\"true\"\r\n                        [formatDateTime]=\"mascara.getFormatDataHorMin\"\r\n                        [disabled]=\"funcoesService.isDetail(actionForm) ? true: false\" [(ngModel)]=\"data.dtFimOper\"\r\n                        (executa)=\"validarDataI()\" [ngStyle]=\"{'width':'100%'}\"></app-data>\r\n                </div>\r\n            </div>\r\n            <div class=\"col-lg-3 col-md-4 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label for=\"dtSaida\" class=\"required\"> {{ 'labels.dtSaida' | translate }}\r\n                    </label>\r\n                    <app-data id=\"dtSaida\" name=\"dtSaida\" required=\"true\" [formatDateTime]=\"mascara.getFormatDataHorMin\"\r\n                        [disabled]=\"funcoesService.isDetail(actionForm) ? true: false\" [(ngModel)]=\"data.dtSaida\"\r\n                        (executa)=\"validarSaidaF()\" [ngStyle]=\"{'width':'100%'}\"></app-data>\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <div class=\"row\">\r\n            <div class=\"col-lg-6 col-md-10 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label for=\"numeroReDue\">{{ \"labels.numeroReDue\" | translate }}</label>\r\n                    <input id=\"numeroReDue\" name=\"numeroReDue\" class=\"form-control form-control-sm\" type=\"text\"\r\n                        maxlength=\"250\" [disabled]=\"funcoesService.isDetail(actionForm)\" [(ngModel)]=\"data.numeroRE\" />\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <div class=\"row\">\r\n            <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label for=\"quantidadeReDue\">\r\n                        {{ \"labels.quantidadeReDue\" | translate }}\r\n                    </label>\r\n                    <input id=\"quantidadeReDue\" name=\"quantidadeReDue\" class=\"form-control form-control-sm\" type=\"text\"\r\n                        currencyMask [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                        [disabled]=\"funcoesService.isDetail(actionForm)\" [(ngModel)]=\"data.kilosRE\" />\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <div class=\"row\">\r\n            <div class=\"col-lg-10 col-md-12 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label for=\"observacao\">{{ \"labels.observacao\" | translate }}</label>\r\n                    <input id=\"observacao\" name=\"observacao\" class=\"form-control form-control-sm\" type=\"text\"\r\n                        maxlength=\"250\" [disabled]=\"funcoesService.isDetail(actionForm)\" [(ngModel)]=\"data.observ\" />\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <div class=\"row\" *ngIf=\"isReadonlyLacre\">\r\n            <div class=\"col-lg-10 col-md-12 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <app-lacre id=\"lacreAmostra\" name=\"lacreAmostra\" label=\"lacreAmostra\"\r\n                        [(ngModel)]=\"data.lacreAmostra\" [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                        [params]=\"paramsLacreA\" [readonly]=\"isReadonlyLacre\">\r\n                    </app-lacre>\r\n                </div>\r\n            </div>\r\n            <div class=\"col-lg-10 col-md-12 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <app-lacre id=\"lacreVeiculo\" name=\"lacreVeiculo\" label=\"lacreVeiculo\"\r\n                        [(ngModel)]=\"data.lacreVeiculo\" [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                        [params]=\"paramsLacreV\" [readonly]=\"isReadonlyLacre\">\r\n                    </app-lacre>\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <div class=\"row\" *ngIf=\"!isReadonlyLacre\">\r\n            <div class=\"col-lg-10 col-md-12 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label for=\"lacreAmostra\">{{\"labels.lacreAmostra\" | translate}}</label>\r\n                    <input type=\"text\" id=\"lacreAmostra\" name=\"lacreAmostra\" [(ngModel)]=\"data.lacreAmostra\"\r\n                        class=\"form-control form-control-sm\" [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                        maxlength=\"250\" />\r\n                </div>\r\n            </div>\r\n            <div class=\"col-lg-10 col-md-12 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label for=\"lacreVeiculo\">{{\"labels.lacreVeiculo\" | translate}}</label>\r\n                    <input type=\"text\" id=\"lacreVeiculo\" name=\"lacreVeiculo\" [(ngModel)]=\"data.lacreVeiculo\"\r\n                        class=\"form-control form-control-sm\" [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                        maxlength=\"250\" />\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <div class=\"row\">\r\n            <div class=\"col-4\">\r\n                <div class=\"form-group\">\r\n                    <button class=\"btn btn-success mr-2\" type=\"submit\" [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                        {{ 'buttons.salvar' | translate }}\r\n                    </button>\r\n                    <button class=\"btn btn-success mr-2\" (click)=\"saveAndCreate(f)\" type=\"button\"\r\n                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                        {{ 'buttons.salvarNovo' | translate }}\r\n                    </button>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </form>\r\n</div>\r\n\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-index/bal-outras-cargas-index.component.html":
/*!***************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-index/bal-outras-cargas-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\" [sisFormularioId]=\"constantes.sisFormularioId\"\r\n    [formAction]=\"actionForm\" [itemData]=\"data.opCargaId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <table id=\"dtBalOutrasCargas\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\r\n    <div class=\"row\">\r\n        <div class=\"col-lg-12\">\r\n            <div class=\"form-group\">\r\n                <button class=\"btn btn-success mr-2\" (click)=\"checklist()\" type=\"button\">\r\n                    {{ 'buttons.lancamentoReDue' | translate }}\r\n                </button>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<app-bal-outras-cargas-filter (filtrar)=\"executaFiltro($event)\"></app-bal-outras-cargas-filter>\r\n<app-bal-outras-cargas-remove (_refresh)=\"_refresh($event)\" [data]=\"data\"></app-bal-outras-cargas-remove>\r\n<app-propriedades></app-propriedades>\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-remove/bal-outras-cargas-remove.component.html":
/*!*****************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-remove/bal-outras-cargas-remove.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=\"bal-outras-cargas-remove-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-30\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.motivoExclusao' | 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-lg-12 col-md-12 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"motivo\" class=\"required\">{{'labels.motivo' | translate}}</label>\r\n                                <input id=\"motivo\" name=\"motivo\" [(ngModel)]=\"data.motivoCanc\"\r\n                                    class=\"form-control form-control-sm\" type=\"text\" required=\"true\" maxlength=\"40\">\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/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-sto-laudo/bal-outras-cargas-sto-laudo.component.html":
/*!***********************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-sto-laudo/bal-outras-cargas-sto-laudo.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-field-container>\n    <select [id]=\"id\" [name]=\"name\" [(ngModel)]=\"internalValue\" [required]=\"required\" [disabled]=\"disabled\" data-title=\"{{ 'labels.stoLaudo' | translate }}\"\n            class=\"form-control form-control-sm\" (blur)=\"getBlur();\">\n        <option value=\"\" selected=\"selected\">{{ 'labels.selecione' | translate }}</option>\n        <option [ngValue]=\"item.regLaudo\" *ngFor=\"let item of dados | async\">{{ item.regLaudo }}</option>\n    </select>\n</app-field-container>\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/outras-cargas-alterar-dados/outras-cargas-alterar-dados.component.html":
/*!***********************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/outras-cargas-alterar-dados/outras-cargas-alterar-dados.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.listaAlterarDados\" [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 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <app-pesquisa-saldo-lote-deposito id=\"deposito\" name=\"deposito\" required=\"true\"\n                                        [label]=\"'deposito'\" [modalTitle]=\"'deposito'\" [field]=\"'tanqueId'\"\n                                        [options]=\"saldoDepositoOptions\" [(ngModel)]=\"data.tanqueId\">\n                                    </app-pesquisa-saldo-lote-deposito>\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=\"tipoOperacao\" class=\"required\">\n                                        {{'labels.tipoOperacao' | translate}}\n                                    </label>\n                                    <app-combo-tipo-operacao id=\"tipoOperacao\" name=\"tipoOperacao\"\n                                        [(ngModel)]=\"data.tipoOperacaoId\" required=\"true\" flagAtivo=\"S\">\n                                    </app-combo-tipo-operacao>\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=\"plataforma\">\n                                        {{ 'labels.plataforma' | translate}}</label>\n                                    <app-combo-padrao id=\"plataforma\" name=\"plataforma\" tabela=\"Plataforma\"\n                                        descricao=\"DescrPlataforma\" chave=\"CodPlataforma\" ativos=\"true\"\n                                        [(ngModel)]=\"data.plataformaId\">\n                                    </app-combo-padrao>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                <app-pesquisa-lote id=\"lote\" label=\"lote\" name=\"lote\" modalTitle=\"lote\"\n                                    [(ngModel)]=\"data.loteId\" [destinatarioIdCliente]=\"data.destinatarioIdCliente\"\n                                    [materialId]=\"data.materialId\" [loteId]=\"data.loteId\" destinatarioIdEmitente=\"0\"\n                                    destinatarioIdNavio=\"0\" [osgId]=\"0\" stoContratoId=\"\" stoContratoItemId=\"0\">\n                                </app-pesquisa-lote>\n                            </div>\n                            <div class=\"col-lg-2 col-md-4 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"volume\">{{'labels.volume' | translate}}</label>\n                                    <input type=\"text\" id=\"volume\" name=\"volume\" class=\"form-control form-control-sm\"\n                                        [(ngModel)]=\"data.volume\" 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=\"tipoDocTransporte\" class=\"required\">\n                                        {{'labels.tipoDocTransporte' | translate}}</label>\n                                    <app-combo-tipo-documento-transp id=\"tipoDocTransporte\" name=\"tipoDocTransporte\"\n                                        [(ngModel)]=\"data.tipoDocumentoTranspId\" required\n                                        (outSelected)=\"trataTipoDocumentoTransp($event)\">\n                                    </app-combo-tipo-documento-transp>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-2 col-md-4 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"docTranspNumero\" [class.required]=\"requiredDadosEntrada\">\n                                        {{'labels.numero' | translate}}\n                                    </label>\n                                    <input id=\"docTranspNumero\" name=\"docTranspNumero\"\n                                        data-title=\"{{'labels.numero' | translate}}\" type=\"text\"\n                                        class=\"form-control form-control-sm\"\n                                        value=\"{{ data.docTranspNumero | mask: data.maskDocTransNumero }}\"\n                                        [disabled]=\"!requiredDadosEntrada\" [required]=\"requiredDadosEntrada\" />\n                                </div>\n                            </div>\n                            <div class=\"col-lg-2 col-md-4 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"docTranspEmissao\" [class.required]=\"requiredDadosEntrada\">\n                                        {{'labels.emissao' | translate}}\n                                    </label>\n                                    <app-data id=\"docTranspEmissao\" name=\"docTranspEmissao\"\n                                        data-title=\"{{'labels.emissao' | translate}}\"\n                                        [(ngModel)]=\"data.docTranspEmissao\" [disabled]=\"!requiredDadosEntrada\"\n                                        [required]=\"requiredDadosEntrada\">\n                                    </app-data>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-2 col-md-4 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"frete\" class=\"required\">{{\"labels.frete\" | translate\n                                        }}</label>\n                                    <select id=\"frete\" name=\"frete\" [(ngModel)]=\"data.tipoFreteId\" required=\"true\"\n                                        class=\"form-control form-control-sm\">\n                                        <option value=\"\">{{'labels.selecione'|translate}}</option>\n                                        <option value=\"0\">{{'labels.semFrete'|translate}}</option>\n                                        <option value=\"1\">{{'labels.emitenteCif'|translate}}</option>\n                                        <option value=\"2\">{{'labels.destRemFob'|translate}}</option>\n                                        <option value=\"3\">{{'labels.terceiros'|translate}}</option>\n                                    </select>\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=\"tipoDeTransporte\" class=\"required\">\n                                        {{ 'labels.tipoDeTransporte' | translate }}\n                                    </label>\n                                    <app-combo-tipos-de-transporte id=\"tipoDeTransporte\" name=\"tipoDeTransporte\"\n                                        required=\"true\" ativos=\"true\" ordenarPorDescricao=\"true\"\n                                        [(ngModel)]=\"data.tiposDeTransporteId\"\n                                        (outSelected)=\"trataTipoDeTransporte($event)\">\n                                    </app-combo-tipos-de-transporte>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <app-pesquisa-destinatario id=\"transportador\" name=\"transportador\"\n                                        label=\"transportador\" [required]=\"requiredTransp\" [disabled]=\"!requiredTransp\"\n                                        modalTitle=\"pesquisaDeTransportadora\"\n                                        [(ngModel)]=\"data.destinatarioIdTransportadora\"\n                                        [inSelected]=\"data.transportadora\" tipoDestinatario=\"T\" showCgcCpf=\"true\"\n                                        showInscricao=\"false\">\n                                    </app-pesquisa-destinatario>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-md-2 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"placaVeiculo\" [class.required]=\"requiredPlaca\">\n                                        {{'labels.placaVeiculo' | translate}}\n                                    </label>\n                                    <input id=\"placaVeiculo\" name=\"placaVeiculo\"\n                                        class=\"form-control form-control-sm text-uppercase\" type=\"text\" maxlength=\"8\"\n                                        [required]=\"requiredPlaca\" [disabled]=\"!requiredPlaca\"\n                                        [(ngModel)]=\"data.cadastroPlacaIdCavalo\" />\n                                </div>\n                            </div>\n                            <div class=\"col-md-2 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"carreta1\">{{'labels.carreta1' | translate}}</label>\n                                    <input id=\"carreta1\" name=\"carreta1\"\n                                        class=\"form-control form-control-sm text-uppercase\" type=\"text\" maxlength=\"8\"\n                                        [(ngModel)]=\"data.cadastroPlacaIdCarreta1\" [disabled]=\"!requiredPlaca\" />\n                                </div>\n                            </div>\n                            <div class=\"col-md-2 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"carreta2\">{{'labels.carreta2' | translate}}</label>\n                                    <input id=\"carreta2\" name=\"carreta2\"\n                                        class=\"form-control form-control-sm text-uppercase\" type=\"text\" maxlength=\"8\"\n                                        [(ngModel)]=\"data.cadastroPlacaIdCarreta2\" [disabled]=\"!requiredPlaca\" />\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/especificos/rocha/movimentos/bal-outras-cargas/outras-cargas-alterar-datas/outras-cargas-alterar-datas.component.html":
/*!***********************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/outras-cargas-alterar-datas/outras-cargas-alterar-datas.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.listaAlterarDatas\" [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\" #frmOutrasDescargas=\"ngForm\" (ngSubmit)=\"onSubmit(frmOutrasDescargas)\">\n                        <app-validacoes formErrorId=\"msgOCargasAlteraDatas\"></app-validacoes>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"dtChegadaOC\" class=\"required\">{{'labels.chegada' | translate}}</label>\n                                    <app-data-h-m-s id=\"dtChegadaOC\" name=\"dtChegadaOC\" [(ngModel)]=\"data.dtChegada\"\n                                        required>\n                                    </app-data-h-m-s>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"dtAutorizacaoOC\" class=\"required\">{{'labels.entrada' |\n                                        translate}}</label>\n                                    <app-data-h-m-s id=\"dtAutorizacaoOC\" name=\"dtAutorizacaoOC\"\n                                        [(ngModel)]=\"data.dtAutorizacao\" required>\n                                    </app-data-h-m-s>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"dtIniOperOC\" class=\"required\">{{'labels.inicioDeOperacao' |\n                                        translate}}</label>\n                                    <app-data-h-m-s id=\"dtIniOperOC\" name=\"dtIniOperOC\"\n                                        [disabled]=\"constantes.configBal.permissaoDatasOCD && todosCampos\"\n                                        [(ngModel)]=\"data.dtIniOper\" required>\n                                    </app-data-h-m-s>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"dtFimOperOC\" class=\"required\">{{'labels.fimOper' | translate}}</label>\n                                    <app-data-h-m-s id=\"dtFimOperOC\" name=\"dtFimOperOC\"\n                                        [disabled]=\"constantes.configBal.permissaoDatasOCD && todosCampos\"\n                                        [(ngModel)]=\"data.dtFimOper\" required>\n                                    </app-data-h-m-s>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label class=\"required\" for=\"dtSaidaOC\">{{'labels.saida' | translate}}</label>\n                                    <app-data-h-m-s id=\"dtSaidaOmatCardAvatar\" name=\"dtSaidaOC\"\n                                        [(ngModel)]=\"data.dtSaida\" [required]=\"true\">\n                                    </app-data-h-m-s>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label class=\"required\" for=\"saidaTerminalOC\">{{'labels.saidaTerminal' |\n                                        translate}}</label>\n                                    <app-data-h-m-s id=\"saidaTerminalOC\" name=\"saidaTerminalOC\"\n                                        [(ngModel)]=\"data.dtLibVeiculo\" [required]=\"true\">\n                                    </app-data-h-m-s>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"nrTifOD\">{{'labels.nrTif' | translate}}</label>\n                                    <input id=\"nrTifOD\" name=\"nrTifOD\" [(ngModel)]=\"data.nrTif\"\n                                        class=\"form-control form-control-sm\" type=\"number\"\n                                        data-title=\"{{'labels.nrTif' | translate}}\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-6\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"observOD\" class=\"\">{{'labels.observacao' | translate}}</label>\n                                    <input id=\"observOD\" name=\"observOD\" [(ngModel)]=\"data.observ\"\n                                        class=\"form-control form-control-sm\" type=\"text\" type=\"text\" maxlength=\"70\"\n                                        data-title=\"{{'labels.observacao' | translate}}\">\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>");

/***/ }),

/***/ "./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/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-filter/bal-outras-cargas-filter.component.ts":
/*!*************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-filter/bal-outras-cargas-filter.component.ts ***!
  \*************************************************************************************************************************************/
/*! exports provided: BalOutrasCargasFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BalOutrasCargasFilterComponent", function() { return BalOutrasCargasFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _bal_outras_cargas_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../bal-outras-cargas.model */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.model.ts");
/* harmony import */ var _bal_outras_cargas_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../bal-outras-cargas.service */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.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 BalOutrasCargasFilterComponent = /** @class */ (function () {
    function BalOutrasCargasFilterComponent(service) {
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    BalOutrasCargasFilterComponent.prototype.ngOnInit = function () {
        if (!this.service.filtro)
            this.service.filtro = new _bal_outras_cargas_model__WEBPACK_IMPORTED_MODULE_1__["BalOutrasCargasFilter"]();
    };
    BalOutrasCargasFilterComponent.prototype.onSubmit = function (form) {
        if (!form.invalid) {
            this.filtrar.emit(this.service.filtro);
            jQuery("#oc-filter-dialog").modal("hide");
        }
    };
    BalOutrasCargasFilterComponent.prototype.cliente = function (event) {
        if (!this.service.filtro)
            return;
        if (!!event)
            this.service.filtro.cliente = event;
    };
    BalOutrasCargasFilterComponent.prototype.material = function (event) {
        if (!this.service.filtro)
            return;
        if (!!event)
            this.service.filtro.material = event;
    };
    BalOutrasCargasFilterComponent.prototype.transportadora = function (event) {
        if (!this.service.filtro)
            return;
        if (!!event)
            this.service.filtro.transportadora = event;
    };
    BalOutrasCargasFilterComponent.ctorParameters = function () { return [
        { type: _bal_outras_cargas_service__WEBPACK_IMPORTED_MODULE_2__["BalOutrasCargasService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], BalOutrasCargasFilterComponent.prototype, "filtrar", void 0);
    BalOutrasCargasFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-bal-outras-cargas-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./bal-outras-cargas-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-filter/bal-outras-cargas-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_bal_outras_cargas_service__WEBPACK_IMPORTED_MODULE_2__["BalOutrasCargasService"]])
    ], BalOutrasCargasFilterComponent);
    return BalOutrasCargasFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-form/bal-outras-cargas-form.component.scss":
/*!***********************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-form/bal-outras-cargas-form.component.scss ***!
  \***********************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".nao-tem-controle-20 {\n  margin-top: 0;\n}\n\n.tem-controle-20-tipoOperacao {\n  margin-top: -10px;\n}\n\n.tem-controle-20-tipoTransporte {\n  margin-top: 5px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvcm9jaGEvbW92aW1lbnRvcy9iYWwtb3V0cmFzLWNhcmdhcy9iYWwtb3V0cmFzLWNhcmdhcy1mb3JtL0M6XFxDb3Jwb3JhdGVcXENvcnBvcmF0ZVdlYkRlc2VudlxcX3VuaXNvbHV0aW9uL3NyY1xcYXBwXFxwYWdlc1xcZXNwZWNpZmljb3NcXHJvY2hhXFxtb3ZpbWVudG9zXFxiYWwtb3V0cmFzLWNhcmdhc1xcYmFsLW91dHJhcy1jYXJnYXMtZm9ybVxcYmFsLW91dHJhcy1jYXJnYXMtZm9ybS5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvcm9jaGEvbW92aW1lbnRvcy9iYWwtb3V0cmFzLWNhcmdhcy9iYWwtb3V0cmFzLWNhcmdhcy1mb3JtL2JhbC1vdXRyYXMtY2FyZ2FzLWZvcm0uY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxhQUFBO0FDQ0o7O0FERUE7RUFDSSxpQkFBQTtBQ0NKOztBREVBO0VBQ0ksZUFBQTtBQ0NKIiwiZmlsZSI6InNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvcm9jaGEvbW92aW1lbnRvcy9iYWwtb3V0cmFzLWNhcmdhcy9iYWwtb3V0cmFzLWNhcmdhcy1mb3JtL2JhbC1vdXRyYXMtY2FyZ2FzLWZvcm0uY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubmFvLXRlbS1jb250cm9sZS0yMCB7XHJcbiAgICBtYXJnaW4tdG9wOiAwO1xyXG59XHJcblxyXG4udGVtLWNvbnRyb2xlLTIwLXRpcG9PcGVyYWNhbyB7XHJcbiAgICBtYXJnaW4tdG9wOiAtMTBweDtcclxufVxyXG5cclxuLnRlbS1jb250cm9sZS0yMC10aXBvVHJhbnNwb3J0ZSB7XHJcbiAgICBtYXJnaW4tdG9wOiA1cHg7XHJcbn1cclxuIiwiLm5hby10ZW0tY29udHJvbGUtMjAge1xuICBtYXJnaW4tdG9wOiAwO1xufVxuXG4udGVtLWNvbnRyb2xlLTIwLXRpcG9PcGVyYWNhbyB7XG4gIG1hcmdpbi10b3A6IC0xMHB4O1xufVxuXG4udGVtLWNvbnRyb2xlLTIwLXRpcG9UcmFuc3BvcnRlIHtcbiAgbWFyZ2luLXRvcDogNXB4O1xufSJdfQ== */");

/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-form/bal-outras-cargas-form.component.ts":
/*!*********************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-form/bal-outras-cargas-form.component.ts ***!
  \*********************************************************************************************************************************/
/*! exports provided: BalOutrasCargasFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BalOutrasCargasFormComponent", function() { return BalOutrasCargasFormComponent; });
/* 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_components_modais_lacre_lacre_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/components/modais/lacre/lacre.model */ "./src/app/shared/components/modais/lacre/lacre.model.ts");
/* harmony import */ var app_shared_components_modais_lacre_lacre_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/components/modais/lacre/lacre.service */ "./src/app/shared/components/modais/lacre/lacre.service.ts");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
/* harmony import */ var _bal_outras_cargas_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../bal-outras-cargas.service */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.service.ts");
/* harmony import */ var _bal_outras_cargas_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../bal-outras-cargas.constants */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.constants.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __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_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_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/boolean-utils/boolean-utils.static.service */ "./src/app/shared/services/funcoes/boolean-utils/boolean-utils.static.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_pages_balanca_op_carga_op_carga_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/pages/balanca/op-carga/op-carga.model */ "./src/app/pages/balanca/op-carga/op-carga.model.ts");
/* harmony import */ var app_pages_cadastro_tanque_tanque_model__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/pages/cadastro/tanque/tanque.model */ "./src/app/pages/cadastro/tanque/tanque.model.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_message_message_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_pages_cadastro_tanque_tanque_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! app/pages/cadastro/tanque/tanque.service */ "./src/app/pages/cadastro/tanque/tanque.service.ts");
/* harmony import */ var app_pages_cadastro_tipo_documento_transp_tipo_documento_transp_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! app/pages/cadastro/tipo-documento-transp/tipo-documento-transp.service */ "./src/app/pages/cadastro/tipo-documento-transp/tipo-documento-transp.service.ts");
/* harmony import */ var app_pages_cadastro_tipo_de_transporte_tipo_de_transporte_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! app/pages/cadastro/tipo-de-transporte/tipo-de-transporte.service */ "./src/app/pages/cadastro/tipo-de-transporte/tipo-de-transporte.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_20__ = __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_21__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_pages_cadastro_densidade_tanque_densidade_tanque_service__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! app/pages/cadastro/densidade-tanque/densidade-tanque.service */ "./src/app/pages/cadastro/densidade-tanque/densidade-tanque.service.ts");
/* harmony import */ var app_pages_cadastro_cadastro_placa_cadastro_placa_service__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! app/pages/cadastro/cadastro-placa/cadastro-placa.service */ "./src/app/pages/cadastro/cadastro-placa/cadastro-placa.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _bal_outras_cargas_model__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../bal-outras-cargas.model */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.model.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __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 BalOutrasCargasFormComponent = /** @class */ (function (_super) {
    __extends(BalOutrasCargasFormComponent, _super);
    function BalOutrasCargasFormComponent(router, activatedRoute, messageService, service, configuracao, serviceTanque, serviceTipoDocTransp, serviceTipoTransporte, funcoesService, permissoesUtils, loginService, densidadeTanqueService, lacreService, cadastroPlacaService) {
        var _this = _super.call(this, new _bal_outras_cargas_constants__WEBPACK_IMPORTED_MODULE_6__["BalOutrasCargasConstants"](), funcoesService) || this;
        _this.router = router;
        _this.activatedRoute = activatedRoute;
        _this.messageService = messageService;
        _this.service = service;
        _this.configuracao = configuracao;
        _this.serviceTanque = serviceTanque;
        _this.serviceTipoDocTransp = serviceTipoDocTransp;
        _this.serviceTipoTransporte = serviceTipoTransporte;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.densidadeTanqueService = densidadeTanqueService;
        _this.lacreService = lacreService;
        _this.cadastroPlacaService = cadastroPlacaService;
        _this.data = new app_pages_balanca_op_carga_op_carga_model__WEBPACK_IMPORTED_MODULE_11__["OpCarga"]();
        _this.dataTanque = new app_pages_cadastro_tanque_tanque_model__WEBPACK_IMPORTED_MODULE_12__["Tanque"]();
        _this.mensagens = [];
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_13__["Mascaras"]();
        _this.paramsLacreV = new app_shared_components_modais_lacre_lacre_model__WEBPACK_IMPORTED_MODULE_2__["ParamsLacre"]();
        _this.paramsLacreA = new app_shared_components_modais_lacre_lacre_model__WEBPACK_IMPORTED_MODULE_2__["ParamsLacre"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.enabledDtDescarga = false;
        _this.enabledQuantid = false;
        _this.obrigaTransp = false;
        _this.obrigaPlaca = false;
        _this.showDtChegada = false;
        _this.showNumeroEmissao = false;
        _this.dataLoaded = false;
        _this.exibirDeposito = true;
        _this.blockMask = false;
        _this.setConfig = function () {
            if (!_this.configuracao.isLoadConfig()) {
                return;
            }
            _this.service.configs.osgNaOCD = _this.funcoesService.isBoolean(_this.configuracao.lerConfig("BAL", "OsgNaOCD"));
            _this.service.configs.obrPlataforma = _this.funcoesService.isBoolean(_this.configuracao.lerConfig("BAL", "ObrPlataforma"));
            _this.service.configs.laudoOCMar = _this.funcoesService.isBoolean(_this.configuracao.lerConfig("BAL", "LaudoOCMar"));
            _this.service.configs.maskPlaca = _this.configuracao.lerConfig("BAL", "MaskPlaca");
            _this.service.configs.maskTrem = _this.configuracao.lerConfig("BAL", "MaskTrem");
            _this.service.configUni.controlaLacre = _this.funcoesService.isBoolean(_this.configuracao.lerConfig("UNI", "ControlaLacre"));
            _this.service.configUni.controlaLacreA = _this.funcoesService.isBoolean(_this.configuracao.lerConfig("UNI", "ControlaLacreA"));
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    BalOutrasCargasFormComponent.prototype.ngOnInit = function () {
        return __awaiter(this, void 0, void 0, function () {
            var validationResult, mensagens;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        this.configuracao.getConfig(this.constantes.listaParam, this.setConfig);
                        if (!this.funcoesService.isCreate(this.actionForm)) return [3 /*break*/, 2];
                        this.obrigaPlaca = true;
                        return [4 /*yield*/, this.lacreService.apagaTmp({ tipoMov: "C" }).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.messageService.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.pedidos", m); });
                            return [2 /*return*/];
                        }
                        _a.label = 2;
                    case 2:
                        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () { return __awaiter(_this, void 0, void 0, function () {
                            var id;
                            var _this = this;
                            return __generator(this, function (_a) {
                                id = this.activatedRoute.snapshot.paramMap.get("id");
                                if (id) {
                                    this.service.getById(id).subscribe(function (resp) {
                                        _this.data = resp;
                                        if (_this.funcoesService.isEdit(_this.actionForm)) {
                                            _this.validaAltExc();
                                        }
                                        if (_this.funcoesService.isCreate(_this.actionForm)) {
                                            _this.limpaCamposDuplicar();
                                        }
                                        _this.moveParamsLacre();
                                        _this.dataLoaded = true;
                                        _this.inicializaEnabledCampos();
                                    });
                                }
                                else {
                                    this.confirmMudancaRota = true;
                                    this.moveParamsLacre();
                                    this.dataLoaded = true;
                                    this.inicializaEnabledCampos();
                                }
                                return [2 /*return*/];
                            });
                        }); }, function () {
                            _this.permissoesUtils.back();
                        });
                        return [2 /*return*/];
                }
            });
        });
    };
    BalOutrasCargasFormComponent.prototype.moveParamsLacre = function () {
        return __awaiter(this, void 0, void 0, function () {
            var total;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        total = 0;
                        return [4 /*yield*/, this.cadastroPlacaService.getQuantidLacre({
                                cadastroPlacaIdCavalo: this.data.cadastroPlacaIdCavalo,
                                cadastroPlacaIdCarreta1: this.data.cadastroPlacaIdCarreta1,
                                cadastroPlacaIdCarreta2: ""
                            }).toPromise()];
                    case 1:
                        total = _a.sent();
                        this.paramsLacreA.codDest = this.data.destinatarioIdCliente;
                        this.paramsLacreA.tipoMov = "C";
                        this.paramsLacreA.tipoLacre = "A";
                        this.paramsLacreA.autorizacao = this.data.opCargaId;
                        this.paramsLacreA.quantidLacres = total;
                        this.paramsLacreV.codDest = this.data.destinatarioIdCliente;
                        this.paramsLacreV.tipoMov = "C";
                        this.paramsLacreV.tipoLacre = "V";
                        this.paramsLacreV.autorizacao = this.data.opCargaId;
                        this.paramsLacreV.quantidLacres = total;
                        return [4 /*yield*/, Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["forkJoin"])([
                                this.lacreService.geraTmp(this.paramsLacreA),
                                this.lacreService.geraTmp(this.paramsLacreV),
                            ]).toPromise()];
                    case 2:
                        _a.sent();
                        return [2 /*return*/];
                }
            });
        });
    };
    BalOutrasCargasFormComponent.prototype.limpaCamposDuplicar = function () {
        this.data.opCargaId = 0;
        this.data.bQuantid = 0;
        this.data.bpesoLiq = 0;
        this.data.codPesagem = 0;
        this.data.codPesagemLib = 0;
        this.data.bPesoAut = 0;
        this.data.tanqueId = "";
        this.data.flagMsg = "";
    };
    BalOutrasCargasFormComponent.prototype.inicializaEnabledCampos = 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.enabledCampos(this.data.tipoTransp)];
                    case 1:
                        ret = _a.sent();
                        this.obrigaTransp = this.funcoesService.isBoolean(ret.obrigaTransp);
                        this.obrigaPlaca = this.funcoesService.isBoolean(ret.obrigaPlaca);
                        this.showDtChegada = ret.tiposDeTransporteId === "M";
                        if (!this.obrigaPlaca) {
                            this.data.cadastroPlacaIdCavalo = "";
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    BalOutrasCargasFormComponent.prototype.validaDeposito = function () {
        if (this.data.destinatarioIdCliente === 0 || this.data.materialId === '' || this.data.materialId === undefined || this.data.destinatarioIdCliente === undefined) {
            this.exibirDeposito = true;
        }
        else {
            this.exibirDeposito = false;
        }
    };
    Object.defineProperty(BalOutrasCargasFormComponent.prototype, "mascaraPlaca", {
        get: function () {
            if (this.data.tipoTransp === 'F') {
                return this.mascara.mapMascaraCutomizada(this.service.configs.maskTrem);
            }
            else if (this.data.tipoTransp === 'R' || 'N') {
                return this.mascara.mapMascaraCutomizada(this.service.configs.maskPlaca);
            }
            else {
                this.blockMask = true;
                this.data.tipoTransp = '';
            }
        },
        enumerable: true,
        configurable: true
    });
    BalOutrasCargasFormComponent.prototype.enabledCampos = function (data) {
        var request = this.serviceTipoTransporte;
        var promise = new Promise(function (resolve, reject) {
            request.getById(data).subscribe(function (resp) {
                resolve(resp);
            });
        });
        return promise;
    };
    Object.defineProperty(BalOutrasCargasFormComponent.prototype, "enabledRegOSG", {
        get: function () {
            if (!this.configuracao.isLoadConfig()) {
                return;
            }
            return this.funcoesService.isBoolean(this.configuracao.lerConfig("BAL", "OsgNaOCD"));
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(BalOutrasCargasFormComponent.prototype, "showDtAtracacao", {
        get: function () {
            this.showDtChegada = this.funcoesService.isNotUndefinedOrNull(this.data.tipoTransp) ? (this.data.tipoTransp === "M") : false;
            return this.showDtChegada;
        },
        enumerable: true,
        configurable: true
    });
    BalOutrasCargasFormComponent.prototype.requiredCodPlataforma = function () {
        var dtSeguro = this.configuracao.lerConfig("BAL", "ObrPlataforma");
        if (dtSeguro === "S") {
            return true;
        }
        else {
            return false;
        }
    };
    Object.defineProperty(BalOutrasCargasFormComponent.prototype, "requiredStoLaudo", {
        get: function () {
            var laudoOCMar = this.configuracao.lerConfig("BAL", "LaudoOCMar");
            if (laudoOCMar === "S") {
                return true;
            }
            else {
                return false;
            }
        },
        enumerable: true,
        configurable: true
    });
    BalOutrasCargasFormComponent.prototype.onSubmit = function (form, create) {
        if (create === void 0) { create = false; }
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_24__["EventEmitterService"].get("formError").emit(form);
                if (form.invalid) {
                    this.funcoesService.backToTop();
                    return [2 /*return*/];
                }
                if (!this.isValid()) {
                    this.funcoesService.backToTop();
                    return [2 /*return*/];
                }
                this.data.cadastroPlacaIdCavalo = this.funcoesService.isNotUndefinedOrNull(this.data.cadastroPlacaIdCavalo) ? this.data.cadastroPlacaIdCavalo.toUpperCase() : this.data.cadastroPlacaIdCavalo;
                this.data.quantid = this.funcoesService.isNotUndefinedOrNull(this.data.quantid) ? this.data.quantid : 0;
                this.data.bQuantid = this.funcoesService.isNotUndefinedOrNull(this.data.bQuantid) ? this.data.bQuantid : 0;
                this.data.pesoBru = this.funcoesService.isNotUndefinedOrNull(this.data.pesoBru) ? this.data.pesoBru : 0;
                this.data.bpesoLiq = this.funcoesService.isNotUndefinedOrNull(this.data.bpesoLiq) ? this.data.bpesoLiq : 0;
                this.data.obsLib = this.funcoesService.isNotUndefinedOrNull(this.data.obsLib) ? this.data.obsLib : "";
                this.data.estado = this.funcoesService.isNotUndefinedOrNull(this.data.estado) ? this.data.estado : "";
                this.data.codPesagem = this.funcoesService.isNotUndefinedOrNull(this.data.codPesagem) ? this.data.codPesagem : 0;
                this.data.codPesagemLib = this.funcoesService.isNotUndefinedOrNull(this.data.codPesagemLib) ? this.data.codPesagemLib : 0;
                this.data.cadastroPlacaIdCarreta = this.funcoesService.isNotUndefinedOrNull(this.data.cadastroPlacaIdCarreta) ? this.data.cadastroPlacaIdCarreta : "";
                this.data.cadastroPlacaIdCarreta1 = this.funcoesService.isNotUndefinedOrNull(this.data.cadastroPlacaIdCarreta1) ? this.data.cadastroPlacaIdCarreta1 : "";
                this.data.osgId = this.funcoesService.isNotUndefinedOrNull(this.data.osgId) ? this.data.osgId : 0;
                this.data.nomeOper = this.funcoesService.isNotUndefinedOrNull(this.data.nomeOper) ? this.data.nomeOper : "";
                this.data.flagManual = this.funcoesService.isNotUndefinedOrNull(this.data.flagManual) ? this.data.flagManual : "";
                this.data.flagManualL = this.funcoesService.isNotUndefinedOrNull(this.data.flagManualL) ? this.data.flagManualL : "";
                this.data.loteId = this.funcoesService.isNotUndefinedOrNull(this.data.loteId) ? this.data.loteId : "";
                this.data.lacreVeiculoManual = this.funcoesService.isNotUndefinedOrNull(this.data.lacreVeiculoManual) ? this.data.lacreVeiculoManual : "";
                this.data.docTranspNumero = this.funcoesService.isNotUndefinedOrNull(this.data.docTranspNumero) ? this.data.docTranspNumero : "";
                // Validação da Placa do Cavalo (descrito na documentação, mas não tem no delphi)
                // if (StringUtilsStaticService.isNotEmpty(this.data.cadastroPlacaIdCavalo) && StringUtilsStaticService.isNotEmpty(this.data.estadoCavalo)) {
                //     try {
                //         const isValid = await this.validaPlacaEstadoCavalo().toPromise();
                //         if (!isValid) {
                //             this.messageService.warning("titles.balOutrasCargas", this.messageService.translate("messages.placaInvalidaEstadoCavalo", { placa: this.data.cadastroPlacaIdCavalo }));
                //             return;
                //         }
                //     } catch (error) {
                //         this.messageService.warning("titles.balOutrasCargas", this.messageService.translate("messages.erroValidacaoPlaca"));
                //         return;
                //     }
                // }
                this.mensagens = [];
                this.data.logRotina = "Manutenção de OpCarga";
                this.service
                    .save(this.data, this.funcoesService.isEdit(this.actionForm))
                    .subscribe(function (result) {
                    _this.mensagens = _this.messageService.validationResult(result.validationResult);
                    if (!result.validationResult.isValid) {
                        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_24__["EventEmitterService"].get("backError").emit(_this.mensagens);
                        _this.funcoesService.backToTop();
                    }
                    else {
                        _this.messageService.saveSuccess("titles.balOutrasCargas");
                        if (create) {
                            _this.data = new app_pages_balanca_op_carga_op_carga_model__WEBPACK_IMPORTED_MODULE_11__["OpCarga"]();
                            _this.router.navigate([_this.target + "/especificos/rocha/movimentos/balOutrasCargas/create"]);
                        }
                        else {
                            _this.back();
                        }
                    }
                });
                return [2 /*return*/];
            });
        });
    };
    BalOutrasCargasFormComponent.prototype.validaAltExc = function () {
        return __awaiter(this, void 0, void 0, function () {
            var resultado;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.service.validaAltExc(this.data.opCargaId)];
                    case 1:
                        resultado = _a.sent();
                        if (!resultado.isValid) {
                            this.messageService.warning("titles.balOutrasCargas", resultado.erros[0].message);
                            if (this.funcoesService.isEdit(this.actionForm)) {
                                this.router.navigate([this.target + "/especificos/rocha/movimentos/balOutrasCargas/detail/" + this.data.opCargaId]);
                            }
                        }
                        else {
                            this.router.navigate([this.target + "/especificos/rocha/movimentos/balOutrasCargas/edit/" + this.data.opCargaId]);
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    BalOutrasCargasFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    BalOutrasCargasFormComponent.prototype.edit = function () {
        if (this.funcoesService.isDetail(this.actionForm)) {
            this.validaAltExc();
        }
    };
    BalOutrasCargasFormComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.confirmMudancaRota = false;
        this.router.navigate([this.target + "/especificos/rocha/movimentos/balOutrasCargas"]);
    };
    BalOutrasCargasFormComponent.prototype.replicaData = function () {
        this.data.dtAutorizacao = this.data.dtChegada;
        this.data.dtDescarga = this.data.dtChegada;
        this.data.dtSaida = this.data.dtChegada;
        this.data.dtIniOper = this.data.dtChegada;
        this.data.dtFimOper = this.data.dtChegada;
    };
    BalOutrasCargasFormComponent.prototype.vldDtAutorizacao = function () {
        var dtSeguro = this.configuracao.lerConfig("CTR", "DtSeguro");
        if (dtSeguro < this.data.dtAutorizacao) {
            this.data.dtDescarga = this.data.dtAutorizacao;
            this.data.dtSaida = this.data.dtAutorizacao;
            this.data.dtIniOper = this.data.dtAutorizacao;
            this.data.dtFimOper = this.data.dtAutorizacao;
        }
        else {
            this.messageService.warning("titles.balOutrasCargas", "messages.dataMenorQueGeracaosSeguro");
            return;
        }
    };
    BalOutrasCargasFormComponent.prototype.showDtDescarga = function () {
        if (this.data.tipoTransp === "M") {
            return true;
        }
        else {
            return false;
        }
    };
    BalOutrasCargasFormComponent.prototype.validarDataI = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["DateTimeUtilsStaticService"].menorA(this.data.dtIniOper, this.data.dtFimOper, ['H', 'M'])) {
            this.messageService.warning("titles.balOutrasCargas", "messages.dtFimNaoPodeSerMenorDtIni");
            return false;
        }
        return true;
    };
    BalOutrasCargasFormComponent.prototype.validarSaidaF = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["DateTimeUtilsStaticService"].menorA(this.data.dtSaida, this.data.dtFimOper, ['H', 'M'])) {
            this.messageService.warning("titles.balOutrasCargas", "messages.dtSaidaNaoPodeSerMenorDtFimOper");
            return false;
        }
        return true;
    };
    Object.defineProperty(BalOutrasCargasFormComponent.prototype, "visibledDados20", {
        get: function () {
            if (!!this.data.material) {
                this.data.material.controle20 = this.funcoesService.isNotUndefinedOrNull(this.data.material.controle20) ? this.data.material.controle20 : "N";
                this.data.material.flagDensidadeTanque = this.funcoesService.isNotUndefinedOrNull(this.data.material.flagDensidadeTanque) ? this.data.material.flagDensidadeTanque : "N";
                return ((this.data.material.controle20 === "S") || (this.data.material.flagDensidadeTanque === "S"));
            }
            else {
                return false;
            }
        },
        enumerable: true,
        configurable: true
    });
    BalOutrasCargasFormComponent.prototype.buscaFlagSolDadosEnt = function (data) {
        var request = this.serviceTipoDocTransp;
        var promise = new Promise(function (resolve, reject) {
            request.getById(data).subscribe(function (resp) {
                resolve(resp);
            });
        });
        return promise;
    };
    BalOutrasCargasFormComponent.prototype.visibledNumeroEmissao = function (e) {
        return __awaiter(this, void 0, void 0, function () {
            var ret;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        this.showNumeroEmissao = false;
                        if (!e) return [3 /*break*/, 2];
                        return [4 /*yield*/, this.buscaFlagSolDadosEnt(this.data.tipoDocumentoTranspId)];
                    case 1:
                        ret = _a.sent();
                        this.data.flagSolDadosEnt = ret.flagSolDadosEnt;
                        this.showNumeroEmissao = ret.flagSolDadosEnt === "S" ? true : false;
                        _a.label = 2;
                    case 2: return [2 /*return*/];
                }
            });
        });
    };
    Object.defineProperty(BalOutrasCargasFormComponent.prototype, "showSolDadosEnt", {
        get: function () {
            this.validaDeposito();
            if (!!this.data.flagSolDadosEnt) {
                return this.data.flagSolDadosEnt === "S" ? true : false;
            }
            else {
                return false;
            }
        },
        enumerable: true,
        configurable: true
    });
    BalOutrasCargasFormComponent.prototype.calcDados20 = function () {
        var _this = this;
        if (!!this.data.densidadeAmostra) {
            var filtroCalculo = new _bal_outras_cargas_model__WEBPACK_IMPORTED_MODULE_25__["CalculoDensidadeFilter"]();
            filtroCalculo.materialId = this.data.materialId;
            filtroCalculo.densidadeAmostra = this.data.densidadeAmostra;
            filtroCalculo.temperaturaAmostra = this.data.temperaturaAmostra;
            filtroCalculo.temperaturaCarroTanque = this.data.temperaturaCarroTanque;
            filtroCalculo.volume = this.data.volume;
            filtroCalculo.mostraErro = 'S';
            this.densidadeTanqueService.calculaDados20(filtroCalculo).subscribe(function (resp) {
                if (_this.funcoesService.isNotUndefinedOrNull(resp.msgErro)) {
                    _this.messageService.error("titles.densidadeTanque", resp.msgErro);
                }
                _this.data.densidadeCorrigida = resp.densidadeCorrigida;
                _this.data.fatorCorrecao = resp.fatorCorrecao;
                _this.data.volumeCorrigido = resp.volumeCorrigido;
                _this.data.pesoCorrigido = resp.pesoCorrigido;
            });
        }
    };
    BalOutrasCargasFormComponent.prototype.validarQuantid = function () {
        this.enabledQuantid = false;
        if (this.data.tanqueId !== "") {
            this.enabledQuantid = (this.data.tanque.movQuantid === "S");
        }
        return this.enabledQuantid;
    };
    BalOutrasCargasFormComponent.prototype.trataDeposito = function (e) {
        return __awaiter(this, void 0, void 0, function () {
            var ret;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (!e) return [3 /*break*/, 2];
                        if (!(this.data.tanqueId !== "")) return [3 /*break*/, 2];
                        return [4 /*yield*/, this.validandoQuantid(this.data.tanqueId)];
                    case 1:
                        ret = _a.sent();
                        this.data.tanque = ret;
                        this.data.densidadeAmostra = ret.densidadeAmostra;
                        this.data.temperaturaAmostra = ret.temperaturaAmostra;
                        this.data.temperaturaCarroTanque = ret.temperaturaTanque;
                        this.data.localizacaoId = ret.localizacaoId;
                        _a.label = 2;
                    case 2: return [2 /*return*/];
                }
            });
        });
    };
    Object.defineProperty(BalOutrasCargasFormComponent.prototype, "saldoDepositoOptions", {
        get: function () {
            return {
                destinatarioIdCliente: this.data.destinatarioIdCliente,
                materialId: this.data.materialId,
                tanqueId: this.data.tanqueId,
                sitLote: 'A',
                modo: 2,
                tipoSaldo: 2,
                osgId: this.enabledRegOSG ? this.data.osgId : 0,
                dataMovimento: this.data.dtAutorizacao,
                tipoAgrupa: 'D',
                geraArquivo: 'S'
            };
        },
        enumerable: true,
        configurable: true
    });
    BalOutrasCargasFormComponent.prototype.validandoQuantid = function (data) {
        var request = this.serviceTanque;
        var promise = new Promise(function (resolve, reject) {
            request.getById(btoa(data)).subscribe(function (resp) {
                resolve(resp);
            });
        });
        return promise;
    };
    BalOutrasCargasFormComponent.prototype.trataMaterial = function (material) {
        this.data.material = material;
    };
    BalOutrasCargasFormComponent.prototype.trataTipoTransp = function (tipoTransp) {
        if (this.funcoesService.isNotUndefinedOrNull(tipoTransp)) {
            this.obrigaTransp = this.funcoesService.isBoolean(tipoTransp.obrigaTransp);
            this.obrigaPlaca = this.funcoesService.isBoolean(tipoTransp.obrigaPlaca);
            this.showDtChegada = tipoTransp.tiposDeTransporteId === "M";
            if (!this.obrigaPlaca) {
                this.data.cadastroPlacaIdCavalo = "";
            }
        }
        else {
            this.obrigaTransp = false;
            this.obrigaPlaca = false;
            this.showDtChegada = false;
        }
    };
    BalOutrasCargasFormComponent.prototype.isValid = function () {
        this.mensagens = [];
        var erros = 0;
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["NumberUtilsStaticService"].isNotPositive(this.data.pesoLiq)) {
            this.mensagens.push(this.messageService.translate("messages.campoObrigatorio", { name: this.messageService.translate("labels.pesoLiq") }));
            erros++;
        }
        if (erros > 0) {
            app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_24__["EventEmitterService"].get("backError").emit(this.mensagens);
            return false;
        }
        return true;
    };
    Object.defineProperty(BalOutrasCargasFormComponent.prototype, "isReadonlyLacre", {
        get: function () {
            return app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["BooleanUtilsStaticService"].toBoolean(this.service.configUni.controlaLacre);
        },
        enumerable: true,
        configurable: true
    });
    BalOutrasCargasFormComponent.prototype.validaPlacaEstadoCavalo = function () {
        var _this = this;
        return this.cadastroPlacaService.getById(this.data.cadastroPlacaIdCavalo).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_26__["map"])(function (resp) { return !!resp && resp.estadoId === _this.data.estadoCavalo && resp.cadastroPlacaId === _this.data.cadastroPlacaIdCavalo; }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_26__["catchError"])(function () { return Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["of"])(false); }));
    };
    BalOutrasCargasFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_14__["MessageService"] },
        { type: _bal_outras_cargas_service__WEBPACK_IMPORTED_MODULE_5__["BalOutrasCargasService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_15__["ConfiguracaoFacade"] },
        { type: app_pages_cadastro_tanque_tanque_service__WEBPACK_IMPORTED_MODULE_16__["TanqueService"] },
        { type: app_pages_cadastro_tipo_documento_transp_tipo_documento_transp_service__WEBPACK_IMPORTED_MODULE_17__["TipoDocumentoTranspService"] },
        { type: app_pages_cadastro_tipo_de_transporte_tipo_de_transporte_service__WEBPACK_IMPORTED_MODULE_18__["TipoDeTransporteService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_19__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_20__["PermissoesUtilsService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_21__["LoginService"] },
        { type: app_pages_cadastro_densidade_tanque_densidade_tanque_service__WEBPACK_IMPORTED_MODULE_22__["DensidadeTanqueService"] },
        { type: app_shared_components_modais_lacre_lacre_service__WEBPACK_IMPORTED_MODULE_3__["LacreService"] },
        { type: app_pages_cadastro_cadastro_placa_cadastro_placa_service__WEBPACK_IMPORTED_MODULE_23__["CadastroPlacaService"] }
    ]; };
    BalOutrasCargasFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-bal-outras-cargas-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./bal-outras-cargas-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-form/bal-outras-cargas-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./bal-outras-cargas-form.component.scss */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-form/bal-outras-cargas-form.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_14__["MessageService"],
            _bal_outras_cargas_service__WEBPACK_IMPORTED_MODULE_5__["BalOutrasCargasService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_15__["ConfiguracaoFacade"],
            app_pages_cadastro_tanque_tanque_service__WEBPACK_IMPORTED_MODULE_16__["TanqueService"],
            app_pages_cadastro_tipo_documento_transp_tipo_documento_transp_service__WEBPACK_IMPORTED_MODULE_17__["TipoDocumentoTranspService"],
            app_pages_cadastro_tipo_de_transporte_tipo_de_transporte_service__WEBPACK_IMPORTED_MODULE_18__["TipoDeTransporteService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_19__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_20__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_21__["LoginService"],
            app_pages_cadastro_densidade_tanque_densidade_tanque_service__WEBPACK_IMPORTED_MODULE_22__["DensidadeTanqueService"],
            app_shared_components_modais_lacre_lacre_service__WEBPACK_IMPORTED_MODULE_3__["LacreService"],
            app_pages_cadastro_cadastro_placa_cadastro_placa_service__WEBPACK_IMPORTED_MODULE_23__["CadastroPlacaService"]])
    ], BalOutrasCargasFormComponent);
    return BalOutrasCargasFormComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_10__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-index/bal-outras-cargas-index.component.ts":
/*!***********************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-index/bal-outras-cargas-index.component.ts ***!
  \***********************************************************************************************************************************/
/*! exports provided: BalOutrasCargasIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BalOutrasCargasIndexComponent", function() { return BalOutrasCargasIndexComponent; });
/* 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_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 app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _bal_outras_cargas_remove_bal_outras_cargas_remove_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../bal-outras-cargas-remove/bal-outras-cargas-remove.component */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-remove/bal-outras-cargas-remove.component.ts");
/* harmony import */ var _bal_outras_cargas_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../bal-outras-cargas.constants */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.constants.ts");
/* harmony import */ var _bal_outras_cargas_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../bal-outras-cargas.model */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.model.ts");
/* harmony import */ var _bal_outras_cargas_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../bal-outras-cargas.service */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_pages_balanca_op_carga_op_carga_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/pages/balanca/op-carga/op-carga.model */ "./src/app/pages/balanca/op-carga/op-carga.model.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 app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.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 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");
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 BalOutrasCargasIndexComponent = /** @class */ (function (_super) {
    __extends(BalOutrasCargasIndexComponent, _super);
    function BalOutrasCargasIndexComponent(router, service, datatables, messageService, permissoesUtils, configuracao, loginService, funcoes) {
        var _this = _super.call(this, new _bal_outras_cargas_constants__WEBPACK_IMPORTED_MODULE_7__["BalOutrasCargasConstants"](), funcoes) || this;
        _this.router = router;
        _this.service = service;
        _this.datatables = datatables;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.configuracao = configuracao;
        _this.loginService = loginService;
        _this.funcoes = funcoes;
        _this.data = new app_pages_balanca_op_carga_op_carga_model__WEBPACK_IMPORTED_MODULE_11__["OpCarga"]();
        _this.balOutrasCargas = new _bal_outras_cargas_model__WEBPACK_IMPORTED_MODULE_8__["BalOutrasCargasIndex"]();
        _this.target = _this.funcoes.getTargetLocation();
        _this.mensagens = [];
        _this.pageRoute = "/especificos/rocha/movimentos/balOutrasCargas";
        _this.loadConfig = function () {
            if (!_this.configuracao.isLoadConfig())
                return;
            _this.constantes.configBal.modOCD = _this.configuracao.lerConfig("WEB", "CWebModOCD");
            _this.constantes.configWeb.prefixoRelEspecifico = _this.configuracao.lerConfig("WEB", "PrefixoRelEspecifico");
        };
        _this.remove = function () { return __awaiter(_this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () { return __awaiter(_this, void 0, void 0, function () {
                    return __generator(this, function (_a) {
                        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_14__["EventEmitterService"].get("formError").emit(null);
                        this.validaAltExc();
                        return [2 /*return*/];
                    });
                }); });
                return [2 /*return*/];
            });
        }); };
        _this.checklist = function () {
            _this.funcoesService.openWindow("cadastro/lancamentoReDue");
        };
        _this.alterarHorarios = function () {
            _this.permissoesUtils.validRotina(_this.constantes.sisFormularioId, 8, function () { return __awaiter(_this, void 0, void 0, function () {
                var validationResult, mensagens;
                var _this = this;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0:
                            if (!!!(this.data.opCargaId)) return [3 /*break*/, 2];
                            return [4 /*yield*/, this.service.validaAlteracaoHorario({ opCargaId: this.data.opCargaId })];
                        case 1:
                            validationResult = _a.sent();
                            if (!validationResult.isValid) {
                                mensagens = this.messageService.validationResult(validationResult);
                                mensagens.forEach(function (m) { return _this.messageService.warning("titles.balOutrasCargas", m); });
                                return [2 /*return*/];
                            }
                            this.router.navigate(["" + this.target + this.pageRoute + "/alterarDatas/" + this.data.opCargaId]);
                            _a.label = 2;
                        case 2: return [2 /*return*/];
                    }
                });
            }); }, function () {
            });
        };
        _this.alterarDados = function () {
            _this.permissoesUtils.validRotina(_this.constantes.sisFormularioId, 9, function () { return __awaiter(_this, void 0, void 0, function () {
                var validationResult, mensagens;
                var _this = this;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0:
                            if (!!!(this.data.opCargaId)) return [3 /*break*/, 2];
                            return [4 /*yield*/, this.service.validaAlteracaoDados({ opCargaId: this.data.opCargaId })];
                        case 1:
                            validationResult = _a.sent();
                            if (!validationResult.isValid) {
                                mensagens = this.messageService.validationResult(validationResult);
                                mensagens.forEach(function (m) { return _this.messageService.warning("titles.balOutrasCargas", m); });
                                return [2 /*return*/];
                            }
                            this.router.navigate(["" + this.target + this.pageRoute + "/alterarDados/" + this.data.opCargaId]);
                            _a.label = 2;
                        case 2: return [2 /*return*/];
                    }
                });
            }); }, function () { });
        };
        _this.duplicar = function () {
            _this.permissoesUtils.validRotina(_this.constantes.sisFormularioId, 13, function () { return __awaiter(_this, void 0, void 0, function () {
                return __generator(this, function (_a) {
                    if (!!(this.data.opCargaId)) {
                        this.router.navigate([this.target + "/especificos/rocha/movimentos/balOutrasCargas/create/" + this.data.opCargaId]);
                    }
                    return [2 /*return*/];
                });
            }); }, function () { });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    BalOutrasCargasIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (!!this.loginService.isTokenExpired()) return [3 /*break*/, 3];
                        if (!this.funcoes.abrirFiltro) return [3 /*break*/, 1];
                        this.service.filtro = new _bal_outras_cargas_model__WEBPACK_IMPORTED_MODULE_8__["BalOutrasCargasFilter"]();
                        this.funcoes.openModal("oc-filter-dialog");
                        return [3 /*break*/, 3];
                    case 1: return [4 /*yield*/, this.refresh()];
                    case 2:
                        _a.sent();
                        _a.label = 3;
                    case 3: return [2 /*return*/];
                }
            });
        }); }, function () { return _this.permissoesUtils.back(); });
        _super.prototype.addFuncoes.call(this, [
            { action: 'alterarHorarios', func: function () { return _this.alterarHorarios; } },
            { action: 'alterarDados', func: function () { return _this.alterarDados; } },
            { action: 'duplicar', func: function () { return _this.duplicar; } }
        ]);
    };
    BalOutrasCargasIndexComponent.prototype.refresh = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _a, columns;
            var _this = this;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        _a = this;
                        return [4 /*yield*/, this.service._get(this.service.filtro).toPromise()];
                    case 1:
                        _a.dados = _b.sent();
                        columns = [
                            this.datatables.getDataString("opCargaId", "autorizacao"),
                            this.datatables.getDataDateTime("dtAutorizacao", "data", "DD/MM/YYYY HH:mm", "15%"),
                            this.datatables.getDataString("cadastroPlacaIdCavalo", "placaVeiculo"),
                            this.datatables.getDataString("destinatarioIdCliente", "codigo"),
                            this.datatables.getDataString("clienteDesc", "cliente"),
                            this.datatables.getDataString("materialId", "produto"),
                            this.datatables.getDataString("produtoDesc", "descricao"),
                            this.datatables.getDataString("vendaDesc", "ClienteVenda"),
                            this.datatables.getDataString("notaVenda", "nfVenda"),
                        ];
                        this.datatables.datatable("dtBalOutrasCargas", columns, this.dados, function (aData) { return _this.data = aData; }, 0, 'asc');
                        return [2 /*return*/];
                }
            });
        });
    };
    BalOutrasCargasIndexComponent.prototype._refresh = function (event) {
        if (event) {
            this.refresh();
        }
    };
    BalOutrasCargasIndexComponent.prototype.filtrar = function () {
        jQuery("#oc-filter-dialog").modal("show");
    };
    BalOutrasCargasIndexComponent.prototype.executaFiltro = function (event) {
        this.refresh();
    };
    BalOutrasCargasIndexComponent.prototype.create = function () {
        this.data = new app_pages_balanca_op_carga_op_carga_model__WEBPACK_IMPORTED_MODULE_11__["OpCarga"]();
        this.router.navigate([this.target + "/especificos/rocha/movimentos/balOutrasCargas/create"]);
    };
    BalOutrasCargasIndexComponent.prototype.edit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                if (!!(this.data.opCargaId)) {
                    this.router.navigate([this.target + "/especificos/rocha/movimentos/balOutrasCargas/edit/" + this.data.opCargaId]);
                }
                return [2 /*return*/];
            });
        }); });
    };
    BalOutrasCargasIndexComponent.prototype.detail = function () {
        if (!!(this.data.opCargaId)) {
            this.router.navigate([this.target + "/especificos/rocha/movimentos/balOutrasCargas", "detail", this.data.opCargaId]);
        }
    };
    BalOutrasCargasIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    BalOutrasCargasIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    BalOutrasCargasIndexComponent.prototype.validaAltExc = function () {
        return __awaiter(this, void 0, void 0, function () {
            var resultado;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.service.validaAltExc(this.data.opCargaId)];
                    case 1:
                        resultado = _a.sent();
                        if (!resultado.isValid) {
                            this.messageService.warning("titles.balOutrasCargas", resultado.erros[0].message);
                        }
                        else {
                            jQuery("#bal-outras-cargas-remove-dialog").modal("show");
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    BalOutrasCargasIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            if (!!(_this.data.opCargaId)) {
                var reportTitulo = { titulo: _this.messageService.getTranslates('titles', 'balOutrasCargas'), subTitulo: '' };
                var modRel = _this.constantes.configBal.modOCD;
                if (!modRel) {
                    _this.messageService.warning("titles.balOutrasCargas", "messages.modRelNaoConfigurado");
                    return;
                }
                if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["StringUtilsStaticService"].isNotEmpty(_this.constantes.configWeb.prefixoRelEspecifico) && modRel.indexOf(_this.constantes.configWeb.prefixoRelEspecifico) == 0) {
                    _this.funcoesService.reportInvoc.invocaRelatorioEspecificos(modRel, reportTitulo, {
                        filialId: _this.loginService.getLogin().filialId,
                        autorizacao: _this.funcoesService.getValue(_this.data.opCargaId, "I"),
                        tipoOCD: "C"
                    });
                }
                else {
                    _this.funcoesService.reportInvoc.invocaRelatorio(modRel, reportTitulo, {
                        filialId: _this.loginService.getLogin().filialId,
                        autorizacao: _this.funcoesService.getValue(_this.data.opCargaId, "I"),
                        tipoOCD: "C"
                    });
                }
            }
            else {
                _this.constantes.paramRelatorio = {
                    filialId: _this.loginService.getLogin().filialId,
                    dataI: _this.service.filtro.dataI,
                    dataF: _this.service.filtro.dataF,
                    destinatarioIdCliente: _this.funcoes.getValue(_this.service.filtro.destinatarioIdCliente, "I"),
                    destinatarioIdTransportadora: _this.funcoes.getValue(_this.service.filtro.destinatarioIdTransportadora, "I"),
                    materialId: _this.funcoes.getValue(_this.service.filtro.materialId, "S"),
                    opCargaId: _this.funcoes.getValue(_this.service.filtro.opCargaId, "I"),
                    cadastroPlacaIdCavalo: _this.funcoes.getValue(_this.service.filtro.materialId, "S"),
                };
                _super.prototype.print.call(_this);
            }
        });
    };
    BalOutrasCargasIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _bal_outras_cargas_service__WEBPACK_IMPORTED_MODULE_9__["BalOutrasCargasService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_4__["PermissoesUtilsService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_12__["ConfiguracaoFacade"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_13__["LoginService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_bal_outras_cargas_remove_bal_outras_cargas_remove_component__WEBPACK_IMPORTED_MODULE_6__["BalOutrasCargasRemoveComponent"], { static: false }),
        __metadata("design:type", _bal_outras_cargas_remove_bal_outras_cargas_remove_component__WEBPACK_IMPORTED_MODULE_6__["BalOutrasCargasRemoveComponent"])
    ], BalOutrasCargasIndexComponent.prototype, "childBalOutrasCargasRemoveComponent", void 0);
    BalOutrasCargasIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-bal-outras-cargas-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./bal-outras-cargas-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-index/bal-outras-cargas-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _bal_outras_cargas_service__WEBPACK_IMPORTED_MODULE_9__["BalOutrasCargasService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_4__["PermissoesUtilsService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_12__["ConfiguracaoFacade"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_13__["LoginService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"]])
    ], BalOutrasCargasIndexComponent);
    return BalOutrasCargasIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_10__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-remove/bal-outras-cargas-remove.component.ts":
/*!*************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-remove/bal-outras-cargas-remove.component.ts ***!
  \*************************************************************************************************************************************/
/*! exports provided: BalOutrasCargasRemoveComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BalOutrasCargasRemoveComponent", function() { return BalOutrasCargasRemoveComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _bal_outras_cargas_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../bal-outras-cargas.service */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.service.ts");
/* harmony import */ var app_pages_balanca_op_carga_op_carga_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/balanca/op-carga/op-carga.model */ "./src/app/pages/balanca/op-carga/op-carga.model.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.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 BalOutrasCargasRemoveComponent = /** @class */ (function () {
    function BalOutrasCargasRemoveComponent(funcoesService, messageService, service, loginService, datatables) {
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.service = service;
        this.loginService = loginService;
        this.datatables = datatables;
        this.data = new app_pages_balanca_op_carga_op_carga_model__WEBPACK_IMPORTED_MODULE_2__["OpCarga"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__["Mascaras"]();
        this.mensagens = [];
        this._refresh = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    BalOutrasCargasRemoveComponent.prototype.ngOnInit = function () {
    };
    BalOutrasCargasRemoveComponent.prototype.onSubmit = function (form) {
        return __awaiter(this, void 0, void 0, function () {
            var resultado;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_8__["EventEmitterService"].get("formError").emit(form);
                        if (form.invalid) {
                            this.funcoesService.backToTop();
                            return [2 /*return*/];
                        }
                        if (!!!(this.data.opCargaId)) return [3 /*break*/, 2];
                        return [4 /*yield*/, this.service.validaAltExc(this.data.opCargaId)];
                    case 1:
                        resultado = _a.sent();
                        if (!resultado.isValid) {
                            this.mensagens = this.messageService.validationResult(resultado);
                            this.messageService.warning("titles.balOutrasCargas", this.mensagens[0]);
                            return [2 /*return*/];
                        }
                        this.messageService.removeConfirm(function () {
                            _this.service.remove(_this.data).subscribe(function (result1) {
                                _this.mensagens = _this.messageService.validationResult(result1.validationResult);
                                if (!result1.validationResult.isValid) {
                                    _this.messageService.warning("titles.balOutrasCargas", _this.mensagens[0]);
                                }
                                else {
                                    _this._refresh.emit(true);
                                    _this.data = new app_pages_balanca_op_carga_op_carga_model__WEBPACK_IMPORTED_MODULE_2__["OpCarga"]();
                                    jQuery("#bal-outras-cargas-remove-dialog").modal("hide");
                                }
                            });
                        });
                        _a.label = 2;
                    case 2: return [2 /*return*/];
                }
            });
        });
    };
    BalOutrasCargasRemoveComponent.ctorParameters = function () { return [
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] },
        { type: _bal_outras_cargas_service__WEBPACK_IMPORTED_MODULE_1__["BalOutrasCargasService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_7__["DatatablesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", app_pages_balanca_op_carga_op_carga_model__WEBPACK_IMPORTED_MODULE_2__["OpCarga"])
    ], BalOutrasCargasRemoveComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], BalOutrasCargasRemoveComponent.prototype, "_refresh", void 0);
    BalOutrasCargasRemoveComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-bal-outras-cargas-remove",
            template: __importDefault(__webpack_require__(/*! raw-loader!./bal-outras-cargas-remove.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-remove/bal-outras-cargas-remove.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"],
            _bal_outras_cargas_service__WEBPACK_IMPORTED_MODULE_1__["BalOutrasCargasService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_7__["DatatablesService"]])
    ], BalOutrasCargasRemoveComponent);
    return BalOutrasCargasRemoveComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-sto-laudo/bal-outras-cargas-sto-laudo.component.ts":
/*!*******************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-sto-laudo/bal-outras-cargas-sto-laudo.component.ts ***!
  \*******************************************************************************************************************************************/
/*! exports provided: BalOutrasCargasStoLaudoComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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




var BalOutrasCargasStoLaudoComponent = /** @class */ (function () {
    function BalOutrasCargasStoLaudoComponent(service) {
        this.service = service;
        this.executa = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.filtro = new _bal_outras_cargas_model__WEBPACK_IMPORTED_MODULE_3__["ComboStoLaudo"]();
        this.touched = false;
        this.onChange = function (_) {
            /*Empty*/
        };
        this.onTouched = function () {
            /*Empty*/
        };
    }
    BalOutrasCargasStoLaudoComponent_1 = BalOutrasCargasStoLaudoComponent;
    Object.defineProperty(BalOutrasCargasStoLaudoComponent.prototype, "internalValue", {
        get: function () {
            return this._internalValue;
        },
        set: function (val) {
            if (val === undefined || val === null || val === "") {
                this._internalValue = "";
                this.onChange(undefined); // Value is rubbish, so don't send back to model propper
                return;
            }
            this._internalValue = val;
            this.onChange(this._internalValue); // Value is good!
        },
        enumerable: true,
        configurable: true
    });
    BalOutrasCargasStoLaudoComponent.prototype.ngOnInit = function () {
        this.filtro.stoLaudoId = this.regLaudo;
        this.filtro.dtAutorizacao = this.dtAutorizacao;
        this.filtro.destinatarioIdCliente = this.destinatarioIdCliente;
        this.filtro.destinatarioIdTransportadora = this.destinatarioIdTransportadora;
        this.filtro.materialId = this.materialId;
        this.dados = this.service.comboStoLaudo(this.filtro);
    };
    //////////////////////////////////
    // ControlValueAccessor interface
    //////////////////////////////////
    BalOutrasCargasStoLaudoComponent.prototype.writeValue = function (value) {
        if (value === undefined || value === null) {
            this.internalValue = "";
            return;
        }
        this.internalValue = value;
    };
    BalOutrasCargasStoLaudoComponent.prototype.registerOnChange = function (fn) {
        this.onChange = fn;
    };
    BalOutrasCargasStoLaudoComponent.prototype.registerOnTouched = function (fn) {
        var self = this;
        this.onTouched = function (arg) {
            self.touched = true;
            fn(arg);
        };
    };
    BalOutrasCargasStoLaudoComponent.prototype.setDisabledState = function (isDisabled) {
    };
    BalOutrasCargasStoLaudoComponent.prototype.getBlur = function () {
        this.executa.emit(this.internalValue);
    };
    var BalOutrasCargasStoLaudoComponent_1;
    BalOutrasCargasStoLaudoComponent.ctorParameters = function () { return [
        { type: _bal_outras_cargas_service__WEBPACK_IMPORTED_MODULE_2__["BalOutrasCargasService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], BalOutrasCargasStoLaudoComponent.prototype, "id", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], BalOutrasCargasStoLaudoComponent.prototype, "name", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], BalOutrasCargasStoLaudoComponent.prototype, "required", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], BalOutrasCargasStoLaudoComponent.prototype, "disabled", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], BalOutrasCargasStoLaudoComponent.prototype, "regLaudo", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], BalOutrasCargasStoLaudoComponent.prototype, "dtAutorizacao", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], BalOutrasCargasStoLaudoComponent.prototype, "destinatarioIdCliente", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], BalOutrasCargasStoLaudoComponent.prototype, "destinatarioIdTransportadora", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], BalOutrasCargasStoLaudoComponent.prototype, "materialId", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], BalOutrasCargasStoLaudoComponent.prototype, "_internalValue", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], BalOutrasCargasStoLaudoComponent.prototype, "executa", void 0);
    BalOutrasCargasStoLaudoComponent = BalOutrasCargasStoLaudoComponent_1 = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-outras-cargas-sto-laudo",
            template: __importDefault(__webpack_require__(/*! raw-loader!./bal-outras-cargas-sto-laudo.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-sto-laudo/bal-outras-cargas-sto-laudo.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            providers: [
                {
                    provide: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NG_VALUE_ACCESSOR"],
                    useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(function () { return BalOutrasCargasStoLaudoComponent_1; }),
                    multi: true
                }
            ]
        }),
        __metadata("design:paramtypes", [_bal_outras_cargas_service__WEBPACK_IMPORTED_MODULE_2__["BalOutrasCargasService"]])
    ], BalOutrasCargasStoLaudoComponent);
    return BalOutrasCargasStoLaudoComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.constants.ts":
/*!*****************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.constants.ts ***!
  \*****************************************************************************************************/
/*! exports provided: BalOutrasCargasConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BalOutrasCargasConstants", function() { return BalOutrasCargasConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var BalOutrasCargasConstants = /** @class */ (function () {
    function BalOutrasCargasConstants() {
        this.sisFormularioId = 140155;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.inclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.exclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.propriedades" },
            { sisFormularioId: this.sisFormularioId, libRotina: 7, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 8, acao: "labels.alterarHorarios" },
            { sisFormularioId: this.sisFormularioId, libRotina: 9, acao: "labels.alterarDados" },
            { sisFormularioId: this.sisFormularioId, libRotina: 10, acao: "labels.todosCampos" },
            { sisFormularioId: this.sisFormularioId, libRotina: 11, acao: "labels.inicioOperacao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 12, acao: "labels.fimOperacao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 13, acao: "labels.duplicar" },
        ];
        this.sisSistemaId = "BAL";
        this.nomeForm = "titles.balOutrasCargas";
        this.reportId = "BAL0009";
        this.tabela = "OpCarga";
        this.listaIndex = [
            { title: 'Novo', action: 'create', icon: "icon-plus", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Visualizar', action: 'detail', icon: "icon-eye", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Excluir', action: 'remove', icon: "icon-close", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Propriedade', action: 'properties', icon: "icon-menu", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'AlterarHorarios', action: "alterarHorarios", icon: "icon-calendar", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'AlterarDados', action: "alterarDados", icon: "icon-server", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Duplicar', action: "duplicar", icon: "icon-files", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
        this.listaForm = [
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.listaAlterarDatas = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.listaAlterarDados = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.listaParam = [
            {
                'sistema': 'BAL', 'parametros': ["PesaReqCarga",
                    "NaoObrOsgReqCarga",
                    "PesagemAutomatica",
                    "SolMotivoExcReq",
                    "OsgNaOCD",
                    "ObrPlataforma",
                    "LaudoOCMar",
                    "MaskTrem",
                    "MaskPlaca",
                    "PermissaoDatasOCD"]
            },
            { 'sistema': 'CTV', 'parametros': ["ObservPortal", "SolicitaPlanejEv"] },
            { 'sistema': 'STO', 'parametros': ["NumDecCalc20", "NumDecCalcOutros"] },
            { 'sistema': 'CTR', 'parametros': ["DtSeguro"] },
            { 'sistema': 'WEB', 'parametros': ["CWebModOCD", "PrefixoRelEspecifico"] },
            { 'sistema': 'UNI', 'parametros': ["ControlaLacre", "ControlaLacreA"] }
        ];
        this.configBal = {
            permissaoDatasOCD: false,
            justAtraso: false,
            justDescarga: false,
            plataforma: false,
            modOCD: "BAL0009"
        };
        this.configWeb = {
            prefixoRelEspecifico: ""
        };
    }
    return BalOutrasCargasConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.deactivate.guard.ts":
/*!************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.deactivate.guard.ts ***!
  \************************************************************************************************************/
/*! exports provided: BalOutrasCargasFormCandeactivateGuard */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BalOutrasCargasFormCandeactivateGuard", function() { return BalOutrasCargasFormCandeactivateGuard; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
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 BalOutrasCargasFormCandeactivateGuard = /** @class */ (function () {
    function BalOutrasCargasFormCandeactivateGuard() {
    }
    BalOutrasCargasFormCandeactivateGuard.prototype.canDeactivate = function (component, currentRoute, currentState, nextState) {
        return component.podeMudarRota();
    };
    BalOutrasCargasFormCandeactivateGuard = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])()
    ], BalOutrasCargasFormCandeactivateGuard);
    return BalOutrasCargasFormCandeactivateGuard;
}());



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.model.ts":
/*!*************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.model.ts ***!
  \*************************************************************************************************/
/*! exports provided: BalOutrasCargas, BalOutrasCargasIndex, BalOutrasCargasFilter, CalculoDensidadeFilter, ComboStoLaudo, OutrasCargasAlterarDatas, OutrasCargasAlterarDados */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BalOutrasCargas", function() { return BalOutrasCargas; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BalOutrasCargasIndex", function() { return BalOutrasCargasIndex; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BalOutrasCargasFilter", function() { return BalOutrasCargasFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CalculoDensidadeFilter", function() { return CalculoDensidadeFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ComboStoLaudo", function() { return ComboStoLaudo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OutrasCargasAlterarDatas", function() { return OutrasCargasAlterarDatas; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OutrasCargasAlterarDados", function() { return OutrasCargasAlterarDados; });
/* harmony import */ var app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/shared/services/base/base.model */ "./src/app/shared/services/base/base.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

var BalOutrasCargas = /** @class */ (function (_super) {
    __extends(BalOutrasCargas, _super);
    function BalOutrasCargas() {
        return _super.call(this) || this;
    }
    return BalOutrasCargas;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var BalOutrasCargasIndex = /** @class */ (function (_super) {
    __extends(BalOutrasCargasIndex, _super);
    function BalOutrasCargasIndex() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return BalOutrasCargasIndex;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var BalOutrasCargasFilter = /** @class */ (function () {
    function BalOutrasCargasFilter() {
        var currentDate = new Date();
        currentDate.setDate(currentDate.getDate() - 30);
        this.dataI = currentDate;
        this.dataF = new Date();
        this.destinatarioIdCliente = 0;
        this.destinatarioIdTransportadora = 0;
        this.opCargaId = 0;
        this.materialId = "";
        this.cadastroPlacaIdCavalo = "";
        this.material = null;
        this.cliente = null;
        this.transportadora = null;
    }
    return BalOutrasCargasFilter;
}());

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

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

var OutrasCargasAlterarDatas = /** @class */ (function (_super) {
    __extends(OutrasCargasAlterarDatas, _super);
    function OutrasCargasAlterarDatas() {
        return _super.call(this) || this;
    }
    return OutrasCargasAlterarDatas;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var OutrasCargasAlterarDados = /** @class */ (function (_super) {
    __extends(OutrasCargasAlterarDados, _super);
    function OutrasCargasAlterarDados() {
        return _super.call(this) || this;
        // this.obrigaTransp = 'S'
    }
    return OutrasCargasAlterarDados;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.module.ts":
/*!**************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.module.ts ***!
  \**************************************************************************************************/
/*! exports provided: BalOutrasCargasModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BalOutrasCargasModule", function() { return BalOutrasCargasModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _bal_outras_cargas_filter_bal_outras_cargas_filter_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./bal-outras-cargas-filter/bal-outras-cargas-filter.component */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-filter/bal-outras-cargas-filter.component.ts");
/* harmony import */ var _bal_outras_cargas_form_bal_outras_cargas_form_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./bal-outras-cargas-form/bal-outras-cargas-form.component */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-form/bal-outras-cargas-form.component.ts");
/* harmony import */ var _bal_outras_cargas_index_bal_outras_cargas_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./bal-outras-cargas-index/bal-outras-cargas-index.component */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-index/bal-outras-cargas-index.component.ts");
/* harmony import */ var _bal_outras_cargas_remove_bal_outras_cargas_remove_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./bal-outras-cargas-remove/bal-outras-cargas-remove.component */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-remove/bal-outras-cargas-remove.component.ts");
/* harmony import */ var _bal_outras_cargas_sto_laudo_bal_outras_cargas_sto_laudo_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./bal-outras-cargas-sto-laudo/bal-outras-cargas-sto-laudo.component */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-sto-laudo/bal-outras-cargas-sto-laudo.component.ts");
/* harmony import */ var _bal_outras_cargas_deactivate_guard__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./bal-outras-cargas.deactivate.guard */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.deactivate.guard.ts");
/* harmony import */ var _bal_outras_cargas_routing_module__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./bal-outras-cargas.routing.module */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.routing.module.ts");
/* harmony import */ var _outras_cargas_alterar_dados_outras_cargas_alterar_dados_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./outras-cargas-alterar-dados/outras-cargas-alterar-dados.component */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/outras-cargas-alterar-dados/outras-cargas-alterar-dados.component.ts");
/* harmony import */ var _outras_cargas_alterar_datas_outras_cargas_alterar_datas_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./outras-cargas-alterar-datas/outras-cargas-alterar-datas.component */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/outras-cargas-alterar-datas/outras-cargas-alterar-datas.component.ts");
/* harmony import */ var app_shared_shared_module__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/shared.module */ "./src/app/shared/shared.module.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};











var BalOutrasCargasModule = /** @class */ (function () {
    function BalOutrasCargasModule() {
    }
    BalOutrasCargasModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [app_shared_shared_module__WEBPACK_IMPORTED_MODULE_10__["SharedModule"], _bal_outras_cargas_routing_module__WEBPACK_IMPORTED_MODULE_7__["BalOutrasCargasRoutingModule"]],
            declarations: [
                _bal_outras_cargas_filter_bal_outras_cargas_filter_component__WEBPACK_IMPORTED_MODULE_1__["BalOutrasCargasFilterComponent"],
                _bal_outras_cargas_index_bal_outras_cargas_index_component__WEBPACK_IMPORTED_MODULE_3__["BalOutrasCargasIndexComponent"],
                _bal_outras_cargas_form_bal_outras_cargas_form_component__WEBPACK_IMPORTED_MODULE_2__["BalOutrasCargasFormComponent"],
                _bal_outras_cargas_remove_bal_outras_cargas_remove_component__WEBPACK_IMPORTED_MODULE_4__["BalOutrasCargasRemoveComponent"],
                _bal_outras_cargas_sto_laudo_bal_outras_cargas_sto_laudo_component__WEBPACK_IMPORTED_MODULE_5__["BalOutrasCargasStoLaudoComponent"],
                _outras_cargas_alterar_dados_outras_cargas_alterar_dados_component__WEBPACK_IMPORTED_MODULE_8__["OutrasCargasAlterarDadosComponent"],
                _outras_cargas_alterar_datas_outras_cargas_alterar_datas_component__WEBPACK_IMPORTED_MODULE_9__["OutrasCargasAlterarDatasComponent"]
            ],
            providers: [_bal_outras_cargas_deactivate_guard__WEBPACK_IMPORTED_MODULE_6__["BalOutrasCargasFormCandeactivateGuard"]]
        })
    ], BalOutrasCargasModule);
    return BalOutrasCargasModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.routing.module.ts":
/*!**********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.routing.module.ts ***!
  \**********************************************************************************************************/
/*! exports provided: BalOutrasCargasRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BalOutrasCargasRoutingModule", function() { return BalOutrasCargasRoutingModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _bal_outras_cargas_index_bal_outras_cargas_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./bal-outras-cargas-index/bal-outras-cargas-index.component */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-index/bal-outras-cargas-index.component.ts");
/* harmony import */ var _bal_outras_cargas_form_bal_outras_cargas_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./bal-outras-cargas-form/bal-outras-cargas-form.component */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas-form/bal-outras-cargas-form.component.ts");
/* harmony import */ var _outras_cargas_alterar_datas_outras_cargas_alterar_datas_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./outras-cargas-alterar-datas/outras-cargas-alterar-datas.component */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/outras-cargas-alterar-datas/outras-cargas-alterar-datas.component.ts");
/* harmony import */ var _outras_cargas_alterar_dados_outras_cargas_alterar_dados_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./outras-cargas-alterar-dados/outras-cargas-alterar-dados.component */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/outras-cargas-alterar-dados/outras-cargas-alterar-dados.component.ts");
/* harmony import */ var _bal_outras_cargas_deactivate_guard__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./bal-outras-cargas.deactivate.guard */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.deactivate.guard.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: _bal_outras_cargas_index_bal_outras_cargas_index_component__WEBPACK_IMPORTED_MODULE_3__["BalOutrasCargasIndexComponent"],
        data: {
            breadcrumb: "BalOutrasCargas",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    },
    {
        path: "create",
        component: _bal_outras_cargas_form_bal_outras_cargas_form_component__WEBPACK_IMPORTED_MODULE_4__["BalOutrasCargasFormComponent"],
        data: {
            breadcrumb: "BalOutrasCargas",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        },
        canDeactivate: [_bal_outras_cargas_deactivate_guard__WEBPACK_IMPORTED_MODULE_7__["BalOutrasCargasFormCandeactivateGuard"]]
    },
    {
        path: "create/:id",
        component: _bal_outras_cargas_form_bal_outras_cargas_form_component__WEBPACK_IMPORTED_MODULE_4__["BalOutrasCargasFormComponent"],
        data: {
            breadcrumb: "BalOutrasCargas",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        },
        canDeactivate: [_bal_outras_cargas_deactivate_guard__WEBPACK_IMPORTED_MODULE_7__["BalOutrasCargasFormCandeactivateGuard"]]
    },
    {
        path: "create/:checkListId/:checklistItemId",
        component: _bal_outras_cargas_form_bal_outras_cargas_form_component__WEBPACK_IMPORTED_MODULE_4__["BalOutrasCargasFormComponent"],
        data: {
            breadcrumb: "BalOutrasCargas",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        },
        canDeactivate: [_bal_outras_cargas_deactivate_guard__WEBPACK_IMPORTED_MODULE_7__["BalOutrasCargasFormCandeactivateGuard"]]
    },
    {
        path: "edit/:id",
        component: _bal_outras_cargas_form_bal_outras_cargas_form_component__WEBPACK_IMPORTED_MODULE_4__["BalOutrasCargasFormComponent"],
        data: {
            breadcrumb: "BalOutrasCargas",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        },
        canDeactivate: [_bal_outras_cargas_deactivate_guard__WEBPACK_IMPORTED_MODULE_7__["BalOutrasCargasFormCandeactivateGuard"]]
    },
    {
        path: "detail/:id",
        component: _bal_outras_cargas_form_bal_outras_cargas_form_component__WEBPACK_IMPORTED_MODULE_4__["BalOutrasCargasFormComponent"],
        data: {
            breadcrumb: "BalOutrasCargas",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    },
    {
        path: "alterarDatas/:id",
        component: _outras_cargas_alterar_datas_outras_cargas_alterar_datas_component__WEBPACK_IMPORTED_MODULE_5__["OutrasCargasAlterarDatasComponent"],
        data: {
            breadcrumb: "BalOutrasCargas",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "alterarDados/:id",
        component: _outras_cargas_alterar_dados_outras_cargas_alterar_dados_component__WEBPACK_IMPORTED_MODULE_6__["OutrasCargasAlterarDadosComponent"],
        data: {
            breadcrumb: "BalOutrasCargas",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    }
];
var BalOutrasCargasRoutingModule = /** @class */ (function () {
    function BalOutrasCargasRoutingModule() {
    }
    BalOutrasCargasRoutingModule = __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"]]
        })
    ], BalOutrasCargasRoutingModule);
    return BalOutrasCargasRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.service.ts":
/*!***************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.service.ts ***!
  \***************************************************************************************************/
/*! exports provided: BalOutrasCargasService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BalOutrasCargasService", function() { return BalOutrasCargasService; });
/* 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 rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _bal_outras_cargas_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./bal-outras-cargas.model */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.model.ts");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/base/specifics.base.service */ "./src/app/shared/services/base/specifics.base.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};







var BalOutrasCargasService = /** @class */ (function (_super) {
    __extends(BalOutrasCargasService, _super);
    function BalOutrasCargasService(http) {
        var _this = _super.call(this, http, "rocha/movimentos/balOutrasCargas") || this;
        _this.http = http;
        _this.filtro = new _bal_outras_cargas_model__WEBPACK_IMPORTED_MODULE_3__["BalOutrasCargasFilter"]();
        _this.configs = {
            osgNaOCD: false,
            obrPlataforma: false,
            laudoOCMar: false,
            maskPlaca: '',
            maskTrem: '',
        };
        _this.configUni = {
            controlaLacre: false,
            controlaLacreA: false
        };
        return _this;
    }
    BalOutrasCargasService.prototype._get = function (filtro) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/rocha/movimentos/balOutrasCargas/getByFiltro", filtro)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    BalOutrasCargasService.prototype.validaAltExc = function (opCargaId) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/rocha/movimentos/balOutrasCargas/validaAltExc/" + opCargaId)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError)).toPromise();
    };
    BalOutrasCargasService.prototype.comboStoLaudo = function (filtro) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/rocha/movimentos/balOutrasCargas/comboStoLaudo", filtro)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    BalOutrasCargasService.prototype.validaAlteracaoHorario = function (filter) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/rocha/movimentos/balOutrasCargas/validaAlteracaoHorario", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError)).toPromise();
    };
    BalOutrasCargasService.prototype.alterarDatas = function (filter) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/rocha/movimentos/balOutrasCargas/alterarDatas", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    BalOutrasCargasService.prototype.validaAlteracaoDados = function (filter) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/rocha/movimentos/balOutrasCargas/validaAlteracaoDados", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError)).toPromise();
    };
    BalOutrasCargasService.prototype.alterarDados = function (filter) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/rocha/movimentos/balOutrasCargas/alterarDados", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    BalOutrasCargasService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    BalOutrasCargasService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], BalOutrasCargasService);
    return BalOutrasCargasService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_6__["SpecificsBaseService"]));



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/outras-cargas-alterar-dados/outras-cargas-alterar-dados.component.ts":
/*!*******************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/outras-cargas-alterar-dados/outras-cargas-alterar-dados.component.ts ***!
  \*******************************************************************************************************************************************/
/*! exports provided: OutrasCargasAlterarDadosComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OutrasCargasAlterarDadosComponent", function() { return OutrasCargasAlterarDadosComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_pages_cadastro_lote_lote_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/cadastro/lote/lote.model */ "./src/app/pages/cadastro/lote/lote.model.ts");
/* harmony import */ var app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pages/cadastro/material/material.model */ "./src/app/pages/cadastro/material/material.model.ts");
/* harmony import */ var app_pages_cadastro_tipo_de_transporte_tipo_de_transporte_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/cadastro/tipo-de-transporte/tipo-de-transporte.service */ "./src/app/pages/cadastro/tipo-de-transporte/tipo-de-transporte.service.ts");
/* harmony import */ var app_pages_cadastro_tipo_documento_transp_tipo_documento_transp_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/pages/cadastro/tipo-documento-transp/tipo-documento-transp.service */ "./src/app/pages/cadastro/tipo-documento-transp/tipo-documento-transp.service.ts");
/* harmony import */ var app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/boolean-utils/boolean-utils.static.service */ "./src/app/shared/services/funcoes/boolean-utils/boolean-utils.static.service.ts");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
/* harmony import */ var _bal_outras_cargas_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../bal-outras-cargas.constants */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.constants.ts");
/* harmony import */ var _bal_outras_cargas_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../bal-outras-cargas.model */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.model.ts");
/* harmony import */ var _bal_outras_cargas_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../bal-outras-cargas.service */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_pages_balanca_op_carga_op_carga_model__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/pages/balanca/op-carga/op-carga.model */ "./src/app/pages/balanca/op-carga/op-carga.model.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! app/pages/cadastro/material/material.service */ "./src/app/pages/cadastro/material/material.service.ts");
/* harmony import */ var app_pages_cadastro_lote_lote_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! app/pages/cadastro/lote/lote.service */ "./src/app/pages/cadastro/lote/lote.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_19__ = __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_20__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_21__ = __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_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.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 OutrasCargasAlterarDadosComponent = /** @class */ (function (_super) {
    __extends(OutrasCargasAlterarDadosComponent, _super);
    function OutrasCargasAlterarDadosComponent(router, activatedRoute, configuracao, funcoes, message, service, destinatarioService, materialService, loteService, permissoesUtils, loginService, tipoDeTransporteService, tipoDocumentoTranspService) {
        var _this = _super.call(this, new _bal_outras_cargas_constants__WEBPACK_IMPORTED_MODULE_8__["BalOutrasCargasConstants"](), funcoes) || this;
        _this.router = router;
        _this.activatedRoute = activatedRoute;
        _this.configuracao = configuracao;
        _this.funcoes = funcoes;
        _this.message = message;
        _this.service = service;
        _this.destinatarioService = destinatarioService;
        _this.materialService = materialService;
        _this.loteService = loteService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.tipoDeTransporteService = tipoDeTransporteService;
        _this.tipoDocumentoTranspService = tipoDocumentoTranspService;
        _this.data = new _bal_outras_cargas_model__WEBPACK_IMPORTED_MODULE_9__["OutrasCargasAlterarDados"]();
        _this.constantes = new _bal_outras_cargas_constants__WEBPACK_IMPORTED_MODULE_8__["BalOutrasCargasConstants"]();
        _this.validacoes = [];
        _this.now = new Date();
        _this.outrasCargas = new app_pages_balanca_op_carga_op_carga_model__WEBPACK_IMPORTED_MODULE_12__["OpCarga"]();
        _this.target = _this.funcoes.getTargetLocation();
        _this.loadConfig = function () {
            if (!_this.configuracao.isLoadConfig())
                return;
            _this.constantes.configBal.Plataforma = _this.configuracao.boolean("BAL", "ObrPlataforma");
        };
        return _this;
    }
    OutrasCargasAlterarDadosComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
        this.permissoesUtils.validRotina(this.constantes.sisFormularioId, 9, function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            if (!id) {
                _this.message.warning("titles.outrasCargas", "messages.nenhumRegistroEncontrado");
                return;
            }
            _this.init(id);
        }, function () { });
    };
    OutrasCargasAlterarDadosComponent.prototype.init = function (id) {
        var _this = this;
        this.service.getById(+id).subscribe(function (resp) {
            _this.outrasCargas = resp;
            _this.carregaAlterarDados(_this.outrasCargas);
        });
    };
    OutrasCargasAlterarDadosComponent.prototype.carregaAlterarDados = function (opCarga) {
        var _this = this;
        this.data.opCargaId = opCarga.opCargaId;
        this.data.tanqueId = opCarga.tanqueId;
        this.data.materialId = opCarga.materialId;
        this.data.tipoOperacaoId = opCarga.tipoOperacaoId === 0 ? "" : opCarga.tipoOperacaoId;
        this.data.plataformaId = opCarga.plataformaId;
        this.data.volume = opCarga.volume;
        this.data.tiposDeTransporteId = opCarga.tipoTransp;
        this.data.obrigaTransp = opCarga.obrigaTransp;
        this.data.destinatarioIdCliente = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_21__["NumberUtilsStaticService"].toNumber(opCarga.destinatarioIdCliente);
        this.data.destinatarioIdTransportadora = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_21__["NumberUtilsStaticService"].toNumber(opCarga.destinatarioIdTransportadora);
        Object(rxjs__WEBPACK_IMPORTED_MODULE_7__["forkJoin"])([
            this.destinatarioService.getById(this.data.destinatarioIdCliente),
            this.destinatarioService.getById(this.data.destinatarioIdTransportadora),
            this.materialService.getById(this.data.materialId)
        ]).subscribe(function (result) {
            _this.data.cliente = !!result[0] ? result[0] : new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_22__["Destinatario"]();
            _this.data.transportadora = !!result[1] ? result[1] : new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_22__["Destinatario"]();
            _this.data.material = !!result[2] ? result[2] : new app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_3__["Material"]();
        });
        this.data.loteId = opCarga.loteId;
        this.data.tipoFreteId = opCarga.tipoFrete;
        this.data.osgId = opCarga.osgId;
        this.data.tipoDocumentoTranspId = opCarga.tipoDocumentoTranspId;
        if (!!opCarga.tipoDocumentoTranspId) {
            this.tipoDocumentoTranspService.getById(opCarga.tipoDocumentoTranspId).subscribe(function (resp) {
                _this.data.maskDocTransNumero = resp.mascara;
            });
        }
        this.data.docTranspEmissao = opCarga.docTranspEmissao;
        this.data.docTranspNumero = opCarga.docTranspNumero;
        this.data.cadastroPlacaIdCavalo = opCarga.cadastroPlacaIdCavalo;
        this.data.cadastroPlacaIdCarreta1 = opCarga.cadastroPlacaIdCarreta1;
        this.data.cadastroPlacaIdCarreta2 = opCarga.cadastroPlacaIdCarreta2;
        this.data.dtAutorizacao = opCarga.dtAutorizacao;
    };
    OutrasCargasAlterarDadosComponent.prototype.back = function () {
        this.router.navigate(["pages/especificos/rocha/movimentos/balOutrasCargas"]);
    };
    OutrasCargasAlterarDadosComponent.prototype.onSubmit = function (form) {
        return __awaiter(this, void 0, void 0, function () {
            var ret, mensagens;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_23__["EventEmitterService"].get("formError").emit(form);
                        if (form.invalid) {
                            this.funcoes.backToTop();
                            return [2 /*return*/];
                        }
                        return [4 /*yield*/, this.service.alterarDados({
                                opCargaId: this.data.opCargaId,
                                tanqueId: this.data.tanqueId,
                                tipoOperacaoId: this.data.tipoOperacaoId,
                                plataformaId: this.data.plataformaId,
                                loteId: this.data.loteId,
                                volume: this.data.volume,
                                tipoFreteId: this.data.tipoFreteId,
                                tipoDocumentoTranspId: this.data.tipoDocumentoTranspId,
                                docTranspNumero: this.data.docTranspNumero,
                                docTranspEmissao: this.data.docTranspEmissao,
                                tiposDeTransporteId: this.data.tiposDeTransporteId,
                                destinatarioIdTransportadora: this.data.destinatarioIdTransportadora,
                                cadastroPlacaIdCavalo: this.data.cadastroPlacaIdCavalo,
                                cadastroPlacaIdCarreta1: this.data.cadastroPlacaIdCarreta1,
                                cadastroPlacaIdCarreta2: this.data.cadastroPlacaIdCarreta2
                            }).toPromise()];
                    case 1:
                        ret = _a.sent();
                        if (!ret.isValid) {
                            mensagens = this.message.validationResult(ret);
                            app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_23__["EventEmitterService"].get("backError").emit(mensagens);
                            this.funcoes.backToTop();
                            return [2 /*return*/];
                        }
                        else {
                            this.message.saveSuccess("titles.outrasCargas");
                            this.back();
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    OutrasCargasAlterarDadosComponent.prototype.trataDest = function (destinatario) {
        this.data.cliente = destinatario;
    };
    OutrasCargasAlterarDadosComponent.prototype.trataTipoDocumentoTransp = function (data) {
        this.data.tipoDocumentoTransp = data;
        this.data.maskDocTransNumero = data.mascara;
        if (this.data.tipoDocumentoTranspId > 0) {
            this.data.docTranspNumero = "";
        }
    };
    OutrasCargasAlterarDadosComponent.prototype.trataLote = function (event) {
        this.data.lote = event ? event.lote : new app_pages_cadastro_lote_lote_model__WEBPACK_IMPORTED_MODULE_2__["Lote"]();
    };
    Object.defineProperty(OutrasCargasAlterarDadosComponent.prototype, "requiredDadosEntrada", {
        get: function () {
            return app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["BooleanUtilsStaticService"].toBoolean(this.data.flagSolDadosEnt);
        },
        enumerable: true,
        configurable: true
    });
    OutrasCargasAlterarDadosComponent.prototype.trataTipoDeTransporte = function (data) {
        this.data.obrigaPlaca = data.obrigaPlaca;
        this.data.obrigaTransp = data.obrigaTransp;
    };
    Object.defineProperty(OutrasCargasAlterarDadosComponent.prototype, "requiredTransp", {
        get: function () {
            return app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["BooleanUtilsStaticService"].toBoolean(this.data.obrigaTransp == 'S');
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OutrasCargasAlterarDadosComponent.prototype, "requiredPlaca", {
        get: function () {
            return app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["BooleanUtilsStaticService"].toBoolean(this.data.obrigaPlaca);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OutrasCargasAlterarDadosComponent.prototype, "saldoDepositoOptions", {
        get: function () {
            return {
                destinatarioIdCliente: this.data.destinatarioIdCliente,
                materialId: this.data.materialId,
                sitLote: 'A',
                modo: 2,
                tipoSaldo: 2,
                osgId: this.data.osgId,
                dataMovimento: this.data.dtAutorizacao,
                tipoAgrupa: 'D',
                geraArquivo: 'S',
                planejTanque: true
            };
        },
        enumerable: true,
        configurable: true
    });
    OutrasCargasAlterarDadosComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_13__["ConfiguracaoFacade"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_14__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_15__["MessageService"] },
        { type: _bal_outras_cargas_service__WEBPACK_IMPORTED_MODULE_10__["BalOutrasCargasService"] },
        { type: app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_16__["DestinatarioService"] },
        { type: app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_17__["MaterialService"] },
        { type: app_pages_cadastro_lote_lote_service__WEBPACK_IMPORTED_MODULE_18__["LoteService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_19__["PermissoesUtilsService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_20__["LoginService"] },
        { type: app_pages_cadastro_tipo_de_transporte_tipo_de_transporte_service__WEBPACK_IMPORTED_MODULE_4__["TipoDeTransporteService"] },
        { type: app_pages_cadastro_tipo_documento_transp_tipo_documento_transp_service__WEBPACK_IMPORTED_MODULE_5__["TipoDocumentoTranspService"] }
    ]; };
    OutrasCargasAlterarDadosComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-outras-cargas-alterar-dados",
            template: __importDefault(__webpack_require__(/*! raw-loader!./outras-cargas-alterar-dados.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/outras-cargas-alterar-dados/outras-cargas-alterar-dados.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"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_13__["ConfiguracaoFacade"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_14__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_15__["MessageService"],
            _bal_outras_cargas_service__WEBPACK_IMPORTED_MODULE_10__["BalOutrasCargasService"],
            app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_16__["DestinatarioService"],
            app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_17__["MaterialService"],
            app_pages_cadastro_lote_lote_service__WEBPACK_IMPORTED_MODULE_18__["LoteService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_19__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_20__["LoginService"],
            app_pages_cadastro_tipo_de_transporte_tipo_de_transporte_service__WEBPACK_IMPORTED_MODULE_4__["TipoDeTransporteService"],
            app_pages_cadastro_tipo_documento_transp_tipo_documento_transp_service__WEBPACK_IMPORTED_MODULE_5__["TipoDocumentoTranspService"]])
    ], OutrasCargasAlterarDadosComponent);
    return OutrasCargasAlterarDadosComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_11__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/outras-cargas-alterar-datas/outras-cargas-alterar-datas.component.ts":
/*!*******************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/outras-cargas-alterar-datas/outras-cargas-alterar-datas.component.ts ***!
  \*******************************************************************************************************************************************/
/*! exports provided: OutrasCargasAlterarDatasComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OutrasCargasAlterarDatasComponent", function() { return OutrasCargasAlterarDatasComponent; });
/* 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_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_3__ = __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_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _bal_outras_cargas_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../bal-outras-cargas.constants */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.constants.ts");
/* harmony import */ var _bal_outras_cargas_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../bal-outras-cargas.model */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.model.ts");
/* harmony import */ var _bal_outras_cargas_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../bal-outras-cargas.service */ "./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/bal-outras-cargas.service.ts");
/* harmony import */ var app_pages_balanca_op_carga_op_carga_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/pages/balanca/op-carga/op-carga.model */ "./src/app/pages/balanca/op-carga/op-carga.model.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.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");
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 OutrasCargasAlterarDatasComponent = /** @class */ (function (_super) {
    __extends(OutrasCargasAlterarDatasComponent, _super);
    function OutrasCargasAlterarDatasComponent(router, activatedRoute, funcoes, configuracao, message, service, permissoesUtils) {
        var _this = _super.call(this, new _bal_outras_cargas_constants__WEBPACK_IMPORTED_MODULE_7__["BalOutrasCargasConstants"](), funcoes) || this;
        _this.router = router;
        _this.activatedRoute = activatedRoute;
        _this.funcoes = funcoes;
        _this.configuracao = configuracao;
        _this.message = message;
        _this.service = service;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _bal_outras_cargas_model__WEBPACK_IMPORTED_MODULE_8__["OutrasCargasAlterarDatas"]();
        _this.mensagens = [];
        _this.constantes = new _bal_outras_cargas_constants__WEBPACK_IMPORTED_MODULE_7__["BalOutrasCargasConstants"]();
        _this.todosCampos = false;
        _this.inicioOperacao = false;
        _this.fimOperacao = false;
        _this.outrasCargas = new app_pages_balanca_op_carga_op_carga_model__WEBPACK_IMPORTED_MODULE_10__["OpCarga"]();
        _this.loadConfig = function () {
            if (!_this.configuracao.isLoadConfig())
                return;
            _this.constantes.configBal.permissaoDatasOCD = _this.configuracao.boolean("BAL", "PermissaoDatasOCD");
            _this.constantes.configBal.justAtraso = _this.configuracao.boolean("BAL", "JustAtraso");
            _this.constantes.configBal.justDescarga = _this.configuracao.boolean("BAL", "JustDescarga");
        };
        return _this;
    }
    OutrasCargasAlterarDatasComponent.prototype.ngOnInit = function () {
        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
        var id = this.activatedRoute.snapshot.paramMap.get("id");
        this.init(id);
    };
    OutrasCargasAlterarDatasComponent.prototype.init = function (id) {
        if (id) {
            this.getById(id);
        }
        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
        this.validaPermissoes();
    };
    OutrasCargasAlterarDatasComponent.prototype.validaPermissoes = function () {
        var _this = this;
        this.permissoesUtils.validRotina(this.constantes.sisFormularioId, 9, function () { return _this.todosCampos = true; }, function () { return _this.todosCampos = false; });
        this.permissoesUtils.validRotina(this.constantes.sisFormularioId, 10, function () { return _this.inicioOperacao = true; }, function () { return _this.inicioOperacao = false; });
        this.permissoesUtils.validRotina(this.constantes.sisFormularioId, 11, function () { return _this.fimOperacao = true; }, function () { return _this.fimOperacao = false; });
    };
    OutrasCargasAlterarDatasComponent.prototype.getById = function (id) {
        var _this = this;
        this.service.getById(id).subscribe(function (resp) {
            _this.outrasCargas = resp;
            _this.carregaDadosAlterarDatas(_this.outrasCargas);
        });
    };
    OutrasCargasAlterarDatasComponent.prototype.carregaDadosAlterarDatas = function (outrasCargas) {
        this.dtTriagem = outrasCargas.dtTriagem;
        this.data.dtEntrada = outrasCargas.dtEntrada;
        this.data.dtChegada = outrasCargas.dtChegada;
        this.data.dtAutorizacao = outrasCargas.dtAutorizacao;
        this.data.dtIniOper = outrasCargas.dtIniOper;
        this.data.dtFimOper = outrasCargas.dtFimOper;
        this.data.dtSaida = outrasCargas.dtSaida;
        this.data.dtLibVeiculo = outrasCargas.dtLibVeiculo;
        this.data.nrTif = outrasCargas.nrTif;
        this.data.observ = outrasCargas.observ;
    };
    OutrasCargasAlterarDatasComponent.prototype.validaDtEntrada = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["DateTimeUtilsStaticService"].maiorA(this.data.dtEntrada, this.data.dtChegada, ['H', 'M'])) {
            this.message.warning("titles.alterarDatas", "messages.inicioDeOperacaoNaoPodeSerInferiorAdataDeAutorizacao");
            return false;
        }
        return true;
    };
    OutrasCargasAlterarDatasComponent.prototype.validaDtIniOper = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["DateTimeUtilsStaticService"].maiorA(this.data.dtIniOper, this.data.dtEntrada, ['H', 'M'])) {
            this.message.warning("titles.alterarDatas", "messages.inicioDeOperacaoNaoPodeSerInferiorAdataDeAutorizacao");
            return false;
        }
        return true;
    };
    OutrasCargasAlterarDatasComponent.prototype.validaDtFimOper = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["DateTimeUtilsStaticService"].maiorA(this.data.dtFimOper, this.data.dtIniOper, ['H', 'M'])) {
            this.message.warning("titles.alterarDatas", "messages.finalDeOperacaoNaoPodeSerInferiorAdataDeInicioDeOperacao");
            return false;
        }
        return true;
    };
    OutrasCargasAlterarDatasComponent.prototype.validaDtSaida = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["DateTimeUtilsStaticService"].maiorA(this.data.dtSaida, this.data.dtFimOper, ['H', 'M'])) {
            this.message.warning("titles.alterarDatas", "messages.saidaNaoPodeSerInferiorAdataDeFimDeOperacao");
            return false;
        }
        return true;
    };
    OutrasCargasAlterarDatasComponent.prototype.validaDtLibVeículo = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["DateTimeUtilsStaticService"].menorA(this.data.dtLibVeiculo, this.data.dtSaida, ['H', 'M'])) {
            this.message.warning("titles.alterarDatas", "messages.saidaDoTerminalNaoPodeSerInferiorAdataDeSaidaDoVeiculo");
            return false;
        }
        return true;
    };
    OutrasCargasAlterarDatasComponent.prototype.validaDeAte = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["DateTimeUtilsStaticService"].menorA(this.data.dtIniOper, this.data.dtFimOper, ['H', 'M'])) {
            this.message.warning("titles.alterarDatas", "messages.dataDEATEinvalida");
            return false;
        }
        return true;
    };
    OutrasCargasAlterarDatasComponent.prototype.validate = function () {
        return this.validaDtEntrada() && this.validaDtFimOper() && this.validaDeAte() && this.validaDtIniOper() && this.validaDtSaida() && this.validaDtLibVeículo() === true ? true : false;
    };
    OutrasCargasAlterarDatasComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("msgOCargasAlteraDatas").emit(null);
        if (form.invalid) {
            app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("msgOCargasAlteraDatas").emit(form);
            return;
        }
        // Validação da Data
        if (this.validate() === false) {
            return;
        }
        this.service.alterarDatas({
            opCargaId: this.outrasCargas.opCargaId,
            dtChegada: this.data.dtChegada,
            dtEntrada: this.data.dtEntrada,
            dtIniOper: this.data.dtIniOper,
            dtFimOper: this.data.dtFimOper,
            dtSaida: this.data.dtSaida,
            dtLibVeiculo: this.data.dtLibVeiculo,
            nrTif: this.data.nrTif,
            observ: this.data.observ,
            sisFormularioId: this.constantes.sisFormularioId,
            libRotinaTodosCampos: 9
        }).subscribe(function (validationResult) {
            if (!validationResult.isValid) {
                var mensagens = _this.message.validationResult(validationResult);
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("backError").emit(mensagens);
                _this.funcoes.backToTop();
                return;
            }
            else {
                _this.message.saveSuccess("titles.alterarDatas");
                _this.back();
            }
        });
    };
    OutrasCargasAlterarDatasComponent.prototype.back = function () {
        this.router.navigate(["pages/especificos/rocha/movimentos/balOutrasCargas"]);
    };
    OutrasCargasAlterarDatasComponent.prototype.cancelar = function () {
        this.back();
    };
    OutrasCargasAlterarDatasComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_11__["ConfiguracaoFacade"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] },
        { type: _bal_outras_cargas_service__WEBPACK_IMPORTED_MODULE_9__["BalOutrasCargasService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"] }
    ]; };
    OutrasCargasAlterarDatasComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-outras-cargas-alterar-datas",
            template: __importDefault(__webpack_require__(/*! raw-loader!./outras-cargas-alterar-datas.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/bal-outras-cargas/outras-cargas-alterar-datas/outras-cargas-alterar-datas.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"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_11__["ConfiguracaoFacade"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"],
            _bal_outras_cargas_service__WEBPACK_IMPORTED_MODULE_9__["BalOutrasCargasService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"]])
    ], OutrasCargasAlterarDatasComponent);
    return OutrasCargasAlterarDatasComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_12__["BasePermissoes"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-rocha-movimentos-bal-outras-cargas-bal-outras-cargas-module.js.map