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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos-filter/outros-servicos-filter.component.html":
/*!***********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos-filter/outros-servicos-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=\"outros-servicos-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.outrosServicos' | 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\" class=\"required\">{{\"labels.dataDe\" | translate }}</label>\n                                        <app-data id=\"periodoDe\" name=\"periodoDe\"\n                                            [(ngModel)]=\"service.filtro.dataInicial\" autofocus 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\" class=\"required\">{{\"labels.ate\" | translate}}</label>\n                                        <app-data id=\"ate\" name=\"ate\" [(ngModel)]=\"service.filtro.dataFinal\"\n                                            class=\"dataHora\" [formatDateTime]=\"mascara.getFormatData\" required=\"true\">\n                                        </app-data>\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=\"codDest\"\n                                            name=\"codDest\" label=\"cliente\" modalTitle=\"pesquisaDeCliente\"\n                                            [(ngModel)]=\"service.filtro.codDest\" tipoDestinatario=\"C\"\n                                            showCgcCpf=\"false\" showInscricao=\"false\" (outModel)=\"trataDest($event)\">\n                                        </app-pesquisa-destinatario>\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-material id=\"material\" name=\"material\" label=\"produto\"\n                                            modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"service.filtro.material\">\n                                        </app-pesquisa-material>\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-material id=\"servico\" name=\"servico\" label=\"servico\"\n                                            modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"service.filtro.servico\">\n                                        </app-pesquisa-material>\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=\"navio\" name=\"navio\"\n                                            label=\"navio\" modalTitle=\"navio\"\n                                            [(ngModel)]=\"service.filtro.navio\" tipoDestinatario=\"N\"\n                                            showCgcCpf=\"false\" showInscricao=\"false\">\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/outros-servicos/outros-servicos-form/outros-servicos-form.component.html":
/*!*******************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos-form/outros-servicos-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 [sisFormularioId]=\"constantes.sisFormularioId\" [botoesComando]=\"constantes.listaForm\"\n    [itemData]=\"data.regOutrosServicos\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <div class=\"section-comand-bar\">\n            <div class=\"\">\n                <app-form-legenda></app-form-legenda>\n                <div class=\"card-body widget-body\">\n                    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\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                                    <app-pesquisa-destinatario id=\"destinatarioIdCliente\" name=\"destinatarioIdCliente\"\n                                        label=\"cliente\" modalTitle=\"pesquisaDeCliente\" [inSelected]=\"data.destCliente\"\n                                        [(ngModel)]=\"data.codDest\" tipoDestinatario=\"C\" showCgcCpf=\"false\"\n                                        showInscricao=\"false\" (outModel)=\"trataDest($event)\" required=\"true\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                    </app-pesquisa-destinatario>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <app-pesquisa-material id=\"material\" name=\"material\" label=\"produto\"\n                                        modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"data.material\" required=\"true\"\n                                        [inSelected]=\"data.produto\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                    </app-pesquisa-material>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <app-pesquisa-material id=\"servico\" name=\"servico\" label=\"servico\"\n                                        modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"data.servico\" required=\"true\"\n                                        [inSelected]=\"data.matServico\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                    </app-pesquisa-material>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <app-pesquisa-destinatario id=\"destinatarioIdNavio\" name=\"destinatarioIdNavio\"\n                                        label=\"navio\" modalTitle=\"navio\" [(ngModel)]=\"data.navio\"\n                                        tipoDestinatario=\"N\" showCgcCpf=\"false\" showInscricao=\"false\" required=\"true\"\n                                        [inSelected]=\"data.destNavio\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                    </app-pesquisa-destinatario>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <app-pesquisa-sto-contrato-item id=\"regContrato\" name=\"regContrato\"\n                                        required=\"false\" [(ngModel)]=\"data.regContrato\"\n                                        (outSelected)=\"trataContrato($event)\" [inpStoContrato]=\"data.stoContrato\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                    </app-pesquisa-sto-contrato-item>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-4 col-md-4\">\n                                <div class=\"custom-control custom-checkbox mt-2\">\n                                    <div class=\"form-group form-group-sx\">\n                                        <br />\n                                        <input id=\"geraFatura\" name=\"geraFatura\" [ngModel]=\"data.geraFatura === 'S'\"\n                                            (ngModelChange)=\"data.geraFatura = $event ? 'S' : 'N'\"\n                                            class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        <label class=\"custom-control-label\" for=\"geraFatura\">{{ 'labels.geraFatura' |\n                                            translate }}</label>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"dataHora\">{{ 'labels.dataHora' |\n                                        translate\n                                        }}</label>\n                                    <app-data id=\"dataHora\" name=\"dataHora\" [(ngModel)]=\"data.dataHora\"\n                                        [formatDateTime]=\"mascara.getFormatDataHorMin\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                    </app-data>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-3 col-md-3\">\n                                <div class=\"form-group \">\n                                    <label for=\"di\">{{'labels.outrosServicosDi' | translate}}</label>\n                                    <input type=\"text\" id=\"di\" name=\"di\" class=\"form-control form-control-sm\"\n                                        maxlength=\"70\" mask=\"00/0000000-0\" [(ngModel)]=\"data.numDi\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\" style=\"text-align: center;\">\n                            <div class=\"col-lg-6 col-md-6\">\n                                <hr style=\"border: 1px solid #d4d4d4; margin-top: 4%;\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"dataHora\">{{ 'labels.observacao' | translate }}</label>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-2 col-md-2\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"quantidade\">{{'labels.quantidade' | translate}}</label>\n                                    <input id=\"quantidade\" name=\"quantidade\" [(ngModel)]=\"data.quantid\" maxlength=\"9\"\n                                        class=\"form-control form-control-sm\" type=\"text\" currencyMask\n                                        [options]=\"funcoesService.optionCurrency(0)\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                </div>\n                            </div>\n                            <div class=\"col-lg-4 col-md-4\">\n                                <div class=\"form-group \">\n                                    <br>\n                                    <input type=\"text\" id=\"quantdObserv\" name=\"quantdObserv\"\n                                        class=\"form-control form-control-sm\" maxlength=\"70\"\n                                        [(ngModel)]=\"data.quantdObserv\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-2 col-md-2\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"kilos\">{{'labels.kilos' | translate}}</label>\n                                    <input id=\"kilos\" name=\"kilos\" [(ngModel)]=\"data.kilos\" maxlength=\"12\"\n                                        class=\"form-control form-control-sm\" type=\"text\" currencyMask\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                </div>\n                            </div>\n                            <div class=\"col-lg-4 col-md-4\">\n                                <div class=\"form-group \">\n                                    <br>\n                                    <input type=\"text\" id=\"kilosObserv\" name=\"kilosObserv\"\n                                        class=\"form-control form-control-sm\" maxlength=\"70\"\n                                        [(ngModel)]=\"data.kilosObserv\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-2 col-md-2\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"valor\">{{'labels.valor' | translate}}</label>\n                                    <input id=\"valor\" name=\"valor\" [(ngModel)]=\"data.valor\" maxlength=\"12\"\n                                        class=\"form-control form-control-sm\" type=\"text\" currencyMask\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                </div>\n                            </div>\n                            <div class=\"col-lg-4 col-md-4\">\n                                <div class=\"form-group \">\n                                    <br>\n                                    <label style=\"color: red;\" for=\"\">{{'labels.somenteParaServicosAvulsos' |\n                                        translate}}</label>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"clearfix\">&nbsp;</div>\n                        <div class=\"form-group\">\n                            <button class=\"btn btn-success mr-2\" type=\"submit\"\n                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                {{ 'buttons.salvar' | translate }}\n                            </button>\n                        </div>\n                    </form>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos-index/outros-servicos-index.component.html":
/*!*********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos-index/outros-servicos-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]=\"data.regOutrosServicos\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <div class=\"row mt-2\">\n        <div class=\"col-12\">\n            <table id=\"dtOutrosServicos\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n            </table>\n        </div>\n    </div>\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-outros-servicos-filter (filtrar)=\"refresh()\"></app-outros-servicos-filter>");

/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos-filter/outros-servicos-filter.component.ts":
/*!*******************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos-filter/outros-servicos-filter.component.ts ***!
  \*******************************************************************************************************************************/
