(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-cadastro-itens-para-inspecao-check-list-eletronico-itens-para-inspecao-check-list-eletronico-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico-form/itens-para-inspecao-check-list-eletronico-form.component.html":
/*!*****************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico-form/itens-para-inspecao-check-list-eletronico-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.tipoCheckListItemEletronicoId\" [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            <div class=\"\">\n                <app-form-legenda></app-form-legenda>\n                <div class=\"card-body widget-body\">\n                    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\n                        <app-validacoes></app-validacoes>\n                        <app-card-container>\n                            <div class=\"row\">\n                                <div class=\"col-lg-4\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"tipoOperacao\" class=\"required\">{{'labels.tipoOperacao' |\n                                            translate}}</label>\n                                        <app-combo-padrao id=\"tipoOperacao\" name=\"tipoOperacao\"\n                                            [(ngModel)]=\"data.codTipoClEletronicoId\" tabela=\"TipoCheckListEletronico\"\n                                            chave=\"CodTipoCLEletronico\" descricao=\"DescrTipoCLEletronico\" ativos=\"true\"\n                                            disabled=\"true\" required=\"true\">\n                                        </app-combo-padrao>\n                                    </div>\n                                </div>\n                            </div>\n                        </app-card-container>\n                        <div class=\"row\">\n                            <div class=\"col-lg-4\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"fase\" class=\"required\">{{'labels.fase' |\n                                        translate}}</label>\n                                    <app-combo-padrao id=\"fase\" name=\"fase\" [(ngModel)]=\"data.codFaseCL\"\n                                        tabela=\"FaseCheckList\" chave=\"CodFaseCL\" descricao=\"DescrFaseCL\" ativos=\"true\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" required=\"true\">\n                                    </app-combo-padrao>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-4 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"pai\">{{\n                                        \"labels.pai\" | translate\n                                        }}</label>\n                                    <select class=\"form-control form-control-sm\" id=\"pai\" name=\"pai\"\n                                        [(ngModel)]=\"data.codTipoCLItemEletronico\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        <option *ngFor=\"let item of pais\"\n                                            value=\"{{ item.tipoCheckListItemEletronicoId }}\">{{\n                                            item.descrTipoCLItemEletronico }}\n                                        </option>\n                                    </select>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"ordem\" class=\"required\">{{'labels.ordem' | translate}}</label>\n                                    <input id=\"ordem\" name=\"ordem\" [(ngModel)]=\"data.ordem\" maxlength=\"5\"\n                                        required=\"true\" [disabled]=\"!funcoesService.isEdit(actionForm)\"\n                                        class=\"form-control form-control-sm text-right\" type=\"text\"\n                                        (keypress)=\"funcoesService.apenasNumeros($event)\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-8\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"descricao\" class=\"required\">{{'labels.descricao' | translate}}</label>\n                                    <textarea id=\"descricao\" name=\"descricao\"\n                                        [(ngModel)]=\"data.descrTipoCLItemEletronico\" maxlength=\"250\" required=\"true\"\n                                        rows=\"3\" class=\"form-control\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"></textarea>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-8\">\n                                <div class=\"form-group form-group-sm\">\n                                    <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" label=\"cliente\"\n                                        modalTitle=\"cliente\" [inSelected]=\"data.cliente\"\n                                        (outSelected)=\"data.cliente = $event\" [(ngModel)]=\"data.destinatarioIdCliente\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                    </app-pesquisa-destinatario>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-8\">\n                                <div class=\"form-group form-group-sm\">\n                                    <app-pesquisa-material id=\"produto\" name=\"produto\" label=\"produto\"\n                                        modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"data.materialId\"\n                                        [inSelected]=\"data.material\" (outSelected)=\"data.material = $event\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                    </app-pesquisa-material>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row mb-2\">\n                            <div class=\"col-lg-8\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"icone\">{{'labels.icone' | translate}}</label>\n                                    <input id=\"icone\" name=\"icone\" [(ngModel)]=\"data.icone\" maxlength=\"50\"\n                                        class=\"form-control form-control-sm\" type=\"text\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3\">\n                                <div class=\"custom-control custom-checkbox\">\n                                    <input id=\"mandatorio\" name=\"mandatorio\" [ngModel]=\"data.mandatorio === 'S'\"\n                                        (ngModelChange)=\"data.mandatorio=$event?'S':'N'\"\n                                        class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                    <label class=\"custom-control-label\" for=\"mandatorio\">{{'labels.mandatorio' |\n                                        translate}}</label>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-3\">\n                                <div class=\"custom-control custom-checkbox\">\n                                    <input id=\"foto\" name=\"foto\" [ngModel]=\"data.flagFoto === 'S'\"\n                                        (ngModelChange)=\"data.flagFoto=$event?'S':'N'\"\n                                        class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                    <label class=\"custom-control-label\" for=\"foto\">{{'labels.foto' |\n                                        translate}}</label>&nbsp;<strong>{{'labels.obrFotoEmCasoReprova' | translate\n                                        }}</strong>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-3\">\n                                <div class=\"custom-control custom-checkbox\">\n                                    <input id=\"naoAplicavel\" name=\"naoAplicavel\"\n                                        [ngModel]=\"data.flagNaoAplicavel === 'S'\"\n                                        (ngModelChange)=\"data.flagNaoAplicavel=$event?'S':'N'\"\n                                        class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                    <label class=\"custom-control-label\" for=\"naoAplicavel\">{{'labels.naoAplicavel' |\n                                        translate}}</label>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row mt-4\">\n                            <div class=\"col-4\">\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' |\n                                        translate }}</button>\n                                </div>\n                            </div>\n                        </div>\n                    </form>\n                </div>\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/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico-index/itens-para-inspecao-check-list-eletronico-index.component.html":
/*!*******************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico-index/itens-para-inspecao-check-list-eletronico-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.tipoCheckListItemEletronicoId\"\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <div class=\"row\">\n        <div class=\"col-lg-4\">\n            <div class=\"form-group form-group-sm\">\n                <label for=\"tipoOperacao\" class=\"required\">{{'labels.tipoOperacao' |\n                    translate}}</label>\n                <app-combo-padrao id=\"tipoOperacao\" name=\"tipoOperacao\"\n                    [(ngModel)]=\"service.filtro.codTipoClEletronicoId\"\n                    tabela=\"TipoCheckListEletronico\"\n                    chave=\"CodTipoCLEletronico\"\n                    descricao=\"DescrTipoCLEletronico\"\n                    ativos=\"true\"\n                    (change)=\"pesquisar()\"\n                    required=\"true\">\n                </app-combo-padrao>\n            </div>\n        </div>\n    </div>\n    <table id=\"dtItensParaInspecaoCheckListEletronico\" 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");

/***/ }),

