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

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal fade\" id=\"osg-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.pesquisaDeOsg' | 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=\"osgId\">{{'labels.id' | translate}}</label>\r\n                                <input id=\"osgId\" name=\"osgId\" [(ngModel)]=\"filtro.osgId\"\r\n                                       class=\"form-control form-control-sm\" type=\"text\">\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=\"numeroOsg\">{{'labels.osg' | translate}}</label>\r\n                                <input id=\"numeroOsg\" name=\"numeroOsg\" [(ngModel)]=\"filtro.numeroOsg\"\r\n                                       class=\"form-control form-control-sm\" type=\"text\">\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-md-6 col-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"periodoDe\"\r\n                                       class=\"required\">{{\"labels.periodoDe\" | translate }}</label>\r\n                                <app-data id=\"periodoDe\"\r\n                                          name=\"periodoDe\"\r\n                                          [(ngModel)]=\"filtro.dataI\"\r\n                                          autofocus\r\n                                          class=\"dataHora\"\r\n                                          [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\"\r\n                                       class=\"required\">{{\"labels.ate\" | translate}}</label>\r\n                                <app-data id=\"ate\"\r\n                                          name=\"ate\"\r\n                                          [(ngModel)]=\"filtro.dataF\"\r\n                                          class=\"dataHora\"\r\n                                          [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-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" tipoDestinatario=\"C\"\r\n                                                           modalTitle=\"pesquisaDeCliente\" label=\"cliente\"\r\n                                                           [(ngModel)]=\"filtro.destinatarioIdCliente\"\r\n                                                           showInscricao=\"false\" showCgcCpf=\"false\"\r\n                                                           (outModel)=\"trataDest($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-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-destinatario id=\"trading\" name=\"trading\" label=\"trading\"\r\n                                    modalTitle=\"trading\" [(ngModel)]=\"filtro.trading\" showCgcCpf=\"false\"\r\n                                    showInscricao=\"false\" (outModel)=\"trataTradingDest($event)\" \r\n                                    [inSelected]=\"filtro.tradingDest\">\r\n                                </app-pesquisa-destinatario>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-md-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\"\r\n                                        name=\"situacao\"\r\n                                        [(ngModel)]=\"filtro.sitOsg\"\r\n                                        class=\"form-control form-control-sm\">\r\n                                    <option value=\"A\">{{ 'labels.abertos' | translate}}</option>\r\n                                    <option value=\"E\">{{ 'labels.encerrados' | translate}}</option>\r\n                                    <option value=\"T\">{{ 'labels.todos' |  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 class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>\r\n");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaForm\" [formAction]=\"actionForm\" [itemData]=\"data.osgId\"\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            <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=\"#ge\">{{\"labels.gerais\" | translate}}</a>\r\n                    </li>\r\n                    <li class=\"nav-item\">\r\n                        <a class=\"nav-link\" data-toggle=\"tab\" href=\"#cl\">{{\"labels.clientes\" | translate}}</a>\r\n                    </li>\r\n                    <li class=\"nav-item\">\r\n                        <a class=\"nav-link\" data-toggle=\"tab\" href=\"#de\">{{\"labels.depositos\" | translate}}</a>\r\n                    </li>\r\n                    <li class=\"nav-item\">\r\n                        <a class=\"nav-link\" data-toggle=\"tab\" href=\"#ob\">{{\"labels.observacoes\" | 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=\"ge\">\r\n                    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\r\n                        <app-validacoes></app-validacoes>\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=\"#da\">{{\"labels.dados\" |\r\n                                        translate}}</a>\r\n                                </li>\r\n                                <li class=\"nav-item\">\r\n                                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#op\">{{\"labels.operacao\" |\r\n                                        translate}}</a>\r\n                                </li>\r\n                                <li class=\"nav-item\">\r\n                                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#pr\">{{\"labels.procedimentos\" |\r\n                                        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=\"da\">\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=\"emissao\">{{'labels.emissao' | translate}}</label>\r\n                                            <input type=\"text\" class=\"form-control form-control-sm\" id=\"emissao\"\r\n                                                name=\"emissao\" value=\"{{data?.dtEmissao | date:'dd/MM/yy HH:mm' }}\"\r\n                                                disabled>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-3\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"inicio\" class=\"required\">{{\"labels.inicio\" | translate\r\n                                                }}</label>\r\n                                            <app-data id=\"inicio\" name=\"inicio\" [(ngModel)]=\"data.dtInicio\" autofocus\r\n                                                class=\"dataHora\" [formatDateTime]=\"mascara.getFormatData\" maxlength=\"10\"\r\n                                                required=\"true\" [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                            </app-data>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-3\">\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\"\r\n                                                name=\"numero\" value=\"{{data?.numeroOsg }}\" disabled>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-8\">\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)]=\"data.materialId\"\r\n                                                [inSelected]=\"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>\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=\"densidade\" class=\"required\">{{'labels.densidade' |\r\n                                                translate}}</label>\r\n                                            <input id=\"densidade\" name=\"densidade\" type=\"text\"\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\r\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 5 }\"\r\n                                                [(ngModel)]=\"data.densidade\" maxlength=\"7\"\r\n                                                class=\"form-control form-control-sm\" required>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-3\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"temperatura\">{{'labels.temperatura' | translate}}</label>\r\n                                            <input id=\"temperatura\" name=\"temperatura\" type=\"text\"\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\r\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 1 }\"\r\n                                                [(ngModel)]=\"data.temperatura\" maxlength=\"5\"\r\n                                                class=\"form-control form-control-sm\">\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-3\">\r\n                                        <div class=\"form-check mt-4\">\r\n                                            <div class=\"form-group\">\r\n                                                <input class=\"form-check-input\" type=\"checkbox\" id=\"aberto\"\r\n                                                    name=\"aberto\" (ngModelChange)=\"data.sitOsg = $event ? 'A' : 'E'\"\r\n                                                    [ngModel]=\"data.sitOsg ==='A'\"\r\n                                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                                <label class=\"form-check-label\" for=\"aberto\">{{'labels.aberto' |\r\n                                                    translate}}\r\n                                                </label>\r\n                                            </div>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-8\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <app-pesquisa-destinatario id=\"transportadora\" name=\"transportadora\"\r\n                                                label=\"transportadora\" modalTitle=\"transportadora\"\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                                [(ngModel)]=\"data.destinatarioIdTransportadora\" tipoDestinatario=\"T, N\"\r\n                                                showCgcCpf=\"false\" showInscricao=\"false\"\r\n                                                [inSelected]=\"data.transportadora\" required=\"true\"\r\n                                                (outModel)=\"trataTransportadora($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-8\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <app-pesquisa-destinatario id=\"trading\" name=\"trading\" label=\"trading\"\r\n                                                modalTitle=\"trading\" [(ngModel)]=\"data.trading\" showCgcCpf=\"false\"\r\n                                                showInscricao=\"false\" [required]=\"trading\"\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                                (outModel)=\"trataTrading($event)\" [inSelected]=\"data.tradingDest\">\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-8\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"origem\">{{'labels.origem' | translate}}</label>\r\n                                            <input type=\"text\" class=\"form-control form-control-sm\" id=\"origem\"\r\n                                                name=\"origem\" [(ngModel)]=\"data.origem\"\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-3\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <app-field-container>\r\n                                                <label class=\"required\">{{'labels.tipoOperacao' | translate}}</label>\r\n                                                <app-combo-tipo-operacao id=\"tipoOperacao\" name=\"tipoOperacao\"\r\n                                                    [(ngModel)]=\"data.tipoOperacaoId\" required=\"true\"\r\n                                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                                </app-combo-tipo-operacao>\r\n                                            </app-field-container>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-3\">\r\n                                        <div class=\"form-check mt-4\">\r\n                                            <div class=\"form-group\">\r\n                                                <input class=\"form-check-input\" type=\"checkbox\" id=\"controlaDescarga\"\r\n                                                    name=\"controlaDescarga\"\r\n                                                    (ngModelChange)=\"data.controlaDescarga = $event ? 'S' : 'N'\"\r\n                                                    [ngModel]=\"data.controlaDescarga ==='S'\"\r\n                                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                                    (change)=\"trataControlaDescarga($event)\">\r\n                                                <label class=\"form-check-label\"\r\n                                                    for=\"controlaDescarga\">{{'labels.controlaDescarga' | translate}}\r\n                                                </label>\r\n                                            </div>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-3\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"kilosMaximo\"\r\n                                                [class.required]=\"data.controlaDescarga ==='S'\">{{'labels.kilosMaximo' |\r\n                                                translate}}</label>\r\n                                            <input id=\"kilosMaximo\" name=\"kilosMaximo\" type=\"text\"\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm) || data.controlaDescarga !=='S'\"\r\n                                                currencyMask\r\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                                [(ngModel)]=\"data.kilosDescarga\" maxlength=\"12\"\r\n                                                class=\"form-control form-control-sm\"\r\n                                                [required]=\"data.controlaDescarga ==='S'\"\r\n                                                (blur)=\"validakilosDescargaDados()\">\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-3\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"litrosMaximo\">{{'labels.litrosMaximo' | translate}}</label>\r\n                                            <input id=\"litrosMaximo\" name=\"litrosMaximo\" type=\"text\"\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm) || data.controlaDescarga !=='S'\"\r\n                                                currencyMask\r\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                                [(ngModel)]=\"data.litrosDescarga\" maxlength=\"12\"\r\n                                                class=\"form-control form-control-sm\" (blur)=\"trataLitrosDescarga()\">\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\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=\"tipoProduto\"\r\n                                                [class.required]=\"obrigaTpProdOSG\">{{\"labels.tipoProduto\" |\r\n                                                translate}}</label>\r\n                                            <select id=\"tipoProduto\" name=\"tipoProduto\"\r\n                                                class=\"form-control form-control-sm\"\r\n                                                [(ngModel)]=\"data.tipoProdutoArmazenadoId\"\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                                [required]=\"obrigaTpProdOSG\">\r\n                                                <option value=\"\">{{ 'labels.selecione' | translate }}</option>\r\n                                                <option [value]=\"d.chave\" *ngFor=\"let d of fTiposProdutos\">{{d.valor}}\r\n                                                </option>\r\n                                            </select>\r\n                                        </div>\r\n                                    </div>\r\n                                    <ng-container *ngIf=\"contratoNaOsg else impContrato\">\r\n                                        <div class=\"col-lg-3\">\r\n                                            <div class=\"form-group form-group-sm\">\r\n                                                <app-pesquisa-sto-contrato-item id=\"contrato\" name=\"contrato\"\r\n                                                    tipoServico=\"1\" modalTitle=\"contrato\"\r\n                                                    [(ngModel)]=\"data.stoContratoId\"\r\n                                                    (outSelected)=\"trataContrato($event)\"\r\n                                                    [disabled]=\"isContratoDisabled\"\r\n                                                    [inpStoContrato]=\"data.stoContratoItem\" [required]=\"true\">\r\n                                                </app-pesquisa-sto-contrato-item>\r\n                                            </div>\r\n                                        </div>\r\n                                    </ng-container>\r\n                                    <ng-template #impContrato>\r\n                                        <div class=\"col-lg-3\">\r\n                                            <div class=\"form-group form-group-sm\">\r\n                                                <label for=\"numContrato\">{{'labels.numContrato' | translate}}</label>\r\n                                                <input type=\"text\" class=\"form-control form-control-sm\" id=\"numContrato\"\r\n                                                    name=\"numContrato\" [(ngModel)]=\"data.numContrato\" maxlength=\"20\"\r\n                                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                            </div>\r\n                                        </div>\r\n                                    </ng-template>\r\n                                    <div class=\"col-lg-3\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"qtdeTonelada\">{{'labels.qtdeTonelada' | translate}}</label>\r\n                                            <input id=\"qtdeTonelada\" name=\"qtdeTonelada\" type=\"text\"\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\r\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                                [(ngModel)]=\"data.quantid\" maxlength=\"12\"\r\n                                                class=\"form-control form-control-sm\">\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-3\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"pedidoCompra\">{{'labels.pedidoCompra' | translate}}</label>\r\n                                            <input id=\"pedidoCompra\" name=\"pedidoCompra\" type=\"text\"\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                                [(ngModel)]=\"data.pedidoCompra\" mask=\"999999999\"\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\">\r\n                                        <div class=\"form-check mt-4\">\r\n                                            <div class=\"form-group\">\r\n                                                <input class=\"form-check-input\" type=\"checkbox\" id=\"transfTerceiros\"\r\n                                                    name=\"transfTerceiros\"\r\n                                                    (ngModelChange)=\"data.transfTerceiros = $event ? 'S' : 'N'\"\r\n                                                    [ngModel]=\"data.transfTerceiros ==='S'\"\r\n                                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                                <label class=\"form-check-label\"\r\n                                                    for=\"transfTerceiros\">{{'labels.transfTerceiros' | translate}}\r\n                                                </label>\r\n                                            </div>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <span *ngIf=\"data.sisCampoAdds\">\r\n                                    <div *ngFor=\"let d of 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'\">\r\n                                        </app-campos-adicionais>\r\n                                    </div>\r\n                                </span>\r\n                            </div>\r\n                            <!-- ABA OPERACOES -->\r\n                            <div class=\"tab-pane\" id=\"op\">\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-8\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"descOperacao\">{{'labels.descOperacao' | translate}}</label>\r\n                                            <input type=\"text\" class=\"form-control form-control-sm\" id=\"descOperacao\"\r\n                                                name=\"descOperacao\" [(ngModel)]=\"data.descrOperacaoOsg\"\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" maxlength=\"250\">\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-8\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"aquecimentoVapor\">{{'labels.aquecimentoVapor' |\r\n                                                translate}}</label>\r\n                                            <input type=\"text\" class=\"form-control form-control-sm\"\r\n                                                id=\"aquecimentoVapor\" name=\"aquecimentoVapor\"\r\n                                                [(ngModel)]=\"data.descrAquec\"\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" maxlength=\"250\">\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-8\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"nitrogenizacao\">{{'labels.nitrogenizacao' | translate}}</label>\r\n                                            <input type=\"text\" class=\"form-control form-control-sm\" id=\"nitrogenizacao\"\r\n                                                name=\"nitrogenizacao\" [(ngModel)]=\"data.descrNitro\"\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" maxlength=\"250\">\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-8\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"inertizacao\">{{'labels.inertizacao' | translate}}</label>\r\n                                            <input type=\"text\" class=\"form-control form-control-sm\" id=\"inertizacao\"\r\n                                                name=\"inertizacao\" [(ngModel)]=\"data.descrInert\"\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" maxlength=\"250\">\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-8\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"procedimentoFiscal\">{{'labels.procedimentoFiscal' |\r\n                                                translate}}</label>\r\n                                            <input type=\"text\" class=\"form-control form-control-sm\"\r\n                                                id=\"procedimentoFiscal\" name=\"procedimentoFiscal\"\r\n                                                [(ngModel)]=\"data.procedFiscal\"\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" maxlength=\"250\">\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-8\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"controlePoluicao\">{{'labels.controlePoluicao' |\r\n                                                translate}}</label>\r\n                                            <input type=\"text\" class=\"form-control form-control-sm\"\r\n                                                id=\"controlePoluicao\" name=\"controlePoluicao\"\r\n                                                [(ngModel)]=\"data.descrPoluicao\"\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" maxlength=\"250\">\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-8\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"horarioAtend\">{{'labels.horarioAtend' | translate}}</label>\r\n                                            <input type=\"text\" class=\"form-control form-control-sm\" id=\"horarioAtend\"\r\n                                                name=\"horarioAtend\" [(ngModel)]=\"data.descrHorario\"\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" maxlength=\"250\">\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <!-- ABA PROCEDIMENTOS -->\r\n                            <div class=\"tab-pane\" id=\"pr\">\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-8\">\r\n                                        <label for=\"descEPI\">{{'labels.descEPI' | translate}}</label>\r\n                                        <textarea id=\"descEPI\" name=\"observacoes\" [(ngModel)]=\"data.descrEquip\"\r\n                                            class=\"form-control\" rows=\"6\" maxlength=\"250\"\r\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\" autofocus\r\n                                            data-title=\"{{'labels.descEPI' | translate}}\"></textarea>\r\n                                    </div>\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=\"data.sisCampoAdds\">\r\n                                    <div *ngFor=\"let d of 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 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                <!--ABA CLIENTES-->\r\n                <div class=\"tab-pane\" id=\"cl\">\r\n                    <app-osg-item [dadosOsg]=\"data\" [dados]=\"data.itens\" (dataResult)=\"refreshItens($event)\"\r\n                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                    </app-osg-item>\r\n                </div>\r\n                <!-- ABA DEPOSITOS-->\r\n                <div class=\"tab-pane\" id=\"de\">\r\n                    <app-osg-tanque [dadosOsg]=\"data\" [dados]=\"data.tanques\"\r\n                        [disabled]=\"funcoesService.isDetail(actionForm)\" (dataResult)=\"refreshTanques($event)\">\r\n                    </app-osg-tanque>\r\n                </div>\r\n                <!-- ABA OBSERVACOES-->\r\n                <div class=\"tab-pane\" id=\"ob\">\r\n                    <app-osg-observ [dadosOsg]=\"data\" [dados]=\"data.observacoes\"\r\n                        [disabled]=\"funcoesService.isDetail(actionForm)\" (dataResult)=\"refreshObserv($event)\">\r\n                    </app-osg-observ>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/osg/osg-index/osg-index.component.html":
/*!*************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/osg/osg-index/osg-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.osgId\"\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <table id=\"dtOsg\" 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-osg-filter [data]=\"filtro\" (filtrar)=\"executaFiltro($event)\"></app-osg-filter>\n<app-osg-print-modal (outConfirma)=\"confirmaImpressao($event)\"></app-osg-print-modal>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/osg/osg-item/osg-item.component.html":
/*!***********************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/osg/osg-item/osg-item.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=\"row\">\r\n    <div class=\"col-md-12 col-lg-12\">\r\n        <div *ngIf=\"!showAdd\">\r\n            <div class=\"btn-group\" *ngIf=\"!showAdd\">\r\n            <button title=\"{{ 'buttons.novo' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"create()\"\r\n                        [disabled]=\"disabled\">\r\n                    <i class=\"icon-plus\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.visualizar' | translate }}\" (click)=\"detail()\" class=\"btn uni-btn btn-sm\"\r\n                        [disabled]=\"funcoesService.showButtons.detail(actionForm,  dataAux.sequencia) || isSet\">\r\n                    <i class=\"icon-eye\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.editar' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"edit()\"\r\n                        [disabled]=\"disabled || funcoesService.showButtons.detail(actionForm,  dataAux.sequencia) || isSet\">\r\n                    <i class=\"icon-pencil\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.excluir' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"remove()\"\r\n                        [disabled]=\"disabled || isSet\">\r\n                    <i class=\"icon-close\"></i>\r\n                </button>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<div class=\"row\" *ngIf=\"!showAdd\">\r\n    <div class=\"clearfix\">&nbsp;</div>\r\n    <div class=\"col-md-12 col-lg-12\">\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\"  width=\"10%\">{{ 'labels.codigo' | translate }}</th>\r\n                <th class=\"text-left\">{{ 'labels.cliente' | translate }}</th>\r\n            </tr>\r\n            </thead>\r\n            <tbody>\r\n            <tr *ngFor=\"let c of dados | removeExcluidos\" class=\"clickable\"\r\n                [ngClass]=\"{ 'info' : c === dataAux }\"\r\n                (click)=\"rowSelect(c)\">\r\n                <td class=\"text-center\">{{c?.destinatarioIdCliente}}</td>\r\n                <td class=\"text-left\">{{c?.cliente?.fantasia}}</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\r\n<div *ngIf=\"showAdd\">\r\n    <div class=\"row\">\r\n        <div class=\"col-lg-6\">\r\n            <div class=\"uni-botoes\">\r\n                <button title=\"{{ 'buttons.editar' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"edit()\"\r\n                        [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, dataAux.osgId)\">\r\n                    <i class=\"fa fa-edit\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.voltar' | translate }}\" (click)=\"back()\" type=\"button\"\r\n                        class=\"btn uni-btn btn-sm\">\r\n                    <i class=\"fa fa-arrow-left\"></i>\r\n                </button>\r\n            </div>\r\n        </div>\r\n        <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\" #osgItem=\"ngForm\" (ngSubmit)=\"onSubmit(osgItem)\">\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-8\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <app-pesquisa-destinatario id=\"cliente\"\r\n                                                               name=\"cliente\"\r\n                                                               label=\"cliente\"\r\n                                                               modalTitle=\"pesquisaDeCliente\"\r\n                                                               [(ngModel)]=\"data.destinatarioIdCliente\"\r\n                                                               showCgcCpf=\"false\"\r\n                                                               showInscricao=\"false\"\r\n                                                               [inSelected]=\"data?.cliente\"\r\n                                                               [disabled]=\"!funcoesService.isCreate(actionForm)\"\r\n                                                               (outModel)=\"trataDest($event)\"\r\n                                                               required=\"true\">\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-8\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <app-pesquisa-destinatario id=\"destinatarioIdAnaliseTanque\"\r\n                                                               name=\"destinatarioIdAnaliseTanque\"\r\n                                                               label=\"analiseTanque\"\r\n                                                               modalTitle=\"pesquisaDeAnaliseTanque\"\r\n                                                               [(ngModel)]=\"data.destinatarioIdAnaliseTanque\"\r\n                                                               tipoDestinatario=\"C\"\r\n                                                               showCgcCpf=\"false\"\r\n                                                               showInscricao=\"false\"\r\n                                                               [inSelected]=\"data.analiseTanque\"\r\n                                                               [disabled]=\"funcoesService.isDetail(actionForm)\">\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-8\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <app-pesquisa-destinatario id=\"destinatarioIdAnaliseCaminhao\"\r\n                                                               name=\"destinatarioIdAnaliseCaminhao\"\r\n                                                               label=\"analiseCaminhao\"\r\n                                                               modalTitle=\"pesquisaDeAnaliseCaminhao\"\r\n                                                               [(ngModel)]=\"data.destinatarioIdAnaliseCaminhao\"\r\n                                                               tipoDestinatario=\"C\"\r\n                                                               showCgcCpf=\"false\"\r\n                                                               showInscricao=\"false\"\r\n                                                               [inSelected]=\"data.analiseCaminhao\"\r\n                                                               [disabled]=\"funcoesService.isDetail(actionForm)\">\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-8\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <app-pesquisa-destinatario id=\"destinatarioIdLacracao\"\r\n                                                               name=\"destinatarioIdLacracao\"\r\n                                                               label=\"lacracao\"\r\n                                                               modalTitle=\"pesquisaDeAnaliseLacracao\"\r\n                                                               [(ngModel)]=\"data.destinatarioIdLacracao\"\r\n                                                               tipoDestinatario=\"C\"\r\n                                                               showCgcCpf=\"false\"\r\n                                                               showInscricao=\"false\"\r\n                                                               [inSelected]=\"data.lacracao\"\r\n                                                               [disabled]=\"funcoesService.isDetail(actionForm)\">\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-8\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <app-pesquisa-destinatario id=\"destinatarioIdInspecaoCaminhao\"\r\n                                                               name=\"destinatarioIdInspecaoCaminhao\"\r\n                                                               label=\"inspecaoCaminha\"\r\n                                                               modalTitle=\"pesquisaDeInspecaoCaminhao\"\r\n                                                               [(ngModel)]=\"data.destinatarioIdInspecaoCaminhao\"\r\n                                                               tipoDestinatario=\"C\"\r\n                                                               showCgcCpf=\"false\"\r\n                                                               showInscricao=\"false\"\r\n                                                               [inSelected]=\"data.inspecaoCaminhao\"\r\n                                                               [disabled]=\"funcoesService.isDetail(actionForm)\">\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-2\">\r\n                                <div class=\"form-check mt-4\">\r\n                                    <div class=\"form-group\">\r\n                                        <input class=\"form-check-input\" type=\"checkbox\"\r\n                                               id=\"controlaDescarga\"\r\n                                               name=\"controlaDescarga\"\r\n                                               (ngModelChange)=\"data.controlaDescarga = $event ? 'S' : 'N'\"\r\n                                               [ngModel]=\"data.controlaDescarga ==='S'\"\r\n                                               [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                               (change)=\"trataControlaDescarga($event)\">\r\n                                        <label class=\"form-check-label\"\r\n                                               for=\"controlaDescarga\">{{'labels.controlaDescarga' | translate}}\r\n                                        </label>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-3\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"kilosMaximo\" [class.required]=\"data.controlaDescarga ==='S'\">{{'labels.kilosMaximo' | translate}}</label>\r\n                                    <input id=\"kilosMaximo\"\r\n                                           name=\"kilosMaximo\"\r\n                                           type=\"text\"\r\n                                           [disabled]=\"funcoesService.isDetail(actionForm) || data.controlaDescarga !=='S'\"\r\n                                           currencyMask\r\n                                           [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                           [(ngModel)]=\"data.kilosDescarga\"\r\n                                           maxlength=\"17\"\r\n                                           class=\"form-control form-control-sm\"\r\n                                           [required]=\"data.controlaDescarga ==='S'\"\r\n                                           (blur)=\"validakilosDescargaCliente()\">\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-3\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"litrosMaximo\">{{'labels.litrosMaximo' | translate}}</label>\r\n                                    <input id=\"litrosMaximo\"\r\n                                           name=\"litrosMaximo\"\r\n                                           type=\"text\"\r\n                                           [disabled]=\"funcoesService.isDetail(actionForm) || data.controlaDescarga !=='S'\"\r\n                                           currencyMask\r\n                                           [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                           [(ngModel)]=\"data.litrosDescarga\"\r\n                                           maxlength=\"17\"\r\n                                           class=\"form-control form-control-sm\"\r\n                                           (blur)=\"trataLitrosDescarga()\">\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"form-group\">\r\n                            <button class=\"btn btn-success\" type=\"submit\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">{{ 'buttons.salvar' | translate }}\r\n                            </button>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </form>\r\n</div>\r\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/osg/osg-observ/osg-observ.component.html":
/*!***************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/osg/osg-observ/osg-observ.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=\"row\">\r\n    <div class=\"col-md-12 col-lg-12\">\r\n        <div *ngIf=\"!showAdd\">\r\n            <div class=\"btn-group\" *ngIf=\"!showAdd\">\r\n                <button title=\"{{ 'buttons.novo' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"create()\"\r\n                        [disabled]=\"disabled\">\r\n                    <i class=\"icon-plus\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.visualizar' | translate }}\" (click)=\"detail()\" class=\"btn uni-btn btn-sm\"\r\n                        [disabled]=\" funcoesService.showButtons.detail(actionForm, dataAux.osgId)\">\r\n                    <i class=\"icon-eye\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.editar' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"edit()\"\r\n                        [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, dataAux.osgId)\">\r\n                    <i class=\"icon-pencil\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.excluir' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"remove()\"\r\n                        [disabled]=\"disabled ||funcoesService.showButtons.remove(actionForm, dataAux.osgId)\">\r\n                    <i class=\"icon-close\"></i>\r\n                </button>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<div class=\"row\" *ngIf=\"!showAdd\">\r\n    <div class=\"clearfix\">&nbsp;</div>\r\n    <div class=\"col-md-12 col-lg-12\">\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.observacoes\" | translate }}</th>\r\n            </tr>\r\n            </thead>\r\n            <tbody>\r\n            <tr *ngFor=\"let c of (dados | removeExcluidos)\" class=\"clickable\" [ngClass]=\"{ info: c === dataAux }\"\r\n                (click)=\"dataAux = c\">\r\n                <td class=\"text\">{{ c.observ }}</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\r\n<div *ngIf=\"showAdd\">\r\n    <div class=\"row\">\r\n        <div class=\"col-lg-6\">\r\n            <div class=\"uni-botoes\">\r\n                <button title=\"{{ 'buttons.editar' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"edit()\"\r\n                        [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, dataAux.osgId)\">\r\n                    <i class=\"fa fa-edit\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.voltar' | translate }}\" (click)=\"back()\" type=\"button\"\r\n                        class=\"btn uni-btn btn-sm\">\r\n                    <i class=\"fa fa-arrow-left\"></i>\r\n                </button>\r\n            </div>\r\n        </div>\r\n        <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-8\">\r\n                                <label for=\"observacoes\">{{'labels.observacoes' | translate}}</label>\r\n                                <textarea id=\"observacoes\" name=\"observacoes\" [(ngModel)]=\"data.observ\"\r\n                                          class=\"form-control\" rows=\"6\"\r\n                                          [disabled]=\"funcoesService.isDetail(actionForm)\" autofocus\r\n                                          data-title=\"{{'labels.observacoes' | translate}}\"></textarea>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"clearfix\">&nbsp;</div>\r\n                        <div class=\"form-group\">\r\n                            <button\r\n                                    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/controle/osg/osg-print-modal/osg-print-modal.component.html":
/*!*************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/osg/osg-print-modal/osg-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-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/controle/osg/osg-tanque/osg-tanque.component.html":
/*!***************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/osg/osg-tanque/osg-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 class=\"row\">\r\n    <div class=\"col-md-12 col-lg-12\">\r\n        <div *ngIf=\"!showAdd\">\r\n            <div class=\"btn-group\" *ngIf=\"!showAdd\">\r\n                <button title=\"{{ 'buttons.novo' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"create()\"\r\n                        [disabled]=\"disabled\">\r\n                    <i class=\"icon-plus\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.visualizar' | translate }}\" (click)=\"detail()\" class=\"btn uni-btn btn-sm\"\r\n                        [disabled]=\" funcoesService.showButtons.detail(actionForm, dataAux.sequencia)\">\r\n                    <i class=\"icon-eye\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.editar' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"edit()\"\r\n                        [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, dataAux.sequencia)\">\r\n                    <i class=\"icon-pencil\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.excluir' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"remove()\"\r\n                        [disabled]=\"disabled ||funcoesService.showButtons.remove(actionForm, dataAux.sequencia)\">\r\n                    <i class=\"icon-close\"></i>\r\n                </button>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<div class=\"row\" *ngIf=\"!showAdd\">\r\n    <div class=\"col-lg-6 col-md-6 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.deposito\" | translate }}</th>\r\n            </tr>\r\n            </thead>\r\n            <tbody>\r\n            <tr *ngFor=\"let c of (dados | removeExcluidos)\" class=\"clickable\" [ngClass]=\"{ info: c === dataAux }\"\r\n                (click)=\"dataAux = c\">\r\n                <td class=\"text\">{{ 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\r\n<div *ngIf=\"showAdd\">\r\n    <div class=\"row\">\r\n        <div class=\"col-lg-6\">\r\n            <div class=\"uni-botoes\">\r\n                <button title=\"{{ 'buttons.editar' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"edit()\"\r\n                        [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, dataAux.osgId)\">\r\n                    <i class=\"fa fa-edit\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.voltar' | translate }}\" (click)=\"back()\" type=\"button\"\r\n                        class=\"btn uni-btn btn-sm\">\r\n                    <i class=\"fa fa-arrow-left\"></i>\r\n                </button>\r\n            </div>\r\n        </div>\r\n        <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 col-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"deposito\">{{\"labels.deposito\" | translate}}</label>\r\n                                    <app-combo-tanque id=\"deposito\" name=\"deposito\" [(ngModel)]=\"data.tanqueId\" [filtrarTipo]=\"false\"\r\n                                                      [disabled]=\"funcoesService.isDetail(actionForm)\" (outSelected)=\"verificaTanque()\"\r\n                                                      flagAtivo=\"S\">\r\n                                    </app-combo-tanque>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"form-group\">\r\n                            <button\r\n                                    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");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OsgFilterComponent", function() { return OsgFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _osg_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../osg.model */ "./src/app/pages/controle/osg/osg.model.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.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 OsgFilterComponent = /** @class */ (function () {
    function OsgFilterComponent(destinatarioService) {
        this.destinatarioService = destinatarioService;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_3__["Mascaras"]();
    }
    OsgFilterComponent.prototype.ngOnInit = function () {
        this.filtro = this.data;
    };
    OsgFilterComponent.prototype.onSubmit = function (form) {
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.filtrar.emit(this.filtro);
        jQuery("#osg-filter-dialog").modal("hide");
    };
    OsgFilterComponent.prototype.trataDest = function (destinatario) {
        this.data.cliente = destinatario;
    };
    OsgFilterComponent.prototype.trataTradingDest = function (id) {
        var _this = this;
        this.destinatarioService.getById(id).subscribe(function (resp) {
            if (resp) {
                _this.data.tradingDest = resp;
            }
        });
    };
    OsgFilterComponent.ctorParameters = function () { return [
        { type: app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_4__["DestinatarioService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _osg_model__WEBPACK_IMPORTED_MODULE_1__["OsgFilter"])
    ], OsgFilterComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OsgFilterComponent.prototype, "filtrar", void 0);
    OsgFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-osg-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./osg-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/osg/osg-filter/osg-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_4__["DestinatarioService"]])
    ], OsgFilterComponent);
    return OsgFilterComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OsgFormComponent", function() { return OsgFormComponent; });