/*! exports provided: OutrosServicosFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OutrosServicosFilterComponent", function() { return OutrosServicosFilterComponent; });
/* 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 _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 _config_enumerables__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../../../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _outros_servicos_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../outros-servicos.service */ "./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos.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 OutrosServicosFilterComponent = /** @class */ (function () {
    function OutrosServicosFilterComponent(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_5__["Mascaras"]();
    }
    OutrosServicosFilterComponent.prototype.ngOnInit = function () { };
    OutrosServicosFilterComponent.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("outros-servicos-dialog");
    };
    OutrosServicosFilterComponent.prototype.trataDest = function (destinatario) {
        this.service.filtro.destCliente = destinatario;
    };
    OutrosServicosFilterComponent.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.outrosServicos", "messages.ateMenorPeriodoDe");
            return false;
        }
        return true;
    };
    OutrosServicosFilterComponent.ctorParameters = function () { return [
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _outros_servicos_service__WEBPACK_IMPORTED_MODULE_6__["OutrosServicosService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OutrosServicosFilterComponent.prototype, "filtrar", void 0);
    OutrosServicosFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-outros-servicos-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./outros-servicos-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos-filter/outros-servicos-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _outros_servicos_service__WEBPACK_IMPORTED_MODULE_6__["OutrosServicosService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"]])
    ], OutrosServicosFilterComponent);
    return OutrosServicosFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos-form/outros-servicos-form.component.ts":
