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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-antecipacao/operacao-dutoviario-antecipacao-novo/operacao-dutoviario-antecipacao-novo.component.html":
/*!*******************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-antecipacao/operacao-dutoviario-antecipacao-novo/operacao-dutoviario-antecipacao-novo.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=\"operacao-dutoviario-antecipacao-novo\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"modal-dialog\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">\n                    {{ 'titles.operacaoDutoviario' | translate }} ( {{ 'titles.antecipacao' | translate }} )\n                </h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\">\n                <app-validacoes class=\"us-validacoes\"></app-validacoes>\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"cliente\" class=\"required\">{{ \"labels.cliente\" | translate }}</label>\n                                <select class=\"form-control form-control-sm\" id=\"cliente\" name=\"cliente\"\n                                    [(ngModel)]=\"dataEdit.item\" required (change)=\"selectedCliente($event)\"\n                                    [disabled]=\"isEditItem\">\n                                    <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                                    <option *ngFor=\"let item of dadosEdit.clientes\" value=\"{{ item.item }}\"\n                                        (click)=\"dataEdit.oCliente = item\">\n                                        {{ item.fantasia }}\n                                    </option>\n                                </select>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"deposito\" class=\"required\">{{ \"labels.deposito\" | translate }}</label>\n                                <select class=\"form-control form-control-sm\" id=\"deposito\" name=\"deposito\"\n                                    [(ngModel)]=\"dataEdit.deposito\" required (change)=\"selectedDeposito($event)\"\n                                    [disabled]=\"isEditItem\">\n                                    <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                                    <option *ngFor=\"let item of this.dadosEdit.depositos\" value=\"{{ item.deposito }}\">{{\n                                        item.deposito }}\n                                    </option>\n                                </select>\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=\"kilos\" class=\"required\">{{ \"labels.kilos\" | translate }}</label>\n                                <input id=\"kilos\" name=\"kilos\" [(ngModel)]=\"dataEdit.kilos\" currencyMask\n                                    [options]=\"funcoes.optionCurrency(0)\" class=\"form-control form-control-sm\"\n                                    type=\"text\" (blur)=\"trataKilos()\" [disabled]=\"disabledKilosLitros\" required>\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=\"litros\">{{ \"labels.litros\" | translate }}</label>\n                                <input id=\"litros\" name=\"litros\" [(ngModel)]=\"dataEdit.litros\" currencyMask\n                                    [options]=\"funcoes.optionCurrency(0)\" class=\"form-control form-control-sm\"\n                                    type=\"text\" (blur)=\"trataLitros()\" [disabled]=\"disabledKilosLitros\">\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"button\" (click)=\"onSaveItem(form)\">\n                        OK\n                    </button>\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">\n                        {{ 'buttons.cancelar' | translate }}\n                    </button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-antecipacao/operacao-dutoviario-antecipacao.component.html":
/*!*************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-antecipacao/operacao-dutoviario-antecipacao.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.listaAnt\" [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\" *ngIf=\"!!data\">\n  <div class=\"row\">\n    <div class=\"col-lg-6 col-sm-12\">\n      <div class=\"form-group form-group-sm\">\n        <app-input-description label=\"produto\" [valueID]=\"data?.material?.materialId\"\n          [valueDescription]=\"data.material?.fantasia\">\n        </app-input-description>\n      </div>\n    </div>\n  </div>\n\n  <div class=\"row\">\n    <div class=\"col-lg-10 col-sm-8\">\n      <div class=\"row\">\n        <div class=\"col-12\">\n          <table class=\"table table-responsive table-striped table-bordered table-hover nowrap table-sm\">\n            <thead>\n              <tr>\n                <th></th>\n                <th colspan=\"2\" class=\"text-center\"> {{\"labels.recebido\" | translate}} </th>\n                <th colspan=\"2\" class=\"text-center\"> {{\"labels.antecipado\" | translate}} </th>\n                <th colspan=\"2\" class=\"text-center\"> {{\"labels.diferenca\" | translate}} </th>\n                <th class=\"empty\"></th>\n              </tr>\n              <tr>\n                <th> {{\"labels.deposito\" | translate}} </th>\n                <th> {{\"labels.kilos\" | translate}} </th>\n                <th> {{\"labels.litros\" | translate}} </th>\n                <th> {{\"labels.kilos\" | translate}} </th>\n                <th> {{\"labels.litros\" | translate}} </th>\n                <th> {{\"labels.kilos\" | translate}} </th>\n                <th> {{\"labels.litros\" | translate}} </th>\n                <th class=\"empty\"></th>\n              </tr>\n            </thead>\n            <tbody>\n              <tr *ngFor=\"let val of dadosDeposito; let i = index\">\n                <td class=\"px-200-l\"> {{ val?.deposito }} </td>\n                <td class=\"px-100-r\"> {{ val?.kilosRecebe | formatCurrency: 0 }} </td>\n                <td class=\"px-100-r\"> {{ val?.litrosRecebe | formatCurrency: 0 }} </td>\n                <td class=\"px-100-r\"> {{ val?.kilosAntecip | formatCurrency: 0 }} </td>\n                <td class=\"px-100-r\"> {{ val?.litrosAntecip | formatCurrency: 0 }} </td>\n                <td class=\"px-100-r\"> {{ val?.kilosDif | formatCurrency: 0 }} </td>\n                <td class=\"px-100-r\"> {{ val?.litrosDif | formatCurrency: 0 }} </td>\n                <td class=\"empty\"></td>\n              </tr>\n              <tr *ngIf=\"!hasDadosDeposito\">\n                <ng-container>\n                  <th colspan=\"7\">{{'messages.nenhumRegistroEncontrado' | translate }}</th>\n                </ng-container>\n              </tr>\n            </tbody>\n          </table>\n        </div>\n      </div>\n\n      <div class=\"row\" *ngIf=\"!!limite && !!dados\" style=\"font-weight: bold;\">\n        <div class=\"col-12 d-flex flex-column align-items-start\">\n          <div>\n            <span>{{lbPtAntecipacao}}</span>\n          </div>\n          <div>\n            <span>\n              {{'labels.disponivel' | translate}} &nbsp; {{lbKilosAntecipacao | formatCurrency:0}}&nbsp;Kilos\n            </span>\n            <span>&nbsp;&nbsp;e&nbsp;&nbsp;</span>\n            <span>{{lbLitrosAntecipacao | formatCurrency: 0}}&nbsp;Litros</span>\n          </div>\n        </div>\n      </div>\n    </div>\n    <div class=\"col-lg-2 col-sm-4\">\n      <div class=\"row\">\n        <div class=\"col-12\">\n          <button class=\"btn btn-success btn-block\" type=\"button\" (click)=\"onConfirm()\" [disabled]=\"disabledConfirm\">\n            {{ 'buttons.confirmar' | translate }}\n          </button>\n        </div>\n      </div>\n      <div class=\"row mt-1\">\n        <div class=\"col-lg-12\">\n          <div class=\"form-group form-group-sm\">\n            <form autocomplete=\"off\" class=\"form\" #form=\"ngForm\">\n              <label for=\"ptAntecipacao\">{{'labels.antecipacao' | translate}}</label>\n              <div class=\"input-group\">\n                <input id=\"ptAntecipacao\" name=\"ptAntecipacao\" [(ngModel)]=\"ptAntecipacao\"\n                  class=\"form-control form-control-sm\" type=\"text\" mask=\"99\" maxlength=\"2\">\n                <span class=\"input-group-btn d-flex align-items-center\">\n                  &nbsp;&nbsp;%\n                </span>\n              </div>\n            </form>\n          </div>\n        </div>\n      </div>\n      <div class=\"row mt-1\">\n        <div class=\"col-12\">\n          <button class=\"btn btn-success btn-block\" type=\"button\" (click)=\"onCalc()\" [disabled]=\"disabledCalc\">\n            {{ 'buttons.calcular' | translate }}\n          </button>\n        </div>\n      </div>\n      <div class=\"row mt-1\">\n        <div class=\"col-12\">\n          <button class=\"btn btn-danger btn-block\" type=\"button\" (click)=\"onRemove()\" [disabled]=\"disabledRemove\">\n            {{ 'buttons.excluir' | translate }}\n          </button>\n        </div>\n      </div>\n    </div>\n  </div>\n\n  <div class=\"row mt-2\">\n    <div class=\"col-2 mr-2\">\n      <button class=\"btn btn-info btn-block\" type=\"button\" (click)=\"onAddItem()\" [disabled]=\"disabledAddItem\">\n        {{ 'buttons.novo' | translate }}\n      </button>\n    </div>\n    <div class=\"col-2 mr-2\" *ngIf=\"!antecipacaoAutomatica\">\n      <button class=\"btn btn-info btn-block\" type=\"button\" (click)=\"onEditItem()\" [disabled]=\"disabledEditItem\">\n        {{ 'buttons.editar' | translate }}\n      </button>\n    </div>\n    <div class=\"col-2 mr-2\" *ngIf=\"!antecipacaoAutomatica\">\n      <button class=\"btn btn-info btn-block\" type=\"button\" (click)=\"onRemoveItem()\" [disabled]=\"disabledRemoveItem\">\n        {{ 'buttons.excluir' | translate }}\n      </button>\n    </div>\n  </div>\n\n  <fieldset class=\"mt-3\">\n    <legend>{{\"labels.documentosComAntecipacao\" | translate}}</legend>\n    <div class=\"row\">\n      <div class=\"col-12\">\n        <table class=\"table table-responsive table-striped table-bordered table-hover nowrap table-sm\">\n          <thead>\n            <tr>\n              <th *ngIf=\"isDescarga\" colspan=\"4\"></th>\n              <th *ngIf=\"!isDescarga\" colspan=\"3\"></th>\n              <th colspan=\"2\" class=\"text-center\"> {{\"labels.manifestado\" | translate}} </th>\n              <th colspan=\"2\" class=\"text-center\"> {{\"labels.antecipado\" | translate}} </th>\n              <th colspan=\"2\" class=\"text-center\"> {{\"labels.diferenca\" | translate}} </th>\n            </tr>\n            <tr>\n              <th> {{\"labels.cliente\" | translate}} </th>\n              <th> {{\"labels.deposito\" | translate}} </th>\n              <th *ngIf=\"isDescarga\"> {{\"labels.lote\" | translate}} </th>\n              <th> {{\"labels.autorizacao\" | translate}} </th>\n              <th> {{\"labels.kilos\" | translate}} </th>\n              <th> {{\"labels.litros\" | translate}} </th>\n              <th> {{\"labels.kilos\" | translate}} </th>\n              <th> {{\"labels.litros\" | translate}} </th>\n              <th> {{\"labels.kilos\" | translate}} </th>\n              <th> {{\"labels.litros\" | translate}} </th>\n            </tr>\n          </thead>\n          <tbody>\n            <tr *ngFor=\"let val of dadosCliente; let i = index\" (click)=\"dataSelected = val\"\n              [ngClass]=\"{'info': val.autorizacao === dataSelected?.autorizacao}\">\n              <td class=\"w-100\"> {{ val?.fantasia }} </td>\n              <td class=\"px-100-l\"> {{ val?.deposito }} </td>\n              <td *ngIf=\"isDescarga\" class=\"px-100-l\"> {{ val?.lote }} </td>\n              <td class=\"px-100-l\"> {{ val?.autorizacao }} </td>\n              <td class=\"px-100-r\"> {{ val?.kilosManif | formatCurrency: 0 }} </td>\n              <td class=\"px-100-r\"> {{ val?.litrosManif | formatCurrency: 0 }} </td>\n              <td class=\"px-100-r\"> {{ val?.kilos | formatCurrency: 0 }} </td>\n              <td class=\"px-100-r\"> {{ val?.litros | formatCurrency: 0 }} </td>\n              <td class=\"px-100-r\"> {{ val?.kilosDif | formatCurrency: 0 }} </td>\n              <td class=\"px-100-r\"> {{ val?.litrosDif | formatCurrency: 0 }} </td>\n            </tr>\n            <tr *ngIf=\"!hasDadosCliente\">\n              <ng-container>\n                <th colspan=\"10\">{{'messages.nenhumRegistroEncontrado' | translate }}</th>\n              </ng-container>\n            </tr>\n          </tbody>\n        </table>\n      </div>\n    </div>\n  </fieldset>\n\n\n  <fieldset class=\"mt-3\" *ngIf=\"hasDadosSemAntecipacao\">\n    <legend>{{\"labels.documentosSemAntecipacao\" | translate}}</legend>\n    <div class=\"row\">\n      <div class=\"col-12\">\n        <table class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n          <thead>\n            <tr>\n              <th *ngIf=\"isDescarga\" colspan=\"2\"></th>\n              <th *ngIf=\"isCarga\" colspan=\"1\"></th>\n              <th colspan=\"2\" class=\"text-center\"> {{\"labels.manifestado\" | translate}} </th>\n              <th colspan=\"2\" class=\"text-center\"> {{\"labels.recebido\" | translate}} </th>\n            </tr>\n            <tr>\n              <th> {{\"labels.cliente\" | translate}} </th>\n              <th *ngIf=\"isDescarga\"> {{\"labels.lote\" | translate}} </th>\n              <th> {{\"labels.kilos\" | translate}} </th>\n              <th> {{\"labels.litros\" | translate}} </th>\n              <th> {{\"labels.kilos\" | translate}} </th>\n              <th> {{\"labels.litros\" | translate}} </th>\n            </tr>\n          </thead>\n          <tbody>\n            <tr *ngFor=\"let val of dados.clientesSemAntecipacao; let i = index\">\n              <td class=\"px-200-l\"> {{ val?.fantasia }} </td>\n              <td *ngIf=\"isDescarga\" class=\"px-100-l\"> {{ val?.lote }} </td>\n              <td class=\"px-100-r\"> {{ val?.kilosManif | formatCurrency: 0 }} </td>\n              <td class=\"px-100-r\"> {{ val?.litrosManif | formatCurrency: 0 }} </td>\n              <td class=\"px-100-r\"> {{ val?.kilos | formatCurrency: 0 }} </td>\n              <td class=\"px-100-r\"> {{ val?.litros | formatCurrency: 0 }} </td>\n            </tr>\n          </tbody>\n        </table>\n      </div>\n    </div>\n  </fieldset>\n</div>\n\n<app-operacao-dutoviario-antecipacao-novo [stoLaudoId]=\"data?.stoLaudoId\" [item]=\"data?.item\" [limite]=\"limite\"\n  (ok)=\"onExecuteEdit($event)\"></app-operacao-dutoviario-antecipacao-novo>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-clientes-dados/operacao-dutoviario-clientes-dados.component.html":
/*!*******************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-clientes-dados/operacao-dutoviario-clientes-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 *ngIf=\"!showAdd\">\r\n    <div class=\"container-buttons\">\r\n        <div class=\"btn-group\">\r\n            <app-menu-button title=\"{{ 'buttons.novo' | translate }}\" [icon]=\"'icon-plus'\" (click)=\"create()\"\r\n                [disabled]=\"disabled\">\r\n            </app-menu-button>\r\n            <app-menu-button title=\"{{ 'buttons.visualizar' | translate }}\" [icon]=\"'icon-eye'\" (click)=\"detail()\"\r\n                [disabled]=\"funcoesService.showButtons.detail(actionForm, dataAux.item)\">\r\n            </app-menu-button>\r\n            <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'icon-pencil'\" (click)=\"edit()\"\r\n                [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, dataAux.item)\">\r\n            </app-menu-button>\r\n            <app-menu-button title=\"{{ 'buttons.excluir' | translate }}\" [icon]=\"'icon-close'\" (click)=\"remove()\"\r\n                [disabled]=\"disabled || funcoesService.showButtons.remove(actionForm, dataAux.item)\">\r\n            </app-menu-button>\r\n        </div>\r\n    </div>\r\n\r\n    <div class=\"row\">\r\n        <div class=\"col-12 mt-4\">\r\n            <table class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\">\r\n                <thead>\r\n                    <tr>\r\n                        <th>{{ \"labels.cliente\" | translate }}</th>\r\n                        <th class=\"text-right\">{{ \"labels.quantidade\" | translate }}</th>\r\n                        <th>{{ \"labels.osg\" | translate }}</th>\r\n                        <th>{{ \"labels.codDeIntegracao\" | translate }}</th>\r\n                    </tr>\r\n                </thead>\r\n                <tbody>\r\n                    <tr *ngFor=\"let c of (service.data.listaClientesDados | removeExcluidos)\" class=\"clickable\"\r\n                        [ngClass]=\"{ info: c === dataAux }\" (click)=\"dataAux = c\">\r\n                        <td>{{ c.destinatarioCliente.fantasia }}</td>\r\n                        <td class=\"text-right\">{{ c.quantidade | formatCurrency: 0 }}</td>\r\n                        <td>{{ c.osgId }}</td>\r\n                        <td>{{ c.codIntegracao }}</td>\r\n                    </tr>\r\n                    <tr *ngIf=\"!hasDados\">\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\r\n<div *ngIf=\"showAdd\">\r\n    <div class=\"row\">\r\n        <div class=\"col-lg-6 container-buttons\">\r\n            <div class=\"btn-group\">\r\n                <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'fa fa-edit'\" (click)=\"edit()\"\r\n                    [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, data.item)\">\r\n                </app-menu-button>\r\n                <app-menu-button title=\"{{ 'buttons.voltar' | translate }}\" [icon]=\"'fa fa-arrow-left'\"\r\n                    (click)=\"back()\"></app-menu-button>\r\n            </div>\r\n        </div>\r\n        <div class=\"col-lg-6\">\r\n            <app-form-legenda></app-form-legenda>\r\n        </div>\r\n    </div>\r\n\r\n    <div class=\"clearfix\">&nbsp;</div>\r\n\r\n    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\r\n        <div class=\"row\">\r\n            <div class=\"col-12\">\r\n                <div class=\"card\">\r\n                    <div class=\"card-body widget-body\">\r\n                        <app-validacoes></app-validacoes>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-6\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" label=\"cliente\"\r\n                                        modalTitle=\"pesquisaDeCliente\" [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                        [(ngModel)]=\"data.destinatarioIdCliente\" tipoDestinatario=\"C\" showCgcCpf=\"false\"\r\n                                        showInscricao=\"false\" [inSelected]=\"data.destinatarioCliente\" required=\"true\"\r\n                                        (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-lg-3 col-md-6 col-sm-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"litrosManifestado\">{{'labels.litrosManifestado' | translate}}</label>\r\n                                    <input id=\"litrosManifestado\" name=\"litrosManifestado\" type=\"text\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\r\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                        [(ngModel)]=\"data.quantidade\" maxlength=\"15\"\r\n                                        class=\"form-control form-control-sm\" />\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"unidade\" class=\"required\">{{'labels.unidade' | translate}}</label>\r\n                                    <select id=\"unidade\" name=\"unidade\" class=\"form-control form-control-sm col-12\"\r\n                                        [(ngModel)]=\"data.unidadeId\" required\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                        <option value=\"\" selected=\"selected\">{{ 'labels.selecione' | translate }}\r\n                                        </option>\r\n                                        <option [value]=\"u.chave\" *ngFor=\"let u of unidades\">{{u.chave}}</option>\r\n                                    </select>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"kilosManifestado\">{{'labels.kilosManifestado' | translate}}</label>\r\n                                    <input id=\"kilosManifestado\" name=\"kilosManifestado\" type=\"text\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\r\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                        [(ngModel)]=\"data.massaKg\" maxlength=\"15\"\r\n                                        class=\"form-control form-control-sm\" />\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <app-pesquisa-osg id=\"ordemServico\" label=\"ordemServico\" name=\"ordemServico\"\r\n                                        clienteOuProdutoObrigatorio=\"true\" [(ngModel)]=\"data.osgId\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" [required]=\"false\"\r\n                                        [destinatarioIdCliente]=\"data.destinatarioIdCliente\"\r\n                                        [materialId]=\"service.data.materialId\" [inpOsg]=\"data.osg\">\r\n                                    </app-pesquisa-osg>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                                <app-pesquisa-lote id=\"lote\" label=\"lote\" name=\"lote\" modalTitle=\"lote\"\r\n                                    [(ngModel)]=\"data.loteId\" [required]=\"false\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                    [destinatarioIdCliente]=\"data.destinatarioIdCliente\"\r\n                                    [materialId]=\"service.data.materialId\" [loteId]=\"data.loteId\"\r\n                                    destinatarioIdEmitente=\"0\" destinatarioIdNavio=\"0\" osgId=\"0\" stoContratoId=\"\"\r\n                                    stoContratoItemId=\"0\">\r\n                                </app-pesquisa-lote>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label class=\"required\" for=\"codIntegracao\">{{'labels.codDeIntegracao' |\r\n                                        translate}}</label>\r\n                                    <input type=\"text\" class=\"form-control form-control-sm\" required=\"true\"\r\n                                        id=\"codIntegracao\" name=\"codDeIntegracao\" maxlength=\"30\"\r\n                                        [(ngModel)]=\"data.codIntegracao\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\" *ngIf=\"obrigaTipoNota\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label [class.required]=\"obrigaTipoNota\" for=\"tipoNota\">\r\n                                        {{'labels.tipoNota' | translate}}\r\n                                    </label>\r\n                                    <select class=\"form-control form-control-sm\" id=\"tipoNota\" name=\"tipoNota\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" [required]=\"obrigaTipoNota\"\r\n                                        [(ngModel)]=\"data.tipoNota\">\r\n                                        <option value=\"\">{{ 'labels.selecione' | translate }}</option>\r\n                                        <option *ngFor=\"let t of raizenTipoNotas\" [value]=\"t.chave\">{{ t.valor }}\r\n                                        </option>\r\n                                    </select>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n\r\n                        <div *ngIf=\"service.data.tipoMov === 'D'\">\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-6 col-md-6 col-sm-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label for=\"chaveNFe\">{{'labels.chaveNFE'| translate}}</label>\r\n                                        <input type=\"text\" id=\"chaveNFe\" name=\"chaveNfe\"\r\n                                            class=\"form-control form-control-sm\" [(ngModel)]=\"data.chaveNFE\"\r\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\" maxlength=\"44\" />\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label for=\"numNfe\"\r\n                                            [class.required]=\"data.chaveNFE !== null && data.chaveNFE !== ''\">\r\n                                            {{'labels.numNfe' | translate}}\r\n                                        </label>\r\n                                        <input id=\"numNfe\" name=\"numNfe\" type=\"text\" currencyMask\r\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                            [required]=\"data.chaveNFE !== null && data.chaveNFE !== ''\"\r\n                                            [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                            [(ngModel)]=\"data.numeroNFE\" class=\"form-control form-control-sm\" />\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label for=\"dataNfe\"\r\n                                            [class.required]=\"data.chaveNFE !== null && data.chaveNFE !== ''\">\r\n                                            {{'labels.dataNfe' | translate}}\r\n                                        </label>\r\n                                        <app-data id=\"dataNfe\" name=\"dataNfe\" [(ngModel)]=\"data.dataNFE\"\r\n                                            class=\"dataHora\" [formatDateTime]=\"mascara.getFormatData\"\r\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                            [required]=\"data.chaveNFE !== null && data.chaveNFE !== ''\"></app-data>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n\r\n                        <div class=\"form-group\">\r\n                            <button class=\"btn btn-success\" type=\"submit\"\r\n                                [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                {{ \"buttons.salvar\" | translate }}\r\n                            </button>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </form>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-consulta-antecipacao/operacao-dutoviario-consulta-antecipacao.component.html":
/*!*******************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-consulta-antecipacao/operacao-dutoviario-consulta-antecipacao.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.listaConsultaAntecipacao\" [formAction]=\"actionForm\"\n    [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <div class=\"section-comand-bar\">\n            <fieldset class=\"mt-3\">\n                <legend>{{\"labels.produtos\" | translate}}</legend>\n                <div class=\"row\">\n                    <div class=\"col-12\">\n                        <div class=\"table-responsive\" style=\"overflow: auto;\">\n                            <table id=\"dtResumo\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n                                <thead>\n                                    <tr>\n                                        <th>{{ 'labels.laudo' | translate }}</th>\n                                        <th>{{ 'labels.material' | translate }}</th>\n                                        <th>{{ 'labels.produto' | translate }}</th>\n                                    </tr>\n                                </thead>\n                                <tbody>\n                                    <tr *ngFor=\"let t of dadosProduto; index as i\"\n                                        [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\"\n                                        (click)=\"rowSelect(t,i)\">\n                                        <td>{{ t.laudoId }}</td>\n                                        <td>{{ t.materialId }}</td>\n                                        <td>{{ t.produto }}</td>\n                                    </tr>\n                                    <tr *ngIf=\"!hasDadosProduto\">\n                                        <th colspan=\"3\" style=\"text-align: center\">\n                                            {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                                        </th>\n                                    </tr>\n                                </tbody>\n                            </table>\n                        </div>\n                    </div>\n                </div>\n            </fieldset>\n            <fieldset class=\"mt-3\">\n                <legend>{{\"labels.antecipacoes\" | translate}}</legend>\n                <div class=\"row\">\n                    <div class=\"col-12\">\n                        <div class=\"table-responsive\" style=\"overflow: auto;\">\n                            <table class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n                                <thead>\n                                    <tr>\n                                        <th colspan=\"4\" class=\"text-center\"></th>\n                                        <th colspan=\"2\" class=\"text-center\">{{\"labels.antecipado\" | translate}}</th>\n                                    </tr>\n                                    <tr>\n                                        <th>{{\"labels.deposito\" | translate}}</th>\n                                        <th>{{\"labels.cliente\" | translate}}</th>\n                                        <th>{{\"labels.lote\" | translate}}</th>\n                                        <th>{{\"labels.autorizacao\" | translate}}</th>\n                                        <th style=\"text-align: right;\">{{\"labels.kilos\" | translate}}</th>\n                                        <th style=\"text-align: right;\">{{\"labels.litros\" | translate}}</th>\n                                    </tr>\n                                </thead>\n                                <tbody>\n                                    <tr *ngFor=\"let val of dadosCliente; let i = index\" (click)=\"dataSelected = val\"\n                                        [ngClass]=\"{'info': val.autorizacao === dataSelected?.autorizacao}\">\n                                        <td>{{ val.tanqueId }}</td>\n                                        <td>{{ val.cliente }}</td>\n                                        <td>{{ val.loteId }}</td>\n                                        <td>{{ val.autorizacao }}</td>\n                                        <td style=\"text-align: right;\">{{ val.kilos | formatCurrency: 0 }}</td>\n                                        <td style=\"text-align: right;\">{{ val.litros | formatCurrency: 0 }}</td>\n                                    </tr>\n                                    <tr *ngIf=\"!hasDadosCliente\">\n                                        <ng-container>\n                                            <th colspan=\"6\">{{'messages.nenhumRegistroEncontrado' | translate }}</th>\n                                        </ng-container>\n                                    </tr>\n                                </tbody>\n                            </table>\n                        </div>\n                    </div>\n                </div>\n            </fieldset>\n        </div>\n    </div>\n</div>\n\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-equipto/operacao-dutoviario-equipto.component.html":
/*!*****************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-equipto/operacao-dutoviario-equipto.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 *ngIf=\"!showAdd\">\r\n    <div class=\"container-buttons\">\r\n        <div class=\"btn-group\">\r\n            <app-menu-button title=\"{{ 'buttons.novo' | translate }}\" [icon]=\"'icon-plus'\" (click)=\"create()\"\r\n                    [disabled]=\"disabled\">\r\n            </app-menu-button>\r\n            <app-menu-button title=\"{{ 'buttons.visualizar' | translate }}\" [icon]=\"'icon-eye'\" (click)=\"detail()\"\r\n                    [disabled]=\"funcoesService.showButtons.detail(actionForm, dataAux.equipamentoId)\">\r\n            </app-menu-button>\r\n            <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'icon-pencil'\" (click)=\"edit()\"\r\n                    [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, dataAux.equipamentoId)\">\r\n            </app-menu-button>\r\n            <app-menu-button title=\"{{ 'buttons.excluir' | translate }}\" [icon]=\"'icon-close'\" (click)=\"remove()\"\r\n                    [disabled]=\"disabled || funcoesService.showButtons.remove(actionForm, dataAux.equipamentoId)\">\r\n            </app-menu-button>\r\n        </div>\r\n    </div>\r\n\r\n    <div class=\"row\">\r\n        <div class=\"col-12 mt-4\">\r\n            <table class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\">\r\n                <thead>\r\n                <tr>\r\n                    <th>{{ \"labels.tipo\" | translate }}</th>\r\n                    <th>{{ \"labels.codigo\" | translate }}</th>\r\n                    <th>{{ \"labels.descricao\" | translate }}</th>\r\n                    <th>{{ \"labels.certificado\" | translate }}</th>\r\n                </tr>\r\n                </thead>\r\n                <tbody>\r\n                <tr *ngFor=\"let c of (service.data.listaEquipamentos | removeExcluidos)\" class=\"clickable\" [ngClass]=\"{ info: c === dataAux }\"\r\n                    (click)=\"dataAux = c\">\r\n                    <td>{{ getTipoEquiptoDescr(c.equipamento?.tipoEquipto == null ? \"\" : c.equipamento.tipoEquipto) | translate }}</td>\r\n                    <td>{{ c.equipamentoId }}</td>\r\n                    <td>{{ c.equipamento?.descrEquipto == null ? \"\" : c.equipamento.descrEquipto }}</td>\r\n                    <td>{{ c.equipamento?.numCertificado == null ? \"\" : c.equipamento.numCertificado }}</td>\r\n                </tr>\r\n                <tr *ngIf=\"!hasDados\">\r\n                    <th colspan=\"9\">\r\n                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                    </th>\r\n                </tr>\r\n                </tbody>\r\n            </table>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<div *ngIf=\"showAdd\">\r\n    <div class=\"row\">\r\n        <div class=\"col-lg-6 container-buttons\">\r\n            <div class=\"btn-group\">\r\n                <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'fa fa-edit'\" (click)=\"edit()\"\r\n                        [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, data.equipamentoId)\">\r\n                </app-menu-button>\r\n                <app-menu-button title=\"{{ 'buttons.voltar' | translate }}\" [icon]=\"'fa fa-arrow-left'\" (click)=\"back()\"></app-menu-button>\r\n            </div>\r\n        </div>\r\n        <div class=\"col-lg-6\">\r\n            <app-form-legenda></app-form-legenda>\r\n        </div>\r\n    </div>\r\n\r\n    <div class=\"clearfix\">&nbsp;</div>\r\n\r\n    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\r\n        <div class=\"row\">\r\n            <div class=\"col-12\">\r\n                <div class=\"card\">\r\n                    <div class=\"card-body widget-body\">\r\n                        <app-validacoes></app-validacoes>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-4\">\r\n                                <div class=\"form-group \">\r\n                                    <label class=\"required\" for=\"tipo\">{{'labels.tipo' | translate}}</label>\r\n                                    <select class=\"form-control form-control-sm\"\r\n                                        id=\"tipo\"\r\n                                        name=\"tipo\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                        required=\"true\"\r\n                                        (ngModelChange)=\"selecionarTipoEquipto($event)\"\r\n                                        [(ngModel)]=\"data.tipoEquipto\">\r\n                                        <option value=\"\">{{ 'labels.selecione' | translate }}</option>\r\n                                        <option value=\"L\">{{ 'labels.linha' | translate }}</option>\r\n                                        <option value=\"T\">{{ 'labels.trena' | translate }}</option>\r\n                                        <option value=\"E\">{{ 'labels.termometro' | translate }}</option>\r\n                                        <option value=\"M\">{{ 'labels.mangote' | translate }}</option>\r\n                                        <option value=\"A\">{{ 'labels.alinhamento' | translate }}</option>\r\n                                        <option value=\"B\">{{ 'labels.bomba' | translate }}</option>\r\n                                    </select>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-5\">\r\n                                <div class=\"form-group \">\r\n                                    <label class=\"required\" for=\"descricao\">{{'labels.descricao' | translate}}</label>\r\n                                    <select class=\"form-control form-control-sm\"\r\n                                        id=\"descricao\"\r\n                                        name=\"descricao\"\r\n                                        required=\"true\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                        (ngModelChange)=\"selecionarEquipamento($event)\"\r\n                                        [(ngModel)]=\"data.equipamentoId\">\r\n                                        <option value=\"0\">{{ 'labels.selecione' | translate }}</option>\r\n                                        <option value=\"{{ item.equipamentoId }}\" *ngFor=\"let item of equipamentos\">\r\n                                            {{ item.descrEquipto }}\r\n                                        </option>\r\n                                    </select>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-2\">\r\n                                <div class=\"form-group \">\r\n                                    <label for=\"numero\">{{'labels.numero' | translate}}</label>\r\n                                    <input disabled\r\n                                        type=\"text\"\r\n                                        class=\"form-control form-control-sm\"\r\n                                        id=\"numero\"\r\n                                        name=\"numero\"\r\n                                        [ngModel]=\"data.equipamento !== null ? data.equipamento.codEquipto : ''\">\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-5\">\r\n                                <div class=\"form-group \">\r\n                                    <label for=\"fantasia\">{{'labels.fantasia' | translate}}</label>\r\n                                    <input disabled\r\n                                        type=\"text\"\r\n                                        class=\"form-control form-control-sm\"\r\n                                        id=\"fantasia\"\r\n                                        name=\"fantasia\"\r\n                                        [ngModel]=\"data.equipamento !== null ? data.equipamento.fantasia : ''\">\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-2\">\r\n                                <div class=\"form-group \">\r\n                                    <label for=\"nCertificado\">{{'labels.nCertificado' | translate}}</label>\r\n                                    <input disabled\r\n                                        type=\"text\"\r\n                                        class=\"form-control form-control-sm\"\r\n                                        id=\"nCertificado\"\r\n                                        name=\"nCertificado\"\r\n                                        [ngModel]=\"data.equipamento !== null ? data.equipamento.numCertificado : ''\">\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n\r\n                        <div class=\"form-group\">\r\n                            <button class=\"btn btn-success\"\r\n                                    type=\"submit\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                {{ \"buttons.salvar\" | translate }}\r\n                            </button>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </form>\r\n</div>\r\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-filter/operacao-dutoviario-filter.component.html":
/*!***************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-filter/operacao-dutoviario-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=\"ope-dutoviario-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\">{{ 'titles.filtroDeOperacaoDutoviario' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-md-6 col-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"laudo\">{{'labels.laudo' | translate}}</label>\r\n                                <input id=\"laudo\" name=\"laudo\" type=\"text\" currencyMask autofocus\r\n                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                    [(ngModel)]=\"service.filtro.laudoId\" class=\"form-control form-control-sm\" />\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-md-6 col-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"emissaoDe\" class=\"required\">{{\"labels.emissaoDe\" | translate }}</label>\r\n                                <app-data id=\"emissaoDe\" name=\"emissaoDe\" [(ngModel)]=\"service.filtro.dataI\"\r\n                                    (executa)=\"validarDataI()\" class=\"dataHora\" [formatDateTime]=\"mascara.getFormatData\"\r\n                                    required=\"true\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-md-6 col-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"ate\" class=\"required\">{{\"labels.ate\" | translate}}</label>\r\n                                <app-data id=\"ate\" name=\"ate\" [(ngModel)]=\"service.filtro.dataF\"\r\n                                    (executa)=\"validarDataF()\" class=\"dataHora\" [formatDateTime]=\"mascara.getFormatData\"\r\n                                    required=\"true\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-md-6 col-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.filtro.sitReg\"\r\n                                    class=\"form-control form-control-sm\">\r\n                                    <option value=\"T\">{{ 'labels.todos' | translate}}</option>\r\n                                    <option value=\"O\">{{ 'labels.liberadoOperacao' | translate}}</option>\r\n                                    <option value=\"A\">{{ 'labels.aberto' | translate}}</option>\r\n                                    <option value=\"F\">{{ 'labels.liberadoFiscal' | translate}}</option>\r\n                                </select>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-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.filtro.materialId\"\r\n                                    [inSelected]=\"service.filtro.material\"\r\n                                    (outModel)=\"!!$event ? service.filtro.material = $event : ''\">\r\n                                </app-pesquisa-material>\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\">\r\n                        {{ 'buttons.pesquisar' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">\r\n                        {{ '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/operacao/operacao-dutoviario/operacao-dutoviario-form/operacao-dutoviario-form.component.html":
/*!***********************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-form/operacao-dutoviario-form.component.html ***!
  \***********************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaForm\" [formAction]=\"actionForm\" [itemData]=\"service.data.laudoId\"\r\n    [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"row\">\r\n    <div class=\"col-lg-12\">\r\n        <div class=\"section-comand-bar\">\r\n            <app-form-legenda></app-form-legenda>\r\n            <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\r\n                <div class=\"clearfix\">\r\n                    <ul class=\"nav nav-tabs\">\r\n                        <li class=\"nav-item\">\r\n                            <a class=\"nav-link active show\" data-toggle=\"tab\" href=\"#dados\">{{\"labels.dados\" |\r\n                                translate}}</a>\r\n                        </li>\r\n                        <li *ngIf=\"!service.configs.apenasUmClienteDuto\" class=\"nav-item\">\r\n                            <a class=\"nav-link\" data-toggle=\"tab\" href=\"#clientesDados\"\r\n                                (click)=\"service.getClientesDados()\">{{\"labels.clientes\" | translate}}</a>\r\n                        </li>\r\n                        <li class=\"nav-item\">\r\n                            <a class=\"nav-link\" data-toggle=\"tab\" href=\"#tanques\"\r\n                                (click)=\"service.getTanques()\">{{\"labels.tanques\" | translate}}</a>\r\n                        </li>\r\n                        <li class=\"nav-item\">\r\n                            <a class=\"nav-link\" data-toggle=\"tab\" href=\"#horaOper\"\r\n                                (click)=\"service.getHorasOper()\">{{\"labels.horaOperacional\" | translate}}</a>\r\n                        </li>\r\n                        <li class=\"nav-item\">\r\n                            <a class=\"nav-link\" data-toggle=\"tab\" href=\"#ocorrencia\"\r\n                                (click)=\"service.getOcorrencias()\">{{\"labels.ocorrencia\" | translate}}</a>\r\n                        </li>\r\n                        <li class=\"nav-item\">\r\n                            <a class=\"nav-link\" data-toggle=\"tab\" href=\"#operador\"\r\n                                (click)=\"service.getOperadores()\">{{\"labels.operador\" | translate}}</a>\r\n                        </li>\r\n                        <li class=\"nav-item\">\r\n                            <a class=\"nav-link\" data-toggle=\"tab\" href=\"#timeLog\">{{\"labels.timeLog\" | translate}}</a>\r\n                        </li>\r\n                        <li class=\"nav-item\">\r\n                            <a class=\"nav-link\" data-toggle=\"tab\" href=\"#equipto\"\r\n                                (click)=\"service.getEquipamentos()\">{{\"labels.equipamento\" | translate}}</a>\r\n                        </li>\r\n                        <li class=\"nav-item\">\r\n                            <a class=\"nav-link\" data-toggle=\"tab\" href=\"#origDest\"\r\n                                (click)=\"service.getOrigensDestinos()\">{{\"labels.origemDestino\" | translate}}</a>\r\n                        </li>\r\n                    </ul>\r\n                </div>\r\n                <div class=\"tab-content top\">\r\n                    <!-- ABA DADOS -->\r\n                    <div class=\"tab-pane active show\" id=\"dados\">\r\n                        <app-validacoes></app-validacoes>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-2\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"numero\">{{'labels.numero' | translate}}</label>\r\n                                    <input type=\"text\" class=\"form-control form-control-sm\" id=\"numero\" name=\"numero\"\r\n                                        value=\"{{service.data.regTmp }}\" disabled />\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-2\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"programacao\">{{'labels.programacao' | translate}}</label>\r\n                                    <input type=\"text\" class=\"form-control form-control-sm\" id=\"programacao\"\r\n                                        name=\"programacao\" value=\"{{service.data.programaId }}\" disabled />\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-4 custom-label-line-item\">\r\n                                <div class=\"form-group\">\r\n                                    <div class=\"custom-control custom-radio custom-control-inline\">\r\n                                        <input id=\"radioDefault\" type=\"radio\" name=\"radioDefault\"\r\n                                            class=\"custom-control-input radio-success\" value=\"C\"\r\n                                            [(ngModel)]=\"service.data.tipoMov\"\r\n                                            disabled=\"true\" required />\r\n                                        <label class=\"custom-control-label\" for=\"radioDefault\">{{ 'labels.carga' |\r\n                                            translate }}</label>\r\n                                    </div>\r\n                                    <div class=\"custom-control custom-radio custom-control-inline\">\r\n                                        <input id=\"radioPrimary\" type=\"radio\" name=\"radioPrimary\"\r\n                                            class=\"custom-control-input radio-success\" value=\"D\"\r\n                                            [(ngModel)]=\"service.data.tipoMov\"\r\n                                            disabled=\"true\" />\r\n                                        <label class=\"custom-control-label\" for=\"radioPrimary\">{{ 'labels.descarga' |\r\n                                            translate }}</label>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-2\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"data\" class=\"required\">{{'labels.data' | translate}}</label>\r\n                                    <app-data id=\"data\" name=\"data\" class=\"dataHora\" required=\"true\"\r\n                                        [formatDateTime]=\"mascara.getFormatData\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                        [(ngModel)]=\"service.data.dtMovimento\" (executa)=\"validarDtMovimento()\">\r\n                                    </app-data>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div *ngIf=\"service.configs.apenasUmClienteDuto\" class=\"row\">\r\n                            <div class=\"col-lg-6\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" label=\"cliente\"\r\n                                        modalTitle=\"pesquisaDeCliente\" [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                        [(ngModel)]=\"service.data.destinatarioIdCliente\" tipoDestinatario=\"C\"\r\n                                        showCgcCpf=\"false\" showInscricao=\"false\"\r\n                                        [inSelected]=\"service.data.destinatarioCliente\" required=\"true\"\r\n                                        (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-lg-6\">\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.data.materialId\"\r\n                                        [inSelected]=\"service.data.material\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" required=\"true\"\r\n                                        (outModel)=\"trataMaterial($event)\">\r\n                                    </app-pesquisa-material>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-2\" *ngIf=\"service.configs.degradacao\">\r\n                                <div class=\"custom-control custom-checkbox uni-checkbox\">\r\n                                    <input id=\"degradacao\" name=\"degradacao\"\r\n                                        [ngModel]=\"service.data.flagDegradacao === 'S'\"\r\n                                        (ngModelChange)=\"service.data.flagDegradacao = $event ? 'S' : 'N'\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                        class=\"custom-control-input checkbox-success\" type=\"checkbox\" />\r\n                                    <label class=\"custom-control-label\" for=\"degradacao\">\r\n                                        {{ \"labels.degradacao\" | translate }}\r\n                                    </label>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div *ngIf=\"!service.configs.sapRaisen\" class=\"row\">\r\n                            <div class=\"col-lg-2\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"quantidade\">{{'labels.quantidade' | translate}}</label>\r\n                                    <input id=\"quantidade\" name=\"quantidade\" type=\"text\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\r\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                        [(ngModel)]=\"service.data.quantidade\" maxlength=\"15\"\r\n                                        class=\"form-control form-control-sm\" />\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-2\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"unidade\" class=\"required\">{{'labels.unidade' | translate}}</label>\r\n                                    <select id=\"unidade\" name=\"unidade\" class=\"form-control form-control-sm col-12\"\r\n                                        [(ngModel)]=\"service.data.unidadeId\" required\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                        <option value=\"\" selected=\"selected\">{{ 'labels.selecione' | translate }}\r\n                                        </option>\r\n                                        <option [value]=\"u.chave\" *ngFor=\"let u of unidades\">{{u.chave}}</option>\r\n                                    </select>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div *ngIf=\"!service.configs.sapRaisen\" class=\"row\">\r\n                            <div class=\"col-lg-2\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"volumeAmbiente\">{{'labels.volumeAmbiente' | translate}}</label>\r\n                                    <input id=\"volumeAmbiente\" name=\"volumeAmbiente\" type=\"text\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\r\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                        [(ngModel)]=\"service.data.volAmbiente\" maxlength=\"15\"\r\n                                        class=\"form-control form-control-sm\" />\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-2\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"volume20g\">{{'labels.volume20g' | translate}}</label>\r\n                                    <input id=\"volume20g\" name=\"volume20g\" type=\"text\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\r\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                        [(ngModel)]=\"service.data.volume20\" maxlength=\"15\"\r\n                                        class=\"form-control form-control-sm\" />\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-2\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"massaKg\">{{'labels.massaKg' | translate}}</label>\r\n                                    <input id=\"massaKg\" name=\"massaKg\" type=\"text\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\r\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                        [(ngModel)]=\"service.data.massaKg\" maxlength=\"15\"\r\n                                        class=\"form-control form-control-sm\" />\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div *ngIf=\"!service.configs.sapRaisen\" class=\"row\">\r\n                            <div class=\"col-lg-3\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <app-pesquisa-osg id=\"ordemServico\" label=\"ordemServico\" name=\"ordemServico\"\r\n                                        clienteOuProdutoObrigatorio=\"true\" [(ngModel)]=\"service.data.osgId\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" [required]=\"false\"\r\n                                        [destinatarioIdCliente]=\"service.data.destinatarioIdCliente\"\r\n                                        [materialId]=\"service.data.materialId\" [inpOsg]=\"service.data.osg\">\r\n                                    </app-pesquisa-osg>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-3\">\r\n                                <app-pesquisa-lote id=\"lote\" label=\"lote\" name=\"lote\" modalTitle=\"lote\"\r\n                                    [(ngModel)]=\"service.data.loteId\" [required]=\"false\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                    [destinatarioIdCliente]=\"service.data.destinatarioIdCliente\"\r\n                                    [materialId]=\"service.data.materialId\" [loteId]=\"service.data.loteId\"\r\n                                    destinatarioIdEmitente=\"0\" destinatarioIdNavio=\"0\" osgId=\"0\" stoContratoId=\"\"\r\n                                    stoContratoItemId=\"0\">\r\n                                </app-pesquisa-lote>\r\n                            </div>\r\n                        </div>\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=\"observacao\">{{'labels.observacao' | translate}}</label>\r\n                                    <input type=\"text\" class=\"form-control form-control-sm\" id=\"observacao\"\r\n                                        name=\"observacao\" maxlength=\"100\" [(ngModel)]=\"service.data.observacao\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\" *ngIf=\"this.service.configs.webSolOperDuto\">\r\n                            <div *ngIf=\"!service.configs.sapRaisen\" class=\"col-lg-3\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label class=\"required\" for=\"codIntegracao\">{{'labels.codDeIntegracao' | translate}}</label>\r\n                                    <input type=\"text\" class=\"form-control form-control-sm\" required=\"true\"\r\n                                        id=\"codIntegracao\" name=\"codDeIntegracao\" maxlength=\"30\"\r\n                                        [(ngModel)]=\"service.data.codIntegracao\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-3\" *ngIf=\"obrigaTipoNota\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label [class.required]=\"obrigaTipoNota\" for=\"tipoNota\">\r\n                                        {{'labels.tipoNota' | translate}}\r\n                                    </label>\r\n                                    <select class=\"form-control form-control-sm\"\r\n                                        id=\"tipoNota\"\r\n                                        name=\"tipoNota\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                        [required]=\"obrigaTipoNota\"\r\n                                        [(ngModel)]=\"service.data.tipoNota\">\r\n                                        <option value=\"\">{{ 'labels.selecione' | translate }}</option>\r\n                                        <option *ngFor=\"let t of raizenTipoNotas\" [value]=\"t.chave\">{{ t.valor }}</option>\r\n                                    </select>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-4\">\r\n                                <span *ngIf=\"service.data.sisCampoAdds\">\r\n                                    <div *ngFor=\"let d of service.data.sisCampoAdds\" [class.col-lg-6]=\"!d.colunas\">\r\n                                        <app-campos-adicionais name=\"{{d.campo}}\" [sisCampoAdd]=\"d\"\r\n                                            [(ngModel)]=\"d.valorCampo\" [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                            [required]=\"d.obrigatorio === 'S'\"></app-campos-adicionais>\r\n                                    </div>\r\n                                </span>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <!-- ABA CLIENTES-->\r\n                    <div *ngIf=\"!service.configs.apenasUmClienteDuto\" class=\"tab-pane\" id=\"clientesDados\">\r\n                        <app-operacao-dutoviario-clientes-dados [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                            [unidades]=\"unidades\">\r\n                        </app-operacao-dutoviario-clientes-dados>\r\n                    </div>\r\n                    <!-- ABA TANQUES-->\r\n                    <div class=\"tab-pane\" id=\"tanques\">\r\n                        <app-operacao-dutoviario-tanque [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                        </app-operacao-dutoviario-tanque>\r\n                    </div>\r\n                    <!-- ABA HORA OPERACIONAL-->\r\n                    <div class=\"tab-pane\" id=\"horaOper\">\r\n                        <app-operacao-dutoviario-hora-oper [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                        </app-operacao-dutoviario-hora-oper>\r\n                    </div>\r\n                    <!-- ABA OCORRENCIA-->\r\n                    <div class=\"tab-pane\" id=\"ocorrencia\">\r\n                        <app-operacao-dutoviario-ocorrencia [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                        </app-operacao-dutoviario-ocorrencia>\r\n                    </div>\r\n                    <!-- ABA OPERADOR-->\r\n                    <div class=\"tab-pane\" id=\"operador\">\r\n                        <app-operacao-dutoviario-operador [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                        </app-operacao-dutoviario-operador>\r\n                    </div>\r\n                    <!-- ABA TIME LOG-->\r\n                    <div class=\"tab-pane\" id=\"timeLog\">\r\n                        <app-operacao-dutoviario-time-log [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                        </app-operacao-dutoviario-time-log>\r\n                    </div>\r\n                    <!-- ABA EQUIPAMENTO-->\r\n                    <div class=\"tab-pane\" id=\"equipto\">\r\n                        <app-operacao-dutoviario-equipto [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                        </app-operacao-dutoviario-equipto>\r\n                    </div>\r\n                    <!-- ABA ORIGEM/DESTINO-->\r\n                    <div class=\"tab-pane\" id=\"origDest\">\r\n                        <app-operacao-dutoviario-origem-destino [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                        </app-operacao-dutoviario-origem-destino>\r\n                    </div>\r\n                </div>\r\n                <div class=\"row\">\r\n                    <div class=\"col-4\">\r\n                        <div class=\"form-group\">\r\n                            <button class=\"btn btn-success mr-2\" type=\"submit\"\r\n                                [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                {{ 'buttons.salvar' | translate }}\r\n                            </button>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-hora-oper/operacao-dutoviario-hora-oper.component.html":
/*!*********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-hora-oper/operacao-dutoviario-hora-oper.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 *ngIf=\"!showAdd\">\r\n    <div class=\"container-buttons\">\r\n        <div class=\"btn-group\">\r\n            <app-menu-button title=\"{{ 'buttons.novo' | translate }}\" [icon]=\"'icon-plus'\" (click)=\"create()\"\r\n                    [disabled]=\"disabled\">\r\n            </app-menu-button>\r\n            <app-menu-button title=\"{{ 'buttons.visualizar' | translate }}\" [icon]=\"'icon-eye'\" (click)=\"detail()\"\r\n                    [disabled]=\"funcoesService.showButtons.detail(actionForm, dataAux.ocorrenciaLaudoId)\">\r\n            </app-menu-button>\r\n            <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'icon-pencil'\" (click)=\"edit()\"\r\n                    [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, dataAux.ocorrenciaLaudoId)\">\r\n            </app-menu-button>\r\n            <app-menu-button title=\"{{ 'buttons.excluir' | translate }}\" [icon]=\"'icon-close'\" (click)=\"remove()\"\r\n                    [disabled]=\"disabled || funcoesService.showButtons.remove(actionForm, dataAux.ocorrenciaLaudoId)\">\r\n            </app-menu-button>\r\n        </div>\r\n    </div>\r\n        \r\n    <div class=\"row\">\r\n        <div class=\"col-12 mt-4\">\r\n            <table class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\">\r\n                <thead>\r\n                <tr>\r\n                    <th>{{ \"labels.data\" | translate }}</th>\r\n                    <th>{{ \"labels.descricao\" | translate }}</th>\r\n                </tr>\r\n                </thead>\r\n                <tbody>\r\n                <tr *ngFor=\"let c of (service.data.listaHorasOper | removeExcluidos)\" class=\"clickable\" [ngClass]=\"{ info: c === dataAux }\"\r\n                    (click)=\"dataAux = c\">\r\n                    <td>{{ c.dtOcorrencia | date: 'dd/MM/yyyy HH:mm' }}</td>\r\n                    <td>{{ c.ocorrenciaLaudo == null ? \"\" : c.ocorrenciaLaudo.descricao }}</td>\r\n                </tr>\r\n                <tr *ngIf=\"!hasDados\">\r\n                    <th colspan=\"9\">\r\n                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                    </th>\r\n                </tr>\r\n                </tbody>\r\n            </table>\r\n        </div>\r\n    </div>\r\n</div>\r\n        \r\n<div *ngIf=\"showAdd\">\r\n    <div class=\"row\">\r\n        <div class=\"col-lg-6 container-buttons\">\r\n            <div class=\"btn-group\">\r\n                <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'fa fa-edit'\" (click)=\"edit()\"\r\n                        [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, data.ocorrenciaLaudoId)\">\r\n                </app-menu-button>\r\n                <app-menu-button title=\"{{ 'buttons.voltar' | translate }}\" [icon]=\"'fa fa-arrow-left'\" (click)=\"back()\"></app-menu-button>\r\n            </div>\r\n        </div>\r\n        <div class=\"col-lg-6\">\r\n            <app-form-legenda></app-form-legenda>\r\n        </div>\r\n    </div>\r\n\r\n    <div class=\"clearfix\">&nbsp;</div>\r\n\r\n    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\r\n        <div class=\"row\">\r\n            <div class=\"col-12\">\r\n                <div class=\"card\">\r\n                    <div class=\"card-body widget-body\">\r\n                        <app-validacoes></app-validacoes>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-6 col-md-6\">\r\n                                <div class=\"form-group \">\r\n                                    <label for=\"ocorrencia\" class=\"required\">{{'labels.ocorrencia' | translate}}</label>\r\n                                    <select id=\"ocorrencia\"\r\n                                            name=\"ocorrencia\"\r\n                                            class=\"form-control form-control-sm\"\r\n                                            required=\"true\"\r\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                            (ngModelChange)=\"currentOcorrenciaLaudo($event)\"\r\n                                            [(ngModel)]=\"data.ocorrenciaLaudoId\">\r\n                                        <option value=\"\">{{ 'labels.selecione' | translate }}</option>\r\n                                        <option value=\"{{ item.ocorrenciaLaudoId }}\" *ngFor=\"let item of listaOcorrenciaLaudo\">\r\n                                            {{ item.descricao }}\r\n                                        </option>\r\n                                    </select>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                                <div class=\"form-group\">\r\n                                    <label for=\"dataOcorrencia\" class=\"required\"> {{ 'labels.dataOcorrencia' | translate }}\r\n                                    </label>\r\n                                    <app-data-h-m id=\"dataOcorrencia\"\r\n                                            name=\"dataOcorrencia\"\r\n                                            required=\"true\"\r\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                            [(ngModel)]=\"data.dtOcorrencia\"\r\n                                            [ngStyle]=\"{'width':'100%'}\">\r\n                                    </app-data-h-m>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\" *ngIf=\"flagPeriodo === 'S'\">\r\n                                <div class=\"form-group\">\r\n                                    <label for=\"dataOcorrenciaFim\" [attr.class]=\"flagPeriodo === 'S'? 'required': ''\">\r\n                                        {{ 'labels.dataOcorrenciaFim' | translate }}\r\n                                    </label>\r\n                                    <app-data-h-m id=\"dataOcorrenciaFim\"\r\n                                            name=\"dataOcorrenciaFim\"\r\n                                            [required]=\"flagPeriodo === 'S'? true: false\"\r\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                            [(ngModel)]=\"data.dtOcorrenciaFim\"\r\n                                            [ngStyle]=\"{'width':'100%'}\">\r\n                                    </app-data-h-m>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n\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=\"observacao\">{{'labels.observacao' | translate}}</label>\r\n                                    <input type=\"text\" class=\"form-control form-control-sm\"\r\n                                            id=\"observacao\"\r\n                                            name=\"observacao\"\r\n                                            maxlength=\"100\"\r\n                                            [(ngModel)]=\"data.observacao\"\r\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n\r\n                        <div class=\"form-group\">\r\n                            <button class=\"btn btn-success\"\r\n                                    type=\"submit\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                {{ \"buttons.salvar\" | translate }}\r\n                            </button>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </form>\r\n</div>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\"\n                      [formAction]=\"actionForm\"\n                      [itemData]=\"data.laudoId\"\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <table id=\"dtOpeDutoviario\" 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-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-operacao-dutoviario-print-modal (outConfirma)=\"confirmaImpressao($event)\"></app-operacao-dutoviario-print-modal>\n<app-operacao-dutoviario-rel-laudo-modal (outConfirma)=\"confirmaImpressaoLaudo($event)\"></app-operacao-dutoviario-rel-laudo-modal>\n<app-operacao-dutoviario-filter (filtrar)=\"executaFiltro($event)\"></app-operacao-dutoviario-filter>\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-ocorrencia/operacao-dutoviario-ocorrencia.component.html":
/*!***********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-ocorrencia/operacao-dutoviario-ocorrencia.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 *ngIf=\"!showAdd\">\r\n    <div class=\"container-buttons\">\r\n        <div class=\"btn-group\">\r\n            <app-menu-button title=\"{{ 'buttons.novo' | translate }}\" [icon]=\"'icon-plus'\" (click)=\"create()\"\r\n                    [disabled]=\"disabled\">\r\n            </app-menu-button>\r\n            <app-menu-button title=\"{{ 'buttons.visualizar' | translate }}\" [icon]=\"'icon-eye'\" (click)=\"detail()\"\r\n                    [disabled]=\"funcoesService.showButtons.detail(actionForm, dataAux.dtOcorrencia)\">\r\n            </app-menu-button>\r\n            <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'icon-pencil'\" (click)=\"edit()\"\r\n                    [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, dataAux.dtOcorrencia)\">\r\n            </app-menu-button>\r\n            <app-menu-button title=\"{{ 'buttons.excluir' | translate }}\" [icon]=\"'icon-close'\" (click)=\"remove()\"\r\n                    [disabled]=\"disabled || funcoesService.showButtons.remove(actionForm, dataAux.dtOcorrencia)\">\r\n            </app-menu-button>\r\n        </div>\r\n    </div>\r\n        \r\n    <div class=\"row\">\r\n        <div class=\"col-12 mt-4\">\r\n            <table class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\">\r\n                <thead>\r\n                    <tr>\r\n                        <th class=\"text-center\">{{ \"labels.dtOcorrencia\" | translate }}</th>\r\n                        <th>{{ \"labels.observacao\" | translate }}</th>\r\n                    </tr>\r\n                </thead>\r\n                <tbody>\r\n                <tr *ngFor=\"let c of (service.data.listaOcorrencias | removeExcluidos)\" class=\"clickable\" [ngClass]=\"{ info: c === dataAux }\"\r\n                    (click)=\"dataAux = c\">\r\n                    <td class=\"text-center\">{{ c.dtOcorrencia | date: 'dd/MM/yyyy HH:mm' }}</td>\r\n                    <td>{{ c.observacao }}</td>\r\n                </tr>\r\n                <tr *ngIf=\"!hasDados\">\r\n                    <th colspan=\"9\">\r\n                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                    </th>\r\n                </tr>\r\n                </tbody>\r\n            </table>\r\n        </div>\r\n    </div>\r\n</div>\r\n        \r\n<div *ngIf=\"showAdd\">\r\n    <div class=\"row\">\r\n        <div class=\"col-lg-6 container-buttons\">\r\n            <div class=\"btn-group\">\r\n                <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'fa fa-edit'\" (click)=\"edit()\"\r\n                        [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, data.dtOcorrencia)\">\r\n                </app-menu-button>\r\n                <app-menu-button title=\"{{ 'buttons.voltar' | translate }}\" [icon]=\"'fa fa-arrow-left'\" (click)=\"back()\"></app-menu-button>\r\n            </div>\r\n        </div>\r\n        <div class=\"col-lg-6\">\r\n            <app-form-legenda></app-form-legenda>\r\n        </div>\r\n    </div>\r\n\r\n    <div class=\"clearfix\">&nbsp;</div>\r\n\r\n    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\r\n        <div class=\"row\">\r\n            <div class=\"col-12\">\r\n                <div class=\"card\">\r\n                    <div class=\"card-body widget-body\">\r\n                        <app-validacoes></app-validacoes>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                                <div class=\"form-group\">\r\n                                    <label for=\"periodoOcorrencia\" class=\"required\"> {{ 'labels.periodoOcorrencia' | translate }}\r\n                                    </label>\r\n                                    <app-data-h-m id=\"periodoOcorrencia\"\r\n                                            name=\"periodoOcorrencia\"\r\n                                            required=\"true\"\r\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                            [(ngModel)]=\"data.dtOcorrencia\"\r\n                                            (executa)=\"validarDtOcorrencia()\">\r\n                                    </app-data-h-m>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                                <div class=\"form-group\">\r\n                                    <label for=\"ate\" class=\"required\">\r\n                                        {{ 'labels.ate' | translate }}\r\n                                    </label>\r\n                                    <app-data-h-m id=\"ate\"\r\n                                            name=\"ate\"\r\n                                            required=\"true\"\r\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                            [(ngModel)]=\"data.dtOcorrenciaFim\"\r\n                                            (executa)=\"validarDtOcorrenciaFim()\">\r\n                                    </app-data-h-m>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n\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=\"observacao\" class=\"required\">{{'labels.observacao' | translate}}</label>\r\n                                    <textarea type=\"text\" class=\"form-control form-control-sm\"\r\n                                            id=\"observacao\"\r\n                                            name=\"observacao\"\r\n                                            maxlength=\"250\"\r\n                                            rows=\"3\"\r\n                                            required\r\n                                            [(ngModel)]=\"data.observacao\"\r\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                    </textarea>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n\r\n                        <div class=\"form-group\">\r\n                            <button class=\"btn btn-success\"\r\n                                    type=\"submit\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                {{ \"buttons.salvar\" | translate }}\r\n                            </button>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </form>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-operador/operacao-dutoviario-operador.component.html":
/*!*******************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-operador/operacao-dutoviario-operador.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 *ngIf=\"!showAdd\">\r\n    <div class=\"container-buttons\">\r\n        <div class=\"btn-group\">\r\n            <app-menu-button title=\"{{ 'buttons.novo' | translate }}\" [icon]=\"'icon-plus'\" (click)=\"create()\"\r\n                    [disabled]=\"disabled\">\r\n            </app-menu-button>\r\n            <app-menu-button title=\"{{ 'buttons.visualizar' | translate }}\" [icon]=\"'icon-eye'\" (click)=\"detail()\"\r\n                    [disabled]=\"funcoesService.showButtons.detail(actionForm, dataAux.operadorId)\">\r\n            </app-menu-button>\r\n            <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'icon-pencil'\" (click)=\"edit()\"\r\n                    [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, dataAux.operadorId)\">\r\n            </app-menu-button>\r\n            <app-menu-button title=\"{{ 'buttons.excluir' | translate }}\" [icon]=\"'icon-close'\" (click)=\"remove()\"\r\n                    [disabled]=\"disabled || funcoesService.showButtons.remove(actionForm, dataAux.operadorId)\">\r\n            </app-menu-button>\r\n        </div>\r\n    </div>\r\n        \r\n    <div class=\"row\">\r\n        <div class=\"col-12 mt-4\">\r\n            <table class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\">\r\n                <thead>\r\n                    <tr>\r\n                        <th>{{ \"labels.operador\" | translate }}</th>\r\n                        <th class=\"text-center\">{{ \"labels.comeco\" | translate }}</th>\r\n                        <th class=\"text-center\">{{ \"labels.final\" | translate }}</th>\r\n                    </tr>\r\n                </thead>\r\n                <tbody>\r\n                <tr *ngFor=\"let c of (service.data.listaOperadores | removeExcluidos)\" class=\"clickable\" [ngClass]=\"{ info: c === dataAux }\"\r\n                    (click)=\"dataAux = c\">\r\n                    <td>{{ c.operador.descrOperador }}</td>\r\n                    <td class=\"text-center\">{{ c.dtInicial | date: 'dd/MM/yyyy HH:mm' }}</td>\r\n                    <td class=\"text-center\">{{ c.dtFinal | date: 'dd/MM/yyyy HH:mm' }}</td>\r\n                </tr>\r\n                <tr *ngIf=\"!hasDados\">\r\n                    <th colspan=\"9\">\r\n                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                    </th>\r\n                </tr>\r\n                </tbody>\r\n            </table>\r\n        </div>\r\n    </div>\r\n</div>\r\n        \r\n<div *ngIf=\"showAdd\">\r\n    <div class=\"row\">\r\n        <div class=\"col-lg-6 container-buttons\">\r\n            <div class=\"btn-group\">\r\n                <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'fa fa-edit'\" (click)=\"edit()\"\r\n                        [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, data.operadorId)\">\r\n                </app-menu-button>\r\n                <app-menu-button title=\"{{ 'buttons.voltar' | translate }}\" [icon]=\"'fa fa-arrow-left'\" (click)=\"back()\"></app-menu-button>\r\n            </div>\r\n        </div>\r\n        <div class=\"col-lg-6\">\r\n            <app-form-legenda></app-form-legenda>\r\n        </div>\r\n    </div>\r\n\r\n    <div class=\"clearfix\">&nbsp;</div>\r\n\r\n    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\r\n        <div class=\"row\">\r\n            <div class=\"col-12\">\r\n                <div class=\"card\">\r\n                    <div class=\"card-body widget-body\">\r\n                        <app-validacoes></app-validacoes>\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=\"observacao\" class=\"required\">{{'labels.operador' | translate}}</label>\r\n                                    <app-combo-padrao id=\"operador\"\r\n                                                        name=\"operador\"\r\n                                                        required=\"true\"\r\n                                                        tabela=\"Operador\"\r\n                                                        descricao=\"DescrOperador\"\r\n                                                        chave=\"CodOperador\"\r\n                                                        [(ngModel)]=\"data.operadorId\"\r\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                    </app-combo-padrao>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                                <div class=\"form-group\">\r\n                                    <label for=\"dataIni\" class=\"required\"> {{ 'labels.dataIni' | translate }}\r\n                                    </label>\r\n                                    <app-data-h-m id=\"dataIni\"\r\n                                            name=\"dataIni\"\r\n                                            required=\"true\"\r\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                            [(ngModel)]=\"data.dtInicial\"\r\n                                            (executa)=\"validarDtInicial()\">\r\n                                    </app-data-h-m>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                                <div class=\"form-group\">\r\n                                    <label for=\"dataFim\" class=\"required\">\r\n                                        {{ 'labels.dataFim' | translate }}\r\n                                    </label>\r\n                                    <app-data-h-m id=\"dataFim\"\r\n                                            name=\"dataFim\"\r\n                                            required=\"true\"\r\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                            [(ngModel)]=\"data.dtFinal\"\r\n                                            (executa)=\"validarDtFinal()\">\r\n                                    </app-data-h-m>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n\r\n                        <div class=\"form-group\">\r\n                            <button class=\"btn btn-success\"\r\n                                    type=\"submit\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                {{ \"buttons.salvar\" | translate }}\r\n                            </button>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </form>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-origem-destino/operacao-dutoviario-origem-destino.component.html":
/*!*******************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-origem-destino/operacao-dutoviario-origem-destino.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 *ngIf=\"!showAdd\">\r\n    <div class=\"container-buttons\">\r\n        <div class=\"btn-group\">\r\n            <app-menu-button title=\"{{ 'buttons.novo' | translate }}\" [icon]=\"'icon-plus'\" (click)=\"create()\"\r\n                    [disabled]=\"disabled\">\r\n            </app-menu-button>\r\n            <app-menu-button title=\"{{ 'buttons.visualizar' | translate }}\" [icon]=\"'icon-eye'\" (click)=\"detail()\"\r\n                    [disabled]=\"funcoesService.showButtons.detail(actionForm, dataAux.nomeTanque)\">\r\n            </app-menu-button>\r\n            <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'icon-pencil'\" (click)=\"edit()\"\r\n                    [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, dataAux.nomeTanque)\">\r\n            </app-menu-button>\r\n            <app-menu-button title=\"{{ 'buttons.excluir' | translate }}\" [icon]=\"'icon-close'\" (click)=\"remove()\"\r\n                    [disabled]=\"disabled || funcoesService.showButtons.remove(actionForm, dataAux.nomeTanque)\">\r\n            </app-menu-button>\r\n        </div>\r\n    </div>\r\n        \r\n    <div class=\"row\">\r\n        <div class=\"col-12 mt-4\">\r\n            <table class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\">\r\n                <thead>\r\n                <tr>\r\n                    <th>{{ \"labels.nomeTanque\" | translate }}</th>\r\n                    <th class=\"text-right\">{{ \"labels.volumeAmbiente\" | translate }}</th>\r\n                    <th class=\"text-right\">{{ \"labels.volume20g\" | translate }}</th>\r\n                    <th class=\"text-right\">{{ \"labels.massaKg\" | translate }}</th>\r\n                    <th class=\"text-right\">{{ \"labels.densidade\" | translate }}</th>\r\n                </tr>\r\n                </thead>\r\n                <tbody>\r\n                <tr *ngFor=\"let c of (service.data.listaOrigensDestinos | removeExcluidos)\" class=\"clickable\" [ngClass]=\"{ info: c === dataAux }\"\r\n                    (click)=\"dataAux = c\">\r\n                    <td>{{ c.nomeTanque }}</td>\r\n                    <td class=\"text-right\">{{ c.litrosAmb | formatCurrency: 0 }}</td>\r\n                    <td class=\"text-right\">{{ c.litros | formatCurrency: 0 }}</td>\r\n                    <td class=\"text-right\">{{ c.kilos | formatCurrency: 0 }}</td>\r\n                    <td class=\"text-right\">{{ c.densidade | formatCurrency: 5}}</td>\r\n                </tr>\r\n                <tr *ngIf=\"!hasDados\">\r\n                    <th colspan=\"9\">\r\n                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                    </th>\r\n                </tr>\r\n                </tbody>\r\n            </table>\r\n        </div>\r\n    </div>\r\n</div>\r\n        \r\n<div *ngIf=\"showAdd\">\r\n    <div class=\"row\">\r\n        <div class=\"col-lg-6 container-buttons\">\r\n            <div class=\"btn-group\">\r\n                <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'fa fa-edit'\" (click)=\"edit()\"\r\n                        [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, data.nomeTanque)\">\r\n                </app-menu-button>\r\n                <app-menu-button title=\"{{ 'buttons.voltar' | translate }}\" [icon]=\"'fa fa-arrow-left'\" (click)=\"back()\"></app-menu-button>\r\n            </div>\r\n        </div>\r\n        <div class=\"col-lg-6\">\r\n            <app-form-legenda></app-form-legenda>\r\n        </div>\r\n    </div>\r\n\r\n    <div class=\"clearfix\">&nbsp;</div>\r\n\r\n    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\r\n        <div class=\"row\">\r\n            <div class=\"col-12\">\r\n                <div class=\"card\">\r\n                    <div class=\"card-body widget-body\">\r\n                        <app-validacoes></app-validacoes>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-3\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"nomeTanque\" class=\"required\">{{'labels.nomeTanque' | translate}}</label>\r\n                                    <input id=\"nomeTanque\"\r\n                                            name=\"nomeTanque\"\r\n                                            type=\"text\"\r\n                                            maxlength=\"20\"\r\n                                            class=\"form-control form-control-sm\"\r\n                                            required\r\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                            [(ngModel)]=\"data.nomeTanque\" />\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-2\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"volumeAmbiente\">{{'labels.volumeAmbiente' | translate}}</label>\r\n                                    <input id=\"volumeAmbiente\"\r\n                                            name=\"volumeAmbiente\"\r\n                                            type=\"text\"\r\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                            currencyMask\r\n                                            [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                            [(ngModel)]=\"data.litrosAmb\"\r\n                                            maxlength=\"15\"\r\n                                            class=\"form-control form-control-sm\" />\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-2\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"volume20g\">{{'labels.volume20g' | translate}}</label>\r\n                                    <input id=\"volume20g\"\r\n                                            name=\"volume20g\"\r\n                                            type=\"text\"\r\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                            currencyMask\r\n                                            [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                            [(ngModel)]=\"data.litros\"\r\n                                            maxlength=\"15\"\r\n                                            class=\"form-control form-control-sm\" />\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-2\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"massaKg\">{{'labels.massaKg' | translate}}</label>\r\n                                    <input id=\"massaKg\"\r\n                                            name=\"massaKg\"\r\n                                            type=\"text\"\r\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                            currencyMask\r\n                                            [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                            [(ngModel)]=\"data.kilos\"\r\n                                            maxlength=\"15\"\r\n                                            class=\"form-control form-control-sm\" />\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-2\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"densidade\">{{'labels.densidade' | translate}}</label>\r\n                                    <input id=\"densidade\"\r\n                                            name=\"densidade\"\r\n                                            type=\"text\"\r\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                            currencyMask\r\n                                            [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 5 }\"\r\n                                            [(ngModel)]=\"data.densidade\"\r\n                                            maxlength=\"8\"\r\n                                            class=\"form-control form-control-sm\" />\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n\r\n                        <div class=\"form-group\">\r\n                            <button class=\"btn btn-success\"\r\n                                    type=\"submit\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                {{ \"buttons.salvar\" | translate }}\r\n                            </button>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </form>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-print-modal/operacao-dutoviario-print-modal.component.html":
/*!*************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-print-modal/operacao-dutoviario-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/operacao/operacao-dutoviario/operacao-dutoviario-rateio/operacao-dutoviario-rateio.component.html":
/*!***************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-rateio/operacao-dutoviario-rateio.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.listaRateio\" [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\" *ngIf=\"!!data\">\n  <form autocomplete=\"off\" class=\"form\" #form=\"ngForm\" (ngSubmit)=\"ok(form)\">\n    <app-card-container tituloCard=\"\">\n      <div class=\"row\">\n        <div class=\"col-lg-6 col-md-8 col-sm-12\">\n          <div class=\"row\">\n            <div class=\"col-lg-12\">\n              <div class=\"form-group form-group-sm\">\n                <app-input-description label=\"produto\" [valueID]=\"data?.material?.materialId\"\n                  [valueDescription]=\"data.material?.fantasia\">\n                </app-input-description>\n              </div>\n            </div>\n          </div>\n          <div class=\"row\">\n            <div class=\"col-lg-8\">\n              <div class=\"row\">\n                <div class=\"col-lg-6\">\n                  <div class=\"form-group form-group-sm\">\n                    <label for=\"deposito\">{{'labels.deposito' | translate}}</label>\n                    <input type=\"text\" name=\"deposito\" class=\"form-control form-control-sm\" value=\"{{rateio?.deposito}}\"\n                      disabled>\n                  </div>\n                </div>\n                <div class=\"col-lg-6\">\n                  <div class=\"form-group form-group-sm\">\n                    <label for=\"totalRecebido\">{{'labels.totalRecebido' | translate}}</label>\n                    <input type=\"text\" name=\"totalRecebido\" class=\"form-control form-control-sm\"\n                      value=\"{{rateio?.totalKilos}}\" disabled>\n                  </div>\n                </div>\n              </div>\n              <div class=\"row\">\n                <div class=\"col-lg-6\">\n                  <div class=\"form-group form-group-sm\">\n                    <label for=\"kilos\">{{\"labels.kilos\" | translate}}</label>\n                    <input type=\"text\" name=\"kilos\" class=\"form-control form-control-sm\"\n                      [(ngModel)]=\"rateio.kilosRecebe\" currencyMask [options]=\"funcoesService.optionCurrency()\"\n                      [disabled]=\"!isEdit\">\n                  </div>\n                </div>\n                <div class=\"col-lg-6\">\n                  <div class=\"form-group form-group-sm\">\n                    <label for=\"litros\">{{'labels.litros' | translate}}</label>\n                    <input type=\"text\" name=\"litros\" class=\"form-control form-control-sm\"\n                      [(ngModel)]=\"rateio.litrosRecebe\" currencyMask [options]=\"funcoesService.optionCurrency()\"\n                      [disabled]=\"!isEdit\">\n                  </div>\n                </div>\n              </div>\n            </div>\n            <div class=\"col-lg-4\">\n              <div class=\"row\">\n                <div class=\"col-12 mb-2\">\n                  <button class=\"btn btn-success btn-block\" type=\"submit\" [disabled]=\"!isEdit\">\n                    {{ 'buttons.ok' | translate }}\n                  </button>\n                </div>\n                <div class=\"col-12\">\n                  <button class=\"btn btn-success btn-block\" type=\"button\" (click)=\"cancelar()\" [disabled]=\"!isEdit\">\n                    {{ 'buttons.cancelar' | translate }}\n                  </button>\n                </div>\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n    </app-card-container>\n  </form>\n\n  <app-card-container *ngIf=\"!!dadosRateio\">\n    <table class=\"table table-striped table-bordered table-hover nowrap table-sm table-responsive\">\n      <tr>\n        <th></th>\n        <th> {{\"labels.modo\" | translate}} </th>\n        <th> {{\"labels.deposito\" | translate}} </th>\n        <th> {{\"labels.cliente\" | translate}} </th>\n        <th> {{\"labels.kilos\" | translate}} </th>\n        <th> {{\"labels.litros\" | translate}} </th>\n      </tr>\n      <tbody>\n        <tr *ngFor=\"let val of dadosRateio; let i = index\">\n          <td style=\"width: 20px;\" class=\"text-center\"> <button class=\"btn btn-sm\"><i class=\"fa fa-edit\"\n                (click)=\"selected(val)\"></i></button>\n          </td>\n          <td class=\"px-100-c\"> {{ val?.sitReg === '1' ? 'Calculado' : 'Informado' }} </td>\n          <td class=\"px-200-l\"> {{ val?.deposito }} </td>\n          <td class=\"w-100\"> {{ val?.fantasia }} </td>\n          <td class=\"px-100-r\"> {{ val?.kilosRecebe | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\"> {{ val?.litrosRecebe | formatCurrency: 0 }} </td>\n        </tr>\n        <tr *ngIf=\"!hasDados\">\n          <ng-container>\n            <th colspan=\"10\">{{'messages.nenhumRegistroEncontrado' | translate }}</th>\n          </ng-container>\n        </tr>\n      </tbody>\n    </table>\n  </app-card-container>\n  <app-card-container [tituloCard]=\"'resumoPorCliente'\" *ngIf=\"!!resumoPorCliente\">\n    <table class=\"table table-striped table-bordered table-hover nowrap table-sm table-responsive\">\n      <tr>\n        <th> {{\"labels.cliente\" | translate}} </th>\n        <th> {{\"labels.kilosManif\" | translate}} </th>\n        <th> {{\"labels.litrosManif\" | translate}} </th>\n        <th> {{\"labels.kilosRateio\" | translate}} </th>\n        <th> {{\"labels.litrosRateio\" | translate}} </th>\n        <th> {{\"labels.kilosDif\" | translate}} </th>\n        <th> {{\"labels.litrosDif\" | translate}} </th>\n        <th> {{\"labels.kilosAntecip\" | translate}} </th>\n        <th> {{\"labels.litrosAntecip\" | translate}} </th>\n      </tr>\n      <tbody>\n        <tr *ngFor=\"let val of resumoPorCliente; let i = index\">\n          <td class=\"w-100\"> {{ val?.fantasia }} </td>\n          <td class=\"px-100-r\"> {{ val?.kilosManif | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\"> {{ val?.litrosManif | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\"> {{ val?.kilosRecebe | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\"> {{ val?.litrosRecebe | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\"> {{ val?.kilosDif | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\"> {{ val?.litrosDif | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\"> {{ val?.kilosAntecip | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\"> {{ val?.litrosAntecip | formatCurrency: 0 }} </td>\n        </tr>\n        <tr *ngIf=\"!hasResumoPorCliente\">\n          <ng-container>\n            <th colspan=\"14\">{{'messages.nenhumRegistroEncontrado' | translate }}</th>\n          </ng-container>\n        </tr>\n      </tbody>\n    </table>\n  </app-card-container>\n  <app-card-container [tituloCard]=\"'resumoPorDeposito'\">\n    <table class=\"table table-striped table-bordered table-hover nowrap table-sm table-responsive\">\n      <thead>\n        <tr>\n          <th> {{\"labels.deposito\" | translate}} </th>\n          <th> {{\"labels.kilos\" | translate}} </th>\n          <th> {{\"labels.litros\" | translate}} </th>\n          <th> {{\"labels.kilosRateio\" | translate}} </th>\n          <th> {{\"labels.litrosRateio\" | translate}} </th>\n          <th> {{\"labels.kilosDif\" | translate}} </th>\n          <th> {{\"labels.litrosDif\" | translate}} </th>\n          <th> {{\"labels.kilosAntecip\" | translate}} </th>\n          <th> {{\"labels.litrosAntecip\" | translate}} </th>\n          <th class=\"empty\"></th>\n        </tr>\n      </thead>\n      <tbody>\n        <tr *ngFor=\"let val of resumoPorDeposito; let i = index\"\n          [ngClass]=\"{ 'warning': depositoComDiferenca === val.deposito }\">\n          <td class=\"px-200-l\"> {{ val?.deposito }} </td>\n          <td class=\"px-100-r\"> {{ val?.kilos | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\"> {{ val?.litros | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\"> {{ val?.kilosRecebe | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\"> {{ val?.litrosRecebe | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\"> {{ val?.kilosDif | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\"> {{ val?.litrosDif | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\"> {{ val?.kilosAntecip | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\"> {{ val?.litrosAntecip | formatCurrency: 0 }} </td>\n          <td class=\"empty\"></td>\n        </tr>\n        <tr *ngIf=\"!hasResumoPorDeposito\">\n          <ng-container>\n            <th colspan=\"14\">{{'messages.nenhumRegistroEncontrado' | translate }}</th>\n          </ng-container>\n        </tr>\n      </tbody>\n    </table>\n  </app-card-container>\n\n  <div class=\"row\">\n    <div class=\"col-2 mr-2\">\n      <button class=\"btn btn-warning btn-block\" type=\"button\" (click)=\"refazerRateio()\">\n        {{ 'buttons.rateio' | translate }}\n      </button>\n    </div>\n    <div class=\"col-2\">\n      <button class=\"btn btn-success btn-block\" type=\"button\" (click)=\"gravarRateio()\">\n        {{ 'buttons.gravar' | translate }}\n      </button>\n    </div>\n  </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-rel-laudo-modal/operacao-dutoviario-rel-laudo-modal.component.html":
/*!*********************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-rel-laudo-modal/operacao-dutoviario-rel-laudo-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=\"modalRelLaudo\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n  <div class=\"modal-dialog modal-md\">\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.relatorioLaudoOperacaoDutoviario' | 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-3 col-12\">\r\n              <div class=\"form-group form-group-sm\">\r\n                <label for=\"regLaudo\">{{'labels.regLaudo' | translate}}</label>\r\n                <input id=\"regLaudo\"\r\n                  name=\"regLaudo\"\r\n                  class=\"form-control form-control-sm\"\r\n                  type=\"text\"\r\n                  mask=\"9999\"\r\n                  autofocus\r\n                  disabled\r\n                  [(ngModel)]=\"service.filtroRelLaudo.laudoId\" />\r\n              </div>\r\n            </div>\r\n          </div>\r\n          <div class=\"row\">\r\n            <div class=\"col-md-6\">\r\n              <div class=\"form-group form-group-sm\">\r\n                <label for=\"tipoDeLaudo\">{{'labels.tipoDeLaudo' | translate}}</label>\r\n                <app-combo-padrao id=\"tipoDeLaudo\"\r\n                  name=\"tipoDeLaudo\"\r\n                  [(ngModel)]=\"service.filtroRelLaudo.laudoRelId\"\r\n                  (ngModelChange)=\"trataTipoLaudo($event)\"\r\n                  tabela=\"TipoLaudoRel\"\r\n                  chave=\"CodLaudoRel\"\r\n                  descricao=\"DescrLaudoRel\"\r\n                  ativos=\"true\"\r\n                  required=\"true\">\r\n                </app-combo-padrao>\r\n              </div>\r\n            </div>\r\n          </div>\r\n          <div class=\"row\">\r\n            <div class=\"col-lg-6\">\r\n              <div class=\"custom-control custom-checkbox\">\r\n                  <input id=\"apresLitros\"\r\n                         name=\"apresLitros\"\r\n                         [ngModel]=\"service.filtroRelLaudo.apresentaLitros === 'S'\"\r\n                         (ngModelChange)=\"service.filtroRelLaudo.apresentaLitros = $event ? 'S' : 'N'\"\r\n                         class=\"custom-control-input checkbox-success\"\r\n                         type=\"checkbox\"\r\n                  />\r\n                  <label class=\"custom-control-label\" for=\"apresLitros\">\r\n                      {{ \"labels.apresLitros\" | translate }}\r\n                  </label>\r\n              </div>\r\n            </div>\r\n          </div>\r\n          <div class=\"row\">\r\n            <div class=\"col-lg-6\">\r\n              <div class=\"custom-control custom-checkbox\">\r\n                  <input id=\"consideraLinhas\"\r\n                          name=\"consideraLinhas\"\r\n                          [ngModel]=\"service.filtroRelLaudo.consideraLinhas === 'S'\"\r\n                          (ngModelChange)=\"service.filtroRelLaudo.consideraLinhas = $event ? 'S' : 'N'\"\r\n                          class=\"custom-control-input checkbox-success\"\r\n                          type=\"checkbox\"\r\n                  />\r\n                  <label class=\"custom-control-label\" for=\"consideraLinhas\">\r\n                      {{ \"labels.consideraLinhas\" | translate }}\r\n                  </label>\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\"\r\n            [disabled]=\"service.filtroRelLaudo.laudoRelId == ''\">{{ 'buttons.imprimir' | translate }}</button>\r\n          <button type=\"button\" class=\"btn btn-small btn-default\" data-dismiss=\"modal\">\r\n            {{ 'buttons.cancelar' | translate }}\r\n            </button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-tanque/operacao-dutoviario-tanque.component.html":
/*!***************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-tanque/operacao-dutoviario-tanque.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 *ngIf=\"!showAdd\">\r\n    <div class=\"container-buttons\">\r\n        <div class=\"btn-group\">\r\n            <app-menu-button title=\"{{ 'buttons.novo' | translate }}\" [icon]=\"'icon-plus'\" (click)=\"create()\"\r\n                [disabled]=\"disabled\">\r\n            </app-menu-button>\r\n            <app-menu-button title=\"{{ 'buttons.visualizar' | translate }}\" [icon]=\"'icon-eye'\" (click)=\"detail()\"\r\n                [disabled]=\"funcoesService.showButtons.detail(actionForm, dataAux.tanqueId)\">\r\n            </app-menu-button>\r\n            <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'icon-pencil'\" (click)=\"edit()\"\r\n                [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, dataAux.tanqueId)\">\r\n            </app-menu-button>\r\n            <app-menu-button title=\"{{ 'buttons.excluir' | translate }}\" [icon]=\"'icon-close'\" (click)=\"remove()\"\r\n                [disabled]=\"disabled || funcoesService.showButtons.remove(actionForm, dataAux.tanqueId)\">\r\n            </app-menu-button>\r\n        </div>\r\n    </div>\r\n\r\n    <div class=\"row\">\r\n        <div class=\"col-6 mt-4\">\r\n            <table class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\">\r\n                <thead>\r\n                    <tr>\r\n                        <th>{{ \"labels.tanques\" | translate }}</th>\r\n                    </tr>\r\n                </thead>\r\n                <tbody>\r\n                    <tr *ngFor=\"let c of (service.data.listaTanques | removeExcluidos)\" class=\"clickable\"\r\n                        [ngClass]=\"{ info: c === dataAux }\" (click)=\"dataAux = c\">\r\n                        <td>{{ c.tanqueId }}</td>\r\n                    </tr>\r\n                    <tr *ngIf=\"!hasDados\">\r\n                        <th colspan=\"9\">\r\n                            {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                        </th>\r\n                    </tr>\r\n                </tbody>\r\n            </table>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<div *ngIf=\"showAdd\">\r\n    <div class=\"row\">\r\n        <div class=\"col-lg-6 container-buttons\">\r\n            <div class=\"btn-group\">\r\n                <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'fa fa-edit'\" (click)=\"edit()\"\r\n                    [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, data.tanqueId)\">\r\n                </app-menu-button>\r\n                <app-menu-button title=\"{{ 'buttons.voltar' | translate }}\" [icon]=\"'fa fa-arrow-left'\"\r\n                    (click)=\"back()\"></app-menu-button>\r\n            </div>\r\n        </div>\r\n        <div class=\"col-lg-6\">\r\n            <app-form-legenda></app-form-legenda>\r\n        </div>\r\n    </div>\r\n\r\n    <div class=\"clearfix\">&nbsp;</div>\r\n\r\n    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\r\n        <div class=\"row\">\r\n            <div class=\"col-12\">\r\n                <div class=\"card\">\r\n                    <div class=\"card-body widget-body\">\r\n                        <app-validacoes></app-validacoes>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-3 col-md-4 col-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <app-pesquisa-saldo-lote-deposito id=\"deposito\" name=\"deposito\" required=\"true\"\r\n                                        [label]=\"'deposito'\" [modalTitle]=\"'deposito'\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                        [field]=\"'tanqueId'\" \r\n                                        [options]=\"saldoDepositoOptions\" \r\n                                        [(ngModel)]=\"data.tanqueId\"\r\n                                        (ngModelChange)=\"validarDuplicidadeTanque()\">\r\n                                    </app-pesquisa-saldo-lote-deposito>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n\r\n                        <div class=\"form-group\">\r\n                            <button class=\"btn btn-success\" type=\"submit\"\r\n                                [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                {{ \"buttons.salvar\" | translate }}\r\n                            </button>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </form>\r\n</div>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<form class=\"form\" #f=\"ngForm\">\r\n    <app-form-legenda></app-form-legenda>\r\n    <app-validacoes></app-validacoes>\r\n    <div *ngFor=\"let c of (service.data.timeLogs | removeExcluidos)\">\r\n        <div class=\"row\">\r\n            <div class=\"col-lg-6 col-md-6\">\r\n                <div class=\"form-group \">\r\n                    <label for=\"descricao{{c.ocorrenciaLaudoId}}\">{{'labels.descricao' | translate}}</label>\r\n                    <input type=\"text\" class=\"form-control form-control-sm\" id=\"descricao{{c.ocorrenciaLaudoId}}\" name=\"descricao{{c.ocorrenciaLaudoId}}\"\r\n                        [(ngModel)]=\"c.ocorrenciaLaudo.descricao\" disabled>\r\n                </div>\r\n            </div>\r\n            <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                <div class=\"form-group\">\r\n                    <label for=\"data{{c.ocorrenciaLaudoId}}\">\r\n                        {{ 'labels.data' | translate }}\r\n                    </label>\r\n                    <app-data-h-m id=\"data{{c.ocorrenciaLaudoId}}\"\r\n                                name=\"data{{c.ocorrenciaLaudoId}}\"\r\n                                [disabled]=\"disabled\"\r\n                                [(ngModel)]=\"c.dtOcorrencia\"\r\n                                (executa)=\"validarDtOcorrencia($event)\">\r\n                    </app-data-h-m>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</form>");

/***/ }),

