(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-cadastro-municipio-municipio-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/municipio/municipio-filter/municipio-filter.component.html":
/*!*********************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/municipio/municipio-filter/municipio-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 fade\" id=\"mun-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"modal-dialog modal-md\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.pesquisaMunicipio' | translate }}</h6>\r\n            </div>\r\n            <div class=\"modal-body\">\r\n                <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-4\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"de\">{{ 'labels.de' | translate}}</label>\r\n                                <input id=\"de\" name=\"de\" [(ngModel)]=\"filtro.de\"\r\n                                       class=\"form-control form-control-sm\"/>\r\n                            </div>\r\n                        </div>\r\n\r\n                        <div class=\"col-4\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-field-container>\r\n                                    <label for=\"ate\">{{'labels.ate' | translate}}</label>\r\n                                    <input id=\"ate\" name=\"ate\" [(ngModel)]=\"filtro.ate\"\r\n                                           class=\"form-control form-control-sm\"/>\r\n                                </app-field-container>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-4\">\r\n                            <div class=\"custom-control custom-checkbox uni-checkbox\">\r\n                                <input id=\"flagAtivo\" name=\"flagAtivo\" [ngModel]=\"filtro.flagAtivo === 'S'\"\r\n                                       (ngModelChange)=\"filtro.flagAtivo=$event?'S':'N'\"\r\n                                       class=\"custom-control-input checkbox-success\" type=\"checkbox\">\r\n                                <label class=\"custom-control-label\" for=\"flagAtivo\">{{'labels.ativo' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-7\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-field-container>\r\n                                    <label for=\"estado\">{{'labels.estado' | translate}}</label>\r\n                                    <app-combo-estado id=\"estado\" name=\"estadoId\"\r\n                                                      [(ngModel)]=\"filtro.estadoId\"></app-combo-estado>\r\n                                </app-field-container>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"form-group\">\r\n                        <button class=\"btn btn-success\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}</button>\r\n                        <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\r\n                    </div>\r\n                </form>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/municipio/municipio-form/municipio-form.component.html":
/*!*****************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/municipio/municipio-form/municipio-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\" [itemData]=\"data.municipioId\"\n    [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                        <div class=\"row\">\n                            <div class=\"col-lg-2\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label class=\"required\" for=\"uf\">{{'labels.uf' | translate}}</label>\n                                    <app-combo-estado id=\"uf\" name=\"uf\" [(ngModel)]=\"data.estadoId\" required=\"true\"\n                                        [disabled]=\"!funcoesService.isCreate(actionForm)\"\n                                        data-title=\"{{'labels.uf' | translate}}\"></app-combo-estado>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-6\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"municipio\" class=\"required\">{{'labels.municipio' |\n                                        translate}}</label>\n                                    <input id=\"municipio\" name=\"municipio\" [(ngModel)]=\"data.municipioId\"\n                                        class=\"form-control form-control-sm\" type=\"text\"\n                                        [disabled]=\"!funcoesService.isCreate(actionForm)\" required\n                                        data-title=\"{{'labels.municipio' | translate}}\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-6\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label class=\"required\" for=\"pais\">{{'labels.pais' | translate}}</label>\n                                    <app-combo-pais id=\"pais\" name=\"pais\" [(ngModel)]=\"data.paisId\" required=\"true\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"></app-combo-pais>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-6\">\n                                <app-pesquisa-destinatario id=\"transportadora\" name=\"transportadora\"\n                                    tipoDestinatario=\"T\" modalTitle=\"pesquisaDeTransportadora\" label=\"transportadora\"\n                                    [(ngModel)]=\"data.destinatarioIdTransportadora\" showInscricao=\"false\"\n                                    showCgcCpf=\"false\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                </app-pesquisa-destinatario>\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=\"codSiafi\">{{'labels.codSiafi' | translate}}</label>\n                                    <input id=\"codSiafi\" name=\"codSiafi\" [(ngModel)]=\"data.codSiafi\"\n                                        class=\"form-control form-control-sm\" type=\"text\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                        data-title=\"{{'labels.codSiafi' | translate}}\">\n                                </div>\n                            </div>\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"aliqRetCofins\">{{'labels.aliqRetCofins' |\n                                        translate}}</label>\n                                    <input id=\"aliqRetCofins\" name=\"aliqRetCofins\" [(ngModel)]=\"data.aliqCofins\"\n                                        class=\"form-control form-control-sm\" type=\"text\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" maxlength=\"5\" currencyMask\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',' }\">\n\n                                </div>\n                            </div>\n                            <div class=\"col-lg-3 d-flex align-items-center\">\n                                <div class=\"custom-control custom-checkbox\">\n                                    <input id=\"dedIcms\" name=\"dedIcms\" [ngModel]=\"data.dedIcms === 'S'\"\n                                        (ngModelChange)=\"data.dedIcms=$event?'S':'N'\"\n                                        class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                    <label class=\"custom-control-label\" for=\"dedIcms\">{{'labels.dedIcms' |\n                                        translate}}</label>\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=\"codMunicipio\">{{'labels.codigoAnp' | translate}}</label>\n                                    <input id=\"codMunicipio\" name=\"codMunicipio\" [(ngModel)]=\"data.codMunicipio\"\n                                        class=\"form-control form-control-sm\" type=\"text\" maxlength=\"7\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                </div>\n                            </div>\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"aliqPis\">{{'labels.aliqRetPis' |\n                                        translate}}</label>\n                                    <input id=\"aliqPis\" name=\"aliqPis\" [(ngModel)]=\"data.aliqPis\"\n                                        class=\"form-control form-control-sm\" type=\"text\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" maxlength=\"5\" currencyMask\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',' }\">\n                                </div>\n                            </div>\n                            <div class=\"col-lg-3 d-flex align-items-center\">\n                                <div class=\"custom-control custom-checkbox\">\n                                    <input id=\"ipi\" name=\"ipi\" [ngModel]=\"data.ipi === 'S'\"\n                                        (ngModelChange)=\"data.ipi=$event?'S':'N'\"\n                                        class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                    <label class=\"custom-control-label\" for=\"ipi\">{{'labels.ipi' |\n                                        translate}}</label>\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=\"municipioIbge\">{{'labels.codigoIbge' | translate}}</label>\n                                    <input id=\"municipioIbge\" name=\"municipioIbge\" [(ngModel)]=\"data.municipioIbge\"\n                                        class=\"form-control form-control-sm\" type=\"text\" maxlength=\"5\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                </div>\n                            </div>\n                            <div class=\"col-lg-3\"></div>\n                            <div class=\"col-lg-3 d-flex align-items-center\">\n                                <div class=\"custom-control custom-checkbox\">\n                                    <input id=\"suspIpi\" name=\"suspIpi\" [ngModel]=\"data.suspIpi === 'S'\"\n                                        (ngModelChange)=\"data.suspIpi=$event?'S':'N'\"\n                                        class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                    <label class=\"custom-control-label\" for=\"suspIpi\">{{'labels.suspIpi' |\n                                        translate}}</label>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-6\">\n                                <label>{{'labels.setor' | translate}}</label>\n                                <app-combo-padrao name=\"setor\" id=\"setor\" chave=\"Setor\" descricao=\"DescrSetor\"\n                                    ativo=\"true\" tabela=\"Setor\" [(ngModel)]=\"data.setorId\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                </app-combo-padrao>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label>{{'labels.mensagemIdIcms' | translate}}</label>\n                                    <app-pesquisa-mensagem id=\"mensagemIdIcm\" name=\"mensagemIdIcm\"\n                                        [(ngModel)]=\"data.mensagemIdIcm\" tipo=\"FIS\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                        (outMensagem)=\"setMensagemIcm($event)\"></app-pesquisa-mensagem>\n\n                                </div>\n                            </div>\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label>{{'labels.mensagemIdIpi' | translate}}</label>\n                                    <app-pesquisa-mensagem id=\"mensagemIdIpi\" name=\"mensagemIdIpi\"\n                                        [(ngModel)]=\"data.mensagemIdIpi\" tipo=\"FIS\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                        (outMensagem)=\"setMensagemIpi($event)\"></app-pesquisa-mensagem>\n\n                                </div>\n                            </div>\n\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <textarea name=\"mensagemIcm\" value=\"{{data.mensagemIcm}}\"\n                                        class=\"form-control form-control-sm\" type=\"text\" disabled>\n                                    </textarea>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <textarea name=\"mensagemIpi\" value=\"{{data.mensagemIpi}}\"\n                                        class=\"form-control form-control-sm\" type=\"text\" disabled>\n                                    </textarea>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"aliqIBS\">{{'labels.aliqIBS' |\n                                        translate}}</label>\n                                    <input id=\"aliqIBS\" name=\"aliqIBS\" [(ngModel)]=\"data.aliqIBS\"\n                                        class=\"form-control form-control-sm\" type=\"text\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                        data-title=\"{{'labels.aliqIBS' | translate}}\" maxlength=\"8\" appNumbersPositive\n                                        currencyMask [options]=\"{\n                                            prefix: '',\n                                            thousands: '.',\n                                            decimal: ',',\n                                            precision: 4\n                                        }\" (ngModelChange)=\"validarFlagVinculado()\">\n                                </div>\n                            </div>\n                            <div class=\"col-lg-3 col-md-6 col-sm-12 d-flex align-items-center\">\n                                <div class=\"custom-control custom-checkbox\">\n                                    <input id=\"flagVinculado\" name=\"flagVinculado\"\n                                        [ngModel]=\"data.flagVinculado === 'S'\"\n                                        (ngModelChange)=\"data.flagVinculado = $event ? 'S' : 'N'; validarFlagVinculado();\"\n                                        class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                        [disabled]=\"isFlagVinculadoDisabled()\" />\n                                    <label class=\"custom-control-label\"\n                                        for=\"flagVinculado\">{{'labels.vinculadoAliquotaRef' |\n                                        translate}}</label>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-4\">\n                                <span *ngIf=\"data.sisCampoAdds\">\n                                    <div *ngFor=\"let d of data.sisCampoAdds\" [class.col-lg-6]=\"!d.colunas\">\n                                        <app-campos-adicionais name=\"{{d.campo}}\" [sisCampoAdd]=\"d\"\n                                            [(ngModel)]=\"d.valorCampo\" [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                            [required]=\"d.obrigatorio === 'S'\"></app-campos-adicionais>\n                                    </div>\n                                </span>\n                            </div>\n                        </div>\n                        <div class=\"row\">\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' |\n                                        translate }}</button>\n                                </div>\n                            </div>\n                        </div>\n                    </form>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/municipio/municipio-index/municipio-index.component.html":
/*!*******************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/municipio/municipio-index/municipio-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.municipioId\"\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <table id=\"dtMunicipio\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\n</div>\n\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-municipio-filter [data]=\"filtro\" (filtrar)=\"executaFiltro($event)\"></app-municipio-filter>\n");

/***/ }),

