(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-configuracoes-interface-nfse-interface-nfse-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/configuracoes/interface-nfse/interface-nfse-form/interface-nfse-form.component.html":
/*!*************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/configuracoes/interface-nfse/interface-nfse-form/interface-nfse-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\" [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <div class=\"section-comand-bar\">\n            <app-form-legenda></app-form-legenda>\n            <div class=\"card-body widget-body\">\n                <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"_onSubmit(f)\">\n                    <app-validacoes></app-validacoes>\n                    <div class=\"row\">\n                        <div class=\"col-md-9 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"urlLinkNfeSP\">{{'labels.link' | translate}}</label>\n                                <input id=\"urlLinkNfeSP\" name=\"urlLinkNfeSP\" [(ngModel)]=\"data.linkNfeSP\"\n                                    maxlength=\"200\" class=\"form-control form-control-sm\" type=\"text\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"clearfix\">&nbsp;</div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-5 col-md-9 col-md-12\">\n                            <div class=\"card\">\n                                <div class=\"col-lg-12 checkbox-inline-top\">\n                                    <div class=\"custom-control custom-checkbox\">\n                                        <input id=\"boletoNFE\" name=\"boletoNFE\" [ngModel]=\"data.boletoNFE === 'S'\"\n                                            (ngModelChange)=\"data.boletoNFE=$event?'S':'N'\"\n                                            class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                        <label class=\"custom-control-label\" for=\"boletoNFE\">{{'labels.boletoNFE' |\n                                            translate}}</label>\n                                    </div>\n                                </div>\n                                <div class=\"col-lg-12 checkbox-inline-middle\">\n                                    <div class=\"custom-control custom-checkbox\">\n                                        <input id=\"ambienteNFSe\" name=\"ambienteNFSe\"\n                                            [ngModel]=\"data.ambienteNFSe === '2'\"\n                                            (ngModelChange)=\"data.ambienteNFSe=$event?'2':'1'\"\n                                            class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                        <label class=\"custom-control-label\" for=\"ambienteNFSe\">{{'labels.ambienteNFSe' |\n                                            translate}}</label>\n                                    </div>\n                                </div>\n                                <div class=\"col-lg-12 checkbox-inline-bottom\">\n                                    <div class=\"custom-control custom-checkbox\">\n                                        <input id=\"rPSConfirmacao\" name=\"rPSConfirmacao\"\n                                            [ngModel]=\"data.rPSConfirmacao === 'S'\"\n                                            (ngModelChange)=\"data.rPSConfirmacao=$event?'S':'N'\"\n                                            class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                        <label class=\"custom-control-label\"\n                                            for=\"rPSConfirmacao\">{{'labels.rPSConfirmacao' |\n                                            translate}}</label>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-3 col-md-8 col-md-12\">\n                            <app-card-container tituloCard=\"senhaPrefeitura\">\n                                <div class=\"card-body\">\n                                    <div class=\"row\">\n                                        <div class=\"col-4 linha input-inline-cut-top\">\n                                            <label for=\"usuarioNFSe\">{{'labels.usuario' | translate}}</label>\n                                        </div>\n                                        <div class=\"col-7 input-inline-cut-top\">\n                                            <input id=\"usuarioNFSe\" name=\"usuarioNFSe\" [(ngModel)]=\"data.usuarioNFSe\"\n                                                [disabled]=\"enabledTipoNFSe\" maxlength=\"20\"\n                                                class=\"form-control form-control-sm\" type=\"text\">\n                                        </div>\n                                    </div>\n                                    <div class=\"row\">\n                                        <div class=\"col-4 linha input-inline-cut-bottom\">\n                                            <label for=\"senhaNFSe\">{{'labels.senha' | translate}}</label>\n                                        </div>\n                                        <div class=\"col-8 input-inline-cut-bottom\">\n                                            <input id=\"senhaNFSe\" name=\"senhaNFSe\" [(ngModel)]=\"data.senhaNFSe\"\n                                                maxlength=\"20\" [disabled]=\"enabledTipoNFSe\"\n                                                class=\"form-control form-control-sm\" type=\"text\">\n                                        </div>\n                                    </div>\n                                </div>\n                            </app-card-container>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-2 col-md-6 col-md-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"tipoNFSe\">{{ \"labels.tipoNFSe\" | translate}}</label>\n                                <select id=\"tipoNFSe\" [(ngModel)]=\"data.tipoNFSe\" class=\"form-control form-control-sm\"\n                                    name=\"tipoNFSe\" data-title=\"{{ 'labels.tipoNFSe' | translate }}\">\n                                    <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\n                                    <option *ngFor=\"let t of tipoNFSe.get\" value=\"{{ t.id }}\">\n                                        {{ t.descricao }}\n                                    </option>\n                                </select>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-2 col-md-4 col-md-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"nFSeVersao\">{{ \"labels.versao\" | translate}}</label>\n                                <select id=\"nFSeVersao\" [(ngModel)]=\"data.nFSeVersao\" [disabled]=\"enabledNFSeVersao\"\n                                    class=\"form-control form-control-sm\" name=\"nFSeVersao\"\n                                    data-title=\"{{ 'labels.nFSeVersao' | translate }}\">\n                                    <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\n                                    <option *ngFor=\"let t of tipoVersao.get\" value=\"{{ t.id }}\">\n                                        {{ t.descricao }}\n                                    </option>\n                                </select>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"clearfix\">&nbsp;</div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3 col-md-6 col-md-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"gravaXMLNFSe\" name=\"gravaXMLNFSe\" [ngModel]=\"data.gravaXMLNFSe === 'S'\"\n                                    (ngModelChange)=\"data.gravaXMLNFSe=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"gravaXMLNFSe\">{{'labels.gravaXMLNFSe' |\n                                    translate}}</label>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"clearfix\">&nbsp;</div>\n                    <div class=\"row\">\n                        <div class=\"col-md-9 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"pastaXMLNFSe\" [class.required]=\"requiredPastaXMLNFSe\">{{'labels.pastaXML' |\n                                    translate}}</label>\n                                <input id=\"pastaXMLNFSe\" name=\"pastaXMLNFSe\" [(ngModel)]=\"data.pastaXMLNFSe\"\n                                    maxlength=\"200\" [required]=\"requiredPastaXMLNFSe\"\n                                    class=\"form-control form-control-sm\" type=\"text\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"clearfix\">&nbsp;</div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3 col-md-6 col-md-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"cmlSMTP\" name=\"cmlSMTP\" [ngModel]=\"data.cmlSMTP === 'S'\"\n                                    (ngModelChange)=\"data.cmlSMTP=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"cmlSMTP\">{{'labels.smtp' |\n                                    translate}}</label>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-4 col-md-9 col-md-12\">\n                            <div class=\"card\">\n                                <div class=\"row\">\n                                    <div class=\"col-3 linha label-inline-top\">\n                                        <label for=\"cmlSMTPEmail\">{{'labels.email' | translate}}</label>\n                                    </div>\n                                    <div class=\"col-7 input-inline-top\">\n                                        <input id=\"cmlSMTPEmail\" name=\"cmlSMTPEmail\" [(ngModel)]=\"data.cmlSMTPEmail\"\n                                            maxlength=\"250\" class=\"form-control form-control-sm\" type=\"text\">\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-3 linha label-inline-middle\">\n                                        <label for=\"cmlSMTPSenha\">{{'labels.senha' | translate}}</label>\n                                    </div>\n                                    <div class=\"col-7 input-inline-middle\">\n                                        <input id=\"cmlSMTPSenha\" name=\"cmlSMTPSenha\" [(ngModel)]=\"data.cmlSMTPSenha\"\n                                            maxlength=\"250\" class=\"form-control form-control-sm\" type=\"text\">\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-3 linha label-inline-bottom\">\n                                        <label for=\"cmlSMTPUsuario\">{{'labels.usuario' | translate}}</label>\n                                    </div>\n                                    <div class=\"col-7 input-inline-bottom\">\n                                        <input id=\"cmlSMTPUsuario\" name=\"cmlSMTPUsuario\"\n                                            [(ngModel)]=\"data.cmlSMTPUsuario\" maxlength=\"250\"\n                                            class=\"form-control form-control-sm\" type=\"text\">\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row mt-3\">\n                        <div class=\"col-12\">\n                            <div class=\"form-group\">\n                                <button class=\"btn btn-success mr-2\" type=\"submit\">\n                                    {{ 'buttons.salvar' | translate }}\n                                </button>\n                            </div>\n                        </div>\n                    </div>\n                </form>\n            </div>\n        </div>\n    </div>\n</div>\n\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./src/app/pages/configuracoes/interface-nfse/interface-nfse-form/interface-nfse-form.component.scss":
/*!***********************************************************************************************************!*\
  !*** ./src/app/pages/configuracoes/interface-nfse/interface-nfse-form/interface-nfse-form.component.scss ***!
  \***********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".checkbox-inline-top {\n  margin-top: 20px;\n  margin-left: 5px;\n}\n\n.checkbox-inline-middle {\n  margin-top: 10px;\n  margin-left: 5px;\n}\n\n.checkbox-inline-bottom {\n  margin-top: 10px;\n  margin-left: 5px;\n  margin-bottom: 20px;\n}\n\n.input-inline-cut-top {\n  margin-top: -10px;\n  margin-left: -5px;\n  margin-bottom: 5px;\n}\n\n.input-inline-cut-bottom {\n  margin-bottom: -10px;\n  margin-left: -5px;\n}\n\n.linha {\n  position: relative;\n  display: flex;\n  width: 30%;\n  top: 5px;\n}\n\n.label-inline-top {\n  margin-top: 15px;\n  margin-left: 15px;\n}\n\n.label-inline-middle {\n  margin-top: 5px;\n  margin-left: 15px;\n}\n\n.label-inline-bottom {\n  margin-top: 5px;\n  margin-left: 15px;\n  margin-bottom: 15px;\n}\n\n.input-inline-top {\n  margin-top: 15px;\n  margin-left: 15px;\n}\n\n.input-inline-middle {\n  margin-top: 5px;\n  margin-left: 15px;\n}\n\n.input-inline-bottom {\n  margin-top: 5px;\n  margin-left: 15px;\n  margin-bottom: 15px;\n}\n/*# sourceMappingURL=data:application/json;base64,  */");

/***/ }),