/* harmony import */ var _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../../../shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_1__ = __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 _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__ = __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_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_7__ = __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_8__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var _comercial_sto_contrato_sto_contrato_model__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../comercial/sto-contrato/sto-contrato.model */ "./src/app/pages/comercial/sto-contrato/sto-contrato.model.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _osg_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../osg.constants */ "./src/app/pages/controle/osg/osg.constants.ts");
/* harmony import */ var _osg_model__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../osg.model */ "./src/app/pages/controle/osg/osg.model.ts");
/* harmony import */ var _osg_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../osg.service */ "./src/app/pages/controle/osg/osg.service.ts");
/* harmony import */ var _shared_components_combos_combo_padrao_combo_padrao_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./../../../../shared/components/combos/combo-padrao/combo-padrao.service */ "./src/app/shared/components/combos/combo-padrao/combo-padrao.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 OsgFormComponent = /** @class */ (function (_super) {
    __extends(OsgFormComponent, _super);
    function OsgFormComponent(router, messageService, configuracao, activatedRoute, osgService, funcoesService, permissoesUtils, combo, loginService, destinatarioService) {
        var _this = _super.call(this, new _osg_constants__WEBPACK_IMPORTED_MODULE_14__["OsgConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.configuracao = configuracao;
        _this.activatedRoute = activatedRoute;
        _this.osgService = osgService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.combo = combo;
        _this.loginService = loginService;
        _this.destinatarioService = destinatarioService;
        _this.data = new _osg_model__WEBPACK_IMPORTED_MODULE_15__["Osg"]();
        _this.mensagens = [];
        _this.filtroSto = new _comercial_sto_contrato_sto_contrato_model__WEBPACK_IMPORTED_MODULE_12__["StoContratoFiltro"];
        _this.constantes = new _osg_constants__WEBPACK_IMPORTED_MODULE_14__["OsgConstants"]();
        _this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["Mascaras"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.loadConfig = function () {
            _this.obrigaTpProdOSG = _this.configuracao.boolean("CTR", "ObrigaTpProdOSG");
            _this.contratoNaOsg = _this.configuracao.boolean("CTR", "ContratoNaOsg");
            _this.transpDefOSG = _this.configuracao.boolean("CTR", "TranspDefOSG");
            _this.trading = _this.configuracao.boolean("WEB", "ObrigaTrading");
            if (_this.funcoesService.isPositive(_this.transpDefOSG)) {
                _this.data.destinatarioIdTransportadora = _this.transpDefOSG;
                _this.destinatarioService.getById(_this.data.destinatarioIdTransportadora).subscribe(function (resp) {
                    if (resp) {
                        _this.data.transportadora = resp;
                    }
                });
            }
            _this.infocNaOsg = _this.configuracao.lerConfig("CTR", "InfocNaOsg") === "S" ? true : false;
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    OsgFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.hasAlterarContrato = false;
        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.constantes.getLibRotina(this.actionForm), function () {
            _this.getTiposProduto();
            _this.idAux = _this.activatedRoute.snapshot.paramMap.get("id");
            if (_this.actionForm === 4) {
                _this.idAux = atob(_this.idAux);
            }
            if (_this.idAux) {
                _this.osgService.getById(_this.idAux).subscribe(function (resp) {
                    _this.data = resp;
                    _this.trataTradingDest(resp.trading);
                    if (_this.actionForm === 4) {
                        delete _this.data.numeroOsg;
                        delete _this.data.codOperInc;
                        delete _this.data.dtOperInc;
                        delete _this.data.operInc;
                        delete _this.data.codOperAlt;
                        delete _this.data.dtOperAlt;
                        delete _this.data.operAlt;
                        delete _this.data.dtOperCan;
                        delete _this.data.operCan;
                        delete _this.data.codOperCan;
                        _this.data.dtEmissao = new Date();
                        _this.data.dtInicio = new Date();
                    }
                    _this.filtroSto.stoContratoId = _this.data.stoContratoId;
                    _this.filtroSto.stoContratoItemId = _this.data.stoContratoItemId;
                });
            }
            else {
                _this.data = new _osg_model__WEBPACK_IMPORTED_MODULE_15__["Osg"]();
                _this.getCamposAdicionais();
                _this.trataNumeroOSG();
            }
        }, function () {
            _this.permissoesUtils.back();
        });
        this.permissoesUtils.validRotina(this.constantes.sisFormularioId, 8, function () {
            _this.hasAlterarContrato = true;
        }, function () {
            _this.hasAlterarContrato = false;
        });
    };
    OsgFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        if (this.data.controlaDescarga === 'S') {
            if (!this.funcoesService.isPositive(this.data.kilosDescarga)) {
                this.messageService.warning('labels.pedidos', 'messages.kilosDescargaDeveSerMaiorQueZero');
                return;
            }
        }
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            this.funcoesService.backToTop();
            return;
        }
        if (this.actionForm === 4) {
            this.trataNumeroOSG();
        }
        this.data.filialId = this.loginService.getLogin().filialId;
        this.data.logRotina = "Manutenção de OSG";
        this.osgService
            .save(this.data, this.funcoesService.isEdit(this.actionForm))
            .subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result.validationResult);
            if (!result.validationResult.isValid) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("backError").emit(_this.mensagens);
                _this.funcoesService.backToTop();
            }
            else {
                _this.messageService.saveSuccess("titles.osg");
                if (create) {
                    _this.data = new _osg_model__WEBPACK_IMPORTED_MODULE_15__["Osg"]();
                    _this.router.navigate([_this.target + "/controle/osg/create"]);
                }
                else {
                    _this.back();
                }
            }
        });
    };
    OsgFormComponent.prototype.edit = function () {
        this.router.navigate([this.target + "/controle/osg/edit/" + this.data.osgId]);
    };
    OsgFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    OsgFormComponent.prototype.back = function () {
        this.router.navigate([this.target + "/controle/osg"]);
    };
    OsgFormComponent.prototype.getCamposAdicionais = function () {
        var _this = this;
        this.funcoesService.camposAdicionais
            .get(this.constantes.sisFormularioId)
            .subscribe(function (data) {
            _this.data.sisCampoAdds = data;
        });
    };
    OsgFormComponent.prototype.trataContrato = function (contrato) {
        this.data.stoContratoId = contrato.stoContratoId;
        this.data.stoContratoItemId = contrato.stoContratoItemId;
        this.data.numContrato = contrato.numContrato;
    };
    OsgFormComponent.prototype.trataTradingDest = function (id) {
        var _this = this;
        this.destinatarioService.getById(id).subscribe(function (resp) {
            if (resp) {
                _this.data.tradingDest = resp;
            }
        });
    };
    OsgFormComponent.prototype.refreshItens = function (event) {
        this.data.itens = event;
    };
    OsgFormComponent.prototype.refreshTanques = function (event) {
        this.data.tanques = event;
    };
    OsgFormComponent.prototype.refreshObserv = function (event) {
        this.data.observacoes = event;
    };
    OsgFormComponent.prototype.trataNumeroOSG = function () {
        var _this = this;
        this.osgService.getLastedNumeroOSG().subscribe(function (resp) {
            _this.data.numeroOsg = resp[0].numeroOsg;
        });
    };
    OsgFormComponent.prototype.isControlaDescarga = function () {
        return this.funcoesService.isBoolean(this.data.controlaDescarga);
    };
    OsgFormComponent.prototype.validakilosDescargaDados = function () {
        if (this.data.densidade > 0) {
            this.data.litrosDescarga = Math.round((this.data.kilosDescarga / this.data.densidade));
        }
    };
    OsgFormComponent.prototype.trataLitrosDescarga = function () {
        if (this.data.densidade > 0) {
            this.data.kilosDescarga = Math.round((this.data.litrosDescarga * this.data.densidade));
        }
    };
    OsgFormComponent.prototype.trataMaterial = function (material) {
        if (!material)
            return;
        this.data.densidade = material.densidadePadrao;
        this.data.material = material;
    };
    OsgFormComponent.prototype.trataTransportadora = function (destinatario) {
        this.data.transportadora = destinatario;
    };
    OsgFormComponent.prototype.trataTrading = function (destinatario) {
        this.data.tradingDest = destinatario;
    };
    OsgFormComponent.prototype.getTiposProduto = function () {
        var _this = this;
        this.combo.get('TipoProdutoArmazenado', 'CodTipoProduto', 'DescrTipoProduto', true, null, 'Material').subscribe(function (data) {
            _this.tiposProdutos = data;
        });
    };
    Object.defineProperty(OsgFormComponent.prototype, "fTiposProdutos", {
        get: function () {
            var _this = this;
            if (!_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["ArrayUtilsStaticService"].any(this.tiposProdutos))
                return [];
            if (_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].isEmpty(this.data.materialId))
                return [];
            return this.tiposProdutos.filter(function (c) { return c.material === _this.data.materialId; });
        },
        enumerable: true,
        configurable: true
    });
    OsgFormComponent.prototype.trataControlaDescarga = function (e) {
        if (this.data.controlaDescarga === "N") {
            this.data.kilosDescarga = 0;
            this.data.litrosDescarga = 0;
        }
    };
    Object.defineProperty(OsgFormComponent.prototype, "requiredContrato", {
        get: function () {
            return this.contratoNaOsg;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OsgFormComponent.prototype, "isContratoDisabled", {
        get: function () {
            var isEditing = this.funcoesService.isEdit(this.actionForm);
            var isDetail = this.funcoesService.isDetail(this.actionForm);
            if (isDetail) {
                return true;
            }
            if (isEditing && !this.hasAlterarContrato) {
                return true;
            }
            return false;
        },
        enumerable: true,
        configurable: true
    });
    OsgFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_7__["ConfiguracaoFacade"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["ActivatedRoute"] },
        { type: _osg_service__WEBPACK_IMPORTED_MODULE_16__["OsgService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] },
        { type: _shared_components_combos_combo_padrao_combo_padrao_service__WEBPACK_IMPORTED_MODULE_17__["ComboPadraoService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_13__["LoginService"] },
        { type: _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_11__["DestinatarioService"] }
    ]; };
    OsgFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"])({
            selector: "app-osg-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./osg-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/osg/osg-form/osg-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_7__["ConfiguracaoFacade"],
            _angular_router__WEBPACK_IMPORTED_MODULE_3__["ActivatedRoute"],
            _osg_service__WEBPACK_IMPORTED_MODULE_16__["OsgService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"],
            _shared_components_combos_combo_padrao_combo_padrao_service__WEBPACK_IMPORTED_MODULE_17__["ComboPadraoService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_13__["LoginService"],
            _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_11__["DestinatarioService"]])
    ], OsgFormComponent);
    return OsgFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OsgIndexComponent", function() { return OsgIndexComponent; });
/* 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_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_4__ = __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_5__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _osg_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../osg.constants */ "./src/app/pages/controle/osg/osg.constants.ts");
/* harmony import */ var _osg_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../osg.model */ "./src/app/pages/controle/osg/osg.model.ts");
/* harmony import */ var _osg_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../osg.service */ "./src/app/pages/controle/osg/osg.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 OsgIndexComponent = /** @class */ (function (_super) {
    __extends(OsgIndexComponent, _super);
    function OsgIndexComponent(router, osgService, datatablesService, messageService, configuracao, funcoesService, permissoesUtils, loginService) {
        var _this = _super.call(this, new _osg_constants__WEBPACK_IMPORTED_MODULE_9__["OsgConstants"](), funcoesService) || this;
        _this.router = router;
        _this.osgService = osgService;
        _this.datatablesService = datatablesService;
        _this.messageService = messageService;
        _this.configuracao = configuracao;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.data = new _osg_model__WEBPACK_IMPORTED_MODULE_10__["Osg"]();
        _this.mensagens = [];
        _this.constantes = new _osg_constants__WEBPACK_IMPORTED_MODULE_9__["OsgConstants"]();
        _this.filtro = new _osg_model__WEBPACK_IMPORTED_MODULE_10__["OsgFilter"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.duplicate = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 10, function () {
                if (_this.funcoesService.isNotUndefinedOrNull(_this.data.osgId)) {
                    _this.router.navigate([
                        _this.target + "/controle/osg/duplicate/" + btoa(_this.data.osgId.toString()),
                    ]);
                }
            });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    OsgIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig(this.constantes.listaParam);
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!_this.loginService.isTokenExpired()) {
                jQuery("#osg-filter-dialog").modal("show");
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
        _super.prototype.addFuncoes.call(this, [{ action: "duplicate", func: function () { return _this.duplicate; } }]);
    };
    OsgIndexComponent.prototype.create = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _this.router.navigate([_this.target + "/controle/osg/create"]);
        });
    };
    OsgIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.osgService.getByFiltroCadastro(this.filtro).subscribe(function (resp) {
            var columns = [
                _this.datatablesService.getDataString("osgId", "id", "10%"),
                _this.datatablesService.getDataString("numeroOsg", "osg"),
                _this.datatablesService.getDataDateTime("dtEmissao", "emissao", "DD/MM/YYYY"),
                _this.datatablesService.getDataString("fantasiaMaterial", "produto"),
                _this.datatablesService.getDataString("fantasiaTransportadora", "transportadora"),
            ];
            _this.datatablesService.datatable("dtOsg", columns, resp, function (aData) {
                _this.data = aData;
            });
        });
    };
    OsgIndexComponent.prototype.edit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            if (!!_this.data.osgId) {
                _this.router.navigate([
                    _this.target + "/controle/osg/edit/" + _this.data.osgId,
                ]);
            }
        });
    };
    OsgIndexComponent.prototype.filtrar = function () {
        jQuery("#osg-filter-dialog").modal("show");
    };
    OsgIndexComponent.prototype.executaFiltro = function (event) {
        this.filtro = event;
        this.refresh();
    };
    OsgIndexComponent.prototype.detail = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!!_this.data.osgId) {
                _this.router.navigate([
                    _this.target + "/controle/osg",
                    "detail",
                    _this.data.osgId,
                ]);
            }
        });
    };
    OsgIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    OsgIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    OsgIndexComponent.prototype.remove = function () {
        var _this = this;
        if (!!this.data.osgId) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                _this.messageService.removeConfirm(function () {
                    _this.osgService.remove(_this.data).subscribe(function (result) {
                        _this.mensagens = _this.messageService.validationResult(result.validationResult);
                        if (!result.validationResult.isValid) {
                            _this.messageService.warning("titles.osg", _this.mensagens[0]);
                        }
                        else {
                            _this.datatablesService.remove("dtOsg");
                        }
                    });
                });
            });
        }
    };
    OsgIndexComponent.prototype.print = function () {
        jQuery("#modalPrint").modal("show");
    };
    OsgIndexComponent.prototype.printRelatorio = function () {
        var _this = this;
        this.constantes.reportTitulo.subTitulo = "";
        if (this.funcoesService.isPositive(this.filtro.destinatarioIdCliente)) {
            if (this.funcoesService.isNotUndefinedOrNull(this.filtro.cliente)) {
                this.constantes.reportTitulo.subTitulo = this.filtro.cliente.fantasia;
            }
        }
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _this.filtro.osgId = _this.funcoesService.isNotUndefinedOrNull(_this.filtro.osgId)
                ? _this.filtro.osgId
                : 0;
            _this.filtro.destinatarioIdCliente =
                _this.funcoesService.isNotUndefinedOrNull(_this.filtro.destinatarioIdCliente)
                    ? _this.filtro.destinatarioIdCliente
                    : 0;
            _this.funcoesService.reportInvoc.invocaRelatorio(_this.constantes.reportId, _this.constantes.reportTitulo, _this.filtro);
        });
    };
    OsgIndexComponent.prototype.printOsg = function () {
        var _this = this;
        if (this.funcoesService.getValue(this.data.osgId, "I") > 0) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 9, function () {
                if (_this.configuracao.isLoadConfig()) {
                    var modRel = _this.configuracao.lerConfig("CTR", "WebModRelOSG");
                    if (!!modRel) {
                        _this.funcoesService.reportInvoc.invocaRelatorio(modRel, _this.constantes.reportImpressaoOsgTitulo, {
                            filialId: _this.loginService.getLogin().filialId,
                            osgId: _this.data.osgId,
                        });
                    }
                    else {
                        _this.messageService.warning("titles.osg", "messages.nenhumModeloEncontrado");
                    }
                }
            });
        }
        else {
            this.messageService.warning("titles.osg", "messages.selecioneUmRegistro");
        }
    };
    OsgIndexComponent.prototype.confirmaImpressao = function (tipoImpressao) {
        switch (tipoImpressao) {
            case "osg":
                this.printOsg();
                break;
            case "relatorio":
                this.printRelatorio();
                break;
            default:
                break;
        }
    };
    OsgIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _osg_service__WEBPACK_IMPORTED_MODULE_11__["OsgService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_4__["ConfiguracaoFacade"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"] }
    ]; };
    OsgIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-osg-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./osg-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/osg/osg-index/osg-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _osg_service__WEBPACK_IMPORTED_MODULE_11__["OsgService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_4__["ConfiguracaoFacade"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"]])
    ], OsgIndexComponent);
    return OsgIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/controle/osg/osg-item/osg-item.component.ts":