/***/ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-antecipacao/operacao-dutoviario-antecipacao-novo/operacao-dutoviario-antecipacao-novo.component.ts":
/*!***************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-antecipacao/operacao-dutoviario-antecipacao-novo/operacao-dutoviario-antecipacao-novo.component.ts ***!
  \***************************************************************************************************************************************************************************/
/*! exports provided: OperacaoDutoviarioAntecipacaoNovoComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDutoviarioAntecipacaoNovoComponent", function() { return OperacaoDutoviarioAntecipacaoNovoComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../operacao-dutoviario.service */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.service.ts");
/* harmony import */ var _operacao_dutoviario_antecipacao_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../operacao-dutoviario-antecipacao.model */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-antecipacao/operacao-dutoviario-antecipacao.model.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_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_4__ = __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_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../../../../shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __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_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_8__ = __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 _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __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 OperacaoDutoviarioAntecipacaoNovoComponent = /** @class */ (function () {
    function OperacaoDutoviarioAntecipacaoNovoComponent(message, service, funcoes) {
        this.message = message;
        this.service = service;
        this.funcoes = funcoes;
        this.ok = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.dadosEdit = new _operacao_dutoviario_antecipacao_model__WEBPACK_IMPORTED_MODULE_2__["AntecipacaoDadosEditarDto"]();
        this.dataEdit = new _operacao_dutoviario_antecipacao_model__WEBPACK_IMPORTED_MODULE_2__["AntecipacaoDepositoEditar"]();
        this.isEditItem = false;
        this.dataSelected = new _operacao_dutoviario_antecipacao_model__WEBPACK_IMPORTED_MODULE_2__["AntecipacaoClienteDto"]();
        this.title = "titles.operacaoDutoviario";
    }
    OperacaoDutoviarioAntecipacaoNovoComponent.prototype.onAddItem = function () {
        var _this = this;
        this.service.antecipacaoDadosEdit({
            stoLaudoId: this.stoLaudoId,
            item: this.item,
            isEditItem: false,
            autorizacao: 0
        }).subscribe(function (resp) {
            _this.dataEdit = new _operacao_dutoviario_antecipacao_model__WEBPACK_IMPORTED_MODULE_2__["AntecipacaoDepositoEditar"]();
            _this.isEditItem = false;
            _this.dadosEdit = resp;
            if (!!resp) {
                if (_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["ArrayUtilsStaticService"].any(resp.clientes)) {
                    _this.dataEdit.codDest = resp.clientes[0].codDest;
                    _this.selectedCliente();
                }
                if (_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["ArrayUtilsStaticService"].any(resp.depositos)) {
                    _this.selectedDeposito();
                }
            }
            _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["ModalUtilsStaticService"].openModal("operacao-dutoviario-antecipacao-novo");
        });
    };
    OperacaoDutoviarioAntecipacaoNovoComponent.prototype.onEditItem = function (dataSelected) {
        return __awaiter(this, void 0, void 0, function () {
            var verificaLiberacao, m;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        this.dataSelected = dataSelected;
                        return [4 /*yield*/, this.service.verificaLiberacao(this.dataSelected.autorizacao).toPromise()];
                    case 1:
                        verificaLiberacao = _a.sent();
                        if (!verificaLiberacao.isValid) {
                            m = this.message.translate("messages.autorizacaoComLiberacao");
                            this.message.warning(this.title, "messages.operacaoNaoPermitidaByParam", { param: m });
                            return [2 /*return*/];
                        }
                        this.service.antecipacaoDadosEdit({
                            stoLaudoId: this.stoLaudoId,
                            item: this.item,
                            isEditItem: true,
                            autorizacao: this.dataSelected.autorizacao
                        }).subscribe(function (resp) {
                            _this.dataEdit = new _operacao_dutoviario_antecipacao_model__WEBPACK_IMPORTED_MODULE_2__["AntecipacaoDepositoEditar"]();
                            _this.isEditItem = true;
                            _this.dadosEdit = resp;
                            if (!!resp) {
                                if (_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["ArrayUtilsStaticService"].any(resp.clientes)) {
                                    _this.dataEdit.codDest = resp.item.codDest;
                                    _this.selectedCliente();
                                }
                                if (_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["ArrayUtilsStaticService"].any(resp.depositos)) {
                                    _this.selectedDepositoEdit();
                                }
                            }
                            _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["ModalUtilsStaticService"].openModal("operacao-dutoviario-antecipacao-novo");
                        });
                        return [2 /*return*/];
                }
            });
        });
    };
    OperacaoDutoviarioAntecipacaoNovoComponent.prototype.onSaveItem = 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 (_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["NumberUtilsStaticService"].toNumber(this.kilos) === 0) {
            this.message.warning(this.title, "messages.naoExisteQuantidadeDisponivelParaAntecipar");
            return;
        }
        this.dataEdit.regLaudo = this.stoLaudoId;
        this.dataEdit.autorizacao = this.isEditItem ? this.dataSelected.autorizacao : 0;
        this.dataEdit.item = this.dataEdit.oCliente.item;
        var m = !this.isEditItem ? "Inclusão" : "Alteração";
        m = this.message.translate("messages.confirmaAntecipacao", { param: m });
        this.message.confirm(this.title, m, null, function () {
            _this.service.antecipacaoSaveEdit(_this.dataEdit).subscribe(function (resp) {
                if (!resp.isValid) {
                    _this.message.warning(_this.title, resp.erros[0].message);
                    return;
                }
                _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["ModalUtilsStaticService"].closeModal("operacao-dutoviario-antecipacao-novo");
                _this.message.success(_this.title, "messages.liberacaoParcialNavioGravadaComSucesso");
                _this.ok.emit(true);
            });
        });
    };
    OperacaoDutoviarioAntecipacaoNovoComponent.prototype.selectedCliente = function (t) {
        var _this = this;
        if (t === void 0) { t = undefined; }
        if (!!t)
            this.dataEdit.item = +t.target.value;
        if (!this.dataEdit.item) {
            this.dataEdit.oCliente = undefined;
            this.dataEdit.item = "";
            this.dataEdit.deposito = "";
            this.dataEdit.oDeposito = undefined;
            this.dataEdit.kilos = undefined;
            this.dataEdit.litros = undefined;
            return;
        }
        this.dataEdit.oCliente = _shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["ObjectUtilsStaticService"].clone(this.dadosEdit.clientes.find(function (c) { return c.item === _this.dataEdit.item; }));
        this.selectedDeposito();
    };
    OperacaoDutoviarioAntecipacaoNovoComponent.prototype.selectedDeposito = function (t) {
        var _this = this;
        if (t === void 0) { t = undefined; }
        var kilosReceb = 0;
        var litrosReceb = 0;
        var kilosAnt = 0;
        var litrosAnt = 0;
        var kilosAntDep = 0;
        var litrosAntDep = 0;
        var kilosManif = 0;
        var litrosManif = 0;
        if (!!t)
            this.dataEdit.deposito = t.target.value;
        if (!this.dataEdit.deposito) {
            this.dataEdit.oDeposito = undefined;
            this.dataEdit.kilos = undefined;
            this.dataEdit.litros = undefined;
            return;
        }
        if (!!this.dataEdit.oCliente) {
            kilosManif = this.dataEdit.oCliente.kilosManif;
            litrosManif = this.dataEdit.oCliente.litrosManif;
            kilosAnt = this.dataEdit.oCliente.kilosAnt;
            litrosAnt = this.dataEdit.oCliente.litrosAnt;
        }
        this.dataEdit.oDeposito = _shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["ObjectUtilsStaticService"].clone(this.dadosEdit.depositos.find(function (c) { return c.deposito === _this.dataEdit.deposito; }));
        if (!!this.dataEdit.oDeposito) {
            kilosReceb = this.dataEdit.oDeposito.kilosRecebe;
            litrosReceb = this.dataEdit.oDeposito.litrosRecebe;
            kilosAntDep = this.dataEdit.oDeposito.kilosAntDep;
            litrosAntDep = this.dataEdit.oDeposito.litrosAntDep;
        }
        kilosReceb = kilosReceb - kilosAntDep;
        litrosReceb = litrosReceb - litrosAntDep;
        if (kilosReceb > kilosManif) {
            kilosReceb = kilosManif;
        }
        if (litrosReceb > litrosManif) {
            litrosReceb = litrosManif;
        }
        this.kilos = kilosManif - kilosAnt;
        this.litros = litrosManif - litrosAnt;
        if (this.kilos > kilosReceb) {
            this.kilos = kilosReceb;
        }
        if (this.litros > litrosReceb) {
            this.litros = litrosReceb;
        }
        if (kilosAnt >= kilosManif) {
            this.kilos = 0;
        }
        if (litrosAnt >= litrosManif) {
            this.litros = 0;
        }
        if (this.litros > 0) {
            this.indice = this.kilos / this.litros;
        }
        this.dataEdit.kilos = Math.round(this.kilos);
        if (this.indice > 0) {
            this.dataEdit.litros = Math.round(this.kilos / this.indice);
        }
        else {
            this.dataEdit.litros = Math.round(this.litros);
        }
    };
    OperacaoDutoviarioAntecipacaoNovoComponent.prototype.selectedDepositoEdit = function () {
        var kilosAnt = this.dadosEdit.item.kilosAnt;
        var litrosAnt = this.dadosEdit.item.litrosAnt;
        var kilosManif = this.dadosEdit.item.kilosManif;
        var litrosManif = this.dadosEdit.item.litrosManif;
        var kilosReceb = this.dadosEdit.item.kilosReceb;
        var litrosReceb = this.dadosEdit.item.litrosReceb;
        var kilosAntDoc = this.dadosEdit.item.kilosAntDoc;
        var litrosAntDoc = this.dadosEdit.item.litrosAntDoc;
        var kilosAntDep = this.dadosEdit.item.kilosAntDep;
        var litrosAntDep = this.dadosEdit.item.litrosAntDep;
        this.dataEdit.kilos = this.dadosEdit.item.kilosAnt;
        this.dataEdit.litros = this.dadosEdit.item.litrosAnt;
        kilosReceb = kilosReceb - kilosAntDep;
        litrosReceb = litrosReceb - litrosAntDep;
        if (kilosReceb > kilosManif) {
            kilosReceb = kilosManif;
        }
        if (litrosReceb > litrosManif) {
            litrosReceb = litrosManif;
        }
        this.kilos = this.valLimite(kilosManif) - kilosAntDoc;
        this.litros = this.valLimite(litrosManif) - litrosAntDoc;
        if (this.kilos > kilosReceb) {
            this.kilos = kilosReceb;
        }
        if (this.litros > litrosReceb) {
            this.litros = litrosReceb;
        }
        if (kilosAntDoc >= this.valLimite(kilosManif)) {
            this.kilos = 0;
        }
        if (litrosAntDoc >= this.valLimite(litrosManif)) {
            this.litros = 0;
        }
        this.kilos = Math.round(this.kilos + kilosAnt);
        this.litros = Math.round(this.litros + litrosAnt);
        if (this.litros > 0)
            this.indice = this.kilos / this.litros;
    };
    OperacaoDutoviarioAntecipacaoNovoComponent.prototype.valLimite = function (value) {
        return (value * this.limite) / 100;
    };
    OperacaoDutoviarioAntecipacaoNovoComponent.prototype.trataKilos = function () {
        if (_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["NumberUtilsStaticService"].toNumber(this.dataEdit.kilos) > 0 &&
            _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["NumberUtilsStaticService"].toNumber(this.indice) > 0) {
            this.dataEdit.litros = Math.round(this.dataEdit.kilos / this.indice);
        }
    };
    OperacaoDutoviarioAntecipacaoNovoComponent.prototype.trataLitros = function () {
        if (_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["NumberUtilsStaticService"].toNumber(this.dataEdit.kilos) === 0 &&
            _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["NumberUtilsStaticService"].toNumber(this.dataEdit.litros) > 0 &&
            _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["NumberUtilsStaticService"].toNumber(this.indice) > 0) {
            this.dataEdit.kilos = Math.round(this.dataEdit.litros * this.indice);
        }
    };
    Object.defineProperty(OperacaoDutoviarioAntecipacaoNovoComponent.prototype, "disabledKilosLitros", {
        get: function () {
            return !this.dataEdit.item || !this.dataEdit.deposito;
        },
        enumerable: true,
        configurable: true
    });
    OperacaoDutoviarioAntecipacaoNovoComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__["MessageService"] },
        { type: _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_1__["OperacaoDutoviarioService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Number)
    ], OperacaoDutoviarioAntecipacaoNovoComponent.prototype, "stoLaudoId", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Number)
    ], OperacaoDutoviarioAntecipacaoNovoComponent.prototype, "item", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Number)
    ], OperacaoDutoviarioAntecipacaoNovoComponent.prototype, "limite", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoDutoviarioAntecipacaoNovoComponent.prototype, "ok", void 0);
    OperacaoDutoviarioAntecipacaoNovoComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-operacao-dutoviario-antecipacao-novo',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-dutoviario-antecipacao-novo.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-antecipacao/operacao-dutoviario-antecipacao-novo/operacao-dutoviario-antecipacao-novo.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__["MessageService"],
            _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_1__["OperacaoDutoviarioService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"]])
    ], OperacaoDutoviarioAntecipacaoNovoComponent);
    return OperacaoDutoviarioAntecipacaoNovoComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDutoviarioAntecipacaoComponent", function() { return OperacaoDutoviarioAntecipacaoComponent; });
