(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-raizen-cadastros-programacao-transferencia-propriedade-programacao-transferencia-propriedade-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-filter/programacao-transferencia-propriedade-filter.component.html":
/*!*****************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-filter/programacao-transferencia-propriedade-filter.component.html ***!
  \*****************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"programacao-transferencia-propriedade-filter-dialog\" tabindex=\"-1\" role=\"dialog\"\r\n    data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-40\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{title}}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\" *ngIf=\"!!service.filter\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"emissaoDe\" class=\"required\">\r\n                                    {{\"labels.emissaoDe\" | translate }}\r\n                                </label>\r\n                                <app-data id=\"emissaoDe\" name=\"emissaoDe\" required=\"true\" [disabled]=\"false\"\r\n                                    [(ngModel)]=\"service.filter.dataI\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"ate\" class=\"required\">\r\n                                    {{\"labels.ate\" | translate}}\r\n                                </label>\r\n                                <app-data id=\"ate\" name=\"ate\" required=\"true\" [disabled]=\"false\"\r\n                                    [(ngModel)]=\"service.filter.dataF\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"situacao\">{{\"labels.situacao\" | translate }}</label>\r\n                                <select id=\"situacao\"\r\n                                        name=\"situacao\"\r\n                                        [(ngModel)]=\"service.filter.sitReg\"\r\n                                        class=\"form-control form-control-sm\">\r\n                                    <option value=\"A\">{{ 'labels.aberto' | translate }}</option>\r\n                                    <option value=\"L\">{{ 'labels.liberado' | 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\">{{ 'buttons.sair' | translate\r\n                        }}</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-form/programacao-transferencia-propriedade-form.component.html":
/*!*************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-form/programacao-transferencia-propriedade-form.component.html ***!
  \*************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaForm\" [sisFormularioId]=\"constantes.sisFormularioId\"\r\n    [formAction]=\"actionForm\" [itemData]=\"service.data.cliRaizenProgramacaoTransferenciaId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"row\">\r\n    <div class=\"col-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=\"#da\">{{\"labels.dados\" | 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                </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=\"card\">\r\n                        <app-form-legenda></app-form-legenda>\r\n                        <div class=\"card-body widget-body\">\r\n                            <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\r\n                                <app-validacoes></app-validacoes>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-2 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"numero\" class=\"required\">{{'labels.numero' | translate}}</label>\r\n                                            <input id=\"numero\" name=\"numero\"\r\n                                                [(ngModel)]=\"service.data.cliRaizenProgramacaoTransferenciaId\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" disabled required>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"data\" class=\"required\">{{\r\n                                                \"labels.data\" | translate }}</label>\r\n                                            <app-data-h-m id=\"data\" name=\"data\" [(ngModel)]=\"service.data.dtPrograma\"\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" required>\r\n                                            </app-data-h-m>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-6 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <app-pesquisa-material id=\"produto\" name=\"produto\" label=\"produto\"\r\n                                                required=\"true\" modalTitle=\"pesquisaDeProduto\"\r\n                                                [inSelected]=\"service.data.material\" (outModel)=\"trataMaterial($event)\"\r\n                                                [(ngModel)]=\"service.data.materialId\"\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\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 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"quantid\">{{'labels.quantidade' | translate}}</label>\r\n                                            <input id=\"quantid\" name=\"quantid\" [(ngModel)]=\"service.data.quantidade\"\r\n                                                maxlength=\"11\" class=\"form-control form-control-sm\" type=\"text\"\r\n                                                disabled=\"true\" currencyMask [options]=\"funcoes.optionCurrency(0)\">\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"tipoTransf\" class=\"required\">{{'labels.tipoTransferencia' |\r\n                                                translate}}</label>\r\n                                            <select id=\"tipoTransf\" name=\"tipoTransferencia\"\r\n                                                class=\"form-control form-control-sm\" required\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                                [(ngModel)]=\"service.data.tipoTransf\">\r\n                                                <option value=\"\">{{ 'labels.selecione' | translate}}</option>\r\n                                                <option *ngFor=\"let tipoTransf of listaTipoDeTransferencia\"\r\n                                                    [value]=\"tipoTransf.value\">{{ tipoTransf.descricao | translate}}\r\n                                                </option>\r\n                                            </select>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-6 col-md-6 col-sm-12\">\r\n                                        <fieldset>\r\n                                            <legend>{{ \"labels.origem\" | translate }}</legend>\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-sm-12\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <app-pesquisa-destinatario id=\"clienteOrigem\"\r\n                                                            name=\"clienteOrigem\" tipoDestinatario=\"C\"\r\n                                                            modalTitle=\"pesquisaDeCliente\" label=\"cliente\"\r\n                                                            [(ngModel)]=\"service.data.destinatarioIdClienteOrigem\"\r\n                                                            showInscricao=\"false\" showCgcCpf=\"false\" [required]=\"true\"\r\n                                                            [inSelected]=\"service.data.clienteOrigem\"\r\n                                                            (outModel)=\"trataClienteOrigem($event)\"\r\n                                                            (blur)=\"verificaClienteIguais()\"\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-6 col-md-6\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"codigoIntegracaoOrigem\" class=\"required\">{{\r\n                                                            \"labels.codigoIntegracaoOrigem\" | translate }}</label>\r\n                                                        <input id=\"codigoIntegracaoOrigem\" name=\"codigoIntegracaoOrigem\"\r\n                                                            class=\"form-control form-control-sm\" type=\"text\"\r\n                                                            maxlength=\"15\"\r\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\" required\r\n                                                            [(ngModel)]=\"service.data.codIntegracaoOri\" />\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-11 col-md-11\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"tipoNotaOri\"\r\n                                                            [class.required]=\"reqCampoOri\">{{'labels.tipoNota' |\r\n                                                            translate}}</label>\r\n                                                        <app-programacao-transferencia-propriedade-tipo-nota\r\n                                                            id=\"tipoNotaOri\" name=\"tipoNotaOri\"\r\n                                                            tabela=\"CliRaizenTipoNota\" chave=\"TipoNota\"\r\n                                                            descricao=\"Descricao\" sitReg=\"A\" tipoMov=\"S\" obrigaBSLZ=\"S\"\r\n                                                            [required]=\"reqCampoOri\"\r\n                                                            [(ngModel)]=\"service.data.cliRaizenTipoNotaIdOrigem\"\r\n                                                            [disabled]=\"(funcoesService.isDetail(actionForm) || !reqCampoOri)\">\r\n                                                        </app-programacao-transferencia-propriedade-tipo-nota>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                        </fieldset>\r\n                                    </div>\r\n                                    <div class=\"col-lg-6 col-md-6 col-sm-12\">\r\n                                        <fieldset>\r\n                                            <legend>{{ \"labels.destino\" | translate }}</legend>\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-sm-12\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <app-pesquisa-destinatario id=\"clienteDestino\"\r\n                                                            name=\"clienteDestino\" tipoDestinatario=\"C\"\r\n                                                            modalTitle=\"pesquisaDeCliente\" label=\"cliente\"\r\n                                                            [(ngModel)]=\"service.data.destinatarioIdClienteDestino\"\r\n                                                            showInscricao=\"false\" showCgcCpf=\"false\" [required]=\"true\"\r\n                                                            [inSelected]=\"service.data.clienteDestino\"\r\n                                                            (outModel)=\"trataClienteDestino($event)\"\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-6 col-md-6\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"codigoIntegracaoDestino\" class=\"required\">{{\r\n                                                            \"labels.codigoIntegracaoDestino\" | translate }}</label>\r\n                                                        <input id=\"codigoIntegracaoDestino\"\r\n                                                            name=\"codigoIntegracaoDestino\"\r\n                                                            class=\"form-control form-control-sm\" type=\"text\"\r\n                                                            maxlength=\"15\"\r\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\" required\r\n                                                            [(ngModel)]=\"service.data.codIntegracaoDest\" />\r\n                                                    </div>\r\n                                                </div>\r\n                                                <div class=\"col-lg-6 col-md-6\">\r\n                                                    <app-pesquisa-lote id=\"lote\" label=\"lote\" name=\"lote\"\r\n                                                        modalTitle=\"lote\" [(ngModel)]=\"service.data.loteIdDestino\"\r\n                                                        [destinatarioIdCliente]=\"service.data.destinatarioIdClienteDestino\"\r\n                                                        [materialId]=\"service.data.materialId\"\r\n                                                        [loteId]=\"service.data.loteIdDestino\" destinatarioIdEmitente=\"0\"\r\n                                                        destinatarioIdNavio=\"0\" osgId=\"0\" stoContratoId=\"0\"\r\n                                                        stoContratoItemId=\"0\" [required]=\"true\"\r\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                                    </app-pesquisa-lote>\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-11 col-md-11\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"tipoNotaDest\"\r\n                                                            [class.required]=\"reqCampoDest\">{{'labels.tipoNota' |\r\n                                                            translate}}</label>\r\n                                                        <app-programacao-transferencia-propriedade-tipo-nota\r\n                                                            id=\"tipoNotaDest\" name=\"tipoNotaDest\"\r\n                                                            tabela=\"CliRaizenTipoNota\" chave=\"TipoNota\"\r\n                                                            descricao=\"Descricao\" sitReg=\"A\" tipoMov=\"E\" obrigaBSLZ=\"S\"\r\n                                                            [required]=\"reqCampoDest\"\r\n                                                            [(ngModel)]=\"service.data.cliRaizenTipoNotaIdDestino\"\r\n                                                            [disabled]=\"(funcoesService.isDetail(actionForm) || !reqCampoDest)\">\r\n                                                        </app-programacao-transferencia-propriedade-tipo-nota>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                        </fieldset>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"clearfix\">&nbsp;</div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-12\">\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                                            <button class=\"btn btn-success\" (click)=\"saveAndCreate(f)\" type=\"button\"\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">{{ 'buttons.salvarNovo'\r\n                                                | translate\r\n                                                }}</button>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </form>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <!-- ABA DEPOSITOS-->\r\n                <div class=\"tab-pane\" id=\"de\">\r\n                    <app-programacao-transferencia-propriedade-tanque [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                        (dataResult)=\"refreshTanques($event)\">\r\n                    </app-programacao-transferencia-propriedade-tanque>\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/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-index/programacao-transferencia-propriedade-index.component.html":
/*!***************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-index/programacao-transferencia-propriedade-index.component.html ***!
  \***************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\" [sisFormularioId]=\"constantes.sisFormularioId\"\n    [formAction]=\"actionForm\" [itemData]=\"data.cliRaizenProgramacaoTransferenciaId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <table id=\"dtProgramacaoTransferenciaPropriedade\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n    </table>\n</div>\n\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-programacao-transferencia-propriedade-filter (filtrar)=\"executarFiltro($event)\">\n</app-programacao-transferencia-propriedade-filter>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-tanque/programacao-transferencia-propriedade-tanque.component.html":
/*!*****************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-tanque/programacao-transferencia-propriedade-tanque.component.html ***!
  \*****************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div *ngIf=\"!showAdd\">\r\n    <div class=\"container-buttons\">\r\n        <div class=\"btn-group\">\r\n            <app-menu-button title=\"{{ 'buttons.novo' | translate }}\" [icon]=\"'icon-plus'\" (click)=\"create()\"\r\n                [disabled]=\"disabled\">\r\n            </app-menu-button>\r\n            <app-menu-button title=\"{{ 'buttons.visualizar' | translate }}\" [icon]=\"'icon-eye'\" (click)=\"detail()\"\r\n                [disabled]=\"funcoesService.showButtons.detail(actionForm, dataAux.tanqueId)\">\r\n            </app-menu-button>\r\n            <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'icon-pencil'\" (click)=\"edit()\"\r\n                [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, dataAux.tanqueId)\">\r\n            </app-menu-button>\r\n            <app-menu-button title=\"{{ 'buttons.excluir' | translate }}\" [icon]=\"'icon-close'\" (click)=\"remove()\"\r\n                [disabled]=\"disabled || funcoesService.showButtons.remove(actionForm, dataAux.tanqueId)\">\r\n            </app-menu-button>\r\n        </div>\r\n    </div>\r\n\r\n    <div class=\"row\">\r\n        <div class=\"col-4\">\r\n            <table class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\">\r\n                <thead>\r\n                    <tr>\r\n                        <th>{{ \"labels.deposito\" | translate }}</th>\r\n                        <th>{{ \"labels.quantidade\" | translate }}</th>\r\n                    </tr>\r\n                </thead>\r\n                <tbody>\r\n                    <tr *ngFor=\"let c of (service.data.listaTanques | removeExcluidos)\" class=\"clickable\"\r\n                        [ngClass]=\"{ info: c === dataAux }\" (click)=\"dataAux = c\">\r\n                        <td>{{ c.tanqueId }}</td>\r\n                        <td>{{ c.quantidade }}</td>\r\n                    </tr>\r\n                    <tr *ngIf=\"!hasDados\">\r\n                        <th colspan=\"9\">\r\n                            {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                        </th>\r\n                    </tr>\r\n                </tbody>\r\n            </table>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<div *ngIf=\"showAdd\">\r\n    <div class=\"row\">\r\n        <div class=\"col-lg-6 container-buttons\">\r\n            <div class=\"btn-group\">\r\n                <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'fa fa-edit'\" (click)=\"edit()\"\r\n                    [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, data.tanqueId)\">\r\n                </app-menu-button>\r\n                <app-menu-button title=\"{{ 'buttons.voltar' | translate }}\" [icon]=\"'fa fa-arrow-left'\"\r\n                    (click)=\"back()\"></app-menu-button>\r\n            </div>\r\n        </div>\r\n        <div class=\"col-lg-6\">\r\n            <app-form-legenda></app-form-legenda>\r\n        </div>\r\n    </div>\r\n    \r\n    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\r\n        <div class=\"row\">\r\n            <div class=\"col-12\">\r\n                <div class=\"card\">\r\n                    <div class=\"card-body widget-body\">\r\n                        <app-validacoes></app-validacoes>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-4 col-md-8 col-sm-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <app-pesquisa-saldo-lote-deposito id=\"deposito\" name=\"deposito\" required=\"true\"\r\n                                        [label]=\"'deposito'\" [modalTitle]=\"'deposito'\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                        [field]=\"'tanqueId'\" \r\n                                        [options]=\"saldoDepositoOptions\" \r\n                                        [(ngModel)]=\"data.tanqueId\"\r\n                                        (ngModelChange)=\"verificaTanque()\">\r\n                                    </app-pesquisa-saldo-lote-deposito>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-4 col-md-8 col-sm-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"quantidade\">{{'labels.quantidade' | translate}}</label>\r\n                                    <input id=\"quantidade\" name=\"quantidade\" type=\"text\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\r\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                        [(ngModel)]=\"data.quantidade\" maxlength=\"15\"\r\n                                        class=\"form-control form-control-sm\" (blur)=\"trataDeposito(data.tanqueId)\">\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)\">\r\n                                {{ \"buttons.salvar\" | translate }}\r\n                            </button>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </form>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-tipo-nota/programacao-transferencia-propriedade-tipo-nota.component.html":
/*!***********************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-tipo-nota/programacao-transferencia-propriedade-tipo-nota.component.html ***!
  \***********************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<select [id]=\"name\" [name]=\"name\" [(ngModel)]=\"internalValue\" [required]=\"required\" [disabled]=\"disabled\" data-title=\"{{ 'labels.tipoNota' | translate }}\"\n  class=\"form-control form-control-sm\" (change)=\"selected($event.target.value)\">\n  <option value=\"0\" selected=\"selected\">{{ 'labels.selecione' | translate }}</option>\n  <option [value]=\"item.cliRaizenTipoNotaId\" *ngFor=\"let item of dados\">{{ item.descricao }}</option>\n</select>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnidadeService", function() { return UnidadeService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};






var UnidadeService = /** @class */ (function (_super) {
    __extends(UnidadeService, _super);
    function UnidadeService(http) {
        return _super.call(this, http, "cadastros/unidade") || this;
    }
    UnidadeService.prototype.getOpcoesValidas = function (unidades) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/cadastros/unidade/getOpcoesValidas", { "unidades": unidades })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    UnidadeService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    UnidadeService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], UnidadeService);
    return UnidadeService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__["BaseService"]));



/***/ }),