/*!*******************************************************************!*\
  !*** ./src/app/pages/controle/osg/osg-item/osg-item.component.ts ***!
  \*******************************************************************/
/*! exports provided: OsgItemComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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







var OsgItemComponent = /** @class */ (function () {
    function OsgItemComponent(messageService, funcoesService) {
        this.messageService = messageService;
        this.funcoesService = funcoesService;
        this.dataResult = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.dataAux = new _osg_osg_item_osg_item_model__WEBPACK_IMPORTED_MODULE_5__["OsgItem"]();
        this.data = new _osg_osg_item_osg_item_model__WEBPACK_IMPORTED_MODULE_5__["OsgItem"]();
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
        this.hasDados = false;
        this.isExistCliente = false;
        this.isSet = true;
    }
    OsgItemComponent.prototype.ngDoCheck = function () {
        this.hasDados =
            this.dados && this.dados.length > 0 &&
                this.dados.filter(function (v) {
                    if (v["sitReg"] !== "E") {
                        return true;
                    }
                    return false;
                }).length > 0;
        if (!this.isDoCheck) {
            if (this.dados) {
                for (var i = 1; i <= this.dados.length; i++) {
                    this.dados[i - 1]["sequencia"] = i;
                }
                this.isDoCheck = true;
            }
        }
    };
    OsgItemComponent.prototype.create = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].create;
        this.data = new _osg_osg_item_osg_item_model__WEBPACK_IMPORTED_MODULE_5__["OsgItem"]();
    };
    OsgItemComponent.prototype.edit = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].edit;
        this.data = Object.assign({}, this.dataAux);
    };
    OsgItemComponent.prototype.detail = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].detail;
        this.data = Object.assign({}, this.dataAux);
    };
    OsgItemComponent.prototype.back = function () {
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
    };
    OsgItemComponent.prototype.remove = function () {
        var _this = this;
        this.data = Object.assign({}, this.dataAux);
        if (!this.funcoesService.isUndefinedOrNull(this.data.sequencia)) {
            this.messageService.removeConfirm(function () {
                var i = _this.dados.findIndex(function (x) { return x.sequencia === _this.data.sequencia; });
                _this.data["sitReg"] = "E";
                _this.dados[i] = _this.data;
                _this.isSet = true;
            });
        }
    };
    OsgItemComponent.prototype.onSubmit = function (form) {
        var _this = this;
        if (this.data.controlaDescarga === 'S') {
            if (!this.funcoesService.isPositive(this.data.kilosDescarga)) {
                this.messageService.warning('labels.pedidos', 'messages.kilosDescargaDeveSerMaiorQueZero');
                return;
            }
        }
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        if (this.funcoesService.isNotUndefinedOrNull(this.dados)) {
            this.verificaCliente();
            if (this.isExistCliente) {
                return;
            }
        }
        this.data.logRotina = "Manutenção de OSG";
        if (this.data.sequencia && this.data.sequencia > 0) {
            if (this.dados.length > 0) {
                var i = this.dados.findIndex(function (x) { return x.sequencia === _this.data.sequencia; });
                this.dados[i] = this.data;
            }
            else {
                this.dados = [];
                this.dados.push(this.data);
            }
        }
        else {
            this.setSequencia();
            if (this.funcoesService.isUndefinedOrNull(this.dados)) {
                this.dados = [];
            }
            this.dados.push(this.data);
        }
        this.data = new _osg_osg_item_osg_item_model__WEBPACK_IMPORTED_MODULE_5__["OsgItem"]();
        this.dados = this.dados.filter(function (item) {
            if (item.sitReg !== "E") {
                return item;
            }
        });
        this.dataResult.emit(this.dados);
        this.back();
    };
    OsgItemComponent.prototype.setSequencia = function () {
        if (this.funcoesService.isUndefinedOrNull(this.data.osgId) || this.data.osgId === 0) {
            var s = this.dados ? this.dados.length : 0;
            this.data.sequencia = s + 1;
        }
        else {
            this.data.sequencia = this.data.sequencia;
        }
    };
    OsgItemComponent.prototype.verificaCliente = function () {
        var _this = this;
        if (!this.dados)
            return false;
        var test = this.dados.filter(function (t) { return t.destinatarioIdCliente === _this.data.destinatarioIdCliente && t.sequencia !== _this.data.sequencia && t.sitReg !== "E"; });
        if (test.length > 0) {
            this.messageService.warning("titles.osg", "messages.clienteJaInformado");
            this.data.destinatarioIdCliente = 0;
            this.isExistCliente = true;
        }
        else {
            this.isExistCliente = false;
        }
    };
    OsgItemComponent.prototype.trataDest = function (destinatario) {
        this.data.cliente = destinatario;
    };
    OsgItemComponent.prototype.validakilosDescargaCliente = function () {
        if (this.dadosOsg.densidade > 0) {
            this.data.litrosDescarga = Math.round((this.data.kilosDescarga / this.dadosOsg.densidade));
        }
    };
    OsgItemComponent.prototype.trataLitrosDescarga = function () {
        if (this.dadosOsg.densidade > 0) {
            this.data.kilosDescarga = Math.round((this.data.litrosDescarga * this.dadosOsg.densidade));
        }
    };
    OsgItemComponent.prototype.rowSelect = function (item) {
        this.dataAux = item;
        if (this.funcoesService.isNotUndefinedOrNull(this.dataAux)) {
            this.isSet = false;
        }
    };
    OsgItemComponent.prototype.trataControlaDescarga = function (e) {
        if (this.data.controlaDescarga === "N") {
            this.data.kilosDescarga = 0;
            this.data.litrosDescarga = 0;
        }
    };
    OsgItemComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _osg_model__WEBPACK_IMPORTED_MODULE_6__["Osg"])
    ], OsgItemComponent.prototype, "dadosOsg", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Array)
    ], OsgItemComponent.prototype, "dados", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], OsgItemComponent.prototype, "disabled", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OsgItemComponent.prototype, "dataResult", void 0);
    OsgItemComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-osg-item",
            template: __importDefault(__webpack_require__(/*! raw-loader!./osg-item.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/osg/osg-item/osg-item.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"]])
    ], OsgItemComponent);
    return OsgItemComponent;
}());



/***/ }),

