(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-vopak-smart-configuracoes-cliente-produto-configuracoes-cliente-produto-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto-filter/configuracoes-cliente-produto-filter.component.html":
/*!************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto-filter/configuracoes-cliente-produto-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=\"configuracoes-cliente-produto-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.configuracoesClienteProduto' | 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                                    [inSelected]=\"service.filter.material\" modalTitle=\"pesquisaDeProduto\"\r\n                                    [(ngModel)]=\"service.filter.materialId\"\r\n                                    (outSelected)=\"service.filter.material = $event\">\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/configuracoes-cliente-produto/configuracoes-cliente-produto-form/configuracoes-cliente-produto-form.component.html":
/*!********************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto-form/configuracoes-cliente-produto-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 cont-ckeck\">\n                        <div class=\"col-lg-6 col-md-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"flagObrDocCarga\" name=\"flagObrDocCarga\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                    [ngModel]=\"data.flagObrDocCarga === 'S'\"\n                                    (ngModelChange)=\"data.flagObrDocCarga=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"flagObrDocCarga\">{{'labels.flagObrDocCarga' |\n                                    translate}}</label>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row cont-ckeck\">\n                        <div class=\"col-lg-6 col-md-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"flagLacreDescarga\" name=\"flagLacreDescarga\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                    [ngModel]=\"data.flagLacreDescarga === 'S'\"\n                                    (ngModelChange)=\"data.flagLacreDescarga=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"flagLacreDescarga\">{{'labels.flagLacreDescarga'\n                                    |\n                                    translate}}</label>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row cont-ckeck\">\n                        <div class=\"col-lg-6 col-md-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"flagObrValDanfe\" name=\"flagObrValDanfe\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                    [ngModel]=\"data.flagObrValDanfe === 'S'\"\n                                    (ngModelChange)=\"data.flagObrValDanfe=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"flagObrValDanfe\">{{'labels.flagObrValDanfe' |\n                                    translate}}</label>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row cont-ckeck\">\n                        <div class=\"col-lg-6 col-md-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"flagRedIsotanque\" name=\"flagRedIsotanque\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                    [ngModel]=\"data.flagRedIsotanque === 'S'\" (ngModelChange)=\"onFlagChange($event)\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"flagRedIsotanque\">{{'labels.flagRedIsotanque' |\n                                    translate}}</label>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-2\">\n                            <div class=\"form-group form-group-sm\">\n                                <input id=\"percRedIsotanque\" name=\"percRedIsotanque\" [(ngModel)]=\"data.percRedIsotanque\"\n                                    class=\"form-control form-control-sm\" type=\"text\" maxlength=\"5\" currencyMask\n                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm) || data.flagRedIsotanque !== 'S'\" />\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row cont-ckeck\">\n                        <div class=\"col-lg-6 col-md-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"ocultarDepositoPortal\" name=\"ocultarDepositoPortal\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                    [ngModel]=\"data.ocultarDepositoPortal === 'S'\"\n                                    (ngModelChange)=\"data.ocultarDepositoPortal=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\"\n                                    for=\"ocultarDepositoPortal\">{{'labels.apresCampoDepBranco' | translate}}</label>\n                            </div>\n                        </div>\n                    </div>\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/configuracoes-cliente-produto/configuracoes-cliente-produto-index/configuracoes-cliente-produto-index.component.html":
/*!**********************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto-index/configuracoes-cliente-produto-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.cliVopObrigaDocAgendamentoId\"\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <app-table>\n        <table id=\"maintable\" class=\"table table-striped table-bordered table-hover nowrap table-sm table-responsive\">\n            <thead>\n                <tr>\n                    <th style=\"width: 40%; white-space: nowrap;\">{{ 'labels.cliente' | translate}}</th>\n                    <th style=\"width: 15%; white-space: nowrap;\">{{ 'labels.material' | translate}}</th>\n                    <th style=\"width: 40%; white-space: nowrap;\">{{ 'labels.produto' | translate}}</th>                    \n                    <th style=\"white-space: nowrap;\">{{ 'labels.flagObrDocCarga' | translate}}</th>\n                    <th style=\"white-space: nowrap;\">{{ 'labels.flagLacreDescarga' | translate}}</th>\n                    <th style=\"white-space: nowrap;\">{{ 'labels.flagObrValDanfe' | translate}}</th>\n                </tr>\n            </thead>\n            <tbody>\n                <tr *ngFor=\"let t of dados; index as i\" (click)=\"selected(t, i)\"\n                    [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\">\n                    <td style=\"white-space: nowrap;\">{{ t.cliente}}</td>\n                    <td style=\"white-space: nowrap;\">{{ t.materialId }}</td>\n                    <td style=\"white-space: nowrap;\">{{ t.material }}</td>\n                    <td style=\"text-align: center;\">\n                        <input id=\"obrigaDocAgendamentoCarga\" name=\"obrigaDocAgendamentoCarga\"\n                        [ngModel]=\"t.flagObrDocCarga === 'S'\" onclick=\"return false\"\n                        (ngModelChange)=\"t.flagObrDocCarga=$event?'S':'N'\"\n                        type=\"checkbox\">\n                    </td>\n                    <td style=\"text-align: center;\">\n                        <input id=\"obrigaLacreCheckinAgendamentoDescarga\" name=\"obrigaLacreCheckinAgendamentoDescarga\"\n                        [ngModel]=\"t.flagLacreDescarga === 'S'\" onclick=\"return false\"\n                        (ngModelChange)=\"t.flagLacreDescarga=$event?'S':'N'\"\n                        type=\"checkbox\">\n                    </td>\n                    <td style=\"text-align: center;\">\n                        <input id=\"obrigaValidacaoDanfe\" name=\"obrigaValidacaoDanfe\"\n                        [ngModel]=\"t.flagObrValDanfe === 'S'\" onclick=\"return false\"\n                        (ngModelChange)=\"t.flagObrValDanfe=$event?'S':'N'\"\n                        type=\"checkbox\">\n                    </td>\n                </tr>\n                <tr *ngIf=\"!hasDados\">\n                    <th colspan=\"6\" style=\"text-align: center\">\n                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                    </th>\n                </tr>\n            </tbody>\n        </table>\n    </app-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-configuracoes-cliente-produto-filter (filtrar)=\"executaFiltro($event)\"></app-configuracoes-cliente-produto-filter>");

/***/ }),

