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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/classificacao-fiscal/classificacao-fiscal-form/classificacao-fiscal-form.component.html":
/*!**************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/classificacao-fiscal/classificacao-fiscal-form/classificacao-fiscal-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\" [dropDownMenu]=\"\" [formAction]=\"actionForm\"\r\n    [itemData]=\"data.classificacaoFiscalId\">\r\n</app-menu-command-bar>\r\n\r\n<style>\r\n    @media screen and (max-width: 991px) {\r\n        div.custom-control.custom-checkbox {\r\n            margin-bottom: 1%;\r\n        }\r\n    }\r\n</style>\r\n\r\n<div class=\"row\">\r\n    <div class=\"col-lg-12\">\r\n        <div class=\"card\">\r\n            <div class=\"card-body widget-body\">\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                        <app-validacoes></app-validacoes>\r\n                        <div class=\"clearfix\">\r\n                            <ul class=\"nav nav-tabs\">\r\n                                <li class=\"nav-item\">\r\n                                    <a class=\"nav-link active show\" data-toggle=\"tab\" href=\"#da\">{{\"labels.dados\" |\r\n                                        translate\r\n                                        }}</a>\r\n                                </li>\r\n                                <li class=\"nav-item\"\r\n                                    *ngIf=\"data.classificacaoFiscalId && data.classificacaoFiscalId !== '' \">\r\n                                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#tb\">{{\r\n                                        \"labels.substituicaoTributaria\" | translate\r\n                                        }}</a>\r\n                                </li>\r\n                            </ul>\r\n                        </div>\r\n                        <div class=\"tab-content top\">\r\n                            <!-- ABA DADOS -->\r\n                            <div class=\"tab-pane active show\" id=\"da\">\r\n                                <div class=\"row\">\r\n                                    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\r\n                                        <div class=\"row\">\r\n                                            <div class=\"col-lg-2\">\r\n                                                <div class=\"form-group form-group-sm\">\r\n                                                    <label for=\"classificacaoFiscalId\"\r\n                                                        [class.required]=\"funcoesService.isCreate(actionForm)\">{{'labels.codigoNbm'\r\n                                                        | translate}}\r\n                                                    </label>\r\n                                                    <input id=\"classificacaoFiscalId\" name=\"classificacaoFiscalId\"\r\n                                                        [(ngModel)]=\"data.classificacaoFiscalId\"\r\n                                                        class=\"form-control form-control-sm\" type=\"text\" maxlength=\"8\"\r\n                                                        [disabled]=\"!funcoesService.isCreate(actionForm)\" required>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class=\"row\">\r\n                                            <div class=\"col-lg-6\">\r\n                                                <div class=\"form-group form-group-sm\">\r\n                                                    <label for=\"descrCodNbm\"\r\n                                                        [class.required]=\"true\">{{'labels.descrCodNbm' |\r\n                                                        translate}}</label>\r\n                                                    <input id=\"descrCodNbm\" name=\"descrCodNbm\"\r\n                                                        [(ngModel)]=\"data.descrCodNbm\"\r\n                                                        class=\"form-control form-control-sm\" type=\"text\" maxlength=\"20\"\r\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\" required>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class=\"row\">\r\n                                            <div class=\"col-lg-3\">\r\n                                                <div class=\"form-group form-group-sm\">\r\n                                                    <label for=\"aliqIcms\">{{'labels.aliqIcms' | translate}}</label>\r\n                                                    <input id=\"aliqIcms\" name=\"aliqIcms\" [(ngModel)]=\"data.aliqIcms\"\r\n                                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\r\n                                                        maxlength=\"5\"\r\n                                                        [options]=\"funcoesService.numberUtils.formatCurrency(2)\">\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"col-lg-4\">\r\n                                                <div class=\"form-group form-group-sm\">\r\n                                                    <label for=\"redBasIcms\">{{'labels.redBasIcms' | translate}}</label>\r\n                                                    <input id=\"redBasIcms\" name=\"redBasIcms\"\r\n                                                        [(ngModel)]=\"data.redBasIcms\"\r\n                                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\r\n                                                        maxlength=\"8\"\r\n                                                        [options]=\"funcoesService.numberUtils.formatCurrency(4)\">\r\n\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"col-lg-3\">\r\n                                                <div class=\"form-group form-group-sm\">\r\n                                                    <label for=\"aliqTrib\">{{'labels.aliqTrib' | translate}}</label>\r\n                                                    <input id=\"aliqTrib\" name=\"aliqTrib\" [(ngModel)]=\"data.aliqTrib\"\r\n                                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\r\n                                                        maxlength=\"5\"\r\n                                                        [options]=\"funcoesService.numberUtils.formatCurrency(2)\">\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class=\"row\">\r\n                                            <div class=\"col-lg-3\">\r\n                                                <div class=\"form-group form-group-sm\">\r\n                                                    <label for=\"aliqIpi\">{{'labels.aliqIpi' | translate}}</label>\r\n                                                    <input id=\"aliqIpi\" name=\"aliqIpi\" [(ngModel)]=\"data.aliqIpi\"\r\n                                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\r\n                                                        maxlength=\"6\"\r\n                                                        [options]=\"funcoesService.numberUtils.formatCurrency(2)\">\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"col-lg-4\">\r\n                                                <div class=\"form-group form-group-sm\">\r\n                                                    <label for=\"redBasIpi\">{{'labels.redBasIpi' | translate}}</label>\r\n                                                    <input id=\"redBasIpi\" name=\"redBasIpi\" [(ngModel)]=\"data.redBasIpi\"\r\n                                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\r\n                                                        maxlength=\"6\"\r\n                                                        [options]=\"funcoesService.numberUtils.formatCurrency(2)\">\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"col-lg-3\">\r\n                                                <div class=\"form-group form-group-sm\">\r\n                                                    <label for=\"enqIpi\">{{'labels.enqIpi' | translate}}</label>\r\n                                                    <input id=\"enqIpi\" name=\"enqIpi\" [(ngModel)]=\"data.enqIpi\"\r\n                                                        class=\"form-control form-control-sm text-right\" type=\"text\"\r\n                                                        maxlength=\"3\" [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class=\"row\">\r\n                                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                                                <div class=\"form-group form-group-sm\">\r\n                                                    <label for=\"aliqII\">{{'labels.aliqII' | translate}}</label>\r\n                                                    <input id=\"aliqII\" name=\"aliqII\" [(ngModel)]=\"data.aliqII\"\r\n                                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\r\n                                                        maxlength=\"5\"\r\n                                                        [options]=\"funcoesService.numberUtils.formatCurrency(2)\">\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"col-lg-3 d-flex align-items-center\">\r\n                                                <div class=\"custom-control custom-checkbox\">\r\n                                                    <input id=\"fatura\" name=\"fatura\" [ngModel]=\"data.fatura === 'S'\"\r\n                                                        (ngModelChange)=\"data.fatura=$event?'S':'N'\"\r\n                                                        class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\" maxlength=\"1\">\r\n                                                    <label class=\"custom-control-label\" for=\"fatura\">{{'labels.fatura' |\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\">\r\n                                                <div class=\"form-group form-group-sm\">\r\n                                                    <label for=\"tipoIcms\">{{ 'labels.tipoIcms' | translate}}</label>\r\n                                                    <select name=\"tipoIcms\" id=\"tipoIcms\"\r\n                                                        class=\"form-control form-control-sm\" [(ngModel)]=\"data.tipoIcms\"\r\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\" maxlength=\"1\">\r\n                                                        <option value=\"\">{{ 'labels.selecione' | translate }}</option>\r\n                                                        <option [value]=\"d.id\" *ngFor=\"let d of tipoIcmss.get()\">{{\r\n                                                            d.descricao }}</option>\r\n                                                    </select>\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"col-lg-3 d-flex align-items-center\">\r\n                                                <div class=\"custom-control custom-checkbox\">\r\n                                                    <input id=\"pis\" name=\"pis\" [ngModel]=\"data.pis === 'S'\"\r\n                                                        (ngModelChange)=\"data.pis=$event?'S':'N'\"\r\n                                                        class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\" maxlength=\"1\">\r\n                                                    <label class=\"custom-control-label\" for=\"pis\">{{'labels.pis' |\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\">\r\n                                                <div class=\"form-group form-group-sm\">\r\n                                                    <label for=\"tipoIpi\">{{ 'labels.tipoIpi' | translate}}</label>\r\n                                                    <select name=\"tipoIpi\" id=\"tipoIpi\"\r\n                                                        class=\"form-control form-control-sm\" [(ngModel)]=\"data.tipoIpi\"\r\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\" maxlength=\"1\">\r\n                                                        <option value=\"\">{{ 'labels.selecione' | translate }}</option>\r\n                                                        <option [value]=\"d.id\" *ngFor=\"let d of tipoIpis.get()\">{{\r\n                                                            d.descricao }}</option>\r\n                                                    </select>\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"col-lg-2 d-flex align-items-center\">\r\n                                                <div class=\"custom-control custom-checkbox\">\r\n                                                    <input id=\"cofins\" name=\"cofins\" [ngModel]=\"data.cofins === 'S'\"\r\n                                                        (ngModelChange)=\"data.cofins=$event?'S':'N'\"\r\n                                                        class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\" maxlength=\"1\">\r\n                                                    <label class=\"custom-control-label\" for=\"cofins\">{{'labels.cofins' |\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-6 col-sm-12\">\r\n                                                <div class=\"form-group form-group-sm\">\r\n                                                    <label for=\"unidadeTributacao\">{{\r\n                                                        \"labels.unidadeTributacao\" | translate\r\n                                                        }}</label>\r\n                                                    <select class=\"form-control form-control-sm\" id=\"unidadeTributacao\"\r\n                                                        name=\"unidadeTributacao\" [(ngModel)]=\"data.uTrib\"\r\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                                        <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\r\n                                                        <option *ngFor=\"let item of unidadeTributacoes\"\r\n                                                            value=\"{{ item.uTrib }}\">{{ item.uTrib }}\r\n                                                        </option>\r\n                                                    </select>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class=\"row\">\r\n                                            <div class=\"col-lg-12\">\r\n                                                <app-card-container tituloCard=\"aliquotaPis\">\r\n                                                    <div class=\"row\">\r\n                                                        <div class=\"col-lg-4 col-md-4 col-sm-12\">\r\n                                                            <div class=\"form-group form-group-sm\">\r\n                                                                <div class=\"col-sm\">\r\n                                                                    <label for=\"aliqDebPis\">{{'labels.aliqDebPis' |\r\n                                                                        translate}}</label>\r\n                                                                    <input id=\"aliqDebPis\" name=\"aliqDebPis\"\r\n                                                                        [(ngModel)]=\"data.aliqDebPis\"\r\n                                                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                                                        currencyMask maxlength=\"6\"\r\n                                                                        [options]=\"funcoesService.numberUtils.formatCurrency(2)\">\r\n                                                                </div>\r\n                                                            </div>\r\n                                                        </div>\r\n                                                        <div class=\"col-lg-5 col-md-4 col-sm-12\">\r\n                                                            <div class=\"form-group form-group-sm\">\r\n                                                                <div class=\"col-sm\">\r\n                                                                    <label for=\"aliqImpPis\">{{'labels.aliqImpPis' |\r\n                                                                        translate}}</label>\r\n                                                                    <input id=\"aliqImpPis\" name=\"aliqImpPis\"\r\n                                                                        [(ngModel)]=\"data.aliqImpPis\"\r\n                                                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                                                        currencyMask maxlength=\"6\"\r\n                                                                        [options]=\"funcoesService.numberUtils.formatCurrency(2)\">\r\n                                                                </div>\r\n                                                            </div>\r\n                                                        </div>\r\n                                                        <!--BUTTON NEW cstPis-->\r\n                                                        <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                                                            <div class=\"form-group form-group-sm\">\r\n                                                                <div class=\"col-sm\">\r\n                                                                    <label for=\"mensagemIdcstPis\">{{'labels.cstPis' |\r\n                                                                        translate}}</label>\r\n                                                                    <app-pesquisa-cst-pis id=\"mensagemIdcstPis\"\r\n                                                                        name=\"mensagemIdcstPis\"\r\n                                                                        [(ngModel)]=\"data.cstPis\" maxlength=\"3\"\r\n                                                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                                                    </app-pesquisa-cst-pis>\r\n                                                                </div>\r\n                                                            </div>\r\n                                                        </div>\r\n                                                    </div>\r\n                                                </app-card-container>\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class=\"row\">\r\n                                            <div class=\"col-lg-12\">\r\n                                                <app-card-container tituloCard=\"aliquotaCofins\">\r\n                                                    <div class=\"row\">\r\n                                                        <div class=\"col-lg-4 col-md-4 col-sm-12\">\r\n                                                            <div class=\"form-group form-group-sm\">\r\n                                                                <div class=\"col-sm\">\r\n                                                                    <label for=\"aliqDebCofins\">{{'labels.aliqDebCofins'\r\n                                                                        | translate}}</label>\r\n                                                                    <input id=\"aliqDebCofins\" name=\"aliqDebCofins\"\r\n                                                                        [(ngModel)]=\"data.aliqDebCofins\"\r\n                                                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                                                        currencyMask maxlength=\"6\"\r\n                                                                        [options]=\"funcoesService.numberUtils.formatCurrency(2)\">\r\n                                                                </div>\r\n                                                            </div>\r\n                                                        </div>\r\n                                                        <div class=\"col-lg-5 col-md-4 col-sm-12\">\r\n                                                            <div class=\"form-group form-group-sm\">\r\n                                                                <div class=\"col-sm\">\r\n                                                                    <label for=\"aliqImpCofins\">{{'labels.aliqImpCofins'\r\n                                                                        | translate}}</label>\r\n                                                                    <input id=\"aliqImpCofins\" name=\"aliqImpCofins\"\r\n                                                                        [(ngModel)]=\"data.aliqImpCofins\"\r\n                                                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                                                        currencyMask maxlength=\"6\"\r\n                                                                        [options]=\"funcoesService.numberUtils.formatCurrency(2)\">\r\n                                                                </div>\r\n                                                            </div>\r\n                                                        </div>\r\n\r\n                                                        <!--Button New cstCofins-->\r\n                                                        <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                                                            <div class=\"form-group form-group-sm\">\r\n                                                                <div class=\"col-sm\">\r\n                                                                    <label\r\n                                                                        for=\"mensagemIdcstCofins\">{{'labels.cstCofins' |\r\n                                                                        translate}}</label>\r\n                                                                    <app-pesquisa-cst-cofins id=\"mensagemIdcstCofins\"\r\n                                                                        name=\"mensagemIdcstCofins\" maxlength=\"2\"\r\n                                                                        [(ngModel)]=\"data.cstCofins\"\r\n                                                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                                                    </app-pesquisa-cst-cofins>\r\n                                                                </div>\r\n                                                            </div>\r\n                                                        </div>\r\n                                                    </div>\r\n                                                </app-card-container>\r\n\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class=\"row\">\r\n                                            <div class=\"col-lg-4 col-md-4 col-sm-12\">\r\n                                                <div class=\"form-group form-group-sm\">\r\n                                                    <label for=\"legenda\">{{'labels.legendaNf' | translate}}</label>\r\n                                                    <input id=\"legenda\" name=\"legenda\" [(ngModel)]=\"data.legenda\"\r\n                                                        class=\"form-control form-control-sm\" type=\"text\" maxlength=\"1\"\r\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                                </div>\r\n                                            </div>\r\n\r\n                                            <!--Button New -->\r\n                                            <div class=\"col-lg-3\">\r\n                                                <div class=\"form-group form-group-sm\">\r\n                                                    <label for=\"mensagemIdIcm\">{{'labels.codMensagem' |\r\n                                                        translate}}</label>\r\n                                                    <app-pesquisa-mensagem id=\"mensagemIdIcm\" name=\"mensagemIdIcm\"\r\n                                                        [(ngModel)]=\"data.codMensagem\" tipo=\"FIS\"\r\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                                        (outMensagem)=\"trataMensagemIcms($event)\">\r\n                                                    </app-pesquisa-mensagem>\r\n                                                </div>\r\n                                            </div>\r\n\r\n                                            <div class=\"col-lg-2\">\r\n                                                <div class=\"form-group form-group-sm\">\r\n                                                    <label for=\"grupoCargaAntaq\">{{'labels.grupoCargaAntaq' |\r\n                                                        translate}}</label>\r\n                                                    <input id=\"grupoCargaAntaq\" name=\"grupoCargaAntaq\"\r\n                                                        [(ngModel)]=\"data.grupoCargaAntaq\"\r\n                                                        class=\"form-control form-control-sm\" type=\"text\" maxlength=\"4\"\r\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"col-lg-3 d-flex align-items-center \">\r\n                                                <div class=\"custom-control custom-checkbox\">\r\n                                                    <input id=\"flagDeson\" name=\"flagDeson\"\r\n                                                        [ngModel]=\"data.flagDeson === 'S'\"\r\n                                                        (ngModelChange)=\"data.flagDeson=$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\"\r\n                                                        for=\"flagDeson\">{{'labels.flagDeson' | translate}}</label>\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"col-lg-12\">\r\n                                                <div class=\"form-group\">\r\n                                                    <textarea name=\"mensagemIcms\" [(ngModel)]=\"data.mensagemIcms\"\r\n                                                        class=\"form-control ng-untouched ng-pristine ng-invalid\"\r\n                                                        id=\"template\" name=\"template\" rows=\"5\" type=\"text\"\r\n                                                        disabled></textarea>\r\n                                                </div>\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 mr-2\" (click)=\"saveAndCreate(f)\"\r\n                                                        type=\"button\"\r\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\">{{\r\n                                                        'buttons.salvarNovo' | translate }}</button>\r\n\r\n                                                </div>\r\n                                            </div>\r\n                                        </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\"\r\n                                                        [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                                    </form>\r\n                                </div>\r\n                            </div>\r\n                            <!--ABA TRANSMISSAO DE DADOS-->\r\n                            <div class=\"tab-pane\" id=\"tb\"\r\n                                *ngIf=\"data.classificacaoFiscalId && data.classificacaoFiscalId !== '' \">\r\n                                <app-subs-tributaria-form [classificacaoFiscal]=\"data\" [dados]=\"data.subsTributarias\"\r\n                                    (dataResult)=\"refreshItens($event)\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                    >\r\n                                </app-subs-tributaria-form>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/classificacao-fiscal/classificacao-fiscal-index/classificacao-fiscal-index.component.html":
/*!****************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/classificacao-fiscal/classificacao-fiscal-index/classificacao-fiscal-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.classificacaoFiscalId\"\r\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <table id=\"dtClassificacaoFiscal\" 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");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/classificacao-fiscal/subs-tributaria-form/subs-tributaria-form.component.html":
/*!****************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/classificacao-fiscal/subs-tributaria-form/subs-tributaria-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"] = ("<div class=\"row\">\r\n    <div class=\"col-md-12 col-lg-12\">\r\n        <div *ngIf=\"!showAdd\">\r\n            <button title=\"{{ 'buttons.novo' | translate }}\" class=\"btn btn-sm uni-btn\" (click)=\"create()\"\r\n                    [disabled]=\"disabled\">\r\n                <i class=\"icon icon-plus\"></i>\r\n            </button>\r\n            <button title=\"{{ 'buttons.visualizar' | translate }}\" (click)=\"detail()\" class=\"btn btn-sm uni-btn\"\r\n                    [disabled]=\"funcoes.showButtons.detail(actionForm,  dataAux.sequencia)\">\r\n                <i class=\"icon icon-eye\"></i>\r\n            </button>\r\n            <button title=\"{{ 'buttons.editar' | translate }}\" class=\"btn btn-sm uni-btn\" (click)=\"edit()\"\r\n                    [disabled]=\"disabled || funcoes.showButtons.detail(actionForm,  dataAux.sequencia)\">\r\n                <i class=\"icon icon-pencil\"></i>\r\n            </button>\r\n            <button title=\"{{ 'buttons.excluir' | translate }}\" class=\"btn btn-sm uni-btn\" (click)=\"remove()\"\r\n                    [disabled]=\"disabled || funcoes.showButtons.detail(actionForm,  dataAux.sequencia)\">\r\n                <i class=\"icon icon-trash\"></i>\r\n            </button>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<div class=\"row\" *ngIf=\"!showAdd\">\r\n    <div class=\"clearfix\">&nbsp;</div>\r\n    <div class=\"col-md-12 col-lg-12 table-responsive\">\r\n        <table class=\"table table-striped table-hover\">\r\n            <thead>\r\n            <tr>\r\n                <th class=\"pct-20-c\">{{ 'labels.codigoNbm' | translate }}</th>\r\n                <th class=\"text-center\">{{ 'labels.uf' | translate }}</th>\r\n                <th class=\"pct-20-r\">{{ 'labels.margLucro' | translate }}</th>\r\n                <th class=\"pct-20-r\">{{ 'labels.aliqIcms' | translate }}</th>\r\n                <th class=\"pct-20-r\">{{ 'labels.cnae' | translate }}</th>\r\n                <th class=\"pct-20-r\">{{ 'labels.fcp' | translate }}</th>\r\n            </tr>\r\n            </thead>\r\n            <tbody>\r\n            <tr *ngFor=\"let c of dados | removeExcluidos\" class=\"clickable\"\r\n                [ngClass]=\"{ 'info' : c === dataAux }\" (click)=\"(dataAux = c)\">\r\n                <td class=\"pct-20-c\">{{c.classificacaoFiscalId}}</td>\r\n                <td class=\"text-center\">{{c.estadoId}}</td>\r\n                <td class=\"pct-20-r\">{{c.margLucro | formatCurrency: 2}}</td>\r\n                <td class=\"pct-20-r\">{{c.aliqIcms | formatCurrency: 2}}</td>\r\n                <td class=\"pct-20-r\">{{c.cnaeId}}</td>\r\n                <td class=\"pct-20-r\">{{c.aliqFCP | formatCurrency: 2}}</td>\r\n            </tr>\r\n            <tr *ngIf=\"!hasDados\">\r\n                <th colspan=\"9\">\r\n                    {{'messages.nenhumRegistroEncontrado' | translate }}\r\n                </th>\r\n            </tr>\r\n            </tbody>\r\n        </table>\r\n    </div>\r\n</div>\r\n\r\n<div *ngIf=\"showAdd\">\r\n    <div>\r\n        <button title=\"{{ 'buttons.editar' | translate }}\" class=\"btn btn-sm uni-btn\" (click)=\"edit()\"\r\n                [disabled]=\"disabled || funcoes.showButtons.edit(actionForm,  dataAux.sequencia)\">\r\n            <i class=\"icon icon-pencil\"></i>\r\n        </button>\r\n        <button title=\"{{ 'buttons.voltar' | translate }}\" (click)=\"back()\" type=\"button\"\r\n                class=\"btn btn-sm uni-btn\">\r\n            <i class=\"icon icon-arrow-left\"></i>\r\n        </button>\r\n    </div>\r\n\r\n    <div class=\"clearfix\">&nbsp;</div>\r\n\r\n    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\r\n        <div class=\"row\">\r\n            <div class=\"col-md-12 col-lg-12\">\r\n                <div class=\"row\">\r\n                    <div class=\"col-lg-3\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"codigoNbm_\">{{'labels.codigoNbm' | translate}}</label>\r\n                            <input id=\"codigoNbm_\" name=\"codigoNbm_\"\r\n                                   [(ngModel)]=\"classificacaoFiscal.classificacaoFiscalId\"\r\n                                   class=\"form-control form-control-sm\" type=\"text\" maxlength=\"8\"\r\n                                   disabled>\r\n                            <input id=\"codigoNbm\" name=\"codigoNbm\" style=\"display: none\"\r\n                                   [(ngModel)]=\"data.classificacaoFiscalId\"\r\n                                   class=\"form-control form-control-sm\" type=\"text\" maxlength=\"8\"\r\n                                   disabled>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"col-lg-3\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"uf\" [class.required]=\"true\">{{ 'labels.uf' | translate}}</label>\r\n                            <app-combo-padrao\r\n                                    [class.required]=\"funcoes.isCreate(actionForm)\"\r\n                                    name=\"uf\" id=\"uf\"\r\n                                    tabela=\"Estados\"\r\n                                    chave=\"Estado\"\r\n                                    descricao=\"Estado\"\r\n                                    [(ngModel)]=\"data.estadoId\"\r\n                                    [disabled]=\"funcoes.isDetail(actionForm)\" required\r\n                            ></app-combo-padrao>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"row\">\r\n                    <div class=\"col-lg-6\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"cnae\">{{ 'labels.cnae' | translate}}</label>\r\n                            <app-combo-padrao\r\n                                    name=\"cnae\" id=\"cnae\"\r\n                                    tabela=\"Cnae\"\r\n                                    chave=\"Cnae\"\r\n                                    descricao=\"DescrCnae\"\r\n                                    [(ngModel)]=\"data.cnaeId\"\r\n                                    [disabled]=\"funcoes.isDetail(actionForm)\"\r\n                            ></app-combo-padrao>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"row\">\r\n                    <div class=\"col-lg-3\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"margLucro\"\r\n                                   [class.required]=\"true\">{{'labels.margLucro' | translate}}</label>\r\n                            <input id=\"margLucro\" name=\"margLucro\"\r\n                                   [(ngModel)]=\"data.margLucro\"\r\n                                   class=\"form-control form-control-sm\" type=\"text\"\r\n                                   maxlength=\"8\"\r\n                                   [disabled]=\"funcoes.isDetail(actionForm)\"\r\n                                   currencyMask maxlength=\"6\"\r\n                                   [options]=\"funcoes.numberUtils.formatCurrency(2)\" required>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"col-lg-3\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"aliqIcms\">{{'labels.aliqIcms' | translate}}</label>\r\n                            <input id=\"aliqIcms\" name=\"aliqIcms\"\r\n                                   [(ngModel)]=\"data.aliqIcms\"\r\n                                   class=\"form-control form-control-sm\" type=\"text\"\r\n                                   currencyMask maxlength=\"6\"\r\n                                   [options]=\"funcoes.numberUtils.formatCurrency(2)\">\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"row\">\r\n                    <div class=\"col-lg-3\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"redBasIcms\">{{'labels.redBasIcms' | translate}}</label>\r\n                            <input id=\"redBasIcms\" name=\"redBasIcms\"\r\n                                   [(ngModel)]=\"data.redBasIcms\"\r\n                                   class=\"form-control form-control-sm\" type=\"text\"\r\n                                   currencyMask maxlength=\"6\"\r\n                                   [options]=\"funcoes.numberUtils.formatCurrency(2)\">\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"col-lg-3\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"mensagemIcms\">{{'labels.mensagemIcms' | translate}}</label>\r\n                            <app-pesquisa-mensagem id=\"mensagemIcms\"\r\n                                                   name=\"mensagemIcms\"\r\n                                                   [(ngModel)]=\"data.codMensagem\"\r\n                                                   tipo=\"FIS\"\r\n                                                   [disabled]=\"funcoes.isDetail(actionForm)\"\r\n                                                   (outMensagem)=\"trataMensagemIcms($event)\">\r\n                            </app-pesquisa-mensagem>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n\r\n                <div class=\"row\">\r\n                    <div class=\"col-lg-3\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"aliqFCP\">{{'labels.aliqFcp' | translate}}</label>\r\n                            <input id=\"aliqFCP\" name=\"aliqFCP\"\r\n                                   [(ngModel)]=\"data.aliqFCP\"\r\n                                   class=\"form-control form-control-sm\" type=\"text\"\r\n                                   currencyMask maxlength=\"6\"\r\n                                   [options]=\"funcoes.numberUtils.formatCurrency(2)\">\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"col-lg-3\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"codCest\">{{'labels.codCest' | translate}}</label>\r\n                            <input id=\"codCest\" name=\"codCest\"\r\n                                   [(ngModel)]=\"data.codCest\"\r\n                                   class=\"form-control form-control-sm\" type=\"text\"\r\n                                   maxlength=\"7\">\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"col-lg-12\">\r\n                        <div class=\"form-group\">\r\n                           <textarea name=\"mensagemIcms\" [(ngModel)]=\"data.mensagemIcms\"\r\n                                     class=\"form-control ng-untouched ng-pristine ng-invalid\" id=\"template\"\r\n                                     name=\"template\" rows=\"5\" type=\"text\" disabled>\r\n                           </textarea>\r\n                        </div>\r\n                    </div>\r\n\r\n                    <div class=\"clearfix\">&nbsp;</div>\r\n                    <div class=\"col-lg-3\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <div class=\"row\">\r\n                                <div class=\"col-md-12 col-lg-12\">\r\n                                    <button class=\"btn btn-success\" type=\"submit\"\r\n                                            [disabled]=\"funcoes.isDetail(actionForm)\">\r\n                                        {{ 'buttons.salvar' | translate }}\r\n                                    </button>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </form>\r\n</div>\r\n");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClassificacaoFiscalFormComponent", function() { return ClassificacaoFiscalFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_pages_cadastro_classificacao_fiscal_classificacao_fiscal_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/cadastro/classificacao-fiscal/classificacao-fiscal.model */ "./src/app/pages/cadastro/classificacao-fiscal/classificacao-fiscal.model.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _classificacao_fiscal_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../classificacao-fiscal.service */ "./src/app/pages/cadastro/classificacao-fiscal/classificacao-fiscal.service.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_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _classificacao_fiscal_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../classificacao-fiscal.constants */ "./src/app/pages/cadastro/classificacao-fiscal/classificacao-fiscal.constants.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _mensagem_mensagem_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../mensagem/mensagem.service */ "./src/app/pages/cadastro/mensagem/mensagem.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 ClassificacaoFiscalFormComponent = /** @class */ (function (_super) {
    __extends(ClassificacaoFiscalFormComponent, _super);
    function ClassificacaoFiscalFormComponent(router, messageService, activatedRoute, classificacaoFiscalService, funcoesService, permissoesUtils, serviceMessage) {
        var _this = _super.call(this, new _classificacao_fiscal_constants__WEBPACK_IMPORTED_MODULE_7__["ClassificacaoFiscalConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.classificacaoFiscalService = classificacaoFiscalService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.serviceMessage = serviceMessage;
        _this.data = new app_pages_cadastro_classificacao_fiscal_classificacao_fiscal_model__WEBPACK_IMPORTED_MODULE_2__["ClassificacaoFiscal"]();
        _this.mensagens = [];
        _this.constantes = new _classificacao_fiscal_constants__WEBPACK_IMPORTED_MODULE_7__["ClassificacaoFiscalConstants"]();
        _this.tipoIpis = new app_pages_cadastro_classificacao_fiscal_classificacao_fiscal_model__WEBPACK_IMPORTED_MODULE_2__["TipoIpis"]();
        _this.tipoIcmss = new app_pages_cadastro_classificacao_fiscal_classificacao_fiscal_model__WEBPACK_IMPORTED_MODULE_2__["TipoIcmss"]();
        _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;
    }
    ClassificacaoFiscalFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.unidadeTributacoes = [];
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            _this.carregaComboUnidadeTributacao();
            if (id) {
                _this.classificacaoFiscalService.getById(id).subscribe(function (resp) {
                    _this.data = resp;
                    if (_this.data.codMensagem) {
                        _this.serviceMessage.getByTipo("FIS").subscribe(function (data) {
                            if (data) {
                                var i = data.find(function (c) { return c.mensagemId === +_this.data.codMensagem; });
                                if (i) {
                                    _this.data.mensagemIcms = i.observacoes;
                                }
                            }
                        });
                    }
                });
            }
            else {
                _this.data = new app_pages_cadastro_classificacao_fiscal_classificacao_fiscal_model__WEBPACK_IMPORTED_MODULE_2__["ClassificacaoFiscal"]();
                _this.getCamposAdicionais();
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    ClassificacaoFiscalFormComponent.prototype.carregaComboUnidadeTributacao = function () {
        var _this = this;
        this.classificacaoFiscalService.getUnidadeTributacao().subscribe(function (resp) {
            _this.unidadeTributacoes = resp;
        });
    };
    ClassificacaoFiscalFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.data.logRotina = "Manutenção tipo Classificacao Fiscal";
        this.classificacaoFiscalService
            .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_6__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.classificacaoFiscal");
                if (create) {
                    _this.data = new app_pages_cadastro_classificacao_fiscal_classificacao_fiscal_model__WEBPACK_IMPORTED_MODULE_2__["ClassificacaoFiscal"]();
                    _this.router.navigate([_this.target + "/cadastro/classificacaoService/create"]);
                }
                else {
                    _this.back();
                }
            }
        });
    };
    ClassificacaoFiscalFormComponent.prototype.edit = function () {
        this.router.navigate([this.target + "/cadastro/classificacaoFiscal/edit/" + this.data.classificacaoFiscalId]);
    };
    ClassificacaoFiscalFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    ClassificacaoFiscalFormComponent.prototype.back = function () {
        this.router.navigate([this.target + "/cadastro/classificacaoFiscal"]);
    };
    ClassificacaoFiscalFormComponent.prototype.getCamposAdicionais = function () {
        var _this = this;
        this.funcoesService.camposAdicionais
            .get(this.constantes.sisFormularioId)
            .subscribe(function (data) {
            _this.data.sisCampoAdds = data;
        });
    };
    ClassificacaoFiscalFormComponent.prototype.trataMensagemIcms = function (mensagemIcms) {
        if (mensagemIcms) {
            this.data.mensagemIcms = mensagemIcms.observacoes;
        }
    };
    ClassificacaoFiscalFormComponent.prototype.refreshItens = function (subsTributarias) {
        this.data.subsTributarias = subsTributarias;
    };
    ClassificacaoFiscalFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _classificacao_fiscal_service__WEBPACK_IMPORTED_MODULE_4__["ClassificacaoFiscalService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] },
        { type: _mensagem_mensagem_service__WEBPACK_IMPORTED_MODULE_10__["MensagemService"] }
    ]; };
    ClassificacaoFiscalFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-classificacao-fiscal-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./classificacao-fiscal-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/classificacao-fiscal/classificacao-fiscal-form/classificacao-fiscal-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_3__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _classificacao_fiscal_service__WEBPACK_IMPORTED_MODULE_4__["ClassificacaoFiscalService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"],
            _mensagem_mensagem_service__WEBPACK_IMPORTED_MODULE_10__["MensagemService"]])
    ], ClassificacaoFiscalFormComponent);
    return ClassificacaoFiscalFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClassificacaoFiscalIndexComponent", function() { return ClassificacaoFiscalIndexComponent; });