/***/ "./src/app/pages/configuracoes/interface-nfse/interface-nfse-form/interface-nfse-form.component.ts":
/*!*********************************************************************************************************!*\
  !*** ./src/app/pages/configuracoes/interface-nfse/interface-nfse-form/interface-nfse-form.component.ts ***!
  \*********************************************************************************************************/
/*! exports provided: InterfaceNfseFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InterfaceNfseFormComponent", function() { return InterfaceNfseFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/funcoes/configuracao/configuracao.model */ "./src/app/shared/services/funcoes/configuracao/configuracao.model.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _interface_nfse_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../interface-nfse.constants */ "./src/app/pages/configuracoes/interface-nfse/interface-nfse.constants.ts");
/* harmony import */ var _interface_nfse_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../interface-nfse.model */ "./src/app/pages/configuracoes/interface-nfse/interface-nfse.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};











var InterfaceNfseFormComponent = /** @class */ (function (_super) {
    __extends(InterfaceNfseFormComponent, _super);
    function InterfaceNfseFormComponent(messageService, configuracao, funcoesService, loginService, permissoesUtils, funcoes) {
        var _this = _super.call(this, new _interface_nfse_constants__WEBPACK_IMPORTED_MODULE_9__["InterfaceNfseConstants"](), funcoesService) || this;
        _this.messageService = messageService;
        _this.configuracao = configuracao;
        _this.funcoesService = funcoesService;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoes = funcoes;
        _this.data = new _interface_nfse_model__WEBPACK_IMPORTED_MODULE_10__["InterfaceNfse"]();
        _this.tipoNFSe = new _interface_nfse_model__WEBPACK_IMPORTED_MODULE_10__["TipoNFSe"]();
        _this.tipoVersao = new _interface_nfse_model__WEBPACK_IMPORTED_MODULE_10__["TipoVersao"]();
        _this.mensagens = [];
        _this.constantes = new _interface_nfse_constants__WEBPACK_IMPORTED_MODULE_9__["InterfaceNfseConstants"]();
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.data.filialId = _this.loginService.getLogin().filialId;
                _this.data.linkNfeSP = _this.configuracao.string("FAT", "LinkNfeSP");
                _this.data.boletoNFE = _this.configuracao.string("FAT", "BoletoNFE");
                _this.data.ambienteNFSe = _this.configuracao.string("FAT", "AmbienteNFSe");
                _this.data.rPSConfirmacao = _this.configuracao.string("FAT", "RPSConfirmacao");
                _this.data.tipoNFSe = _this.configuracao.string("FAT", "TipoNFSe");
                _this.data.nFSeVersao = _this.configuracao.string("FAT", "NFSeVersao");
                _this.data.usuarioNFSe = _this.configuracao.string("CML", "UsuarioNFSe");
                _this.data.senhaNFSe = _this.configuracao.string("CML", "SenhaNFSe");
                _this.data.gravaXMLNFSe = _this.configuracao.string("CML", "GravaXMLNFSe");
                _this.data.pastaXMLNFSe = _this.configuracao.string("CML", "PastaXMLNFSe");
                _this.data.cmlSMTP = _this.configuracao.string("CML", "CmlSMTP");
                _this.data.cmlSMTPEmail = _this.configuracao.string("CML", "CmlSMTPEmail");
                _this.data.cmlSMTPSenha = _this.configuracao.string("CML", "CmlSMTPSenha");
                _this.data.cmlSMTPUsuario = _this.configuracao.string("CML", "CmlSMTPUsuario");
            }
        };
        return _this;
    }
    InterfaceNfseFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _this.configuracao.getConfig({
                codRotina: _this.constantes.sisFormularioId,
                configs: _this.constantes.configuracoes
            }, _this.loadConfig);
        }, function () { return _this.permissoesUtils.back(); }, true);
    };
    InterfaceNfseFormComponent.prototype._onSubmit = function (form) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid)
            return;
        this.messageService.confirm("titles.interfaceNfse", "messages.updateConfigConfirm", null, function () { return _this.onSubmit(); });
    };
    InterfaceNfseFormComponent.prototype.onSubmit = function () {
        var _this = this;
        var object = new _shared_services_funcoes_configuracao_configuracao_model__WEBPACK_IMPORTED_MODULE_4__["Config"](this.constantes.sisFormularioId);
        object.setConfig(this.data.filialId, 'FAT', 'LinkNfeSP', this.data.linkNfeSP);
        object.setConfig(this.data.filialId, 'FAT', 'BoletoNFE', this.data.boletoNFE);
        object.setConfig(this.data.filialId, 'FAT', 'AmbienteNFSe', this.data.ambienteNFSe);
        object.setConfig(this.data.filialId, 'FAT', 'RPSConfirmacao', this.data.rPSConfirmacao);
        object.setConfig(this.data.filialId, 'FAT', 'TipoNFSe', this.data.tipoNFSe);
        object.setConfig(this.data.filialId, 'FAT', 'NFSeVersao', this.data.nFSeVersao);
        object.setConfig(this.data.filialId, 'CML', 'UsuarioNFSe', this.data.usuarioNFSe);
        object.setConfig(this.data.filialId, 'CML', 'SenhaNFSe', this.data.senhaNFSe);
        object.setConfig(this.data.filialId, 'CML', 'GravaXMLNFSe', this.data.gravaXMLNFSe);
        object.setConfig(this.data.filialId, 'CML', 'PastaXMLNFSe', this.data.pastaXMLNFSe);
        object.setConfig(this.data.filialId, 'CML', 'CmlSMTP', this.data.cmlSMTP);
        object.setConfig(this.data.filialId, 'CML', 'CmlSMTPEmail', this.data.cmlSMTPEmail);
        object.setConfig(this.data.filialId, 'CML', 'CmlSMTPSenha', this.data.cmlSMTPSenha);
        object.setConfig(this.data.filialId, 'CML', 'CmlSMTPUsuario', this.data.cmlSMTPUsuario);
        this.configuracao
            .save(object)
            .subscribe(function (result) {
            if (result.validationResult != null && !result.validationResult.isValid) {
                _this.mensagens = _this.messageService.validationResult(result.validationResult);
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.interfaceNfse", "messages.configuracaoDe");
            }
        });
    };
    InterfaceNfseFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    Object.defineProperty(InterfaceNfseFormComponent.prototype, "enabledTipoNFSe", {
        get: function () {
            if (!this.funcoes.isNotUndefinedOrNull(this.data.tipoNFSe))
                return false;
            return (this.data.tipoNFSe === "8" || this.data.tipoNFSe === "9" || this.data.tipoNFSe === "10") ? true : false;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(InterfaceNfseFormComponent.prototype, "enabledNFSeVersao", {
        get: function () {
            if (!this.funcoes.isNotUndefinedOrNull(this.data.tipoNFSe))
                return false;
            if (this.data.tipoNFSe === "4" || this.data.tipoNFSe === "7") {
                this.data.nFSeVersao = 0;
                return true;
            }
            return false;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(InterfaceNfseFormComponent.prototype, "requiredPastaXMLNFSe", {
        get: function () {
            if (!this.funcoes.isNotUndefinedOrNull(this.data.gravaXMLNFSe))
                return false;
            return (this.data.gravaXMLNFSe === "S") ? true : false;
        },
        enumerable: true,
        configurable: true
    });
    InterfaceNfseFormComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_3__["ConfiguracaoFacade"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] }
    ]; };
    InterfaceNfseFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-interface-nfse-form',
            template: __importDefault(__webpack_require__(/*! raw-loader!./interface-nfse-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/configuracoes/interface-nfse/interface-nfse-form/interface-nfse-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./interface-nfse-form.component.scss */ "./src/app/pages/configuracoes/interface-nfse/interface-nfse-form/interface-nfse-form.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_3__["ConfiguracaoFacade"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"]])
    ], InterfaceNfseFormComponent);
    return InterfaceNfseFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_1__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/configuracoes/interface-nfse/interface-nfse.constants.ts":