/***/ "./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico-form/itens-para-inspecao-check-list-eletronico-form.component.ts":
/*!*************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico-form/itens-para-inspecao-check-list-eletronico-form.component.ts ***!
  \*************************************************************************************************************************************************************************************/
/*! exports provided: ItensParaInspecaoCheckListEletronicoFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ItensParaInspecaoCheckListEletronicoFormComponent", function() { return ItensParaInspecaoCheckListEletronicoFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _itens_para_inspecao_check_list_eletronico_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../itens-para-inspecao-check-list-eletronico.model */ "./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico.model.ts");
/* harmony import */ var _itens_para_inspecao_check_list_eletronico_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../itens-para-inspecao-check-list-eletronico.constants */ "./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico.constants.ts");
/* harmony import */ var _itens_para_inspecao_check_list_eletronico_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../itens-para-inspecao-check-list-eletronico.service */ "./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico.service.ts");
/* harmony import */ var app_shared_components_combos_combo_padrao_combo_padrao_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/components/combos/combo-padrao/combo-padrao.service */ "./src/app/shared/components/combos/combo-padrao/combo-padrao.service.ts");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
/* harmony import */ var _destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var _material_material_model__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../material/material.model */ "./src/app/pages/cadastro/material/material.model.ts");
/* harmony import */ var _material_material_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../material/material.service */ "./src/app/pages/cadastro/material/material.service.ts");
/* harmony import */ var _destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.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 ItensParaInspecaoCheckListEletronicoFormComponent = /** @class */ (function (_super) {
    __extends(ItensParaInspecaoCheckListEletronicoFormComponent, _super);
    function ItensParaInspecaoCheckListEletronicoFormComponent(router, messageService, activatedRoute, service, funcoesService, permissoesUtils, comboPadraoService, materialService, destinatarioService) {
        var _this = _super.call(this, new _itens_para_inspecao_check_list_eletronico_constants__WEBPACK_IMPORTED_MODULE_8__["ItensParaInspecaoCheckListEletronicoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.comboPadraoService = comboPadraoService;
        _this.materialService = materialService;
        _this.destinatarioService = destinatarioService;
        _this.data = new _itens_para_inspecao_check_list_eletronico_model__WEBPACK_IMPORTED_MODULE_7__["ItensParaInspecaoCheckListEletronico"]();
        _this.mensagens = [];
        _this.constantes = new _itens_para_inspecao_check_list_eletronico_constants__WEBPACK_IMPORTED_MODULE_8__["ItensParaInspecaoCheckListEletronicoConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    ItensParaInspecaoCheckListEletronicoFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.pais = [];
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            if (id) {
                _this.service.getById(id).subscribe(function (resp) {
                    _this.data = resp;
                    Object(rxjs__WEBPACK_IMPORTED_MODULE_11__["forkJoin"])([
                        _this.destinatarioService.getById(_this.data.destinatarioIdCliente),
                        _this.materialService.getById(_this.data.materialId)
                    ]).subscribe(function (result) {
                        _this.data.cliente = !!result[0] ? result[0] : new _destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_12__["Destinatario"]();
                        _this.data.material = !!result[1] ? result[1] : new _material_material_model__WEBPACK_IMPORTED_MODULE_13__["Material"]();
                    });
                });
            }
            else {
                _this.data = new _itens_para_inspecao_check_list_eletronico_model__WEBPACK_IMPORTED_MODULE_7__["ItensParaInspecaoCheckListEletronico"]();
                _this.data.codTipoClEletronicoId = _this.service.filtro.codTipoClEletronicoId;
            }
            _this.getComboPai();
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    ItensParaInspecaoCheckListEletronicoFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            this.funcoesService.backToTop();
            return;
        }
        this.data.logRotina = "Manut. Itens para Inspeção - CheckList Eletrônico";
        this.service
            .save(this.data, this.funcoesService.isEdit(this.actionForm))
            .subscribe(function (validationResult) {
            _this.mensagens = _this.messageService.validationResult(validationResult);
            if (!validationResult.isValid) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("backError").emit(_this.mensagens);
                _this.funcoesService.backToTop();
            }
            else {
                _this.messageService.saveSuccess("titles.itensParaInspecaoCheckListEletronico");
                if (create) {
                    _this.data = new _itens_para_inspecao_check_list_eletronico_model__WEBPACK_IMPORTED_MODULE_7__["ItensParaInspecaoCheckListEletronico"]();
                    _this.router.navigate([_this.target + "/cadastro/itensParaInspecaoCheckListEletronico/create/"]);
                }
                else {
                    _this.back();
                }
            }
        });
    };
    ItensParaInspecaoCheckListEletronicoFormComponent.prototype.edit = function () {
        this.router.navigate([this.target + "/cadastro/itensParaInspecaoCheckListEletronico/edit/" + this.data.tipoCheckListItemEletronicoId]);
    };
    ItensParaInspecaoCheckListEletronicoFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    ItensParaInspecaoCheckListEletronicoFormComponent.prototype.back = function () {
        this.router.navigate([this.target + "/cadastro/itensParaInspecaoCheckListEletronico"]);
    };
    ItensParaInspecaoCheckListEletronicoFormComponent.prototype.getComboPai = function () {
        var _this = this;
        this.service.getComboPai({ codTipoClEletronicoId: this.data.codTipoClEletronicoId }).subscribe(function (resp) {
            _this.pais = resp;
        });
    };
    ItensParaInspecaoCheckListEletronicoFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _itens_para_inspecao_check_list_eletronico_service__WEBPACK_IMPORTED_MODULE_9__["ItensParaInspecaoCheckListEletronicoService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: app_shared_components_combos_combo_padrao_combo_padrao_service__WEBPACK_IMPORTED_MODULE_10__["ComboPadraoService"] },
        { type: _material_material_service__WEBPACK_IMPORTED_MODULE_14__["MaterialService"] },
        { type: _destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_15__["DestinatarioService"] }
    ]; };
    ItensParaInspecaoCheckListEletronicoFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-itens-para-inspecao-check-list-eletronico-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./itens-para-inspecao-check-list-eletronico-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico-form/itens-para-inspecao-check-list-eletronico-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _itens_para_inspecao_check_list_eletronico_service__WEBPACK_IMPORTED_MODULE_9__["ItensParaInspecaoCheckListEletronicoService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            app_shared_components_combos_combo_padrao_combo_padrao_service__WEBPACK_IMPORTED_MODULE_10__["ComboPadraoService"],
            _material_material_service__WEBPACK_IMPORTED_MODULE_14__["MaterialService"],
            _destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_15__["DestinatarioService"]])
    ], ItensParaInspecaoCheckListEletronicoFormComponent);
    return ItensParaInspecaoCheckListEletronicoFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico-index/itens-para-inspecao-check-list-eletronico-index.component.ts":