/***/ "./src/app/pages/controle/osg/osg-item/osg-item.model.ts":
/*!***************************************************************!*\
  !*** ./src/app/pages/controle/osg/osg-item/osg-item.model.ts ***!
  \***************************************************************/
/*! exports provided: OsgItem */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

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



/***/ }),

/***/ "./src/app/pages/controle/osg/osg-observ/osg-observ.component.ts":
/*!***********************************************************************!*\
  !*** ./src/app/pages/controle/osg/osg-observ/osg-observ.component.ts ***!
  \***********************************************************************/
/*! exports provided: OsgObservComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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







var OsgObservComponent = /** @class */ (function () {
    function OsgObservComponent(messageService, funcoesService) {
        this.messageService = messageService;
        this.funcoesService = funcoesService;
        this.dataResult = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.dataAux = new _osg_osg_observ_osg_observ_model__WEBPACK_IMPORTED_MODULE_5__["OsgObserv"]();
        this.data = new _osg_osg_observ_osg_observ_model__WEBPACK_IMPORTED_MODULE_5__["OsgObserv"]();
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
        this.hasDados = false;
        this.isExistObserv = false;
    }
    OsgObservComponent.prototype.ngDoCheck = function () {
        this.hasDados =
            this.dados &&
                this.dados.length > 0 &&
                this.dados.filter(function (v) {
                    if (v["sitReg"] !== "E") {
                        return true;
                    }
                    return false;
                }).length > 0;
        if (!this.isDoCheck) {
            if (this.dados) {
                for (var i = 1; i <= this.dados.length; i++) {
                    this.dados[i - 1]["sequencia"] = i;
                }
                this.isDoCheck = true;
            }
        }
    };
    OsgObservComponent.prototype.create = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].create;
        this.data = new _osg_osg_observ_osg_observ_model__WEBPACK_IMPORTED_MODULE_5__["OsgObserv"](this.dadosOsg.osgId);
    };
    OsgObservComponent.prototype.edit = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].edit;
        this.data = this.dataAux;
    };
    OsgObservComponent.prototype.detail = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].detail;
        this.data = this.dataAux;
    };
    OsgObservComponent.prototype.back = function () {
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
    };
    OsgObservComponent.prototype.remove = function () {
        var _this = this;
        this.data = this.dataAux;
        if (!this.funcoesService.isUndefinedOrNull(this.data.sequencia)) {
            this.messageService.removeConfirm(function () {
                var i = _this.dados.findIndex(function (x) { return x.sequencia === _this.data.sequencia; });
                _this.data["sitReg"] = "E";
                _this.dados[i] = _this.data;
            });
        }
    };
    OsgObservComponent.prototype.onSubmit = function (form) {
        var _this = this;
        if (form.invalid) {
            app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        if (this.funcoesService.isNotUndefinedOrNull(this.dados)) {
            this.verificaObs();
            if (this.isExistObserv) {
                return;
            }
        }
        this.data.logRotina = "Manutenção de OSG";
        if (this.data.sequencia && this.data.sequencia > 0) {
            if (this.dados.length > 0) {
                var i = this.dados.findIndex(function (x) { return x.sequencia === _this.data.sequencia; });
                this.dados[i] = this.data;
            }
            else {
                this.dados = [];
                this.dados.push(this.data);
            }
        }
        else {
            this.setSequencia();
            if (this.funcoesService.isUndefinedOrNull(this.dados)) {
                this.dados = [];
            }
            this.dados.push(this.data);
        }
        this.data = new _osg_osg_observ_osg_observ_model__WEBPACK_IMPORTED_MODULE_5__["OsgObserv"](this.dadosOsg.osgId);
        this.dataResult.emit(this.dados);
        this.back();
    };
    OsgObservComponent.prototype.setSequencia = function () {
        if (this.funcoesService.isUndefinedOrNull(this.data.osgId)) {
            var s = this.dados ? this.dados.length : 0;
            this.data.sequencia = s + 1;
        }
        else {
            this.data.sequencia = this.data.sequencia;
        }
    };
    OsgObservComponent.prototype.verificaObs = function () {
        var _this = this;
        var test = this.dados.filter(function (t) { return t.observ === _this.data.observ && t.sequencia !== _this.data.sequencia && t.sitReg !== "E"; });
        if (test.length > 0) {
            this.messageService.warning("titles.osg", "messages.observJaInformado");
            this.isExistObserv = true;
            this.data.observ = "";
        }
        else {
            this.isExistObserv = false;
        }
    };
    OsgObservComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _osg_model__WEBPACK_IMPORTED_MODULE_6__["Osg"])
    ], OsgObservComponent.prototype, "dadosOsg", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Array)
    ], OsgObservComponent.prototype, "dados", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], OsgObservComponent.prototype, "disabled", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OsgObservComponent.prototype, "dataResult", void 0);
    OsgObservComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-osg-observ",
            template: __importDefault(__webpack_require__(/*! raw-loader!./osg-observ.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/osg/osg-observ/osg-observ.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"]])
    ], OsgObservComponent);
    return OsgObservComponent;
}());



/***/ }),