/*!***************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos-form/outros-servicos-form.component.ts ***!
  \***************************************************************************************************************************/
/*! exports provided: OutrosServicosFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OutrosServicosFormComponent", function() { return OutrosServicosFormComponent; });
/* 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 _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__ = __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_4__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _outros_servicos_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../outros-servicos.constants */ "./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos.constants.ts");
/* harmony import */ var _outros_servicos_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../outros-servicos.model */ "./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos.model.ts");
/* harmony import */ var _outros_servicos_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../outros-servicos.service */ "./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos.service.ts");
/* harmony import */ var _pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../../pages/cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var _pages_comercial_sto_contrato_sto_contrato_model__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../../../pages/comercial/sto-contrato/sto-contrato.model */ "./src/app/pages/comercial/sto-contrato/sto-contrato.model.ts");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
/* harmony import */ var _pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../../../../pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var _pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../../../../pages/cadastro/material/material.service */ "./src/app/pages/cadastro/material/material.service.ts");
/* harmony import */ var _pages_comercial_sto_contrato_sto_contrato_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../../../../../pages/comercial/sto-contrato/sto-contrato.service */ "./src/app/pages/comercial/sto-contrato/sto-contrato.service.ts");
/* harmony import */ var _pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../../../../../pages/cadastro/material/material.model */ "./src/app/pages/cadastro/material/material.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};


