/* 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_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_3__ = __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_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_4__ = __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 _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __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_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_8__ = __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 _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_dutoviario_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../operacao-dutoviario.constants */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.constants.ts");
/* harmony import */ var _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../operacao-dutoviario.service */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.service.ts");
/* harmony import */ var _operacao_dutoviario_antecipacao_novo_operacao_dutoviario_antecipacao_novo_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./operacao-dutoviario-antecipacao-novo/operacao-dutoviario-antecipacao-novo.component */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-antecipacao/operacao-dutoviario-antecipacao-novo/operacao-dutoviario-antecipacao-novo.component.ts");
/* harmony import */ var _operacao_dutoviario_antecipacao_model__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./operacao-dutoviario-antecipacao.model */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-antecipacao/operacao-dutoviario-antecipacao.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 __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 OperacaoDutoviarioAntecipacaoComponent = /** @class */ (function (_super) {
    __extends(OperacaoDutoviarioAntecipacaoComponent, _super);
    function OperacaoDutoviarioAntecipacaoComponent(activatedRoute, funcoesService, messageService, service, configuracao, router) {
        var _this = _super.call(this, new _operacao_dutoviario_constants__WEBPACK_IMPORTED_MODULE_10__["OperacaoDutoviarioConstants"](), funcoesService) || this;
        _this.activatedRoute = activatedRoute;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.service = service;
        _this.configuracao = configuracao;
        _this.router = router;
        _this.constantes = new _operacao_dutoviario_constants__WEBPACK_IMPORTED_MODULE_10__["OperacaoDutoviarioConstants"]();
        _this.dadosDeposito = [];
        _this.dadosCliente = [];
        _this.calculado = false;
        _this.title = "titles.operacaoDutoviario";
        _this.dataSelected = new _operacao_dutoviario_antecipacao_model__WEBPACK_IMPORTED_MODULE_13__["AntecipacaoClienteDto"]();
        _this.dados = new _operacao_dutoviario_antecipacao_model__WEBPACK_IMPORTED_MODULE_13__["AntecipacaoDadosDto"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.service.configs.libParNavImp = _this.configuracao.number("OPE", "LibParNavImp");
                _this.service.configs.libParNavCab = _this.configuracao.number("OPE", "LibParNavCab");
                _this.service.configs.libAutomaticaAntecip = _this.configuracao.boolean("OPE", "LibAutomaticaAntecip");
                _this.limite = _this.service.configs.libParNavCab;
            }
        };
        return _this;
    }
    OperacaoDutoviarioAntecipacaoComponent.prototype.ngOnInit = function () {
        return __awaiter(this, void 0, void 0, function () {
            var chave;
            return __generator(this, function (_a) {
                this.configuracao.getConfig(this.constantes.parametrosConfig, this.loadConfig);
                chave = this.activatedRoute.snapshot.paramMap.get("chave");
                if (chave) {
                    this.data = _shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["ObjectUtilsStaticService"].b64ToObj(chave);
                    this.geraDados();
                }
                return [2 /*return*/];
            });
        });
    };
    OperacaoDutoviarioAntecipacaoComponent.prototype.geraDados = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        this.calculado = false;
                        this.ptAntecipacao = 0;
                        this.dataSelected = undefined;
                        _a = this;
                        return [4 /*yield*/, this.service.antecipacaoPreparar(this.data.stoLaudoId).toPromise()];
                    case 1:
                        _a.dados = _b.sent();
                        this.dadosDeposito = _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["ArrayUtilsStaticService"].any(this.dados.depositos) ? this.dados.depositos : [];
                        this.dadosCliente = _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["ArrayUtilsStaticService"].any(this.dados.clientesNaoCalculados) ? this.dados.clientesNaoCalculados : [];
                        return [2 /*return*/];
                }
            });
        });
    };
    OperacaoDutoviarioAntecipacaoComponent.prototype.atualizaDados = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        _a = this;
                        return [4 /*yield*/, this.service.antecipacaoDados(this.data.stoLaudoId).toPromise()];
                    case 1:
                        _a.dados = _b.sent();
                        this.dadosDeposito = this.dados.depositos;
                        this.dadosCliente = this.calculado ? this.dados.clientesCalculados : this.dados.clientesNaoCalculados;
                        return [2 /*return*/];
                }
            });
        });
    };
    OperacaoDutoviarioAntecipacaoComponent.prototype.back = function () {
        this.router.navigate([this.target + "/operacao/operacaoDutoviario/detail/" + this.data.stoLaudoId]);
    };
    OperacaoDutoviarioAntecipacaoComponent.prototype.onRemove = function () {
        var _this = this;
        this.messageService.confirm(this.title, "messages.confirmaExclusaoUltimaAntecipacao", null, function () {
            _this.service.antecipacaoExclui(_this.data.stoLaudoId).subscribe(function (resp) { return __awaiter(_this, void 0, void 0, function () {
                return __generator(this, function (_a) {
                    if (!resp.isValid) {
                        this.messageService.warning(this.title, resp.erros[0].message);
                        return [2 /*return*/];
                    }
                    this.geraDados();
                    this.messageService.success(this.title, "messages.registroExcluidoComSucesso");
                    return [2 /*return*/];
                });
            }); });
        });
    };
    OperacaoDutoviarioAntecipacaoComponent.prototype.onConfirm = function () {
        var _this = this;
        this.messageService.confirm(this.title, "messages.confirmaLiberacaoParcialNavioAntecipacao", null, function () {
            _this.service.antecipacaoGera(_this.data.stoLaudoId).subscribe(function (resp) {
                if (!resp.isValid) {
                    _this.messageService.warning(_this.title, resp.erros[0].message);
                    return;
                }
                _this.messageService.success(_this.title, "messages.liberacaoParcialNavioGravadaComSucesso");
                _this.back();
            });
        });
    };
    OperacaoDutoviarioAntecipacaoComponent.prototype.onCalc = function () {
        return __awaiter(this, void 0, void 0, function () {
            var ptAntecipacao, validPercentual;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        this.calculado = false;
                        ptAntecipacao = this.ptAntecipacao;
                        return [4 /*yield*/, this.service.antecipacaoCalcular(this.data.stoLaudoId, ptAntecipacao).toPromise()];
                    case 1:
                        validPercentual = _a.sent();
                        if (!validPercentual.isValid) {
                            this.messageService.warning(this.title, validPercentual.erros[0].message);
                            return [2 /*return*/];
                        }
                        this.calculado = true;
                        this.ptAntecipacao = undefined;
                        this.atualizaDados();
                        this.messageService.success(this.title, "messages.antecipacaoCalculadaComSucesso");
                        return [2 /*return*/];
                }
            });
        });
    };
    OperacaoDutoviarioAntecipacaoComponent.prototype.onAddItem = function () {
        this.novoModal.onAddItem();
    };
    OperacaoDutoviarioAntecipacaoComponent.prototype.onEditItem = function () {
        this.novoModal.onEditItem(this.dataSelected);
    };
    OperacaoDutoviarioAntecipacaoComponent.prototype.onExecuteEdit = function (e) {
        if (e) {
            this.geraDados();
        }
    };
    OperacaoDutoviarioAntecipacaoComponent.prototype.onExecuteAjuste = function (e) {
        if (e) {
            this.geraDados();
        }
    };
    OperacaoDutoviarioAntecipacaoComponent.prototype.onRemoveItem = function () {
        var _this = this;
        this.messageService.confirm(this.title, "messages.confirmaExclusaoAntecipacao", null, function () {
            _this.service.antecipacaoExcluirEdit({
                regLaudo: _this.data.stoLaudoId,
                item: _this.dataSelected.item,
                autorizacao: _this.dataSelected.autorizacao,
                sequencia: _this.dataSelected.sequencia,
                deposito: _this.dataSelected.deposito,
            }).subscribe(function (resp) { return __awaiter(_this, void 0, void 0, function () {
                return __generator(this, function (_a) {
                    if (!resp.isValid) {
                        this.messageService.warning(this.title, resp.erros[0].message);
                        return [2 /*return*/];
                    }
                    this.geraDados();
                    this.messageService.success(this.title, "messages.registroExcluidoComSucesso");
                    return [2 /*return*/];
                });
            }); });
        });
    };
    Object.defineProperty(OperacaoDutoviarioAntecipacaoComponent.prototype, "disabledConfirm", {
        get: function () {
            return !(this.calculado && _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["ArrayUtilsStaticService"].any(this.dadosCliente));
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDutoviarioAntecipacaoComponent.prototype, "disabledRemove", {
        get: function () {
            return !(!this.calculado && _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["ArrayUtilsStaticService"].any(this.dadosCliente));
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDutoviarioAntecipacaoComponent.prototype, "disabledCalc", {
        get: function () {
            return _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["NumberUtilsStaticService"].isNotPositive(this.ptAntecipacao);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDutoviarioAntecipacaoComponent.prototype, "disabledAddItem", {
        get: function () {
            return !(!this.calculado || !_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["ArrayUtilsStaticService"].any(this.dadosCliente));
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDutoviarioAntecipacaoComponent.prototype, "disabledEditItem", {
        get: function () {
            return !this.dataSelected || !this.dataSelected.sequencia;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDutoviarioAntecipacaoComponent.prototype, "disabledRemoveItem", {
        get: function () {
            return !this.dataSelected || !this.dataSelected.sequencia;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDutoviarioAntecipacaoComponent.prototype, "hasDadosDeposito", {
        get: function () {
            return _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["ArrayUtilsStaticService"].any(this.dadosDeposito);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDutoviarioAntecipacaoComponent.prototype, "hasDadosCliente", {
        get: function () {
            return _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["ArrayUtilsStaticService"].any(this.dadosCliente);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDutoviarioAntecipacaoComponent.prototype, "antecipacaoAutomatica", {
        get: function () {
            return _shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["BooleanUtilsStaticService"].toBoolean(this.service.configs.libAutomaticaAntecip);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDutoviarioAntecipacaoComponent.prototype, "disabledAjuste", {
        get: function () {
            return !this.dataSelected || !this.dataSelected.sequencia;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDutoviarioAntecipacaoComponent.prototype, "hasDadosSemAntecipacao", {
        get: function () {
            return _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["ArrayUtilsStaticService"].any(this.dados.clientesSemAntecipacao);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDutoviarioAntecipacaoComponent.prototype, "lbPtAntecipacao", {
        get: function () {
            return "Permitido Antecipa\u00E7\u00E3o de " + this.limite + " %";
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDutoviarioAntecipacaoComponent.prototype, "lbKilosAntecipacao", {
        get: function () {
            return Math.round(((this.dados.kilosManif * this.limite) / 100) - this.dados.kilosAnt);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDutoviarioAntecipacaoComponent.prototype, "lbLitrosAntecipacao", {
        get: function () {
            return Math.round(((this.dados.litrosManif * this.limite) / 100) - this.dados.litrosAnt);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDutoviarioAntecipacaoComponent.prototype, "isDescarga", {
        get: function () {
            return !!this.dados && this.dados.tipoMov === 'D';
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDutoviarioAntecipacaoComponent.prototype, "isCarga", {
        get: function () {
            return !!this.dados && this.dados.tipoMov === 'C';
        },
        enumerable: true,
        configurable: true
    });
    OperacaoDutoviarioAntecipacaoComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__["MessageService"] },
        { type: _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_11__["OperacaoDutoviarioService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_5__["ConfiguracaoFacade"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_operacao_dutoviario_antecipacao_novo_operacao_dutoviario_antecipacao_novo_component__WEBPACK_IMPORTED_MODULE_12__["OperacaoDutoviarioAntecipacaoNovoComponent"], { static: false }),
        __metadata("design:type", _operacao_dutoviario_antecipacao_novo_operacao_dutoviario_antecipacao_novo_component__WEBPACK_IMPORTED_MODULE_12__["OperacaoDutoviarioAntecipacaoNovoComponent"])
    ], OperacaoDutoviarioAntecipacaoComponent.prototype, "novoModal", void 0);
    OperacaoDutoviarioAntecipacaoComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-operacao-dutoviario-antecipacao',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-dutoviario-antecipacao.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-antecipacao/operacao-dutoviario-antecipacao.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__["MessageService"],
            _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_11__["OperacaoDutoviarioService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_5__["ConfiguracaoFacade"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"]])
    ], OperacaoDutoviarioAntecipacaoComponent);
    return OperacaoDutoviarioAntecipacaoComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-antecipacao/operacao-dutoviario-antecipacao.model.ts":
/*!*****************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-antecipacao/operacao-dutoviario-antecipacao.model.ts ***!
  \*****************************************************************************************************************************/
/*! exports provided: AntecipacaoDepositoDto, AntecipacaoClienteDto, AntecipacaoDadosDto, AntecipacaoClienteEditarDto, AntecipacaoDepositoEditarDto, AntecipacaoDadosEditarDto, AntecipacaoClienteEditarItemDto, AntecipacaoDepositoEditar, AntecipacaoAjusteClienteDto, AntecipacaoAjusteDepBLDto, AntecipacaoAjusteTanqueDto, AntecipacaoDadosAjusteDto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AntecipacaoDepositoDto", function() { return AntecipacaoDepositoDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AntecipacaoClienteDto", function() { return AntecipacaoClienteDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AntecipacaoDadosDto", function() { return AntecipacaoDadosDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AntecipacaoClienteEditarDto", function() { return AntecipacaoClienteEditarDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AntecipacaoDepositoEditarDto", function() { return AntecipacaoDepositoEditarDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AntecipacaoDadosEditarDto", function() { return AntecipacaoDadosEditarDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AntecipacaoClienteEditarItemDto", function() { return AntecipacaoClienteEditarItemDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AntecipacaoDepositoEditar", function() { return AntecipacaoDepositoEditar; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AntecipacaoAjusteClienteDto", function() { return AntecipacaoAjusteClienteDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AntecipacaoAjusteDepBLDto", function() { return AntecipacaoAjusteDepBLDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AntecipacaoAjusteTanqueDto", function() { return AntecipacaoAjusteTanqueDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AntecipacaoDadosAjusteDto", function() { return AntecipacaoDadosAjusteDto; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var AntecipacaoDepositoDto = /** @class */ (function () {
    function AntecipacaoDepositoDto() {
    }
    return AntecipacaoDepositoDto;
}());

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

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

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

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

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

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

var AntecipacaoDepositoEditar = /** @class */ (function () {
    function AntecipacaoDepositoEditar() {
        this.item = "";
        this.deposito = "";
        this.kilos = undefined;
        this.litros = undefined;
    }
    return AntecipacaoDepositoEditar;
}());

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

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

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

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



/***/ }),

/***/ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-clientes-dados/operacao-dutoviario-clientes-dados.component.ts":
/*!***************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-clientes-dados/operacao-dutoviario-clientes-dados.component.ts ***!
  \***************************************************************************************************************************************/
/*! exports provided: OperacaoDutoviarioClientesDadosComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDutoviarioClientesDadosComponent", function() { return OperacaoDutoviarioClientesDadosComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _operacao_dutoviario_clientes_dados_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./operacao-dutoviario-clientes-dados.model */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-clientes-dados/operacao-dutoviario-clientes-dados.model.ts");
/* harmony import */ var _operacao_dutoviario_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../operacao-dutoviario.constants */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.constants.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../operacao-dutoviario.service */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.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 OperacaoDutoviarioClientesDadosComponent = /** @class */ (function () {
    function OperacaoDutoviarioClientesDadosComponent(messageService, service, funcoesService, permissoesUtils) {
        this.messageService = messageService;
        this.service = service;
        this.funcoesService = funcoesService;
        this.permissoesUtils = permissoesUtils;
        this.unidades = [];
        this.dataAux = new _operacao_dutoviario_clientes_dados_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioClientesDados"]();
        this.data = new _operacao_dutoviario_clientes_dados_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioClientesDados"]();
        this.raizenTipoNotas = [];
        this.obrigaTipoNota = false;
        this.mensagens = [];
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
        this.hasDados = false;
        this.constantes = new _operacao_dutoviario_constants__WEBPACK_IMPORTED_MODULE_6__["OperacaoDutoviarioConstants"]();
    }
    OperacaoDutoviarioClientesDadosComponent.prototype.ngDoCheck = function () {
        this.hasDados =
            this.service.data.listaClientesDados &&
                this.service.data.listaClientesDados.length > 0 &&
                this.service.data.listaClientesDados.filter(function (v) {
                    if (v["sitReg"] !== "E") {
                        return true;
                    }
                    return false;
                }).length > 0;
    };
    OperacaoDutoviarioClientesDadosComponent.prototype.create = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].create;
        this.data = new _operacao_dutoviario_clientes_dados_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioClientesDados"]();
        this.dataAux = new _operacao_dutoviario_clientes_dados_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioClientesDados"]();
        this.data.laudoId = this.service.data.regTmp;
        this.data.tipoNota = !this.data.tipoNota ? "" : this.data.tipoNota;
    };
    OperacaoDutoviarioClientesDadosComponent.prototype.edit = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].edit;
        this.data = Object.assign({}, this.dataAux);
        this.dataAux = new _operacao_dutoviario_clientes_dados_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioClientesDados"]();
        this.data.tipoNota = !this.data.tipoNota ? "" : this.data.tipoNota;
        this.obrigarTipoNota();
    };
    OperacaoDutoviarioClientesDadosComponent.prototype.detail = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].detail;
        this.data = Object.assign({}, this.dataAux);
        this.data.tipoNota = !this.data.tipoNota ? "" : this.data.tipoNota;
        this.obrigarTipoNota();
    };
    OperacaoDutoviarioClientesDadosComponent.prototype.back = function (refresh) {
        if (refresh === void 0) { refresh = false; }
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
        if (refresh) {
            this.service.getClientesDados();
        }
    };
    OperacaoDutoviarioClientesDadosComponent.prototype.remove = function () {
        var _this = this;
        this.messageService.removeConfirm(function () {
            _this.dataAux.sitReg = "E";
            _this.service.gravarClienteDados(_this.dataAux).subscribe(function (data) {
                _this.mensagens = _this.messageService.validationResult(data.validationResult);
                if (!data.validationResult.isValid) {
                    _this.messageService.warning("titles.operacaoDutoviario", _this.mensagens[0]);
                }
                else {
                    _this.dataAux = new _operacao_dutoviario_clientes_dados_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioClientesDados"]();
                    _this.back(true);
                }
            });
        });
    };
    OperacaoDutoviarioClientesDadosComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.data.logRotina = "Manutenção de OperacaoDutoClienteDados";
        this.service.gravarClienteDados(this.data).subscribe(function (resp) {
            _this.mensagens = _this.messageService.validationResult(resp.validationResult);
            if (resp.validationResult != null && !resp.validationResult.isValid) {
                _this.messageService.warning("titles.operacaoDutoviario", _this.mensagens[0]);
            }
            else {
                _this.data = new _operacao_dutoviario_clientes_dados_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioClientesDados"]();
                _this.back(true);
            }
        });
    };
    OperacaoDutoviarioClientesDadosComponent.prototype.trataCliente = function (destinatario) {
        this.data.destinatarioCliente = destinatario;
        if (this.data.destinatarioIdCliente !== this.service.configs.coddestBSLZ) {
            this.data.tipoNota = "";
        }
        this.obrigarTipoNota();
    };
    OperacaoDutoviarioClientesDadosComponent.prototype.obrigarTipoNota = function () {
        this.obrigaTipoNota = this.funcoesService.isPositive(this.service.configs.coddestBSLZ)
            && this.data.destinatarioIdCliente === this.service.configs.coddestBSLZ;
        if (this.obrigaTipoNota && this.raizenTipoNotas.length === 0) {
            this.getRaizenTipoNotas();
        }
    };
    OperacaoDutoviarioClientesDadosComponent.prototype.getRaizenTipoNotas = function () {
        var _this = this;
        this.service.getComboCliRaizenTipoNota(this.service.data.tipoMov).subscribe(function (resp) {
            _this.raizenTipoNotas = resp;
        });
    };
    OperacaoDutoviarioClientesDadosComponent.ctorParameters = function () { return [
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_8__["OperacaoDutoviarioService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], OperacaoDutoviarioClientesDadosComponent.prototype, "disabled", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], OperacaoDutoviarioClientesDadosComponent.prototype, "unidades", void 0);
    OperacaoDutoviarioClientesDadosComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-operacao-dutoviario-clientes-dados",
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-dutoviario-clientes-dados.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-clientes-dados/operacao-dutoviario-clientes-dados.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_8__["OperacaoDutoviarioService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"]])
    ], OperacaoDutoviarioClientesDadosComponent);
    return OperacaoDutoviarioClientesDadosComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-clientes-dados/operacao-dutoviario-clientes-dados.model.ts":
/*!***********************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-clientes-dados/operacao-dutoviario-clientes-dados.model.ts ***!
  \***********************************************************************************************************************************/
/*! exports provided: OperacaoDutoviarioClientesDados */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

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



/***/ }),

/***/ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-consulta-antecipacao/operacao-dutoviario-consulta-antecipacao.component.ts":
/*!***************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-consulta-antecipacao/operacao-dutoviario-consulta-antecipacao.component.ts ***!
  \***************************************************************************************************************************************************/
/*! exports provided: OperacaoDutoviarioConsultaAntecipacaoComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDutoviarioConsultaAntecipacaoComponent", function() { return OperacaoDutoviarioConsultaAntecipacaoComponent; });
/* 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 app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
/* harmony import */ var _operacao_dutoviario_consulta_antecipacao_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./operacao-dutoviario-consulta-antecipacao.model */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-consulta-antecipacao/operacao-dutoviario-consulta-antecipacao.model.ts");
/* harmony import */ var _operacao_dutoviario_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../operacao-dutoviario.constants */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.constants.ts");
/* harmony import */ var _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../operacao-dutoviario.service */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.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 OperacaoDutoviarioConsultaAntecipacaoComponent = /** @class */ (function (_super) {
    __extends(OperacaoDutoviarioConsultaAntecipacaoComponent, _super);
    function OperacaoDutoviarioConsultaAntecipacaoComponent(router, messageService, activatedRoute, service, funcoes, configuracao, loginService, permissoesUtils) {
        var _this = _super.call(this, new _operacao_dutoviario_constants__WEBPACK_IMPORTED_MODULE_11__["OperacaoDutoviarioConstants"](), funcoes) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoes = funcoes;
        _this.configuracao = configuracao;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _operacao_dutoviario_consulta_antecipacao_model__WEBPACK_IMPORTED_MODULE_10__["ConsultaProdutoAntecipacaoDto"]();
        _this.dataSelected = new _operacao_dutoviario_consulta_antecipacao_model__WEBPACK_IMPORTED_MODULE_10__["ConsultaClienteAntecipacaoDto"]();
        _this.mensagens = [];
        _this.constantes = new _operacao_dutoviario_constants__WEBPACK_IMPORTED_MODULE_11__["OperacaoDutoviarioConstants"]();
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
        _this.target = _this.funcoes.getTargetLocation();
        _this.refresh = function () {
            _this.service.getProdutoAntecipacao({ stoLaudoId: _this.stoLaudoId }).subscribe(function (resp) {
                _this.dadosProduto = resp;
                if (app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["ArrayUtilsStaticService"].any(_this.dadosProduto)) {
                    _this.rowSelect(_this.dadosProduto[0], 0);
                }
            });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    OperacaoDutoviarioConsultaAntecipacaoComponent.prototype.ngOnInit = function () {
        this.stoLaudoId = this.funcoesService.getValue(this.activatedRoute.snapshot.paramMap.get("id"), "I");
        this.refresh();
    };
    Object.defineProperty(OperacaoDutoviarioConsultaAntecipacaoComponent.prototype, "hasDadosProduto", {
        get: function () {
            return app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["ArrayUtilsStaticService"].any(this.dadosProduto);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDutoviarioConsultaAntecipacaoComponent.prototype, "hasDadosCliente", {
        get: function () {
            return app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["ArrayUtilsStaticService"].any(this.dadosCliente);
        },
        enumerable: true,
        configurable: true
    });
    OperacaoDutoviarioConsultaAntecipacaoComponent.prototype.rowSelect = function (item, index) {
        var _this = this;
        this.currentIndex = index;
        this.data = item;
        this.service.getClienteAntecipacao({ stoLaudoId: this.stoLaudoId, item: this.data.item }).subscribe(function (resp) {
            _this.dadosCliente = resp;
        });
    };
    OperacaoDutoviarioConsultaAntecipacaoComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate([this.target + "/operacao/operacaoDutoviario"]);
    };
    OperacaoDutoviarioConsultaAntecipacaoComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_12__["OperacaoDutoviarioService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_5__["ConfiguracaoFacade"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] }
    ]; };
    OperacaoDutoviarioConsultaAntecipacaoComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-operacao-dutoviario-consulta-antecipacao',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-dutoviario-consulta-antecipacao.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-consulta-antecipacao/operacao-dutoviario-consulta-antecipacao.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_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_12__["OperacaoDutoviarioService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_5__["ConfiguracaoFacade"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"]])
    ], OperacaoDutoviarioConsultaAntecipacaoComponent);
    return OperacaoDutoviarioConsultaAntecipacaoComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-consulta-antecipacao/operacao-dutoviario-consulta-antecipacao.model.ts":
/*!***********************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-consulta-antecipacao/operacao-dutoviario-consulta-antecipacao.model.ts ***!
  \***********************************************************************************************************************************************/
/*! exports provided: ConsultaProdutoAntecipacaoDto, ConsultaClienteAntecipacaoDto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

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



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDutoviarioEquiptoComponent", function() { return OperacaoDutoviarioEquiptoComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _operacao_dutoviario_equipto_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./operacao-dutoviario-equipto.model */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-equipto/operacao-dutoviario-equipto.model.ts");
/* harmony import */ var app_pages_cadastro_equipamento_equipamento_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/pages/cadastro/equipamento/equipamento.model */ "./src/app/pages/cadastro/equipamento/equipamento.model.ts");
/* harmony import */ var app_pages_cadastro_equipamento_equipamento_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/pages/cadastro/equipamento/equipamento.service */ "./src/app/pages/cadastro/equipamento/equipamento.service.ts");
/* harmony import */ var _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../operacao-dutoviario.service */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.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 OperacaoDutoviarioEquiptoComponent = /** @class */ (function () {
    function OperacaoDutoviarioEquiptoComponent(messageService, equipamentoService, service, funcoesService) {
        this.messageService = messageService;
        this.equipamentoService = equipamentoService;
        this.service = service;
        this.funcoesService = funcoesService;
        this.dataAux = new _operacao_dutoviario_equipto_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioEquipto"]();
        this.data = new _operacao_dutoviario_equipto_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioEquipto"]();
        this.equipamentos = [];
        this.mensagens = [];
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
        this.hasDados = false;
    }
    OperacaoDutoviarioEquiptoComponent.prototype.ngDoCheck = function () {
        this.hasDados =
            this.service.data.listaEquipamentos &&
                this.service.data.listaEquipamentos.length > 0 &&
                this.service.data.listaEquipamentos.filter(function (v) {
                    if (v["sitReg"] !== "E") {
                        return true;
                    }
                    return false;
                }).length > 0;
    };
    OperacaoDutoviarioEquiptoComponent.prototype.create = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].create;
        this.data = new _operacao_dutoviario_equipto_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioEquipto"]();
        this.dataAux = new _operacao_dutoviario_equipto_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioEquipto"]();
        this.data.laudoId = this.service.data.laudoId;
    };
    OperacaoDutoviarioEquiptoComponent.prototype.edit = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].edit;
        this.data = Object.assign({}, this.dataAux);
        this.dataAux = new _operacao_dutoviario_equipto_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioEquipto"]();
        this.getEquipamento();
    };
    OperacaoDutoviarioEquiptoComponent.prototype.detail = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].detail;
        this.data = Object.assign({}, this.dataAux);
        this.getEquipamento();
    };
    OperacaoDutoviarioEquiptoComponent.prototype.back = function (refresh) {
        if (refresh === void 0) { refresh = false; }
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
        if (refresh) {
            this.service.getEquipamentos();
        }
    };
    OperacaoDutoviarioEquiptoComponent.prototype.remove = function () {
        var _this = this;
        this.messageService.removeConfirm(function () {
            _this.dataAux.sitReg = "E";
            _this.service.gravarEquipamento(_this.dataAux).subscribe(function (data) {
                _this.mensagens = _this.messageService.validationResult(data.validationResult);
                if (!data.validationResult.isValid) {
                    _this.messageService.warning("titles.operacaoDutoviario", _this.mensagens[0]);
                }
                else {
                    _this.dataAux = new _operacao_dutoviario_equipto_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioEquipto"]();
                    _this.back(true);
                }
            });
        });
    };
    OperacaoDutoviarioEquiptoComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        if (!this.validarDuplicidadeEquipto()) {
            return;
        }
        this.data.logRotina = "Manutenção de TmpOperacaoDutoEquipto";
        this.service.gravarEquipamento(this.data).subscribe(function (resp) {
            _this.mensagens = _this.messageService.validationResult(resp.validationResult);
            if (!resp.validationResult.isValid) {
                _this.messageService.warning("titles.operacaoDutoviario", _this.mensagens[0]);
            }
            else {
                _this.data = new _operacao_dutoviario_equipto_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioEquipto"]();
                _this.back(true);
            }
        });
    };
    OperacaoDutoviarioEquiptoComponent.prototype.validarDuplicidadeEquipto = function () {
        var _this = this;
        var existentes = this.service.data.listaEquipamentos.filter(function (t) { return t.equipamentoId.toString() === _this.data.equipamentoId.toString()
            && t.item !== _this.data.item
            && t.sitReg !== "E"; });
        if (existentes.length > 0 && (this.actionForm === _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].create ||
            this.actionForm === _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].edit && existentes[0].subItem !== this.data.subItem)) {
            this.messageService.warning("titles.operacaoDutoviario", "messages.equipamentoJaInformado");
            this.data.equipamentoId = 0;
            this.data.equipamento = new app_pages_cadastro_equipamento_equipamento_model__WEBPACK_IMPORTED_MODULE_6__["Equipamento"]();
            return false;
        }
        return true;
    };
    OperacaoDutoviarioEquiptoComponent.prototype.selecionarTipoEquipto = function (type) {
        this.data.equipamentoId = 0;
        this.data.equipamento = new app_pages_cadastro_equipamento_equipamento_model__WEBPACK_IMPORTED_MODULE_6__["Equipamento"]();
        this.getEquipamentos(type);
    };
    OperacaoDutoviarioEquiptoComponent.prototype.getEquipamentos = function (type) {
        var _this = this;
        if (type === void 0) { type = ""; }
        this.equipamentos = [];
        if (type === "") {
            return;
        }
        this.equipamentoService.get().subscribe(function (resp) {
            if (resp) {
                _this.equipamentos = resp.filter(function (e) {
                    if (e.tipoEquipto === type
                        && e.flagAtivo === "S") {
                        return e;
                    }
                });
                _this.equipamentos = _this.equipamentos.sort(function (a, b) {
                    return a.descrEquipto < b.descrEquipto ? -1 : a.descrEquipto > b.descrEquipto ? 1 : 0;
                });
            }
        });
    };
    OperacaoDutoviarioEquiptoComponent.prototype.getTipoEquiptoDescr = function (tipoEquipto) {
        var texto = "";
        switch (tipoEquipto) {
            case "L":
                texto = "labels.linha";
                break;
            case "T":
                texto = "labels.trena";
                break;
            case "E":
                texto = "labels.termometro";
                break;
            case "M":
                texto = "labels.mangote";
                break;
            case "A":
                texto = "labels.alinhamento";
                break;
            case "B":
                texto = "labels.bomba";
                break;
            default:
                break;
        }
        return texto;
    };
    OperacaoDutoviarioEquiptoComponent.prototype.selecionarEquipamento = function (id) {
        var equipamento = this.equipamentos.find(function (i) { return i.equipamentoId === Number(id); });
        if (this.funcoesService.isNotUndefinedOrNull(equipamento)) {
            this.data.equipamento = equipamento;
        }
    };
    OperacaoDutoviarioEquiptoComponent.prototype.getEquipamento = function () {
        if (this.data.equipamento) {
            this.data.tipoEquipto = this.data.equipamento.tipoEquipto;
            this.getEquipamentos(this.data.tipoEquipto);
        }
    };
    OperacaoDutoviarioEquiptoComponent.ctorParameters = function () { return [
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_pages_cadastro_equipamento_equipamento_service__WEBPACK_IMPORTED_MODULE_7__["EquipamentoService"] },
        { type: _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_8__["OperacaoDutoviarioService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], OperacaoDutoviarioEquiptoComponent.prototype, "disabled", void 0);
    OperacaoDutoviarioEquiptoComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-operacao-dutoviario-equipto",
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-dutoviario-equipto.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-equipto/operacao-dutoviario-equipto.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_pages_cadastro_equipamento_equipamento_service__WEBPACK_IMPORTED_MODULE_7__["EquipamentoService"],
            _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_8__["OperacaoDutoviarioService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"]])
    ], OperacaoDutoviarioEquiptoComponent);
    return OperacaoDutoviarioEquiptoComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-equipto/operacao-dutoviario-equipto.model.ts":
/*!*********************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-equipto/operacao-dutoviario-equipto.model.ts ***!
  \*********************************************************************************************************************/
/*! exports provided: OperacaoDutoviarioEquipto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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


var OperacaoDutoviarioEquipto = /** @class */ (function (_super) {
    __extends(OperacaoDutoviarioEquipto, _super);
    function OperacaoDutoviarioEquipto() {
        var _this = _super.call(this) || this;
        _this.equipamento = new app_pages_cadastro_equipamento_equipamento_model__WEBPACK_IMPORTED_MODULE_0__["Equipamento"]();
        _this.tipoEquipto = "";
        _this.equipamentoId = 0;
        return _this;
    }
    return OperacaoDutoviarioEquipto;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_1__["BaseModel"]));



/***/ }),

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

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






var OperacaoDutoviarioFilterComponent = /** @class */ (function () {
    function OperacaoDutoviarioFilterComponent(service, messageService) {
        this.service = service;
        this.messageService = messageService;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
    }
    OperacaoDutoviarioFilterComponent.prototype.onSubmit = function (form) {
        if (form.invalid) {
            app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.filtrar.emit();
        jQuery("#ope-dutoviario-filter-dialog").modal("hide");
    };
    OperacaoDutoviarioFilterComponent.prototype.validarDataI = function () {
        if (!this.validarDataFiltro()) {
            var data = new Date();
            this.service.filtro.dataI = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["DateTimeUtilsStaticService"].addDays(data, -15);
        }
    };
    OperacaoDutoviarioFilterComponent.prototype.validarDataF = function () {
        if (!this.validarDataFiltro()) {
            this.service.filtro.dataF = new Date();
        }
    };
    OperacaoDutoviarioFilterComponent.prototype.validarDataFiltro = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["DateTimeUtilsStaticService"].menorA(this.service.filtro.dataF, this.service.filtro.dataI)) {
            this.messageService.warning("titles.operacaoDutoviario", "messages.dataDeMaiordataAte");
            return false;
        }
        return true;
    };
    OperacaoDutoviarioFilterComponent.ctorParameters = function () { return [
        { type: _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_3__["OperacaoDutoviarioService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoDutoviarioFilterComponent.prototype, "filtrar", void 0);
    OperacaoDutoviarioFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-operacao-dutoviario-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-dutoviario-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-filter/operacao-dutoviario-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_3__["OperacaoDutoviarioService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"]])
    ], OperacaoDutoviarioFilterComponent);
    return OperacaoDutoviarioFilterComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDutoviarioFormComponent", function() { return OperacaoDutoviarioFormComponent; });
/* 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_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__ = __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_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.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 _operacao_dutoviario_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../operacao-dutoviario.model */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.model.ts");
/* harmony import */ var _operacao_dutoviario_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../operacao-dutoviario.constants */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.constants.ts");
/* harmony import */ var _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../operacao-dutoviario.service */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.service.ts");
/* harmony import */ var app_shared_components_combos_combo_padrao_combo_padrao_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/components/combos/combo-padrao/combo-padrao.service */ "./src/app/shared/components/combos/combo-padrao/combo-padrao.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! app/shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
var __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 OperacaoDutoviarioFormComponent = /** @class */ (function (_super) {
    __extends(OperacaoDutoviarioFormComponent, _super);
    function OperacaoDutoviarioFormComponent(router, messageService, activatedRoute, comboPadraoService, service, funcoesService, permissoesUtils, loginService, configuracao) {
        var _this = _super.call(this, new _operacao_dutoviario_constants__WEBPACK_IMPORTED_MODULE_10__["OperacaoDutoviarioConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.comboPadraoService = comboPadraoService;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.configuracao = configuracao;
        _this.mensagens = [];
        _this.constantes = new _operacao_dutoviario_constants__WEBPACK_IMPORTED_MODULE_10__["OperacaoDutoviarioConstants"]();
        _this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_7__["Mascaras"]();
        _this.unidades = [];
        _this.raizenTipoNotas = [];
        _this.obrigaTipoNota = false;
        _this.title = "titles.operacaoDutoviario";
        _this.dadosCarregados = false;
        _this.target = _this.funcoesService.getTargetLocation();
        _this.loadConfig = function () {
            _this.service.configs.webSolOperDuto = _this.configuracao.boolean("OPE", "WebSolOperDuto");
            _this.service.configs.coddestBSLZ = _this.configuracao.number("REL", "CoddestBSLZ");
            _this.service.configs.sapRaisen = _this.configuracao.boolean("REL", "SapRaisen");
            _this.service.configs.degradacao = _this.configuracao.boolean("REL", "Degradacao");
            _this.service.configs.antecipacaoNavio = _this.configuracao.boolean("UNI", "AntecipacaoNavio");
            _this.service.configs.apenasUmClienteDuto = _this.configuracao.boolean("OPE", "ApenasUmClienteDuto");
            _this.buttonVisible('listaForm', 'antecipacao', _this.configuracao.boolean("UNI", "AntecipacaoNavio"));
        };
        _this.antecipacao = function () { return __awaiter(_this, void 0, void 0, function () {
            var semLote, validation;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (!this.liberaAntecipacao)
                            return [2 /*return*/];
                        if (['D'].includes(this.service.data.tipoMov)) {
                            semLote = this.service.data.listaClientesDados.find(function (c) { return !c.loteId; });
                            if (semLote) {
                                this.messageService.warning(this.title, "messages.paraAntecipacaoLotesObrigatorios");
                                return [2 /*return*/];
                            }
                        }
                        if (!this.service.configs.atualizaDI) return [3 /*break*/, 2];
                        return [4 /*yield*/, this.service.antecipacaoVerificaDI(this.service.data.laudoId).toPromise()];
                    case 1:
                        validation = _a.sent();
                        if (!validation.isValid) {
                            this.messageService.warning(this.title, validation.message);
                            return [2 /*return*/];
                        }
                        _a.label = 2;
                    case 2:
                        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 17, function () {
                            var chave = _this.funcoesService.objToB64({
                                stoLaudoId: _this.service.data.regTmp,
                                material: {
                                    materialId: _this.service.data.material.materialId,
                                    fantasia: _this.service.data.material.fantasia,
                                }
                            });
                            if (!!chave) {
                                _this.router.navigate([_this.target + "/operacao/operacaoDutoviario/antecipacao/" + chave]);
                            }
                        });
                        return [2 /*return*/];
                }
            });
        }); };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    OperacaoDutoviarioFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig(this.constantes.parametrosConfig, this.loadConfig);
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            _this.service.data = new _operacao_dutoviario_model__WEBPACK_IMPORTED_MODULE_9__["OperacaoDutoviario"]();
            _this.service.data.laudoId = _this.funcoesService.getValue(_this.activatedRoute.snapshot.paramMap.get("id"), "I");
            var obj = {
                laudoId: _this.service.data.laudoId,
                codRotina: _this.constantes.sisFormularioId,
                sitRotina: _this.funcoesService.isCreate(_this.actionForm) ? "I" : "A"
            };
            _this.carregarDados(obj);
        }, function () {
            _this.back();
        });
        _super.prototype.addFuncoes.call(this, [
            { action: 'antecipacao', func: function () { return _this.antecipacao; } }
        ]);
    };
    OperacaoDutoviarioFormComponent.prototype.carregarDados = function (obj) {
        var _this = this;
        this.service.getTmpOperacaoDuto(obj).subscribe(function (resp) { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        this.mensagens = this.messageService.validationResult(resp);
                        if (!(resp.validationResult != null && !resp.validationResult.isValid)) return [3 /*break*/, 1];
                        this.messageService.warning(this.title, this.mensagens[0]);
                        return [3 /*break*/, 4];
                    case 1:
                        this.service.data = resp;
                        this.service.data.tipoNota = !this.service.data.tipoNota ? "" : this.service.data.tipoNota;
                        this.obrigarTipoNota();
                        this.getUnidades();
                        this.getCamposAdicionais();
                        if (!!app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["ArrayUtilsStaticService"].any(this.service.data.listaClientesDados)) return [3 /*break*/, 3];
                        return [4 /*yield*/, this.service.getClientesDados()];
                    case 2:
                        _a.sent();
                        _a.label = 3;
                    case 3:
                        this.buttonDisabled('listaForm', 'antecipacao', !this.liberaAntecipacao);
                        this.dadosCarregados = true;
                        _a.label = 4;
                    case 4: return [2 /*return*/];
                }
            });
        }); });
    };
    OperacaoDutoviarioFormComponent.prototype.getUnidades = function () {
        var _this = this;
        this.comboPadraoService.get("Unidade", "Unidade", "DescrUnidade", true).subscribe(function (resp) {
            _this.unidades = resp.filter(function (u) { return u.chave === "KG"
                || u.chave === "M3"
                || u.chave === "LT"
                || u.chave === "UN"; });
        });
    };
    OperacaoDutoviarioFormComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            this.funcoesService.backToTop();
            return;
        }
        this.service.data.logRotina = "Manutenção de Operação Dutoviário";
        this.service.data.codRotina = this.constantes.sisFormularioId;
        this.service
            .save(this.service.data, this.funcoesService.isEdit(this.actionForm))
            .subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result.validationResult);
            if (!result.validationResult.isValid) {
                jQuery("a.nav-link[href='#dados']").click();
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("backError").emit(_this.mensagens);
                _this.funcoesService.backToTop();
            }
            else {
                _this.messageService.saveSuccess(_this.title);
                _this.back();
            }
        });
    };
    OperacaoDutoviarioFormComponent.prototype.edit = function () {
        var _this = this;
        this.service.validarOperacaoPodeSerAlterada(this.service.data.regTmp).subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result);
            if (!result.isValid) {
                _this.messageService.warning(_this.title, _this.mensagens[0]);
            }
            else {
                _this.router.navigate([_this.target + "/operacao/operacaoDutoviario/edit/" + _this.service.data.regTmp]);
            }
        });
    };
    OperacaoDutoviarioFormComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate([this.target + "/operacao/operacaoDutoviario"]);
    };
    OperacaoDutoviarioFormComponent.prototype.getCamposAdicionais = function () {
        var _this = this;
        this.funcoesService.camposAdicionais
            .get(this.constantes.sisFormularioId)
            .subscribe(function (data) {
            _this.service.data.sisCampoAdds = data;
        });
    };
    OperacaoDutoviarioFormComponent.prototype.validarDtMovimento = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["DateTimeUtilsStaticService"].maiorA(this.service.data.dtMovimento, new Date())) {
            this.messageService.warning(this.title, "messages.dataNaoPodeSerMaiorQueDataAtual");
            this.service.data.dtMovimento = new Date();
        }
    };
    OperacaoDutoviarioFormComponent.prototype.trataCliente = function (destinatario) {
        this.service.data.destinatarioCliente = destinatario;
        if (this.dadosCarregados && this.service.data.destinatarioIdCliente !== this.service.configs.coddestBSLZ) {
            this.service.data.tipoNota = "";
        }
        this.obrigarTipoNota();
    };
    OperacaoDutoviarioFormComponent.prototype.trataMaterial = function (material) {
        this.service.data.material = material;
    };
    OperacaoDutoviarioFormComponent.prototype.obrigarTipoNota = function () {
        if (!this.service.configs.sapRaisen) {
            this.obrigaTipoNota = this.funcoesService.isPositive(this.service.configs.coddestBSLZ)
                && this.service.data.destinatarioIdCliente === this.service.configs.coddestBSLZ;
            if (this.obrigaTipoNota && this.raizenTipoNotas.length === 0) {
                this.getRaizenTipoNotas();
            }
        }
    };
    OperacaoDutoviarioFormComponent.prototype.getRaizenTipoNotas = function () {
        var _this = this;
        this.service.getComboCliRaizenTipoNota(this.service.data.tipoMov).subscribe(function (resp) {
            _this.raizenTipoNotas = resp;
        });
    };
    Object.defineProperty(OperacaoDutoviarioFormComponent.prototype, "liberaAntecipacao", {
        get: function () {
            return ['A', ''].includes(this.service.data.sitReg) && (this.service.configs.atualizaDI || this.service.data.tipoMov === 'C' || (!this.service.configs.atualizaDI && this.service.data.tipoMov === 'D'));
        },
        enumerable: true,
        configurable: true
    });
    OperacaoDutoviarioFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: app_shared_components_combos_combo_padrao_combo_padrao_service__WEBPACK_IMPORTED_MODULE_12__["ComboPadraoService"] },
        { type: _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_11__["OperacaoDutoviarioService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_14__["ConfiguracaoFacade"] }
    ]; };
    OperacaoDutoviarioFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-operacao-dutoviario-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-dutoviario-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-form/operacao-dutoviario-form.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_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            app_shared_components_combos_combo_padrao_combo_padrao_service__WEBPACK_IMPORTED_MODULE_12__["ComboPadraoService"],
            _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_11__["OperacaoDutoviarioService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_14__["ConfiguracaoFacade"]])
    ], OperacaoDutoviarioFormComponent);
    return OperacaoDutoviarioFormComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-hora-oper/operacao-dutoviario-hora-oper.component.ts":
