(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-balanca-movimento-operacional-movimento-operacional-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/balanca/movimento-operacional/movimento-operacional-alterar-dados/movimento-operacional-alterar-dados.component.html":
/*!**********************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/balanca/movimento-operacional/movimento-operacional-alterar-dados/movimento-operacional-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"] = ("<div class=\"modal\" id=\"movimento-operacaional-altera-dados-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"modal-dialog\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.alterarMovimentoOperacional' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\" *ngIf=\"!!service.data\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"navio\">{{'labels.navio' | translate}}</label>\r\n                                <input id=\"navio\" name=\"navio\" disabled=\"true\" [(ngModel)]=\"descNavio\" maxlength=\"20\"\r\n                                    class=\"form-control form-control-sm col\" type=\"text\">\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"produto\">{{'labels.produto' | translate}}</label>\r\n                                <app-combo-sto-laudo-item id=\"produto\" name=\"itemLaudo\"\r\n                                    [(ngModel)]=\"service.data.itemLaudo\" disabled>\r\n                                </app-combo-sto-laudo-item>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label class=\"required\" for=\"cliente\">{{'labels.cliente' | translate}}</label>\r\n                                <app-combo-sto-laudo-cliente id=\"cliente\" name=\"subItemLaudo\"\r\n                                    [(ngModel)]=\"service.data.subItemLaudo\" required>\r\n                                </app-combo-sto-laudo-cliente>\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\" [disabled]=\"form.invalid\">{{ 'buttons.salvar' |\r\n                        translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'buttons.sair' | translate\r\n                        }}</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"movimento-operacaional-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-40\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{title}}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\" *ngIf=\"!!service.filter\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"emissaoDe\" class=\"required\">\r\n                                    {{\"labels.emissaoDe\" | translate }}\r\n                                </label>\r\n                                <app-data id=\"emissaoDe\" name=\"emissaoDe\" required=\"true\" [disabled]=\"false\"\r\n                                    [(ngModel)]=\"service.filter.dataI\">\r\n                                </app-data>\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=\"ate\" class=\"required\">\r\n                                    {{\"labels.ate\" | translate}}\r\n                                </label>\r\n                                <app-data id=\"ate\" name=\"ate\" required=\"true\" [disabled]=\"false\"\r\n                                    [(ngModel)]=\"service.filter.dataF\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-md-12 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" label=\"cliente\"\r\n                                    modalTitle=\"pesquisaDeCliente\" [(ngModel)]=\"service.filter.destinatarioIdCliente\"\r\n                                    [inSelected]=\"service.filter.cliente\" tipoDestinatario=\"C\" showCgcCpf=\"false\"\r\n                                    showInscricao=\"false\" (outModel)=\"trataCliente($event)\">\r\n                                </app-pesquisa-destinatario>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-md-12 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-material id=\"produto\" name=\"produto\" label=\"produto\"\r\n                                    modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"service.filter.materialId\"\r\n                                    [inSelected]=\"service.filter.material\" (outModel)=\"trataMaterial($event)\">\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-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"autorizacao\">{{'labels.autorizacao' | translate}}</label>\r\n                                <input id=\"autorizacao\" name=\"autorizacao\"\r\n                                    [(ngModel)]=\"service.filter.movimentoOperacionalId\"\r\n                                    class=\"form-control form-control-sm\" type=\"number\" />\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"placa\">{{'labels.placa' | translate}}</label>\r\n                                <input id=\"placa\" name=\"placa\" [(ngModel)]=\"service.filter.cadastroPlacaId\"\r\n                                    class=\"form-control form-control-sm\" type=\"text\" />\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"situacao\">{{'labels.situacao' | translate}}</label>\r\n                                <select id=\"situacao\" name=\"situacao\" [(ngModel)]=\"service.filter.situacao\"\r\n                                    class=\"form-control form-control-sm\">\r\n                                    <option [value]=\"s.id\" *ngFor=\"let s of situacoes\">{{s.descricao}}</option>\r\n                                </select>\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.pesquisar' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'buttons.sair' | translate\r\n                        }}</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/balanca/movimento-operacional/movimento-operacional-form/movimento-operacional-form.component.html":
/*!****************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/balanca/movimento-operacional/movimento-operacional-form/movimento-operacional-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\" [sisFormularioId]=\"constantes.sisFormularioId\"\n    [formAction]=\"actionForm\" [itemData]=\"service.data?.movimentoOperacionalId\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <div class=\"card\">\n            <app-form-legenda></app-form-legenda>\n            <div class=\"card-body widget-body\">\n                <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\" *ngIf=\"!!service.data\">\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                                <label for=\"codigo\">{{'labels.codigo' | translate}}</label>\n                                <input id=\"codigo\" name=\"codigo\" [(ngModel)]=\"service.data.movimentoOperacionalId\"\n                                    class=\"form-control form-control-sm\" type=\"text\" disabled>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"placaCavalo\">{{'labels.placaCavalo' | translate}}</label>\n                                <input id=\"placaCavalo\" name=\"placaCavalo\"\n                                    [(ngModel)]=\"service.data.cadastroPlacaIdCavalo\"\n                                    class=\"form-control form-control-sm\" type=\"text\" disabled>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-sm-12\">\n                            <app-pesquisa-motorista id=\"motorista\" name=\"motorista\" label=\"motorista\"\n                                modalTitle=\"pesquisaMotorista\" [(ngModel)]=\"service.data.motoristaId\" [showCpf]=\"true\"\n                                [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                [inputMotorista]=\"service.data.motorista\" required=\"true\"\n                                (outMotorista)=\"service.data.motorista = $event\">\n                            </app-pesquisa-motorista>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3 col-md-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"motoristaCnh\">{{'labels.cnh' | translate }}</label>\n                                <input id=\"motoristaCnh\" type=\"text\" name=\"motoristaCnh\"\n                                    class=\"form-control form-control-sm\" value=\"{{service.data?.motorista?.cnh}}\"\n                                    disabled>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-3 col-md-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"motoristaCnhValidade\">{{'labels.validade' | translate }}</label>\n                                <input id=\"motoristaCnhValidade\" type=\"text\" name=\"motoristaCnhValidade\"\n                                    class=\"form-control form-control-sm\"\n                                    value=\"{{service.data?.motorista?.cnhValidade | date:'dd/MM/yyyy'}}\" disabled>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\" *ngIf=\"!inclui\">\n                        <div class=\"col-lg-6 col-md-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label class=\"required\" for=\"navio\">{{'labels.navio' |\n                                    translate}}</label>\n                                <select id=\"navio\" name=\"navio\" class=\"form-control form-control-sm\"\n                                    [(ngModel)]=\"service.data.stoLaudoId\" [disabled]=\"funcoes.isDetail(actionForm)\"\n                                    data-title=\"{{ 'labels.navio' | translate }}\" [required]=\"true\"\n                                    (change)=\"trataNavio()\">\n                                    <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\n                                    <option *ngFor=\"let t of navios\" value=\"{{ t.stoLaudoId }}\">\n                                        {{ t.descricao }}\n                                    </option>\n                                </select>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\" *ngIf=\"!inclui\">\n                        <div class=\"col-lg-6 col-md-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label class=\"required\" for=\"produto\">{{'labels.produto' |\n                                    translate}}</label>\n                                <select id=\"produto\" name=\"produto\" class=\"form-control form-control-sm\"\n                                    [(ngModel)]=\"service.data.itemLaudo\" [disabled]=\"funcoes.isDetail(actionForm)\"\n                                    data-title=\"{{ 'labels.produto' | translate }}\" [required]=\"true\"\n                                    (change)=\"trataProduto()\">\n                                    <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\n                                    <option *ngFor=\"let t of produtos\" value=\"{{ t.stoLaudoItemId }}\">\n                                        {{ t.descricao }}\n                                    </option>\n                                </select>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\" *ngIf=\"!inclui\">\n                        <div class=\"col-lg-6 col-md-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label class=\"required\" for=\"cliente\">{{'labels.cliente' |\n                                    translate}}</label>\n                                <select id=\"cliente\" name=\"cliente\" class=\"form-control form-control-sm\"\n                                    [(ngModel)]=\"service.data.subItemLaudo\" [disabled]=\"funcoes.isDetail(actionForm)\"\n                                    data-title=\"{{ 'labels.cliente' | translate }}\" [required]=\"true\">\n                                    <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\n                                    <option *ngFor=\"let t of clientes\" value=\"{{ t.stoLaudoClienteId }}\">\n                                        {{ t.descricao }}\n                                    </option>\n                                </select>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\" *ngIf=\"inclui\">\n                        <div class=\"col-lg-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label class=\"required\" for=\"navio\">{{'labels.navio' | translate}}</label>\n                                <app-combo-sto-laudo id=\"navio\" name=\"navio\" required\n                                    [(ngModel)]=\"service.data.stoLaudoId\" [disabled]=\"funcoes.isDetail(actionForm)\"\n                                    (change)=\"preEditOrDetail()\" (executa)=\"service.trataLaudo($event)\"\n                                    showCliente=\"true\" [stoLaudoId]=\"stoLaudoId\">\n                                </app-combo-sto-laudo>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\" *ngIf=\"inclui\">\n                        <div class=\"col-lg-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label class=\"required\" for=\"produto\">{{'labels.produto' | translate}}</label>\n                                <app-combo-sto-laudo-item id=\"produto\" name=\"produto\"\n                                    [(ngModel)]=\"service.data.itemLaudo\" required\n                                    [disabled]=\"funcoes.isDetail(actionForm)\"\n                                    (executa)=\"service.trataItemLaudo($event)\">\n                                </app-combo-sto-laudo-item>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\" *ngIf=\"inclui\">\n                        <div class=\"col-lg-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label class=\"required\" for=\"cliente\">{{'labels.cliente' | translate}}</label>\n                                <app-combo-sto-laudo-cliente id=\"cliente\" name=\"cliente\"\n                                    [(ngModel)]=\"service.data.subItemLaudo\" required\n                                    [disabled]=\"funcoes.isDetail(actionForm)\">\n                                </app-combo-sto-laudo-cliente>\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                                <app-pesquisa-saldo-lote-deposito id=\"deposito\" name=\"deposito\" required=\"true\"\n                                    [label]=\"'deposito'\" [modalTitle]=\"'deposito'\"\n                                    [disabled]=\"funcoes.isDetail(actionForm)\" [field]=\"'tanqueId'\"\n                                    [options]=\"saldoDepositoOptions\" [(ngModel)]=\"service.data.tanqueId\">\n                                </app-pesquisa-saldo-lote-deposito>\n                            </div>\n                        </div>\n                    </div>\n                    <ng-container *ngIf=\"service.tipoMov === 'C'\">\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=\"quantid\" class=\"required\">{{'labels.quantidade' | translate}}</label>\n                                    <input id=\"quantid\" name=\"quantid\" [(ngModel)]=\"service.data.quantid\" maxlength=\"11\"\n                                        class=\"form-control form-control-sm\" type=\"text\" [disabled]=\"disabledQuantid\"\n                                        currencyMask [options]=\"funcoes.optionCurrency(0)\" (blur)=\"trataQuantid()\"\n                                        required>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"pesoCalc\">{{'labels.pesoCalculado' | translate}}</label>\n                                    <input id=\"pesoCalc\" name=\"pesoCalc\" [(ngModel)]=\"service.data.pesoCalc\"\n                                        maxlength=\"11\" class=\"form-control form-control-sm\" type=\"text\" disabled\n                                        currencyMask [options]=\"funcoes.optionCurrency(0)\">\n                                </div>\n                            </div>\n                        </div>\n                    </ng-container>\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=\"pesoTara\" class=\"required\">{{'labels.pesoTara' | translate}}</label>\n                                <app-captura-peso id=\"pesoTara\" name=\"pesoTara\" [(ngModel)]=\"service.data.pesoTara\"\n                                    [balancaId]=\"service.configs.balancaId\" (outSelected)=\"getPeso($event)\"\n                                    (outBlur)=\"getPeso($event)\" required [disabledInput]=\"disabledPesoTara\"\n                                    [disabledBtn]=\"funcoesService.isDetail(actionForm)\"\n                                    [pesagemAutomatica]=\"service.configs.pesagemAutomatica\">\n                                </app-captura-peso>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"clearfix\">&nbsp;</div>\n                    <div class=\"row\">\n                        <div class=\"col-12\">\n                            <div class=\"form-group\">\n                                <button class=\"btn btn-success mr-2\" type=\"submit\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                    {{ 'buttons.salvar' | translate }}\n                                </button>\n                            </div>\n                        </div>\n                    </div>\n                </form>\n            </div>\n        </div>\n    </div>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/balanca/movimento-operacional/movimento-operacional-index/movimento-operacional-index.component.html":
/*!******************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/balanca/movimento-operacional/movimento-operacional-index/movimento-operacional-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\"\n    [formAction]=\"actionForm\" [itemData]=\"data.movimentoOperacionalId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <table id=\"dtMovimentoOperacional\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\n</div>\n\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-movimento-operacional-print-modal (outConfirma)=\"confirmaImpressao($event)\"></app-movimento-operacional-print-modal>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-movimento-operacional-filter (filtrar)=\"executarFiltro($event)\">\n</app-movimento-operacional-filter>\n<app-movimento-operacional-veiculos (selected)=\"excecuteCreate($event)\"></app-movimento-operacional-veiculos>\n<app-movimento-operacional-alterar-dados (execute)=\"executeAlteraDados($event)\">\n</app-movimento-operacional-alterar-dados>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaLiberarVeiculo\" [sisFormularioId]=\"constantes.sisFormularioId\"\n    [itemData]=\"service.data?.movimentoOperacionalId\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <div class=\"card\">\n            <app-form-legenda></app-form-legenda>\n            <div class=\"card-body widget-body\">\n                <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\" *ngIf=\"!!service.data\">\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                                <label for=\"codigo\">{{'labels.codigo' | translate}}</label>\n                                <input id=\"codigo\" name=\"codigo\" value=\"{{service.data.movimentoOperacionalId}}\"\n                                    class=\"form-control form-control-sm\" type=\"text\" disabled>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"placaCavalo\">{{'labels.placaCavalo' | translate}}</label>\n                                <input id=\"placaCavalo\" name=\"placaCavalo\"\n                                    value=\"{{service.data.cadastroPlacaIdCavalo}}\" class=\"form-control form-control-sm\"\n                                    type=\"text\" disabled>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-sm-12\">\n                            <app-input-description label=\"motorista\" [valueID]=\"service.data.motoristaId\"\n                                [valueDoc]=\"service.data.motorista.cgcCpf\"\n                                [valueDescription]=\"service.data.motorista.nome\">\n                            </app-input-description>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3 col-md-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"motoristaCnh\">{{'labels.cnh' | translate }}</label>\n                                <input id=\"motoristaCnh\" type=\"text\" name=\"motoristaCnh\"\n                                    class=\"form-control form-control-sm\" value=\"{{service.data?.motorista?.cnh}}\"\n                                    disabled>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-3 col-md-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"motoristaCnhValidade\">{{'labels.validade' | translate }}</label>\n                                <input id=\"motoristaCnhValidade\" type=\"text\" name=\"motoristaCnhValidade\"\n                                    class=\"form-control form-control-sm\"\n                                    value=\"{{service.data?.motorista?.cnhValidade | date:'dd/MM/yyyy'}}\" disabled>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"navio\">{{'labels.navio' | translate }}</label>\n                                <input id=\"navio\" type=\"text\" name=\"navio\" class=\"form-control form-control-sm\"\n                                    value=\"{{navio}}\" disabled>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"produto\">{{'labels.produto' | translate }}</label>\n                                <input id=\"produto\" type=\"text\" name=\"produto\" class=\"form-control form-control-sm\"\n                                    value=\"{{produto}}\" disabled>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"cliente\">{{'labels.cliente' | translate }}</label>\n                                <input id=\"cliente\" type=\"text\" name=\"cliente\" class=\"form-control form-control-sm\"\n                                    value=\"{{cliente}}\" disabled>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-saldo-lote-deposito id=\"deposito\" name=\"deposito\" required=\"true\"\n                                    [label]=\"'deposito'\" [modalTitle]=\"'deposito'\" [field]=\"'tanqueId'\"\n                                    [options]=\"saldoDepositoOptions\" [(ngModel)]=\"service.data.tanqueId\">\n                                </app-pesquisa-saldo-lote-deposito>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-2 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"quantid\">{{'labels.quantidade' | translate}}</label>\n                                <input id=\"quantid\" name=\"quantid\" value=\"{{service.data.quantid}}\"\n                                    class=\"form-control form-control-sm\" type=\"text\" disabled currencyMask\n                                    [options]=\"funcoes.optionCurrency(0)\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-2 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"pesoCalc\">{{'labels.pesoCalculado' | translate}}</label>\n                                <input id=\"pesoCalc\" name=\"pesoCalc\" value=\"{{service.data.pesoCalc}}\"\n                                    class=\"form-control form-control-sm\" type=\"text\" disabled currencyMask\n                                    [options]=\"funcoes.optionCurrency(0)\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-2 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"pesoTara\">{{'labels.pesoTara' | translate}}</label>\n                                <input id=\"pesoTara\" name=\"pesoTara\" value=\"{{service.data.pesoTara}}\"\n                                    class=\"form-control form-control-sm\" type=\"text\" disabled currencyMask\n                                    [options]=\"funcoes.optionCurrency(0)\">\n                            </div>\n                        </div>\n                    </div>\n                    <hr />\n                    <div class=\"row\">\n                        <div class=\"col-lg-2 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"pesoBru\" class=\"required\">{{'labels.pesoBru' | translate}}</label>\n                                <app-captura-peso id=\"pesoBru\" name=\"pesoBru\" [(ngModel)]=\"service.data.pesoBru\"\n                                    [balancaId]=\"service.configs.balancaId\" (outSelected)=\"getPeso($event)\"\n                                    (outBlur)=\"getPeso($event)\" required [disabledInput]=\"disabledPesoBru\"\n                                    [disabledBtn]=\"false\" [pesagemAutomatica]=\"service.configs.pesagemAutomatica\">\n                                </app-captura-peso>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-2 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"pesoLiq\">{{'labels.pesoLiq' | translate}}</label>\n                                <input id=\"pesoLiq\" name=\"pesoLiq\" [(ngModel)]=\"service.data.pesoLiq\"\n                                    class=\"form-control form-control-sm\" type=\"text\" currencyMask disabled\n                                    [options]=\"funcoes.optionCurrency(0)\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"clearfix\">&nbsp;</div>\n                    <div class=\"row\">\n                        <div class=\"col-12\">\n                            <div class=\"form-group\">\n                                <button class=\"btn btn-success mr-2\" type=\"submit\" [disabled]=\"f.invalid\">\n                                    {{ 'buttons.salvar' | translate }}\n                                </button>\n                            </div>\n                        </div>\n                    </div>\n                </form>\n            </div>\n        </div>\n    </div>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/balanca/movimento-operacional/movimento-operacional-print-modal/movimento-operacional-print-modal.component.html":
/*!******************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/balanca/movimento-operacional/movimento-operacional-print-modal/movimento-operacional-print-modal.component.html ***!
  \******************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"movimento-operacaional-veiculo-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"modal-dialog modal-lg\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.selecioneVeiculoOperacional' | translate }}</h6>\r\n            </div>\r\n            <div class=\"modal-body\">\r\n                <div class=\"row\">\r\n                    <div class=\"col-sm-12\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <input type=\"text\" class=\"form-control filter-bt\"\r\n                                placeholder=\"{{ 'labels.placa' | translate }}\" [(ngModel)]=\"placa\">\r\n                            <table id=\"dtMovimentoOperacionalVeiculo\"\r\n                                class=\"table table-striped table-bordered table-hover nowrap table-sm\">\r\n                                <thead>\r\n                                    <tr>\r\n                                        <th style=\"width: 90px;\">{{ \"labels.codigo\" | translate }}</th>\r\n                                        <th style=\"width: 110px;\">{{ \"labels.placaCavalo\" | translate }}</th>\r\n                                        <th style=\"width: 110px;\">{{ \"labels.placaCarreta\" | translate }}</th>\r\n                                        <th>{{ \"labels.transportadora\" | translate }}</th>\r\n                                    </tr>\r\n                                </thead>\r\n                                <tbody>\r\n                                    <tr *ngFor=\"let val of getDados()\" (click)=\"set(val)\"\r\n                                        [ngClass]=\"{ info: val?.entradaVeiculoId === data?.entradaVeiculoId }\">\r\n                                        <td>{{val?.entradaVeiculoId}}</td>\r\n                                        <td>{{val?.cadastroPlacaIdCavalo}}</td>\r\n                                        <td>{{val?.cadastroPlacaIdCarreta2}}</td>\r\n                                        <td>{{val?.transportadora}}</td>\r\n                                    </tr>\r\n                                    <tr *ngIf=\"!veiculos || veiculos?.length === 0\">\r\n                                        <th colspan=\"4\">\r\n                                            {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                                        </th>\r\n                                    </tr>\r\n                                </tbody>\r\n                            </table>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n            <div class=\"modal-footer\">\r\n                <button class=\"btn btn-success mr-1\" (click)=\"onSubmit()\" [disabled]=\"!data\">{{ 'buttons.selecionar' |\r\n                    translate }}\r\n                </button>\r\n                <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'buttons.sair' | translate\r\n                    }}</button>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./src/app/pages/balanca/movimento-operacional/movimento-operacional-alterar-dados/movimento-operacional-alterar-dados.component.ts":
/*!******************************************************************************************************************************************!*\
  !*** ./src/app/pages/balanca/movimento-operacional/movimento-operacional-alterar-dados/movimento-operacional-alterar-dados.component.ts ***!
  \******************************************************************************************************************************************/
/*! exports provided: MovimentoOperacionalAlterarDadosComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentoOperacionalAlterarDadosComponent", function() { return MovimentoOperacionalAlterarDadosComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _movimento_operacional_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../movimento-operacional.service */ "./src/app/pages/balanca/movimento-operacional/movimento-operacional.service.ts");
/* harmony import */ var app_pages_operacao_sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/operacao/sto-laudo/sto-laudo.service */ "./src/app/pages/operacao/sto-laudo/sto-laudo.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 MovimentoOperacionalAlterarDadosComponent = /** @class */ (function () {
    function MovimentoOperacionalAlterarDadosComponent(service, message, stoLaudoService) {
        var _this = this;
        this.service = service;
        this.message = message;
        this.stoLaudoService = stoLaudoService;
        this.execute = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.sub = _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get('emitMovimentoOperacionalAlterarDados').subscribe(function (movimentoOperacionalId) {
            if (!movimentoOperacionalId)
                return;
            _this.service.getById(movimentoOperacionalId).subscribe(function (resp) {
                _this.service.data = resp;
                _this.stoLaudoService.getById(_this.service.data.stoLaudoId).subscribe(function (resp) {
                    _this.descNavio = resp["navio"].fantasia;
                });
                if (!!resp.stoLaudoId)
                    _this.service.trataLaudo({ stoLaudoId: resp.stoLaudoId });
                jQuery("#movimento-operacaional-altera-dados-dialog").modal("show");
            });
        });
    }
    MovimentoOperacionalAlterarDadosComponent.prototype.ngOnDestroy = function () {
        this.sub.unsubscribe();
    };
    MovimentoOperacionalAlterarDadosComponent.prototype.onSubmit = function (form) {
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid)
            return;
        this.execute.emit({
            movimentoOperacionalId: this.service.data.movimentoOperacionalId,
            subItemLaudo: this.service.data.subItemLaudo,
        });
        jQuery("#movimento-operacaional-altera-dados-dialog").modal("hide");
    };
    MovimentoOperacionalAlterarDadosComponent.ctorParameters = function () { return [
        { type: _movimento_operacional_service__WEBPACK_IMPORTED_MODULE_3__["MovimentoOperacionalService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: app_pages_operacao_sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_4__["StoLaudoService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MovimentoOperacionalAlterarDadosComponent.prototype, "execute", void 0);
    MovimentoOperacionalAlterarDadosComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-movimento-operacional-alterar-dados",
            template: __importDefault(__webpack_require__(/*! raw-loader!./movimento-operacional-alterar-dados.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/balanca/movimento-operacional/movimento-operacional-alterar-dados/movimento-operacional-alterar-dados.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_movimento_operacional_service__WEBPACK_IMPORTED_MODULE_3__["MovimentoOperacionalService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            app_pages_operacao_sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_4__["StoLaudoService"]])
    ], MovimentoOperacionalAlterarDadosComponent);
    return MovimentoOperacionalAlterarDadosComponent;
}());



/***/ }),

/***/ "./src/app/pages/balanca/movimento-operacional/movimento-operacional-carga.routing.module.ts":
/*!***************************************************************************************************!*\
  !*** ./src/app/pages/balanca/movimento-operacional/movimento-operacional-carga.routing.module.ts ***!
  \***************************************************************************************************/
/*! exports provided: MovimentoOperacionalCargaRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentoOperacionalCargaRoutingModule", function() { return MovimentoOperacionalCargaRoutingModule; });
/* 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 _movimento_operacional_index_movimento_operacional_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./movimento-operacional-index/movimento-operacional-index.component */ "./src/app/pages/balanca/movimento-operacional/movimento-operacional-index/movimento-operacional-index.component.ts");
/* harmony import */ var _movimento_operacional_form_movimento_operacional_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./movimento-operacional-form/movimento-operacional-form.component */ "./src/app/pages/balanca/movimento-operacional/movimento-operacional-form/movimento-operacional-form.component.ts");
/* harmony import */ var _movimento_operacional_liberar_movimento_operacional_liberar_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./movimento-operacional-liberar/movimento-operacional-liberar.component */ "./src/app/pages/balanca/movimento-operacional/movimento-operacional-liberar/movimento-operacional-liberar.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};






var MRoutes = [
    {
        path: "carga",
        component: _movimento_operacional_index_movimento_operacional_index_component__WEBPACK_IMPORTED_MODULE_3__["MovimentoOperacionalIndexComponent"],
        data: {
            breadcrumb: "MovimentoOperacionalCarga",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index, tipoMov: "C" }
        }
    },
    {
        path: "carga/create/:veiculo",
        component: _movimento_operacional_form_movimento_operacional_form_component__WEBPACK_IMPORTED_MODULE_4__["MovimentoOperacionalFormComponent"],
        data: {
            breadcrumb: "MovimentoOperacionalCarga",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create, tipoMov: "C" }
        }
    },
    {
        path: "carga/edit/:id",
        component: _movimento_operacional_form_movimento_operacional_form_component__WEBPACK_IMPORTED_MODULE_4__["MovimentoOperacionalFormComponent"],
        data: {
            breadcrumb: "MovimentoOperacionalCarga",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit, tipoMov: "C" }
        }
    },
    {
        path: "carga/detail/:id",
        component: _movimento_operacional_form_movimento_operacional_form_component__WEBPACK_IMPORTED_MODULE_4__["MovimentoOperacionalFormComponent"],
        data: {
            breadcrumb: "MovimentoOperacionalCarga",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail, tipoMov: "C" }
        }
    },
    {
        path: "carga/liberarVeiculo/:id",
        component: _movimento_operacional_liberar_movimento_operacional_liberar_component__WEBPACK_IMPORTED_MODULE_5__["MovimentoOperacionalLiberarComponent"],
        data: {
            breadcrumb: "MovimentoOperacionalCarga",
            breadcrumbSub: "liberarVeiculo",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail, tipoMov: "C" }
        }
    }
];
var MovimentoOperacionalCargaRoutingModule = /** @class */ (function () {
    function MovimentoOperacionalCargaRoutingModule() {
    }
    MovimentoOperacionalCargaRoutingModule = __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"]]
        })
    ], MovimentoOperacionalCargaRoutingModule);
    return MovimentoOperacionalCargaRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/balanca/movimento-operacional/movimento-operacional-descarga.routing.module.ts":