/***/ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-filter/programacao-transferencia-propriedade-filter.component.ts":
/*!*************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-filter/programacao-transferencia-propriedade-filter.component.ts ***!
  \*************************************************************************************************************************************************************************************************/
/*! exports provided: ProgramacaoTransferenciaPropriedadeFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgramacaoTransferenciaPropriedadeFilterComponent", function() { return ProgramacaoTransferenciaPropriedadeFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _programacao_transferencia_propriedade_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../programacao-transferencia-propriedade.constants */ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade.constants.ts");
/* harmony import */ var _programacao_transferencia_propriedade_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../programacao-transferencia-propriedade.model */ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade.model.ts");
/* harmony import */ var _programacao_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../programacao-transferencia-propriedade.service */ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade.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 ProgramacaoTransferenciaPropriedadeFilterComponent = /** @class */ (function () {
    function ProgramacaoTransferenciaPropriedadeFilterComponent(service, message) {
        this.service = service;
        this.message = message;
        this.constantes = new _programacao_transferencia_propriedade_constants__WEBPACK_IMPORTED_MODULE_3__["ProgramacaoTransferenciaPropriedadeConstants"]();
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    ProgramacaoTransferenciaPropriedadeFilterComponent.prototype.ngOnInit = function () {
        this.service.filter = new _programacao_transferencia_propriedade_model__WEBPACK_IMPORTED_MODULE_4__["CliRaizenProgramacaoTransferenciaFiltroVo"]();
    };
    Object.defineProperty(ProgramacaoTransferenciaPropriedadeFilterComponent.prototype, "title", {
        get: function () {
            return this.message.translate("titles.programacaoTransferenciaPropriedade");
        },
        enumerable: true,
        configurable: true
    });
    ProgramacaoTransferenciaPropriedadeFilterComponent.prototype.onSubmit = function (form) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid)
            return;
        this.filtrar.emit(this.service.filter);
        jQuery("#programacao-transferencia-propriedade-filter-dialog").modal("hide");
    };
    ProgramacaoTransferenciaPropriedadeFilterComponent.ctorParameters = function () { return [
        { type: _programacao_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_5__["ProgramacaoTransferenciaPropriedadeService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], ProgramacaoTransferenciaPropriedadeFilterComponent.prototype, "filtrar", void 0);
    ProgramacaoTransferenciaPropriedadeFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-programacao-transferencia-propriedade-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./programacao-transferencia-propriedade-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-filter/programacao-transferencia-propriedade-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_programacao_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_5__["ProgramacaoTransferenciaPropriedadeService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"]])
    ], ProgramacaoTransferenciaPropriedadeFilterComponent);
    return ProgramacaoTransferenciaPropriedadeFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-form/programacao-transferencia-propriedade-form.component.scss":
/*!***********************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-form/programacao-transferencia-propriedade-form.component.scss ***!
  \***********************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("fieldset {\n  border: 1px solid #999;\n  padding: 10px;\n  /* controla a distancia entre os elementos e a borda */\n  width: 100%;\n}\n\nlegend {\n  display: inline;\n  width: auto;\n  border: 0;\n  padding: 10px;\n  font-weight: 600;\n  font-size: 13px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3MvcmFpemVuL2NhZGFzdHJvcy9wcm9ncmFtYWNhby10cmFuc2ZlcmVuY2lhLXByb3ByaWVkYWRlL3Byb2dyYW1hY2FvLXRyYW5zZmVyZW5jaWEtcHJvcHJpZWRhZGUtZm9ybS9DOlxcQ29ycG9yYXRlXFxDb3Jwb3JhdGVXZWJEZXNlbnZcXF91bmlzb2x1dGlvbi9zcmNcXGFwcFxccGFnZXNcXGVzcGVjaWZpY29zXFxyYWl6ZW5cXGNhZGFzdHJvc1xccHJvZ3JhbWFjYW8tdHJhbnNmZXJlbmNpYS1wcm9wcmllZGFkZVxccHJvZ3JhbWFjYW8tdHJhbnNmZXJlbmNpYS1wcm9wcmllZGFkZS1mb3JtXFxwcm9ncmFtYWNhby10cmFuc2ZlcmVuY2lhLXByb3ByaWVkYWRlLWZvcm0uY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL3BhZ2VzL2VzcGVjaWZpY29zL3JhaXplbi9jYWRhc3Ryb3MvcHJvZ3JhbWFjYW8tdHJhbnNmZXJlbmNpYS1wcm9wcmllZGFkZS9wcm9ncmFtYWNhby10cmFuc2ZlcmVuY2lhLXByb3ByaWVkYWRlLWZvcm0vcHJvZ3JhbWFjYW8tdHJhbnNmZXJlbmNpYS1wcm9wcmllZGFkZS1mb3JtLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0Usc0JBQUE7RUFDQSxhQUFBO0VBQWdCLHNEQUFBO0VBQ2hCLFdBQUE7QUNFRjs7QURDQTtFQUNFLGVBQUE7RUFDQSxXQUFBO0VBQ0EsU0FBQTtFQUNBLGFBQUE7RUFDQSxnQkFBQTtFQUNBLGVBQUE7QUNFRiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL2VzcGVjaWZpY29zL3JhaXplbi9jYWRhc3Ryb3MvcHJvZ3JhbWFjYW8tdHJhbnNmZXJlbmNpYS1wcm9wcmllZGFkZS9wcm9ncmFtYWNhby10cmFuc2ZlcmVuY2lhLXByb3ByaWVkYWRlLWZvcm0vcHJvZ3JhbWFjYW8tdHJhbnNmZXJlbmNpYS1wcm9wcmllZGFkZS1mb3JtLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiZmllbGRzZXQge1xyXG4gIGJvcmRlcjogMXB4IHNvbGlkICM5OTk7XHJcbiAgcGFkZGluZzogMTBweDsgIC8qIGNvbnRyb2xhIGEgZGlzdGFuY2lhIGVudHJlIG9zIGVsZW1lbnRvcyBlIGEgYm9yZGEgKi9cclxuICB3aWR0aDogMTAwJTsgIFxyXG59XHJcblxyXG5sZWdlbmQge1xyXG4gIGRpc3BsYXk6IGlubGluZTtcclxuICB3aWR0aDogYXV0bztcclxuICBib3JkZXI6IDA7XHJcbiAgcGFkZGluZzogMTBweDtcclxuICBmb250LXdlaWdodDogNjAwO1xyXG4gIGZvbnQtc2l6ZTogMTNweDtcclxufVxyXG4iLCJmaWVsZHNldCB7XG4gIGJvcmRlcjogMXB4IHNvbGlkICM5OTk7XG4gIHBhZGRpbmc6IDEwcHg7XG4gIC8qIGNvbnRyb2xhIGEgZGlzdGFuY2lhIGVudHJlIG9zIGVsZW1lbnRvcyBlIGEgYm9yZGEgKi9cbiAgd2lkdGg6IDEwMCU7XG59XG5cbmxlZ2VuZCB7XG4gIGRpc3BsYXk6IGlubGluZTtcbiAgd2lkdGg6IGF1dG87XG4gIGJvcmRlcjogMDtcbiAgcGFkZGluZzogMTBweDtcbiAgZm9udC13ZWlnaHQ6IDYwMDtcbiAgZm9udC1zaXplOiAxM3B4O1xufSJdfQ== */");

/***/ }),