/*!*****************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-hora-oper/operacao-dutoviario-hora-oper.component.ts ***!
  \*****************************************************************************************************************************/
/*! exports provided: OperacaoDutoviarioHoraOperComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDutoviarioHoraOperComponent", function() { return OperacaoDutoviarioHoraOperComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _operacao_dutoviario_hora_oper_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./operacao-dutoviario-hora-oper.model */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-hora-oper/operacao-dutoviario-hora-oper.model.ts");
/* harmony import */ var _operacao_dutoviario_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../operacao-dutoviario.constants */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.constants.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../operacao-dutoviario.service */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.service.ts");
/* harmony import */ var app_pages_cadastro_ocorrencia_laudo_ocorrencia_laudo_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/pages/cadastro/ocorrencia-laudo/ocorrencia-laudo.service */ "./src/app/pages/cadastro/ocorrencia-laudo/ocorrencia-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 OperacaoDutoviarioHoraOperComponent = /** @class */ (function () {
    function OperacaoDutoviarioHoraOperComponent(messageService, service, funcoesService, permissoesUtils, serviceOcorrenciaLaudo) {
        this.messageService = messageService;
        this.service = service;
        this.funcoesService = funcoesService;
        this.permissoesUtils = permissoesUtils;
        this.serviceOcorrenciaLaudo = serviceOcorrenciaLaudo;
        this.dataAux = new _operacao_dutoviario_hora_oper_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioHoraOper"]();
        this.data = new _operacao_dutoviario_hora_oper_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioHoraOper"]();
        this.mensagens = [];
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
        this.hasDados = false;
        this.flagPeriodo = "N";
        this.constantes = new _operacao_dutoviario_constants__WEBPACK_IMPORTED_MODULE_6__["OperacaoDutoviarioConstants"]();
    }
    OperacaoDutoviarioHoraOperComponent.prototype.ngOnInit = function () {
        this.getOcorrenciaLaudo();
    };
    OperacaoDutoviarioHoraOperComponent.prototype.ngDoCheck = function () {
        this.hasDados =
            this.service.data.listaHorasOper &&
                this.service.data.listaHorasOper.length > 0 &&
                this.service.data.listaHorasOper.filter(function (v) {
                    if (v["sitReg"] !== "E") {
                        return true;
                    }
                    return false;
                }).length > 0;
    };
    OperacaoDutoviarioHoraOperComponent.prototype.create = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].create;
        this.data = new _operacao_dutoviario_hora_oper_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioHoraOper"]();
        this.dataAux = new _operacao_dutoviario_hora_oper_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioHoraOper"]();
        this.data.laudoId = this.service.data.laudoId;
    };
    OperacaoDutoviarioHoraOperComponent.prototype.edit = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].edit;
        this.data = Object.assign({}, this.dataAux);
        this.dataAux = new _operacao_dutoviario_hora_oper_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioHoraOper"]();
    };
    OperacaoDutoviarioHoraOperComponent.prototype.detail = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].detail;
        this.data = Object.assign({}, this.dataAux);
    };
    OperacaoDutoviarioHoraOperComponent.prototype.back = function (refresh) {
        if (refresh === void 0) { refresh = false; }
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
        if (refresh) {
            this.service.getHorasOper();
        }
    };
    OperacaoDutoviarioHoraOperComponent.prototype.remove = function () {
        var _this = this;
        this.messageService.removeConfirm(function () {
            _this.dataAux.sitReg = "E";
            _this.service.gravarHoraOper(_this.dataAux).subscribe(function (data) {
                _this.mensagens = _this.messageService.validationResult(data.validationResult);
                if (!data.validationResult.isValid) {
                    _this.messageService.warning("titles.operacaoDutoviario", _this.mensagens[0]);
                }
                else {
                    _this.dataAux = new _operacao_dutoviario_hora_oper_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioHoraOper"]();
                    _this.back(true);
                }
            });
        });
    };
    OperacaoDutoviarioHoraOperComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.data.logRotina = "Manutenção de TmpOperacaoDutoHoraOper";
        this.service.gravarHoraOper(this.data).subscribe(function (resp) {
            _this.mensagens = _this.messageService.validationResult(resp.validationResult);
            if (!resp.validationResult.isValid) {
                _this.messageService.warning("titles.operacaoDutoviario", _this.mensagens[0]);
            }
            else {
                _this.data = new _operacao_dutoviario_hora_oper_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioHoraOper"]();
                _this.back(true);
            }
        });
    };
    OperacaoDutoviarioHoraOperComponent.prototype.getOcorrenciaLaudo = function () {
        var _this = this;
        this.listaOcorrenciaLaudo = [];
        this.serviceOcorrenciaLaudo.get().subscribe(function (resp) {
            if (resp) {
                _this.listaOcorrenciaLaudo = resp
                    .filter(function (o) { return o.tipoOcorr === "D"
                    && o.flagAtivo === "S"
                    && o.flagObriga === "N"; });
            }
        });
    };
    OperacaoDutoviarioHoraOperComponent.prototype.currentOcorrenciaLaudo = function (event) {
        var _this = this;
        if (!event) {
            return;
        }
        this.serviceOcorrenciaLaudo.getById(event).subscribe(function (resp) {
            if (resp) {
                _this.flagPeriodo = resp.flagPeriodo;
            }
        });
    };
    OperacaoDutoviarioHoraOperComponent.ctorParameters = function () { return [
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_8__["OperacaoDutoviarioService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] },
        { type: app_pages_cadastro_ocorrencia_laudo_ocorrencia_laudo_service__WEBPACK_IMPORTED_MODULE_9__["OcorrenciaLaudoService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], OperacaoDutoviarioHoraOperComponent.prototype, "disabled", void 0);
    OperacaoDutoviarioHoraOperComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-operacao-dutoviario-hora-oper",
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-dutoviario-hora-oper.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-hora-oper/operacao-dutoviario-hora-oper.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_8__["OperacaoDutoviarioService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"],
            app_pages_cadastro_ocorrencia_laudo_ocorrencia_laudo_service__WEBPACK_IMPORTED_MODULE_9__["OcorrenciaLaudoService"]])
    ], OperacaoDutoviarioHoraOperComponent);
    return OperacaoDutoviarioHoraOperComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-hora-oper/operacao-dutoviario-hora-oper.model.ts":
/*!*************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-hora-oper/operacao-dutoviario-hora-oper.model.ts ***!
  \*************************************************************************************************************************/
/*! exports provided: OperacaoDutoviarioHoraOper */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

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



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDutoviarioIndexComponent", function() { return OperacaoDutoviarioIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/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 _operacao_dutoviario_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../operacao-dutoviario.constants */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.constants.ts");
/* harmony import */ var _operacao_dutoviario_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../operacao-dutoviario.model */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.model.ts");
/* harmony import */ var _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../operacao-dutoviario.service */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.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 OperacaoDutoviarioIndexComponent = /** @class */ (function (_super) {
    __extends(OperacaoDutoviarioIndexComponent, _super);
    function OperacaoDutoviarioIndexComponent(router, datatablesService, messageService, loginService, configuracao, service, funcoesService, permissoesUtils) {
        var _this = _super.call(this, new _operacao_dutoviario_constants__WEBPACK_IMPORTED_MODULE_9__["OperacaoDutoviarioConstants"](), funcoesService) || this;
        _this.router = router;
        _this.datatablesService = datatablesService;
        _this.messageService = messageService;
        _this.loginService = loginService;
        _this.configuracao = configuracao;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _operacao_dutoviario_model__WEBPACK_IMPORTED_MODULE_10__["OperacaoDutoviarioIndex"]();
        _this.mensagens = [];
        _this.constantes = new _operacao_dutoviario_constants__WEBPACK_IMPORTED_MODULE_9__["OperacaoDutoviarioConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.webModLaudoDuto = "";
        _this.loadConfig = function () {
            _this.webModLaudoDuto = _this.configuracao.string("WEB", "ModLaudoDuto");
            _this.service.configs.sapRaisen = _this.configuracao.boolean("REL", "SapRaisen");
        };
        _this.liberacaoOperacao = function () {
            if (!!(_this.data.laudoId)) {
                _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 7, function () {
                    _this.service.validarLiberacaoOperacao(_this.data.laudoId).subscribe(function (result) {
                        _this.mensagens = _this.messageService.validationResult(result);
                        if (!result.isValid) {
                            _this.messageService.warning("titles.operacaoDutoviario", _this.mensagens[0]);
                            return;
                        }
                        if (_this.data.sitReg === "A" || _this.data.sitReg === "O") {
                            var msg = _this.data.sitReg === "A"
                                ? "messages.confirmaLiberacaoPelaOperacao"
                                : "messages.desejaCancelarLiberacaoDaOperacao";
                            _this.messageService.confirm("titles.operacaoDutoviario", msg, null, function () {
                                _this.data.sitReg = _this.data.sitReg === "A" ? "O" : "A";
                                _this.service.liberarPelaOperacao(_this.data).subscribe(function (data) {
                                    _this.mensagens = _this.messageService.validationResult(data);
                                    if (!data.isValid) {
                                        _this.messageService.warning("titles.operacaoDutoviario", _this.mensagens[0]);
                                    }
                                    else {
                                        _this.refresh();
                                        _this.data = new _operacao_dutoviario_model__WEBPACK_IMPORTED_MODULE_10__["OperacaoDutoviarioIndex"]();
                                    }
                                });
                            });
                        }
                    });
                });
            }
        };
        _this.liberacaoFiscal = function () {
            if (!!(_this.data.laudoId)) {
                _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 8, function () {
                    _this.service.validarLiberacaoFiscal(_this.data.laudoId).subscribe(function (result) {
                        _this.mensagens = _this.messageService.validationResult(result);
                        if (!result.isValid) {
                            _this.messageService.warning("titles.operacaoDutoviario", _this.mensagens[0]);
                            return;
                        }
                        _this.messageService.confirm("titles.operacaoDutoviario", "messages.confirmaLiberacaoPeloFiscal", null, function () {
                            _this.service.liberarPeloFiscal(_this.data.laudoId).subscribe(function (data) {
                                _this.mensagens = _this.messageService.validationResult(data);
                                if (!data.isValid) {
                                    _this.messageService.warning("titles.operacaoDutoviario", _this.mensagens[0]);
                                }
                                else {
                                    _this.refresh();
                                    _this.data = new _operacao_dutoviario_model__WEBPACK_IMPORTED_MODULE_10__["OperacaoDutoviarioIndex"]();
                                }
                            });
                        });
                    });
                });
            }
        };
        _this.cancelarLiberacaoFiscal = function () {
            if (!!(_this.data.laudoId)) {
                _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 9, function () {
                    _this.service.validarCancelarLiberacaoFiscal(_this.data.laudoId).subscribe(function (result) {
                        _this.mensagens = _this.messageService.validationResult(result);
                        if (!result.isValid) {
                            _this.messageService.warning("titles.operacaoDutoviario", _this.mensagens[0]);
                            return;
                        }
                        _this.messageService.confirm("titles.operacaoDutoviario", "messages.estaRotinaIraCancelarABaixaFiscalConfirmaCancelamento", null, function () {
                            _this.data.sitReg = _this.data.sitReg === "A" ? "O" : "A";
                            _this.service.cancelarLiberacaoPeloFiscal(_this.data.laudoId).subscribe(function (data) {
                                _this.mensagens = _this.messageService.validationResult(data);
                                if (!data.isValid) {
                                    _this.messageService.warning("titles.operacaoDutoviario", _this.mensagens[0]);
                                }
                                else {
                                    _this.refresh();
                                    _this.data = new _operacao_dutoviario_model__WEBPACK_IMPORTED_MODULE_10__["OperacaoDutoviarioIndex"]();
                                }
                            });
                        });
                    });
                });
            }
        };
        _this.medicoes = function () {
            if (!!(_this.data.laudoId)) {
                _this.funcoesService.openWindow("operacao/medicaoDutoviario/" + _this.data.laudoId);
            }
            else {
                _this.messageService.warning("titles.operacaoDutoviario", "messages.selecioneUmRegistro");
            }
        };
        _this.rateio = function () {
            if (!_this.liberaRateio) {
                var mensagem = _this.messageService.translate("messages.operacaoNaoPermitidaSituacao", { descrSituacao: _this.data.situacao });
                _this.messageService.warning("titles.operacaoDutoviario", mensagem);
                return;
            }
            var chave = _this.funcoesService.objToB64({
                stoLaudoId: _this.data.laudoId,
                materialId: _this.data.materialId
            });
            if (!!chave) {
                _this.router.navigate([_this.target + "/operacao/operacaoDutoviario/rateio/" + chave]);
            }
        };
        _this.consultaAntecipacao = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 11, function () { return __awaiter(_this, void 0, void 0, function () {
                var validationResult, mensagens;
                var _this = this;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0: return [4 /*yield*/, this.service.existeAntecipacao({ stoLaudoId: this.data.laudoId }).toPromise()];
                        case 1:
                            validationResult = _a.sent();
                            if (!validationResult.isValid) {
                                mensagens = this.messageService.validationResult(validationResult);
                                mensagens.forEach(function (m) { return _this.messageService.warning("titles.operacaoDutoviario", m); });
                                return [2 /*return*/];
                            }
                            else {
                                this.router.navigate([this.target + "/operacao/operacaoDutoviario/consultaAntecipacao/" + this.data.laudoId]);
                            }
                            return [2 /*return*/];
                    }
                });
            }); });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    OperacaoDutoviarioIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig(this.constantes.parametrosConfig, this.loadConfig);
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!_this.loginService.isTokenExpired()) {
                if (_this.funcoesService.abrirFiltro) {
                    _this.service.filtro = new _operacao_dutoviario_model__WEBPACK_IMPORTED_MODULE_10__["OperacaoDutoviarioFilter"]();
                    _this.funcoesService.openModal("ope-dutoviario-filter-dialog");
                }
                else {
                    _this.refresh();
                }
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: 'liberacaoOperacao', func: function () { return _this.liberacaoOperacao; } },
            { action: 'liberacaoFiscal', func: function () { return _this.liberacaoFiscal; } },
            { action: 'cancelarLiberacaoFiscal', func: function () { return _this.cancelarLiberacaoFiscal; } },
            { action: 'medicoes', func: function () { return _this.medicoes; } },
            { action: 'rateio', func: function () { return _this.rateio; } },
            { action: "consultaAntecipacao", func: function () { return _this.consultaAntecipacao; } }
        ]);
    };
    OperacaoDutoviarioIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getByFilter().subscribe(function (data) {
            var columns = [
                _this.datatablesService.getDataStringAlignRight("laudoId", "laudo", "10%"),
                _this.datatablesService.getDataDateTime("dtMovimento", "data", "DD/MM/YYYY", "10%")
            ];
            if (!_this.service.configs.sapRaisen)
                columns.push(_this.datatablesService.getDataString("clienteFantasia", "cliente"));
            columns.push(_this.datatablesService.getDataString("terminalFantasia", "origemDestino", "20%"), _this.datatablesService.getDataString("materialFantasia", "produto"), _this.datatablesService.getDataDouble("quantidade", "quantidade", 0, false, "10%"), _this.datatablesService.getDataString("tipoMov", "tipo", "10%"), _this.datatablesService.getDataString("situacao", "situacao", "15%"));
            _this.datatablesService.toDataTable({ tableId: "dtOpeDutoviario", columns: columns, data: data }, function (aData) {
                _this.data = aData;
            });
        });
    };
    OperacaoDutoviarioIndexComponent.prototype.edit = function () {
        var _this = this;
        if (!!(this.data.laudoId)) {
            this.service.validarOperacaoPodeSerAlterada(this.data.laudoId).subscribe(function (result) {
                _this.mensagens = _this.messageService.validationResult(result);
                if (!result.isValid) {
                    _this.messageService.warning("titles.operacaoDutoviario", _this.mensagens[0]);
                }
                else {
                    _this.router.navigate([_this.target + "/operacao/operacaoDutoviario/edit/" + _this.data.laudoId]);
                }
            });
        }
    };
    OperacaoDutoviarioIndexComponent.prototype.filtrar = function () {
        jQuery("#ope-dutoviario-filter-dialog").modal("show");
    };
    OperacaoDutoviarioIndexComponent.prototype.executaFiltro = function (event) {
        this.refresh();
    };
    OperacaoDutoviarioIndexComponent.prototype.detail = function () {
        if (!!(this.data.laudoId)) {
            this.router.navigate([this.target + "/operacao/operacaoDutoviario", "detail", this.data.laudoId]);
        }
    };
    OperacaoDutoviarioIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    OperacaoDutoviarioIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 10, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    OperacaoDutoviarioIndexComponent.prototype.remove = function () {
        var _this = this;
        if (!!(this.data.laudoId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                _this.service.validarOperacaoPodeSerExcluida(_this.data.laudoId).subscribe(function (result) {
                    _this.mensagens = _this.messageService.validationResult(result);
                    if (!result.isValid) {
                        _this.messageService.warning("titles.operacaoDutoviario", _this.mensagens[0]);
                    }
                    else {
                        _this.messageService.removeConfirm(function () {
                            _this.service.removerOperacao(_this.data.laudoId).subscribe(function (data) {
                                _this.mensagens = _this.messageService.validationResult(data);
                                if (!data.isValid) {
                                    _this.messageService.warning("titles.operacaoDutoviario", _this.mensagens[0]);
                                }
                                else {
                                    _this.datatablesService.remove("dtOpeDutoviario");
                                    _this.data = new _operacao_dutoviario_model__WEBPACK_IMPORTED_MODULE_10__["OperacaoDutoviarioIndex"]();
                                }
                            });
                        });
                    }
                });
            });
        }
    };
    Object.defineProperty(OperacaoDutoviarioIndexComponent.prototype, "liberaRateio", {
        get: function () {
            return ['A', 'O', 'R'].includes(this.data.sitReg);
        },
        enumerable: true,
        configurable: true
    });
    OperacaoDutoviarioIndexComponent.prototype.print = function () {
        if (!!(this.data.laudoId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
                jQuery("#modalPrint").modal("show");
            });
        }
        else {
            this.messageService.warning("titles.operacaoDutoviario", "messages.selecioneUmRegistro");
        }
    };
    OperacaoDutoviarioIndexComponent.prototype.confirmaImpressao = function (tipoImpressao) {
        switch (tipoImpressao) {
            case "controleTanques":
                this.printControleTanques();
                break;
            case "laudo":
                this.printLaudo();
                break;
            default:
                break;
        }
    };
    OperacaoDutoviarioIndexComponent.prototype.printControleTanques = function () {
        this.funcoesService.reportInvoc.invocaRelatorio(this.constantes.reportControleTanqueId, this.constantes.reportControleTanqueTitulo, {
            filialId: this.loginService.getLogin().filialId,
            stoLaudoId: this.data.laudoId,
            banda: 1
        });
    };
    OperacaoDutoviarioIndexComponent.prototype.printLaudo = function () {
        if (!this.webModLaudoDuto) {
            this.messageService.error("titles.operacaoDutoviario", "messages.modRelNaoConfigurado");
            return;
        }
        this.service.filtroRelLaudo.laudoId = this.data.laudoId;
        jQuery("#modalRelLaudo").modal("show");
    };
    OperacaoDutoviarioIndexComponent.prototype.confirmaImpressaoLaudo = function (nomeTipoLaudo) {
        if (!!(this.service.filtroRelLaudo.laudoId)) {
            this.constantes.reportTitulo.titulo = nomeTipoLaudo;
            this.funcoesService.reportInvoc.invocaRelatorio(this.webModLaudoDuto, this.constantes.reportTitulo, {
                laudoId: this.service.filtroRelLaudo.laudoId,
                laudoRelId: this.service.filtroRelLaudo.laudoRelId === undefined ? 0 : this.service.filtroRelLaudo.laudoRelId,
                apresentaLitros: this.service.filtroRelLaudo.apresentaLitros,
                consideraLinhas: this.service.filtroRelLaudo.consideraLinhas
            });
        }
        else {
            this.messageService.warning("titles.operacaoDutoviario", "messages.necessarioInformarRegLaudo");
        }
    };
    OperacaoDutoviarioIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_4__["ConfiguracaoFacade"] },
        { type: _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_11__["OperacaoDutoviarioService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] }
    ]; };
    OperacaoDutoviarioIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-operacao-dutoviario-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-dutoviario-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-index/operacao-dutoviario-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_4__["ConfiguracaoFacade"],
            _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_11__["OperacaoDutoviarioService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"]])
    ], OperacaoDutoviarioIndexComponent);
    return OperacaoDutoviarioIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDutoviarioOcorrenciaComponent", function() { return OperacaoDutoviarioOcorrenciaComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _operacao_dutoviario_ocorrencia_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./operacao-dutoviario-ocorrencia.model */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-ocorrencia/operacao-dutoviario-ocorrencia.model.ts");