/*!******************************************************************************************************!*\
  !*** ./src/app/pages/balanca/movimento-operacional/movimento-operacional-descarga.routing.module.ts ***!
  \******************************************************************************************************/
/*! exports provided: MovimentoOperacionalDescargaRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentoOperacionalDescargaRoutingModule", function() { return MovimentoOperacionalDescargaRoutingModule; });
/* 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 _movimento_operacional_index_movimento_operacional_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./movimento-operacional-index/movimento-operacional-index.component */ "./src/app/pages/balanca/movimento-operacional/movimento-operacional-index/movimento-operacional-index.component.ts");
/* harmony import */ var _movimento_operacional_form_movimento_operacional_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./movimento-operacional-form/movimento-operacional-form.component */ "./src/app/pages/balanca/movimento-operacional/movimento-operacional-form/movimento-operacional-form.component.ts");
/* harmony import */ var _movimento_operacional_liberar_movimento_operacional_liberar_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./movimento-operacional-liberar/movimento-operacional-liberar.component */ "./src/app/pages/balanca/movimento-operacional/movimento-operacional-liberar/movimento-operacional-liberar.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};






var MRoutes = [
    {
        path: "descarga",
        component: _movimento_operacional_index_movimento_operacional_index_component__WEBPACK_IMPORTED_MODULE_3__["MovimentoOperacionalIndexComponent"],
        data: {
            breadcrumb: "MovimentoOperacionalDescarga",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index, tipoMov: "D" }
        }
    },
    {
        path: "descarga/create/:veiculo",
        component: _movimento_operacional_form_movimento_operacional_form_component__WEBPACK_IMPORTED_MODULE_4__["MovimentoOperacionalFormComponent"],
        data: {
            breadcrumb: "MovimentoOperacionalDescarga",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create, tipoMov: "D" }
        }
    },
    {
        path: "descarga/edit/:id",
        component: _movimento_operacional_form_movimento_operacional_form_component__WEBPACK_IMPORTED_MODULE_4__["MovimentoOperacionalFormComponent"],
        data: {
            breadcrumb: "MovimentoOperacionalDescarga",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit, tipoMov: "D" }
        }
    },
    {
        path: "descarga/detail/:id",
        component: _movimento_operacional_form_movimento_operacional_form_component__WEBPACK_IMPORTED_MODULE_4__["MovimentoOperacionalFormComponent"],
        data: {
            breadcrumb: "MovimentoOperacionalDescarga",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail, tipoMov: "D" }
        }
    },
    {
        path: "descarga/liberarVeiculo/:id",
        component: _movimento_operacional_liberar_movimento_operacional_liberar_component__WEBPACK_IMPORTED_MODULE_5__["MovimentoOperacionalLiberarComponent"],
        data: {
            breadcrumb: "MovimentoOperacionalDescarga",
            breadcrumbSub: "liberarVeiculo",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail, tipoMov: "D" }
        }
    }
];
var MovimentoOperacionalDescargaRoutingModule = /** @class */ (function () {
    function MovimentoOperacionalDescargaRoutingModule() {
    }
    MovimentoOperacionalDescargaRoutingModule = __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"]]
        })
    ], MovimentoOperacionalDescargaRoutingModule);
    return MovimentoOperacionalDescargaRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/balanca/movimento-operacional/movimento-operacional-filter/movimento-operacional-filter.component.ts":