/***/ "./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto-filter/configuracoes-cliente-produto-filter.component.ts":
/*!********************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto-filter/configuracoes-cliente-produto-filter.component.ts ***!
  \********************************************************************************************************************************************************************/
/*! exports provided: ConfiguracoesClienteProdutoFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfiguracoesClienteProdutoFilterComponent", function() { return ConfiguracoesClienteProdutoFilterComponent; });
/* 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 _configuracoes_cliente_produto_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../configuracoes-cliente-produto.service */ "./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto.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 ConfiguracoesClienteProdutoFilterComponent = /** @class */ (function () {
    function ConfiguracoesClienteProdutoFilterComponent(service) {
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    ConfiguracoesClienteProdutoFilterComponent.prototype.ngOnInit = function () {
    };
    ConfiguracoesClienteProdutoFilterComponent.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("#configuracoes-cliente-produto-filter-dialog").modal('hide');
    };
    ConfiguracoesClienteProdutoFilterComponent.ctorParameters = function () { return [
        { type: _configuracoes_cliente_produto_service__WEBPACK_IMPORTED_MODULE_2__["ConfiguracoesClienteProdutoService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], ConfiguracoesClienteProdutoFilterComponent.prototype, "filtrar", void 0);
    ConfiguracoesClienteProdutoFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-configuracoes-cliente-produto-filter',
            template: __importDefault(__webpack_require__(/*! raw-loader!./configuracoes-cliente-produto-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto-filter/configuracoes-cliente-produto-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_configuracoes_cliente_produto_service__WEBPACK_IMPORTED_MODULE_2__["ConfiguracoesClienteProdutoService"]])
    ], ConfiguracoesClienteProdutoFilterComponent);
    return ConfiguracoesClienteProdutoFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto-form/configuracoes-cliente-produto-form.component.ts":
/*!****************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto-form/configuracoes-cliente-produto-form.component.ts ***!
  \****************************************************************************************************************************************************************/
/*! exports provided: ConfiguracoesClienteProdutoFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfiguracoesClienteProdutoFormComponent", function() { return ConfiguracoesClienteProdutoFormComponent; });
/* 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 _configuracoes_cliente_produto_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../configuracoes-cliente-produto.model */ "./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto.model.ts");
/* harmony import */ var _configuracoes_cliente_produto_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../configuracoes-cliente-produto.constants */ "./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto.constants.ts");
/* harmony import */ var _configuracoes_cliente_produto_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../configuracoes-cliente-produto.service */ "./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/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 ConfiguracoesClienteProdutoFormComponent = /** @class */ (function (_super) {
    __extends(ConfiguracoesClienteProdutoFormComponent, _super);
    function ConfiguracoesClienteProdutoFormComponent(router, messageService, activatedRoute, service, funcoesService, permissoesUtils, destinatarioService, materialService) {
        var _this = _super.call(this, new _configuracoes_cliente_produto_constants__WEBPACK_IMPORTED_MODULE_11__["ConfiguracoesClienteProdutoConstants"](), 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 _configuracoes_cliente_produto_model__WEBPACK_IMPORTED_MODULE_10__["ConfiguracoesClienteProduto"]();
        _this.mensagens = [];
        _this.constantes = new _configuracoes_cliente_produto_constants__WEBPACK_IMPORTED_MODULE_11__["ConfiguracoesClienteProdutoConstants"]();
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_8__["Mascaras"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.pageRoute = "/especificos/vopak/smart/configuracoesClienteProduto";
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    ConfiguracoesClienteProdutoFormComponent.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.configuracoesClienteProduto", "messages.nenhumRegistroEncontrado");
                        _this.back();
                    }
                });
            }
            else {
                _this.data = new _configuracoes_cliente_produto_model__WEBPACK_IMPORTED_MODULE_10__["ConfiguracoesClienteProduto"]();
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    ConfiguracoesClienteProdutoFormComponent.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;
        }
        if (!this.validarRegraReducaoIsotanque()) {
            return;
        }
        this.data.logRotina = "Manut. Config. Cli/Prod";
        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.configuracoesClienteProduto");
                if (create) {
                    _this.data = new _configuracoes_cliente_produto_model__WEBPACK_IMPORTED_MODULE_10__["ConfiguracoesClienteProduto"]();
                    _this.router.navigate(["" + _this.target + _this.pageRoute + "/create"]);
                }
                else {
                    _this.back();
                }
            }
        });
    };
    ConfiguracoesClienteProdutoFormComponent.prototype.edit = function () {
        if ((!!(this.data.destinatarioIdCliente) && !!(this.data.materialId))) {
            this.router.navigate(["" + this.target + this.pageRoute + "/edit/" + this.data.destinatarioIdCliente + "/" + this.data.materialId]);
        }
    };
    ConfiguracoesClienteProdutoFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    ConfiguracoesClienteProdutoFormComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate(["" + this.target + this.pageRoute]);
    };
    ConfiguracoesClienteProdutoFormComponent.prototype.trataCliente = function (destinatario) {
        this.data.cliente = destinatario;
    };
    ConfiguracoesClienteProdutoFormComponent.prototype.trataMaterial = function (material) {
        if (!material)
            return;
        this.data.material = material;
    };
    ConfiguracoesClienteProdutoFormComponent.prototype.validarRegraReducaoIsotanque = function () {
        var flagIsotanqueMarcada = this.data.flagRedIsotanque === 'S';
        var percentualVazio = !this.data.percRedIsotanque || app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].toString(this.data.percRedIsotanque) === '';
        if (flagIsotanqueMarcada && percentualVazio) {
            this.messageService.warning("titles.configuracoesClienteProduto", "messages.informePorcentualReducaoIsoTanque");
            return false;
        }
        return true;
    };
    ConfiguracoesClienteProdutoFormComponent.prototype.onFlagChange = function (event) {
        this.data.flagRedIsotanque = event ? 'S' : 'N';
        if (!event) {
            this.data.percRedIsotanque = null;
        }
    };
    ConfiguracoesClienteProdutoFormComponent.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: _configuracoes_cliente_produto_service__WEBPACK_IMPORTED_MODULE_12__["ConfiguracoesClienteProdutoService"] },
        { 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"] }
    ]; };
    ConfiguracoesClienteProdutoFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-configuracoes-cliente-produto-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./configuracoes-cliente-produto-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto-form/configuracoes-cliente-produto-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"],
            _configuracoes_cliente_produto_service__WEBPACK_IMPORTED_MODULE_12__["ConfiguracoesClienteProdutoService"],
            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"]])
    ], ConfiguracoesClienteProdutoFormComponent);
    return ConfiguracoesClienteProdutoFormComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto-index/configuracoes-cliente-produto-index.component.ts":