/***/ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-form/programacao-transferencia-propriedade-form.component.ts":
/*!*********************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-form/programacao-transferencia-propriedade-form.component.ts ***!
  \*********************************************************************************************************************************************************************************************/
/*! exports provided: ProgramacaoTransferenciaPropriedadeFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgramacaoTransferenciaPropriedadeFormComponent", function() { return ProgramacaoTransferenciaPropriedadeFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/cadastro/material/material.model */ "./src/app/pages/cadastro/material/material.model.ts");
/* harmony import */ var app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/pages/cadastro/material/material.service */ "./src/app/pages/cadastro/material/material.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _programacao_transferencia_propriedade_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../programacao-transferencia-propriedade.constants */ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade.constants.ts");
/* harmony import */ var _programacao_transferencia_propriedade_model__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../programacao-transferencia-propriedade.model */ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade.model.ts");
/* harmony import */ var _programacao_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../programacao-transferencia-propriedade.service */ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade.service.ts");
/* harmony import */ var _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./../../../../../cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var _cadastro_unidade_unidade_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./../../../../../cadastro/unidade/unidade.service */ "./src/app/pages/cadastro/unidade/unidade.service.ts");
/* harmony import */ var app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! app/shared/services/funcoes/object-utils/object-utils.static.service */ "./src/app/shared/services/funcoes/object-utils/object-utils.static.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




