/*!********************************************************************************!*\
  !*** ./src/app/pages/configuracoes/interface-nfse/interface-nfse.constants.ts ***!
  \********************************************************************************/
/*! exports provided: InterfaceNfseConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InterfaceNfseConstants", function() { return InterfaceNfseConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var InterfaceNfseConstants = /** @class */ (function () {
    function InterfaceNfseConstants() {
        this.sisFormularioId = 35109;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.pemissoes" },
        ];
        this.configuracoes = [];
        this.nomeForm = "titles.interfaceNfse";
        this.listaForm = [
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
        this.configuracoes = [
            {
                sistema: "FAT",
                parametros: [
                    "LinkNfeSP",
                    "BoletoNFE",
                    "AmbienteNFSe",
                    "RPSConfirmacao",
                    "TipoNFSe",
                    "NFSeVersao",
                ]
            },
            {
                sistema: "CML",
                parametros: [
                    "UsuarioNFSe",
                    "SenhaNFSe",
                    "GravaXMLNFSe",
                    "PastaXMLNFSe",
                    "CmlSMTP",
                    "CmlSMTPEmail",
                    "CmlSMTPSenha",
                    "CmlSMTPUsuario",
                ]
            }
        ];
    }
    return InterfaceNfseConstants;
}());



/***/ }),