/*!******************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto-index/configuracoes-cliente-produto-index.component.ts ***!
  \******************************************************************************************************************************************************************/
/*! exports provided: ConfiguracoesClienteProdutoIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfiguracoesClienteProdutoIndexComponent", function() { return ConfiguracoesClienteProdutoIndexComponent; });
/* 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_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_6__ = __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_7__ = __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_8__ = __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_9__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _configuracoes_cliente_produto_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../configuracoes-cliente-produto.constants */ "./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto.constants.ts");
/* harmony import */ var _configuracoes_cliente_produto_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../configuracoes-cliente-produto.model */ "./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto.model.ts");
/* harmony import */ var _configuracoes_cliente_produto_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../configuracoes-cliente-produto.service */ "./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};













var ConfiguracoesClienteProdutoIndexComponent = /** @class */ (function (_super) {
    __extends(ConfiguracoesClienteProdutoIndexComponent, _super);
    function ConfiguracoesClienteProdutoIndexComponent(router, service, message, funcoes, loginService, permissoesUtils, cd) {
        var _this = _super.call(this, new _configuracoes_cliente_produto_constants__WEBPACK_IMPORTED_MODULE_10__["ConfiguracoesClienteProdutoConstants"](), funcoes) || this;
        _this.router = router;
        _this.service = service;
        _this.message = message;
        _this.funcoes = funcoes;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.cd = cd;
        _this.data = new _configuracoes_cliente_produto_model__WEBPACK_IMPORTED_MODULE_11__["ConfiguracoesClienteProduto"]();
        _this.constantes = new _configuracoes_cliente_produto_constants__WEBPACK_IMPORTED_MODULE_10__["ConfiguracoesClienteProdutoConstants"]();
        _this.target = _this.funcoes.getTargetLocation();
        _this.pageRoute = "/especificos/vopak/smart/configuracoesClienteProduto";
        _this.refresh = function () { return __awaiter(_this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        _a = this.service;
                        return [4 /*yield*/, this.service.getDados(this.service.filter).toPromise()];
                    case 1:
                        _a.dados = _b.sent();
                        return [2 /*return*/];
                }
            });
        }); };
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    ConfiguracoesClienteProdutoIndexComponent.prototype.ngAfterViewInit = function () {
        this.cd.detectChanges();
    };
    ConfiguracoesClienteProdutoIndexComponent.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 _configuracoes_cliente_produto_model__WEBPACK_IMPORTED_MODULE_11__["ConfiguracoesClienteProdutoFilter"]();
                    _this.funcoes.openModal("configuracoes-cliente-produto-filter-dialog");
                }
                else {
                    _this.refresh();
                }
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    ConfiguracoesClienteProdutoIndexComponent.prototype.filtrar = function () {
        jQuery("#configuracoes-cliente-produto-filter-dialog").modal('show');
    };
    ConfiguracoesClienteProdutoIndexComponent.prototype.executaFiltro = function (event) {
        this.refresh();
    };
    Object.defineProperty(ConfiguracoesClienteProdutoIndexComponent.prototype, "dados", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.hasDados || !this.table.filtro) {
                return this.table.getPage(this.service.dados);
            }
            var dados = this.service.dados.filter(function (v) {
                return app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].exist(v.materialId, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].exist(v.cliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].exist(v.material, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(ConfiguracoesClienteProdutoIndexComponent.prototype, "hasDados", {
        get: function () {
            if (!this.service.dados)
                return false;
            return this.service.dados && this.service.dados.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    ConfiguracoesClienteProdutoIndexComponent.prototype.selected = function (item, index) {
        this.currentIndex = index;
        this._index = index;
        this.data = item;
    };
    ConfiguracoesClienteProdutoIndexComponent.prototype.create = function () {
        this.router.navigate(["" + this.target + this.pageRoute + "/create"]);
    };
    ConfiguracoesClienteProdutoIndexComponent.prototype.edit = function () {
        if ((!!(this.data.destinatarioIdCliente) && !!(this.data.materialId))) {
            this.router.navigate(["" + this.target + this.pageRoute + "/edit/" + this.data.destinatarioIdCliente + "/" + this.data.materialId]);
        }
    };
    ConfiguracoesClienteProdutoIndexComponent.prototype.detail = function () {
        if ((!!(this.data.destinatarioIdCliente) && !!(this.data.materialId))) {
            this.router.navigate(["" + this.target + this.pageRoute + "/detail/" + this.data.destinatarioIdCliente + "/" + this.data.materialId]);
        }
    };
    ConfiguracoesClienteProdutoIndexComponent.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.message.success("titles.laudoVeiculo", "messages.registroExcluido");
                        _this.refresh();
                    });
                });
            });
        }
    };
    ConfiguracoesClienteProdutoIndexComponent.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_6__["NumberUtilsStaticService"].toNumber(_this.service.filter.destinatarioIdCliente),
                materialId: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].toString(_this.service.filter.materialId)
            };
            _super.prototype.print.call(_this, null, true);
        });
    };
    ConfiguracoesClienteProdutoIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    ConfiguracoesClienteProdutoIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    ConfiguracoesClienteProdutoIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _configuracoes_cliente_produto_service__WEBPACK_IMPORTED_MODULE_12__["ConfiguracoesClienteProdutoService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["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_7__["PermissoesUtilsService"] },
        { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }
    ]; };
    __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"])
    ], ConfiguracoesClienteProdutoIndexComponent.prototype, "table", void 0);
    ConfiguracoesClienteProdutoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-configuracoes-cliente-produto-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./configuracoes-cliente-produto-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto-index/configuracoes-cliente-produto-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _configuracoes_cliente_produto_service__WEBPACK_IMPORTED_MODULE_12__["ConfiguracoesClienteProdutoService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"],
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]])
    ], ConfiguracoesClienteProdutoIndexComponent);
    return ConfiguracoesClienteProdutoIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto.constants.ts":