/***/ "./src/app/pages/controle/osg/osg-observ/osg-observ.model.ts":
/*!*******************************************************************!*\
  !*** ./src/app/pages/controle/osg/osg-observ/osg-observ.model.ts ***!
  \*******************************************************************/
/*! exports provided: OsgObserv */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

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



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OsgPrintModalComponent", function() { return OsgPrintModalComponent; });
/* 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");
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 OsgPrintModalComponent = /** @class */ (function () {
    function OsgPrintModalComponent() {
        this.outConfirma = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    OsgPrintModalComponent.prototype.ngOnInit = function () {
        this.tipoSelecionado = "";
        this.initListaTiposImpressao();
    };
    OsgPrintModalComponent.prototype.initListaTiposImpressao = function () {
        this.tiposImpressao = [
            { value: "osg", label: "labels.osg" },
            { value: "relatorio", label: "labels.relatorio" }
        ];
    };
    OsgPrintModalComponent.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.outConfirma.emit(this.tipoSelecionado);
        this.tipoSelecionado = "";
        jQuery("#modalPrint").modal("hide");
    };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OsgPrintModalComponent.prototype, "outConfirma", void 0);
    OsgPrintModalComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-osg-print-modal",
            template: __importDefault(__webpack_require__(/*! raw-loader!./osg-print-modal.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/osg/osg-print-modal/osg-print-modal.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [])
    ], OsgPrintModalComponent);
    return OsgPrintModalComponent;
}());



/***/ }),

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

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







var OsgTanqueComponent = /** @class */ (function () {
    function OsgTanqueComponent(messageService, funcoesService) {
        this.messageService = messageService;
        this.funcoesService = funcoesService;
        this.dataResult = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.dataAux = new _osg_osg_tanque_osg_tanque_model__WEBPACK_IMPORTED_MODULE_5__["OsgTanque"]();
        this.data = new _osg_osg_tanque_osg_tanque_model__WEBPACK_IMPORTED_MODULE_5__["OsgTanque"]();
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
        this.hasDados = false;
    }
    OsgTanqueComponent.prototype.ngDoCheck = function () {
        this.hasDados =
            this.dados &&
                this.dados.length > 0 &&
                this.dados.filter(function (v) {
                    if (v["sitReg"] !== "E") {
                        return true;
                    }
                    return false;
                }).length > 0;
        if (!this.isDoCheck) {
            if (this.dados) {
                for (var i = 1; i <= this.dados.length; i++) {
                    this.dados[i - 1]["sequencia"] = i;
                }
                this.isDoCheck = true;
            }
        }
    };
    OsgTanqueComponent.prototype.create = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].create;
        this.data = new _osg_osg_tanque_osg_tanque_model__WEBPACK_IMPORTED_MODULE_5__["OsgTanque"](this.dadosOsg.osgId);
    };
    OsgTanqueComponent.prototype.edit = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].edit;
        this.data = Object.assign({}, this.dataAux);
    };
    OsgTanqueComponent.prototype.detail = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].detail;
        this.data = Object.assign({}, this.dataAux);
    };
    OsgTanqueComponent.prototype.back = function () {
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
    };
    OsgTanqueComponent.prototype.remove = function () {
        var _this = this;
        this.data = Object.assign({}, this.dataAux);
        if (!this.funcoesService.isUndefinedOrNull(this.data.sequencia)) {
            this.messageService.removeConfirm(function () {
                var i = _this.dados.findIndex(function (x) { return x.sequencia === _this.data.sequencia; });
                _this.data["sitReg"] = "E";
                _this.dados[i] = _this.data;
            });
        }
    };
    OsgTanqueComponent.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.verificaTanque()) {
            return;
        }
        this.data.logRotina = "Manutenção de OSG";
        if (this.funcoesService.isNotUndefinedOrNull(this.data.tanqueId)) {
            if (this.data.sequencia && this.data.sequencia > 0) {
                if (this.dados.length > 0) {
                    var i = this.dados.findIndex(function (x) { return x.sequencia === _this.data.sequencia; });
                    this.dados[i] = this.data;
                }
                else {
                    this.dados = [];
                    this.dados.push(this.data);
                }
            }
            else {
                this.setSequencia();
                if (this.funcoesService.isUndefinedOrNull(this.dados)) {
                    this.dados = [];
                }
                this.dados.push(this.data);
            }
            this.data = new _osg_osg_tanque_osg_tanque_model__WEBPACK_IMPORTED_MODULE_5__["OsgTanque"](this.dadosOsg.osgId);
            this.dataResult.emit(this.dados);
        }
        this.back();
    };
    OsgTanqueComponent.prototype.setSequencia = function () {
        var s = this.dados ? this.dados.length : 0;
        this.data.sequencia = s + 1;
    };
    OsgTanqueComponent.prototype.verificaTanque = function () {
        var _this = this;
        if (!this.dados)
            return false;
        var test = this.dados.filter(function (t) { return t.tanqueId === _this.data.tanqueId && t.sequencia != _this.data.sequencia && t.sitReg !== "E"; });
        if (test.length > 0) {
            this.messageService.warning("titles.osg", "messages.tanqueJaInformado");
            this.data.tanqueId = "";
            return true;
        }
        return false;
    };
    OsgTanqueComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _osg_model__WEBPACK_IMPORTED_MODULE_6__["Osg"])
    ], OsgTanqueComponent.prototype, "dadosOsg", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Array)
    ], OsgTanqueComponent.prototype, "dados", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], OsgTanqueComponent.prototype, "disabled", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OsgTanqueComponent.prototype, "dataResult", void 0);
    OsgTanqueComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-osg-tanque",
            template: __importDefault(__webpack_require__(/*! raw-loader!./osg-tanque.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/osg/osg-tanque/osg-tanque.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"]])
    ], OsgTanqueComponent);
    return OsgTanqueComponent;
}());



/***/ }),

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

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

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