/*!***************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico-index/itens-para-inspecao-check-list-eletronico-index.component.ts ***!
  \***************************************************************************************************************************************************************************************/
/*! exports provided: ItensParaInspecaoCheckListEletronicoIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ItensParaInspecaoCheckListEletronicoIndexComponent", function() { return ItensParaInspecaoCheckListEletronicoIndexComponent; });
/* 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_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _itens_para_inspecao_check_list_eletronico_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../itens-para-inspecao-check-list-eletronico.model */ "./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico.model.ts");
/* harmony import */ var _itens_para_inspecao_check_list_eletronico_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../itens-para-inspecao-check-list-eletronico.constants */ "./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico.constants.ts");
/* harmony import */ var _itens_para_inspecao_check_list_eletronico_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../itens-para-inspecao-check-list-eletronico.service */ "./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__ = __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 __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 ItensParaInspecaoCheckListEletronicoIndexComponent = /** @class */ (function (_super) {
    __extends(ItensParaInspecaoCheckListEletronicoIndexComponent, _super);
    function ItensParaInspecaoCheckListEletronicoIndexComponent(router, service, datatablesService, messageService, funcoesService, configuracao, permissoesUtils) {
        var _this = _super.call(this, new _itens_para_inspecao_check_list_eletronico_constants__WEBPACK_IMPORTED_MODULE_8__["ItensParaInspecaoCheckListEletronicoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.service = service;
        _this.datatablesService = datatablesService;
        _this.messageService = messageService;
        _this.funcoesService = funcoesService;
        _this.configuracao = configuracao;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _itens_para_inspecao_check_list_eletronico_model__WEBPACK_IMPORTED_MODULE_7__["ItensParaInspecaoCheckListEletronico"]();
        _this.mensagens = [];
        _this.constantes = new _itens_para_inspecao_check_list_eletronico_constants__WEBPACK_IMPORTED_MODULE_8__["ItensParaInspecaoCheckListEletronicoConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    ItensParaInspecaoCheckListEletronicoIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _this.refresh();
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    ItensParaInspecaoCheckListEletronicoIndexComponent.prototype.create = function () {
        if (!this.service.filtro.codTipoClEletronicoId) {
            this.messageService.warning("titles.itensParaInspecaoCheckListEletronico", "messages.informeTipoDeOperacao");
            return;
        }
        this.router.navigate([this.target + "/cadastro/itensParaInspecaoCheckListEletronico/create"]);
    };
    ItensParaInspecaoCheckListEletronicoIndexComponent.prototype.refresh = function () {
        var _this = this;
        var columns = [
            this.datatablesService.getDataString('descrFaseCL', 'fase'),
            this.datatablesService.getDataString('codigo', 'codigo', '10%'),
            this.datatablesService.getDataStringAlignRight('ordem', 'ordem', '10%'),
            this.datatablesService.getDataString('descricao', 'descricao')
        ];
        this.service.getByFiltro(this.service.filtro).subscribe(function (data) {
            _this.dados = data;
            _this.datatablesService.toDataTable({ tableId: "dtItensParaInspecaoCheckListEletronico", columns: columns, data: data }, function (aData) {
                _this.data = aData;
            });
        });
    };
    ItensParaInspecaoCheckListEletronicoIndexComponent.prototype.pesquisar = function () {
        this.refresh();
    };
    ItensParaInspecaoCheckListEletronicoIndexComponent.prototype.edit = function () {
        if (!!(this.data.tipoCheckListItemEletronicoId)) {
            this.router.navigate([this.target + "/cadastro/itensParaInspecaoCheckListEletronico/edit/" + this.data.tipoCheckListItemEletronicoId]);
        }
    };
    ItensParaInspecaoCheckListEletronicoIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    ItensParaInspecaoCheckListEletronicoIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    ItensParaInspecaoCheckListEletronicoIndexComponent.prototype.detail = function () {
        if (!!(btoa(this.data.tipoCheckListItemEletronicoId))) {
            this.router.navigate([this.target + "/cadastro/itensParaInspecaoCheckListEletronico/detail/" + this.data.tipoCheckListItemEletronicoId]);
        }
    };
    ItensParaInspecaoCheckListEletronicoIndexComponent.prototype.remove = function () {
        var _this = this;
        if (!!(this.data.tipoCheckListItemEletronicoId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () { return __awaiter(_this, void 0, void 0, function () {
                var validationResult, mensagens;
                var _this = this;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0: return [4 /*yield*/, this.service.podeRemover({ tipoCheckListItemEletronicoId: this.data.tipoCheckListItemEletronicoId }).toPromise()];
                        case 1:
                            validationResult = _a.sent();
                            if (!validationResult.isValid) {
                                mensagens = this.messageService.validationResult(validationResult);
                                mensagens.forEach(function (m) { return _this.messageService.warning("titles.itensParaInspecaoCheckListEletronico", m); });
                                return [2 /*return*/];
                            }
                            else {
                                this.executeRemove();
                            }
                            return [2 /*return*/];
                    }
                });
            }); });
        }
    };
    ItensParaInspecaoCheckListEletronicoIndexComponent.prototype.executeRemove = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                this.messageService.removeConfirm(function () {
                    _this.service._remove(_this.data).subscribe(function (validationResult) {
                        _this.mensagens = _this.messageService.validationResult(validationResult);
                        if (!validationResult.isValid) {
                            _this.messageService.warning("titles.itensParaInspecaoCheckListEletronico", _this.mensagens[0]);
                        }
                        else {
                            _this.datatablesService.remove("dtItensParaInspecaoCheckListEletronico");
                        }
                    });
                });
                return [2 /*return*/];
            });
        });
    };
    ItensParaInspecaoCheckListEletronicoIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _this.funcoesService.reportInvoc.invocaRelatorio(_this.constantes.reportId, _this.constantes.reportTitulo, {
                codTipoClEletronicoId: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].toString(_this.service.filtro.codTipoClEletronicoId)
            });
        });
    };
    ItensParaInspecaoCheckListEletronicoIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _itens_para_inspecao_check_list_eletronico_service__WEBPACK_IMPORTED_MODULE_9__["ItensParaInspecaoCheckListEletronicoService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_10__["ConfiguracaoFacade"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] }
    ]; };
    ItensParaInspecaoCheckListEletronicoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-itens-para-inspecao-check-list-eletronico-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./itens-para-inspecao-check-list-eletronico-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico-index/itens-para-inspecao-check-list-eletronico-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _itens_para_inspecao_check_list_eletronico_service__WEBPACK_IMPORTED_MODULE_9__["ItensParaInspecaoCheckListEletronicoService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_10__["ConfiguracaoFacade"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"]])
    ], ItensParaInspecaoCheckListEletronicoIndexComponent);
    return ItensParaInspecaoCheckListEletronicoIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico.constants.ts":