/* harmony import */ var _operacao_dutoviario_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../operacao-dutoviario.constants */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.constants.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../operacao-dutoviario.service */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
var __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 OperacaoDutoviarioOcorrenciaComponent = /** @class */ (function () {
    function OperacaoDutoviarioOcorrenciaComponent(messageService, service, funcoesService, permissoesUtils) {
        this.messageService = messageService;
        this.service = service;
        this.funcoesService = funcoesService;
        this.permissoesUtils = permissoesUtils;
        this.dataAux = new _operacao_dutoviario_ocorrencia_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioOcorrencia"]();
        this.data = new _operacao_dutoviario_ocorrencia_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioOcorrencia"]();
        this.mensagens = [];
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
        this.hasDados = false;
        this.constantes = new _operacao_dutoviario_constants__WEBPACK_IMPORTED_MODULE_6__["OperacaoDutoviarioConstants"]();
    }
    OperacaoDutoviarioOcorrenciaComponent.prototype.ngDoCheck = function () {
        this.hasDados =
            this.service.data.listaOcorrencias &&
                this.service.data.listaOcorrencias.length > 0 &&
                this.service.data.listaOcorrencias.filter(function (v) {
                    if (v["sitReg"] !== "E") {
                        return true;
                    }
                    return false;
                }).length > 0;
    };
    OperacaoDutoviarioOcorrenciaComponent.prototype.create = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].create;
        this.data = new _operacao_dutoviario_ocorrencia_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioOcorrencia"]();
        this.dataAux = new _operacao_dutoviario_ocorrencia_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioOcorrencia"]();
        this.data.laudoId = this.service.data.laudoId;
    };
    OperacaoDutoviarioOcorrenciaComponent.prototype.edit = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].edit;
        this.data = Object.assign({}, this.dataAux);
        this.dataAux = new _operacao_dutoviario_ocorrencia_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioOcorrencia"]();
    };
    OperacaoDutoviarioOcorrenciaComponent.prototype.detail = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].detail;
        this.data = Object.assign({}, this.dataAux);
    };
    OperacaoDutoviarioOcorrenciaComponent.prototype.back = function (refresh) {
        if (refresh === void 0) { refresh = false; }
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
        if (refresh) {
            this.service.getOcorrencias();
        }
    };
    OperacaoDutoviarioOcorrenciaComponent.prototype.remove = function () {
        var _this = this;
        this.messageService.removeConfirm(function () {
            _this.dataAux.sitReg = "E";
            _this.service.gravarOcorrencia(_this.dataAux).subscribe(function (data) {
                _this.mensagens = _this.messageService.validationResult(data.validationResult);
                if (!data.validationResult.isValid) {
                    _this.messageService.warning("titles.operacaoDutoviario", _this.mensagens[0]);
                }
                else {
                    _this.dataAux = new _operacao_dutoviario_ocorrencia_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioOcorrencia"]();
                    _this.back(true);
                }
            });
        });
    };
    OperacaoDutoviarioOcorrenciaComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.data.logRotina = "Manutenção de TmpOperacaoDutoOcorrencia";
        this.service.gravarOcorrencia(this.data).subscribe(function (resp) {
            _this.mensagens = _this.messageService.validationResult(resp.validationResult);
            if (!resp.validationResult.isValid) {
                _this.messageService.warning("titles.operacaoDutoviario", _this.mensagens[0]);
            }
            else {
                _this.data = new _operacao_dutoviario_ocorrencia_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioOcorrencia"]();
                _this.back(true);
            }
        });
    };
    OperacaoDutoviarioOcorrenciaComponent.prototype.validarDtOcorrencia = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["DateTimeUtilsStaticService"].maiorA(this.data.dtOcorrencia, new Date(), ['H', 'M'])) {
            this.messageService.warning("titles.operacaoDutoviario", "messages.dataNaoPodeSerMaiorQueDataAtual");
            this.data.dtOcorrencia.setDate(new Date().getDate());
        }
    };
    OperacaoDutoviarioOcorrenciaComponent.prototype.validarDtOcorrenciaFim = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["DateTimeUtilsStaticService"].menorA(this.data.dtOcorrenciaFim, this.data.dtOcorrencia, ['H', 'M'])) {
            this.messageService.warning("titles.operacaoDutoviario", "messages.periodoOcorrenciaNaoPodeSerMaiorDataAte");
            this.data.dtOcorrenciaFim.setDate(this.data.dtOcorrencia.getDate());
        }
    };
    OperacaoDutoviarioOcorrenciaComponent.ctorParameters = function () { return [
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_8__["OperacaoDutoviarioService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], OperacaoDutoviarioOcorrenciaComponent.prototype, "disabled", void 0);
    OperacaoDutoviarioOcorrenciaComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-operacao-dutoviario-ocorrencia",
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-dutoviario-ocorrencia.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-ocorrencia/operacao-dutoviario-ocorrencia.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_8__["OperacaoDutoviarioService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"]])
    ], OperacaoDutoviarioOcorrenciaComponent);
    return OperacaoDutoviarioOcorrenciaComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-ocorrencia/operacao-dutoviario-ocorrencia.model.ts":