/***/ }),

/***/ "./src/app/pages/controle/osg/osg.constants.ts":
/*!*****************************************************!*\
  !*** ./src/app/pages/controle/osg/osg.constants.ts ***!
  \*****************************************************/
/*! exports provided: OsgConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OsgConstants", function() { return OsgConstants; });
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../../config/enumerables */ "./src/app/config/enumerables.ts");
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

var OsgConstants = /** @class */ (function () {
    function OsgConstants() {
        this.sisFormularioId = 90056;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.inclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.exclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.propriedades" },
            { sisFormularioId: this.sisFormularioId, libRotina: 7, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 8, acao: "labels.alterarContrato" },
            { sisFormularioId: this.sisFormularioId, libRotina: 9, acao: "labels.impressaoOsg" },
            { sisFormularioId: this.sisFormularioId, libRotina: 10, acao: "labels.duplicaOsg" },
        ];
        this.sisSistemaId = "CTR";
        this.nomeForm = "titles.osg";
        this.reportId = "CTR0001";
        this.reportImpressaoOsgId = "CTR0005";
        this.reportTitulo = { "titulo": "OSG", "subTitulo": "" };
        this.reportImpressaoOsgTitulo = { "titulo": "Ordem de Serviço Geral (OSG)", "subTitulo": "" };
        this.tabela = "Osg";
        this.listaIndex = [
            { title: 'Novo', action: 'create', icon: "icon-plus", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Visualizar', action: 'detail', icon: "icon-eye", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Excluir', action: 'remove', icon: "icon-close", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Propriedade', action: 'properties', icon: "icon-menu", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Duplicate', action: 'duplicate', icon: "fa fa-clone", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
        this.listaForm = [
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.listaParam = [
            { 'sistema': 'CTR', 'parametros': ["ObrigaTpProdOSG", "ContratoNaOsg", "TranspDefOSG", "InfocNaOsg", "WebModRelOSG"] },
            { 'sistema': 'WEB', 'parametros': ["ObrigaTrading"] }
        ];
    }
    OsgConstants.prototype.getLibRotina = function (actionForm) {
        var lista = [
            { id: _config_enumerables__WEBPACK_IMPORTED_MODULE_0__["ActionForm"].create, descricao: "1" },
            { id: _config_enumerables__WEBPACK_IMPORTED_MODULE_0__["ActionForm"].edit, descricao: "2" },
            { id: _config_enumerables__WEBPACK_IMPORTED_MODULE_0__["ActionForm"].detail, descricao: "4" },
            { id: 4, descricao: "8" }
        ];
        var i = lista.findIndex(function (x) { return x.id === actionForm; });
        return lista[i].descricao;
    };
    return OsgConstants;
}());



/***/ }),

