(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-vopak-smart-percentual-de-quebra-contrato-percentual-de-quebra-contrato-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato-filter/percentual-de-quebra-contrato-filter.component.html":
/*!************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato-filter/percentual-de-quebra-contrato-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=\"percentual-de-quebra-contrato-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-30\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.percentualDeQuebraContrato' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" tipoDestinatario=\"C\"\r\n                                    modalTitle=\"pesquisaDeCliente\" label=\"cliente\"\r\n                                    [(ngModel)]=\"service.filter.destinatarioIdCliente\" showInscricao=\"false\"\r\n                                    showCgcCpf=\"false\" [inSelected]=\"service.filter.cliente\"\r\n                                    (outSelected)=\"service.filter.cliente = $event\">\r\n                                </app-pesquisa-destinatario>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-material id=\"materialId\" name=\"materialId\" label=\"produto\"\r\n                                    modalTitle=\"pesquisaDeProduto\" [inSelected]=\"service.filter.material\"\r\n                                    (outSelected)=\"service.filter.material = $event\"\r\n                                    [(ngModel)]=\"service.filter.materialId\">\r\n                                </app-pesquisa-material>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'buttons.sair' | translate\r\n                        }}</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato-form/percentual-de-quebra-contrato-form.component.html":
/*!********************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato-form/percentual-de-quebra-contrato-form.component.html ***!
  \********************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaForm\" [formAction]=\"actionForm\"\n    [itemData]=\"data.destinatarioIdCliente\" [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <div class=\"section-comand-bar\">\n            <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 *ngIf=\"funcoesService.isCreate(actionForm)\" 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=\"destinatarioIdCliente\" name=\"destinatarioIdCliente\"\n                                    label=\"cliente\" modalTitle=\"pesquisaDeCliente\" required=\"true\"\n                                    [(ngModel)]=\"data.destinatarioIdCliente\" tipoDestinatario=\"C\" showCgcCpf=\"false\"\n                                    showInscricao=\"false\" [inSelected]=\"data.cliente\" (outModel)=\"trataCliente($event)\"\n                                    [disabled]=\"!funcoesService.isCreate(actionForm)\">\n                                </app-pesquisa-destinatario>\n                            </div>\n                        </div>\n                    </div>\n                    <div *ngIf=\"!funcoesService.isCreate(actionForm)\" class=\"row\" >\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <app-input-description [label]=\"'cliente'\" [valueID]=\"data?.destinatarioIdCliente\"\n                                [valueDescription]=\"data?.cliente?.fantasia\"></app-input-description>\n                        </div>\n                    </div>                    \n                    <div *ngIf=\"funcoesService.isCreate(actionForm)\" 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=\"produto\" name=\"produto\" [(ngModel)]=\"data.materialId\"\n                                    modalTitle=\"pesquisaDeProduto\" required=\"true\" [inSelected]=\"data.material\"\n                                    (outModel)=\"trataMaterial($event)\" label=\"produto\"\n                                    [disabled]=\"!funcoesService.isCreate(actionForm)\">\n                                </app-pesquisa-material>\n                            </div>\n                        </div>\n                    </div>\n                    <div *ngIf=\"!funcoesService.isCreate(actionForm)\" class=\"row\" >\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <app-input-description [label]=\"'produto'\" [valueID]=\"data?.materialId\"\n                                [valueDescription]=\"data?.material?.descrMater\"></app-input-description>\n                        </div>\n                    </div>\n                    <div class=\"row mt-2\">\n                        <div class=\"col-lg-2 col-sm-6 form-inline\">\n                            <label for=\"pTQuebra\">{{'labels.quebra' | translate}}</label>\n                            <div class=\"form-group form-group-sm form-inline\">\n                                <input id=\"pTQuebra\" name=\"qhebra\"\n                                    [(ngModel)]=\"data.ptQuebra\"\n                                    maxlength=\"5\"\n                                    currencyMask\n                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                    class=\"form-control form-control-sm input-inline-middle ml-2\"\n                                    type=\"text\" style=\"width:55px;\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                <label for=\"pTQuebra\" class=\"mb-0 ml-2\">\n                                    {{'labels.porcentagem' | translate}}\n                                </label>\n                            </div>\n                        </div>\n\n                        <div class=\"col-lg-4 col-md-6\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"flagAbsQuebra\" name=\"flagAbsQuebra\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                    [ngModel]=\"data.flagAbsQuebra === 'S'\"\n                                    (ngModelChange)=\"data.flagAbsQuebra=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\"\n                                    for=\"flagAbsQuebra\">{{'labels.flagAbsQuebra' |\n                                    translate}}</label>\n                            </div>\n                        </div>\n                    </div>\n                    \n                    <div class=\"row mt-4\">\n                        <div class=\"col-12\">\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                                <button class=\"btn btn-success\" (click)=\"saveAndCreate(f)\" type=\"button\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">{{ 'buttons.salvarNovo' | translate\n                                    }}</button>\n                            </div>\n                        </div>\n                    </div>\n                </form>\n            </div>\n        </div>\n    </div>\n</div>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato-index/percentual-de-quebra-contrato-index.component.html":
/*!**********************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato-index/percentual-de-quebra-contrato-index.component.html ***!
  \**********************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

/***/ }),

