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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/tipo-de-destinatario/tipo-de-destinatario-form/tipo-de-destinatario-form.component.html":
/*!**************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/tipo-de-destinatario/tipo-de-destinatario-form/tipo-de-destinatario-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\"\r\n                      [formAction]=\"actionForm\"\r\n                      [itemData]=\"data.tipoDeDestinatarioId\"\r\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"row\">\r\n    <div class=\"col-12\">\r\n        <div class=\"section-comand-bar\">\r\n            <app-form-legenda></app-form-legenda>\r\n            <div class=\"card-body widget-body\">\r\n                <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\r\n                    <app-validacoes></app-validacoes>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-2 col-md-3 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"tipoDeDestinatarioId\" class=\"required\">{{'labels.tipo' |\r\n                                    translate}}</label>\r\n                                <input id=\"tipoDeDestinatarioId\"\r\n                                       name=\"tipoDeDestinatarioId\"\r\n                                       [(ngModel)]=\"data.tipoDeDestinatarioId\" class=\"form-control form-control-sm\"\r\n                                       required type=\"text\" [disabled]=\"!funcoesService.isCreate(actionForm)\"\r\n                                       autofocus\r\n                                       maxlength=\"1\"\r\n                                       data-title=\"{{'labels.tipo' | translate}}\">\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                            <div class=\"form-group\">\r\n                                <label for=\"descrTipoDest\" class=\"required\">{{'labels.descricao' |\r\n                                    translate}}</label>\r\n                                <input id=\"descrTipoDest\" name=\"descrTipoDest\" [(ngModel)]=\"data.descrTipoDest\"\r\n                                       class=\"form-control form-control-sm\" type=\"text\"\r\n                                       [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                       data-title=\"{{'labels.descricao' | translate}}\"\r\n                                       required\r\n                                       maxlength=\"15\">\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-2 col-md-6 col-sm-12\">\r\n                            <div class=\"form-group\">\r\n                                <label for=\"codDestI\">{{'labels.codDestI' | translate}}</label>\r\n                                <input id=\"codDestI\" name=\"codDestI\" [(ngModel)]=\"data.codDestI\"\r\n                                       class=\"form-control form-control-sm\" type=\"text\"\r\n                                       [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-2 col-md-6 col-sm-12\">\r\n                            <div class=\"form-group\">\r\n                                <label for=\"codDestI\">{{'labels.codDestF' |\r\n                                    translate}}</label>\r\n                                <input id=\"codDestF\" name=\"codDestF\" [(ngModel)]=\"data.codDestF\"\r\n                                       class=\"form-control form-control-sm\" type=\"text\"\r\n                                       [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"flagCli\" name=\"flagCli\" [ngModel]=\"data.flagCli === 'S'\"\r\n                                       (ngModelChange)=\"data.flagCli=$event?'S':'N'\"\r\n                                       class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                       (change)=\"montaCamposObrigatoriosCliente()\"\r\n                                       [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                <label class=\"custom-control-label\" for=\"flagCli\">{{'labels.flagCli' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"flagMot\" name=\"flagMot\" [ngModel]=\"data.flagMot === 'S'\"\r\n                                       (ngModelChange)=\"data.flagMot=$event?'S':'N'\"\r\n                                       class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                       [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                <label class=\"custom-control-label\" for=\"flagMot\">{{'labels.flagMot' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n\r\n                        <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"flagNav\" name=\"flagNav\" [ngModel]=\"data.flagNav === 'S'\"\r\n                                       (ngModelChange)=\"data.flagNav=$event?'S':'N'\"\r\n                                       class=\"custom-control-input checkbox-success\"\r\n                                       type=\"checkbox\" [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                <label class=\"custom-control-label\" for=\"flagNav\">{{'labels.flagNav' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"flagAge\" name=\"flagAge\"\r\n                                       [ngModel]=\"data.flagAge === 'S'\"\r\n                                       (ngModelChange)=\"data.flagAge=$event?'S':'N'\"\r\n                                       class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                       [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                <label class=\"custom-control-label\" for=\"flagAge\">{{'labels.flagAge' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"flagFor\" name=\"flagFor\" [ngModel]=\"data.flagFor === 'S'\"\r\n                                       (ngModelChange)=\"data.flagFor=$event?'S':'N'\"\r\n                                       class=\"custom-control-input checkbox-success\"\r\n                                       type=\"checkbox\" [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                <label class=\"custom-control-label\" for=\"flagFor\">{{'labels.flagFor' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"flagCom\" name=\"flagCom\"\r\n                                       [ngModel]=\"data.flagCom === 'S'\"\r\n                                       (ngModelChange)=\"data.flagCom=$event?'S':'N'\"\r\n                                       class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                       [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                <label class=\"custom-control-label\" for=\"flagCom\">{{'labels.flagCom' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"flagUsi\" name=\"flagUsi\" [ngModel]=\"data.flagUsi === 'S'\"\r\n                                       (ngModelChange)=\"data.flagUsi=$event?'S':'N'\"\r\n                                       class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                       [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                <label class=\"custom-control-label\" for=\"flagUsi\">{{'labels.flagUsi' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"flagArm\" name=\"flagArm\" [ngModel]=\"data.flagArm === 'S'\"\r\n                                       (ngModelChange)=\"data.flagArm=$event?'S':'N'\"\r\n                                       class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                       [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                <label class=\"custom-control-label\" for=\"flagArm\">{{'labels.flagArm' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"flagRep\" name=\"flagRep\" [ngModel]=\"data.flagRep === 'S'\"\r\n                                       (ngModelChange)=\"data.flagRep=$event?'S':'N'\"\r\n                                       class=\"custom-control-input checkbox-success\"\r\n                                       type=\"checkbox\" [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                <label class=\"custom-control-label\" for=\"flagRep\">{{'labels.flagRep' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"flagPro\" name=\"flagPro\"\r\n                                       [ngModel]=\"data.flagPro === 'S'\"\r\n                                       (ngModelChange)=\"data.flagPro=$event?'S':'N'\"\r\n                                       class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                       [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                <label class=\"custom-control-label\" for=\"flagPro\">{{'labels.flagPro' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"flagProf\" name=\"flagProf\" [ngModel]=\"data.flagProf === 'S'\"\r\n                                       (ngModelChange)=\"data.flagProf=$event?'S':'N'\"\r\n                                       class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                       [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                <label class=\"custom-control-label\" for=\"flagProf\">{{'labels.flagProf' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"flagSoc\" name=\"flagSoc\" [ngModel]=\"data.flagSoc === 'S'\"\r\n                                       (ngModelChange)=\"data.flagSoc=$event?'S':'N'\"\r\n                                       class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                       [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                <label class=\"custom-control-label\" for=\"flagSoc\">{{'labels.flagSoc' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"flagTra\" name=\"flagTra\" [ngModel]=\"data.flagTra === 'S'\"\r\n                                       (ngModelChange)=\"data.flagTra=$event?'S':'N'\"\r\n                                       class=\"custom-control-input checkbox-success\"\r\n                                       type=\"checkbox\" [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                <label class=\"custom-control-label\" for=\"flagTra\">{{'labels.flagTra' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"flagDes\" name=\"flagDes\"\r\n                                       [ngModel]=\"data.flagDes === 'S'\"\r\n                                       (ngModelChange)=\"data.flagDes=$event?'S':'N'\"\r\n                                       class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                       [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                <label class=\"custom-control-label\" for=\"flagDes\">{{'labels.flagDes' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"flagSto\" name=\"flagSto\" [ngModel]=\"data.flagSto === 'S'\"\r\n                                       (ngModelChange)=\"data.flagSto=$event?'S':'N'\"\r\n                                       class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                       [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                <label class=\"custom-control-label\" for=\"flagSto\">{{'labels.flagSto' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"flagIns\" name=\"flagIns\" [ngModel]=\"data.flagIns === 'S'\"\r\n                                       (ngModelChange)=\"data.flagIns=$event?'S':'N'\"\r\n                                       class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                       [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                <label class=\"custom-control-label\" for=\"flagIns\">{{'labels.flagIns' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"flagOut\" name=\"flagOut\" [ngModel]=\"data.flagOut === 'S'\"\r\n                                       (ngModelChange)=\"data.flagOut=$event?'S':'N'\"\r\n                                       class=\"custom-control-input checkbox-success\"\r\n                                       type=\"checkbox\" [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                <label class=\"custom-control-label\" for=\"flagOut\">{{'labels.flagOut' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"flagDep\" name=\"flagDep\" [ngModel]=\"data.flagDep === 'S'\"\r\n                                       (ngModelChange)=\"data.flagDep=$event?'S':'N'\"\r\n                                       class=\"custom-control-input checkbox-success\"\r\n                                       type=\"checkbox\" [disabled]=\"funcoesService.isDetail(actionForm)\"> <label\r\n                                    class=\"custom-control-label\" for=\"flagDep\">{{'labels.flagDep' |\r\n                                translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"flagTer\" name=\"flagTer\" [ngModel]=\"data.flagTer === 'S'\"\r\n                                       (ngModelChange)=\"data.flagTer=$event?'S':'N'\"\r\n                                       class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                       [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                <label class=\"custom-control-label\" for=\"flagTer\">{{'labels.flagTer' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"flagCon\" name=\"flagCon\" [ngModel]=\"data.flagCon === 'S'\"\r\n                                       (ngModelChange)=\"data.flagCon=$event?'S':'N'\"\r\n                                       class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                       [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                <label class=\"custom-control-label\" for=\"flagCon\">{{'labels.flagCon' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <br/>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-12\">\r\n                            <div class=\"card\">\r\n                                <div class=\"card-header\">\r\n                                    <span for=\"camposObrigatorio\">{{'labels.camposObrigatorio' |\r\n                                        translate}}</span>\r\n                                </div>\r\n                                <div class=\"card-body\">\r\n                                    <div class=\"col-12\">\r\n                                        <div class=\"row\">\r\n                                            <div class=\"col-lg-3 col-md-3 col-sm-12\"\r\n                                                 *ngFor=\"let item of constantes.camposObrigatorios; let i = index;\">\r\n                                                <div class=\"custom-control custom-checkbox\">\r\n                                                    <input id=\"camposObrigatorios_{{item.descricao}}\"\r\n                                                           name=\"camposObrigatorios_{{item.descricao}}\"\r\n                                                           [(ngModel)]=\"item.checked\"\r\n                                                           class=\"custom-control-input checkbox-success\"\r\n                                                           type=\"checkbox\"\r\n                                                           [disabled]=\"funcoesService.isDetail(actionForm) || (funcoesService.isEdit(actionForm)  && podeAlterarCamposObrigatorios === false)\">\r\n                                                    <label class=\"custom-control-label\"\r\n                                                           for=\"camposObrigatorios_{{item.descricao}}\">{{item.descricao}}</label>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"clearfix\">&nbsp;</div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-4\">\r\n                                      <span *ngIf=\"data.sisCampoAdds\">\r\n                                        <div *ngFor=\"let d of data.sisCampoAdds\" [class.col-lg-6]=\"!d.colunas\">\r\n                                          <app-campos-adicionais name=\"{{d.campo}}\" [sisCampoAdd]=\"d\"\r\n                                                                 [(ngModel)]=\"d.valorCampo\"\r\n                                                                 [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                                                 [required]=\"d.obrigatorio === 'S'\"></app-campos-adicionais>\r\n                                        </div>\r\n                                      </span>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-12\">\r\n                                    <div class=\"form-group\">\r\n                                        <button class=\"btn btn-success mr-2\" type=\"submit\"\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                            {{ 'buttons.salvar' | translate }}\r\n                                        </button>\r\n                                        <button class=\"btn btn-success\" (click)=\"saveAndCreate(f)\" type=\"button\"\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">{{ 'buttons.salvarNovo' | translate }}</button>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </form>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/tipo-de-destinatario/tipo-de-destinatario-index/tipo-de-destinatario-index.component.html":
/*!****************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/tipo-de-destinatario/tipo-de-destinatario-index/tipo-de-destinatario-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\"\r\n                      [formAction]=\"actionForm\"\r\n                      [itemData]=\"data.tipoDeDestinatarioId\"\r\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <table id=\"dtTipoDeDestinatario\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\r\n</div>\r\n\r\n<app-propriedades></app-propriedades>\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoDeDestinatarioFormComponent", function() { return TipoDeDestinatarioFormComponent; });
/* 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 _tipo_de_destinatario_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../tipo-de-destinatario.model */ "./src/app/pages/cadastro/tipo-de-destinatario/tipo-de-destinatario.model.ts");
/* harmony import */ var _tipo_de_destinatario_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../tipo-de-destinatario.constants */ "./src/app/pages/cadastro/tipo-de-destinatario/tipo-de-destinatario.constants.ts");
/* harmony import */ var _tipo_de_destinatario_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../tipo-de-destinatario.service */ "./src/app/pages/cadastro/tipo-de-destinatario/tipo-de-destinatario.service.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");
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 TipoDeDestinatarioFormComponent = /** @class */ (function (_super) {
    __extends(TipoDeDestinatarioFormComponent, _super);
    function TipoDeDestinatarioFormComponent(router, messageService, activatedRoute, tipoDeDestinatarioService, funcoesService, permissoesUtils) {
        var _this = _super.call(this, new _tipo_de_destinatario_constants__WEBPACK_IMPORTED_MODULE_7__["TipoDeDestinatarioConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.tipoDeDestinatarioService = tipoDeDestinatarioService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _tipo_de_destinatario_model__WEBPACK_IMPORTED_MODULE_6__["TipoDeDestinatario"]();
        _this.mensagens = [];
        _this.constantes = new _tipo_de_destinatario_constants__WEBPACK_IMPORTED_MODULE_7__["TipoDeDestinatarioConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.podeAlterarCamposObrigatorios = false;
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    TipoDeDestinatarioFormComponent.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");
            if (id) {
                _this.tipoDeDestinatarioService.getById(id).subscribe(function (resp) {
                    _this.data = resp;
                    if (_this.data.campos !== "") {
                        var campos = _this.data.campos.split(',');
                        campos.forEach(function (e) {
                            var i = _this.constantes.camposObrigatorios.findIndex(function (x) { return x.id === e; });
                            _this.constantes.camposObrigatorios[i].checked = true;
                        });
                    }
                    _this.verificaAlteraCamposObrigatorios();
                });
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    TipoDeDestinatarioFormComponent.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_4__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.data.logRotina = "Manutenção de Tipo de Destinatario";
        this.data.campos = "";
        this.constantes.camposObrigatorios.forEach(function (i) {
            if (i.checked) {
                if (_this.data.campos === "" || _this.funcoesService.isUndefinedOrNull(_this.data.campos)) {
                    _this.data.campos = i.id;
                }
                else {
                    _this.data.campos += "," + i.id;
                }
            }
        });
        this.tipoDeDestinatarioService
            .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_4__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.tipoDeDestinatario");
                if (create) {
                    _this.data = new _tipo_de_destinatario_model__WEBPACK_IMPORTED_MODULE_6__["TipoDeDestinatario"]();
                    _this.constantes.camposObrigatorios.forEach(function (i) {
                        i.checked = false;
                    });
                    _this.router.navigate([_this.target + "/cadastro/tipoDeDestinatario/create"]);
                }
                else {
                    _this.back();
                }
            }
        });
    };
    TipoDeDestinatarioFormComponent.prototype.edit = function () {
        this.router.navigate([this.target + "/cadastro/tipoDeDestinatario", "edit", this.data.tipoDeDestinatarioId]);
    };
    TipoDeDestinatarioFormComponent.prototype.back = function () {
        this.router.navigate([this.target + "/cadastro/tipoDeDestinatario"]);
    };
    TipoDeDestinatarioFormComponent.prototype.getCamposAdicionais = function () {
        var _this = this;
        this.funcoesService.camposAdicionais
            .get(this.constantes.sisFormularioId)
            .subscribe(function (data) {
            _this.data.sisCampoAdds = data;
        });
    };
    TipoDeDestinatarioFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    TipoDeDestinatarioFormComponent.prototype.montaCamposObrigatoriosCliente = function () {
        var _this = this;
        var idsCamposObrigatoriosCliente = ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15"];
        idsCamposObrigatoriosCliente.forEach(function (i) {
            var campo = _this.constantes.camposObrigatorios.find(function (d) { return d.id == i; });
            if (campo) {
                campo.checked = _this.data.flagCli === "S";
            }
        });
    };
    TipoDeDestinatarioFormComponent.prototype.verificaAlteraCamposObrigatorios = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 8, function () {
            _this.podeAlterarCamposObrigatorios = true;
        }, function () {
            _this.podeAlterarCamposObrigatorios = false;
        });
    };
    TipoDeDestinatarioFormComponent.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: _tipo_de_destinatario_service__WEBPACK_IMPORTED_MODULE_8__["TipoDeDestinatarioService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] }
    ]; };
    TipoDeDestinatarioFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-tipo-de-destinatario-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./tipo-de-destinatario-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/tipo-de-destinatario/tipo-de-destinatario-form/tipo-de-destinatario-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"],
            _tipo_de_destinatario_service__WEBPACK_IMPORTED_MODULE_8__["TipoDeDestinatarioService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"]])
    ], TipoDeDestinatarioFormComponent);
    return TipoDeDestinatarioFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoDeDestinatarioIndexComponent", function() { return TipoDeDestinatarioIndexComponent; });