/*!****************************************************************************************************************************!*\
  !*** ./src/app/pages/balanca/movimento-operacional/movimento-operacional-filter/movimento-operacional-filter.component.ts ***!
  \****************************************************************************************************************************/
/*! exports provided: MovimentoOperacionalFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentoOperacionalFilterComponent", function() { return MovimentoOperacionalFilterComponent; });
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _movimento_operacional_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../movimento-operacional.model */ "./src/app/pages/balanca/movimento-operacional/movimento-operacional.model.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _movimento_operacional_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./../movimento-operacional.service */ "./src/app/pages/balanca/movimento-operacional/movimento-operacional.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 MovimentoOperacionalFilterComponent = /** @class */ (function () {
    function MovimentoOperacionalFilterComponent(service, message) {
        this.service = service;
        this.message = message;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["EventEmitter"]();
    }
    MovimentoOperacionalFilterComponent.prototype.ngOnInit = function () {
        this.situacoes = _movimento_operacional_model__WEBPACK_IMPORTED_MODULE_1__["MovimentoOperacional"].getSituacoes();
        if (this.service.filter.tipoMov !== this.service.tipoMov) {
            this.service.filter = new _movimento_operacional_model__WEBPACK_IMPORTED_MODULE_1__["MovimentoOperacionalFilterVo"](this.service.tipoMov);
        }
    };
    Object.defineProperty(MovimentoOperacionalFilterComponent.prototype, "title", {
        get: function () {
            return this.message.translate("titles.movimentoOperacional", { tipoMov: this.service.tipoMovDescr });
        },
        enumerable: true,
        configurable: true
    });
    MovimentoOperacionalFilterComponent.prototype.onSubmit = function (form) {
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid)
            return;
        this.filtrar.emit(this.service.filter);
        jQuery("#movimento-operacaional-filter-dialog").modal("hide");
    };
    MovimentoOperacionalFilterComponent.prototype.trataCliente = function (cliente) {
        this.service.filter.cliente = cliente;
    };
    MovimentoOperacionalFilterComponent.prototype.trataMaterial = function (material) {
        this.service.filter.material = material;
    };
    MovimentoOperacionalFilterComponent.ctorParameters = function () { return [
        { type: _movimento_operacional_service__WEBPACK_IMPORTED_MODULE_4__["MovimentoOperacionalService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_0__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"])(),
        __metadata("design:type", Object)
    ], MovimentoOperacionalFilterComponent.prototype, "filtrar", void 0);
    MovimentoOperacionalFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"])({
            selector: "app-movimento-operacional-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./movimento-operacional-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/balanca/movimento-operacional/movimento-operacional-filter/movimento-operacional-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_movimento_operacional_service__WEBPACK_IMPORTED_MODULE_4__["MovimentoOperacionalService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_0__["MessageService"]])
    ], MovimentoOperacionalFilterComponent);
    return MovimentoOperacionalFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/balanca/movimento-operacional/movimento-operacional-form/movimento-operacional-form.component.ts":
/*!************************************************************************************************************************!*\
  !*** ./src/app/pages/balanca/movimento-operacional/movimento-operacional-form/movimento-operacional-form.component.ts ***!
  \************************************************************************************************************************/