var ProgramacaoTransferenciaPropriedadeFormComponent = /** @class */ (function (_super) {
    __extends(ProgramacaoTransferenciaPropriedadeFormComponent, _super);
    function ProgramacaoTransferenciaPropriedadeFormComponent(router, message, activatedRoute, service, funcoes, permissoesUtils, loginService, materialService, configuracao, unidadeService, destinatarioService) {
        var _this = _super.call(this, new _programacao_transferencia_propriedade_constants__WEBPACK_IMPORTED_MODULE_14__["ProgramacaoTransferenciaPropriedadeConstants"](), funcoes) || this;
        _this.router = router;
        _this.message = message;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoes = funcoes;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.materialService = materialService;
        _this.configuracao = configuracao;
        _this.unidadeService = unidadeService;
        _this.destinatarioService = destinatarioService;
        _this.mensagens = [];
        _this.constantes = new _programacao_transferencia_propriedade_constants__WEBPACK_IMPORTED_MODULE_14__["ProgramacaoTransferenciaPropriedadeConstants"]();
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
        _this.pageRoute = "/especificos/raizen/cadastros/programacaoTransferenciaPropriedade";
        _this.target = _this.funcoes.getTargetLocation();
        _this.reqCampoOri = false;
        _this.reqCampoDest = false;
        _this.loadConfig = function () { return __awaiter(_this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        if (!this.configuracao.isLoadConfig())
                            return [2 /*return*/];
                        _a = this.service;
                        return [4 /*yield*/, app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].toNumber(this.configuracao.lerConfig("REL", "CoddestBSLZ"))];
                    case 1:
                        _a.coddestBSLZ = _b.sent();
                        return [2 /*return*/, this.constantes.configWeb.coddestBSLZ];
                }
            });
        }); };
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    ProgramacaoTransferenciaPropriedadeFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () { return __awaiter(_this, void 0, void 0, function () {
            var id;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        id = this.activatedRoute.snapshot.paramMap.get("id");
                        if (!id) return [3 /*break*/, 2];
                        return [4 /*yield*/, this.preEditOrDetail(+id)];
                    case 1:
                        _a.sent();
                        return [3 /*break*/, 3];
                    case 2:
                        this.preCreate();
                        _a.label = 3;
                    case 3:
                        this.initTipoDeTransferencia();
                        return [2 /*return*/];
                }
            });
        }); }, function () {
            _this.permissoesUtils.back();
        });
    };
    ProgramacaoTransferenciaPropriedadeFormComponent.prototype.preEditOrDetail = function (id) {
        return __awaiter(this, void 0, void 0, function () {
            var resp, material, clienteOrigem, clienteDestino;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.service.getById(id).toPromise()];
                    case 1:
                        resp = _a.sent();
                        if (!!!resp) return [3 /*break*/, 5];
                        this.service.data = resp;
                        this.service.data.listaTanques = resp.listaTanques;
                        this.preencheComboUnidade("KG, M3, LT, UN");
                        return [4 /*yield*/, this.materialService.getById(this.service.data.materialId).toPromise()];
                    case 2:
                        material = _a.sent();
                        this.loadMaterial(material);
                        return [4 /*yield*/, this.destinatarioService.getById(this.service.data.destinatarioIdClienteOrigem).toPromise()];
                    case 3:
                        clienteOrigem = _a.sent();
                        this.loadClienteOrigem(clienteOrigem);
                        return [4 /*yield*/, this.destinatarioService.getById(this.service.data.destinatarioIdClienteDestino).toPromise()];
                    case 4:
                        clienteDestino = _a.sent();
                        this.loadClienteDestino(clienteDestino);
                        this.reqCampoOri = (this.service.coddestBSLZ === this.service.data.destinatarioIdClienteOrigem);
                        this.reqCampoDest = (this.service.coddestBSLZ === this.service.data.destinatarioIdClienteDestino);
                        _a.label = 5;
                    case 5: return [2 /*return*/];
                }
            });
        });
    };
    ProgramacaoTransferenciaPropriedadeFormComponent.prototype.preCreate = function () {
        this.service.data = new _programacao_transferencia_propriedade_model__WEBPACK_IMPORTED_MODULE_15__["CliRaizenProgramacaoTransferencia"]();
        this.service.data.material = new app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_4__["Material"]();
        this.service.data.clienteOrigem = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_3__["Destinatario"]();
        this.service.data.clienteDestino = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_3__["Destinatario"]();
        this.preencheComboUnidade("KG, M3, LT, UN");
    };
    ProgramacaoTransferenciaPropriedadeFormComponent.prototype.onSubmit = function (form, create) {
        if (create === void 0) { create = false; }
        return __awaiter(this, void 0, void 0, function () {
            var quantidTanques, dataSend;
            var _this = this;
            return __generator(this, function (_a) {
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_8__["EventEmitterService"].get("formError").emit(null);
                if (form.invalid) {
                    app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_8__["EventEmitterService"].get("formError").emit(form);
                    this.funcoesService.backToTop();
                    return [2 /*return*/];
                }
                quantidTanques = 0;
                if (!!this.service.data.listaTanques) {
                    quantidTanques = this.service.data.listaTanques.length;
                }
                if (!(quantidTanques > 0)) {
                    this.message.warning("titles.programacaoTransferenciaPropriedade", "messages.nenhumTanqueInformado");
                    return [2 /*return*/];
                }
                if (this.reqCampoOri && (this.service.data.cliRaizenTipoNotaIdOrigem === "0")) {
                    this.message.warning("titles.programacaoTransferenciaPropriedade", "messages.tipoNotaOriNaoInformado");
                    return [2 /*return*/];
                }
                if (this.reqCampoDest && (this.service.data.cliRaizenTipoNotaIdDestino === "0")) {
                    this.message.warning("titles.programacaoTransferenciaPropriedade", "messages.tipoNotaDestNaoInformado");
                    return [2 /*return*/];
                }
                this.service.data.logRotina = "Manutenção Prog. Transferência de Propriedade";
                dataSend = app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_19__["ObjectUtilsStaticService"].clone(this.service.data);
                delete dataSend.material;
                delete dataSend.clienteOrigem;
                delete dataSend.clienteDestino;
                delete dataSend.lote;
                this.service
                    .save(dataSend, this.funcoesService.isEdit(this.actionForm))
                    .subscribe(function (result) {
                    _this.mensagens = _this.message.validationResult(result.validationResult);
                    if (!result.validationResult.isValid) {
                        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_8__["EventEmitterService"].get("backError").emit(_this.mensagens);
                    }
                    else {
                        _this.message.saveSuccess("titles.programacaoTransferenciaPropriedade");
                        if (create) {
                            _this.service.data = new _programacao_transferencia_propriedade_model__WEBPACK_IMPORTED_MODULE_15__["CliRaizenProgramacaoTransferencia"]();
                            _this.router.navigate(["" + _this.target + _this.pageRoute, "create"]);
                        }
                        else {
                            _this.back();
                        }
                    }
                });
                return [2 /*return*/];
            });
        });
    };
    ProgramacaoTransferenciaPropriedadeFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    ProgramacaoTransferenciaPropriedadeFormComponent.prototype.edit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () { return __awaiter(_this, void 0, void 0, function () {
            var validationResult, mensagens;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (!app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].isPositive(this.service.data.cliRaizenProgramacaoTransferenciaId)) return [3 /*break*/, 2];
                        if (this.service.programacaoLiberada(this.service.data.sitReg, "messages.programacaoJaLiberadaAlteracaoNaoPermitida"))
                            return [2 /*return*/];
                        return [4 /*yield*/, this.service.podeAlterar({ cliRaizenProgramacaoTransferenciaId: this.service.data.cliRaizenProgramacaoTransferenciaId }).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.message.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.message.warning("titles.programacaoTransferenciaPropriedade", m); });
                            return [2 /*return*/];
                        }
                        else {
                            this.router.navigate(["" + this.target + this.pageRoute + "/edit/" + this.service.data.cliRaizenProgramacaoTransferenciaId]);
                        }
                        _a.label = 2;
                    case 2: return [2 /*return*/];
                }
            });
        }); });
    };
    ProgramacaoTransferenciaPropriedadeFormComponent.prototype.back = function () {
        this.router.navigate(["" + this.target + this.pageRoute]);
    };
    ProgramacaoTransferenciaPropriedadeFormComponent.prototype.trataMaterial = function (material) {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                if (!material)
                    return [2 /*return*/];
                this.loadMaterial(material);
                return [2 /*return*/];
            });
        });
    };
    ProgramacaoTransferenciaPropriedadeFormComponent.prototype.loadMaterial = function (data) {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                if (!data)
                    return [2 /*return*/];
                this.service.data.materialId = data.materialId;
                this.service.data.material = data;
                return [2 /*return*/];
            });
        });
    };
    ProgramacaoTransferenciaPropriedadeFormComponent.prototype.preencheComboUnidade = function (unidades) {
        var _this = this;
        this.unidades = [];
        this.unidadeService.getOpcoesValidas(unidades).subscribe(function (resp) {
            resp.forEach(function (e) {
                if (e !== undefined) {
                    _this.unidades.push(e);
                }
            });
        });
    };
    ProgramacaoTransferenciaPropriedadeFormComponent.prototype.trataClienteOrigem = function (cliente) {
        return __awaiter(this, void 0, void 0, function () {
            var resp;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (!cliente)
                            return [2 /*return*/];
                        return [4 /*yield*/, this.destinatarioService.getById(cliente.destinatarioId).toPromise()];
                    case 1:
                        resp = _a.sent();
                        this.loadClienteOrigem(resp);
                        this.reqCampoOri = (this.service.coddestBSLZ === resp.destinatarioId);
                        if (!this.reqCampoOri) {
                            this.service.data.cliRaizenTipoNotaIdOrigem = "0";
                        }
                        this.verificaClienteIguais();
                        return [2 /*return*/];
                }
            });
        });
    };
    ProgramacaoTransferenciaPropriedadeFormComponent.prototype.loadClienteOrigem = function (data) {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                if (!data)
                    return [2 /*return*/];
                this.service.data.destinatarioIdClienteOrigem = data.destinatarioId;
                this.service.data.clienteOrigem = data;
                return [2 /*return*/];
            });
        });
    };
    ProgramacaoTransferenciaPropriedadeFormComponent.prototype.trataClienteDestino = function (cliente) {
        return __awaiter(this, void 0, void 0, function () {
            var resp;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (!cliente)
                            return [2 /*return*/];
                        return [4 /*yield*/, this.destinatarioService.getById(cliente.destinatarioId).toPromise()];
                    case 1:
                        resp = _a.sent();
                        this.loadClienteDestino(resp);
                        this.reqCampoDest = (this.service.coddestBSLZ === resp.destinatarioId);
                        if (!this.reqCampoDest) {
                            this.service.data.cliRaizenTipoNotaIdDestino = "0";
                        }
                        this.verificaClienteIguais();
                        return [2 /*return*/];
                }
            });
        });
    };
    ProgramacaoTransferenciaPropriedadeFormComponent.prototype.loadClienteDestino = function (data) {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                if (!data)
                    return [2 /*return*/];
                this.service.data.destinatarioIdClienteDestino = data.destinatarioId;
                this.service.data.clienteDestino = data;
                return [2 /*return*/];
            });
        });
    };
    ProgramacaoTransferenciaPropriedadeFormComponent.prototype.refreshTanques = function (event) {
        this.service.data.listaTanques = event;
    };
    ProgramacaoTransferenciaPropriedadeFormComponent.prototype.verificaClienteIguais = function () {
        if (this.service.data.destinatarioIdClienteDestino === this.service.data.destinatarioIdClienteOrigem) {
            this.message.warning("titles.programacaoTransferenciaPropriedade", "messages.clienteDestinoNaoPodeSerIgualClienteOrigem");
        }
    };
    ProgramacaoTransferenciaPropriedadeFormComponent.prototype.initTipoDeTransferencia = function () {
        this.listaTipoDeTransferencia = [
            { value: "C", descricao: "Compra" },
            { value: "V", descricao: "Venda" },
            { value: "T", descricao: "Transferência" }
        ];
    };
    ProgramacaoTransferenciaPropriedadeFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_13__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _programacao_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_16__["ProgramacaoTransferenciaPropriedadeService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_10__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_12__["PermissoesUtilsService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"] },
        { type: app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_5__["MaterialService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_9__["ConfiguracaoFacade"] },
        { type: _cadastro_unidade_unidade_service__WEBPACK_IMPORTED_MODULE_18__["UnidadeService"] },
        { type: _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_17__["DestinatarioService"] }
    ]; };
    ProgramacaoTransferenciaPropriedadeFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-programacao-transferencia-propriedade-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./programacao-transferencia-propriedade-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-form/programacao-transferencia-propriedade-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./programacao-transferencia-propriedade-form.component.scss */ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-form/programacao-transferencia-propriedade-form.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_13__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _programacao_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_16__["ProgramacaoTransferenciaPropriedadeService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_10__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_12__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"],
            app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_5__["MaterialService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_9__["ConfiguracaoFacade"],
            _cadastro_unidade_unidade_service__WEBPACK_IMPORTED_MODULE_18__["UnidadeService"],
            _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_17__["DestinatarioService"]])
    ], ProgramacaoTransferenciaPropriedadeFormComponent);
    return ProgramacaoTransferenciaPropriedadeFormComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-index/programacao-transferencia-propriedade-index.component.ts":