/* 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_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_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 _tipo_de_destinatario_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../tipo-de-destinatario.model */ "./src/app/pages/cadastro/tipo-de-destinatario/tipo-de-destinatario.model.ts");
/* harmony import */ var _tipo_de_destinatario_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../tipo-de-destinatario.constants */ "./src/app/pages/cadastro/tipo-de-destinatario/tipo-de-destinatario.constants.ts");
/* harmony import */ var _tipo_de_destinatario_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../tipo-de-destinatario.service */ "./src/app/pages/cadastro/tipo-de-destinatario/tipo-de-destinatario.service.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");
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 TipoDeDestinatarioIndexComponent = /** @class */ (function (_super) {
    __extends(TipoDeDestinatarioIndexComponent, _super);
    function TipoDeDestinatarioIndexComponent(router, tipoDeDestinatarioService, datatablesService, messageService, funcoesService, permissoesUtils) {
        var _this = _super.call(this, new _tipo_de_destinatario_constants__WEBPACK_IMPORTED_MODULE_7__["TipoDeDestinatarioConstants"](), funcoesService) || this;
        _this.router = router;
        _this.tipoDeDestinatarioService = tipoDeDestinatarioService;
        _this.datatablesService = datatablesService;
        _this.messageService = messageService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _tipo_de_destinatario_model__WEBPACK_IMPORTED_MODULE_6__["TipoDeDestinatario"]();
        _this.constantes = new _tipo_de_destinatario_constants__WEBPACK_IMPORTED_MODULE_7__["TipoDeDestinatarioConstants"]();
        _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;
    }
    TipoDeDestinatarioIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _this.refresh();
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    TipoDeDestinatarioIndexComponent.prototype.create = function () {
        this.router.navigate([this.target + "/cadastro/tipoDeDestinatario/create"]);
    };
    TipoDeDestinatarioIndexComponent.prototype.edit = function () {
        this.router.navigate([this.target + "/cadastro/tipoDeDestinatario", "edit", this.data.tipoDeDestinatarioId]);
    };
    TipoDeDestinatarioIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    TipoDeDestinatarioIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    TipoDeDestinatarioIndexComponent.prototype.detail = function () {
        this.router.navigate([this.target + "/cadastro/tipoDeDestinatario", "detail", this.data.tipoDeDestinatarioId]);
    };
    TipoDeDestinatarioIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.tipoDeDestinatarioService.get().subscribe(function (resp) {
            var columns = [
                _this.datatablesService.getDataString("tipoDeDestinatarioId", "tipo"),
                _this.datatablesService.getDataString("descrTipoDest", "descricao"),
                _this.datatablesService.getDataString("flagCli", "flagCli"),
                _this.datatablesService.getDataString("flagFor", "flagFor"),
                _this.datatablesService.getDataString("flagRep", "flagRep"),
                _this.datatablesService.getDataString("flagCon", "flagCon"),
                _this.datatablesService.getDataString("flagTra", "flagTra"),
                _this.datatablesService.getDataString("flagDep", "flagDep"),
                _this.datatablesService.getDataString("codDestI", "codDestI"),
                _this.datatablesService.getDataString("codDestF", "codDestF")
            ];
            _this.datatablesService.datatable("dtTipoDeDestinatario", columns, resp, function (aData) {
                _this.data = aData;
            });
        });
    };
    TipoDeDestinatarioIndexComponent.prototype.remove = function () {
        var _this = this;
        if (!!(this.data.tipoDeDestinatarioId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                _this.messageService.removeConfirm(function () {
                    _this.tipoDeDestinatarioService.remove(_this.data).subscribe(function () {
                        _this.datatablesService.remove("dtTipoDeDestinatario");
                    });
                });
            });
        }
    };
    TipoDeDestinatarioIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _tipo_de_destinatario_service__WEBPACK_IMPORTED_MODULE_8__["TipoDeDestinatarioService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { 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"] }
    ]; };
    TipoDeDestinatarioIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-tipo-de-destinatario-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./tipo-de-destinatario-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/tipo-de-destinatario/tipo-de-destinatario-index/tipo-de-destinatario-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _tipo_de_destinatario_service__WEBPACK_IMPORTED_MODULE_8__["TipoDeDestinatarioService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"]])
    ], TipoDeDestinatarioIndexComponent);
    return TipoDeDestinatarioIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/cadastro/tipo-de-destinatario/tipo-de-destinatario.constants.ts":