var OutrosServicosFormComponent = /** @class */ (function (_super) {
    __extends(OutrosServicosFormComponent, _super);
    function OutrosServicosFormComponent(router, messageService, permissoesUtils, funcoesService, service, activatedRoute, destinatarioService, destinatarioNavioService, destinatarioServicoService, materialService, stoContratoService) {
        var _this = _super.call(this, new _outros_servicos_constants__WEBPACK_IMPORTED_MODULE_8__["OutrosServicosConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoesService = funcoesService;
        _this.service = service;
        _this.activatedRoute = activatedRoute;
        _this.destinatarioService = destinatarioService;
        _this.destinatarioNavioService = destinatarioNavioService;
        _this.destinatarioServicoService = destinatarioServicoService;
        _this.materialService = materialService;
        _this.stoContratoService = stoContratoService;
        _this.mensagens = [];
        _this.constantes = new _outros_servicos_constants__WEBPACK_IMPORTED_MODULE_8__["OutrosServicosConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.data = new _outros_servicos_model__WEBPACK_IMPORTED_MODULE_9__["OutrosServicos"]();
        _this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
        _this.visibleDate = true;
        _this.pageRoute = "/especificos/rocha/movimentos/outrosServicos";
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    OutrosServicosFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var regOutrosServicosId = _this.activatedRoute.snapshot.paramMap.get("id");
            if (regOutrosServicosId) {
                _this.service.getById(regOutrosServicosId).subscribe(function (resp) {
                    _this.data = resp;
                    _this.trataDados();
                });
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    OutrosServicosFormComponent.prototype.trataDados = function () {
        var _this = this;
        Object(rxjs__WEBPACK_IMPORTED_MODULE_13__["forkJoin"])([
            this.destinatarioService.getById(this.data.codDest),
            this.materialService.getById(this.data.material),
            this.destinatarioNavioService.getById(this.data.navio),
            this.destinatarioServicoService.getById(this.data.servico),
            this.stoContratoService.getById(this.data.regContrato)
        ]).subscribe(function (result) {
            _this.data.destCliente = !!result[0] ? result[0] : new _pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_11__["Destinatario"]();
            _this.data.produto = !!result[1] ? result[1] : new _pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_17__["Material"]();
            _this.data.destNavio = !!result[2] ? result[2] : new _pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_11__["Destinatario"]();
            _this.data.matServico = !!result[3] ? result[3] : new _pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_17__["Material"]();
            _this.data.stoContrato = !!result[4] ? result[4] : new _pages_comercial_sto_contrato_sto_contrato_model__WEBPACK_IMPORTED_MODULE_12__["StoContrato"]();
        });
    };
    OutrosServicosFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    OutrosServicosFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.data.logRotina = "Manut. outros serviços";
        this.service
            .save(this.data, this.funcoesService.isEdit(this.actionForm))
            .subscribe(function (resp) {
            _this.mensagens = _this.messageService.validationResult(resp.validationResult);
            if (!resp.validationResult.isValid) {
                _this.messageService.warning("titles.outrosServicos", _this.mensagens[0]);
            }
            else {
                _this.messageService.success("titles.outrosServicos", "messages.salvoComSucesso");
                if (create) {
                    _this.data = new _outros_servicos_model__WEBPACK_IMPORTED_MODULE_9__["OutrosServicos"]();
                    _this.router.navigate(["" + _this.target + _this.pageRoute + "/create"]);
                }
                else {
                    _this.back();
                }
            }
        });
    };
    OutrosServicosFormComponent.prototype.trataDest = function (destinatario) {
        this.data.destCliente = destinatario;
    };
    OutrosServicosFormComponent.prototype.trataContrato = function (contrato) {
        this.data.regContrato = contrato.stoContratoId;
    };
    OutrosServicosFormComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate(["" + this.target + this.pageRoute]);
    };
    OutrosServicosFormComponent.prototype.edit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _this.router.navigate([_this.target + "/especificos/rocha/movimentos/outrosServicos/edit/" + _this.data.regOutrosServicos]);
        });
    };
    OutrosServicosFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_4__["PermissoesUtilsService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: _outros_servicos_service__WEBPACK_IMPORTED_MODULE_10__["OutrosServicosService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_14__["DestinatarioService"] },
        { type: _pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_14__["DestinatarioService"] },
        { type: _pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_15__["MaterialService"] },
        { type: _pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_15__["MaterialService"] },
        { type: _pages_comercial_sto_contrato_sto_contrato_service__WEBPACK_IMPORTED_MODULE_16__["StoContratoService"] }
    ]; };
    OutrosServicosFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-outros-servicos-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./outros-servicos-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos-form/outros-servicos-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_4__["PermissoesUtilsService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            _outros_servicos_service__WEBPACK_IMPORTED_MODULE_10__["OutrosServicosService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_14__["DestinatarioService"],
            _pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_14__["DestinatarioService"],
            _pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_15__["MaterialService"],
            _pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_15__["MaterialService"],
            _pages_comercial_sto_contrato_sto_contrato_service__WEBPACK_IMPORTED_MODULE_16__["StoContratoService"]])
    ], OutrosServicosFormComponent);
    return OutrosServicosFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos-index/outros-servicos-index.component.ts":
/*!*****************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos-index/outros-servicos-index.component.ts ***!
  \*****************************************************************************************************************************/