/* 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 _classificacao_fiscal_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../classificacao-fiscal.service */ "./src/app/pages/cadastro/classificacao-fiscal/classificacao-fiscal.service.ts");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__ = __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_5__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _classificacao_fiscal_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../classificacao-fiscal.constants */ "./src/app/pages/cadastro/classificacao-fiscal/classificacao-fiscal.constants.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _classificacao_fiscal_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../classificacao-fiscal.model */ "./src/app/pages/cadastro/classificacao-fiscal/classificacao-fiscal.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 ClassificacaoFiscalIndexComponent = /** @class */ (function (_super) {
    __extends(ClassificacaoFiscalIndexComponent, _super);
    function ClassificacaoFiscalIndexComponent(router, classificacaoFiscalService, datatablesService, messageService, funcoesService, permissoesUtils) {
        var _this = _super.call(this, new _classificacao_fiscal_constants__WEBPACK_IMPORTED_MODULE_6__["ClassificacaoFiscalConstants"](), funcoesService) || this;
        _this.router = router;
        _this.classificacaoFiscalService = classificacaoFiscalService;
        _this.datatablesService = datatablesService;
        _this.messageService = messageService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _classificacao_fiscal_model__WEBPACK_IMPORTED_MODULE_9__["ClassificacaoFiscal"]();
        _this.constantes = new _classificacao_fiscal_constants__WEBPACK_IMPORTED_MODULE_6__["ClassificacaoFiscalConstants"]();
        _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;
    }
    ClassificacaoFiscalIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _this.refresh();
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    ClassificacaoFiscalIndexComponent.prototype.create = function () {
        this.router.navigate([this.target + "/cadastro/classificacaoFiscal/create"]);
    };
    ClassificacaoFiscalIndexComponent.prototype.edit = function () {
        this.router.navigate([this.target + "/cadastro/classificacaoFiscal", "edit", this.data.classificacaoFiscalId]);
    };
    ClassificacaoFiscalIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    ClassificacaoFiscalIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    ClassificacaoFiscalIndexComponent.prototype.detail = function () {
        this.router.navigate([this.target + "/cadastro/classificacaoFiscal", "detail", this.data.classificacaoFiscalId]);
    };
    ClassificacaoFiscalIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.classificacaoFiscalService.get().subscribe(function (resp) {
            var columns = [
                _this.datatablesService.getDataString("classificacaoFiscalId", "codigoNbm", "10%"),
                _this.datatablesService.getDataString("descrCodNbm", "descrCodNbm"),
                _this.datatablesService.getDataDouble("aliqIcms", "aliqIcms", 2, false, "10%"),
                _this.datatablesService.getDataDouble("aliqIpi", "aliqIpi", 2, false, "10%"),
                _this.datatablesService.getDataDouble("redBasIcms", "redBasIcms", 4, false, "10%"),
                _this.datatablesService.getDataDouble("redBasIpi", "redBasIpi", 4, false, "10%"),
                _this.datatablesService.getDataString("tipoIcms", "tipoIcms", "10%"),
                _this.datatablesService.getDataString("tipoIpi", "tipoIpi", "10%")
            ];
            _this.datatablesService.datatable("dtClassificacaoFiscal", columns, resp, function (aData) {
                _this.data = aData;
            });
        });
    };
    ClassificacaoFiscalIndexComponent.prototype.remove = function () {
        var _this = this;
        if (!!(this.data.classificacaoFiscalId)) {
            this.messageService.removeConfirm(function () {
                _this.classificacaoFiscalService.remove(_this.data).subscribe(function () {
                    _this.datatablesService.remove("dtClassificacaoFiscal");
                });
            });
        }
    };
    ClassificacaoFiscalIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _classificacao_fiscal_service__WEBPACK_IMPORTED_MODULE_3__["ClassificacaoFiscalService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"] }
    ]; };
    ClassificacaoFiscalIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-classificacao-fiscal-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./classificacao-fiscal-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/classificacao-fiscal/classificacao-fiscal-index/classificacao-fiscal-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _classificacao_fiscal_service__WEBPACK_IMPORTED_MODULE_3__["ClassificacaoFiscalService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"]])
    ], ClassificacaoFiscalIndexComponent);
    return ClassificacaoFiscalIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/cadastro/classificacao-fiscal/classificacao-fiscal.constants.ts":