/*! exports provided: MovimentoOperacionalFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentoOperacionalFormComponent", function() { return MovimentoOperacionalFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _movimento_operacional_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../movimento-operacional.constants */ "./src/app/pages/balanca/movimento-operacional/movimento-operacional.constants.ts");
/* harmony import */ var _movimento_operacional_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../movimento-operacional.model */ "./src/app/pages/balanca/movimento-operacional/movimento-operacional.model.ts");
/* harmony import */ var _movimento_operacional_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../movimento-operacional.service */ "./src/app/pages/balanca/movimento-operacional/movimento-operacional.service.ts");
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./../../../../pages/cadastro/material/material.service */ "./src/app/pages/cadastro/material/material.service.ts");
/* harmony import */ var _pages_cadastro_motorista_motorista_model__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./../../../../pages/cadastro/motorista/motorista.model */ "./src/app/pages/cadastro/motorista/motorista.model.ts");
/* harmony import */ var _shared_components_combos_combo_sto_laudo_combo_sto_laudo_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./../../../../shared/components/combos/combo-sto-laudo/combo-sto-laudo.component */ "./src/app/shared/components/combos/combo-sto-laudo/combo-sto-laudo.component.ts");
/* harmony import */ var _shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./../../../../shared/services/funcoes/object-utils/object-utils.static.service */ "./src/app/shared/services/funcoes/object-utils/object-utils.static.service.ts");
/* harmony import */ var _cadastro_embalagem_embalagem_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./../../../cadastro/embalagem/embalagem.service */ "./src/app/pages/cadastro/embalagem/embalagem.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _operacao_sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./../../../operacao/sto-laudo/sto-laudo.service */ "./src/app/pages/operacao/sto-laudo/sto-laudo.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 MovimentoOperacionalFormComponent = /** @class */ (function (_super) {
    __extends(MovimentoOperacionalFormComponent, _super);
    function MovimentoOperacionalFormComponent(router, activatedRoute, message, service, configuracao, permissoesUtils, funcoes, loginService, stoLaudoService, materialService, embalagemService) {
        var _this = _super.call(this, new _movimento_operacional_constants__WEBPACK_IMPORTED_MODULE_8__["MovimentoOperacionalConstants"](), funcoes) || this;
        _this.router = router;
        _this.activatedRoute = activatedRoute;
        _this.message = message;
        _this.service = service;
        _this.configuracao = configuracao;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoes = funcoes;
        _this.loginService = loginService;
        _this.stoLaudoService = stoLaudoService;
        _this.materialService = materialService;
        _this.embalagemService = embalagemService;
        _this.mensagens = [];
        _this.constantes = new _movimento_operacional_constants__WEBPACK_IMPORTED_MODULE_8__["MovimentoOperacionalConstants"]();
        _this.now = new Date();
        _this.navios = [];
        _this.produtos = [];
        _this.clientes = [];
        _this.inclui = false;
        _this.target = _this.funcoes.getTargetLocation();
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.service.configs.balancaId = _this.configuracao.number("BAL", "balancaId");
                _this.service.configs.pesagemAutomatica = _this.configuracao.boolean("BAL", "pesagemAutomatica");
                _this.service.configs.pesCargaOper = _this.configuracao.boolean("BAL", "pesCargaOper");
                _this.service.configs.balCodig = _this.configuracao.number("BAL", "balCodig");
                _this.service.configs.bl2Codig = _this.configuracao.number("BAL", "bl2Codig");
                _this.service.configs.bl3Codig = _this.configuracao.number("BAL", "bl3Codig");
            }
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
                _this.service.tipoMov = params.tipoMov;
                _this.constantes.sisFormularioId = _this.service.sisFormularioId;
            }
        });
        return _this;
    }
    MovimentoOperacionalFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            _this.veiculo = _this.activatedRoute.snapshot.paramMap.get("veiculo");
            if (id) {
                _this.service.getById(id).subscribe(function (resp) {
                    if (resp) {
                        _this.inclui = false;
                        _this.service.data = resp;
                        _this.preEditOrDetail();
                    }
                    else {
                        _this.message.warning("titles.movimentoOperacional" + _this.service.tipoMovDescr, "messages.nenhumRegistroEncontrado");
                        _this.back();
                    }
                });
            }
            else {
                _this.inclui = true;
                _this.preCreate();
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    MovimentoOperacionalFormComponent.prototype.preCreate = function () {
        if (!this.veiculo)
            this.back();
        var bveiculo = _shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["ObjectUtilsStaticService"].b64ToObj(this.veiculo);
        this.service.data = new _movimento_operacional_model__WEBPACK_IMPORTED_MODULE_9__["MovimentoOperacional"]();
        this.service.data.tipoMov = this.service.tipoMov;
        this.service.data.entradaVeiculoId = bveiculo.entradaVeiculoId;
        this.service.data.cadastroPlacaIdCavalo = bveiculo.cadastroPlacaIdCavalo;
        this.service.data.cadastroPlacaIdCarreta1 = bveiculo.cadastroPlacaIdCarreta1;
        this.service.data.cadastroPlacaIdCarreta2 = bveiculo.cadastroPlacaIdCarreta2;
        this.service.data.motorista = new _pages_cadastro_motorista_motorista_model__WEBPACK_IMPORTED_MODULE_13__["Motorista"]();
    };
    MovimentoOperacionalFormComponent.prototype.preEditOrDetail = function () {
        if (!this.funcoes.isDetail(this.actionForm)) {
            if (this.service.movimentoOperacionalJaLiberada(this.service.data.sitReg))
                this.detail();
        }
        if (!!this.service.data.stoLaudoId)
            this.carregaCombos();
    };
    MovimentoOperacionalFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.service.data.logRotina = "Manutenção Movimento Operacional";
        this.service
            .save(this.service.data, this.funcoes.isEdit(this.actionForm))
            .subscribe(function (result) {
            if (!result.validationResult.isValid) {
                _this.mensagens = _this.message.validationResult(result.validationResult);
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.message.saveSuccess("titles.movimentoOperacional" + _this.service.tipoMovDescr);
                if (create) {
                    _this.service.data = new _movimento_operacional_model__WEBPACK_IMPORTED_MODULE_9__["MovimentoOperacional"]();
                    _this.router.navigate([_this.target + "/balanca/movimentoOperacional/" + _this.service.rotaCD + "/create"]);
                }
                else {
                    _this.back();
                }
            }
        });
    };
    MovimentoOperacionalFormComponent.prototype.detail = function () {
        this.router.navigate([this.target + "/balanca/movimentoOperacional/" + this.service.rotaCD + "/detail/" + this.service.data.movimentoOperacionalId]);
    };
    MovimentoOperacionalFormComponent.prototype.edit = function () {
        this.router.navigate([this.target + "/balanca/movimentoOperacional/" + this.service.rotaCD + "/edit/" + this.service.data.movimentoOperacionalId]);
    };
    MovimentoOperacionalFormComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate([this.target + "/balanca/movimentoOperacional/" + this.service.rotaCD]);
    };
    Object.defineProperty(MovimentoOperacionalFormComponent.prototype, "isKilos", {
        get: function () {
            if (!this.service.material)
                return false;
            return this.service.material.unidade.toLocaleUpperCase() === "KG";
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MovimentoOperacionalFormComponent.prototype, "disabledQuantid", {
        get: function () {
            if (this.funcoes.isDetail(this.actionForm))
                return true;
            return this.isKilos;
        },
        enumerable: true,
        configurable: true
    });
    MovimentoOperacionalFormComponent.prototype.trataQuantid = function () {
        this.service.data.pesoCalc = _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].round(this.service.data.quantid * this.service.embalagem.capacidade, 0);
    };
    MovimentoOperacionalFormComponent.prototype.getPeso = function (resp) {
        if (_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].isNotPositive(resp.peso))
            this.service.data.pesoTara = 0;
    };
    Object.defineProperty(MovimentoOperacionalFormComponent.prototype, "disabledPesoTara", {
        get: function () {
            if (this.funcoes.isDetail(this.actionForm))
                return true;
            return this.service.configs.pesCargaOper;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MovimentoOperacionalFormComponent.prototype, "saldoDepositoOptions", {
        get: function () {
            return {
                tanqueId: this.service.data.tanqueId,
                sitLote: 'A',
                modo: 7,
                tipoSaldo: 7,
                dataMovimento: this.now,
                tipoAgrupa: 'D',
                geraArquivo: 'S'
            };
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MovimentoOperacionalFormComponent.prototype, "edicao", {
        get: function () {
            if (!this.funcoes.isDetail(this.actionForm))
                return true;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MovimentoOperacionalFormComponent.prototype, "isCriacao", {
        get: function () {
            if (this.funcoes.isCreate(this.actionForm))
                return true;
        },
        enumerable: true,
        configurable: true
    });
    MovimentoOperacionalFormComponent.prototype.carregaCombos = function () {
        return __awaiter(this, void 0, void 0, function () {
            var resp;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.stoLaudoService.getStoLaudoMovOpe({ stoLaudoId: this.service.data.stoLaudoId }).toPromise()];
                    case 1:
                        resp = _a.sent();
                        if (!!resp) {
                            this.navios = resp;
                            this.trataNavio();
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    MovimentoOperacionalFormComponent.prototype.trataNavio = function () {
        var _this = this;
        if (_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].isPositive(this.service.data.stoLaudoId)) {
            this.navio = this.navios.find(function (p) { return p.stoLaudoId === +_this.service.data.stoLaudoId; });
            if (this.navio)
                this.getStoLaudoItemProduto(this.navio);
        }
    };
    MovimentoOperacionalFormComponent.prototype.getStoLaudoItemProduto = function (navio) {
        var _this = this;
        this.produtos = navio.stoLaudoItems.filter(function (c) { return c.tipoMov === _this.service.tipoMov; });
        this.produto = navio.stoLaudoItems.find(function (c) { return c.stoLaudoItemId === _this.service.data.itemLaudo && c.tipoMov === _this.service.data.tipoMov; });
        if (this.produto) {
            this.getStoLaudoCliente(this.produto.stoLaudoClientes);
        }
    };
    MovimentoOperacionalFormComponent.prototype.trataProduto = function () {
        this.getStoLaudoCliente(this.produto.stoLaudoClientes);
    };
    MovimentoOperacionalFormComponent.prototype.getStoLaudoCliente = function (stoLaudoClientes) {
        this.clientes = stoLaudoClientes;
    };
    MovimentoOperacionalFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: _movimento_operacional_service__WEBPACK_IMPORTED_MODULE_10__["MovimentoOperacionalService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_11__["ConfiguracaoFacade"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_17__["LoginService"] },
        { type: _operacao_sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_18__["StoLaudoService"] },
        { type: _pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_12__["MaterialService"] },
        { type: _cadastro_embalagem_embalagem_service__WEBPACK_IMPORTED_MODULE_16__["EmbalagemService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_shared_components_combos_combo_sto_laudo_combo_sto_laudo_component__WEBPACK_IMPORTED_MODULE_14__["ComboStoLaudoComponent"], { static: false }),
        __metadata("design:type", _shared_components_combos_combo_sto_laudo_combo_sto_laudo_component__WEBPACK_IMPORTED_MODULE_14__["ComboStoLaudoComponent"])
    ], MovimentoOperacionalFormComponent.prototype, "comboStoLaudoComponent", void 0);
    MovimentoOperacionalFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-movimento-operacional-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./movimento-operacional-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/balanca/movimento-operacional/movimento-operacional-form/movimento-operacional-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            _movimento_operacional_service__WEBPACK_IMPORTED_MODULE_10__["MovimentoOperacionalService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_11__["ConfiguracaoFacade"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_17__["LoginService"],
            _operacao_sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_18__["StoLaudoService"],
            _pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_12__["MaterialService"],
            _cadastro_embalagem_embalagem_service__WEBPACK_IMPORTED_MODULE_16__["EmbalagemService"]])
    ], MovimentoOperacionalFormComponent);
    return MovimentoOperacionalFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/balanca/movimento-operacional/movimento-operacional-index/movimento-operacional-index.component.ts":
/*!**************************************************************************************************************************!*\
  !*** ./src/app/pages/balanca/movimento-operacional/movimento-operacional-index/movimento-operacional-index.component.ts ***!
  \**************************************************************************************************************************/
/*! exports provided: MovimentoOperacionalIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentoOperacionalIndexComponent", function() { return MovimentoOperacionalIndexComponent; });
/* 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_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _movimento_operacional_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../movimento-operacional.constants */ "./src/app/pages/balanca/movimento-operacional/movimento-operacional.constants.ts");
/* harmony import */ var _movimento_operacional_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../movimento-operacional.model */ "./src/app/pages/balanca/movimento-operacional/movimento-operacional.model.ts");
/* harmony import */ var _movimento_operacional_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../movimento-operacional.service */ "./src/app/pages/balanca/movimento-operacional/movimento-operacional.service.ts");
/* harmony import */ var _shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./../../../../shared/services/funcoes/object-utils/object-utils.static.service */ "./src/app/shared/services/funcoes/object-utils/object-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
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 MovimentoOperacionalIndexComponent = /** @class */ (function (_super) {
    __extends(MovimentoOperacionalIndexComponent, _super);
    function MovimentoOperacionalIndexComponent(router, service, datatables, permissoesUtils, message, loginService, funcoes, configuracao) {
        var _this = _super.call(this, new _movimento_operacional_constants__WEBPACK_IMPORTED_MODULE_10__["MovimentoOperacionalConstants"](), funcoes) || this;
        _this.router = router;
        _this.service = service;
        _this.datatables = datatables;
        _this.permissoesUtils = permissoesUtils;
        _this.message = message;
        _this.loginService = loginService;
        _this.funcoes = funcoes;
        _this.configuracao = configuracao;
        _this.data = new _movimento_operacional_model__WEBPACK_IMPORTED_MODULE_11__["MovimentoOperacional"]();
        _this.constantes = new _movimento_operacional_constants__WEBPACK_IMPORTED_MODULE_10__["MovimentoOperacionalConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.loadConfig = function () {
            if (!_this.configuracao.isLoadConfig())
                return;
            _this.service.configs.cWebModRelMovOpeC = _this.configuracao.lerConfig("WEB", "CWebModRelMovOpeC");
            _this.service.configs.cWebModRelMovOpeD = _this.configuracao.lerConfig("WEB", "CWebModRelMovOpeD");
            _this.service.configs.cWebModTktMovOpeC = _this.configuracao.lerConfig("WEB", "CWebModTktMovOpeC");
            _this.service.configs.cWebModTktMovOpeD = _this.configuracao.lerConfig("WEB", "CWebModTktMovOpeD");
            _this.service.configs.prefixoRelEspecifico = _this.configuracao.lerConfig("WEB", "PrefixoRelEspecifico");
        };
        _this.cancelar2Pesagem = function () {
            var resp = _this;
            if (!!resp.data.movimentoOperacionalId) {
                if (resp.service.movimentoOperacionalNaoLiberada(resp.data.sitReg))
                    return;
                resp.permissoesUtils.verificaRotina(resp.constantes.sisFormularioId, 7, function () {
                    resp.message.confirm("titles.movimentoOperacional" + resp.service.tipoMovDescr, "messages.confirmaCancelamentoLiberacao", null, function () {
                        resp.service.cancelar2Pesagem(resp.data.movimentoOperacionalId).subscribe(function () {
                            resp.message.saveSuccess("titles.movimentoOperacional" + resp.service.tipoMovDescr);
                            resp.refresh();
                        });
                    });
                });
            }
        };
        _this.alterarDados = function () {
            var resp = _this;
            if (!!resp.data.movimentoOperacionalId) {
                if (resp.service.movimentoOperacionalNaoLiberada(resp.data.sitReg))
                    return;
                resp.permissoesUtils.verificaRotina(resp.constantes.sisFormularioId, 8, function () {
                    app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get('emitMovimentoOperacionalAlterarDados').emit(resp.data.movimentoOperacionalId);
                });
            }
        };
        _this.liberarVeiculo = function () {
            var resp = _this;
            if (!!resp.data.movimentoOperacionalId) {
                if (resp.service.movimentoOperacionalJaLiberada(resp.data.sitReg))
                    return;
                if (resp.service.movimentoOperacionalDeveSerBaixadoPeloColetor(resp.data.pesoTara, resp.data.quantid))
                    return;
                resp.router.navigate([resp.target + "/balanca/movimentoOperacional/" + resp.service.rotaCD + "/liberarVeiculo/" + resp.data.movimentoOperacionalId]);
            }
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
                _this.service.tipoMov = params.tipoMov;
                _this.constantes.nomeForm = "titles.movimentoOperacional" + service.tipoMovDescr;
                _this.constantes.sisFormularioId = _this.service.sisFormularioId;
            }
        });
        _super.prototype.addFuncoes.call(_this, [
            { action: 'cancelar2Pesagem', func: function () { return _this.cancelar2Pesagem; } },
            { action: 'alterarDados', func: function () { return _this.alterarDados; } },
            { action: 'liberarVeiculo', func: function () { return _this.liberarVeiculo; } },
        ]);
        return _this;
    }
    MovimentoOperacionalIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!_this.loginService.isTokenExpired()) {
                if (_this.funcoes.abrirFiltro) {
                    _this.service.filter = new _movimento_operacional_model__WEBPACK_IMPORTED_MODULE_11__["MovimentoOperacionalFilterVo"]("");
                    _this.funcoes.openModal("movimento-operacaional-filter-dialog");
                }
                else {
                    _this.refresh();
                }
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    MovimentoOperacionalIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.get().subscribe(function (resp) {
            var columns = [
                _this.datatables.getDataString("movimentoOperacionalId", "codigo", "10%"),
                _this.datatables.getDataDateTime("dtOperInc", "data", "DD/MM/YYYY HH:mm", "10%"),
                _this.datatables.getDataString("cadastroPlacaIdCavalo", "placaCavalo", "10%"),
                _this.datatables.getDataString("navio"),
                _this.datatables.getDataString("motorista"),
                _this.datatables.getDataString("produto"),
                _this.datatables.getDataString("situacao", "situacao", "15%"),
            ];
            _this.datatables.datatable("dtMovimentoOperacional", columns, resp, function (aData) {
                _this.data = aData;
            }, 0, 'asc');
        });
    };
    MovimentoOperacionalIndexComponent.prototype.filtrar = function () {
        jQuery("#movimento-operacaional-filter-dialog").modal("show");
    };
    MovimentoOperacionalIndexComponent.prototype.executarFiltro = function (event) {
        this.service.filter = event;
        this.refresh();
    };
    MovimentoOperacionalIndexComponent.prototype.create = function () {
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 8, function () {
            app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get('emitMovimentoOperacionalVeiculos').emit();
        });
    };
    MovimentoOperacionalIndexComponent.prototype.excecuteCreate = function (veiculo) {
        if (!!veiculo.entradaVeiculoId) {
            var sveiculo = _shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["ObjectUtilsStaticService"].objToB64(veiculo);
            this.router.navigate([this.target + "/balanca/movimentoOperacional/" + this.service.rotaCD + "/create/" + sveiculo]);
        }
    };
    MovimentoOperacionalIndexComponent.prototype.edit = function () {
        if (!!this.data.movimentoOperacionalId) {
            if (this.service.movimentoOperacionalJaLiberada(this.data.sitReg))
                return;
            this.router.navigate([this.target + "/balanca/movimentoOperacional/" + this.service.rotaCD + "/edit/" + this.data.movimentoOperacionalId]);
        }
    };
    MovimentoOperacionalIndexComponent.prototype.detail = function () {
        if (!!this.data.movimentoOperacionalId) {
            this.router.navigate([this.target + "/balanca/movimentoOperacional/" + this.service.rotaCD + "/detail/" + this.data.movimentoOperacionalId]);
        }
    };
    MovimentoOperacionalIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    MovimentoOperacionalIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    MovimentoOperacionalIndexComponent.prototype.remove = function () {
        var _this = this;
        if (!!this.data.movimentoOperacionalId) {
            if (this.service.movimentoOperacionalJaLiberada(this.data.sitReg))
                return;
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                _this.message.removeConfirm(function () {
                    _this.service.remove(_this.data).subscribe(function () {
                        _this.datatables.remove("dtMovimentoOperacional");
                    });
                });
            });
        }
    };
    MovimentoOperacionalIndexComponent.prototype.executeAlteraDados = function (event) {
        var _this = this;
        if (!!this.data.movimentoOperacionalId) {
            if (this.service.movimentoOperacionalNaoLiberada(this.data.sitReg))
                return;
            this.message.confirm("titles.movimentoOperacional" + this.service.tipoMovDescr, "messages.confirmaAlteracaoDeDados", null, function () {
                _this.service.alterarDados(event).subscribe(function () {
                    _this.message.saveSuccess("titles.movimentoOperacional" + _this.service.tipoMovDescr);
                    _this.refresh();
                });
            });
        }
    };
    MovimentoOperacionalIndexComponent.prototype.print = function () {
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            jQuery("#modalPrint").modal("show");
        });
    };
    MovimentoOperacionalIndexComponent.prototype.confirmaImpressao = function (tipoImpressao) {
        switch (tipoImpressao) {
            case "autorizacao":
                this.printAutorizacao();
                break;
            case "ticket":
                this.printTicket();
                break;
            default:
                break;
        }
    };
    MovimentoOperacionalIndexComponent.prototype.printTicket = function () {
        // NAO PODE INCLUIR CHAMADAS ESPECIFICAS
        if (this.funcoesService.getValue(this.data.movimentoOperacionalId, "I") > 0) {
            if (this.data.sitReg === 'B') {
                var tipoDeCarga = this.service.tipoMov === 'C' ? 1 : 2;
                var modRel = tipoDeCarga == 1 ? this.service.configs.cWebModTktMovOpeC : this.service.configs.cWebModTktMovOpeD;
                if (!modRel) {
                    this.message.warning("titles.movimentoOperacional", "messages.modTicketNaoConfigurado");
                    return;
                }
                var titulo = this.service.tipoMov === 'C' ? 'Ticket de Carga Operacional' : 'Ticket de Descarga Operacional';
                var reportTitulo = { titulo: titulo, subTitulo: '' };
                // Valida se a chamada é para um report especifico
                if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].isNotEmpty(this.service.configs.prefixoRelEspecifico) && modRel.indexOf(this.service.configs.prefixoRelEspecifico) == 0) {
                    this.funcoesService.reportInvoc.invocaRelatorioEspecificos(modRel, reportTitulo, {
                        filialId: this.loginService.getLogin().filialId,
                        autorizacao: this.funcoesService.getValue(this.data.movimentoOperacionalId, "I"),
                        tipoDeCarga: this.funcoesService.getValue(this.service.tipoMov === 'C' ? 1 : 2, "I")
                    });
                }
                else {
                    this.funcoesService.reportInvoc.invocaRelatorio(modRel, reportTitulo, {
                        filialId: this.loginService.getLogin().filialId,
                        autorizacao: this.funcoesService.getValue(this.data.movimentoOperacionalId, "I"),
                        tipoDeCarga: this.funcoesService.getValue(this.service.tipoMov === 'C' ? 1 : 2, "I")
                    });
                }
            }
            else {
                this.message.warning("titles.movimentoOperacional" + this.service.tipoMovDescr, "messages.veiculoAguardando2Pesagem");
                this.back();
            }
        }
        else {
            this.message.warning("titles.movimentoOperacional" + this.service.tipoMovDescr, "messages.selecioneUmRegistro");
        }
    };
    MovimentoOperacionalIndexComponent.prototype.printAutorizacao = function () {
        // NAO PODE INCLUIR CHAMADAS ESPECIFICAS
        var titulo = this.service.tipoMov === 'C' ? 'Autorização de Carga Operacional' : 'Autorização de Descarga Operacional';
        var tipoDeCarga = this.service.tipoMov === 'C' ? 1 : 2;
        if (this.funcoesService.getValue(this.data.movimentoOperacionalId, "I") > 0) {
            var modRel = tipoDeCarga === 1 ? this.service.configs.cWebModRelMovOpeC : this.service.configs.cWebModRelMovOpeD;
            if (!modRel) {
                this.message.warning("titles.movimentoOperacional", "messages.modRelNaoConfigurado");
                return;
            }
            var reportTitulo = { titulo: titulo, subTitulo: '' };
            if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].isNotEmpty(this.service.configs.prefixoRelEspecifico) && modRel.indexOf(this.service.configs.prefixoRelEspecifico) == 0) {
                this.funcoesService.reportInvoc.invocaRelatorioEspecificos(modRel, reportTitulo, {
                    filialId: this.loginService.getLogin().filialId,
                    autorizacao: this.funcoesService.getValue(this.data.movimentoOperacionalId, "I"),
                    tipoDeCarga: tipoDeCarga
                });
            }
            else {
                this.funcoesService.reportInvoc.invocaRelatorio(modRel, reportTitulo, {
                    filialId: this.loginService.getLogin().filialId,
                    autorizacao: this.funcoesService.getValue(this.data.movimentoOperacionalId, "I"),
                    tipoDeCarga: tipoDeCarga
                });
            }
        }
        else {
            this.message.warning("titles.movimentoOperacional" + this.service.tipoMovDescr, "messages.selecioneUmRegistro");
        }
    };
    MovimentoOperacionalIndexComponent.prototype.back = function () {
        this.router.navigate([this.target + "/balanca/movimentoOperacional/" + this.service.rotaCD]);
    };
    MovimentoOperacionalIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _movimento_operacional_service__WEBPACK_IMPORTED_MODULE_12__["MovimentoOperacionalService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_6__["DatatablesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__["MessageService"] },
        { type: _pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_3__["ConfiguracaoFacade"] }
    ]; };
    MovimentoOperacionalIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-movimento-operacional-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./movimento-operacional-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/balanca/movimento-operacional/movimento-operacional-index/movimento-operacional-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _movimento_operacional_service__WEBPACK_IMPORTED_MODULE_12__["MovimentoOperacionalService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_6__["DatatablesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__["MessageService"],
            _pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_3__["ConfiguracaoFacade"]])
    ], MovimentoOperacionalIndexComponent);
    return MovimentoOperacionalIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/balanca/movimento-operacional/movimento-operacional-liberar/movimento-operacional-liberar.component.ts":