/***/ "./src/app/pages/cadastro/municipio/municipio-filter/municipio-filter.component.ts":
/*!*****************************************************************************************!*\
  !*** ./src/app/pages/cadastro/municipio/municipio-filter/municipio-filter.component.ts ***!
  \*****************************************************************************************/
/*! exports provided: MunicipioFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MunicipioFilterComponent", function() { return MunicipioFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _municipio_filter_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./municipio-filter.model */ "./src/app/pages/cadastro/municipio/municipio-filter/municipio-filter.model.ts");
/* harmony import */ var _municipio_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../municipio.service */ "./src/app/pages/cadastro/municipio/municipio.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 MunicipioFilterComponent = /** @class */ (function () {
    function MunicipioFilterComponent(municipioService) {
        this.municipioService = municipioService;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    MunicipioFilterComponent.prototype.ngOnInit = function () {
        this.filtro = this.data;
    };
    MunicipioFilterComponent.prototype.onSubmit = function (form) {
        /*
           this.tipoDeDestinatarios.forEach(e => {
               if (e['checked']) {
                   this.filtro.tiposDeTerceiros.push(e.tipoDeDestinatarioId);
               }
           });
   */
        if (!form.invalid) {
            jQuery("#mun-filter-dialog").modal("hide");
            this.filtrar.emit(this.filtro);
        }
    };
    MunicipioFilterComponent.ctorParameters = function () { return [
        { type: _municipio_service__WEBPACK_IMPORTED_MODULE_2__["MunicipioService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _municipio_filter_model__WEBPACK_IMPORTED_MODULE_1__["MunicipioFilter"])
    ], MunicipioFilterComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MunicipioFilterComponent.prototype, "filtrar", void 0);
    MunicipioFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-municipio-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./municipio-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/municipio/municipio-filter/municipio-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_municipio_service__WEBPACK_IMPORTED_MODULE_2__["MunicipioService"]])
    ], MunicipioFilterComponent);
    return MunicipioFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/municipio/municipio-filter/municipio-filter.model.ts":