/*!*********************************************************************************************************************************!*\
  !*** ./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico.constants.ts ***!
  \*********************************************************************************************************************************/
/*! exports provided: ItensParaInspecaoCheckListEletronicoConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ItensParaInspecaoCheckListEletronicoConstants", function() { return ItensParaInspecaoCheckListEletronicoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ItensParaInspecaoCheckListEletronicoConstants = /** @class */ (function () {
    function ItensParaInspecaoCheckListEletronicoConstants() {
        this.sisFormularioId = 230147;
        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.itensParaInspecaoCheckListEletronico";
        this.reportId = "CTV0014";
        this.reportTitulo = { "titulo": "Itens para Inspeção - CheckList Eletrônico", "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: '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' }
        ];
        this.listaParam = [
            { 'sistema': 'CTV', 'parametros': ['CLEletronico'] }
        ];
    }
    return ItensParaInspecaoCheckListEletronicoConstants;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico.model.ts":
/*!*****************************************************************************************************************************!*\
  !*** ./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico.model.ts ***!
  \*****************************************************************************************************************************/
/*! exports provided: ItensParaInspecaoCheckListEletronico, ItensParaInspecaoCheckListEletronicoFilter, GetComboPaiDto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ItensParaInspecaoCheckListEletronico", function() { return ItensParaInspecaoCheckListEletronico; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ItensParaInspecaoCheckListEletronicoFilter", function() { return ItensParaInspecaoCheckListEletronicoFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetComboPaiDto", function() { return GetComboPaiDto; });
/* harmony import */ var _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../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 ItensParaInspecaoCheckListEletronico = /** @class */ (function (_super) {
    __extends(ItensParaInspecaoCheckListEletronico, _super);
    function ItensParaInspecaoCheckListEletronico() {
        var _this = _super.call(this) || this;
        _this.tipoCheckListItemEletronicoId = 0;
        _this.codTipoCLItemEletronicoPai = 0;
        _this.codTipoCLItemEletronico = 0;
        _this.ordem = 0;
        _this.mandatorio = 'N';
        _this.flagFoto = 'N';
        _this.flagNaoAplicavel = 'N';
        _this.codTipoClEletronicoId = '';
        return _this;
    }
    return ItensParaInspecaoCheckListEletronico;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var ItensParaInspecaoCheckListEletronicoFilter = /** @class */ (function () {
    function ItensParaInspecaoCheckListEletronicoFilter() {
        this.codTipoClEletronicoId = '';
    }
    return ItensParaInspecaoCheckListEletronicoFilter;
}());

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



/***/ }),

/***/ "./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico.module.ts":
/*!******************************************************************************************************************************!*\
  !*** ./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico.module.ts ***!
  \******************************************************************************************************************************/
/*! exports provided: ItensParaInspecaoCheckListEletronicoModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ItensParaInspecaoCheckListEletronicoModule", function() { return ItensParaInspecaoCheckListEletronicoModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _itens_para_inspecao_check_list_eletronico_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./itens-para-inspecao-check-list-eletronico.routing.module */ "./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico.routing.module.ts");
/* harmony import */ var _itens_para_inspecao_check_list_eletronico_form_itens_para_inspecao_check_list_eletronico_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./itens-para-inspecao-check-list-eletronico-form/itens-para-inspecao-check-list-eletronico-form.component */ "./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico-form/itens-para-inspecao-check-list-eletronico-form.component.ts");
/* harmony import */ var _itens_para_inspecao_check_list_eletronico_index_itens_para_inspecao_check_list_eletronico_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./itens-para-inspecao-check-list-eletronico-index/itens-para-inspecao-check-list-eletronico-index.component */ "./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico-index/itens-para-inspecao-check-list-eletronico-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 ItensParaInspecaoCheckListEletronicoModule = /** @class */ (function () {
    function ItensParaInspecaoCheckListEletronicoModule() {
    }
    ItensParaInspecaoCheckListEletronicoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _itens_para_inspecao_check_list_eletronico_routing_module__WEBPACK_IMPORTED_MODULE_2__["ItensParaInspecaoCheckListEletronicoRoutingModule"]],
            declarations: [_itens_para_inspecao_check_list_eletronico_index_itens_para_inspecao_check_list_eletronico_index_component__WEBPACK_IMPORTED_MODULE_4__["ItensParaInspecaoCheckListEletronicoIndexComponent"], _itens_para_inspecao_check_list_eletronico_form_itens_para_inspecao_check_list_eletronico_form_component__WEBPACK_IMPORTED_MODULE_3__["ItensParaInspecaoCheckListEletronicoFormComponent"]]
        })
    ], ItensParaInspecaoCheckListEletronicoModule);
    return ItensParaInspecaoCheckListEletronicoModule;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico.routing.module.ts":