/*!***************************************************************************************!*\
  !*** ./src/app/pages/cadastro/classificacao-fiscal/classificacao-fiscal.constants.ts ***!
  \***************************************************************************************/
/*! exports provided: ClassificacaoFiscalConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClassificacaoFiscalConstants", function() { return ClassificacaoFiscalConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ClassificacaoFiscalConstants = /** @class */ (function () {
    function ClassificacaoFiscalConstants() {
        this.sisFormularioId = 25001;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.inclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.exclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.propriedades" },
            { sisFormularioId: this.sisFormularioId, libRotina: 7, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.classificacaoFiscal";
        this.reportId = "CAD0206";
        this.reportTitulo = { "titulo": "Classificação Fiscal", "subTitulo": "" };
        this.tabela = "tipoDeMaterial";
        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' },
        ];
    }
    return ClassificacaoFiscalConstants;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/classificacao-fiscal/classificacao-fiscal.module.ts":
/*!************************************************************************************!*\
  !*** ./src/app/pages/cadastro/classificacao-fiscal/classificacao-fiscal.module.ts ***!
  \************************************************************************************/
/*! exports provided: ClassificacaoFiscalModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClassificacaoFiscalModule", function() { return ClassificacaoFiscalModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _classificacao_fiscal_routing_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./classificacao-fiscal.routing.module */ "./src/app/pages/cadastro/classificacao-fiscal/classificacao-fiscal.routing.module.ts");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _classificacao_fiscal_form_classificacao_fiscal_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./classificacao-fiscal-form/classificacao-fiscal-form.component */ "./src/app/pages/cadastro/classificacao-fiscal/classificacao-fiscal-form/classificacao-fiscal-form.component.ts");
/* harmony import */ var _classificacao_fiscal_index_classificacao_fiscal_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./classificacao-fiscal-index/classificacao-fiscal-index.component */ "./src/app/pages/cadastro/classificacao-fiscal/classificacao-fiscal-index/classificacao-fiscal-index.component.ts");
/* harmony import */ var _subs_tributaria_form_subs_tributaria_form_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./subs-tributaria-form/subs-tributaria-form.component */ "./src/app/pages/cadastro/classificacao-fiscal/subs-tributaria-form/subs-tributaria-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 ClassificacaoFiscalModule = /** @class */ (function () {
    function ClassificacaoFiscalModule() {
    }
    ClassificacaoFiscalModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_2__["SharedModule"], _classificacao_fiscal_routing_module__WEBPACK_IMPORTED_MODULE_1__["ClassificacaoFiscalRoutingModule"]],
            declarations: [_classificacao_fiscal_index_classificacao_fiscal_index_component__WEBPACK_IMPORTED_MODULE_4__["ClassificacaoFiscalIndexComponent"], _classificacao_fiscal_form_classificacao_fiscal_form_component__WEBPACK_IMPORTED_MODULE_3__["ClassificacaoFiscalFormComponent"], _subs_tributaria_form_subs_tributaria_form_component__WEBPACK_IMPORTED_MODULE_5__["SubsTributariaFormComponent"]]
        })
    ], ClassificacaoFiscalModule);
    return ClassificacaoFiscalModule;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/classificacao-fiscal/classificacao-fiscal.routing.module.ts":