/*! exports provided: OutrosServicosIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OutrosServicosIndexComponent", function() { return OutrosServicosIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__ = __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_5__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _outros_servicos_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../outros-servicos.constants */ "./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos.constants.ts");
/* harmony import */ var _outros_servicos_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../outros-servicos.service */ "./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos.service.ts");
/* harmony import */ var _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_11__ = __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 _outros_servicos_model__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../outros-servicos.model */ "./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos.model.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");
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 OutrosServicosIndexComponent = /** @class */ (function (_super) {
    __extends(OutrosServicosIndexComponent, _super);
    function OutrosServicosIndexComponent(router, service, datatablesService, funcoesService, messageService, permissoesUtils, loginService) {
        var _this = _super.call(this, new _outros_servicos_constants__WEBPACK_IMPORTED_MODULE_9__["OutrosServicosConstants"](), funcoesService) || this;
        _this.router = router;
        _this.service = service;
        _this.datatablesService = datatablesService;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.constantes = new _outros_servicos_constants__WEBPACK_IMPORTED_MODULE_9__["OutrosServicosConstants"]();
        _this.mensagens = [];
        _this.data = new _outros_servicos_model__WEBPACK_IMPORTED_MODULE_12__["OutrosServicos"];
        _this.target = _this.funcoesService.getTargetLocation();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    OutrosServicosIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!_this.loginService.isTokenExpired()) {
                if (_this.funcoesService.abrirFiltro) {
                    _this.filtrar();
                }
                _this.refresh();
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    OutrosServicosIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getIndex(this.service.filtro).subscribe(function (data) {
            var columns = [
                _this.datatablesService.getDataString("regOutrosServicos", "codigo", "10%"),
                _this.datatablesService.getDataString("descrCliente", "cliente"),
                _this.datatablesService.getDataString("descrMater", "material"),
                _this.datatablesService.getDataString("descrServico", "servico"),
                _this.datatablesService.getDataString("descrNavio", "navio"),
                _this.datatablesService.getDataString("numContrato", "contrato"),
                _this.datatablesService.getDataDateTime("dataHora", "data", "DD/MM/YYYY HH:mm", "10%"),
                _this.datatablesService.getDataDouble("quantid", "quantidade", 0, false, "10%"),
                _this.datatablesService.getDataDouble("kilos", "kilos", 0, false, "10%"),
                _this.datatablesService.getDataDouble("valor", "valor", 2, false, "10%")
            ];
            _this.datatablesService.toDataTable({ tableId: "dtOutrosServicos", columns: columns, data: data, columnOrder: 0, orientationOrder: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["EOrientationOrder"].ASC }, function (aData) {
                _this.data = aData;
            });
        });
    };
    OutrosServicosIndexComponent.prototype.filtrar = function () {
        _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["ModalUtilsStaticService"].openModal("outros-servicos-dialog");
    };
    OutrosServicosIndexComponent.prototype.validaUpdateremove = function () {
        if (this.data.geraFatura == "S" && (this.data.regFaturaKilos > 0 || this.data.regFaturaQuantid > 0)) {
            this.messageService.warning("titles.outrosServicos", "messages.faturamentoGeradoParaEsteServico");
            return false;
        }
        return true;
    };
    OutrosServicosIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    OutrosServicosIndexComponent.prototype.create = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _this.router.navigate([_this.target + "/especificos/rocha/movimentos/outrosServicos/create"]);
        });
    };
    OutrosServicosIndexComponent.prototype.detail = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _this.router.navigate([_this.target + "/especificos/rocha/movimentos/outrosServicos/detail/" + _this.data.regOutrosServicos]);
        });
    };
    OutrosServicosIndexComponent.prototype.edit = function () {
        var _this = this;
        if (!this.validaUpdateremove())
            return;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _this.router.navigate([_this.target + "/especificos/rocha/movimentos/outrosServicos/edit/" + _this.data.regOutrosServicos]);
        });
    };
    OutrosServicosIndexComponent.prototype.remove = function () {
        var _this = this;
        if (!this.validaUpdateremove())
            return;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _this.messageService.removeConfirm(function () {
                _this.service.remove(_this.data).subscribe(function (result) {
                    _this.mensagens = _this.messageService.validationResult(result.validationResult);
                    if (!result.validationResult.isValid) {
                        _this.messageService.warning("titles.outrosServicos", _this.mensagens[0]);
                    }
                    else {
                        _this.messageService.removeSuccess();
                        _this.refresh();
                    }
                });
            });
        });
    };
    OutrosServicosIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _this.constantes.paramRelatorio = {
                dataInicial: _this.service.filtro.dataInicial,
                dataFinal: _this.service.filtro.dataFinal,
                material: _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].toString(_this.service.filtro.material),
                destinatarioIdCliente: _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].toNumber(_this.service.filtro.codDest),
                destinatarioIdNavio: _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].toNumber(_this.service.filtro.navio),
                servico: _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].toString(_this.service.filtro.servico)
            };
            _super.prototype.print.call(_this, null, true);
        });
    };
    OutrosServicosIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _outros_servicos_service__WEBPACK_IMPORTED_MODULE_10__["OutrosServicosService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_2__["TableComponent"], { static: false }),
        __metadata("design:type", _shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_2__["TableComponent"])
    ], OutrosServicosIndexComponent.prototype, "table", void 0);
    OutrosServicosIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-outros-servicos-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./outros-servicos-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos-index/outros-servicos-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _outros_servicos_service__WEBPACK_IMPORTED_MODULE_10__["OutrosServicosService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"]])
    ], OutrosServicosIndexComponent);
    return OutrosServicosIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos.constants.ts":
