(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-rocha-movimentos-liberacao-osg-faturamento-liberacao-osg-faturamento-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento-data/liberacao-osg-faturamento-data.component.html":
/*!*************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento-data/liberacao-osg-faturamento-data.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=\"liberacao-osg-faturamento-data-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"uni-modal-dialog-md-30\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.informarDataParaFaturamento' | translate }}</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n                <app-validacoes></app-validacoes>\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-data id=\"Data Faturamento\"\n                                          name=\"dataFaturamento\"\n                                          [(ngModel)]=\"service.filtro.dtFaturamento\"\n                                          autofocus\n                                          class=\"dataHora\"\n                                          required=\"true\">\n                                </app-data>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.ok' | translate }}</button>\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">cancelar</button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento-filter/liberacao-osg-faturamento-filter.component.html":
/*!*****************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento-filter/liberacao-osg-faturamento-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=\"liberacao-osg-faturamento-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"uni-modal-dialog-md-30\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.filtroDeLiberacao' | translate }}</h6>\n            </div>\n            <div class=\"modal-body\">\n                <div class=\"row\">\n                    <div class=\"col-lg-12\">\n                        <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n                            <app-validacoes></app-validacoes>\n                            <div class=\"row\">\n                                <div class=\"col-lg-6 col-md-6\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"periodoDe\"\n                                               class=\"required\">{{\"labels.liberadoDe\" | translate }}</label>\n                                        <app-data id=\"periodoDe\"\n                                                  name=\"periodoDe\"\n                                                  [(ngModel)]=\"service.filtro.dataInicial\"\n                                                  autofocus\n                                                  class=\"dataHora\"\n                                                  required=\"true\">\n                                        </app-data>\n                                    </div>\n                                </div>\n                                <div class=\"col-lg-6 col-md-6\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"ate\"\n                                               class=\"required\">{{\"labels.ate\" | translate}}</label>\n                                        <app-data id=\"ate\"\n                                                  name=\"ate\"\n                                                  [(ngModel)]=\"service.filtro.dataFinal\"\n                                                  class=\"dataHora\"\n                                                  [formatDateTime]=\"mascara.getFormatData\"\n                                                  required=\"true\">\n                                        </app-data>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-6 col-md-6\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"tipo\">{{'labels.situacao'|translate}}</label>\n                                        <select (change)=\"selecionarSituacao($event.target.value)\" class=\"form-control\" id=\"tipo\">\n                                            <option value=\"T\">Todos</option>\n                                            <option value=\"L\">Liberado</option>\n                                            <option value=\"N\">Não Liberado</option>\n                                            <option value=\"A\">Aguardando Data</option>\n                                        </select>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-12 col-sm-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <app-pesquisa-destinatario id=\"destinatarioIdCliente\"\n                                            name=\"destinatarioIdCliente\" label=\"cliente\"\n                                            modalTitle=\"pesquisaDeCliente\"\n                                            [(ngModel)]=\"service.filtro.destinatarioIdCliente\" tipoDestinatario=\"C\"\n                                            showCgcCpf=\"false\" showInscricao=\"false\" (outModel)=\"trataDest($event)\">\n                                        </app-pesquisa-destinatario>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"modal-footer\">\n                                <button class=\"btn btn-success\" type=\"submit\">{{ 'buttons.pesquisar' | translate\n                                    }}</button>\n                                <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\n                            </div>\n                        </form>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento-index/liberacao-osg-faturamento-index.component.html":
/*!***************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento-index/liberacao-osg-faturamento-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\" [formAction]=\"actionForm\"\n    [sisFormularioId]=\"constantes.sisFormularioId\" [itemData]=\"regOSG\">\n</app-menu-command-bar>\n<app-table>\n    <div class=\"table-responsive section-comand-bar\" style=\"overflow: auto;\">\n        <table id=\"dtClienteParaPortal\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n            <thead>\n                <tr>\n                    <th>{{ 'labels.osg' | translate }}</th>\n                    <th>{{ 'labels.emissao' | translate }}</th>\n                    <th>{{ 'labels.produto' | translate }}</th>\n                    <th>{{ 'labels.contrato' | translate }}</th>\n                    <th>{{ 'labels.cliente' | translate }}</th>\n                    <th>{{ 'labels.dataLiberacao' | translate }}</th>\n                    <th>{{ 'labels.operador' | translate }}</th>\n                    <th>{{ 'labels.situacao' | translate }}</th>\n                </tr>\n            </thead>\n            <tbody>\n                <tr *ngFor=\"let t of dadosResult; index as i\" (dblclick)=\"_dbClick(t, i)\" (click)=\"_click(t, i)\"\n                    [ngClass]=\"{ 'info' : t === dadosSelecionado }\">\n                    <td style=\"white-space: nowrap;\">{{ t.numeroOSG }}</td>\n                    <td style=\"white-space: nowrap;\">{{ t.dtEmissao | date: 'dd/MM/yyyy HH:mm' }}</td>\n                    <td style=\"white-space: nowrap;\">{{ t.produto }}</td>\n                    <td style=\"white-space: nowrap;\">{{ t.numContrato }}</td>\n                    <td style=\"white-space: nowrap;\">{{ t.cliente }}</td>\n                    <td style=\"white-space: nowrap;\">{{ t.dtOperLib | date: 'dd/MM/yyyy HH:mm' }}</td>\n                    <td style=\"white-space: nowrap;\">{{ t.operLib }}</td>\n                    <td style=\"white-space: nowrap;\">{{ t.descrSit }}</td>\n                </tr>\n                <tr *ngIf=\"!hasDados\">\n                    <th colspan=\"8\" style=\"text-align: center\">\n                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                    </th>\n                </tr>\n            </tbody>\n        </table>\n    </div>\n</app-table>\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-liberacao-osg-faturamento-filter (filtrar)=\"executaFiltro()\"></app-liberacao-osg-faturamento-filter>\n<app-liberacao-osg-faturamento-data (faturamento)=\"liberarOsg()\"></app-liberacao-osg-faturamento-data>");

/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento-data/liberacao-osg-faturamento-data.component.ts":
/*!*********************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento-data/liberacao-osg-faturamento-data.component.ts ***!
  \*********************************************************************************************************************************************************/
/*! exports provided: LiberacaoOsgFaturamentoDataComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LiberacaoOsgFaturamentoDataComponent", function() { return LiberacaoOsgFaturamentoDataComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../../../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _liberacao_osg_faturamento_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../liberacao-osg-faturamento.service */ "./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../../../../../config/enumerables */ "./src/app/config/enumerables.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 LiberacaoOsgFaturamentoDataComponent = /** @class */ (function () {
    function LiberacaoOsgFaturamentoDataComponent(funcoesService, service, messageService) {
        this.funcoesService = funcoesService;
        this.service = service;
        this.messageService = messageService;
        this.faturamento = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_6__["Mascaras"]();
    }
    LiberacaoOsgFaturamentoDataComponent.prototype.ngOnInit = function () {
    };
    LiberacaoOsgFaturamentoDataComponent.prototype.onSubmit = function (form) {
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.faturamento.emit();
        _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["ModalUtilsStaticService"].closeModal('liberacao-osg-faturamento-data-dialog');
    };
    LiberacaoOsgFaturamentoDataComponent.ctorParameters = function () { return [
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _liberacao_osg_faturamento_service__WEBPACK_IMPORTED_MODULE_4__["LiberacaoOsgFaturamentoService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], LiberacaoOsgFaturamentoDataComponent.prototype, "faturamento", void 0);
    LiberacaoOsgFaturamentoDataComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-liberacao-osg-faturamento-data",
            template: __importDefault(__webpack_require__(/*! raw-loader!./liberacao-osg-faturamento-data.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento-data/liberacao-osg-faturamento-data.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _liberacao_osg_faturamento_service__WEBPACK_IMPORTED_MODULE_4__["LiberacaoOsgFaturamentoService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"]])
    ], LiberacaoOsgFaturamentoDataComponent);
    return LiberacaoOsgFaturamentoDataComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento-filter/liberacao-osg-faturamento-filter.component.ts":
/*!*************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento-filter/liberacao-osg-faturamento-filter.component.ts ***!
  \*************************************************************************************************************************************************************/
/*! exports provided: LiberacaoOsgFaturamentoFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LiberacaoOsgFaturamentoFilterComponent", function() { return LiberacaoOsgFaturamentoFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../../../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _liberacao_osg_faturamento_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../liberacao-osg-faturamento.service */ "./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../../../../../config/enumerables */ "./src/app/config/enumerables.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 LiberacaoOsgFaturamentoFilterComponent = /** @class */ (function () {
    function LiberacaoOsgFaturamentoFilterComponent(funcoesService, service, messageService) {
        this.funcoesService = funcoesService;
        this.service = service;
        this.messageService = messageService;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_6__["Mascaras"]();
    }
    LiberacaoOsgFaturamentoFilterComponent.prototype.ngOnInit = function () {
    };
    LiberacaoOsgFaturamentoFilterComponent.prototype.onSubmit = function (form) {
        if (!this.validatePeriodoAte())
            return;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.filtrar.emit();
        _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["ModalUtilsStaticService"].closeModal('liberacao-osg-faturamento-dialog');
    };
    LiberacaoOsgFaturamentoFilterComponent.prototype.trataDest = function (destinatario) {
        this.service.filtro.cliente = destinatario;
    };
    LiberacaoOsgFaturamentoFilterComponent.prototype.selecionarSituacao = function (value) {
        this.service.filtro.situacao = value;
    };
    LiberacaoOsgFaturamentoFilterComponent.prototype.validatePeriodoAte = function () {
        if (!this.service.filtro.dataInicial)
            return;
        if (!this.service.filtro.dataFinal)
            return;
        if (this.funcoesService.dateTimeUtils.maiorA(this.service.filtro.dataInicial, this.service.filtro.dataFinal)) {
            this.messageService.warning("titles.liberacaoOsgFaturamento", "messages.ateMenorPeriodoDe");
            return false;
        }
        return true;
    };
    LiberacaoOsgFaturamentoFilterComponent.ctorParameters = function () { return [
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _liberacao_osg_faturamento_service__WEBPACK_IMPORTED_MODULE_4__["LiberacaoOsgFaturamentoService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], LiberacaoOsgFaturamentoFilterComponent.prototype, "filtrar", void 0);
    LiberacaoOsgFaturamentoFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-liberacao-osg-faturamento-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./liberacao-osg-faturamento-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento-filter/liberacao-osg-faturamento-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _liberacao_osg_faturamento_service__WEBPACK_IMPORTED_MODULE_4__["LiberacaoOsgFaturamentoService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"]])
    ], LiberacaoOsgFaturamentoFilterComponent);
    return LiberacaoOsgFaturamentoFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento-index/liberacao-osg-faturamento-index.component.ts":
/*!***********************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento-index/liberacao-osg-faturamento-index.component.ts ***!
  \***********************************************************************************************************************************************************/
/*! exports provided: LiberacaoOsgFaturamentoIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LiberacaoOsgFaturamentoIndexComponent", function() { return LiberacaoOsgFaturamentoIndexComponent; });
/* harmony import */ var _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../../pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var _liberacao_osg_faturamento_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../liberacao-osg-faturamento.constants */ "./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento.constants.ts");
/* harmony import */ var _liberacao_osg_faturamento_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../liberacao-osg-faturamento.model */ "./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento.model.ts");
/* harmony import */ var _liberacao_osg_faturamento_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../liberacao-osg-faturamento.service */ "./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento.service.ts");
/* harmony import */ var _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var _shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../../../../shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var _shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
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 LiberacaoOsgFaturamentoIndexComponent = /** @class */ (function (_super) {
    __extends(LiberacaoOsgFaturamentoIndexComponent, _super);
    function LiberacaoOsgFaturamentoIndexComponent(router, service, datatablesService, funcoesService, messageService, permissoesUtils, loginService, cliente) {
        var _this = _super.call(this, new _liberacao_osg_faturamento_constants__WEBPACK_IMPORTED_MODULE_10__["LiberacaoOsgFaturamentoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.service = service;
        _this.datatablesService = datatablesService;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.cliente = cliente;
        _this.constantes = new _liberacao_osg_faturamento_constants__WEBPACK_IMPORTED_MODULE_10__["LiberacaoOsgFaturamentoConstants"]();
        _this.hasDados = false;
        _this.dados = [];
        _this.mensagens = [];
        _this.dadosSelecionado = new _liberacao_osg_faturamento_model__WEBPACK_IMPORTED_MODULE_11__["LiberacaoOsgFaturamento"]();
        _this.regOSG = 0;
        _this.dadosMonitorIntegracao = [];
        _this.target = _this.funcoesService.getTargetLocation();
        _this.liberar = function () {
            if (_this.dadosSelecionado.situacao == "A") {
                _this.messageService.confirm("titles.mensagens", "messages.confirmaLiberacaoDaOSGparaFaturamento", null, function () {
                    _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["ModalUtilsStaticService"].openModal("liberacao-osg-faturamento-data-dialog");
                });
            }
            else {
                _this.liberarOsg();
            }
        };
        _this.cancelar = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 5, function () {
                if (!_this.validaRegOsg())
                    return;
                _this.messageService.confirm("titles.mensagens", "messages.confirmaCancelamentoDaLiberacaoParaFaturamento", null, function () {
                    _this.service.postCancelaLiberacao(_this.dadosSelecionado).subscribe(function (resp) {
                        if (!resp.isValid) {
                            _this.messageService.warning("titles.liberacaoOsgParaFaturamento", resp.erros[0].message);
                            return;
                        }
                        _this.refresh();
                    });
                });
            });
        };
        _this.service.filtro.filialId = loginService.getLogin().filialId;
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    LiberacaoOsgFaturamentoIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (!_this.loginService.isTokenExpired()) {
                if (_this.funcoesService.abrirFiltro) {
                    _this.filtrar();
                }
                else {
                    _this.refresh();
                }
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: 'liberar', func: function () { return _this.liberar; } },
            { action: 'cancelar', func: function () { return _this.cancelar; } }
        ]);
    };
    LiberacaoOsgFaturamentoIndexComponent.prototype._dbClick = function (obj) {
        this.dadosSelecionado = obj;
        if (obj.situacao == "L") {
            this.cancelar();
        }
        else if (obj.situacao == "A") {
            this.messageService.confirm("titles.mensagens", "messages.confirmaLiberacaoDaOSGparaFaturamento", null, function () {
                _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["ModalUtilsStaticService"].openModal("liberacao-osg-faturamento-data-dialog");
            });
        }
        else {
            this.liberarOsg();
        }
    };
    LiberacaoOsgFaturamentoIndexComponent.prototype._click = function (item, index) {
        this.currentIndex = index;
        this.dadosSelecionado = item;
        this.regOSG = item.regOSG;
    };
    LiberacaoOsgFaturamentoIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getByFiltro(this.service.filtro).subscribe(function (data) {
            _this.hasDados = data && data.length > 0;
            _this.dados = data;
            var item = _this.dados.find(function (x) { return x.regOSG === _this.regOSG; });
            if (item) {
                _this.dadosSelecionado.situacao = item.situacao;
            }
        });
    };
    Object.defineProperty(LiberacaoOsgFaturamentoIndexComponent.prototype, "hasDadosMonitorIntegracao", {
        get: function () {
            if (!this.dados)
                return false;
            return this.dados && this.dados.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(LiberacaoOsgFaturamentoIndexComponent.prototype, "dadosResult", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.dados || !this.table.filtro) {
                return this.table.getPage(this.dados);
            }
            var dados = this.dados.filter(function (v) {
                return _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].exist(v.numeroOSG, _this.table.filtro) ||
                    _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dtEmissao), _this.table.filtro) ||
                    _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(v.produto, _this.table.filtro) ||
                    _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(v.numContrato, _this.table.filtro) ||
                    _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(v.cliente, _this.table.filtro) ||
                    _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dtOperLib), _this.table.filtro) ||
                    _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(v.operLib, _this.table.filtro) ||
                    _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(v.descrSit, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    LiberacaoOsgFaturamentoIndexComponent.prototype.liberarOsg = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!_this.validaRegOsg())
                return;
            _this.dadosSelecionado.dtFaturamento = _this.service.filtro.dtFaturamento;
            if (_this.dadosSelecionado.situacao == "A") {
                _this.service.postLiberarOsg(_this.dadosSelecionado).subscribe(function (resp) {
                    if (!resp.isValid) {
                        _this.messageService.warning("titles.liberacaoOsgParaFaturamento", resp.erros[0].message);
                        return;
                    }
                    _this.refresh();
                });
            }
            else {
                _this.messageService.confirm("titles.mensagens", "messages.confirmaLiberacaoDaOSGparaFaturamento", null, function () {
                    _this.service.postLiberarOsg(_this.dadosSelecionado).subscribe(function (resp) {
                        if (!resp.isValid) {
                            _this.messageService.warning("titles.liberacaoOsgParaFaturamento", resp.erros[0].message);
                            return;
                        }
                        _this.refresh();
                    });
                });
            }
        });
    };
    LiberacaoOsgFaturamentoIndexComponent.prototype.validaRegOsg = function () {
        if (this.regOSG == 0) {
            this.messageService.warning("titles.liberacaoOsgParaFaturamento", "messages.selecioneUmRegistro");
            return false;
        }
        return true;
    };
    LiberacaoOsgFaturamentoIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _this.constantes.paramRelatorio = {
                filialId: _this.loginService.getLogin().filialId,
                destinatarioIdCliente: _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].toNumber(_this.service.filtro.destinatarioIdCliente),
                dataInicial: _this.service.filtro.dataInicial,
                dataFinal: _this.service.filtro.dataFinal,
                situacao: _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].toString(_this.service.filtro.situacao)
            };
            _super.prototype.print.call(_this, null, true);
        });
    };
    LiberacaoOsgFaturamentoIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    LiberacaoOsgFaturamentoIndexComponent.prototype.executaFiltro = function () {
        this.refresh();
    };
    LiberacaoOsgFaturamentoIndexComponent.prototype.filtrar = function () {
        _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["ModalUtilsStaticService"].openModal("liberacao-osg-faturamento-dialog");
    };
    LiberacaoOsgFaturamentoIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] },
        { type: _liberacao_osg_faturamento_service__WEBPACK_IMPORTED_MODULE_12__["LiberacaoOsgFaturamentoService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"] },
        { type: _pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_9__["DestinatarioService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])(_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_15__["TableComponent"], { static: false }),
        __metadata("design:type", _shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_15__["TableComponent"])
    ], LiberacaoOsgFaturamentoIndexComponent.prototype, "table", void 0);
    LiberacaoOsgFaturamentoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-liberacao-osg-faturamento-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./liberacao-osg-faturamento-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento-index/liberacao-osg-faturamento-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"],
            _liberacao_osg_faturamento_service__WEBPACK_IMPORTED_MODULE_12__["LiberacaoOsgFaturamentoService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"],
            _pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_9__["DestinatarioService"]])
    ], LiberacaoOsgFaturamentoIndexComponent);
    return LiberacaoOsgFaturamentoIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento.constants.ts":