/*!********************************************************************************************!*\
  !*** ./src/app/pages/cadastro/classificacao-fiscal/classificacao-fiscal.routing.module.ts ***!
  \********************************************************************************************/
/*! exports provided: ClassificacaoFiscalRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClassificacaoFiscalRoutingModule", function() { return ClassificacaoFiscalRoutingModule; });
/* 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 _classificacao_fiscal_form_classificacao_fiscal_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./classificacao-fiscal-form/classificacao-fiscal-form.component */ "./src/app/pages/cadastro/classificacao-fiscal/classificacao-fiscal-form/classificacao-fiscal-form.component.ts");
/* harmony import */ var _classificacao_fiscal_index_classificacao_fiscal_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./classificacao-fiscal-index/classificacao-fiscal-index.component */ "./src/app/pages/cadastro/classificacao-fiscal/classificacao-fiscal-index/classificacao-fiscal-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: _classificacao_fiscal_index_classificacao_fiscal_index_component__WEBPACK_IMPORTED_MODULE_4__["ClassificacaoFiscalIndexComponent"],
        data: { breadcrumb: "ClassificacaoFiscal", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create",
        component: _classificacao_fiscal_form_classificacao_fiscal_form_component__WEBPACK_IMPORTED_MODULE_3__["ClassificacaoFiscalFormComponent"],
        data: {
            breadcrumb: "ClassificacaoFiscal",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: _classificacao_fiscal_form_classificacao_fiscal_form_component__WEBPACK_IMPORTED_MODULE_3__["ClassificacaoFiscalFormComponent"],
        data: {
            breadcrumb: "ClassificacaoFiscal",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _classificacao_fiscal_form_classificacao_fiscal_form_component__WEBPACK_IMPORTED_MODULE_3__["ClassificacaoFiscalFormComponent"],
        data: {
            breadcrumb: "ClassificacaoFiscal",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var ClassificacaoFiscalRoutingModule = /** @class */ (function () {
    function ClassificacaoFiscalRoutingModule() {
    }
    ClassificacaoFiscalRoutingModule = __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"]]
        })
    ], ClassificacaoFiscalRoutingModule);
    return ClassificacaoFiscalRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/classificacao-fiscal/classificacao-fiscal.service.ts":
/*!*************************************************************************************!*\
  !*** ./src/app/pages/cadastro/classificacao-fiscal/classificacao-fiscal.service.ts ***!
  \*************************************************************************************/
/*! exports provided: ClassificacaoFiscalService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClassificacaoFiscalService", function() { return ClassificacaoFiscalService; });
/* harmony import */ var app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.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 ClassificacaoFiscalService = /** @class */ (function (_super) {
    __extends(ClassificacaoFiscalService, _super);
    function ClassificacaoFiscalService(http) {
        return _super.call(this, http, "cadastros/classificacaoFiscal") || this;
    }
    ClassificacaoFiscalService.prototype.getUnidadeTributacao = function () {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/diversos/getUnidadeTributacao")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    ClassificacaoFiscalService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"] }
    ]; };
    ClassificacaoFiscalService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"]])
    ], ClassificacaoFiscalService);
    return ClassificacaoFiscalService;
}(app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_0__["BaseService"]));