/*!************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto.constants.ts ***!
  \************************************************************************************************************************/
/*! exports provided: ConfiguracoesClienteProdutoConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfiguracoesClienteProdutoConstants", function() { return ConfiguracoesClienteProdutoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ConfiguracoesClienteProdutoConstants = /** @class */ (function () {
    function ConfiguracoesClienteProdutoConstants() {
        this.sisFormularioId = 140203;
        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.configuracoesClienteProduto";
        this.reportId = "VOP0036";
        this.tabela = "CliVopObrigaDocAgendamento";
        this.reportTitulo = { "titulo": "Configurações por Cliente/Produto", "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 ConfiguracoesClienteProdutoConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto.model.ts":
/*!********************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto.model.ts ***!
  \********************************************************************************************************************/
/*! exports provided: ConfiguracoesClienteProduto, ConfiguracoesClienteProdutoFilter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfiguracoesClienteProduto", function() { return ConfiguracoesClienteProduto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfiguracoesClienteProdutoFilter", function() { return ConfiguracoesClienteProdutoFilter; });
/* 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 ConfiguracoesClienteProduto = /** @class */ (function (_super) {
    __extends(ConfiguracoesClienteProduto, _super);
    function ConfiguracoesClienteProduto() {
        var _this = _super.call(this) || this;
        _this.flagObrDocCarga = "N";
        _this.flagLacreDescarga = "N";
        _this.flagObrValDanfe = "N";
        _this.flagRedIsotanque = "N";
        _this.ocultarDepositoPortal = "N";
        return _this;
    }
    return ConfiguracoesClienteProduto;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

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



/***/ }),

/***/ "./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto.module.ts":
/*!*********************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto.module.ts ***!
  \*********************************************************************************************************************/
/*! exports provided: ConfiguracoesClienteProdutoModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfiguracoesClienteProdutoModule", function() { return ConfiguracoesClienteProdutoModule; });
/* 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 _configuracoes_cliente_produto_filter_configuracoes_cliente_produto_filter_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./configuracoes-cliente-produto-filter/configuracoes-cliente-produto-filter.component */ "./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto-filter/configuracoes-cliente-produto-filter.component.ts");
/* harmony import */ var _configuracoes_cliente_produto_form_configuracoes_cliente_produto_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./configuracoes-cliente-produto-form/configuracoes-cliente-produto-form.component */ "./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto-form/configuracoes-cliente-produto-form.component.ts");
/* harmony import */ var _configuracoes_cliente_produto_index_configuracoes_cliente_produto_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./configuracoes-cliente-produto-index/configuracoes-cliente-produto-index.component */ "./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto-index/configuracoes-cliente-produto-index.component.ts");
/* harmony import */ var _configuracoes_cliente_produto_routing_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./configuracoes-cliente-produto.routing.module */ "./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto.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 ConfiguracoesClienteProdutoModule = /** @class */ (function () {
    function ConfiguracoesClienteProdutoModule() {
    }
    ConfiguracoesClienteProdutoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [
                app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"],
                _configuracoes_cliente_produto_routing_module__WEBPACK_IMPORTED_MODULE_5__["ConfiguracoesClienteProdutoRoutingModule"]
            ],
            declarations: [
                _configuracoes_cliente_produto_index_configuracoes_cliente_produto_index_component__WEBPACK_IMPORTED_MODULE_4__["ConfiguracoesClienteProdutoIndexComponent"],
                _configuracoes_cliente_produto_form_configuracoes_cliente_produto_form_component__WEBPACK_IMPORTED_MODULE_3__["ConfiguracoesClienteProdutoFormComponent"],
                _configuracoes_cliente_produto_filter_configuracoes_cliente_produto_filter_component__WEBPACK_IMPORTED_MODULE_2__["ConfiguracoesClienteProdutoFilterComponent"]
            ]
        })
    ], ConfiguracoesClienteProdutoModule);
    return ConfiguracoesClienteProdutoModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto.routing.module.ts":