/*!*************************************************************************************!*\
  !*** ./src/app/pages/cadastro/municipio/municipio-filter/municipio-filter.model.ts ***!
  \*************************************************************************************/
/*! exports provided: MunicipioFilter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MunicipioFilter", function() { return MunicipioFilter; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var MunicipioFilter = /** @class */ (function () {
    function MunicipioFilter() {
        this.de = "";
        this.ate = "";
        this.estadoId = "";
        this.flagAtivo = "S";
    }
    return MunicipioFilter;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/municipio/municipio-form/municipio-form.component.ts":
/*!*************************************************************************************!*\
  !*** ./src/app/pages/cadastro/municipio/municipio-form/municipio-form.component.ts ***!
  \*************************************************************************************/
/*! exports provided: MunicipioFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MunicipioFormComponent", function() { return MunicipioFormComponent; });
/* 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 _municipio_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../municipio.service */ "./src/app/pages/cadastro/municipio/municipio.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _municipio_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../municipio.constants */ "./src/app/pages/cadastro/municipio/municipio.constants.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _municipio_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../municipio.model */ "./src/app/pages/cadastro/municipio/municipio.model.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../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_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-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 MunicipioFormComponent = /** @class */ (function (_super) {
    __extends(MunicipioFormComponent, _super);
    function MunicipioFormComponent(router, messageService, activatedRoute, municipioService, funcoesService, permissoesUtils) {
        var _this = _super.call(this, new _municipio_constants__WEBPACK_IMPORTED_MODULE_6__["MunicipioConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.municipioService = municipioService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _municipio_model__WEBPACK_IMPORTED_MODULE_8__["Municipios"]();
        _this.mensagens = [];
        _this.constantes = new _municipio_constants__WEBPACK_IMPORTED_MODULE_6__["MunicipioConstants"]();
        _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;
    }
    MunicipioFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            var estadoId = _this.activatedRoute.snapshot.paramMap.get("estadoId");
            if (id) {
                _this.municipioService.getByIdEEstadoId(id, estadoId).subscribe(function (resp) {
                    _this.data = resp;
                });
            }
            else {
                _this.data = new _municipio_model__WEBPACK_IMPORTED_MODULE_8__["Municipios"]();
                _this.getCamposAdicionais();
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    MunicipioFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.data.logRotina = "Manutenção Municipio";
        this.municipioService
            .save(this.data, this.funcoesService.isEdit(this.actionForm))
            .subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result.validationResult);
            if (!result.validationResult.isValid) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.municipio");
                if (create) {
                    _this.data = new _municipio_model__WEBPACK_IMPORTED_MODULE_8__["Municipios"]();
                    _this.router.navigate([_this.target + "/cadastro/municipio/create"]);
                }
                else {
                    _this.back();
                }
            }
        });
    };
    MunicipioFormComponent.prototype.edit = function () {
        this.router.navigate([this.target + "/cadastro/municipio/edit/" + this.data.municipioId + "/" + this.data.estadoId]);
    };
    MunicipioFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    MunicipioFormComponent.prototype.back = function () {
        this.router.navigate([this.target + "/cadastro/municipio"]);
    };
    MunicipioFormComponent.prototype.getCamposAdicionais = function () {
        var _this = this;
        this.funcoesService.camposAdicionais
            .get(this.constantes.sisFormularioId)
            .subscribe(function (data) {
            _this.data.sisCampoAdds = data;
        });
    };
    MunicipioFormComponent.prototype.setMensagemIpi = function (m) {
        this.data.mensagemIpi = m.observacoes;
    };
    MunicipioFormComponent.prototype.setMensagemIcm = function (m) {
        this.data.mensagemIcm = m.observacoes;
    };
    MunicipioFormComponent.prototype.validarFlagVinculado = function () {
        var aliquotaNumerica = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["NumberUtilsStaticService"].toNumber(this.data.aliqIBS);
        if (aliquotaNumerica === 0 || !aliquotaNumerica) {
            this.data.flagVinculado = 'N';
        }
    };
    MunicipioFormComponent.prototype.isFlagVinculadoDisabled = function () {
        var isDetailMode = this.funcoesService.isDetail(this.actionForm);
        var isAliquotaZero = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["NumberUtilsStaticService"].toNumber(this.data.aliqIBS) === 0;
        return isDetailMode || isAliquotaZero;
    };
    MunicipioFormComponent.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: _municipio_service__WEBPACK_IMPORTED_MODULE_3__["MunicipioService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] }
    ]; };
    MunicipioFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-municipio-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./municipio-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/municipio/municipio-form/municipio-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"],
            _municipio_service__WEBPACK_IMPORTED_MODULE_3__["MunicipioService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"]])
    ], MunicipioFormComponent);
    return MunicipioFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/cadastro/municipio/municipio-index/municipio-index.component.ts":