/*!**************************************************************************************************************************************!*\
  !*** ./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico.routing.module.ts ***!
  \**************************************************************************************************************************************/
/*! exports provided: ItensParaInspecaoCheckListEletronicoRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ItensParaInspecaoCheckListEletronicoRoutingModule", function() { return ItensParaInspecaoCheckListEletronicoRoutingModule; });
/* 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 _itens_para_inspecao_check_list_eletronico_index_itens_para_inspecao_check_list_eletronico_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./itens-para-inspecao-check-list-eletronico-index/itens-para-inspecao-check-list-eletronico-index.component */ "./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico-index/itens-para-inspecao-check-list-eletronico-index.component.ts");
/* harmony import */ var _itens_para_inspecao_check_list_eletronico_form_itens_para_inspecao_check_list_eletronico_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./itens-para-inspecao-check-list-eletronico-form/itens-para-inspecao-check-list-eletronico-form.component */ "./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico-form/itens-para-inspecao-check-list-eletronico-form.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: _itens_para_inspecao_check_list_eletronico_index_itens_para_inspecao_check_list_eletronico_index_component__WEBPACK_IMPORTED_MODULE_3__["ItensParaInspecaoCheckListEletronicoIndexComponent"],
        data: { breadcrumb: "itensParaInspecaoCheckListEletronico", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create",
        component: _itens_para_inspecao_check_list_eletronico_form_itens_para_inspecao_check_list_eletronico_form_component__WEBPACK_IMPORTED_MODULE_4__["ItensParaInspecaoCheckListEletronicoFormComponent"],
        data: {
            breadcrumb: "itensParaInspecaoCheckListEletronico", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: _itens_para_inspecao_check_list_eletronico_form_itens_para_inspecao_check_list_eletronico_form_component__WEBPACK_IMPORTED_MODULE_4__["ItensParaInspecaoCheckListEletronicoFormComponent"],
        data: {
            breadcrumb: "itensParaInspecaoCheckListEletronico", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _itens_para_inspecao_check_list_eletronico_form_itens_para_inspecao_check_list_eletronico_form_component__WEBPACK_IMPORTED_MODULE_4__["ItensParaInspecaoCheckListEletronicoFormComponent"],
        data: {
            breadcrumb: "itensParaInspecaoCheckListEletronico",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var ItensParaInspecaoCheckListEletronicoRoutingModule = /** @class */ (function () {
    function ItensParaInspecaoCheckListEletronicoRoutingModule() {
    }
    ItensParaInspecaoCheckListEletronicoRoutingModule = __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"]]
        })
    ], ItensParaInspecaoCheckListEletronicoRoutingModule);
    return ItensParaInspecaoCheckListEletronicoRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico.service.ts":
/*!*******************************************************************************************************************************!*\
  !*** ./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico.service.ts ***!
  \*******************************************************************************************************************************/
/*! exports provided: ItensParaInspecaoCheckListEletronicoService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ItensParaInspecaoCheckListEletronicoService", function() { return ItensParaInspecaoCheckListEletronicoService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* harmony import */ var _itens_para_inspecao_check_list_eletronico_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./itens-para-inspecao-check-list-eletronico.model */ "./src/app/pages/cadastro/itens-para-inspecao-check-list-eletronico/itens-para-inspecao-check-list-eletronico.model.ts");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
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 ItensParaInspecaoCheckListEletronicoService = /** @class */ (function (_super) {
    __extends(ItensParaInspecaoCheckListEletronicoService, _super);
    function ItensParaInspecaoCheckListEletronicoService(http) {
        var _this = _super.call(this, http, "veiculos/itensParaInspecaoCheckListEletronico") || this;
        _this.http = http;
        _this.filtro = new _itens_para_inspecao_check_list_eletronico_model__WEBPACK_IMPORTED_MODULE_3__["ItensParaInspecaoCheckListEletronicoFilter"]();
        return _this;
    }
    ItensParaInspecaoCheckListEletronicoService.prototype.getByFiltro = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/veiculos/itensParaInspecaoCheckListEletronico/getByFiltro", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    ItensParaInspecaoCheckListEletronicoService.prototype._remove = function (data) {
        return this.http
            .put(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/veiculos/itensParaInspecaoCheckListEletronico/remove", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    ItensParaInspecaoCheckListEletronicoService.prototype.podeRemover = function (filter) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/veiculos/itensParaInspecaoCheckListEletronico/podeRemover", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    ItensParaInspecaoCheckListEletronicoService.prototype.getComboPai = function (filter) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/veiculos/itensParaInspecaoCheckListEletronico/getComboPai", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    ItensParaInspecaoCheckListEletronicoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    ItensParaInspecaoCheckListEletronicoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], ItensParaInspecaoCheckListEletronicoService);
    return ItensParaInspecaoCheckListEletronicoService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__["BaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-cadastro-itens-para-inspecao-check-list-eletronico-itens-para-inspecao-check-list-eletronico-module.js.map