/***/ }),

/***/ "./src/app/pages/cadastro/classificacao-fiscal/subs-tributaria-form/subs-tributaria-form.component.ts":
/*!************************************************************************************************************!*\
  !*** ./src/app/pages/cadastro/classificacao-fiscal/subs-tributaria-form/subs-tributaria-form.component.ts ***!
  \************************************************************************************************************/
/*! exports provided: SubsTributariaFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubsTributariaFormComponent", function() { return SubsTributariaFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _classificacao_fiscal_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../classificacao-fiscal.model */ "./src/app/pages/cadastro/classificacao-fiscal/classificacao-fiscal.model.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _mensagem_mensagem_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../mensagem/mensagem.service */ "./src/app/pages/cadastro/mensagem/mensagem.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};







var SubsTributariaFormComponent = /** @class */ (function () {
    function SubsTributariaFormComponent(funcoes, message, serviceMessage) {
        this.funcoes = funcoes;
        this.message = message;
        this.serviceMessage = serviceMessage;
        this.disabled = true;
        this.dataResult = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.actionForm = 0;
        this.showAdd = false;
        this.data = new _classificacao_fiscal_model__WEBPACK_IMPORTED_MODULE_4__["SubsTributaria"]();
        this.dataAux = new _classificacao_fiscal_model__WEBPACK_IMPORTED_MODULE_4__["SubsTributaria"]();
        this.hasDados = false;
    }
    SubsTributariaFormComponent.prototype.ngOnInit = function () {
    };
    SubsTributariaFormComponent.prototype.ngDoCheck = function () {
        this.hasDados =
            this.dados &&
                this.dados.length > 0 &&
                this.dados.filter(function (v) {
                    if (v["sitReg"] !== "E") {
                        return true;
                    }
                    return false;
                }).length > 0;
        if (!this.isDoCheck) {
            if (this.dados) {
                for (var i = 1; i <= this.dados.length; i++) {
                    this.dados[i - 1]["sequencia"] = i;
                }
                this.isDoCheck = true;
            }
        }
    };
    SubsTributariaFormComponent.prototype.create = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].create;
        this.data = new _classificacao_fiscal_model__WEBPACK_IMPORTED_MODULE_4__["SubsTributaria"]();
        this.dataAux = new _classificacao_fiscal_model__WEBPACK_IMPORTED_MODULE_4__["SubsTributaria"]();
    };
    SubsTributariaFormComponent.prototype.edit = function () {
        var _this = this;
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].edit;
        this.data = this.dataAux;
        if (this.data.codMensagem) {
            this.serviceMessage.getByTipo("FIS").subscribe(function (resp) {
                if (resp) {
                    var i = resp.find(function (c) { return c.mensagemId === +_this.data.codMensagem; });
                    if (i) {
                        _this.data.mensagemIcms = i.observacoes;
                    }
                }
            });
        }
    };
    SubsTributariaFormComponent.prototype.detail = function () {
        var _this = this;
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].detail;
        this.data = this.dataAux;
        if (this.data.codMensagem) {
            this.serviceMessage.getByTipo("FIS").subscribe(function (resp) {
                if (resp) {
                    var i = resp.find(function (c) { return c.mensagemId === +_this.data.codMensagem; });
                    if (i) {
                        _this.data.mensagemIcms = i.observacoes;
                    }
                }
            });
        }
    };
    SubsTributariaFormComponent.prototype.back = function () {
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
        this.isDoCheck = false;
        this.data = new _classificacao_fiscal_model__WEBPACK_IMPORTED_MODULE_4__["SubsTributaria"]();
        this.dataAux = new _classificacao_fiscal_model__WEBPACK_IMPORTED_MODULE_4__["SubsTributaria"]();
    };
    SubsTributariaFormComponent.prototype.remove = function () {
        var _this = this;
        this.data = this.dataAux;
        if (!this.funcoes.isUndefinedOrNull(this.data.sequencia)) {
            this.message.removeConfirm(function () {
                var i = _this.dados.findIndex(function (x) { return x.sequencia === _this.data.sequencia; });
                _this.data["sitReg"] = "E";
                _this.dados[i] = _this.data;
            });
        }
    };
    SubsTributariaFormComponent.prototype.onSubmit = function (form) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.data.logRotina = "Manut. Classificação Fiscal";
        if (this.data.sequencia && this.data.sequencia > 0) {
            var i = this.dados.findIndex(function (x) { return x.sequencia === _this.data.sequencia; });
            this.dados[i] = this.data;
        }
        else {
            this.setSequencia();
            this.data.classificacaoFiscalId = this.classificacaoFiscal.classificacaoFiscalId;
            this.dados.push(this.data);
        }
        this.data = new _classificacao_fiscal_model__WEBPACK_IMPORTED_MODULE_4__["SubsTributaria"]();
        this.dataResult.emit(this.dados);
        this.back();
    };
    SubsTributariaFormComponent.prototype.trataMensagemIcms = function (mensagemIcms) {
        if (mensagemIcms) {
            this.data.mensagemIcms = mensagemIcms.observacoes;
        }
    };
    SubsTributariaFormComponent.prototype.setSequencia = function () {
        if (this.funcoes.isUndefinedOrNull(this.data.subsTributariaId) ||
            this.data.subsTributariaId === "") {
            if (!this.dados) {
                this.dados = [];
            }
            this.data.sequencia = this.dados.length + 1;
        }
        else {
            this.data.sequencia = this.data.sequencia;
        }
    };
    SubsTributariaFormComponent.ctorParameters = function () { return [
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _mensagem_mensagem_service__WEBPACK_IMPORTED_MODULE_6__["MensagemService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _classificacao_fiscal_model__WEBPACK_IMPORTED_MODULE_4__["ClassificacaoFiscal"])
    ], SubsTributariaFormComponent.prototype, "classificacaoFiscal", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], SubsTributariaFormComponent.prototype, "disabled", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], SubsTributariaFormComponent.prototype, "required", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Array)
    ], SubsTributariaFormComponent.prototype, "dados", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], SubsTributariaFormComponent.prototype, "dataResult", void 0);
    SubsTributariaFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-subs-tributaria-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./subs-tributaria-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/classificacao-fiscal/subs-tributaria-form/subs-tributaria-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _mensagem_mensagem_service__WEBPACK_IMPORTED_MODULE_6__["MensagemService"]])
    ], SubsTributariaFormComponent);
    return SubsTributariaFormComponent;
}());



/***/ })

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