/*!*********************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento.constants.ts ***!
  \*********************************************************************************************************************/
/*! exports provided: LiberacaoOsgFaturamentoConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LiberacaoOsgFaturamentoConstants", function() { return LiberacaoOsgFaturamentoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var LiberacaoOsgFaturamentoConstants = /** @class */ (function () {
    function LiberacaoOsgFaturamentoConstants() {
        this.sisFormularioId = 65293;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.liberacao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.cancelar" }
        ];
        this.nomeForm = "titles.liberacaoOsgFaturamento";
        this.reportId = "ROC00023";
        this.reportTitulo = { "titulo": "Liberação Osg Faturamento", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { 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: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'LiberarOSG', action: 'liberar', icon: "fa fa-check", exibeButton: true, eximeMenu: true, menuName: 'Arquivo', depitem: false },
            { title: 'CancelarOsg', action: 'cancelar', icon: "fa fa-ban", exibeButton: true, eximeMenu: true, menuName: 'Arquivo', depitem: false }
        ];
    }
    return LiberacaoOsgFaturamentoConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento.model.ts":
/*!*****************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento.model.ts ***!
  \*****************************************************************************************************************/
/*! exports provided: LiberacaoOsgFaturamento, LiberacaoOsgFaturamentoDto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LiberacaoOsgFaturamento", function() { return LiberacaoOsgFaturamento; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LiberacaoOsgFaturamentoDto", function() { return LiberacaoOsgFaturamentoDto; });
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

var LiberacaoOsgFaturamento = /** @class */ (function () {
    function LiberacaoOsgFaturamento() {
        this.dataInicial = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].addDays(new Date(), -30);
        this.dataFinal = new Date();
        this.situacao = "T";
        this.destinatarioIdCliente = 0;
        this.dtFaturamento = new Date();
    }
    return LiberacaoOsgFaturamento;
}());

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



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento.module.ts":
/*!******************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento.module.ts ***!
  \******************************************************************************************************************/
/*! exports provided: LiberacaoOsgFaturamentoModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LiberacaoOsgFaturamentoModule", function() { return LiberacaoOsgFaturamentoModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _liberacao_osg_faturamento_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./liberacao-osg-faturamento.routing.module */ "./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento.routing.module.ts");
/* harmony import */ var _liberacao_osg_faturamento_filter_liberacao_osg_faturamento_filter_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./liberacao-osg-faturamento-filter/liberacao-osg-faturamento-filter.component */ "./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento-filter/liberacao-osg-faturamento-filter.component.ts");
/* harmony import */ var _liberacao_osg_faturamento_index_liberacao_osg_faturamento_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./liberacao-osg-faturamento-index/liberacao-osg-faturamento-index.component */ "./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento-index/liberacao-osg-faturamento-index.component.ts");
/* harmony import */ var _liberacao_osg_faturamento_data_liberacao_osg_faturamento_data_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./liberacao-osg-faturamento-data/liberacao-osg-faturamento-data.component */ "./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento-data/liberacao-osg-faturamento-data.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 LiberacaoOsgFaturamentoModule = /** @class */ (function () {
    function LiberacaoOsgFaturamentoModule() {
    }
    LiberacaoOsgFaturamentoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [
                _liberacao_osg_faturamento_index_liberacao_osg_faturamento_index_component__WEBPACK_IMPORTED_MODULE_4__["LiberacaoOsgFaturamentoIndexComponent"],
                _liberacao_osg_faturamento_filter_liberacao_osg_faturamento_filter_component__WEBPACK_IMPORTED_MODULE_3__["LiberacaoOsgFaturamentoFilterComponent"],
                _liberacao_osg_faturamento_data_liberacao_osg_faturamento_data_component__WEBPACK_IMPORTED_MODULE_5__["LiberacaoOsgFaturamentoDataComponent"]
            ],
            imports: [
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"],
                _liberacao_osg_faturamento_routing_module__WEBPACK_IMPORTED_MODULE_2__["LiberacaoOsgFaturamentoRoutingModule"]
            ]
        })
    ], LiberacaoOsgFaturamentoModule);
    return LiberacaoOsgFaturamentoModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento.routing.module.ts":