/***/ "./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato-filter/percentual-de-quebra-contrato-filter.component.ts":
/*!********************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato-filter/percentual-de-quebra-contrato-filter.component.ts ***!
  \********************************************************************************************************************************************************************/
/*! exports provided: PercentualDeQuebraContratoFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PercentualDeQuebraContratoFilterComponent", function() { return PercentualDeQuebraContratoFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _percentual_de_quebra_contrato_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../percentual-de-quebra-contrato.service */ "./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato.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 PercentualDeQuebraContratoFilterComponent = /** @class */ (function () {
    function PercentualDeQuebraContratoFilterComponent(service) {
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    PercentualDeQuebraContratoFilterComponent.prototype.ngOnInit = function () {
    };
    PercentualDeQuebraContratoFilterComponent.prototype.onSubmit = function (form) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.filtrar.emit(this.service.filter);
        jQuery("#percentual-de-quebra-contrato-filter-dialog").modal('hide');
    };
    PercentualDeQuebraContratoFilterComponent.ctorParameters = function () { return [
        { type: _percentual_de_quebra_contrato_service__WEBPACK_IMPORTED_MODULE_2__["PercentualDeQuebraContratoService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], PercentualDeQuebraContratoFilterComponent.prototype, "filtrar", void 0);
    PercentualDeQuebraContratoFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-percentual-de-quebra-contrato-filter',
            template: __importDefault(__webpack_require__(/*! raw-loader!./percentual-de-quebra-contrato-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato-filter/percentual-de-quebra-contrato-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_percentual_de_quebra_contrato_service__WEBPACK_IMPORTED_MODULE_2__["PercentualDeQuebraContratoService"]])
    ], PercentualDeQuebraContratoFilterComponent);
    return PercentualDeQuebraContratoFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato-form/percentual-de-quebra-contrato-form.component.ts":
/*!****************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato-form/percentual-de-quebra-contrato-form.component.ts ***!
  \****************************************************************************************************************************************************************/
/*! exports provided: PercentualDeQuebraContratoFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PercentualDeQuebraContratoFormComponent", function() { return PercentualDeQuebraContratoFormComponent; });
/* harmony import */ var app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/pages/cadastro/material/material.service */ "./src/app/pages/cadastro/material/material.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 app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var _percentual_de_quebra_contrato_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../percentual-de-quebra-contrato.model */ "./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato.model.ts");
/* harmony import */ var _percentual_de_quebra_contrato_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../percentual-de-quebra-contrato.constants */ "./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato.constants.ts");
/* harmony import */ var _percentual_de_quebra_contrato_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../percentual-de-quebra-contrato.service */ "./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato.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 PercentualDeQuebraContratoFormComponent = /** @class */ (function (_super) {
    __extends(PercentualDeQuebraContratoFormComponent, _super);
    function PercentualDeQuebraContratoFormComponent(router, messageService, activatedRoute, service, funcoesService, permissoesUtils, destinatarioService, materialService) {
        var _this = _super.call(this, new _percentual_de_quebra_contrato_constants__WEBPACK_IMPORTED_MODULE_11__["PercentualDeQuebraContratoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.destinatarioService = destinatarioService;
        _this.materialService = materialService;
        _this.data = new _percentual_de_quebra_contrato_model__WEBPACK_IMPORTED_MODULE_10__["PercentualDeQuebraContrato"]();
        _this.mensagens = [];
        _this.constantes = new _percentual_de_quebra_contrato_constants__WEBPACK_IMPORTED_MODULE_11__["PercentualDeQuebraContratoConstants"]();
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_8__["Mascaras"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.pageRoute = "/especificos/vopak/smart/percentualDeQuebraContrato";
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    PercentualDeQuebraContratoFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var destinatarioIdCliente = _this.activatedRoute.snapshot.paramMap.get("destinatarioIdCliente");
            var materialId = _this.activatedRoute.snapshot.paramMap.get("materialId");
            if (destinatarioIdCliente && materialId) {
                _this.service.getByDestinatarioIdClienteAndMaterialId(destinatarioIdCliente, materialId).subscribe(function (resp) {
                    if (resp) {
                        _this.data = resp;
                        if (_this.funcoesService.isPositive(_this.data.destinatarioIdCliente)) {
                            _this.destinatarioService.getById(_this.data.destinatarioIdCliente).subscribe(function (r) {
                                _this.data.cliente = r;
                            });
                        }
                        if (_this.funcoesService.isNotUndefinedOrNull(_this.data.materialId)) {
                            _this.materialService.getById(_this.data.materialId).subscribe(function (r) {
                                _this.data.material = r;
                            });
                        }
                    }
                    else {
                        _this.messageService.warning("titles.percentualDeQuebraContrato", "messages.nenhumRegistroEncontrado");
                        _this.back();
                    }
                });
            }
            else {
                _this.data = new _percentual_de_quebra_contrato_model__WEBPACK_IMPORTED_MODULE_10__["PercentualDeQuebraContrato"]();
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    PercentualDeQuebraContratoFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.data.logRotina = "Manut. Percentual Quebra";
        this.service
            .save(this.data, this.funcoesService.isEdit(this.actionForm))
            .subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result.validationResult);
            if (!result.validationResult.isValid) {
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.percentualDeQuebraContrato");
                if (create) {
                    _this.data = new _percentual_de_quebra_contrato_model__WEBPACK_IMPORTED_MODULE_10__["PercentualDeQuebraContrato"]();
                    _this.router.navigate(["" + _this.target + _this.pageRoute + "/create"]);
                }
                else {
                    _this.back();
                }
            }
        });
    };
    PercentualDeQuebraContratoFormComponent.prototype.edit = function () {
        if ((!!(this.data.destinatarioIdCliente) && !!(this.data.materialId))) {
            this.router.navigate(["" + this.target + this.pageRoute + "/edit/" + this.data.destinatarioIdCliente + "/" + this.data.materialId]);
        }
    };
    PercentualDeQuebraContratoFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    PercentualDeQuebraContratoFormComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate(["" + this.target + this.pageRoute]);
    };
    PercentualDeQuebraContratoFormComponent.prototype.trataCliente = function (destinatario) {
        this.data.cliente = destinatario;
    };
    PercentualDeQuebraContratoFormComponent.prototype.trataMaterial = function (material) {
        if (!material)
            return;
        this.data.material = material;
    };
    PercentualDeQuebraContratoFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"] },
        { type: _percentual_de_quebra_contrato_service__WEBPACK_IMPORTED_MODULE_12__["PercentualDeQuebraContratoService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_3__["PermissoesUtilsService"] },
        { type: app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_9__["DestinatarioService"] },
        { type: app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_0__["MaterialService"] }
    ]; };
    PercentualDeQuebraContratoFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-percentual-de-quebra-contrato-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./percentual-de-quebra-contrato-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato-form/percentual-de-quebra-contrato-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"],
            _percentual_de_quebra_contrato_service__WEBPACK_IMPORTED_MODULE_12__["PercentualDeQuebraContratoService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_3__["PermissoesUtilsService"],
            app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_9__["DestinatarioService"],
            app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_0__["MaterialService"]])
    ], PercentualDeQuebraContratoFormComponent);
    return PercentualDeQuebraContratoFormComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato-index/percentual-de-quebra-contrato-index.component.ts":
/*!******************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato-index/percentual-de-quebra-contrato-index.component.ts ***!
  \******************************************************************************************************************************************************************/
/*! exports provided: PercentualDeQuebraContratoIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PercentualDeQuebraContratoIndexComponent", function() { return PercentualDeQuebraContratoIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _percentual_de_quebra_contrato_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../percentual-de-quebra-contrato.constants */ "./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato.constants.ts");
/* harmony import */ var _percentual_de_quebra_contrato_model__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../percentual-de-quebra-contrato.model */ "./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato.model.ts");
/* harmony import */ var _percentual_de_quebra_contrato_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../percentual-de-quebra-contrato.service */ "./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato.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 PercentualDeQuebraContratoIndexComponent = /** @class */ (function (_super) {
    __extends(PercentualDeQuebraContratoIndexComponent, _super);
    function PercentualDeQuebraContratoIndexComponent(router, service, message, funcoes, loginService, permissoesUtils, datatablesService) {
        var _this = _super.call(this, new _percentual_de_quebra_contrato_constants__WEBPACK_IMPORTED_MODULE_11__["PercentualDeQuebraContratoConstants"](), funcoes) || this;
        _this.router = router;
        _this.service = service;
        _this.message = message;
        _this.funcoes = funcoes;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.datatablesService = datatablesService;
        _this.data = new _percentual_de_quebra_contrato_model__WEBPACK_IMPORTED_MODULE_12__["PercentualDeQuebraContrato"]();
        _this.constantes = new _percentual_de_quebra_contrato_constants__WEBPACK_IMPORTED_MODULE_11__["PercentualDeQuebraContratoConstants"]();
        _this.target = _this.funcoes.getTargetLocation();
        _this.pageRoute = "/especificos/vopak/smart/percentualDeQuebraContrato";
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    PercentualDeQuebraContratoIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!_this.loginService.isTokenExpired()) {
                if (_this.funcoes.abrirFiltro) {
                    _this.service.filter = new _percentual_de_quebra_contrato_model__WEBPACK_IMPORTED_MODULE_12__["PercentualDeQuebraContratoFilter"]();
                    _this.funcoes.openModal("percentual-de-quebra-contrato-filter-dialog");
                }
                else {
                    _this.refresh();
                }
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    PercentualDeQuebraContratoIndexComponent.prototype.filtrar = function () {
        jQuery("#percentual-de-quebra-contrato-filter-dialog").modal('show');
    };
    PercentualDeQuebraContratoIndexComponent.prototype.executaFiltro = function (event) {
        this.refresh();
    };
    PercentualDeQuebraContratoIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getDados(this.service.filter).subscribe(function (data) {
            var columns = [
                _this.datatablesService.getDataString("cliente", "cliente"),
                _this.datatablesService.getDataString("materialId", "material", "15%"),
                _this.datatablesService.getDataString("material", "produto"),
                _this.datatablesService.getDataDouble("ptQuebra", "ptQuebra", 2, false, "10%")
            ];
            _this.datatablesService.toDataTable({ tableId: 'dtPercentualDeQuebraContrato', columns: columns, data: data, columnOrder: 0, orientationOrder: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_5__["EOrientationOrder"].ASC }, function (aData) {
                _this.data = aData;
            });
        });
    };
    PercentualDeQuebraContratoIndexComponent.prototype.create = function () {
        this.router.navigate(["" + this.target + this.pageRoute + "/create"]);
    };
    PercentualDeQuebraContratoIndexComponent.prototype.edit = function () {
        if ((!!(this.data.destinatarioIdCliente) && !!(this.data.materialId))) {
            this.router.navigate(["" + this.target + this.pageRoute + "/edit/" + this.data.destinatarioIdCliente + "/" + this.data.materialId]);
        }
    };
    PercentualDeQuebraContratoIndexComponent.prototype.detail = function () {
        if ((!!(this.data.destinatarioIdCliente) && !!(this.data.materialId))) {
            this.router.navigate(["" + this.target + this.pageRoute + "/detail/" + this.data.destinatarioIdCliente + "/" + this.data.materialId]);
        }
    };
    PercentualDeQuebraContratoIndexComponent.prototype.remove = function () {
        var _this = this;
        if ((!!(this.data.destinatarioIdCliente) && !!(this.data.materialId))) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                _this.message.removeConfirm(function () {
                    _this.service.remove(_this.data).subscribe(function () {
                        _this.datatablesService.remove("dtPercentualDeQuebraContrato");
                    });
                });
            });
        }
    };
    PercentualDeQuebraContratoIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _this.constantes.paramRelatorio = {
                filialId: _this.loginService.getLogin().filialId,
                destinatarioIdCliente: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["NumberUtilsStaticService"].toNumber(_this.service.filter.destinatarioIdCliente),
                materialId: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].toString(_this.service.filter.materialId)
            };
            _super.prototype.print.call(_this, null, true);
        });
    };
    PercentualDeQuebraContratoIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    PercentualDeQuebraContratoIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    PercentualDeQuebraContratoIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _percentual_de_quebra_contrato_service__WEBPACK_IMPORTED_MODULE_13__["PercentualDeQuebraContratoService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_5__["DatatablesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_3__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_3__["TableComponent"])
    ], PercentualDeQuebraContratoIndexComponent.prototype, "table", void 0);
    PercentualDeQuebraContratoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-percentual-de-quebra-contrato-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./percentual-de-quebra-contrato-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato-index/percentual-de-quebra-contrato-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _percentual_de_quebra_contrato_service__WEBPACK_IMPORTED_MODULE_13__["PercentualDeQuebraContratoService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_5__["DatatablesService"]])
    ], PercentualDeQuebraContratoIndexComponent);
    return PercentualDeQuebraContratoIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato.constants.ts":