/***/ "./src/app/pages/controle/osg/osg.module.ts":
/*!**************************************************!*\
  !*** ./src/app/pages/controle/osg/osg.module.ts ***!
  \**************************************************/
/*! exports provided: OsgModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OsgModule", function() { return OsgModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _osg_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./osg.routing.module */ "./src/app/pages/controle/osg/osg.routing.module.ts");
/* harmony import */ var _osg_form_osg_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./osg-form/osg-form.component */ "./src/app/pages/controle/osg/osg-form/osg-form.component.ts");
/* harmony import */ var _osg_index_osg_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./osg-index/osg-index.component */ "./src/app/pages/controle/osg/osg-index/osg-index.component.ts");
/* harmony import */ var _osg_filter_osg_filter_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./osg-filter/osg-filter.component */ "./src/app/pages/controle/osg/osg-filter/osg-filter.component.ts");
/* harmony import */ var _osg_item_osg_item_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./osg-item/osg-item.component */ "./src/app/pages/controle/osg/osg-item/osg-item.component.ts");
/* harmony import */ var _osg_tanque_osg_tanque_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./osg-tanque/osg-tanque.component */ "./src/app/pages/controle/osg/osg-tanque/osg-tanque.component.ts");
/* harmony import */ var _osg_observ_osg_observ_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./osg-observ/osg-observ.component */ "./src/app/pages/controle/osg/osg-observ/osg-observ.component.ts");
/* harmony import */ var _osg_print_modal_osg_print_modal_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./osg-print-modal/osg-print-modal.component */ "./src/app/pages/controle/osg/osg-print-modal/osg-print-modal.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 OsgModule = /** @class */ (function () {
    function OsgModule() {
    }
    OsgModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _osg_routing_module__WEBPACK_IMPORTED_MODULE_2__["OsgRoutingModule"]],
            declarations: [
                _osg_form_osg_form_component__WEBPACK_IMPORTED_MODULE_3__["OsgFormComponent"],
                _osg_index_osg_index_component__WEBPACK_IMPORTED_MODULE_4__["OsgIndexComponent"],
                _osg_filter_osg_filter_component__WEBPACK_IMPORTED_MODULE_5__["OsgFilterComponent"],
                _osg_item_osg_item_component__WEBPACK_IMPORTED_MODULE_6__["OsgItemComponent"],
                _osg_tanque_osg_tanque_component__WEBPACK_IMPORTED_MODULE_7__["OsgTanqueComponent"],
                _osg_observ_osg_observ_component__WEBPACK_IMPORTED_MODULE_8__["OsgObservComponent"],
                _osg_print_modal_osg_print_modal_component__WEBPACK_IMPORTED_MODULE_9__["OsgPrintModalComponent"]
            ]
        })
    ], OsgModule);
    return OsgModule;
}());