/*!***************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-ocorrencia/operacao-dutoviario-ocorrencia.model.ts ***!
  \***************************************************************************************************************************/
/*! exports provided: OperacaoDutoviarioOcorrencia */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

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



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDutoviarioOperadorComponent", function() { return OperacaoDutoviarioOperadorComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _operacao_dutoviario_operador_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./operacao-dutoviario-operador.model */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-operador/operacao-dutoviario-operador.model.ts");
/* harmony import */ var _operacao_dutoviario_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../operacao-dutoviario.constants */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.constants.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../operacao-dutoviario.service */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
var __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 OperacaoDutoviarioOperadorComponent = /** @class */ (function () {
    function OperacaoDutoviarioOperadorComponent(messageService, service, funcoesService, permissoesUtils) {
        this.messageService = messageService;
        this.service = service;
        this.funcoesService = funcoesService;
        this.permissoesUtils = permissoesUtils;
        this.dataAux = new _operacao_dutoviario_operador_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioOperador"]();
        this.data = new _operacao_dutoviario_operador_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioOperador"]();
        this.mensagens = [];
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
        this.hasDados = false;
        this.constantes = new _operacao_dutoviario_constants__WEBPACK_IMPORTED_MODULE_6__["OperacaoDutoviarioConstants"]();
    }
    OperacaoDutoviarioOperadorComponent.prototype.ngDoCheck = function () {
        this.hasDados =
            this.service.data.listaOperadores &&
                this.service.data.listaOperadores.length > 0 &&
                this.service.data.listaOperadores.filter(function (v) {
                    if (v["sitReg"] !== "E") {
                        return true;
                    }
                    return false;
                }).length > 0;
    };
    OperacaoDutoviarioOperadorComponent.prototype.create = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].create;
        this.data = new _operacao_dutoviario_operador_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioOperador"]();
        this.dataAux = new _operacao_dutoviario_operador_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioOperador"]();
        this.data.laudoId = this.service.data.laudoId;
    };
    OperacaoDutoviarioOperadorComponent.prototype.edit = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].edit;
        this.data = Object.assign({}, this.dataAux);
        this.dataAux = new _operacao_dutoviario_operador_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioOperador"]();
    };
    OperacaoDutoviarioOperadorComponent.prototype.detail = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].detail;
        this.data = Object.assign({}, this.dataAux);
    };
    OperacaoDutoviarioOperadorComponent.prototype.back = function (refresh) {
        if (refresh === void 0) { refresh = false; }
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
        if (refresh) {
            this.service.getOperadores();
        }
    };
    OperacaoDutoviarioOperadorComponent.prototype.remove = function () {
        var _this = this;
        this.messageService.removeConfirm(function () {
            _this.dataAux.sitReg = "E";
            _this.service.gravarOperador(_this.dataAux).subscribe(function (data) {
                _this.mensagens = _this.messageService.validationResult(data.validationResult);
                if (!data.validationResult.isValid) {
                    _this.messageService.warning("titles.operacaoDutoviario", _this.mensagens[0]);
                }
                else {
                    _this.dataAux = new _operacao_dutoviario_operador_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioOperador"]();
                    _this.back(true);
                }
            });
        });
    };
    OperacaoDutoviarioOperadorComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.data.logRotina = "Manutenção de TmpOperacaoDutoOperador";
        this.service.gravarOperador(this.data).subscribe(function (resp) {
            _this.mensagens = _this.messageService.validationResult(resp.validationResult);
            if (!resp.validationResult.isValid) {
                _this.messageService.warning("titles.operacaoDutoviario", _this.mensagens[0]);
            }
            else {
                _this.data = new _operacao_dutoviario_operador_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioOperador"]();
                _this.back(true);
            }
        });
    };
    OperacaoDutoviarioOperadorComponent.prototype.validarDtInicial = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["DateTimeUtilsStaticService"].maiorA(this.data.dtInicial, new Date(), ['H', 'M'])) {
            this.messageService.warning("titles.operacaoDutoviario", "messages.dataNaoPodeSerMaiorQueDataAtual");
            this.data.dtInicial.setDate(new Date().getDate());
        }
    };
    OperacaoDutoviarioOperadorComponent.prototype.validarDtFinal = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["DateTimeUtilsStaticService"].menorA(this.data.dtFinal, this.data.dtInicial, ['H', 'M'])) {
            this.messageService.warning("titles.operacaoDutoviario", "messages.dataInicioNaoPodeSerMaiorDataFim");
            this.data.dtFinal.setDate(this.data.dtInicial.getDate());
        }
    };
    OperacaoDutoviarioOperadorComponent.ctorParameters = function () { return [
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_8__["OperacaoDutoviarioService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], OperacaoDutoviarioOperadorComponent.prototype, "disabled", void 0);
    OperacaoDutoviarioOperadorComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-operacao-dutoviario-operador",
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-dutoviario-operador.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-operador/operacao-dutoviario-operador.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_8__["OperacaoDutoviarioService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"]])
    ], OperacaoDutoviarioOperadorComponent);
    return OperacaoDutoviarioOperadorComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-operador/operacao-dutoviario-operador.model.ts":