/*!******************************************************************************************************************************!*\
  !*** ./src/app/pages/balanca/movimento-operacional/movimento-operacional-liberar/movimento-operacional-liberar.component.ts ***!
  \******************************************************************************************************************************/
/*! exports provided: MovimentoOperacionalLiberarComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentoOperacionalLiberarComponent", function() { return MovimentoOperacionalLiberarComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _movimento_operacional_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../movimento-operacional.constants */ "./src/app/pages/balanca/movimento-operacional/movimento-operacional.constants.ts");
/* harmony import */ var _movimento_operacional_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../movimento-operacional.model */ "./src/app/pages/balanca/movimento-operacional/movimento-operacional.model.ts");
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _movimento_operacional_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../movimento-operacional.service */ "./src/app/pages/balanca/movimento-operacional/movimento-operacional.service.ts");
/* harmony import */ var _shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./../../../../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_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
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 MovimentoOperacionalLiberarComponent = /** @class */ (function (_super) {
    __extends(MovimentoOperacionalLiberarComponent, _super);
    function MovimentoOperacionalLiberarComponent(router, activatedRoute, configuracao, message, service, permissoesUtils, funcoes, loginService) {
        var _this = _super.call(this, new _movimento_operacional_constants__WEBPACK_IMPORTED_MODULE_9__["MovimentoOperacionalConstants"](), funcoes) || this;
        _this.router = router;
        _this.activatedRoute = activatedRoute;
        _this.configuracao = configuracao;
        _this.message = message;
        _this.service = service;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoes = funcoes;
        _this.loginService = loginService;
        _this.mensagens = [];
        _this.constantes = new _movimento_operacional_constants__WEBPACK_IMPORTED_MODULE_9__["MovimentoOperacionalConstants"]();
        _this.now = new Date();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.service.configs.solDuplMovOpe = _shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["BooleanUtilsStaticService"].toBoolean(_this.configuracao.lerConfig("BAL", "SolDuplMovOpe"));
                _this.service.configs.pesagemAutomatica = _this.configuracao.boolean("BAL", "pesagemAutomatica");
                _this.service.configs.pesCargaOper = _this.configuracao.boolean("BAL", "pesCargaOper");
                _this.service.configs.balCodig = _this.configuracao.number("BAL", "balCodig");
                _this.service.configs.bl2Codig = _this.configuracao.number("BAL", "bl2Codig");
                _this.service.configs.bl3Codig = _this.configuracao.number("BAL", "bl3Codig");
                _this.service.configs.cWebModTktMovOpeD = _this.configuracao.lerConfig("WEB", "CWebModTktMovOpeD");
            }
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.service.tipoMov = params.tipoMov;
                _this.constantes.sisFormularioId = _this.service.sisFormularioId;
            }
        });
        return _this;
    }
    MovimentoOperacionalLiberarComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 9, function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            if (id) {
                _this.service.getById(id).subscribe(function (resp) {
                    if (resp) {
                        _this.service.data = resp;
                        if (!!resp.stoLaudoId)
                            _this.service.trataLaudo({ stoLaudoId: resp.stoLaudoId });
                    }
                    else {
                        _this.message.warning("titles.movimentoOperacional" + _this.service.tipoMovDescr, "messages.nenhumRegistroEncontrado");
                        _this.back();
                    }
                });
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    MovimentoOperacionalLiberarComponent.prototype.onSubmit = function (form) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid)
            return;
        if (this.service.movimentoOperacionalDeveSerBaixadoPeloColetor(this.service.data.pesoTara, this.service.data.quantid))
            return;
        if (this.service.configs.solDuplMovOpe) {
            this.message.confirm("titles.movimentoOperacional" + this.service.tipoMovDescr, "messages.desejaGerarNovoPocessoDeVeiculo", null, function () { return _this.liberarVeiculo(true); }, false, function () { return _this.liberarVeiculo(false); });
        }
        else
            this.liberarVeiculo(false);
    };
    MovimentoOperacionalLiberarComponent.prototype.liberarVeiculo = function (gerarNovoProcesso) {
        var _this = this;
        this.message.confirm("titles.movimentoOperacional" + this.service.tipoMovDescr, "messages.confirmaLiberacaoDeVeiculo", null, function () {
            var liberarVeiculo = new _movimento_operacional_model__WEBPACK_IMPORTED_MODULE_10__["MovimentoOperacionalLiberaVeiculoVo"]();
            liberarVeiculo.movimentoOperacionalId = _this.service.data.movimentoOperacionalId;
            liberarVeiculo.pesoBru = _this.service.data.pesoBru;
            liberarVeiculo.pesoLiq = _this.service.data.pesoLiq;
            liberarVeiculo.tanqueId = _this.service.data.tanqueId;
            liberarVeiculo.dtOperLib = _this.now;
            liberarVeiculo.gerarNovoProcesso = gerarNovoProcesso;
            _this.service.liberarVeiculo(liberarVeiculo).subscribe(function (result) {
                if (!result.isValid) {
                    var mensagens = _this.message.validationResult(result);
                    mensagens.forEach(function (m) { return _this.message.warning("titles.movimentoOperacional" + _this.service.tipoMovDescr, m); });
                    return;
                }
                else {
                    _this.message.saveSuccess("titles.movimentoOperacional" + _this.service.tipoMovDescr);
                    _this.printTicket();
                }
            });
        });
    };
    MovimentoOperacionalLiberarComponent.prototype.back = function () {
        this.router.navigate([this.target + "/balanca/movimentoOperacional/" + this.service.rotaCD]);
    };
    Object.defineProperty(MovimentoOperacionalLiberarComponent.prototype, "navio", {
        get: function () {
            if (!this.service.data.stoLaudo)
                return;
            return this.service.data.stoLaudo.descricao;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MovimentoOperacionalLiberarComponent.prototype, "produto", {
        get: function () {
            var _this = this;
            if (!this.service.data.stoLaudo)
                return;
            var item = this.service.data.stoLaudo.stoLaudoItems.find(function (c) { return c.stoLaudoItemId === _this.service.data.itemLaudo; });
            return item.descricao;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MovimentoOperacionalLiberarComponent.prototype, "cliente", {
        get: function () {
            var _this = this;
            if (!this.service.data.stoLaudo)
                return;
            var item = this.service.data.stoLaudo.stoLaudoItems.find(function (c) { return c.stoLaudoItemId === _this.service.data.itemLaudo; });
            var subItem = item.stoLaudoClientes.find(function (c) { return c.stoLaudoItemId === _this.service.data.itemLaudo; });
            return subItem.descricao;
        },
        enumerable: true,
        configurable: true
    });
    MovimentoOperacionalLiberarComponent.prototype.getPeso = function (resp) {
        if (_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].isNotPositive(resp.peso))
            this.service.data.pesoBru = 0;
        if (this.service.data.pesoTara > this.service.data.pesoBru) {
            this.service.data.pesoBru = 0;
            this.service.data.pesoLiq = 0;
            this.message.warning("titles.movimentoOperacional", "messages.pesoBruDeveSerMaiorPesoTara");
        }
        else
            this.service.data.pesoLiq = this.service.data.pesoBru - this.service.data.pesoTara;
    };
    Object.defineProperty(MovimentoOperacionalLiberarComponent.prototype, "disabledPesoBru", {
        get: function () {
            return this.service.configs.pesCargaOper;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MovimentoOperacionalLiberarComponent.prototype, "saldoDepositoOptions", {
        get: function () {
            return {
                tanqueId: this.service.data.tanqueId,
                sitLote: 'A',
                modo: 7,
                tipoSaldo: 7,
                dataMovimento: this.now,
                tipoAgrupa: 'D',
                geraArquivo: 'S'
            };
        },
        enumerable: true,
        configurable: true
    });
    MovimentoOperacionalLiberarComponent.prototype.printTicket = function () {
        // NAO PODE INCLUIR CHAMADAS ESPECIFICAS
        if (this.funcoesService.getValue(this.service.data.movimentoOperacionalId, "I") > 0) {
            var tipoDeCarga = this.service.tipoMov === 'C' ? 1 : 2;
            var modRel = tipoDeCarga == 1 ? this.service.configs.cWebModTktMovOpeC : this.service.configs.cWebModTktMovOpeD;
            if (!modRel) {
                this.message.warning("titles.movimentoOperacional", "messages.modTicketNaoConfigurado");
                return;
            }
            var titulo = this.service.tipoMov === 'C' ? 'Ticket de Carga Operacional' : 'Ticket de Descarga Operacional';
            var reportTitulo = { titulo: titulo, subTitulo: '' };
            // Valida se a chamada é para um report especifico
            if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].isNotEmpty(this.service.configs.prefixoRelEspecifico) && modRel.indexOf(this.service.configs.prefixoRelEspecifico) == 0) {
                this.funcoesService.reportInvoc.invocaRelatorioEspecificos(modRel, reportTitulo, {
                    filialId: this.loginService.getLogin().filialId,
                    autorizacao: this.funcoesService.getValue(this.service.data.movimentoOperacionalId, "I"),
                    tipoDeCarga: this.funcoesService.getValue(this.service.tipoMov === 'C' ? 1 : 2, "I")
                });
                this.back();
            }
            else {
                this.funcoesService.reportInvoc.invocaRelatorio(modRel, reportTitulo, {
                    filialId: this.loginService.getLogin().filialId,
                    autorizacao: this.funcoesService.getValue(this.service.data.movimentoOperacionalId, "I"),
                    tipoDeCarga: this.funcoesService.getValue(this.service.tipoMov === 'C' ? 1 : 2, "I")
                });
                this.back();
            }
        }
        else {
            this.message.warning("titles.movimentoOperacional" + this.service.tipoMovDescr, "messages.selecioneUmRegistro");
            this.back();
        }
    };
    MovimentoOperacionalLiberarComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_11__["ConfiguracaoFacade"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: _movimento_operacional_service__WEBPACK_IMPORTED_MODULE_12__["MovimentoOperacionalService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"] }
    ]; };
    MovimentoOperacionalLiberarComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-movimento-operacional-liberar",
            template: __importDefault(__webpack_require__(/*! raw-loader!./movimento-operacional-liberar.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/balanca/movimento-operacional/movimento-operacional-liberar/movimento-operacional-liberar.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_11__["ConfiguracaoFacade"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            _movimento_operacional_service__WEBPACK_IMPORTED_MODULE_12__["MovimentoOperacionalService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"]])
    ], MovimentoOperacionalLiberarComponent);
    return MovimentoOperacionalLiberarComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/balanca/movimento-operacional/movimento-operacional-print-modal/movimento-operacional-print-modal.component.ts":
/*!**************************************************************************************************************************************!*\
  !*** ./src/app/pages/balanca/movimento-operacional/movimento-operacional-print-modal/movimento-operacional-print-modal.component.ts ***!
  \**************************************************************************************************************************************/
/*! exports provided: MovimentoOperacionalPrintModalComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentoOperacionalPrintModalComponent", function() { return MovimentoOperacionalPrintModalComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _movimento_operacional_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../movimento-operacional.service */ "./src/app/pages/balanca/movimento-operacional/movimento-operacional.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 MovimentoOperacionalPrintModalComponent = /** @class */ (function () {
    function MovimentoOperacionalPrintModalComponent(router, funcoes, service) {
        this.router = router;
        this.funcoes = funcoes;
        this.service = service;
        this.outConfirma = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    MovimentoOperacionalPrintModalComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(_this.router, event);
            if (params) {
                _this.service.tipoMov = params.tipoMov;
            }
        });
        this.tipoSelecionado = "";
        this.initListaTiposImpressao();
    };
    MovimentoOperacionalPrintModalComponent.prototype.initListaTiposImpressao = function () {
        this.tiposImpressao = [
            { value: "autorizacao", label: "labels.autorizacao" },
            { value: "ticket", label: "labels.ticket" }
        ];
    };
    MovimentoOperacionalPrintModalComponent.prototype.onSubmit = function (form) {
        if (form.invalid) {
            app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.outConfirma.emit(this.tipoSelecionado);
        this.tipoSelecionado = "";
        jQuery("#modalPrint").modal("hide");
    };
    MovimentoOperacionalPrintModalComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: _movimento_operacional_service__WEBPACK_IMPORTED_MODULE_4__["MovimentoOperacionalService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MovimentoOperacionalPrintModalComponent.prototype, "outConfirma", void 0);
    MovimentoOperacionalPrintModalComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-movimento-operacional-print-modal",
            template: __importDefault(__webpack_require__(/*! raw-loader!./movimento-operacional-print-modal.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/balanca/movimento-operacional/movimento-operacional-print-modal/movimento-operacional-print-modal.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _movimento_operacional_service__WEBPACK_IMPORTED_MODULE_4__["MovimentoOperacionalService"]])
    ], MovimentoOperacionalPrintModalComponent);
    return MovimentoOperacionalPrintModalComponent;
}());



/***/ }),

/***/ "./src/app/pages/balanca/movimento-operacional/movimento-operacional-veiculos/movimento-operacional-veiculos.component.ts":
/*!********************************************************************************************************************************!*\
  !*** ./src/app/pages/balanca/movimento-operacional/movimento-operacional-veiculos/movimento-operacional-veiculos.component.ts ***!
  \********************************************************************************************************************************/
/*! exports provided: MovimentoOperacionalVeiculosComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentoOperacionalVeiculosComponent", function() { return MovimentoOperacionalVeiculosComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _movimento_operacional_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../movimento-operacional.service */ "./src/app/pages/balanca/movimento-operacional/movimento-operacional.service.ts");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
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 MovimentoOperacionalVeiculosComponent = /** @class */ (function () {
    function MovimentoOperacionalVeiculosComponent(service, datatables, message) {
        var _this = this;
        this.service = service;
        this.datatables = datatables;
        this.message = message;
        this.selected = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.sub = app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get('emitMovimentoOperacionalVeiculos').subscribe(function (_) {
            _this.service.veiculosOperacionaisEmAberto().subscribe(function (resp) {
                _this.veiculos = resp;
                jQuery("#movimento-operacaional-veiculo-dialog").modal("show");
            });
        });
    }
    MovimentoOperacionalVeiculosComponent.prototype.ngOnDestroy = function () {
        this.sub.unsubscribe();
    };
    MovimentoOperacionalVeiculosComponent.prototype.getDados = function () {
        if (!this.veiculos || (this.veiculos.length === 0) || (!this.placa)) {
            return this.veiculos;
        }
        var filter = this.placa.toLocaleLowerCase();
        return this.veiculos.filter(function (v) {
            return (!!v.cadastroPlacaIdCavalo ? v.cadastroPlacaIdCavalo : "").toLocaleLowerCase().indexOf(filter) !== -1 ||
                (!!v.cadastroPlacaIdCarreta1 ? v.cadastroPlacaIdCavalo : "").toLocaleLowerCase().indexOf(filter) !== -1;
        });
    };
    MovimentoOperacionalVeiculosComponent.prototype.set = function (veiculo) {
        this.data = veiculo;
    };
    MovimentoOperacionalVeiculosComponent.prototype.onSubmit = function () {
        jQuery("#movimento-operacaional-veiculo-dialog").modal("hide");
        this.selected.emit(this.data);
    };
    MovimentoOperacionalVeiculosComponent.ctorParameters = function () { return [
        { type: _movimento_operacional_service__WEBPACK_IMPORTED_MODULE_3__["MovimentoOperacionalService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MovimentoOperacionalVeiculosComponent.prototype, "selected", void 0);
    MovimentoOperacionalVeiculosComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-movimento-operacional-veiculos",
            template: __importDefault(__webpack_require__(/*! raw-loader!./movimento-operacional-veiculos.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/balanca/movimento-operacional/movimento-operacional-veiculos/movimento-operacional-veiculos.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_movimento_operacional_service__WEBPACK_IMPORTED_MODULE_3__["MovimentoOperacionalService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"]])
    ], MovimentoOperacionalVeiculosComponent);
    return MovimentoOperacionalVeiculosComponent;
}());



/***/ }),

/***/ "./src/app/pages/balanca/movimento-operacional/movimento-operacional.constants.ts":
/*!****************************************************************************************!*\
  !*** ./src/app/pages/balanca/movimento-operacional/movimento-operacional.constants.ts ***!
  \****************************************************************************************/
/*! exports provided: MovimentoOperacionalConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentoOperacionalConstants", function() { return MovimentoOperacionalConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var MovimentoOperacionalConstants = /** @class */ (function () {
    function MovimentoOperacionalConstants() {
        this.sisFormularioId = 95152;
        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.cancelar2Pesagem" },
            { sisFormularioId: this.sisFormularioId, libRotina: 8, acao: "labels.alterarDados" },
            { sisFormularioId: this.sisFormularioId, libRotina: 9, acao: "labels.liberarVeiculo" },
            { sisFormularioId: this.sisFormularioId, libRotina: 10, acao: "labels.permissoes" },
        ];
        this.sisSistemaId = "BAL";
        this.nomeForm = "titles.movimentoOperacional";
        this.reportId = "";
        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: 'Cancelar2Pesagem', action: 'cancelar2Pesagem', icon: "fa fa-ban", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'AlterarDados', action: 'alterarDados', icon: "icon-server", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'LiberarVeiculo', action: 'liberarVeiculo', icon: "fa fa-unlock", 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.listaLiberarVeiculo = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.listaParam = [
            { 'sistema': 'BAL', 'parametros': ['SolDuplMovOpe', 'PesCargaOper', 'PesagemAutomatica', 'BalCodig', 'Bl2Codig', 'Bl3Codig'] },
            {
                'sistema': 'WEB', 'parametros': [
                    "PrefixoRelEspecifico",
                    "CWebModRelMovOpeC",
                    "CWebModRelMovOpeD",
                    "CWebModTktMovOpeC",
                    "CWebModTktMovOpeD"
                ]
            }
        ];
    }
    return MovimentoOperacionalConstants;
}());



/***/ }),

/***/ "./src/app/pages/balanca/movimento-operacional/movimento-operacional.model.ts":
/*!************************************************************************************!*\
  !*** ./src/app/pages/balanca/movimento-operacional/movimento-operacional.model.ts ***!
  \************************************************************************************/
/*! exports provided: MovimentoOperacional, MovimentoOperacionalFilterVo, MovimentoOperacionalDto, VeiculoOperacionalEmAbertoDto, MovimentoOperacionalAlteraDadosVo, MovimentoOperacionalLiberaVeiculoVo */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentoOperacional", function() { return MovimentoOperacional; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentoOperacionalFilterVo", function() { return MovimentoOperacionalFilterVo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentoOperacionalDto", function() { return MovimentoOperacionalDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VeiculoOperacionalEmAbertoDto", function() { return VeiculoOperacionalEmAbertoDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentoOperacionalAlteraDadosVo", function() { return MovimentoOperacionalAlteraDadosVo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentoOperacionalLiberaVeiculoVo", function() { return MovimentoOperacionalLiberaVeiculoVo; });
/* harmony import */ var _shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../../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 _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../shared/services/base/base.model */ "./src/app/shared/services/base/base.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};


var MovimentoOperacional = /** @class */ (function (_super) {
    __extends(MovimentoOperacional, _super);
    function MovimentoOperacional() {
        var _this = _super.call(this) || this;
        _this.ternoId = '';
        return _this;
    }
    MovimentoOperacional.getSituacoes = function (id) {
        if (id === void 0) { id = ""; }
        var lista = [
            { id: "A", descricao: "Aguardando 2ª Pesagem" },
            { id: "B", descricao: "Aguardando Saída" },
            { id: "", descricao: "Todos" }
        ];
        if (id !== "") {
            return lista.find(function (x) { return x.id === id; }).descricao;
        }
        else {
            return lista;
        }
    };
    return MovimentoOperacional;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_1__["BaseModel"]));

var MovimentoOperacionalFilterVo = /** @class */ (function () {
    function MovimentoOperacionalFilterVo(tipoMov) {
        this.dataI = _shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].addDays(new Date(), -30);
        this.dataF = new Date();
        this.tipoMov = tipoMov;
        this.destinatarioIdCliente = 0;
        this.materialId = "";
        this.movimentoOperacionalId = 0;
        this.cadastroPlacaId = "";
        this.situacao = "";
    }
    return MovimentoOperacionalFilterVo;
}());

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

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

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

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



/***/ }),

/***/ "./src/app/pages/balanca/movimento-operacional/movimento-operacional.module.ts":
/*!*************************************************************************************!*\
  !*** ./src/app/pages/balanca/movimento-operacional/movimento-operacional.module.ts ***!
  \*************************************************************************************/
/*! exports provided: MovimentoOperacionalModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentoOperacionalModule", function() { return MovimentoOperacionalModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _movimento_operacional_alterar_dados_movimento_operacional_alterar_dados_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./movimento-operacional-alterar-dados/movimento-operacional-alterar-dados.component */ "./src/app/pages/balanca/movimento-operacional/movimento-operacional-alterar-dados/movimento-operacional-alterar-dados.component.ts");
/* harmony import */ var _movimento_operacional_carga_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./movimento-operacional-carga.routing.module */ "./src/app/pages/balanca/movimento-operacional/movimento-operacional-carga.routing.module.ts");
/* harmony import */ var _movimento_operacional_descarga_routing_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./movimento-operacional-descarga.routing.module */ "./src/app/pages/balanca/movimento-operacional/movimento-operacional-descarga.routing.module.ts");
/* harmony import */ var _movimento_operacional_filter_movimento_operacional_filter_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./movimento-operacional-filter/movimento-operacional-filter.component */ "./src/app/pages/balanca/movimento-operacional/movimento-operacional-filter/movimento-operacional-filter.component.ts");
/* harmony import */ var _movimento_operacional_form_movimento_operacional_form_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./movimento-operacional-form/movimento-operacional-form.component */ "./src/app/pages/balanca/movimento-operacional/movimento-operacional-form/movimento-operacional-form.component.ts");
/* harmony import */ var _movimento_operacional_index_movimento_operacional_index_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./movimento-operacional-index/movimento-operacional-index.component */ "./src/app/pages/balanca/movimento-operacional/movimento-operacional-index/movimento-operacional-index.component.ts");
/* harmony import */ var _movimento_operacional_liberar_movimento_operacional_liberar_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./movimento-operacional-liberar/movimento-operacional-liberar.component */ "./src/app/pages/balanca/movimento-operacional/movimento-operacional-liberar/movimento-operacional-liberar.component.ts");
/* harmony import */ var _movimento_operacional_print_modal_movimento_operacional_print_modal_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./movimento-operacional-print-modal/movimento-operacional-print-modal.component */ "./src/app/pages/balanca/movimento-operacional/movimento-operacional-print-modal/movimento-operacional-print-modal.component.ts");
/* harmony import */ var _movimento_operacional_veiculos_movimento_operacional_veiculos_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./movimento-operacional-veiculos/movimento-operacional-veiculos.component */ "./src/app/pages/balanca/movimento-operacional/movimento-operacional-veiculos/movimento-operacional-veiculos.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};