/*!*************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos.constants.ts ***!
  \*************************************************************************************************/
/*! exports provided: OutrosServicosConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OutrosServicosConstants", function() { return OutrosServicosConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var OutrosServicosConstants = /** @class */ (function () {
    function OutrosServicosConstants() {
        this.sisFormularioId = 140067;
        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.permissoes" }
        ];
        this.nomeForm = "titles.outrosServicos";
        this.reportId = "ROC00025";
        this.configs = [];
        this.reportTitulo = { "titulo": "Outros Serviços", "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: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
        this.listaForm = [
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' }
        ];
    }
    return OutrosServicosConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos.model.ts":
/*!*********************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos.model.ts ***!
  \*********************************************************************************************/
/*! exports provided: OutrosServicosFiltro, OutrosServicos */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OutrosServicosFiltro", function() { return OutrosServicosFiltro; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OutrosServicos", function() { return OutrosServicos; });
/* harmony import */ var app_pages_comercial_sto_contrato_sto_contrato_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/pages/comercial/sto-contrato/sto-contrato.model */ "./src/app/pages/comercial/sto-contrato/sto-contrato.model.ts");
/* harmony import */ var _pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../../../../../pages/cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var _pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../../../../../pages/cadastro/material/material.model */ "./src/app/pages/cadastro/material/material.model.ts");
/* harmony import */ var _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../../../../../shared/services/base/base.model */ "./src/app/shared/services/base/base.model.ts");
/* harmony import */ var _shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_4__ = __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 __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var OutrosServicosFiltro = /** @class */ (function () {
    function OutrosServicosFiltro() {
        this.destCliente = new _pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_1__["Destinatario"]();
        this.produto = new _pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_2__["Material"]();
        this.dataInicial = _shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["DateTimeUtilsStaticService"].addDays(new Date(), -30);
        this.dataFinal = new Date();
        this.material = "";
        this.servico = "";
        this.codDest = 0;
        this.navio = 0;
    }
    return OutrosServicosFiltro;
}());

var OutrosServicos = /** @class */ (function (_super) {
    __extends(OutrosServicos, _super);
    function OutrosServicos() {
        var _this = _super.call(this) || this;
        _this.destCliente = new _pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_1__["Destinatario"]();
        _this.destNavio = new _pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_1__["Destinatario"]();
        _this.matServico = new _pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_2__["Material"]();
        _this.produto = new _pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_2__["Material"]();
        _this.stoContrato = new app_pages_comercial_sto_contrato_sto_contrato_model__WEBPACK_IMPORTED_MODULE_0__["StoContrato"]();
        _this.geraFatura = "S";
        return _this;
    }
    return OutrosServicos;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_3__["BaseModel"]));



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos.module.ts":
/*!**********************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos.module.ts ***!
  \**********************************************************************************************/