/*!***********************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-operador/operacao-dutoviario-operador.model.ts ***!
  \***********************************************************************************************************************/
/*! exports provided: OperacaoDutoviarioOperador */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

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



/***/ }),

/***/ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-origem-destino/operacao-dutoviario-origem-destino.component.ts":
/*!***************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-origem-destino/operacao-dutoviario-origem-destino.component.ts ***!
  \***************************************************************************************************************************************/
/*! exports provided: OperacaoDutoviarioOrigemDestinoComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDutoviarioOrigemDestinoComponent", function() { return OperacaoDutoviarioOrigemDestinoComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _operacao_dutoviario_origem_destino_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./operacao-dutoviario-origem-destino.model */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-origem-destino/operacao-dutoviario-origem-destino.model.ts");
/* harmony import */ var _operacao_dutoviario_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../operacao-dutoviario.constants */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.constants.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../operacao-dutoviario.service */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.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 OperacaoDutoviarioOrigemDestinoComponent = /** @class */ (function () {
    function OperacaoDutoviarioOrigemDestinoComponent(messageService, service, funcoesService, permissoesUtils) {
        this.messageService = messageService;
        this.service = service;
        this.funcoesService = funcoesService;
        this.permissoesUtils = permissoesUtils;
        this.dataAux = new _operacao_dutoviario_origem_destino_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioOrigemDestino"]();
        this.data = new _operacao_dutoviario_origem_destino_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioOrigemDestino"]();
        this.mensagens = [];
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
        this.hasDados = false;
        this.constantes = new _operacao_dutoviario_constants__WEBPACK_IMPORTED_MODULE_6__["OperacaoDutoviarioConstants"]();
    }
    OperacaoDutoviarioOrigemDestinoComponent.prototype.ngDoCheck = function () {
        this.hasDados =
            this.service.data.listaOrigensDestinos &&
                this.service.data.listaOrigensDestinos.length > 0 &&
                this.service.data.listaOrigensDestinos.filter(function (v) {
                    if (v["sitReg"] !== "E") {
                        return true;
                    }
                    return false;
                }).length > 0;
    };
    OperacaoDutoviarioOrigemDestinoComponent.prototype.create = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].create;
        this.data = new _operacao_dutoviario_origem_destino_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioOrigemDestino"]();
        this.dataAux = new _operacao_dutoviario_origem_destino_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioOrigemDestino"]();
        this.data.laudoId = this.service.data.laudoId;
    };
    OperacaoDutoviarioOrigemDestinoComponent.prototype.edit = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].edit;
        this.data = Object.assign({}, this.dataAux);
        this.dataAux = new _operacao_dutoviario_origem_destino_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioOrigemDestino"]();
    };
    OperacaoDutoviarioOrigemDestinoComponent.prototype.detail = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].detail;
        this.data = Object.assign({}, this.dataAux);
    };
    OperacaoDutoviarioOrigemDestinoComponent.prototype.back = function (refresh) {
        if (refresh === void 0) { refresh = false; }
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
        if (refresh) {
            this.service.getOrigensDestinos();
        }
    };
    OperacaoDutoviarioOrigemDestinoComponent.prototype.remove = function () {
        var _this = this;
        this.messageService.removeConfirm(function () {
            _this.dataAux.sitReg = "E";
            _this.service.gravarOrigemDestino(_this.dataAux).subscribe(function (data) {
                _this.mensagens = _this.messageService.validationResult(data.validationResult);
                if (data.validationResult != null && !data.validationResult.isValid) {
                    _this.messageService.warning("titles.operacaoDutoviario", _this.mensagens[0]);
                }
                else {
                    _this.dataAux = new _operacao_dutoviario_origem_destino_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioOrigemDestino"]();
                    _this.back(true);
                }
            });
        });
    };
    OperacaoDutoviarioOrigemDestinoComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        if (!this.validarDuplicidadeOrigemDestino()) {
            return;
        }
        this.data.logRotina = "Manutenção de TmpOperacaoDutoCliente";
        this.service.gravarOrigemDestino(this.data).subscribe(function (resp) {
            _this.mensagens = _this.messageService.validationResult(resp.validationResult);
            if (resp.validationResult != null && !resp.validationResult.isValid) {
                _this.messageService.warning("titles.operacaoDutoviario", _this.mensagens[0]);
            }
            else {
                _this.data = new _operacao_dutoviario_origem_destino_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioOrigemDestino"]();
                _this.back(true);
            }
        });
    };
    OperacaoDutoviarioOrigemDestinoComponent.prototype.validarDuplicidadeOrigemDestino = function () {
        var _this = this;
        var existentes = this.service.data.listaOrigensDestinos.filter(function (t) { return t.nomeTanque === _this.data.nomeTanque
            && t.sitReg !== "E"; });
        if (existentes.length > 0 && (this.actionForm === _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].create ||
            this.actionForm === _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].edit && existentes[0].item !== this.data.item)) {
            this.messageService.warning("titles.operacaoDutoviario", "messages.tanqueJaInformado");
            this.data.nomeTanque = null;
            return false;
        }
        return true;
    };
    OperacaoDutoviarioOrigemDestinoComponent.ctorParameters = function () { return [
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_8__["OperacaoDutoviarioService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], OperacaoDutoviarioOrigemDestinoComponent.prototype, "disabled", void 0);
    OperacaoDutoviarioOrigemDestinoComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-operacao-dutoviario-origem-destino",
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-dutoviario-origem-destino.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-origem-destino/operacao-dutoviario-origem-destino.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_8__["OperacaoDutoviarioService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"]])
    ], OperacaoDutoviarioOrigemDestinoComponent);
    return OperacaoDutoviarioOrigemDestinoComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-origem-destino/operacao-dutoviario-origem-destino.model.ts":
/*!***********************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-origem-destino/operacao-dutoviario-origem-destino.model.ts ***!
  \***********************************************************************************************************************************/
/*! exports provided: OperacaoDutoviarioOrigemDestino */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

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



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDutoviarioPrintModalComponent", function() { return OperacaoDutoviarioPrintModalComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../operacao-dutoviario.service */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.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 OperacaoDutoviarioPrintModalComponent = /** @class */ (function () {
    function OperacaoDutoviarioPrintModalComponent(router, funcoes, service) {
        this.router = router;
        this.funcoes = funcoes;
        this.service = service;
        this.outConfirma = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    OperacaoDutoviarioPrintModalComponent.prototype.ngOnInit = function () {
        this.tipoSelecionado = "";
        this.initListaTiposImpressao();
    };
    OperacaoDutoviarioPrintModalComponent.prototype.initListaTiposImpressao = function () {
        this.tiposImpressao = [
            { value: "controleTanques", label: "labels.controleTanques" },
            { value: "laudo", label: "labels.laudo" }
        ];
    };
    OperacaoDutoviarioPrintModalComponent.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");
    };
    OperacaoDutoviarioPrintModalComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_4__["OperacaoDutoviarioService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoDutoviarioPrintModalComponent.prototype, "outConfirma", void 0);
    OperacaoDutoviarioPrintModalComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-operacao-dutoviario-print-modal",
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-dutoviario-print-modal.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-print-modal/operacao-dutoviario-print-modal.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_4__["OperacaoDutoviarioService"]])
    ], OperacaoDutoviarioPrintModalComponent);
    return OperacaoDutoviarioPrintModalComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDutoviarioRateioComponent", function() { return OperacaoDutoviarioRateioComponent; });