var MovimentoOperacionalModule = /** @class */ (function () {
    function MovimentoOperacionalModule() {
    }
    MovimentoOperacionalModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _movimento_operacional_carga_routing_module__WEBPACK_IMPORTED_MODULE_3__["MovimentoOperacionalCargaRoutingModule"], _movimento_operacional_descarga_routing_module__WEBPACK_IMPORTED_MODULE_4__["MovimentoOperacionalDescargaRoutingModule"]],
            declarations: [
                _movimento_operacional_index_movimento_operacional_index_component__WEBPACK_IMPORTED_MODULE_7__["MovimentoOperacionalIndexComponent"],
                _movimento_operacional_form_movimento_operacional_form_component__WEBPACK_IMPORTED_MODULE_6__["MovimentoOperacionalFormComponent"],
                _movimento_operacional_filter_movimento_operacional_filter_component__WEBPACK_IMPORTED_MODULE_5__["MovimentoOperacionalFilterComponent"],
                _movimento_operacional_veiculos_movimento_operacional_veiculos_component__WEBPACK_IMPORTED_MODULE_10__["MovimentoOperacionalVeiculosComponent"],
                _movimento_operacional_alterar_dados_movimento_operacional_alterar_dados_component__WEBPACK_IMPORTED_MODULE_2__["MovimentoOperacionalAlterarDadosComponent"],
                _movimento_operacional_liberar_movimento_operacional_liberar_component__WEBPACK_IMPORTED_MODULE_8__["MovimentoOperacionalLiberarComponent"],
                _movimento_operacional_print_modal_movimento_operacional_print_modal_component__WEBPACK_IMPORTED_MODULE_9__["MovimentoOperacionalPrintModalComponent"]
            ]
        })
    ], MovimentoOperacionalModule);
    return MovimentoOperacionalModule;
}());