/*!*****************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto.routing.module.ts ***!
  \*****************************************************************************************************************************/
/*! exports provided: ConfiguracoesClienteProdutoRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfiguracoesClienteProdutoRoutingModule", function() { return ConfiguracoesClienteProdutoRoutingModule; });
/* 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 _configuracoes_cliente_produto_form_configuracoes_cliente_produto_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./configuracoes-cliente-produto-form/configuracoes-cliente-produto-form.component */ "./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto-form/configuracoes-cliente-produto-form.component.ts");
/* harmony import */ var _configuracoes_cliente_produto_index_configuracoes_cliente_produto_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./configuracoes-cliente-produto-index/configuracoes-cliente-produto-index.component */ "./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto-index/configuracoes-cliente-produto-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: _configuracoes_cliente_produto_index_configuracoes_cliente_produto_index_component__WEBPACK_IMPORTED_MODULE_4__["ConfiguracoesClienteProdutoIndexComponent"],
        data: { breadcrumb: "configuracoesClienteProduto", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create",
        component: _configuracoes_cliente_produto_form_configuracoes_cliente_produto_form_component__WEBPACK_IMPORTED_MODULE_3__["ConfiguracoesClienteProdutoFormComponent"],
        data: {
            breadcrumb: "configuracoesClienteProduto",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "edit/:destinatarioIdCliente/:materialId",
        component: _configuracoes_cliente_produto_form_configuracoes_cliente_produto_form_component__WEBPACK_IMPORTED_MODULE_3__["ConfiguracoesClienteProdutoFormComponent"],
        data: {
            breadcrumb: "configuracoesClienteProduto",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:destinatarioIdCliente/:materialId",
        component: _configuracoes_cliente_produto_form_configuracoes_cliente_produto_form_component__WEBPACK_IMPORTED_MODULE_3__["ConfiguracoesClienteProdutoFormComponent"],
        data: {
            breadcrumb: "configuracoesClienteProduto",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var ConfiguracoesClienteProdutoRoutingModule = /** @class */ (function () {
    function ConfiguracoesClienteProdutoRoutingModule() {
    }
    ConfiguracoesClienteProdutoRoutingModule = __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"]],
        })
    ], ConfiguracoesClienteProdutoRoutingModule);
    return ConfiguracoesClienteProdutoRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto.service.ts":
/*!**********************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto.service.ts ***!
  \**********************************************************************************************************************/
/*! exports provided: ConfiguracoesClienteProdutoService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfiguracoesClienteProdutoService", function() { return ConfiguracoesClienteProdutoService; });
/* 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 _configuracoes_cliente_produto_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./configuracoes-cliente-produto.model */ "./src/app/pages/especificos/vopak/smart/configuracoes-cliente-produto/configuracoes-cliente-produto.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 ConfiguracoesClienteProdutoService = /** @class */ (function (_super) {
    __extends(ConfiguracoesClienteProdutoService, _super);
    function ConfiguracoesClienteProdutoService(http) {
        var _this = _super.call(this, http, "vopak/cliVopObrigaDocAgendamento") || this;
        _this.filter = new _configuracoes_cliente_produto_model__WEBPACK_IMPORTED_MODULE_6__["ConfiguracoesClienteProdutoFilter"]();
        return _this;
    }
    ConfiguracoesClienteProdutoService.prototype.getByDestinatarioIdClienteAndMaterialId = function (destinatarioIdCliente, materialId) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/cliVopObrigaDocAgendamento/" + destinatarioIdCliente + "/" + materialId)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ConfiguracoesClienteProdutoService.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/cliVopObrigaDocAgendamento/getByFiltro", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ConfiguracoesClienteProdutoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    ConfiguracoesClienteProdutoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], ConfiguracoesClienteProdutoService);
    return ConfiguracoesClienteProdutoService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_4__["SpecificsBaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-vopak-smart-configuracoes-cliente-produto-configuracoes-cliente-produto-module.js.map