/*!***********************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-index/programacao-transferencia-propriedade-index.component.ts ***!
  \***********************************************************************************************************************************************************************************************/
/*! exports provided: ProgramacaoTransferenciaPropriedadeIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgramacaoTransferenciaPropriedadeIndexComponent", function() { return ProgramacaoTransferenciaPropriedadeIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _programacao_transferencia_propriedade_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../programacao-transferencia-propriedade.constants */ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade.constants.ts");
/* harmony import */ var _programacao_transferencia_propriedade_model__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../programacao-transferencia-propriedade.model */ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade.model.ts");
/* harmony import */ var _programacao_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../programacao-transferencia-propriedade.service */ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};














var ProgramacaoTransferenciaPropriedadeIndexComponent = /** @class */ (function (_super) {
    __extends(ProgramacaoTransferenciaPropriedadeIndexComponent, _super);
    function ProgramacaoTransferenciaPropriedadeIndexComponent(router, service, datatables, permissoesUtils, message, loginService, configuracao, funcoes) {
        var _this = _super.call(this, new _programacao_transferencia_propriedade_constants__WEBPACK_IMPORTED_MODULE_11__["ProgramacaoTransferenciaPropriedadeConstants"](), funcoes) || this;
        _this.router = router;
        _this.service = service;
        _this.datatables = datatables;
        _this.permissoesUtils = permissoesUtils;
        _this.message = message;
        _this.loginService = loginService;
        _this.configuracao = configuracao;
        _this.funcoes = funcoes;
        _this.data = new _programacao_transferencia_propriedade_model__WEBPACK_IMPORTED_MODULE_12__["CliRaizenProgramacaoTransferencia"]();
        _this.mensagens = [];
        _this.constantes = new _programacao_transferencia_propriedade_constants__WEBPACK_IMPORTED_MODULE_11__["ProgramacaoTransferenciaPropriedadeConstants"]();
        _this.pageRoute = "/especificos/raizen/cadastros/programacaoTransferenciaPropriedade";
        _this.target = _this.funcoesService.getTargetLocation();
        _this.liberar = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 8, function () { return __awaiter(_this, void 0, void 0, function () {
                var validationResult, mensagens;
                var _this = this;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0:
                            if (this.service.programacaoLiberada(this.data.sitReg, "messages.programacaoJaLiberadaAlteracaoNaoPermitida"))
                                return [2 /*return*/];
                            return [4 /*yield*/, this.service.liberarProgramacao({ "cliRaizenProgramacaoTransferenciaId": this.data.cliRaizenProgramacaoTransferenciaId }).toPromise()];
                        case 1:
                            validationResult = _a.sent();
                            if (!validationResult.isValid) {
                                mensagens = this.message.validationResult(validationResult);
                                mensagens.forEach(function (m) { return _this.message.warning("titles.programacaoTransferenciaPropriedade", m); });
                                return [2 /*return*/];
                            }
                            else {
                                this.refresh();
                            }
                            return [2 /*return*/];
                    }
                });
            }); });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    ProgramacaoTransferenciaPropriedadeIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (!!this.loginService.isTokenExpired()) return [3 /*break*/, 3];
                        if (!!!this.service.filter) return [3 /*break*/, 2];
                        return [4 /*yield*/, this.refresh()];
                    case 1:
                        _a.sent();
                        _a.label = 2;
                    case 2:
                        if (!app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["ArrayUtilsStaticService"].any(this.dados))
                            this.filtrar();
                        _a.label = 3;
                    case 3: return [2 /*return*/];
                }
            });
        }); }, function () {
            _this.permissoesUtils.back();
        }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: 'liberar', func: function () { return _this.liberar; } },
        ]);
    };
    ProgramacaoTransferenciaPropriedadeIndexComponent.prototype.refresh = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _a, columns;
            var _this = this;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        if (!this.service.filter)
                            return [2 /*return*/];
                        _a = this;
                        return [4 /*yield*/, this.service.getByFiltro(this.service.filter).toPromise()];
                    case 1:
                        _a.dados = _b.sent();
                        columns = [
                            this.datatables.getDataString("cliRaizenProgramacaoTransferenciaId", "numero", "10%"),
                            this.datatables.getDataDateTime("dtPrograma", "data", "DD/MM/YYYY", "15%"),
                            this.datatables.getDataString("clienteOrigem", "clienteOrigem"),
                            this.datatables.getDataString("clienteDestino", "clienteDestino"),
                            this.datatables.getDataString("produto", "produto"),
                            this.datatables.getDataDouble("quantidade", "quantidade", 0),
                            this.datatables.getDataString("unidadeId", "unidade"),
                            this.datatables.getDataString("situacao", "situacao"),
                        ];
                        this.datatables.datatable("dtProgramacaoTransferenciaPropriedade", columns, this.dados, function (aData) {
                            _this.data = aData;
                        }, 1, "desc");
                        return [2 /*return*/];
                }
            });
        });
    };
    ProgramacaoTransferenciaPropriedadeIndexComponent.prototype.filtrar = function () {
        jQuery("#programacao-transferencia-propriedade-filter-dialog").modal("show");
    };
    ProgramacaoTransferenciaPropriedadeIndexComponent.prototype.executarFiltro = function (event) {
        this.service.filter = event;
        this.refresh();
    };
    ProgramacaoTransferenciaPropriedadeIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    ProgramacaoTransferenciaPropriedadeIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    ProgramacaoTransferenciaPropriedadeIndexComponent.prototype.itemSelecionado = function () {
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["NumberUtilsStaticService"].isNotPositive(this.data.cliRaizenProgramacaoTransferenciaId)) {
            this.message.warning("titles.programacaoTransferenciaPropriedade", "messages.selecioneUmRegistro");
            return false;
        }
        return true;
    };
    ProgramacaoTransferenciaPropriedadeIndexComponent.prototype.detail = function () {
        if (!this.itemSelecionado())
            return;
        this.router.navigate(["" + this.target + this.pageRoute + "/detail/" + this.data.cliRaizenProgramacaoTransferenciaId]);
    };
    ProgramacaoTransferenciaPropriedadeIndexComponent.prototype.edit = function () {
        return __awaiter(this, void 0, void 0, function () {
            var validationResult, mensagens;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (!this.itemSelecionado())
                            return [2 /*return*/];
                        if (this.service.programacaoLiberada(this.data.sitReg, "messages.programacaoJaLiberadaAlteracaoNaoPermitida"))
                            return [2 /*return*/];
                        return [4 /*yield*/, this.service.podeAlterar({ cliRaizenProgramacaoTransferenciaId: this.data.cliRaizenProgramacaoTransferenciaId }).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.message.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.message.warning("titles.programacaoTransferenciaPropriedade", m); });
                            return [2 /*return*/];
                        }
                        else {
                            this.router.navigate(["" + this.target + this.pageRoute + "/edit/" + this.data.cliRaizenProgramacaoTransferenciaId]);
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    ProgramacaoTransferenciaPropriedadeIndexComponent.prototype.create = function () {
        this.router.navigate(["" + this.target + this.pageRoute, "create"]);
    };
    ProgramacaoTransferenciaPropriedadeIndexComponent.prototype.remove = function () {
        var _this = this;
        if (!this.itemSelecionado())
            return;
        if (this.service.programacaoLiberada(this.data.sitReg, "messages.programacaoJaLiberadaExclusaoNaoPermitida"))
            return;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () { return __awaiter(_this, void 0, void 0, function () {
            var validationResult, mensagens;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.service.podeRemover({ cliRaizenProgramacaoTransferenciaId: this.data.cliRaizenProgramacaoTransferenciaId }).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.message.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.message.warning("titles.programacaoTransferenciaPropriedade", m); });
                            return [2 /*return*/];
                        }
                        else {
                            this.executeRemove();
                        }
                        return [2 /*return*/];
                }
            });
        }); });
    };
    ProgramacaoTransferenciaPropriedadeIndexComponent.prototype.executeRemove = function () {
        var _this = this;
        this.message.removeConfirm(function () {
            _this.service.remove(_this.data).subscribe(function (result) {
                _this.mensagens = _this.message.validationResult(result.validationResult);
                if (!result.validationResult.isValid) {
                    _this.message.warning("titles.programacaoTransferenciaPropriedade", _this.mensagens[0]);
                }
                else {
                    _this.datatables.remove("dtProgramacaoTransferenciaPropriedade");
                }
            });
        });
    };
    ProgramacaoTransferenciaPropriedadeIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _this.constantes.paramRelatorio = {
                filialId: _this.loginService.getLogin().filialId,
                dataI: _this.service.filter.dataI,
                dataF: _this.service.filter.dataF,
                sitReg: _this.service.filter.sitReg
            };
            _super.prototype.print.call(_this, null, true);
        });
    };
    ProgramacaoTransferenciaPropriedadeIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _programacao_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_13__["ProgramacaoTransferenciaPropriedadeService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_6__["ConfiguracaoFacade"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"] }
    ]; };
    ProgramacaoTransferenciaPropriedadeIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-programacao-transferencia-propriedade-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./programacao-transferencia-propriedade-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-index/programacao-transferencia-propriedade-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _programacao_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_13__["ProgramacaoTransferenciaPropriedadeService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_6__["ConfiguracaoFacade"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"]])
    ], ProgramacaoTransferenciaPropriedadeIndexComponent);
    return ProgramacaoTransferenciaPropriedadeIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-tanque/programacao-transferencia-propriedade-tanque.component.ts":