/*!************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato.constants.ts ***!
  \************************************************************************************************************************/
/*! exports provided: PercentualDeQuebraContratoConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PercentualDeQuebraContratoConstants", function() { return PercentualDeQuebraContratoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var PercentualDeQuebraContratoConstants = /** @class */ (function () {
    function PercentualDeQuebraContratoConstants() {
        this.sisFormularioId = 65531;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.inclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.exclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.propriedades" },
            { sisFormularioId: this.sisFormularioId, libRotina: 7, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.percentualDeQuebraContrato";
        this.reportId = "VOP0038";
        this.tabela = "CliVopPercentualQuebraContrato";
        this.reportTitulo = { "titulo": "Percentual de Quebra (Contrato)", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Novo', action: 'create', icon: "icon-plus", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Visualizar', action: 'detail', icon: "icon-eye", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Excluir', action: 'remove', icon: "icon-close", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Propriedade', action: 'properties', icon: "icon-menu", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
        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 PercentualDeQuebraContratoConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato.model.ts":
/*!********************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato.model.ts ***!
  \********************************************************************************************************************/
/*! exports provided: PercentualDeQuebraContrato, PercentualDeQuebraContratoFilter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

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

var PercentualDeQuebraContratoFilter = /** @class */ (function () {
    function PercentualDeQuebraContratoFilter() {
        this.destinatarioIdCliente = 0;
    }
    return PercentualDeQuebraContratoFilter;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato.module.ts":
/*!*********************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato.module.ts ***!
  \*********************************************************************************************************************/
/*! exports provided: PercentualDeQuebraContratoModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PercentualDeQuebraContratoModule", function() { return PercentualDeQuebraContratoModule; });
/* 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 _percentual_de_quebra_contrato_filter_percentual_de_quebra_contrato_filter_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./percentual-de-quebra-contrato-filter/percentual-de-quebra-contrato-filter.component */ "./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato-filter/percentual-de-quebra-contrato-filter.component.ts");
/* harmony import */ var _percentual_de_quebra_contrato_form_percentual_de_quebra_contrato_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./percentual-de-quebra-contrato-form/percentual-de-quebra-contrato-form.component */ "./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato-form/percentual-de-quebra-contrato-form.component.ts");
/* harmony import */ var _percentual_de_quebra_contrato_index_percentual_de_quebra_contrato_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./percentual-de-quebra-contrato-index/percentual-de-quebra-contrato-index.component */ "./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato-index/percentual-de-quebra-contrato-index.component.ts");
/* harmony import */ var _percentual_de_quebra_contrato_routing_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./percentual-de-quebra-contrato.routing.module */ "./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato.routing.module.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 PercentualDeQuebraContratoModule = /** @class */ (function () {
    function PercentualDeQuebraContratoModule() {
    }
    PercentualDeQuebraContratoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [
                app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"],
                _percentual_de_quebra_contrato_routing_module__WEBPACK_IMPORTED_MODULE_5__["PercentualDeQuebraContratoRoutingModule"]
            ],
            declarations: [
                _percentual_de_quebra_contrato_index_percentual_de_quebra_contrato_index_component__WEBPACK_IMPORTED_MODULE_4__["PercentualDeQuebraContratoIndexComponent"],
                _percentual_de_quebra_contrato_form_percentual_de_quebra_contrato_form_component__WEBPACK_IMPORTED_MODULE_3__["PercentualDeQuebraContratoFormComponent"],
                _percentual_de_quebra_contrato_filter_percentual_de_quebra_contrato_filter_component__WEBPACK_IMPORTED_MODULE_2__["PercentualDeQuebraContratoFilterComponent"]
            ]
        })
    ], PercentualDeQuebraContratoModule);
    return PercentualDeQuebraContratoModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato.routing.module.ts":