/***/ "./src/app/pages/configuracoes/interface-nfse/interface-nfse.model.ts":
/*!****************************************************************************!*\
  !*** ./src/app/pages/configuracoes/interface-nfse/interface-nfse.model.ts ***!
  \****************************************************************************/
/*! exports provided: InterfaceNfse, TipoNFSe, TipoVersao */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

var TipoNFSe = /** @class */ (function () {
    function TipoNFSe() {
        this.get = [
            { id: "0", descricao: "NFSe - São Paulo" },
            { id: "1", descricao: "NFSe - Barueri" },
            { id: "2", descricao: "NFSe - Ginfes" },
            { id: "3", descricao: "NFSe - Ladário" },
            { id: "4", descricao: "NFSe - Candeias" },
            { id: "5", descricao: "NFSe - São Luis" },
            { id: "6", descricao: "NFSe - Teresina" },
            { id: "7", descricao: "NFSe - Triunfo" },
            { id: "8", descricao: "NFSe - Cubatão" },
            { id: "9", descricao: "NFSe - Rio Grande" },
            { id: "10", descricao: "NFSe - Paranaguá" }
        ];
    }
    return TipoNFSe;
}());

var TipoVersao = /** @class */ (function () {
    function TipoVersao() {
        this.get = [
            { id: "0", descricao: "1.00" },
            { id: "1", descricao: "2.02" }
        ];
    }
    return TipoVersao;
}());