/***/ }),

/***/ "./src/app/pages/controle/osg/osg.routing.module.ts":
/*!**********************************************************!*\
  !*** ./src/app/pages/controle/osg/osg.routing.module.ts ***!
  \**********************************************************/
/*! exports provided: OsgRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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




var ActionForm;
(function (ActionForm) {
    ActionForm[ActionForm["index"] = 0] = "index";
    ActionForm[ActionForm["create"] = 1] = "create";
    ActionForm[ActionForm["detail"] = 2] = "detail";
    ActionForm[ActionForm["edit"] = 3] = "edit";
    ActionForm[ActionForm["duplicate"] = 8] = "duplicate";
})(ActionForm || (ActionForm = {}));
var MRoutes = [
    {
        path: "",
        component: _osg_index_osg_index_component__WEBPACK_IMPORTED_MODULE_2__["OsgIndexComponent"],
        data: { breadcrumb: "osg", formParams: { action: ActionForm.index } }
    },
    {
        path: "create",
        component: _osg_form_osg_form_component__WEBPACK_IMPORTED_MODULE_3__["OsgFormComponent"],
        data: {
            breadcrumb: "osg",
            formParams: { action: ActionForm.create }
        }
    },
    {
        path: "duplicate/:id",
        component: _osg_form_osg_form_component__WEBPACK_IMPORTED_MODULE_3__["OsgFormComponent"],
        data: {
            breadcrumb: "osg",
            formParams: { action: 4 }
        }
    },
    {
        path: "edit/:id",
        component: _osg_form_osg_form_component__WEBPACK_IMPORTED_MODULE_3__["OsgFormComponent"],
        data: {
            breadcrumb: "osg",
            formParams: { action: ActionForm.edit }
        }
    },
    {
        path: "detail/:id",
        component: _osg_form_osg_form_component__WEBPACK_IMPORTED_MODULE_3__["OsgFormComponent"],
        data: {
            breadcrumb: "osg",
            formParams: { action: ActionForm.detail }
        }
    }
];
var OsgRoutingModule = /** @class */ (function () {
    function OsgRoutingModule() {
    }
    OsgRoutingModule = __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"]],
        })
    ], OsgRoutingModule);
    return OsgRoutingModule;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-controle-osg-osg-module.js.map