/*!*****************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato.routing.module.ts ***!
  \*****************************************************************************************************************************/
/*! exports provided: PercentualDeQuebraContratoRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PercentualDeQuebraContratoRoutingModule", function() { return PercentualDeQuebraContratoRoutingModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _percentual_de_quebra_contrato_form_percentual_de_quebra_contrato_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./percentual-de-quebra-contrato-form/percentual-de-quebra-contrato-form.component */ "./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato-form/percentual-de-quebra-contrato-form.component.ts");
/* harmony import */ var _percentual_de_quebra_contrato_index_percentual_de_quebra_contrato_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./percentual-de-quebra-contrato-index/percentual-de-quebra-contrato-index.component */ "./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato-index/percentual-de-quebra-contrato-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: _percentual_de_quebra_contrato_index_percentual_de_quebra_contrato_index_component__WEBPACK_IMPORTED_MODULE_4__["PercentualDeQuebraContratoIndexComponent"],
        data: { breadcrumb: "percentualDeQuebraContrato", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create",
        component: _percentual_de_quebra_contrato_form_percentual_de_quebra_contrato_form_component__WEBPACK_IMPORTED_MODULE_3__["PercentualDeQuebraContratoFormComponent"],
        data: {
            breadcrumb: "percentualDeQuebraContrato",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "edit/:destinatarioIdCliente/:materialId",
        component: _percentual_de_quebra_contrato_form_percentual_de_quebra_contrato_form_component__WEBPACK_IMPORTED_MODULE_3__["PercentualDeQuebraContratoFormComponent"],
        data: {
            breadcrumb: "percentualDeQuebraContrato",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:destinatarioIdCliente/:materialId",
        component: _percentual_de_quebra_contrato_form_percentual_de_quebra_contrato_form_component__WEBPACK_IMPORTED_MODULE_3__["PercentualDeQuebraContratoFormComponent"],
        data: {
            breadcrumb: "percentualDeQuebraContrato",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var PercentualDeQuebraContratoRoutingModule = /** @class */ (function () {
    function PercentualDeQuebraContratoRoutingModule() {
    }
    PercentualDeQuebraContratoRoutingModule = __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"]],
        })
    ], PercentualDeQuebraContratoRoutingModule);
    return PercentualDeQuebraContratoRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato.service.ts":
/*!**********************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato.service.ts ***!
  \**********************************************************************************************************************/
/*! exports provided: PercentualDeQuebraContratoService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PercentualDeQuebraContratoService", function() { return PercentualDeQuebraContratoService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/base/specifics.base.service */ "./src/app/shared/services/base/specifics.base.service.ts");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _percentual_de_quebra_contrato_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./percentual-de-quebra-contrato.model */ "./src/app/pages/especificos/vopak/smart/percentual-de-quebra-contrato/percentual-de-quebra-contrato.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 PercentualDeQuebraContratoService = /** @class */ (function (_super) {
    __extends(PercentualDeQuebraContratoService, _super);
    function PercentualDeQuebraContratoService(http) {
        var _this = _super.call(this, http, "vopak/cliVopPercentualQuebraContrato") || this;
        _this.filter = new _percentual_de_quebra_contrato_model__WEBPACK_IMPORTED_MODULE_6__["PercentualDeQuebraContratoFilter"]();
        return _this;
    }
    PercentualDeQuebraContratoService.prototype.getByDestinatarioIdClienteAndMaterialId = function (destinatarioIdCliente, materialId) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/cliVopPercentualQuebraContrato/" + destinatarioIdCliente + "/" + materialId)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    PercentualDeQuebraContratoService.prototype.getDados = function (data) {
        data.destinatarioIdCliente = !data.destinatarioIdCliente ? 0 : data.destinatarioIdCliente;
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/cliVopPercentualQuebraContrato/getByFiltro", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    PercentualDeQuebraContratoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    PercentualDeQuebraContratoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], PercentualDeQuebraContratoService);
    return PercentualDeQuebraContratoService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_4__["SpecificsBaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-vopak-smart-percentual-de-quebra-contrato-percentual-de-quebra-contrato-module.js.map