/***/ }),

/***/ "./src/app/pages/configuracoes/interface-nfse/interface-nfse.module.ts":
/*!*****************************************************************************!*\
  !*** ./src/app/pages/configuracoes/interface-nfse/interface-nfse.module.ts ***!
  \*****************************************************************************/
/*! exports provided: InterfaceNfseModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InterfaceNfseModule", function() { return InterfaceNfseModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _interface_nfse_form_interface_nfse_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./interface-nfse-form/interface-nfse-form.component */ "./src/app/pages/configuracoes/interface-nfse/interface-nfse-form/interface-nfse-form.component.ts");
/* harmony import */ var _interface_nfse_routing_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./interface-nfse.routing.module */ "./src/app/pages/configuracoes/interface-nfse/interface-nfse.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 InterfaceNfseModule = /** @class */ (function () {
    function InterfaceNfseModule() {
    }
    InterfaceNfseModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [_interface_nfse_form_interface_nfse_form_component__WEBPACK_IMPORTED_MODULE_3__["InterfaceNfseFormComponent"]],
            imports: [
                _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_2__["SharedModule"],
                _interface_nfse_routing_module__WEBPACK_IMPORTED_MODULE_4__["InterfaceNfseRoutingModule"]
            ]
        })
    ], InterfaceNfseModule);
    return InterfaceNfseModule;
}());



/***/ }),

/***/ "./src/app/pages/configuracoes/interface-nfse/interface-nfse.routing.module.ts":
/*!*************************************************************************************!*\
  !*** ./src/app/pages/configuracoes/interface-nfse/interface-nfse.routing.module.ts ***!
  \*************************************************************************************/
/*! exports provided: InterfaceNfseRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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




var MRoutes = [
    {
        path: "",
        component: _interface_nfse_form_interface_nfse_form_component__WEBPACK_IMPORTED_MODULE_3__["InterfaceNfseFormComponent"],
        data: { breadcrumb: "interfaceNfse", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create } }
    }
];
var InterfaceNfseRoutingModule = /** @class */ (function () {
    function InterfaceNfseRoutingModule() {
    }
    InterfaceNfseRoutingModule = __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"]]
        })
    ], InterfaceNfseRoutingModule);
    return InterfaceNfseRoutingModule;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-configuracoes-interface-nfse-interface-nfse-module.js.map