/*!*************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-tanque/programacao-transferencia-propriedade-tanque.component.ts ***!
  \*************************************************************************************************************************************************************************************************/
/*! exports provided: ProgramacaoTransferenciaPropriedadeTanqueComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgramacaoTransferenciaPropriedadeTanqueComponent", function() { return ProgramacaoTransferenciaPropriedadeTanqueComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_pages_cadastro_tanque_tanque_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/cadastro/tanque/tanque.service */ "./src/app/pages/cadastro/tanque/tanque.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _programacao_transferencia_propriedade_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../programacao-transferencia-propriedade.model */ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade.model.ts");
/* harmony import */ var _programacao_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../programacao-transferencia-propriedade.service */ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};









var ProgramacaoTransferenciaPropriedadeTanqueComponent = /** @class */ (function () {
    function ProgramacaoTransferenciaPropriedadeTanqueComponent(messageService, loginService, serviceTanque, service, funcoesService) {
        this.messageService = messageService;
        this.loginService = loginService;
        this.serviceTanque = serviceTanque;
        this.service = service;
        this.funcoesService = funcoesService;
        this.dataResult = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.dataAux = new _programacao_transferencia_propriedade_model__WEBPACK_IMPORTED_MODULE_7__["CliRaizenProgramacaoTransferenciaTanque"]();
        this.data = new _programacao_transferencia_propriedade_model__WEBPACK_IMPORTED_MODULE_7__["CliRaizenProgramacaoTransferenciaTanque"]();
        this.showAdd = false;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
        this.hasDados = false;
    }
    ProgramacaoTransferenciaPropriedadeTanqueComponent.prototype.ngDoCheck = function () {
        this.hasDados =
            this.service.data.listaTanques &&
                this.service.data.listaTanques.length > 0 &&
                this.service.data.listaTanques.filter(function (v) {
                    if (v["sitReg"] !== "E") {
                        return true;
                    }
                    return false;
                }).length > 0;
        if (!this.isDoCheck) {
            if (this.service.data.listaTanques) {
                for (var i = 1; i <= this.service.data.listaTanques.length; i++) {
                    this.service.data.listaTanques[i - 1]["item"] = i;
                }
                this.isDoCheck = true;
            }
        }
    };
    ProgramacaoTransferenciaPropriedadeTanqueComponent.prototype.create = function () {
        this.showAdd = true;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].create;
        this.data = new _programacao_transferencia_propriedade_model__WEBPACK_IMPORTED_MODULE_7__["CliRaizenProgramacaoTransferenciaTanque"](this.service.data.cliRaizenProgramacaoTransferenciaId);
    };
    ProgramacaoTransferenciaPropriedadeTanqueComponent.prototype.edit = function () {
        this.showAdd = true;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].edit;
        this.data = Object.assign({}, this.dataAux);
    };
    ProgramacaoTransferenciaPropriedadeTanqueComponent.prototype.detail = function () {
        this.showAdd = true;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].detail;
        this.data = Object.assign({}, this.dataAux);
    };
    ProgramacaoTransferenciaPropriedadeTanqueComponent.prototype.back = function () {
        this.showAdd = false;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
    };
    ProgramacaoTransferenciaPropriedadeTanqueComponent.prototype.remove = function () {
        var _this = this;
        this.data = Object.assign({}, this.dataAux);
        if (!this.funcoesService.isUndefinedOrNull(this.data.item)) {
            this.messageService.removeConfirm(function () {
                var i = _this.service.data.listaTanques.findIndex(function (x) { return x.item === _this.data.item; });
                _this.data["sitReg"] = "E";
                _this.service.data.listaTanques[i] = _this.data;
                _this.atualizaQuantid();
            });
        }
    };
    ProgramacaoTransferenciaPropriedadeTanqueComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        if (this.funcoesService.isNotUndefinedOrNull(this.data.litrosComLib)) {
            if (this.data.litrosComLib < this.data.quantidade) {
                this.messageService.warning("titles.cliRaizenProgramacaoTransferenciaItem", "messages.quantidadeNaoPodeSerMaiorQueLitrosComLib");
                return;
            }
        }
        if (this.verificaTanque()) {
            return;
        }
        this.data.logRotina = "Manutenção de CliRaizenProgramacaoTransferenciaItem";
        if (this.funcoesService.isNotUndefinedOrNull(this.data.tanqueId)) {
            if (this.data.item && this.data.item > 0) {
                if (this.service.data.listaTanques.length > 0) {
                    var i = this.service.data.listaTanques.findIndex(function (x) { return x.item === _this.data.item; });
                    this.service.data.listaTanques[i] = this.data;
                }
                else {
                    this.service.data.listaTanques = [];
                    this.service.data.listaTanques.push(this.data);
                }
            }
            else {
                this.setSequencia();
                if (this.funcoesService.isUndefinedOrNull(this.service.data.listaTanques)) {
                    this.service.data.listaTanques = [];
                }
                this.service.data.listaTanques.push(this.data);
            }
            this.data = new _programacao_transferencia_propriedade_model__WEBPACK_IMPORTED_MODULE_7__["CliRaizenProgramacaoTransferenciaTanque"](this.service.data.cliRaizenProgramacaoTransferenciaId);
            this.dataResult.emit(this.service.data.listaTanques);
        }
        this.atualizaQuantid();
        this.back();
    };
    ProgramacaoTransferenciaPropriedadeTanqueComponent.prototype.setSequencia = function () {
        var s = this.service.data.listaTanques ? this.service.data.listaTanques.length : 0;
        this.data.item = s + 1;
    };
    ProgramacaoTransferenciaPropriedadeTanqueComponent.prototype.verificaTanque = function () {
        var _this = this;
        if (!this.service.data.listaTanques)
            return false;
        var test = this.service.data.listaTanques.filter(function (t) { return t.tanqueId === _this.data.tanqueId && t.item != _this.data.item && t.sitReg !== "E"; });
        if (test.length > 0) {
            this.messageService.warning("titles.cliRaizenProgramacaoTransferenciaItem", "messages.tanqueJaInformado");
            this.data.tanqueId = "";
            return true;
        }
        return false;
    };
    ProgramacaoTransferenciaPropriedadeTanqueComponent.prototype.trataDeposito = function (tanque) {
        return __awaiter(this, void 0, void 0, function () {
            var obj, dadosTanque;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        this.data.litrosComLib = 0;
                        obj = {
                            destinatarioIdCliente: this.service.data.destinatarioIdClienteOrigem,
                            destinatarioIdEmitente: 0,
                            materialId: this.service.data.materialId,
                            tanqueId: tanque,
                            loteId: "",
                            sitLote: "A",
                            modo: 8,
                            tipoSaldo: 8,
                            osgId: 0,
                            dataMovimento: this.service.data.dtPrograma,
                            filialId: this.loginService.getLogin().filialId,
                            localOperacaoId: 0,
                            colaboradorId: this.loginService.getLogin().colaboradorId,
                            tipoAgrupa: "D",
                            geraArquivo: "S",
                            planejTanque: false
                        };
                        return [4 /*yield*/, this.serviceTanque.getLoteDeposito(obj).toPromise()];
                    case 1:
                        dadosTanque = _a.sent();
                        if (!!dadosTanque) {
                            if (this.data.tanqueId !== "") {
                                this.data.litrosComLib = dadosTanque[0].litrosComLib;
                            }
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    ProgramacaoTransferenciaPropriedadeTanqueComponent.prototype.atualizaQuantid = function () {
        var self = this;
        self.service.data.quantidade = 0;
        if (!!self.service.data) {
            self.service.data.listaTanques.filter(function (e) { return e.sitReg != 'E'; }).forEach(function (tanque) {
                self.service.data.quantidade = self.service.data.quantidade + tanque.quantidade;
            });
        }
        return self.service.data.quantidade;
    };
    Object.defineProperty(ProgramacaoTransferenciaPropriedadeTanqueComponent.prototype, "saldoDepositoOptions", {
        get: function () {
            return {
                destinatarioIdCliente: this.service.data.destinatarioIdClienteOrigem,
                materialId: this.service.data.materialId,
                sitLote: 'A',
                modo: 8,
                tipoSaldo: 8,
                dataMovimento: this.service.data.dtPrograma,
                tipoAgrupa: 'D',
                geraArquivo: 'S'
            };
        },
        enumerable: true,
        configurable: true
    });
    ProgramacaoTransferenciaPropriedadeTanqueComponent.ctorParameters = function () { return [
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_3__["LoginService"] },
        { type: app_pages_cadastro_tanque_tanque_service__WEBPACK_IMPORTED_MODULE_2__["TanqueService"] },
        { type: _programacao_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_8__["ProgramacaoTransferenciaPropriedadeService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], ProgramacaoTransferenciaPropriedadeTanqueComponent.prototype, "disabled", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], ProgramacaoTransferenciaPropriedadeTanqueComponent.prototype, "dataResult", void 0);
    ProgramacaoTransferenciaPropriedadeTanqueComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-programacao-transferencia-propriedade-tanque",
            template: __importDefault(__webpack_require__(/*! raw-loader!./programacao-transferencia-propriedade-tanque.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-tanque/programacao-transferencia-propriedade-tanque.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_3__["LoginService"],
            app_pages_cadastro_tanque_tanque_service__WEBPACK_IMPORTED_MODULE_2__["TanqueService"],
            _programacao_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_8__["ProgramacaoTransferenciaPropriedadeService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"]])
    ], ProgramacaoTransferenciaPropriedadeTanqueComponent);
    return ProgramacaoTransferenciaPropriedadeTanqueComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-tipo-nota/programacao-transferencia-propriedade-tipo-nota.component.ts":
/*!*******************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-tipo-nota/programacao-transferencia-propriedade-tipo-nota.component.ts ***!
  \*******************************************************************************************************************************************************************************************************/
/*! exports provided: ProgramacaoTransferenciaPropriedadeTipoNotaComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgramacaoTransferenciaPropriedadeTipoNotaComponent", function() { return ProgramacaoTransferenciaPropriedadeTipoNotaComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm5/forms.js");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _programacao_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../programacao-transferencia-propriedade.service */ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade.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 ProgramacaoTransferenciaPropriedadeTipoNotaComponent = /** @class */ (function () {
    function ProgramacaoTransferenciaPropriedadeTipoNotaComponent(service, funcoes) {
        this.service = service;
        this.funcoes = funcoes;
        this.outTipoNota = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.touched = false;
        this.onChange = function (_) {
            /*Empty*/
        };
        this.onTouched = function () {
            /*Empty*/
        };
    }
    ProgramacaoTransferenciaPropriedadeTipoNotaComponent_1 = ProgramacaoTransferenciaPropriedadeTipoNotaComponent;
    Object.defineProperty(ProgramacaoTransferenciaPropriedadeTipoNotaComponent.prototype, "internalValue", {
        get: function () {
            return this._internalValue;
        },
        set: function (val) {
            if (val === undefined || val === null || val === "") {
                this._internalValue = "";
                this.onChange(undefined); // Value is rubbish, so don't send back to model propper
                return;
            }
            this._internalValue = val;
            this.onChange(this._internalValue); // Value is good!
        },
        enumerable: true,
        configurable: true
    });
    ProgramacaoTransferenciaPropriedadeTipoNotaComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.service.getCombo(this.sitReg, this.tipoMov, this.obrigaBSLZ).subscribe(function (data) {
            _this.dados = data;
            if (_this.funcoes.isNotUndefinedOrNull(_this.tipoMov)) {
                _this.dados = _this.dados.filter(function (d) { return d.tipoMov === _this.tipoMov; });
            }
        });
    };
    ProgramacaoTransferenciaPropriedadeTipoNotaComponent.prototype.selected = function (event) {
        if (this.funcoes.isNotUndefinedOrNull(event)) {
            var r = this.dados.findIndex(function (x) { return x.cliRaizenTipoNotaId === event; });
            this.outTipoNota.emit(this.dados[r]);
        }
    };
    //////////////////////////////////
    // ControlValueAccessor interface
    //////////////////////////////////
    ProgramacaoTransferenciaPropriedadeTipoNotaComponent.prototype.writeValue = function (value) {
        if (value === undefined || value === null) {
            this.internalValue = "";
            return;
        }
        this.internalValue = value;
    };
    ProgramacaoTransferenciaPropriedadeTipoNotaComponent.prototype.registerOnChange = function (fn) {
        this.onChange = fn;
    };
    ProgramacaoTransferenciaPropriedadeTipoNotaComponent.prototype.registerOnTouched = function (fn) {
        var self = this;
        this.onTouched = function (arg) {
            self.touched = true;
            fn(arg);
        };
    };
    ProgramacaoTransferenciaPropriedadeTipoNotaComponent.prototype.setDisabledState = function (isDisabled) {
    };
    ProgramacaoTransferenciaPropriedadeTipoNotaComponent.prototype.selecionou = function () {
    };
    var ProgramacaoTransferenciaPropriedadeTipoNotaComponent_1;
    ProgramacaoTransferenciaPropriedadeTipoNotaComponent.ctorParameters = function () { return [
        { type: _programacao_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_3__["ProgramacaoTransferenciaPropriedadeService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], ProgramacaoTransferenciaPropriedadeTipoNotaComponent.prototype, "name", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], ProgramacaoTransferenciaPropriedadeTipoNotaComponent.prototype, "required", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], ProgramacaoTransferenciaPropriedadeTipoNotaComponent.prototype, "disabled", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", String)
    ], ProgramacaoTransferenciaPropriedadeTipoNotaComponent.prototype, "sitReg", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", String)
    ], ProgramacaoTransferenciaPropriedadeTipoNotaComponent.prototype, "tipoMov", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", String)
    ], ProgramacaoTransferenciaPropriedadeTipoNotaComponent.prototype, "obrigaBSLZ", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], ProgramacaoTransferenciaPropriedadeTipoNotaComponent.prototype, "_internalValue", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], ProgramacaoTransferenciaPropriedadeTipoNotaComponent.prototype, "outTipoNota", void 0);
    ProgramacaoTransferenciaPropriedadeTipoNotaComponent = ProgramacaoTransferenciaPropriedadeTipoNotaComponent_1 = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-programacao-transferencia-propriedade-tipo-nota",
            template: __importDefault(__webpack_require__(/*! raw-loader!./programacao-transferencia-propriedade-tipo-nota.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-tipo-nota/programacao-transferencia-propriedade-tipo-nota.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            providers: [
                {
                    provide: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NG_VALUE_ACCESSOR"],
                    useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(function () { return ProgramacaoTransferenciaPropriedadeTipoNotaComponent_1; }),
                    multi: true
                }
            ]
        }),
        __metadata("design:paramtypes", [_programacao_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_3__["ProgramacaoTransferenciaPropriedadeService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"]])
    ], ProgramacaoTransferenciaPropriedadeTipoNotaComponent);
    return ProgramacaoTransferenciaPropriedadeTipoNotaComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade.constants.ts":
/*!*********************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade.constants.ts ***!
  \*********************************************************************************************************************************************/
/*! exports provided: ProgramacaoTransferenciaPropriedadeConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgramacaoTransferenciaPropriedadeConstants", function() { return ProgramacaoTransferenciaPropriedadeConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ProgramacaoTransferenciaPropriedadeConstants = /** @class */ (function () {
    function ProgramacaoTransferenciaPropriedadeConstants() {
        this.sisFormularioId = 140171;
        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: 7, acao: "labels.liberar" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.programacaoTransferenciaPropriedade";
        this.reportId = "RAI0001";
        this.reportTitulo = { "titulo": "Programação Transferência de Propriedade", "subTitulo": "" };
        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: 'Liberar', action: "liberar", icon: "icon-check", 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.configWeb = {
            coddestBSLZ: 0
        };
        this.listaParam = [
            { 'sistema': 'REL', 'parametros': ["CoddestBSLZ"] }
        ];
    }
    return ProgramacaoTransferenciaPropriedadeConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade.model.ts":
/*!*****************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade.model.ts ***!
  \*****************************************************************************************************************************************/
/*! exports provided: CliRaizenProgramacaoTransferencia, CliRaizenProgramacaoTransferenciaFiltroVo, CliRaizenProgramacaoTransferenciaDto, CliRaizenProgramacaoTransferenciaTanque, CliRaizenTipoNota */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

var CliRaizenProgramacaoTransferencia = /** @class */ (function (_super) {
    __extends(CliRaizenProgramacaoTransferencia, _super);
    function CliRaizenProgramacaoTransferencia() {
        var _this = _super.call(this) || this;
        _this.cliRaizenProgramacaoTransferenciaId = 0;
        _this.materialId = "";
        _this.material = undefined;
        _this.clienteOrigem = undefined;
        _this.clienteDestino = undefined;
        _this.lote = undefined;
        _this.listaTanques = [];
        _this.quantidade = 0;
        _this.unidadeId = "LT";
        _this.destinatarioIdClienteOrigem = 0;
        _this.codIntegracaoOri = "";
        _this.destinatarioIdClienteDestino = 0;
        _this.codIntegracaoDest = "";
        _this.loteIdDestino = "";
        _this.dtPrograma = new Date();
        _this.cliRaizenTipoNotaIdOrigem = "0";
        _this.cliRaizenTipoNotaIdDestino = "0";
        _this.tipoTransf = "";
        return _this;
    }
    return CliRaizenProgramacaoTransferencia;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var CliRaizenProgramacaoTransferenciaFiltroVo = /** @class */ (function () {
    function CliRaizenProgramacaoTransferenciaFiltroVo() {
        var currentDate = new Date();
        currentDate.setDate(-30);
        this.dataI = currentDate;
        var a = new Date();
        a.setDate(60);
        this.dataF = a;
        this.sitReg = "T";
    }
    return CliRaizenProgramacaoTransferenciaFiltroVo;
}());

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

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

var CliRaizenTipoNota = /** @class */ (function (_super) {
    __extends(CliRaizenTipoNota, _super);
    function CliRaizenTipoNota() {
        var _this = _super.call(this) || this;
        _this.cliRaizenTipoNotaId = "0";
        _this.tipoMov = "";
        _this.obrigaBSLZ = "S";
        _this.descricao = "";
        return _this;
    }
    return CliRaizenTipoNota;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));



/***/ }),

/***/ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade.module.ts":
/*!******************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade.module.ts ***!
  \******************************************************************************************************************************************/
/*! exports provided: ProgramacaoTransferenciaPropriedadeModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgramacaoTransferenciaPropriedadeModule", function() { return ProgramacaoTransferenciaPropriedadeModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _programacao_transferencia_propriedade_filter_programacao_transferencia_propriedade_filter_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./programacao-transferencia-propriedade-filter/programacao-transferencia-propriedade-filter.component */ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-filter/programacao-transferencia-propriedade-filter.component.ts");
/* harmony import */ var _programacao_transferencia_propriedade_form_programacao_transferencia_propriedade_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./programacao-transferencia-propriedade-form/programacao-transferencia-propriedade-form.component */ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-form/programacao-transferencia-propriedade-form.component.ts");
/* harmony import */ var _programacao_transferencia_propriedade_index_programacao_transferencia_propriedade_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./programacao-transferencia-propriedade-index/programacao-transferencia-propriedade-index.component */ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-index/programacao-transferencia-propriedade-index.component.ts");
/* harmony import */ var _programacao_transferencia_propriedade_tanque_programacao_transferencia_propriedade_tanque_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./programacao-transferencia-propriedade-tanque/programacao-transferencia-propriedade-tanque.component */ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-tanque/programacao-transferencia-propriedade-tanque.component.ts");
/* harmony import */ var _programacao_transferencia_propriedade_routing_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./programacao-transferencia-propriedade.routing.module */ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade.routing.module.ts");
/* harmony import */ var _programacao_transferencia_propriedade_tipo_nota_programacao_transferencia_propriedade_tipo_nota_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./programacao-transferencia-propriedade-tipo-nota/programacao-transferencia-propriedade-tipo-nota.component */ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-tipo-nota/programacao-transferencia-propriedade-tipo-nota.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 ProgramacaoTransferenciaPropriedadeModule = /** @class */ (function () {
    function ProgramacaoTransferenciaPropriedadeModule() {
    }
    ProgramacaoTransferenciaPropriedadeModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _programacao_transferencia_propriedade_routing_module__WEBPACK_IMPORTED_MODULE_6__["ProgramacaoTransferenciaPropriedadeRoutingModule"]],
            declarations: [
                _programacao_transferencia_propriedade_index_programacao_transferencia_propriedade_index_component__WEBPACK_IMPORTED_MODULE_4__["ProgramacaoTransferenciaPropriedadeIndexComponent"],
                _programacao_transferencia_propriedade_filter_programacao_transferencia_propriedade_filter_component__WEBPACK_IMPORTED_MODULE_2__["ProgramacaoTransferenciaPropriedadeFilterComponent"],
                _programacao_transferencia_propriedade_form_programacao_transferencia_propriedade_form_component__WEBPACK_IMPORTED_MODULE_3__["ProgramacaoTransferenciaPropriedadeFormComponent"],
                _programacao_transferencia_propriedade_tanque_programacao_transferencia_propriedade_tanque_component__WEBPACK_IMPORTED_MODULE_5__["ProgramacaoTransferenciaPropriedadeTanqueComponent"],
                _programacao_transferencia_propriedade_tipo_nota_programacao_transferencia_propriedade_tipo_nota_component__WEBPACK_IMPORTED_MODULE_7__["ProgramacaoTransferenciaPropriedadeTipoNotaComponent"]
            ]
        })
    ], ProgramacaoTransferenciaPropriedadeModule);
    return ProgramacaoTransferenciaPropriedadeModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade.routing.module.ts":
/*!**************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade.routing.module.ts ***!
  \**************************************************************************************************************************************************/
/*! exports provided: ProgramacaoTransferenciaPropriedadeRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgramacaoTransferenciaPropriedadeRoutingModule", function() { return ProgramacaoTransferenciaPropriedadeRoutingModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _programacao_transferencia_propriedade_form_programacao_transferencia_propriedade_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./programacao-transferencia-propriedade-form/programacao-transferencia-propriedade-form.component */ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-form/programacao-transferencia-propriedade-form.component.ts");
/* harmony import */ var _programacao_transferencia_propriedade_index_programacao_transferencia_propriedade_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./programacao-transferencia-propriedade-index/programacao-transferencia-propriedade-index.component */ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade-index/programacao-transferencia-propriedade-index.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var MRoutes = [
    {
        path: "",
        component: _programacao_transferencia_propriedade_index_programacao_transferencia_propriedade_index_component__WEBPACK_IMPORTED_MODULE_4__["ProgramacaoTransferenciaPropriedadeIndexComponent"],
        data: { breadcrumb: "programacaoTransferenciaPropriedade", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create",
        component: _programacao_transferencia_propriedade_form_programacao_transferencia_propriedade_form_component__WEBPACK_IMPORTED_MODULE_3__["ProgramacaoTransferenciaPropriedadeFormComponent"],
        data: {
            breadcrumb: "programacaoTransferenciaPropriedade",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: _programacao_transferencia_propriedade_form_programacao_transferencia_propriedade_form_component__WEBPACK_IMPORTED_MODULE_3__["ProgramacaoTransferenciaPropriedadeFormComponent"],
        data: {
            breadcrumb: "programacaoTransferenciaPropriedade",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _programacao_transferencia_propriedade_form_programacao_transferencia_propriedade_form_component__WEBPACK_IMPORTED_MODULE_3__["ProgramacaoTransferenciaPropriedadeFormComponent"],
        data: {
            breadcrumb: "programacaoTransferenciaPropriedade",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var ProgramacaoTransferenciaPropriedadeRoutingModule = /** @class */ (function () {
    function ProgramacaoTransferenciaPropriedadeRoutingModule() {
    }
    ProgramacaoTransferenciaPropriedadeRoutingModule = __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"]]
        })
    ], ProgramacaoTransferenciaPropriedadeRoutingModule);
    return ProgramacaoTransferenciaPropriedadeRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade.service.ts":
/*!*******************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade.service.ts ***!
  \*******************************************************************************************************************************************/
/*! exports provided: ProgramacaoTransferenciaPropriedadeService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgramacaoTransferenciaPropriedadeService", function() { return ProgramacaoTransferenciaPropriedadeService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/base/specifics.base.service */ "./src/app/shared/services/base/specifics.base.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _programacao_transferencia_propriedade_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./programacao-transferencia-propriedade.model */ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade.model.ts");
/* harmony import */ var _programacao_transferencia_propriedade_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./programacao-transferencia-propriedade.constants */ "./src/app/pages/especificos/raizen/cadastros/programacao-transferencia-propriedade/programacao-transferencia-propriedade.constants.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 ProgramacaoTransferenciaPropriedadeService = /** @class */ (function (_super) {
    __extends(ProgramacaoTransferenciaPropriedadeService, _super);
    function ProgramacaoTransferenciaPropriedadeService(http, message) {
        var _this = _super.call(this, http, "raizen/cliRaizenProgramacaoTransferencia") || this;
        _this.http = http;
        _this.message = message;
        _this.data = new _programacao_transferencia_propriedade_model__WEBPACK_IMPORTED_MODULE_7__["CliRaizenProgramacaoTransferencia"]();
        _this.filter = new _programacao_transferencia_propriedade_model__WEBPACK_IMPORTED_MODULE_7__["CliRaizenProgramacaoTransferenciaFiltroVo"]();
        _this.constantes = new _programacao_transferencia_propriedade_constants__WEBPACK_IMPORTED_MODULE_8__["ProgramacaoTransferenciaPropriedadeConstants"]();
        return _this;
    }
    ProgramacaoTransferenciaPropriedadeService.prototype.programacaoLiberada = function (sitReg, message) {
        var result = sitReg === "L";
        if (result)
            this.message.warning("titles.programacaoTransferenciaPropriedade", message);
        return result;
    };
    ProgramacaoTransferenciaPropriedadeService.prototype.getByFiltro = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/raizen/cliRaizenProgramacaoTransferencia/getByFiltro", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ProgramacaoTransferenciaPropriedadeService.prototype.podeAlterar = function (filter) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/raizen/cliRaizenProgramacaoTransferencia/podeAlterar", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ProgramacaoTransferenciaPropriedadeService.prototype.podeRemover = function (filter) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/raizen/cliRaizenProgramacaoTransferencia/podeRemover", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ProgramacaoTransferenciaPropriedadeService.prototype.getTanques = function () {
        var _this = this;
        if (!!(this.data.cliRaizenProgramacaoTransferenciaId)) {
            this.http
                .get(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/raizen/cliRaizenProgramacaoTransferencia/getTanques/" + this.data.cliRaizenProgramacaoTransferenciaId)
                .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError))
                .subscribe(function (resp) {
                _this.data.listaTanques = resp;
            });
        }
    };
    ProgramacaoTransferenciaPropriedadeService.prototype.gravarTanque = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/raizen/cliRaizenProgramacaoTransferencia/gravarTanque", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ProgramacaoTransferenciaPropriedadeService.prototype.liberarProgramacao = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/raizen/cliRaizenProgramacaoTransferencia/liberarProgramacao", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ProgramacaoTransferenciaPropriedadeService.prototype.getCombo = function (sitReg, tipoMov, obrigaBSLZ) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/raizen/cliRaizenProgramacaoTransferencia/getCombo/" + sitReg + "/" + tipoMov + "/" + obrigaBSLZ).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ProgramacaoTransferenciaPropriedadeService.prototype.getTipoNota = function (id) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/raizen/cliRaizenProgramacaoTransferencia/getTipoNota/" + id).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ProgramacaoTransferenciaPropriedadeService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] }
    ]; };
    ProgramacaoTransferenciaPropriedadeService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_4__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"]])
    ], ProgramacaoTransferenciaPropriedadeService);
    return ProgramacaoTransferenciaPropriedadeService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_5__["SpecificsBaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-raizen-cadastros-programacao-transferencia-propriedade-programacao-transferencia-propriedade-module.js.map