/*! exports provided: OutrosServicosModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OutrosServicosModule", function() { return OutrosServicosModule; });
/* 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 _outros_servicos_form_outros_servicos_form_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./outros-servicos-form/outros-servicos-form.component */ "./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos-form/outros-servicos-form.component.ts");
/* harmony import */ var _outros_servicos_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./outros-servicos.routing.module */ "./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos.routing.module.ts");
/* harmony import */ var _outros_servicos_filter_outros_servicos_filter_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./outros-servicos-filter/outros-servicos-filter.component */ "./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos-filter/outros-servicos-filter.component.ts");
/* harmony import */ var _outros_servicos_index_outros_servicos_index_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./outros-servicos-index/outros-servicos-index.component */ "./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos-index/outros-servicos-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 OutrosServicosModule = /** @class */ (function () {
    function OutrosServicosModule() {
    }
    OutrosServicosModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _outros_servicos_routing_module__WEBPACK_IMPORTED_MODULE_3__["OutrosServicosRoutingModule"]],
            declarations: [_outros_servicos_form_outros_servicos_form_component__WEBPACK_IMPORTED_MODULE_2__["OutrosServicosFormComponent"],
                _outros_servicos_filter_outros_servicos_filter_component__WEBPACK_IMPORTED_MODULE_4__["OutrosServicosFilterComponent"],
                _outros_servicos_index_outros_servicos_index_component__WEBPACK_IMPORTED_MODULE_5__["OutrosServicosIndexComponent"]],
            providers: []
        })
    ], OutrosServicosModule);
    return OutrosServicosModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos.routing.module.ts":
/*!******************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos.routing.module.ts ***!
  \******************************************************************************************************/
/*! exports provided: OutrosServicosRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OutrosServicosRoutingModule", function() { return OutrosServicosRoutingModule; });
/* 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 _outros_servicos_form_outros_servicos_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./outros-servicos-form/outros-servicos-form.component */ "./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos-form/outros-servicos-form.component.ts");
/* harmony import */ var _outros_servicos_index_outros_servicos_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./outros-servicos-index/outros-servicos-index.component */ "./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos-index/outros-servicos-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: _outros_servicos_index_outros_servicos_index_component__WEBPACK_IMPORTED_MODULE_4__["OutrosServicosIndexComponent"],
        data: { breadcrumb: "outrosServicos", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create",
        component: _outros_servicos_form_outros_servicos_form_component__WEBPACK_IMPORTED_MODULE_3__["OutrosServicosFormComponent"],
        data: {
            breadcrumb: "outrosServicos",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "detail/:id",
        component: _outros_servicos_form_outros_servicos_form_component__WEBPACK_IMPORTED_MODULE_3__["OutrosServicosFormComponent"],
        data: {
            breadcrumb: "outrosServicos",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    },
    {
        path: "edit/:id",
        component: _outros_servicos_form_outros_servicos_form_component__WEBPACK_IMPORTED_MODULE_3__["OutrosServicosFormComponent"],
        data: {
            breadcrumb: "outrosServicos",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    }
];
var OutrosServicosRoutingModule = /** @class */ (function () {
    function OutrosServicosRoutingModule() {
    }
    OutrosServicosRoutingModule = __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"]],
        })
    ], OutrosServicosRoutingModule);
    return OutrosServicosRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos.service.ts":
/*!***********************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/outros-servicos/outros-servicos.service.ts ***!
  \***********************************************************************************************/
/*! exports provided: OutrosServicosService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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







var OutrosServicosService = /** @class */ (function (_super) {
    __extends(OutrosServicosService, _super);
    function OutrosServicosService(http) {
        var _this = _super.call(this, http, "rocha/movimentos/comercial") || this;
        _this.http = http;
        _this.filtro = new _outros_servicos_model__WEBPACK_IMPORTED_MODULE_5__["OutrosServicosFiltro"]();
        return _this;
    }
    OutrosServicosService.prototype.getIndex = function (param) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/rocha/movimentos/comercial/getIndex", param)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    OutrosServicosService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"] }
    ]; };
    OutrosServicosService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"]])
    ], OutrosServicosService);
    return OutrosServicosService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_6__["SpecificsBaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-rocha-movimentos-outros-servicos-outros-servicos-module.js.map