/*!**************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento.routing.module.ts ***!
  \**************************************************************************************************************************/
/*! exports provided: LiberacaoOsgFaturamentoRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LiberacaoOsgFaturamentoRoutingModule", function() { return LiberacaoOsgFaturamentoRoutingModule; });
/* 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 _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _liberacao_osg_faturamento_index_liberacao_osg_faturamento_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./liberacao-osg-faturamento-index/liberacao-osg-faturamento-index.component */ "./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento-index/liberacao-osg-faturamento-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 LiberacaoOsgFaturamentoRoutes = [
    {
        path: "",
        component: _liberacao_osg_faturamento_index_liberacao_osg_faturamento_index_component__WEBPACK_IMPORTED_MODULE_3__["LiberacaoOsgFaturamentoIndexComponent"],
        data: {
            breadcrumb: "liberacaoOsgParaFaturamento",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    }
];
var LiberacaoOsgFaturamentoRoutingModule = /** @class */ (function () {
    function LiberacaoOsgFaturamentoRoutingModule() {
    }
    LiberacaoOsgFaturamentoRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(LiberacaoOsgFaturamentoRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
        })
    ], LiberacaoOsgFaturamentoRoutingModule);
    return LiberacaoOsgFaturamentoRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento.service.ts":
/*!*******************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento.service.ts ***!
  \*******************************************************************************************************************/