/*!***************************************************************************************!*\
  !*** ./src/app/pages/cadastro/municipio/municipio-index/municipio-index.component.ts ***!
  \***************************************************************************************/
/*! exports provided: MunicipioIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MunicipioIndexComponent", function() { return MunicipioIndexComponent; });
/* 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 _municipio_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../municipio.service */ "./src/app/pages/cadastro/municipio/municipio.service.ts");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _municipio_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../municipio.model */ "./src/app/pages/cadastro/municipio/municipio.model.ts");
/* harmony import */ var _municipio_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../municipio.constants */ "./src/app/pages/cadastro/municipio/municipio.constants.ts");
/* harmony import */ var _municipio_filter_municipio_filter_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../municipio-filter/municipio-filter.model */ "./src/app/pages/cadastro/municipio/municipio-filter/municipio-filter.model.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.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 MunicipioIndexComponent = /** @class */ (function (_super) {
    __extends(MunicipioIndexComponent, _super);
    function MunicipioIndexComponent(router, municipioService, datatablesService, messageService, funcoesService, permissoesUtils) {
        var _this = _super.call(this, new _municipio_constants__WEBPACK_IMPORTED_MODULE_8__["MunicipioConstants"](), funcoesService) || this;
        _this.router = router;
        _this.municipioService = municipioService;
        _this.datatablesService = datatablesService;
        _this.messageService = messageService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _municipio_model__WEBPACK_IMPORTED_MODULE_7__["Municipios"]();
        _this.constantes = new _municipio_constants__WEBPACK_IMPORTED_MODULE_8__["MunicipioConstants"]();
        _this.filtro = new _municipio_filter_municipio_filter_model__WEBPACK_IMPORTED_MODULE_9__["MunicipioFilter"]();
        _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;
    }
    MunicipioIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _this.refresh();
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    MunicipioIndexComponent.prototype.create = function () {
        this.router.navigate([this.target + "/cadastro/municipio/create"]);
    };
    MunicipioIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.municipioService.getByFiltro(this.filtro).subscribe(function (resp) {
            var columns = [
                _this.datatablesService.getDataString("estadoId", "uf", "10%"),
                _this.datatablesService.getDataString("municipioId", "municipio"),
                _this.datatablesService.getDataBool("dedIcms", "dedIcms", "10%"),
                _this.datatablesService.getDataBool("ipi", "ipi", "10%"),
                _this.datatablesService.getDataBool("suspIpi", "suspIpi", "10%")
            ];
            _this.datatablesService.datatable("dtMunicipio", columns, resp, function (aData) {
                _this.data = aData;
            });
        });
    };
    MunicipioIndexComponent.prototype.filtrar = function () {
        jQuery("#mun-filter-dialog").modal("show");
    };
    MunicipioIndexComponent.prototype.executaFiltro = function (event) {
        this.filtro = event;
        var de = this.filtro.de === undefined ? "" : this.filtro.de;
        var ate = this.filtro.ate === undefined ? "" : this.filtro.ate;
        var estadoId = this.filtro.estadoId === undefined ? "" : this.filtro.estadoId;
        this.constantes.paramRelatorio = { de: de, ate: ate, estadoId: estadoId };
        this.refresh();
        jQuery("#mun-filter-dialog").modal("hide");
    };
    MunicipioIndexComponent.prototype.edit = function () {
        if (!!(this.data.municipioId)) {
            this.router.navigate([this.target + "/cadastro/municipio/edit/" + this.data.municipioId + "/" + this.data.estadoId]);
        }
    };
    MunicipioIndexComponent.prototype.detail = function () {
        if (!!(this.data.municipioId)) {
            this.router.navigate([this.target + "/cadastro/municipio/detail/" + this.data.municipioId + "/" + this.data.estadoId]);
        }
    };
    MunicipioIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    MunicipioIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    MunicipioIndexComponent.prototype.remove = function () {
        var _this = this;
        if (!!(this.data.municipioId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                _this.messageService.removeConfirm(function () {
                    _this.municipioService.remove(_this.data).subscribe(function () {
                        _this.datatablesService.remove("dtMunicipio");
                    });
                });
            });
        }
    };
    MunicipioIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _municipio_service__WEBPACK_IMPORTED_MODULE_2__["MunicipioService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__["PermissoesUtilsService"] }
    ]; };
    MunicipioIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-municipio-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./municipio-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/municipio/municipio-index/municipio-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _municipio_service__WEBPACK_IMPORTED_MODULE_2__["MunicipioService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__["PermissoesUtilsService"]])
    ], MunicipioIndexComponent);
    return MunicipioIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_6__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/cadastro/municipio/municipio.constants.ts":