/***/ }),

/***/ "./src/app/pages/balanca/movimento-operacional/movimento-operacional.service.ts":
/*!**************************************************************************************!*\
  !*** ./src/app/pages/balanca/movimento-operacional/movimento-operacional.service.ts ***!
  \**************************************************************************************/
/*! exports provided: MovimentoOperacionalService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentoOperacionalService", function() { return MovimentoOperacionalService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var _pages_cadastro_embalagem_embalagem_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../pages/cadastro/embalagem/embalagem.service */ "./src/app/pages/cadastro/embalagem/embalagem.service.ts");
/* harmony import */ var _pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../pages/cadastro/material/material.service */ "./src/app/pages/cadastro/material/material.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./../../../shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _operacao_sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./../../operacao/sto-laudo/sto-laudo.service */ "./src/app/pages/operacao/sto-laudo/sto-laudo.service.ts");
/* harmony import */ var _movimento_operacional_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./movimento-operacional.model */ "./src/app/pages/balanca/movimento-operacional/movimento-operacional.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 __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 MovimentoOperacionalService = /** @class */ (function () {
    function MovimentoOperacionalService(http, message, stoLaudoService, materialService, embalagemService) {
        this.http = http;
        this.message = message;
        this.stoLaudoService = stoLaudoService;
        this.materialService = materialService;
        this.embalagemService = embalagemService;
        this.filter = new _movimento_operacional_model__WEBPACK_IMPORTED_MODULE_11__["MovimentoOperacionalFilterVo"]("");
        this.configs = {
            balancaId: 0,
            pesagemAutomatica: false,
            solDuplMovOpe: false,
            pesCargaOper: false,
            balCodig: 0,
            bl2Codig: 0,
            bl3Codig: 0,
            cWebModRelMovOpeC: "",
            cWebModRelMovOpeD: "",
            cWebModTktMovOpeC: "",
            cWebModTktMovOpeD: "",
            prefixoRelEspecifico: ""
        };
    }
    Object.defineProperty(MovimentoOperacionalService.prototype, "tipoMovDescr", {
        get: function () {
            return this.tipoMov === 'C' ? "Carga" : "Descarga";
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MovimentoOperacionalService.prototype, "sisFormularioId", {
        get: function () {
            return this.tipoMov === 'C' ? 95152 : 95151;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MovimentoOperacionalService.prototype, "rotaCD", {
        get: function () {
            return this.tipoMovDescr.toLowerCase();
        },
        enumerable: true,
        configurable: true
    });
    MovimentoOperacionalService.prototype.movimentoOperacionalJaLiberada = function (sitReg) {
        var result = sitReg === "B";
        if (result)
            this.message.warning("titles.movimentoOperacional" + this.tipoMovDescr, "messages.movimentoOperacionalJaLiberada", { tipoMov: this.tipoMovDescr });
        return result;
    };
    MovimentoOperacionalService.prototype.movimentoOperacionalNaoLiberada = function (sitReg) {
        var result = sitReg !== "B";
        if (result)
            this.message.warning("titles.movimentoOperacional" + this.tipoMovDescr, "messages.movimentoOperacionalNaoLiberada", { tipoMov: this.tipoMovDescr });
        return result;
    };
    MovimentoOperacionalService.prototype.movimentoOperacionalDeveSerBaixadoPeloColetor = function (pesoTara, quantid) {
        var result = (pesoTara === 0) && (quantid > 0);
        if (result)
            this.message.warning("titles.movimentoOperacional" + this.tipoMovDescr, "messages.movimentoOperacionalDeveSerBaixadoPeloColetor", { tipoMov: this.tipoMovDescr });
        return result;
    };
    MovimentoOperacionalService.prototype.trataLaudo = function (stoLaudo) {
        var self = this;
        self.stoLaudoService.getById(stoLaudo.stoLaudoId).subscribe(function (resp) {
            self.data.stoLaudo = resp;
            if (_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["ArrayUtilsStaticService"].any(resp.stoLaudoItems))
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__["EventEmitterService"].get("comboSetStoLaudoItens").emit(resp.stoLaudoItems.filter(function (c) { return c.tipoMov === self.data.tipoMov; }));
            var item = resp.stoLaudoItems.find(function (c) { return c.stoLaudoItemId === self.data.itemLaudo && c.tipoMov === self.data.tipoMov; });
            self.trataItemLaudo(item);
        });
    };
    MovimentoOperacionalService.prototype.trataItemLaudo = function (stoLaudoItem) {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (!stoLaudoItem)
                            return [2 /*return*/];
                        return [4 /*yield*/, this.trataMaterial(stoLaudoItem)];
                    case 1:
                        _a.sent();
                        if (_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["ArrayUtilsStaticService"].any(stoLaudoItem.stoLaudoClientes))
                            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__["EventEmitterService"].get("comboSetStoLaudoClientes").emit(stoLaudoItem.stoLaudoClientes);
                        return [2 /*return*/];
                }
            });
        });
    };
    MovimentoOperacionalService.prototype.trataMaterial = function (stoLaudoItem) {
        return __awaiter(this, void 0, void 0, function () {
            var _a, _b;
            return __generator(this, function (_c) {
                switch (_c.label) {
                    case 0:
                        _a = this;
                        return [4 /*yield*/, this.materialService.getById(stoLaudoItem.materialId).toPromise()];
                    case 1:
                        _a.material = _c.sent();
                        if (!!!this.material) return [3 /*break*/, 3];
                        _b = this;
                        return [4 /*yield*/, this.embalagemService.getById(this.material.embalagem).toPromise()];
                    case 2:
                        _b.embalagem = _c.sent();
                        _c.label = 3;
                    case 3: return [2 /*return*/];
                }
            });
        });
    };
    MovimentoOperacionalService.prototype.getById = function (id) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/balanca/movimentoOperacional" + this.tipoMovDescr + "/" + id)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MovimentoOperacionalService.prototype.remove = function (data) {
        return this.http
            .put(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/balanca/movimentoOperacional" + this.tipoMovDescr + "/remove", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MovimentoOperacionalService.prototype.get = function () {
        this.filter.tipoMov = this.tipoMov;
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/balanca/movimentoOperacional" + this.tipoMovDescr + "/filter", this.filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MovimentoOperacionalService.prototype.save = function (data, edit) {
        if (edit) {
            return this.http
                .put(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/balanca/movimentoOperacional" + this.tipoMovDescr, data)
                .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
        }
        else {
            return this.http
                .post(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/balanca/movimentoOperacional" + this.tipoMovDescr, data)
                .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
        }
    };
    MovimentoOperacionalService.prototype.veiculosOperacionaisEmAberto = function () {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/balanca/movimentoOperacional" + this.tipoMovDescr + "/veiculosOperacionaisEmAberto")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MovimentoOperacionalService.prototype.cancelar2Pesagem = function (movimentoOperacionalId) {
        return this.http
            .put(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/balanca/movimentoOperacional" + this.tipoMovDescr + "/cancelar2Pesagem", { movimentoOperacionalId: movimentoOperacionalId })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MovimentoOperacionalService.prototype.alterarDados = function (movimentoOperacionalAlteraDados) {
        return this.http
            .put(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/balanca/movimentoOperacional" + this.tipoMovDescr + "/alterarDados", movimentoOperacionalAlteraDados)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MovimentoOperacionalService.prototype.liberarVeiculo = function (liberarVeiculo) {
        return this.http
            .put(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/balanca/movimentoOperacional" + this.tipoMovDescr + "/liberarVeiculo", liberarVeiculo)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MovimentoOperacionalService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__["MessageService"] },
        { type: _operacao_sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_10__["StoLaudoService"] },
        { type: _pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_6__["MaterialService"] },
        { type: _pages_cadastro_embalagem_embalagem_service__WEBPACK_IMPORTED_MODULE_5__["EmbalagemService"] }
    ]; };
    MovimentoOperacionalService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__["MessageService"],
            _operacao_sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_10__["StoLaudoService"],
            _pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_6__["MaterialService"],
            _pages_cadastro_embalagem_embalagem_service__WEBPACK_IMPORTED_MODULE_5__["EmbalagemService"]])
    ], MovimentoOperacionalService);
    return MovimentoOperacionalService;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmbalagemService", function() { return EmbalagemService; });
/* 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 _shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};



var EmbalagemService = /** @class */ (function (_super) {
    __extends(EmbalagemService, _super);
    function EmbalagemService(http) {
        var _this = _super.call(this, http, "cadastros/embalagem") || this;
        _this.http = http;
        return _this;
    }
    EmbalagemService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    EmbalagemService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], EmbalagemService);
    return EmbalagemService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__["BaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-balanca-movimento-operacional-movimento-operacional-module.js.map