/*!***************************************************************************************!*\
  !*** ./src/app/pages/cadastro/tipo-de-destinatario/tipo-de-destinatario.constants.ts ***!
  \***************************************************************************************/
/*! exports provided: TipoDeDestinatarioConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoDeDestinatarioConstants", function() { return TipoDeDestinatarioConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var TipoDeDestinatarioConstants = /** @class */ (function () {
    function TipoDeDestinatarioConstants() {
        this.sisFormularioId = 25026;
        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" },
            { sisFormularioId: this.sisFormularioId, libRotina: 8, acao: "labels.alteraObrigatorios" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.tipoDeDestinatario";
        this.reportId = "CAD0102";
        this.tabela = "tipoDeDestinatario";
        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.camposObrigatorios = [
            { id: "01", descricao: "Endereço", checked: false },
            { id: "05", descricao: "Inscrição Estadual", checked: false },
            { id: "09", descricao: "Origem do Cliente", checked: false },
            { id: "13", descricao: "Bairro", checked: false },
            { id: "02", descricao: "Cep", checked: false },
            { id: "06", descricao: "Telefone", checked: false },
            { id: "10", descricao: "Cond.Pagamento", checked: false },
            { id: "14", descricao: "E-mail", checked: false },
            { id: "03", descricao: "Município", checked: false },
            { id: "07", descricao: "Tabela de Preço", checked: false },
            { id: "11", descricao: "Conta Corrente", checked: false },
            { id: "15", descricao: "Grupo de Cliente", checked: false },
            { id: "04", descricao: "Cnpj/Cpf", checked: false },
            { id: "08", descricao: "Ramo do Cliente", checked: false },
            { id: "12", descricao: "Complemento", checked: false },
        ];
    }
    return TipoDeDestinatarioConstants;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/tipo-de-destinatario/tipo-de-destinatario.module.ts":
/*!************************************************************************************!*\
  !*** ./src/app/pages/cadastro/tipo-de-destinatario/tipo-de-destinatario.module.ts ***!
  \************************************************************************************/
/*! exports provided: TipoDeDestinatarioModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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





var TipoDeDestinatarioModule = /** @class */ (function () {
    function TipoDeDestinatarioModule() {
    }
    TipoDeDestinatarioModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _tipo_de_destinatario_routing_module__WEBPACK_IMPORTED_MODULE_4__["TipoDeDestinatarioRoutingModule"]],
            declarations: [_tipo_de_destinatario_index_tipo_de_destinatario_index_component__WEBPACK_IMPORTED_MODULE_2__["TipoDeDestinatarioIndexComponent"], _tipo_de_destinatario_form_tipo_de_destinatario_form_component__WEBPACK_IMPORTED_MODULE_3__["TipoDeDestinatarioFormComponent"]]
        })
    ], TipoDeDestinatarioModule);
    return TipoDeDestinatarioModule;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/tipo-de-destinatario/tipo-de-destinatario.routing.module.ts":