/* 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 rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
/* harmony import */ var _sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../sto-laudo/sto-laudo.service */ "./src/app/pages/operacao/sto-laudo/sto-laudo.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../operacao-dutoviario.service */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _operacao_dutoviario_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../operacao-dutoviario.constants */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.constants.ts");
/* harmony import */ var _operacao_dutoviario_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../operacao-dutoviario.model */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.model.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/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_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
/* harmony import */ var app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/pages/cadastro/material/material.service */ "./src/app/pages/cadastro/material/material.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 OperacaoDutoviarioRateioComponent = /** @class */ (function (_super) {
    __extends(OperacaoDutoviarioRateioComponent, _super);
    function OperacaoDutoviarioRateioComponent(activatedRoute, funcoesService, stoLaudoService, messageService, service, configuracao, router, materialService) {
        var _this = _super.call(this, new _operacao_dutoviario_constants__WEBPACK_IMPORTED_MODULE_9__["OperacaoDutoviarioConstants"](), funcoesService) || this;
        _this.activatedRoute = activatedRoute;
        _this.funcoesService = funcoesService;
        _this.stoLaudoService = stoLaudoService;
        _this.messageService = messageService;
        _this.service = service;
        _this.configuracao = configuracao;
        _this.router = router;
        _this.materialService = materialService;
        _this.rateio = new _operacao_dutoviario_model__WEBPACK_IMPORTED_MODULE_10__["RateioDados"]();
        _this.constantes = new _operacao_dutoviario_constants__WEBPACK_IMPORTED_MODULE_9__["OperacaoDutoviarioConstants"]();
        _this.dadosRateio = [];
        _this.resumoPorCliente = [];
        _this.resumoPorDeposito = [];
        _this.tanquesRateio = [];
        _this.isEdit = false;
        _this.target = _this.funcoesService.getTargetLocation();
        return _this;
    }
    OperacaoDutoviarioRateioComponent.prototype.ngOnInit = function () {
        return __awaiter(this, void 0, void 0, function () {
            var chave, validation;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        chave = this.activatedRoute.snapshot.paramMap.get("chave");
                        if (!chave) return [3 /*break*/, 2];
                        this.data = app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["ObjectUtilsStaticService"].b64ToObj(chave);
                        return [4 /*yield*/, this.service.processaRateio(this.data.stoLaudoId, 0).toPromise()];
                    case 1:
                        validation = _a.sent();
                        if (!validation.isValid) {
                            validation.erros.forEach(function (m) { return _this.messageService.warning("titles.operacaoDutoviario", m.message); });
                            this.back();
                            return [2 /*return*/];
                        }
                        this.atualizaDados();
                        _a.label = 2;
                    case 2: return [2 /*return*/];
                }
            });
        });
    };
    OperacaoDutoviarioRateioComponent.prototype.atualizaDados = function () {
        var _this = this;
        Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["forkJoin"])([
            this.materialService.getById(this.data.materialId),
            this.service.getDadosRateio(),
            this.service.getResumoPorCliente(this.data.stoLaudoId),
            this.service.getResumoPorDeposito(this.data.stoLaudoId),
        ]).subscribe(function (resp) {
            _this.data.material = resp[0];
            _this.dadosRateio = resp[1];
            _this.resumoPorCliente = resp[2];
            _this.resumoPorDeposito = resp[3];
        });
    };
    OperacaoDutoviarioRateioComponent.prototype.ok = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        if (this.rateio.kilosRecebe < this.rateio.kilosLib) {
            var message = this.messageService.translate("messages.osKilosNaoPodemSerMenoresQueOAntecipado", { kilos: 'Kilos' });
            this.messageService.warning("titles.operacaoDutoviario", message);
            return;
        }
        else if (this.rateio.litrosRecebe < this.rateio.litrosLib) {
            this.messageService.warning("titles.operacaoDutoviario", "messages.osLitrosNaoPodemSerMenoresQueOAntecipado");
            return;
        }
        this.service.rateioGravaTmp(this.rateio).subscribe(function (result) {
            if (result != null && !result.isValid) {
                result.erros.forEach(function (m) { return _this.messageService.warning("titles.operacaoDutoviario", m.message); });
                return;
            }
            _this.atualizaDados();
        });
        this.cancelar();
    };
    OperacaoDutoviarioRateioComponent.prototype.cancelar = function () {
        this.rateio = new _operacao_dutoviario_model__WEBPACK_IMPORTED_MODULE_10__["RateioDados"]();
        this.isEdit = !this.isEdit;
    };
    OperacaoDutoviarioRateioComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate([this.target + "/operacao/operacaoDutoviario"]);
    };
    OperacaoDutoviarioRateioComponent.prototype.selected = function (rateio) {
        this.isEdit = true;
        this.rateio = app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["ObjectUtilsStaticService"].clone(rateio);
    };
    OperacaoDutoviarioRateioComponent.prototype.refazerRateio = function () {
        var _this = this;
        this.messageService.confirm("messages.desejaReprocesarORateio", "messages.estaRotinaIraEliminarORateioAtual", null, function () { return _this.service.processaRateio(_this.data.stoLaudoId, 1).subscribe(function (_) { return _this.atualizaDados(); }); });
    };
    OperacaoDutoviarioRateioComponent.prototype.gravarRateio = function () {
        var _this = this;
        if (this.temDiferenca()) {
            this.messageService.warning("titles.operacaoDutoviario", "messages.existeDiferencaEmKilosOuLitros");
            return;
        }
        this.service.rateioGrava(this.data.stoLaudoId).subscribe(function (resp) {
            if (!resp.isValid) {
                resp.erros.forEach(function (m) { return _this.messageService.warning("titles.operacaoDutoviario", m.message); });
                return;
            }
            _this.messageService.saveSuccess("titles.operacaoDutoviario");
        });
    };
    OperacaoDutoviarioRateioComponent.prototype.temDiferenca = function () {
        var hasDiferenca = false;
        var i = this.resumoPorDeposito.length - 1;
        while (i >= 0 && !hasDiferenca) {
            var e = this.resumoPorDeposito[i];
            if (!hasDiferenca) {
                hasDiferenca = (+e.kilosDif !== 0 && +e.kilosRecebe !== 0) || (+e.litrosDif !== 0 && +e.litrosRecebe !== 0);
                if (hasDiferenca)
                    this.depositoComDiferenca = e.deposito;
            }
            i--;
        }
        return hasDiferenca;
    };
    Object.defineProperty(OperacaoDutoviarioRateioComponent.prototype, "hasDados", {
        get: function () {
            return app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["ArrayUtilsStaticService"].any(this.dadosRateio);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDutoviarioRateioComponent.prototype, "hasResumoPorCliente", {
        get: function () {
            return app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["ArrayUtilsStaticService"].any(this.resumoPorCliente);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDutoviarioRateioComponent.prototype, "hasResumoPorDeposito", {
        get: function () {
            return app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["ArrayUtilsStaticService"].any(this.resumoPorDeposito);
        },
        enumerable: true,
        configurable: true
    });
    OperacaoDutoviarioRateioComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: _sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_5__["StoLaudoService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] },
        { type: _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_7__["OperacaoDutoviarioService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_8__["ConfiguracaoFacade"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_14__["MaterialService"] }
    ]; };
    OperacaoDutoviarioRateioComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-operacao-dutoviario-rateio',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-dutoviario-rateio.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-rateio/operacao-dutoviario-rateio.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_5__["StoLaudoService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"],
            _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_7__["OperacaoDutoviarioService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_8__["ConfiguracaoFacade"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_14__["MaterialService"]])
    ], OperacaoDutoviarioRateioComponent);
    return OperacaoDutoviarioRateioComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_11__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-rel-laudo-modal/operacao-dutoviario-rel-laudo-modal.component.ts":
/*!*****************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-rel-laudo-modal/operacao-dutoviario-rel-laudo-modal.component.ts ***!
  \*****************************************************************************************************************************************/
/*! exports provided: OperacaoDutoviarioRelLaudoModalComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDutoviarioRelLaudoModalComponent", function() { return OperacaoDutoviarioRelLaudoModalComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../operacao-dutoviario.service */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.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 OperacaoDutoviarioRelLaudoModalComponent = /** @class */ (function () {
    function OperacaoDutoviarioRelLaudoModalComponent(router, funcoes, service) {
        this.router = router;
        this.funcoes = funcoes;
        this.service = service;
        this.outConfirma = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.nomeTipoLaudo = "";
    }
    OperacaoDutoviarioRelLaudoModalComponent.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.nomeTipoLaudo);
        jQuery("#modalRelLaudo").modal("hide");
    };
    OperacaoDutoviarioRelLaudoModalComponent.prototype.trataTipoLaudo = function (event) {
        this.nomeTipoLaudo = jQuery("#tipoDeLaudo option[value='" + event + "']").text();
    };
    OperacaoDutoviarioRelLaudoModalComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_4__["OperacaoDutoviarioService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoDutoviarioRelLaudoModalComponent.prototype, "outConfirma", void 0);
    OperacaoDutoviarioRelLaudoModalComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-operacao-dutoviario-rel-laudo-modal",
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-dutoviario-rel-laudo-modal.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-rel-laudo-modal/operacao-dutoviario-rel-laudo-modal.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_4__["OperacaoDutoviarioService"]])
    ], OperacaoDutoviarioRelLaudoModalComponent);
    return OperacaoDutoviarioRelLaudoModalComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDutoviarioTanqueComponent", function() { return OperacaoDutoviarioTanqueComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _operacao_dutoviario_tanque_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./operacao-dutoviario-tanque.model */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-tanque/operacao-dutoviario-tanque.model.ts");
/* harmony import */ var _operacao_dutoviario_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../operacao-dutoviario.constants */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.constants.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../operacao-dutoviario.service */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.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 OperacaoDutoviarioTanqueComponent = /** @class */ (function () {
    function OperacaoDutoviarioTanqueComponent(messageService, service, funcoesService, loginService, permissoesUtils) {
        this.messageService = messageService;
        this.service = service;
        this.funcoesService = funcoesService;
        this.loginService = loginService;
        this.permissoesUtils = permissoesUtils;
        this.dataAux = new _operacao_dutoviario_tanque_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioTanque"]();
        this.data = new _operacao_dutoviario_tanque_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioTanque"]();
        this.mensagens = [];
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
        this.hasDados = false;
        this.now = new Date();
        this.constantes = new _operacao_dutoviario_constants__WEBPACK_IMPORTED_MODULE_6__["OperacaoDutoviarioConstants"]();
    }
    OperacaoDutoviarioTanqueComponent.prototype.ngDoCheck = function () {
        this.hasDados =
            this.service.data.listaTanques &&
                this.service.data.listaTanques.length > 0 &&
                this.service.data.listaTanques.filter(function (v) {
                    if (v["sitReg"] !== "E") {
                        return true;
                    }
                    return false;
                }).length > 0;
    };
    OperacaoDutoviarioTanqueComponent.prototype.create = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].create;
        this.data = new _operacao_dutoviario_tanque_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioTanque"]();
        this.dataAux = new _operacao_dutoviario_tanque_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioTanque"]();
        this.data.laudoId = this.service.data.laudoId;
    };
    OperacaoDutoviarioTanqueComponent.prototype.edit = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].edit;
        this.data = Object.assign({}, this.dataAux);
        this.dataAux = new _operacao_dutoviario_tanque_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioTanque"]();
    };
    OperacaoDutoviarioTanqueComponent.prototype.detail = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].detail;
        this.data = Object.assign({}, this.dataAux);
    };
    OperacaoDutoviarioTanqueComponent.prototype.back = function (refresh) {
        if (refresh === void 0) { refresh = false; }
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
        if (refresh) {
            this.service.getTanques();
        }
    };
    OperacaoDutoviarioTanqueComponent.prototype.remove = function () {
        var _this = this;
        this.messageService.removeConfirm(function () {
            var oldSitReg = _this.dataAux.sitReg;
            _this.dataAux.sitReg = "E";
            _this.service.gravarTanque(_this.dataAux).subscribe(function (data) {
                _this.mensagens = _this.messageService.validationResult(data.validationResult);
                if (!data.validationResult.isValid) {
                    _this.messageService.warning("titles.operacaoDutoviario", _this.mensagens[0]);
                    _this.dataAux.sitReg = oldSitReg;
                }
                else {
                    _this.dataAux = new _operacao_dutoviario_tanque_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioTanque"]();
                    _this.back(true);
                }
            });
        });
    };
    OperacaoDutoviarioTanqueComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        if (!this.validarDuplicidadeTanque()) {
            return;
        }
        this.data.logRotina = "Manutenção de TmpOperacaoDutoTanque";
        this.service.gravarTanque(this.data).subscribe(function (resp) {
            _this.mensagens = _this.messageService.validationResult(resp.validationResult);
            if (!resp.validationResult.isValid) {
                _this.messageService.warning("titles.operacaoDutoviario", _this.mensagens[0]);
            }
            else {
                _this.data = new _operacao_dutoviario_tanque_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioTanque"]();
                _this.back(true);
            }
        });
    };
    OperacaoDutoviarioTanqueComponent.prototype.validarDuplicidadeTanque = function () {
        var _this = this;
        var existentes = this.service.data.listaTanques.filter(function (t) { return t.tanqueId === _this.data.tanqueId
            && t.item !== _this.data.item
            && t.sitReg !== "E"; });
        if (existentes.length > 0) {
            this.messageService.warning("titles.operacaoDutoviario", "messages.tanqueJaInformado");
            this.data.tanqueId = null;
            return false;
        }
        return true;
    };
    Object.defineProperty(OperacaoDutoviarioTanqueComponent.prototype, "saldoDepositoOptions", {
        get: function () {
            return {
                materialId: this.service.data.materialId,
                sitLote: 'A',
                modo: this.service.data.tipoMov === 'D' ? 7 : 8,
                tipoSaldo: this.service.data.tipoMov === 'D' ? 7 : 8,
                dataMovimento: this.now,
                tipoAgrupa: 'D',
                geraArquivo: 'S'
            };
        },
        enumerable: true,
        configurable: true
    });
    OperacaoDutoviarioTanqueComponent.ctorParameters = function () { return [
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_8__["OperacaoDutoviarioService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], OperacaoDutoviarioTanqueComponent.prototype, "disabled", void 0);
    OperacaoDutoviarioTanqueComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-operacao-dutoviario-tanque",
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-dutoviario-tanque.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-tanque/operacao-dutoviario-tanque.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_8__["OperacaoDutoviarioService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"]])
    ], OperacaoDutoviarioTanqueComponent);
    return OperacaoDutoviarioTanqueComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-tanque/operacao-dutoviario-tanque.model.ts":
/*!*******************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-tanque/operacao-dutoviario-tanque.model.ts ***!
  \*******************************************************************************************************************/
/*! exports provided: OperacaoDutoviarioTanque */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

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



/***/ }),

/***/ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-time-log/operacao-dutoviario-time-log.component.ts":
/*!***************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-time-log/operacao-dutoviario-time-log.component.ts ***!
  \***************************************************************************************************************************/
/*! exports provided: OperacaoDutoviarioTimeLogComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDutoviarioTimeLogComponent", function() { return OperacaoDutoviarioTimeLogComponent; });
/* 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_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../operacao-dutoviario.service */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.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 OperacaoDutoviarioTimeLogComponent = /** @class */ (function () {
    function OperacaoDutoviarioTimeLogComponent(messageService, service, funcoesService) {
        this.messageService = messageService;
        this.service = service;
        this.funcoesService = funcoesService;
    }
    OperacaoDutoviarioTimeLogComponent.prototype.validarDtOcorrencia = function (data) {
        if (data) {
            if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["DateTimeUtilsStaticService"].maiorA(data, new Date(), ['H', 'M'])) {
                this.messageService.warning("titles.operacaoDutoviario", "messages.dataNaoPodeSerMaiorQueDataAtual");
                data.setDate(new Date().getDate());
            }
        }
    };
    OperacaoDutoviarioTimeLogComponent.ctorParameters = function () { return [
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_4__["OperacaoDutoviarioService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], OperacaoDutoviarioTimeLogComponent.prototype, "disabled", void 0);
    OperacaoDutoviarioTimeLogComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-operacao-dutoviario-time-log",
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-dutoviario-time-log.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-time-log/operacao-dutoviario-time-log.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _operacao_dutoviario_service__WEBPACK_IMPORTED_MODULE_4__["OperacaoDutoviarioService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"]])
    ], OperacaoDutoviarioTimeLogComponent);
    return OperacaoDutoviarioTimeLogComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDutoviarioConstants", function() { return OperacaoDutoviarioConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var OperacaoDutoviarioConstants = /** @class */ (function () {
    function OperacaoDutoviarioConstants() {
        this.sisFormularioId = 250120;
        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.liberacaoOperacao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 8, acao: "labels.liberacaoFiscal" },
            { sisFormularioId: this.sisFormularioId, libRotina: 9, acao: "labels.cancelarLibFiscal" },
            { sisFormularioId: this.sisFormularioId, libRotina: 10, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 11, acao: "labels.consultaAntecipacao" }
        ];
        this.sisSistemaId = "OPE";
        this.nomeForm = "titles.operacaoDutoviario";
        this.reportId = "";
        this.reportTitulo = { "titulo": "Operação Dutoviário", "subTitulo": "" };
        this.reportControleTanqueId = "OPE0007";
        this.reportControleTanqueTitulo = { "titulo": "Controle de Tanques Terra Dutoviário", "subTitulo": "" };
        this.listaIndex = [
            { 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: 'Medicoes', action: 'medicoes', icon: "icon-ruler-alt", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'LiberacaoPelaOperacao', action: 'liberacaoOperacao', icon: "fa fa-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'LiberacaoPeloFiscal', action: 'liberacaoFiscal', icon: "fa fa-check", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'CancelarLiberacaoPeloFiscal', action: 'cancelarLiberacaoFiscal', icon: "fa fa-ban", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Rateio', action: 'rateio', icon: "fa fa-gears", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: "consultaAntecipacao", action: "consultaAntecipacao", icon: "fa fa-handshake-o", 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' },
            { title: 'Antecipacao', action: 'antecipacao', icon: "fa fa-handshake-o", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
        this.listaAnt = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.listaRateio = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.listaConsultaAntecipacao = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.parametrosConfig = [
            {
                sistema: "OPE", parametros: [
                    "WebSolOperDuto",
                    "Degradacao",
                    "AtualizaDI",
                    "LibAutomaticaAntecip",
                    "LibParNavImp",
                    "LibParNavCab",
                    "ApenasUmClienteDuto"
                ]
            },
            { sistema: "WEB", parametros: ["ModLaudoDuto"] },
            { sistema: "UNI", parametros: ["AntecipacaoNavio"] },
            { sistema: "REL", parametros: ["CoddestBSLZ", "SapRaisen"] }
        ];
    }
    return OperacaoDutoviarioConstants;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDutoviarioModule", function() { return OperacaoDutoviarioModule; });
/* 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_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _operacao_dutoviario_antecipacao_operacao_dutoviario_antecipacao_novo_operacao_dutoviario_antecipacao_novo_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./operacao-dutoviario-antecipacao/operacao-dutoviario-antecipacao-novo/operacao-dutoviario-antecipacao-novo.component */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-antecipacao/operacao-dutoviario-antecipacao-novo/operacao-dutoviario-antecipacao-novo.component.ts");
/* harmony import */ var _operacao_dutoviario_antecipacao_operacao_dutoviario_antecipacao_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./operacao-dutoviario-antecipacao/operacao-dutoviario-antecipacao.component */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-antecipacao/operacao-dutoviario-antecipacao.component.ts");
/* harmony import */ var _operacao_dutoviario_clientes_dados_operacao_dutoviario_clientes_dados_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./operacao-dutoviario-clientes-dados/operacao-dutoviario-clientes-dados.component */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-clientes-dados/operacao-dutoviario-clientes-dados.component.ts");
/* harmony import */ var _operacao_dutoviario_equipto_operacao_dutoviario_equipto_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./operacao-dutoviario-equipto/operacao-dutoviario-equipto.component */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-equipto/operacao-dutoviario-equipto.component.ts");
/* harmony import */ var _operacao_dutoviario_filter_operacao_dutoviario_filter_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./operacao-dutoviario-filter/operacao-dutoviario-filter.component */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-filter/operacao-dutoviario-filter.component.ts");
/* harmony import */ var _operacao_dutoviario_form_operacao_dutoviario_form_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./operacao-dutoviario-form/operacao-dutoviario-form.component */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-form/operacao-dutoviario-form.component.ts");
/* harmony import */ var _operacao_dutoviario_hora_oper_operacao_dutoviario_hora_oper_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./operacao-dutoviario-hora-oper/operacao-dutoviario-hora-oper.component */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-hora-oper/operacao-dutoviario-hora-oper.component.ts");
/* harmony import */ var _operacao_dutoviario_index_operacao_dutoviario_index_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./operacao-dutoviario-index/operacao-dutoviario-index.component */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-index/operacao-dutoviario-index.component.ts");
/* harmony import */ var _operacao_dutoviario_ocorrencia_operacao_dutoviario_ocorrencia_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./operacao-dutoviario-ocorrencia/operacao-dutoviario-ocorrencia.component */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-ocorrencia/operacao-dutoviario-ocorrencia.component.ts");
/* harmony import */ var _operacao_dutoviario_operador_operacao_dutoviario_operador_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./operacao-dutoviario-operador/operacao-dutoviario-operador.component */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-operador/operacao-dutoviario-operador.component.ts");
/* harmony import */ var _operacao_dutoviario_origem_destino_operacao_dutoviario_origem_destino_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./operacao-dutoviario-origem-destino/operacao-dutoviario-origem-destino.component */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-origem-destino/operacao-dutoviario-origem-destino.component.ts");
/* harmony import */ var _operacao_dutoviario_print_modal_operacao_dutoviario_print_modal_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./operacao-dutoviario-print-modal/operacao-dutoviario-print-modal.component */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-print-modal/operacao-dutoviario-print-modal.component.ts");
/* harmony import */ var _operacao_dutoviario_rel_laudo_modal_operacao_dutoviario_rel_laudo_modal_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./operacao-dutoviario-rel-laudo-modal/operacao-dutoviario-rel-laudo-modal.component */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-rel-laudo-modal/operacao-dutoviario-rel-laudo-modal.component.ts");
/* harmony import */ var _operacao_dutoviario_tanque_operacao_dutoviario_tanque_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./operacao-dutoviario-tanque/operacao-dutoviario-tanque.component */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-tanque/operacao-dutoviario-tanque.component.ts");
/* harmony import */ var _operacao_dutoviario_time_log_operacao_dutoviario_time_log_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./operacao-dutoviario-time-log/operacao-dutoviario-time-log.component */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-time-log/operacao-dutoviario-time-log.component.ts");
/* harmony import */ var _operacao_dutoviario_routing_module__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./operacao-dutoviario.routing.module */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario.routing.module.ts");
/* harmony import */ var _operacao_dutoviario_rateio_operacao_dutoviario_rateio_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./operacao-dutoviario-rateio/operacao-dutoviario-rateio.component */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-rateio/operacao-dutoviario-rateio.component.ts");
/* harmony import */ var _operacao_dutoviario_consulta_antecipacao_operacao_dutoviario_consulta_antecipacao_component__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./operacao-dutoviario-consulta-antecipacao/operacao-dutoviario-consulta-antecipacao.component */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-consulta-antecipacao/operacao-dutoviario-consulta-antecipacao.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 OperacaoDutoviarioModule = /** @class */ (function () {
    function OperacaoDutoviarioModule() {
    }
    OperacaoDutoviarioModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [
                app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"],
                _operacao_dutoviario_routing_module__WEBPACK_IMPORTED_MODULE_17__["OperacaoDutoviarioRoutingModule"]
            ],
            declarations: [
                _operacao_dutoviario_form_operacao_dutoviario_form_component__WEBPACK_IMPORTED_MODULE_7__["OperacaoDutoviarioFormComponent"],
                _operacao_dutoviario_index_operacao_dutoviario_index_component__WEBPACK_IMPORTED_MODULE_9__["OperacaoDutoviarioIndexComponent"],
                _operacao_dutoviario_filter_operacao_dutoviario_filter_component__WEBPACK_IMPORTED_MODULE_6__["OperacaoDutoviarioFilterComponent"],
                _operacao_dutoviario_tanque_operacao_dutoviario_tanque_component__WEBPACK_IMPORTED_MODULE_15__["OperacaoDutoviarioTanqueComponent"],
                _operacao_dutoviario_hora_oper_operacao_dutoviario_hora_oper_component__WEBPACK_IMPORTED_MODULE_8__["OperacaoDutoviarioHoraOperComponent"],
                _operacao_dutoviario_ocorrencia_operacao_dutoviario_ocorrencia_component__WEBPACK_IMPORTED_MODULE_10__["OperacaoDutoviarioOcorrenciaComponent"],
                _operacao_dutoviario_operador_operacao_dutoviario_operador_component__WEBPACK_IMPORTED_MODULE_11__["OperacaoDutoviarioOperadorComponent"],
                _operacao_dutoviario_time_log_operacao_dutoviario_time_log_component__WEBPACK_IMPORTED_MODULE_16__["OperacaoDutoviarioTimeLogComponent"],
                _operacao_dutoviario_equipto_operacao_dutoviario_equipto_component__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioEquiptoComponent"],
                _operacao_dutoviario_origem_destino_operacao_dutoviario_origem_destino_component__WEBPACK_IMPORTED_MODULE_12__["OperacaoDutoviarioOrigemDestinoComponent"],
                _operacao_dutoviario_print_modal_operacao_dutoviario_print_modal_component__WEBPACK_IMPORTED_MODULE_13__["OperacaoDutoviarioPrintModalComponent"],
                _operacao_dutoviario_rel_laudo_modal_operacao_dutoviario_rel_laudo_modal_component__WEBPACK_IMPORTED_MODULE_14__["OperacaoDutoviarioRelLaudoModalComponent"],
                _operacao_dutoviario_clientes_dados_operacao_dutoviario_clientes_dados_component__WEBPACK_IMPORTED_MODULE_4__["OperacaoDutoviarioClientesDadosComponent"],
                _operacao_dutoviario_antecipacao_operacao_dutoviario_antecipacao_component__WEBPACK_IMPORTED_MODULE_3__["OperacaoDutoviarioAntecipacaoComponent"],
                _operacao_dutoviario_antecipacao_operacao_dutoviario_antecipacao_novo_operacao_dutoviario_antecipacao_novo_component__WEBPACK_IMPORTED_MODULE_2__["OperacaoDutoviarioAntecipacaoNovoComponent"],
                _operacao_dutoviario_rateio_operacao_dutoviario_rateio_component__WEBPACK_IMPORTED_MODULE_18__["OperacaoDutoviarioRateioComponent"],
                _operacao_dutoviario_consulta_antecipacao_operacao_dutoviario_consulta_antecipacao_component__WEBPACK_IMPORTED_MODULE_19__["OperacaoDutoviarioConsultaAntecipacaoComponent"]
            ]
        })
    ], OperacaoDutoviarioModule);
    return OperacaoDutoviarioModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDutoviarioRoutingModule", function() { return OperacaoDutoviarioRoutingModule; });
/* 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 _operacao_dutoviario_index_operacao_dutoviario_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./operacao-dutoviario-index/operacao-dutoviario-index.component */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-index/operacao-dutoviario-index.component.ts");
/* harmony import */ var _operacao_dutoviario_form_operacao_dutoviario_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./operacao-dutoviario-form/operacao-dutoviario-form.component */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-form/operacao-dutoviario-form.component.ts");
/* harmony import */ var _operacao_dutoviario_antecipacao_operacao_dutoviario_antecipacao_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./operacao-dutoviario-antecipacao/operacao-dutoviario-antecipacao.component */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-antecipacao/operacao-dutoviario-antecipacao.component.ts");
/* harmony import */ var _operacao_dutoviario_rateio_operacao_dutoviario_rateio_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./operacao-dutoviario-rateio/operacao-dutoviario-rateio.component */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-rateio/operacao-dutoviario-rateio.component.ts");
/* harmony import */ var _operacao_dutoviario_consulta_antecipacao_operacao_dutoviario_consulta_antecipacao_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./operacao-dutoviario-consulta-antecipacao/operacao-dutoviario-consulta-antecipacao.component */ "./src/app/pages/operacao/operacao-dutoviario/operacao-dutoviario-consulta-antecipacao/operacao-dutoviario-consulta-antecipacao.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};








var MRoutes = [
    {
        path: "",
        component: _operacao_dutoviario_index_operacao_dutoviario_index_component__WEBPACK_IMPORTED_MODULE_3__["OperacaoDutoviarioIndexComponent"],
        data: { breadcrumb: "operacaoDutoviario", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "edit/:id",
        component: _operacao_dutoviario_form_operacao_dutoviario_form_component__WEBPACK_IMPORTED_MODULE_4__["OperacaoDutoviarioFormComponent"],
        data: {
            breadcrumb: "operacaoDutoviario",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _operacao_dutoviario_form_operacao_dutoviario_form_component__WEBPACK_IMPORTED_MODULE_4__["OperacaoDutoviarioFormComponent"],
        data: {
            breadcrumb: "operacaoDutoviario",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    },
    {
        path: "antecipacao/:chave",
        component: _operacao_dutoviario_antecipacao_operacao_dutoviario_antecipacao_component__WEBPACK_IMPORTED_MODULE_5__["OperacaoDutoviarioAntecipacaoComponent"],
        data: {
            breadcrumb: "operacaoDutoviario",
            breadcrumbSub: "antecipacao"
        }
    },
    {
        path: "rateio/:chave",
        component: _operacao_dutoviario_rateio_operacao_dutoviario_rateio_component__WEBPACK_IMPORTED_MODULE_6__["OperacaoDutoviarioRateioComponent"],
        data: {
            breadcrumb: "operacaoDutoviario",
            breadcrumbSub: "rateio"
        }
    },
    {
        path: "consultaAntecipacao/:id",
        component: _operacao_dutoviario_consulta_antecipacao_operacao_dutoviario_consulta_antecipacao_component__WEBPACK_IMPORTED_MODULE_7__["OperacaoDutoviarioConsultaAntecipacaoComponent"],
        data: {
            breadcrumb: "operacaoDutoviario",
            breadcrumbSub: "consultaAntecipacao",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    }
];
var OperacaoDutoviarioRoutingModule = /** @class */ (function () {
    function OperacaoDutoviarioRoutingModule() {
    }
    OperacaoDutoviarioRoutingModule = __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"]],
        })
    ], OperacaoDutoviarioRoutingModule);
    return OperacaoDutoviarioRoutingModule;
}());



/***/ })

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