/*! exports provided: LiberacaoOsgFaturamentoService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LiberacaoOsgFaturamentoService", function() { return LiberacaoOsgFaturamentoService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/internal/operators/catchError */ "./node_modules/rxjs/internal/operators/catchError.js");
/* harmony import */ var rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var _liberacao_osg_faturamento_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./liberacao-osg-faturamento.model */ "./src/app/pages/especificos/rocha/movimentos/liberacao-osg-faturamento/liberacao-osg-faturamento.model.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};






var LiberacaoOsgFaturamentoService = /** @class */ (function () {
    function LiberacaoOsgFaturamentoService(http) {
        this.http = http;
        this.filtro = new _liberacao_osg_faturamento_model__WEBPACK_IMPORTED_MODULE_5__["LiberacaoOsgFaturamento"]();
        this.titles = "titles.liberacaoOsgFaturamento";
    }
    LiberacaoOsgFaturamentoService.prototype.getByFiltro = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/rocha/movimentos/comercial/liberacaoOsg/getByFiltro", data)
            .pipe(Object(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    LiberacaoOsgFaturamentoService.prototype.postLiberarOsg = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/rocha/movimentos/comercial/liberacaoOsg/liberarOsg", data)
            .pipe(Object(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    LiberacaoOsgFaturamentoService.prototype.postCancelaLiberacao = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/rocha/movimentos/comercial/liberacaoOsg/cancelaLiberacao", data)
            .pipe(Object(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    LiberacaoOsgFaturamentoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    LiberacaoOsgFaturamentoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], LiberacaoOsgFaturamentoService);
    return LiberacaoOsgFaturamentoService;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-rocha-movimentos-liberacao-osg-faturamento-liberacao-osg-faturamento-module.js.map