/*!********************************************************************************************!*\
  !*** ./src/app/pages/cadastro/tipo-de-destinatario/tipo-de-destinatario.routing.module.ts ***!
  \********************************************************************************************/
/*! exports provided: TipoDeDestinatarioRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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





var MRoutes = [
    {
        path: "",
        component: _tipo_de_destinatario_index_tipo_de_destinatario_index_component__WEBPACK_IMPORTED_MODULE_4__["TipoDeDestinatarioIndexComponent"],
        data: { breadcrumb: "TipoDeDestinatario", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create",
        component: _tipo_de_destinatario_form_tipo_de_destinatario_form_component__WEBPACK_IMPORTED_MODULE_3__["TipoDeDestinatarioFormComponent"],
        data: {
            breadcrumb: "TipoDeDestinatario",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: _tipo_de_destinatario_form_tipo_de_destinatario_form_component__WEBPACK_IMPORTED_MODULE_3__["TipoDeDestinatarioFormComponent"],
        data: {
            breadcrumb: "TipoDeDestinatario",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _tipo_de_destinatario_form_tipo_de_destinatario_form_component__WEBPACK_IMPORTED_MODULE_3__["TipoDeDestinatarioFormComponent"],
        data: {
            breadcrumb: "TipoDeDestinatario",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var TipoDeDestinatarioRoutingModule = /** @class */ (function () {
    function TipoDeDestinatarioRoutingModule() {
    }
    TipoDeDestinatarioRoutingModule = __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"]]
        })
    ], TipoDeDestinatarioRoutingModule);
    return TipoDeDestinatarioRoutingModule;
}());



/***/ })

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