/*!*****************************************************************!*\
  !*** ./src/app/pages/cadastro/municipio/municipio.constants.ts ***!
  \*****************************************************************/
/*! exports provided: MunicipioConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MunicipioConstants", function() { return MunicipioConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var MunicipioConstants = /** @class */ (function () {
    function MunicipioConstants() {
        this.sisFormularioId = 25010;
        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.municipio";
        this.reportId = "CAD0105";
        this.tabela = "Municipio";
        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 MunicipioConstants;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/municipio/municipio.model.ts":
/*!*************************************************************!*\
  !*** ./src/app/pages/cadastro/municipio/municipio.model.ts ***!
  \*************************************************************/
/*! exports provided: Municipios */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Municipios", function() { return Municipios; });
/* 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 Municipios = /** @class */ (function (_super) {
    __extends(Municipios, _super);
    function Municipios() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return Municipios;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));



/***/ }),

/***/ "./src/app/pages/cadastro/municipio/municipio.module.ts":
/*!**************************************************************!*\
  !*** ./src/app/pages/cadastro/municipio/municipio.module.ts ***!
  \**************************************************************/
/*! exports provided: MunicipioModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MunicipioModule", function() { return MunicipioModule; });
/* 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 _municipio_index_municipio_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./municipio-index/municipio-index.component */ "./src/app/pages/cadastro/municipio/municipio-index/municipio-index.component.ts");
/* harmony import */ var _municipio_form_municipio_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./municipio-form/municipio-form.component */ "./src/app/pages/cadastro/municipio/municipio-form/municipio-form.component.ts");
/* harmony import */ var _municipio_routing_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./municipio.routing.module */ "./src/app/pages/cadastro/municipio/municipio.routing.module.ts");
/* harmony import */ var _municipio_filter_municipio_filter_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./municipio-filter/municipio-filter.component */ "./src/app/pages/cadastro/municipio/municipio-filter/municipio-filter.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 MunicipioModule = /** @class */ (function () {
    function MunicipioModule() {
    }
    MunicipioModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _municipio_routing_module__WEBPACK_IMPORTED_MODULE_4__["MunicipioRoutingModule"]],
            declarations: [_municipio_index_municipio_index_component__WEBPACK_IMPORTED_MODULE_2__["MunicipioIndexComponent"], _municipio_form_municipio_form_component__WEBPACK_IMPORTED_MODULE_3__["MunicipioFormComponent"], _municipio_filter_municipio_filter_component__WEBPACK_IMPORTED_MODULE_5__["MunicipioFilterComponent"]]
        })
    ], MunicipioModule);
    return MunicipioModule;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/municipio/municipio.routing.module.ts":
/*!**********************************************************************!*\
  !*** ./src/app/pages/cadastro/municipio/municipio.routing.module.ts ***!
  \**********************************************************************/
/*! exports provided: MunicipioRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MunicipioRoutingModule", function() { return MunicipioRoutingModule; });
/* 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 _municipio_index_municipio_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./municipio-index/municipio-index.component */ "./src/app/pages/cadastro/municipio/municipio-index/municipio-index.component.ts");
/* harmony import */ var _municipio_form_municipio_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./municipio-form/municipio-form.component */ "./src/app/pages/cadastro/municipio/municipio-form/municipio-form.component.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../config/enumerables */ "./src/app/config/enumerables.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var MRoutes = [
    {
        path: "",
        component: _municipio_index_municipio_index_component__WEBPACK_IMPORTED_MODULE_2__["MunicipioIndexComponent"],
        data: { breadcrumb: "Municipio", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].index } }
    },
    {
        path: "create",
        component: _municipio_form_municipio_form_component__WEBPACK_IMPORTED_MODULE_3__["MunicipioFormComponent"],
        data: {
            breadcrumb: "Municipio",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id/:estadoId",
        component: _municipio_form_municipio_form_component__WEBPACK_IMPORTED_MODULE_3__["MunicipioFormComponent"],
        data: {
            breadcrumb: "Municipio",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id/:estadoId",
        component: _municipio_form_municipio_form_component__WEBPACK_IMPORTED_MODULE_3__["MunicipioFormComponent"],
        data: {
            breadcrumb: "Municipio",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].detail }
        }
    }
];
var MunicipioRoutingModule = /** @class */ (function () {
    function MunicipioRoutingModule() {
    }
    MunicipioRoutingModule = __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"]],
        })
    ], MunicipioRoutingModule);
    return MunicipioRoutingModule;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-cadastro-municipio-municipio-module.js.map