(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-cotriguacu-cadastros-produtos-armazenados-terceiros-produtos-armazenados-terceiros-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-ficha-tecnica-form/produtos-armazenados-terceiros-ficha-tecnica-form.component.html":
/*!************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-ficha-tecnica-form/produtos-armazenados-terceiros-ficha-tecnica-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\"\n                      [formAction]=\"actionForm\"\n                      [itemData]=\"data.materialCaractId\"\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <div class=\"section-comand-bar\">\n            <div class=\"\">\n                <app-form-legenda></app-form-legenda>\n                <div class=\"card-body widget-body\">\n                    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\n                        <app-validacoes></app-validacoes>\n                        <div class=\"clearfix\">\n                            <ul class=\"nav nav-tabs \">\n                                <li class=\"nav-item\">\n                                    <a class=\"nav-link active show\" data-toggle=\"tab\"\n                                       href=\"#destino\">{{\"labels.destino\" | translate}}</a>\n                                </li>\n                                <li class=\"nav-item\">\n                                    <a class=\"nav-link\" data-toggle=\"tab\"\n                                       href=\"#origem\">{{\"labels.origem\" | translate}}</a>\n                                </li>\n                            </ul>\n                        </div>\n                        <div class=\"tab-content top\">\n                            <div class=\"tab-pane active show\" id=\"destino\">\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-12\">\n                                        <label>&nbsp;</label>\n                                        <app-card-container tituloCard=\"produto\">\n                                            <div class=\"row\">\n                                                <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                                                    <input name=\"produto\"\n                                                           value=\"{{data.material.materialId}}\"\n                                                           class=\"form-control form-control-sm\"\n                                                           type=\"text\"\n                                                           disabled>\n                                                </div>\n                                                <div class=\"col-lg-9 col-md-8 col-sm-12\">\n                                                    <input name=\"fantasia\"\n                                                           value=\"{{data.material.descrMater}}\"\n                                                           maxlength=\"25\"\n                                                           disabled\n                                                           class=\"form-control form-control-sm\"\n                                                           type=\"text\">\n                                                </div>\n                                            </div>\n                                        </app-card-container>\n                                    </div>\n                                </div>\n\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"caracteristica\"\n                                                   class=\"required\">{{\"labels.caracteristica\" | translate }}</label>\n                                            <select class=\"form-control form-control-sm\" id=\"caracteristica\"\n                                                    name=\"caracteristica\"\n                                                    [(ngModel)]=\"data.caractTipicaId\"\n                                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                    (ngModelChange)=\"getByCaractTipica($event)\"\n                                                    required=\"true\">\n                                                <option value=\" \">{{'labels.selecione'|translate}}</option>\n                                                <option *ngFor=\"let item of caractTipicaList\"\n                                                        value=\"{{ item.caractTipicaId }}\">{{ item.descrCaract }}</option>\n                                            </select>\n                                        </div>\n                                    </div>\n                                </div>\n\n                                <div class=\"row\">\n                                    <div class=\"col-lg-9 col-md-6 col-sm-12\">\n                                        <label> </label>\n                                        <div class=\"custom-control custom-checkbox mb-1\">\n                                            <input id=\"mandatorio\" name=\"mandatorio\" [ngModel]=\"data.mandatorio === 'S'\"\n                                                   (ngModelChange)=\"data.mandatorio=$event?'S':'N'\"\n                                                   class=\"custom-control-input checkbox-success\"\n                                                   type=\"checkbox\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            <label class=\"custom-control-label\"\n                                                   for=\"mandatorio\">{{'labels.mandatorio' | translate}}</label>\n                                        </div>\n                                    </div>\n                                </div>\n\n                                <div class=\"row\" *ngIf=\"tipoValLimite === 3\">\n                                    <div class=\"col-lg-6 col-md-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"caracteristica\" class=\"required\">{{ 'labels.referencia' | translate }}</label>\n                                            <select class=\"form-control form-control-sm\" required=\"true\" id=\"referencia\"\n                                                    name=\"referencia\"\n                                                    [(ngModel)]=\"data.caractTipicaReferId\"\n                                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                <option value=\"\">{{'labels.selecione'|translate}}</option>\n                                                <option *ngFor=\"let item of caractTipicaReferList\"\n                                                        value=\"{{ item.caractTipicaReferId }}\">{{ item.descrRefer }}</option>\n                                            </select>\n                                        </div>\n                                    </div>\n                                </div>\n\n                                <div class=\"row\">\n                                    <div class=\"col-lg-4\" *ngIf=\"(tipoValLimite === 0) || (tipoValLimite === 1)\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"vlReferI\">{{'labels.valorMinimo' | translate}}</label>\n                                            <input id=\"vlReferI\"\n                                                   name=\"vlReferI\"\n                                                   [(ngModel)]=\"data.valorReferenciaInicio\"\n                                                   class=\"form-control form-control-sm\"\n                                                   type=\"text\"\n                                                   [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                   currencyMask\n                                                   [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 3 }\"\n                                                   maxlength=\"9\">\n                                        </div>\n                                    </div>\n                               </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-4\" *ngIf=\"(tipoValLimite === 0) || (tipoValLimite === 2)\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"vlReferF\">{{'labels.valorMaximo' | translate}}</label>\n                                            <input id=\"VlReferF\"\n                                                   name=\"VlReferF\"\n                                                   [(ngModel)]=\"data.valorReferenciaFim\"\n                                                   class=\"form-control form-control-sm\"\n                                                   type=\"text\"\n                                                   [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                   currencyMask\n                                                   [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 3 }\"\n                                                   maxlength=\"9\">\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"tab-pane\" id=\"origem\">\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-12\">\n                                        <label>&nbsp;</label>\n                                        <app-card-container tituloCard=\"produto\">\n                                            <div class=\"row\">\n                                                <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                                                    <input name=\"produto\"\n                                                           value=\"{{data.material.materialId}}\"\n                                                           class=\"form-control form-control-sm\"\n                                                           type=\"text\"\n                                                           disabled>\n                                                </div>\n                                                <div class=\"col-lg-9 col-md-8 col-sm-12\">\n                                                    <input name=\"fantasia\"\n                                                           value=\"{{data.material.descrMater}}\"\n                                                           maxlength=\"25\"\n                                                           disabled\n                                                           class=\"form-control form-control-sm\"\n                                                           type=\"text\">\n                                                </div>\n                                            </div>\n                                        </app-card-container>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-12\">\n                                        <div class=\"form-group form-group-sm mb-0\">\n                                            <label for=\"caracteristica\"\n                                                   class=\"required\">{{ 'labels.caracteristica' | translate }}</label>\n                                            <app-combo-padrao id=\"caracteristica_origem\"\n                                                              name=\"caracteristica_origem\"\n                                                              tabela=\"CaractTipica\"\n                                                              descricao=\"DescrCaract\"\n                                                              chave=\"CodCaract\"\n                                                              [(ngModel)]=\"data.caractTipicaId\"\n                                                              [disabled]=\"true\"\n                                                              required=\"true\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\" *ngIf=\"(tipoValLimite === 0) || (tipoValLimite === 1)\">\n                                    <div class=\"col-lg-6 col-md-12 mt-3\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"codReferOri\">{{ 'labels.referencia' | translate }}</label>\n                                            <app-combo-padrao id=\"codReferOri\"\n                                                              name=\"codReferOri\"\n                                                              tabela=\"CaractTipicaRefer\"\n                                                              descricao=\"DescrRefer\"\n                                                              chave=\"CodCaract\"\n                                                              [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                              [(ngModel)]=\"data.codReferOri\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-4\">\n                                        <div class=\"form-group form-group-sm mt-3\">\n                                            <label for=\"vlReferOriI\">{{'labels.diferencaMaximaEmRelacaoClassificacaoDeDestinoFerroviario' | translate}}</label>\n                                            <input id=\"vlReferOriI\"\n                                                   name=\"vlReferOriI\"\n                                                   [(ngModel)]=\"data.vlReferOriI\"\n                                                   class=\"form-control form-control-sm\"\n                                                   type=\"text\"\n                                                   [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                   currencyMask\n                                                   [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 3 }\"\n                                                   maxlength=\"5\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-4\">\n                                        <div class=\"form-group form-group-sm mt-3\">\n                                            <label for=\"vlReferOriF\">{{'labels.diferencaMaximaEmRelacaoClassificacaoDeDestinoRodoviario' | translate}}</label>\n                                            <input id=\"vlReferOriF\"\n                                                   name=\"vlReferOriF\"\n                                                   [(ngModel)]=\"data.vlReferOriF\"\n                                                   class=\"form-control form-control-sm\"\n                                                   type=\"text\"\n                                                   [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                   currencyMask\n                                                   [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 3 }\"\n                                                   maxlength=\"5\">\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n\n                        <div class=\"row\">\n                            <div class=\"col-lg-4\">\n                              <span *ngIf=\"data.sisCampoAdds\">\n                                <div *ngFor=\"let d of data.sisCampoAdds\" [class.col-lg-6]=\"!d.colunas\">\n                                  <app-campos-adicionais name=\"{{d.campo}}\" [sisCampoAdd]=\"d\" [(ngModel)]=\"d.valorCampo\"\n                                                         [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                         [required]=\"d.obrigatorio === 'S'\"></app-campos-adicionais>\n                                </div>\n                              </span>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-4\">\n                                <div class=\"form-group\">\n                                    <button class=\"btn btn-success mr-2\" type=\"submit\"\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        {{ 'buttons.salvar' | translate }}\n                                    </button>\n                                    <button class=\"btn btn-success\" (click)=\"saveAndCreate(f)\" type=\"button\"\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\">{{ 'buttons.salvarNovo' | translate }}</button>\n                                </div>\n                            </div>\n                        </div>\n                    </form>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-ficha-tecnica-index/produtos-armazenados-terceiros-ficha-tecnica-index.component.html":
/*!**************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-ficha-tecnica-index/produtos-armazenados-terceiros-ficha-tecnica-index.component.html ***!
  \**************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\"\n                      [formAction]=\"actionForm\"\n                      [itemData]=\"data.materialCaractId\"\n                      [sisFormularioId]=\"constantes.sisFormularioId\"\n                      [showButtomFavorite]=\"false\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <table id=\"dtFichaTecnica\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\n</div>\n\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-filter/produtos-armazenados-terceiros-filter.component.html":
/*!************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-filter/produtos-armazenados-terceiros-filter.component.html ***!
  \************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal fade\" id=\"produtos-armazenados-terceiros-filter\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"modal-dialog\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.produtosArmazenadosTerceiros' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6 col-md-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"materialDe\">{{\"labels.materialDe\" | translate }}</label>\r\n                                <input id=\"materialDe\" name=\"materialDe\" [(ngModel)]=\"service.filtro.materialIdDe\"\r\n                                        maxlength=\"20\" class=\"form-control form-control-sm\" type=\"text\" />\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-6 col-md-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"materialAte\">{{\"labels.ate\" | translate }}</label>\r\n                                <input id=\"materialAte\" name=\"materialAte\" [(ngModel)]=\"service.filtro.materialIdAte\"\r\n                                        maxlength=\"20\" class=\"form-control form-control-sm\" type=\"text\" />\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6 col-md-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"descrMaterDe\">{{\"labels.descrMaterDe\" | translate }}</label>\r\n                                <input id=\"descrMaterDe\" name=\"descrMaterDe\" [(ngModel)]=\"service.filtro.descrMaterDe\"\r\n                                        maxlength=\"20\" class=\"form-control form-control-sm\" type=\"text\" />\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-6 col-md-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"descrmaterAte\">{{\"labels.ate\" | translate }}</label>\r\n                                <input id=\"descrmaterAte\" name=\"descrmaterAte\" [(ngModel)]=\"service.filtro.descrmaterAte\"\r\n                                        maxlength=\"20\" class=\"form-control form-control-sm\" type=\"text\" />\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6 col-md-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"fantasiaDe\">{{\"labels.fantasiaDe\" | translate }}</label>\r\n                                <input id=\"fantasiaDe\" name=\"fantasiaDe\" [(ngModel)]=\"service.filtro.fantasiaDe\"\r\n                                        maxlength=\"20\" class=\"form-control form-control-sm\" type=\"text\" />\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-6 col-md-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"fantasiaDe\">{{\"labels.ate\" | translate }}</label>\r\n                                <input id=\"fantasiaAte\" name=\"fantasiaAte\" [(ngModel)]=\"service.filtro.fantasiaAte\"\r\n                                        maxlength=\"20\" class=\"form-control form-control-sm\" type=\"text\" />\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}</button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>\r\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-form/produtos-armazenados-terceiros-form.component.html":
/*!********************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-form/produtos-armazenados-terceiros-form.component.html ***!
  \********************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaForm\" [formAction]=\"actionForm\" [itemData]=\"data.materialId\"\n    [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <div class=\"section-comand-bar\">\n            <div class=\"tab-content top\">\n                <!-- ABAS -->\n                <app-form-legenda></app-form-legenda>\n                <div class=\"tab-pane active show\" id=\"ge\">\n                    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\n                        <app-validacoes></app-validacoes>\n                        <div class=\"clearfix\">\n                            <ul class=\"nav nav-tabs \">\n                                <li class=\"nav-item\">\n                                    <a class=\"nav-link active show\" data-toggle=\"tab\" href=\"#da\">{{\"labels.dados\" |\n                                        translate}}</a>\n                                </li>\n                                <li class=\"nav-item\">\n                                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#fi\">{{\"labels.informacoesFiscais\" |\n                                        translate}}</a>\n                                </li>\n                                <li class=\"nav-item\">\n                                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#ad\">{{\"labels.adicionais\" |\n                                        translate}}</a>\n                                </li>\n                                <li class=\"nav-item\">\n                                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#com\">{{\"labels.complementares\" |\n                                        translate}}</a>\n                                </li>\n                                <li class=\"nav-item\">\n                                    <a class=\"nav-link\" data-toggle=\"tab\"\n                                        href=\"#ar\">{{\"labels.caracteristicaArmazenagem\" | translate}}</a>\n                                </li>\n                                <li class=\"nav-item\">\n                                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#op\">{{\"labels.operacionais\" |\n                                        translate}}</a>\n                                </li>\n                                <li class=\"nav-item\">\n                                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#in\">{{\"labels.integracoes\" |\n                                        translate}}</a>\n                                </li>\n                                <li class=\"nav-item\">\n                                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#gr\">{{\"labels.grupoCipp\" |\n                                        translate}}</a>\n                                </li>\n                            </ul>\n                        </div>\n                        <div class=\"tab-content top\">\n                            <!-- ABA DADOS -->\n                            <div class=\"tab-pane active show\" id=\"da\">\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"produto\"\n                                                [class.required]=\"funcoesService.isCreate(this.actionForm)\">{{'labels.produto'\n                                                | translate}}</label>\n                                            <input id=\"produto\" name=\"produto\" [(ngModel)]=\"data.materialId\"\n                                                maxlength=\"6\" required=\"true\" class=\"form-control form-control-sm\"\n                                                type=\"text\" (change)=\"vldTamCodigo()\" [disabled]=\"enabledProduto()\">\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-6 col-md-12\">\n                                        <label></label>\n                                        <div class=\"custom-control custom-checkbox\">\n                                            <input id=\"flagAtivo\" name=\"flagAtivo\" [ngModel]=\"data.flagAtivo === 'S'\"\n                                                (ngModelChange)=\"data.flagAtivo=$event?'S':'N'\"\n                                                class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            <label class=\"custom-control-label\" for=\"flagAtivo\">{{'labels.ativo' |\n                                                translate}}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"fantasia\" class=\"required\">{{'labels.fantasia' |\n                                                translate}}</label>\n                                            <input id=\"fantasia\" name=\"fantasia\" [(ngModel)]=\"data.fantasia\"\n                                                maxlength=\"25\" required=\"true\" class=\"form-control form-control-sm\"\n                                                type=\"text\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"descrMater\" class=\"required\">{{'labels.descricao' |\n                                                translate}}</label>\n                                            <input id=\"descrMater\" name=\"descrMater\" [(ngModel)]=\"data.descrMater\"\n                                                maxlength=\"50\" required=\"true\" class=\"form-control form-control-sm\"\n                                                type=\"text\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"metCalcProduto\" class=\"required\">{{\n                                                \"labels.metCalcProduto\" | translate\n                                                }}</label>\n                                            <select id=\"metCalcProduto\" name=\"metCalcProduto\"\n                                                [(ngModel)]=\"data.metCalcProduto\" class=\"form-control form-control-sm\"\n                                                required=\"true\" (change)=\"maskAlterar()\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\n                                                <option value=\"L\">{{'labels.litro' | translate}}</option>\n                                                <option value=\"D\">{{'labels.densidade' | translate}}</option>\n                                                <option value=\"T\">{{'labels.tabela' | translate}}</option>\n                                                <option value=\"2\">20 {{'labels.graus' | translate}}</option>\n                                                <option value=\"C\">{{'labels.concentracao' | translate}}</option>\n                                            </select>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"tipoMaterial\" class=\"required\">{{\n                                                \"labels.tipoMaterial\" | translate\n                                                }}</label>\n                                            <select class=\"form-control form-control-sm\" id=\"tipoMaterial\"\n                                                name=\"tipoMaterial\" (ngModelChange)=\"verificaTipoMaterial($event)\"\n                                                [(ngModel)]=\"data.tipoDeMaterialId\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" required=\"true\">\n                                                <option *ngFor=\"let item of materialTypes\"\n                                                    value=\"{{ item.tipoDeMaterialId }}\">{{ item.descrTipoMater }}\n                                                </option>\n                                            </select>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"unidade\" class=\"required\">{{\n                                                \"labels.unidade\" | translate\n                                                }}</label>\n                                            <app-combo-padrao id=\"unidade\" name=\"unidade\" [(ngModel)]=\"data.unidade\"\n                                                tabela=\"Unidade\" chave=\"Unidade\" descricao=\"DescrUnidade\" ativos=\"true\"\n                                                required=\"true\" (change)=\"copiarUnidade()\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"grupoDeEmbalagem\">{{\n                                                \"labels.grupoDeEmbalagem\" | translate\n                                                }}</label>\n                                            <app-combo-padrao id=\"grupoDeEmbalagem\" name=\"grupoDeEmbalagem\"\n                                                [(ngModel)]=\"data.embalagem\" tabela=\"Embalagem\" chave=\"Embalagem\"\n                                                descricao=\"DescrEmbalagem\" ativos=\"true\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"fatorCorrecao\"\n                                                [class.required]=\"isGranel(2)\">{{'labels.fatorCorrecao' |\n                                                translate}}</label>\n                                            <input id=\"fatorCorrecao\" name=\"fatorCorrecao\"\n                                                [(ngModel)]=\"data.fatorCorrecao\" class=\"form-control form-control-sm\"\n                                                type=\"text\" [maxlength]=\"hasPrecisionFatorCorrecao.length\" currencyMask\n                                                [options]=\"hasPrecisionFatorCorrecao\" [required]=\"isGranel(2)\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"tempPadrao\" [class.required]=\"isGranel(2)\">{{'labels.tempPadrao'\n                                                | translate}}</label>\n                                            <input id=\"tempPadrao\" name=\"tempPadrao\" [(ngModel)]=\"data.tempPadrao\"\n                                                maxlength=\"4\" class=\"form-control form-control-sm\" type=\"text\"\n                                                currencyMask [required]=\"isGranel(2)\"\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 1 }\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"densidadePadrao\"\n                                                [class.required]=\"isGranel(2)\">{{'labels.densidadePadrao' |\n                                                translate}}</label>\n                                            <input id=\"densidadePadrao\" name=\"densidadePadrao\"\n                                                [(ngModel)]=\"data.densidadePadrao\" class=\"form-control form-control-sm\"\n                                                type=\"text\" [maxlength]=\"hasPrecision.length\" currencyMask\n                                                [options]=\"hasPrecision\" [required]=\"isGranel(2)\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-9 col-md-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"regGrupoProduto\" class=\"required\">{{\"labels.regGrupoProduto\" |\n                                                translate}}</label>\n                                            <app-combo-padrao id=\"regGrupoProduto\" name=\"regGrupoProduto\"\n                                                [(ngModel)]=\"data.regGrupoProduto\" tabela=\"GrupoProduto\"\n                                                chave=\"RegGrupoProduto\" descricao=\"DescGrupoProduto\" ativos=\"true\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" [required]=\"true\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                            <!-- ABA INFORMAÇÔES FISCAIS -->\n                            <div class=\"tab-pane\" id=\"fi\">\n                                <app-card-container tituloCard=\"produto\">\n                                    <div class=\"row\">\n                                        <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                                            <input name=\"produto\" value=\"{{data.materialId}}\"\n                                                class=\"form-control form-control-sm\" type=\"text\" disabled>\n                                        </div>\n                                        <div class=\"col-lg-9 col-md-8 col-sm-12\">\n                                            <input name=\"fantasia\" value=\"{{data.fantasia}}\" maxlength=\"25\" disabled\n                                                class=\"form-control form-control-sm\" type=\"text\">\n                                        </div>\n                                    </div>\n                                </app-card-container>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"procedencia\" class=\"required\">{{\n                                                \"labels.procedencia\" | translate\n                                                }}</label>\n                                            <app-combo-padrao id=\"procedencia\" name=\"procedencia\"\n                                                [(ngModel)]=\"data.procedenciaId\" tabela=\"Procedencia\"\n                                                chave=\"Procedencia\" required=\"true\" descricao=\"DescrProcedencia\"\n                                                ativos=\"true\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"clasifacaoFiscal\" class=\"required\">{{\"labels.clasifacaoFiscal\" |\n                                                translate}}</label>\n                                            <app-combo-padrao id=\"clasifacaoFiscal\" name=\"codNbm\"\n                                                [(ngModel)]=\"data.classificacaoFiscalId\" tabela=\"ClassificacaoFiscal\"\n                                                chave=\"CodNbm\" required=\"true\" descricao=\"CodNbm\" ativos=\"true\"\n                                                (change)=\"clasFiscal()\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"aliqIcms\">{{'labels.aliqIcms' | translate}}</label>\n                                            <input id=\"aliqIcms\" name=\"aliqIcms\" [(ngModel)]=\"data.aliqIcms\"\n                                                maxlength=\"5\" class=\"form-control form-control-sm\" type=\"text\"\n                                                currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"redBasIcms\">{{'labels.redBasIcms' | translate}}</label>\n                                            <input id=\"redBasIcms\" name=\"redBasIcms\" [(ngModel)]=\"data.redBasIcms\"\n                                                maxlength=\"8\" currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 4 }\"\n                                                class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"tipoIcms\" class=\"required\">{{\n                                                \"labels.tipoIcms\" | translate\n                                                }}</label>\n                                            <select id=\"tipoIcms\" name=\"tipoIcms\" [(ngModel)]=\"data.tipoIcms\"\n                                                class=\"form-control form-control-sm\" required=\"true\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\n                                                <option value=\"N\">Normal</option>\n                                                <option value=\"I\">Isento</option>\n                                                <option value=\"O\">Outras</option>\n                                                <option value=\"S\">Superfluos</option>\n                                                <option value=\"T\">Substituição Tributaria</option>\n                                                <option value=\"R\">Redução do Estado</option>\n                                                <option value=\"J\">Icms Recolhido por ST</option>\n                                            </select>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"aliqIpi\">{{'labels.aliqIpi' | translate}}</label>\n                                            <input id=\"aliqIpi\" name=\"aliqIpi\" [(ngModel)]=\"data.aliqIpi\" maxlength=\"5\"\n                                                class=\"form-control form-control-sm\" type=\"text\" currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"redBasIpi\">{{'labels.redBasIpi' | translate}}</label>\n                                            <input id=\"redBasIpi\" name=\"redBasIpi\" [(ngModel)]=\"data.redBasIpi\"\n                                                maxlength=\"8\" class=\"form-control form-control-sm\" type=\"text\"\n                                                currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 4 }\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"tipoIpi\" class=\"required\">{{\n                                                \"labels.tipoIpi\" | translate\n                                                }}</label>\n                                            <select id=\"tipoIpi\" name=\"tipoIpi\" [(ngModel)]=\"data.tipoIpi\"\n                                                class=\"form-control form-control-sm\" required=\"true\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\n                                                <option value=\"N\">Normal</option>\n                                                <option value=\"I\">Isento</option>\n                                                <option value=\"O\">Outras</option>\n                                                <option value=\"K\">Por Kilo</option>\n                                            </select>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"aliqIss\">{{'labels.aliqIss' | translate}}</label>\n                                            <input id=\"aliqIss\" name=\"aliqIss\" [(ngModel)]=\"data.aliqIss\" maxlength=\"5\"\n                                                class=\"form-control form-control-sm\" type=\"text\" currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"codGoverno\">{{'labels.codGoverno' | translate}}</label>\n                                            <input id=\"codGoverno\" name=\"codGoverno\" [(ngModel)]=\"data.codGoverno\"\n                                                maxlength=\"15\" class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-9 col-md-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"generoMaterialSped\"\n                                                class=\"required\">{{'labels.generoMaterialSped' | translate}}</label>\n                                            <app-combo-padrao id=\"generoMaterialSped\" name=\"generoMaterialSped\"\n                                                [(ngModel)]=\"data.generoMaterialSped\" tabela=\"GeneroMaterialSped\"\n                                                chave=\"GeneroMaterialSped\" required=\"true\" descricao=\"DescrGeneroSped\"\n                                                ativos=\"true\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                            <!-- ABA ADICIONAIS -->\n                            <div class=\"tab-pane\" id=\"ad\">\n                                <app-card-container tituloCard=\"produto\">\n                                    <div class=\"row\">\n                                        <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                                            <input name=\"produto\" value=\"{{data.materialId}}\"\n                                                class=\"form-control form-control-sm\" type=\"text\" disabled>\n                                        </div>\n                                        <div class=\"col-lg-9 col-md-8 col-sm-12\">\n                                            <input name=\"fantasia\" value=\"{{data.fantasia}}\" maxlength=\"25\" disabled\n                                                class=\"form-control form-control-sm\" type=\"text\">\n                                        </div>\n                                    </div>\n                                </app-card-container>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"codEntorpecente\">{{\"labels.codEntorpecente\" |\n                                                translate}}</label>\n                                            <app-combo-padrao id=\"codEntorpecente\" name=\"codEntorpecente\"\n                                                [(ngModel)]=\"data.codEntorpecente\" tabela=\"CadEntorpecentes\"\n                                                chave=\"Codigo\" descricao=\"Descricao\" ativos=\"true\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-12\">\n                                        <div class=\"custom-control custom-checkbox\">\n                                            <input id=\"policiaCivil\" name=\"policiaCivil\"\n                                                [ngModel]=\"data.policiaCivil === 'S'\"\n                                                (ngModelChange)=\"data.policiaCivil=$event?'S':'N'\"\n                                                class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            <label class=\"custom-control-label\"\n                                                for=\"policiaCivil\">{{'labels.policiaCivil' | translate}}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-12\">\n                                        <div class=\"custom-control custom-checkbox\">\n                                            <input id=\"controle20\" name=\"controle20\" [ngModel]=\"data.controle20 === 'S'\"\n                                                (ngModelChange)=\"data.controle20=$event?'S':'N'\"\n                                                class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            <label class=\"custom-control-label\" for=\"controle20\">{{'labels.controle20' |\n                                                translate}}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-12\">\n                                        <div class=\"custom-control custom-checkbox\">\n                                            <input id=\"controlePool\" name=\"controlePool\"\n                                                [ngModel]=\"data.controlePool === 'S'\"\n                                                (ngModelChange)=\"data.controlePool=$event?'S':'N'\"\n                                                class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            <label class=\"custom-control-label\"\n                                                for=\"controlePool\">{{'labels.controlePool' | translate}}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row mb-2\">\n                                    <div class=\"col-lg-12\">\n                                        <div class=\"custom-control custom-checkbox\">\n                                            <input id=\"altDescrMater\" name=\"altDescrMater\"\n                                                [ngModel]=\"data.altDescrMater === 'S'\"\n                                                (ngModelChange)=\"data.altDescrMater=$event?'S':'N'\"\n                                                class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            <label class=\"custom-control-label\"\n                                                for=\"altDescrMater\">{{'labels.altDescrMater' | translate}}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-9 col-md-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"descrEmbarque\">{{'labels.descrEmbarque' | translate}}</label>\n                                            <input id=\"descrEmbarque\" name=\"descrEmbarque\"\n                                                [(ngModel)]=\"data.descrEmbarque\" maxlength=\"100\"\n                                                class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"codOnu\">{{'labels.codOnu' | translate}}</label>\n                                            <input id=\"codOnu\" name=\"codOnu\" [(ngModel)]=\"data.codOnu\" maxlength=\"4\"\n                                                class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"catRisco\">{{'labels.catRisco' | translate}}</label>\n                                            <input id=\"catRisco\" name=\"catRisco\" [(ngModel)]=\"data.catRisco\"\n                                                maxlength=\"9\" class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"classeRisco\">{{'labels.classeRisco' | translate}}</label>\n                                            <input id=\"classeRisco\" name=\"classeRisco\" [(ngModel)]=\"data.classeRisco\"\n                                                maxlength=\"5\" class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"unidadeWeb\">{{\n                                                \"labels.unidadeWeb\" | translate\n                                                }}</label>\n                                            <app-combo-padrao id=\"unidadeWeb\" name=\"unidadeWeb\"\n                                                [(ngModel)]=\"data.unidadeWeb\" tabela=\"Unidade\" chave=\"Unidade\"\n                                                descricao=\"DescrUnidade\" ativos=\"true\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                            <!-- ABA COMPLEMENTARIAS -->\n                            <div class=\"tab-pane\" id=\"com\">\n                                <app-card-container tituloCard=\"produto\">\n                                    <div class=\"row\">\n                                        <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                                            <input name=\"produto\" value=\"{{data.materialId}}\"\n                                                class=\"form-control form-control-sm\" type=\"text\" disabled>\n                                        </div>\n                                        <div class=\"col-lg-9 col-md-8 col-sm-12\">\n                                            <input name=\"fantasia\" value=\"{{data.fantasia}}\" maxlength=\"25\" disabled\n                                                class=\"form-control form-control-sm\" type=\"text\">\n                                        </div>\n                                    </div>\n                                </app-card-container>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-12\">\n                                        <app-card-container tituloCard=\"anp\">\n                                            <div class=\"row\">\n                                                <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"codigoAnp17\">{{'labels.codigo' | translate}}</label>\n                                                        <input id=\"codigoAnp17\" name=\"codigoAnp17\"\n                                                            [(ngModel)]=\"data.codigoAnp17\" maxlength=\"9\"\n                                                            class=\"form-control form-control-sm\" type=\"text\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                    </div>\n                                                </div>\n                                                <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"densidadeANP\"\n                                                            [class.required]=\"isGranel(2) && !!(data.codigoAnp17)\">{{'labels.densidade'\n                                                            | translate}}</label>\n                                                        <input id=\"densidadeANP\" name=\"densidadeANP\"\n                                                            [(ngModel)]=\"data.densidadeAnp\" maxlength=\"7\"\n                                                            class=\"form-control form-control-sm\" type=\"text\"\n                                                            currencyMask\n                                                            [required]=\"isGranel(2) && !!(data.codigoAnp17)\"\n                                                            [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 5 }\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                    </div>\n                                                </div>\n                                                <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"codCodif\">{{'labels.codCodif' | translate}}</label>\n                                                        <input id=\"codCodif\" name=\"codCodif\" [(ngModel)]=\"data.codCodif\"\n                                                            maxlength=\"21\" class=\"form-control form-control-sm\"\n                                                            type=\"text\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                    </div>\n                                                </div>\n                                            </div>\n                                            <div class=\"row\">\n                                                <div class=\"col-lg-9 col-md-12\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"descrMaterAnp\">{{'labels.descrMaterANP' |\n                                                            translate}}</label>\n                                                        <input id=\"descrMaterAnp\" name=\"descrMaterAnp\"\n                                                            [(ngModel)]=\"data.descrMaterAnp\" maxlength=\"150\"\n                                                            class=\"form-control form-control-sm\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                    </div>\n                                                </div>\n                                            </div>\n                                        </app-card-container>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-4 col-md-12\">\n                                        <app-card-container tituloCard=\"dadosPFaturamento\">\n                                            <div class=\"row\">\n                                                <div class=\"col-lg-12\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"fatorN2\">{{'labels.fatorN2' | translate}}</label>\n                                                        <input id=\"fatorN2\" name=\"fatorN2\" [(ngModel)]=\"data.fatorN2\"\n                                                            maxlength=\"5\" class=\"form-control form-control-sm\"\n                                                            type=\"text\" currencyMask\n                                                            [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                    </div>\n                                                </div>\n                                            </div>\n                                            <div class=\"row\">\n                                                <div class=\"col-lg-12\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"pigN2\">{{'labels.pigN2' | translate}}</label>\n                                                        <input id=\"pigN2\" name=\"pigN2\" [(ngModel)]=\"data.pigN2\"\n                                                            maxlength=\"7\" class=\"form-control form-control-sm\"\n                                                            type=\"text\" currencyMask\n                                                            [options]=\"{ prefix: '', thousands: '', decimal: ',', precision: 2 }\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                    </div>\n                                                </div>\n                                            </div>\n                                        </app-card-container>\n                                    </div>\n                                    <div class=\"col-lg-4 col-md-12\">\n                                        <app-card-container tituloCard=\"exercito\">\n                                            <div class=\"row mb-2\">\n                                                <div class=\"col-lg-12\">\n                                                    <div class=\"custom-control custom-checkbox\">\n                                                        <input id=\"impGuiaTraf\" name=\"impGuiaTraf\"\n                                                            [ngModel]=\"data.impGuiaTraf === 'S'\"\n                                                            (ngModelChange)=\"data.impGuiaTraf=$event?'S':'N'\"\n                                                            class=\"custom-control-input checkbox-success\"\n                                                            type=\"checkbox\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                        <label class=\"custom-control-label\"\n                                                            for=\"impGuiaTraf\">{{'labels.impGuiaTraf' |\n                                                            translate}}</label>\n                                                    </div>\n                                                </div>\n                                            </div>\n                                            <div class=\"row\">\n                                                <div class=\"col-lg-12\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"grupoEx\">{{'labels.grupo' | translate}}</label>\n                                                        <input id=\"grupoEx\" name=\"grupoEx\" [(ngModel)]=\"data.grupoEx\"\n                                                            maxlength=\"5\" class=\"form-control form-control-sm\"\n                                                            type=\"text\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                    </div>\n                                                </div>\n                                            </div>\n                                            <div class=\"row\">\n                                                <div class=\"col-lg-12\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"complGuiaTraf\">{{'labels.complemento' |\n                                                            translate}}</label>\n                                                        <input id=\"complGuiaTraf\" name=\"complGuiaTraf\"\n                                                            [(ngModel)]=\"data.complGuiaTraf\" maxlength=\"30\"\n                                                            class=\"form-control form-control-sm\" type=\"text\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                    </div>\n                                                </div>\n                                            </div>\n                                        </app-card-container>\n                                    </div>\n                                    <div class=\"col-lg-4 col-md-12\">\n                                        <app-card-container tituloCard=\"classificacaoNFPA\">\n                                            <div class=\"row\">\n                                                <div class=\"col-lg-12 col-md-12\">\n                                                    <label></label>\n                                                    <div class=\"custom-control custom-checkbox\">\n                                                        <input id=\"azul\" name=\"azul\" [ngModel]=\"data.cdAzul === 'S'\"\n                                                            (ngModelChange)=\"data.cdAzul=$event?'S':'N'\"\n                                                            class=\"custom-control-input checkbox-success\"\n                                                            type=\"checkbox\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                        <label class=\"custom-control-label\" for=\"azul\">{{'labels.azul' |\n                                                            translate}}</label>\n                                                    </div>\n                                                </div>\n                                            </div>\n                                            <div class=\"row\">\n                                                <div class=\"col-lg-12 col-md-12\">\n                                                    <label></label>\n                                                    <div class=\"custom-control custom-checkbox\">\n                                                        <input id=\"vermelho\" name=\"vermelho\"\n                                                            [ngModel]=\"data.cdVermelho === 'S'\"\n                                                            (ngModelChange)=\"data.cdVermelho=$event?'S':'N'\"\n                                                            class=\"custom-control-input checkbox-success\"\n                                                            type=\"checkbox\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                        <label class=\"custom-control-label\"\n                                                            for=\"vermelho\">{{'labels.vermelho' | translate}}</label>\n                                                    </div>\n                                                </div>\n                                            </div>\n                                            <div class=\"row\">\n                                                <div class=\"col-lg-12 col-md-12\">\n                                                    <label></label>\n                                                    <div class=\"custom-control custom-checkbox\">\n                                                        <input id=\"amarelo\" name=\"amarelo\"\n                                                            [ngModel]=\"data.cdAmarelo === 'S'\"\n                                                            (ngModelChange)=\"data.cdAmarelo=$event?'S':'N'\"\n                                                            class=\"custom-control-input checkbox-success\"\n                                                            type=\"checkbox\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                        <label class=\"custom-control-label\"\n                                                            for=\"amarelo\">{{'labels.amarelo' | translate}}</label>\n                                                    </div>\n                                                </div>\n                                            </div>\n                                        </app-card-container>\n                                    </div>\n                                </div>\n                                <div class=\"row\" [ngStyle]=\"{'margin-bottom':'5%'}\">\n                                    <div class=\"col-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"ePI\">{{'labels.ePI' | translate}}</label>\n                                            <textarea id=\"ePI\" name=\"ePI\" [(ngModel)]=\"data.epi\" maxlength=\"150\"\n                                                rows=\"3\" class=\"form-control\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\"></textarea>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                            <!-- ABA DADOS ARMAZENAGEM -->\n                            <div class=\"tab-pane\" id=\"ar\">\n                                <app-card-container tituloCard=\"produto\">\n                                    <div class=\"row\">\n                                        <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                                            <input name=\"produto\" value=\"{{data.materialId}}\"\n                                                class=\"form-control form-control-sm\" type=\"text\" disabled>\n                                        </div>\n                                        <div class=\"col-lg-9 col-md-8 col-sm-12\">\n                                            <input name=\"fantasia\" value=\"{{data.fantasia}}\" maxlength=\"25\" disabled\n                                                class=\"form-control form-control-sm\" type=\"text\">\n                                        </div>\n                                    </div>\n                                </app-card-container>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"codMaterConst\">{{\"labels.codMaterConstr\" | translate}}</label>\n                                            <app-combo-padrao id=\"codMaterConst\" name=\"codMaterConst\"\n                                                [(ngModel)]=\"data.codMaterConstr\" tabela=\"MaterialConstrucao\"\n                                                chave=\"CodMaterConstr\" descricao=\"DescrMaterConstr \" ativos=\"true\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"codRevestimento\">{{\"labels.revestimento\" | translate}}</label>\n                                            <app-combo-padrao id=\"codRevestimento\" name=\"codRevestimento\"\n                                                [(ngModel)]=\"data.codRevestimento\" tabela=\"Revestimento\"\n                                                chave=\"CodRevestimento\" descricao=\"DescrRevestimento \" ativos=\"true\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"viscosidade\">{{'labels.viscosidade' | translate}}</label>\n                                            <input id=\"viscosidade\" name=\"viscosidade\" [(ngModel)]=\"data.viscosidade\"\n                                                maxlength=\"7\" class=\"form-control form-control-sm\" type=\"text\"\n                                                currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-12\">\n                                        <div class=\"custom-control custom-checkbox\">\n                                            <input id=\"aquecido\" name=\"aquecido\" [ngModel]=\"data.aquecido === 'S'\"\n                                                (ngModelChange)=\"data.aquecido=$event?'S':'N'\"\n                                                class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            <label class=\"custom-control-label\" for=\"aquecido\">{{'labels.aquecido' |\n                                                translate}}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-12\">\n                                        <div class=\"custom-control custom-checkbox\">\n                                            <input id=\"agitador\" name=\"agitador\" [ngModel]=\"data.agitador === 'S'\"\n                                                (ngModelChange)=\"data.agitador=$event?'S':'N'\"\n                                                class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            <label class=\"custom-control-label\" for=\"agitador\">{{'labels.agitador' |\n                                                translate}}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row mb-2\">\n                                    <div class=\"col-lg-12\">\n                                        <div class=\"custom-control custom-checkbox\">\n                                            <input id=\"inertizacao\" name=\"inertizacao\"\n                                                [ngModel]=\"data.inertizacao === 'S'\"\n                                                (ngModelChange)=\"data.inertizacao=$event?'S':'N'\"\n                                                class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            <label class=\"custom-control-label\" for=\"inertizacao\">{{'labels.inertizacao'\n                                                | translate}}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"equipInertizacao\">{{'labels.equipamento' | translate}}</label>\n                                            <input id=\"equipInertizacao\" name=\"equipInertizacao\"\n                                                [(ngModel)]=\"data.equipInertizacao\" maxlength=\"20\"\n                                                class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                            <!-- ABA DADOS OPERACIONAIS -->\n                            <div class=\"tab-pane\" id=\"op\">\n                                <app-card-container tituloCard=\"produto\">\n                                    <div class=\"row\">\n                                        <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                                            <input name=\"produto\" value=\"{{data.materialId}}\"\n                                                class=\"form-control form-control-sm\" type=\"text\" disabled>\n                                        </div>\n                                        <div class=\"col-lg-9 col-md-8 col-sm-12\">\n                                            <input name=\"fantasia\" value=\"{{data.fantasia}}\" maxlength=\"25\" disabled\n                                                class=\"form-control form-control-sm\" type=\"text\">\n                                        </div>\n                                    </div>\n                                </app-card-container>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"ptRetencao\">{{'labels.ptRetencao' | translate}}</label>\n                                            <input id=\"ptRetencao\" name=\"ptRetencao\" [(ngModel)]=\"data.ptRetencao\"\n                                                maxlength=\"6\" class=\"form-control form-control-sm\" type=\"text\"\n                                                currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-12\">\n                                        <div class=\"custom-control custom-checkbox\">\n                                            <input id=\"flagObrigaCheckList\" name=\"flagObrigaCheckList\"\n                                                [ngModel]=\"data.flagObrigaCheckList === 'S'\"\n                                                (ngModelChange)=\"data.flagObrigaCheckList=$event?'S':'N'\"\n                                                class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            <label class=\"custom-control-label\"\n                                                for=\"flagObrigaCheckList\">{{'labels.flagObrigaCheckList' |\n                                                translate}}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row mb-2\">\n                                    <div class=\"col-lg-12\">\n                                        <div class=\"custom-control custom-checkbox\">\n                                            <input id=\"consideraPesobal\" name=\"consideraPesobal\"\n                                                [ngModel]=\"data.consideraPesobal === 'S'\"\n                                                (ngModelChange)=\"data.consideraPesobal=$event?'S':'N'\"\n                                                class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            <label class=\"custom-control-label\"\n                                                for=\"consideraPesobal\">{{'labels.consideraPesobal' | translate}}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"ptDifAduaneira\">{{'labels.ptDifAduaneira' | translate}}</label>\n                                            <input id=\"ptDifAduaneira\" name=\"ptDifAduaneira\"\n                                                [(ngModel)]=\"data.ptDifAduaneira\" maxlength=\"11\"\n                                                class=\"form-control form-control-sm\" type=\"text\" currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-12\">\n                                        <div class=\"custom-control custom-checkbox\">\n                                            <input id=\"flagAnalise\" name=\"flagAnalise\"\n                                                [ngModel]=\"data.flagAnalise === 'S'\"\n                                                (ngModelChange)=\"data.flagAnalise=$event?'S':'N'\"\n                                                class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            <label class=\"custom-control-label\"\n                                                for=\"flagAnalise\">{{'labels.efetuaAnaliseDeProduto' |\n                                                translate}}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-2\">\n                                        <div class=\"custom-control custom-checkbox\">\n                                            <input id=\"flagConferencia\" name=\"flagConferencia\"\n                                                [ngModel]=\"data.flagConferencia === 'S'\"\n                                                (ngModelChange)=\"data.flagConferencia=$event?'S':'N'\"\n                                                class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            <label class=\"custom-control-label\"\n                                                for=\"flagConferencia\">{{'labels.flagConferencia' | translate}}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-12\">\n                                        <div class=\"custom-control custom-checkbox\">\n                                            <input id=\"flagDensidadeTanque\" name=\"flagDensidadeTanque\"\n                                                [ngModel]=\"data.flagDensidadeTanque === 'S'\"\n                                                (ngModelChange)=\"data.flagDensidadeTanque=$event?'S':'N'\"\n                                                class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            <label class=\"custom-control-label\"\n                                                for=\"flagDensidadeTanque\">{{'labels.flagDensidadeTanque' |\n                                                translate}}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-12\">\n                                        <div class=\"custom-control custom-checkbox\">\n                                            <input id=\"obrEtiqueta\" name=\"obrEtiqueta\"\n                                                [ngModel]=\"data.obrEtiqueta === 'S'\"\n                                                (ngModelChange)=\"data.obrEtiqueta=$event?'S':'N'\"\n                                                class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            <label class=\"custom-control-label\" for=\"obrEtiqueta\">{{'labels.obrEtiqueta'\n                                                | translate}}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row mb-2\">\n                                    <div class=\"col-lg-12\">\n                                        <div class=\"custom-control custom-checkbox\">\n                                            <input id=\"flagDesmembraVeiculo\" name=\"flagDesmembraVeiculo\"\n                                                [ngModel]=\"data.flagDesmembraVeiculo === 'S'\"\n                                                (ngModelChange)=\"data.flagDesmembraVeiculo=$event?'S':'N'\"\n                                                class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            <label class=\"custom-control-label\"\n                                                for=\"flagDesmembraVeiculo\">{{'labels.flagDesmembraVeiculo' |\n                                                translate}}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"ptDifAduaneira\">{{'labels.pesoLiq' | translate}}</label>\n                                            <input id=\"pesoLiq\" name=\"pesoLiq\" [(ngModel)]=\"data.pesoLiq\" maxlength=\"10\"\n                                                class=\"form-control form-control-sm\" type=\"text\" currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                            <!-- ABA INTEGRACOES -->\n                            <div class=\"tab-pane\" id=\"in\">\n                                <app-card-container tituloCard=\"produto\">\n                                    <div class=\"row\">\n                                        <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                                            <input name=\"produto\" value=\"{{data.materialId}}\"\n                                                class=\"form-control form-control-sm\" type=\"text\" disabled>\n                                        </div>\n                                        <div class=\"col-lg-9 col-md-8 col-sm-12\">\n                                            <input name=\"fantasia\" value=\"{{data.fantasia}}\" maxlength=\"25\" disabled\n                                                class=\"form-control form-control-sm\" type=\"text\">\n                                        </div>\n                                    </div>\n                                </app-card-container>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"codIntegracao\">{{'labels.codIntegracao' | translate}}</label>\n                                            <input id=\"codIntegracao\" name=\"codIntegracao\"\n                                                [(ngModel)]=\"data.codIntegracao\" maxlength=\"15\"\n                                                class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"codIntegracaoFMC\">{{'labels.codIntegracaoFMC' |\n                                                translate}}</label>\n                                            <input id=\"codIntegracaoFMC\" name=\"codIntegracaoFMC\"\n                                                [(ngModel)]=\"data.codIntegracaoFMC\" maxlength=\"15\"\n                                                class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"emsMaterial\">{{'labels.emsMaterial' | translate}}</label>\n                                            <input id=\"emsMaterial\" name=\"emsMaterial\" [(ngModel)]=\"data.emsMaterial\"\n                                                maxlength=\"20\" class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"codAll\">{{'labels.codAll' | translate}}</label>\n                                            <input id=\"codAll\" name=\"codAll\" [(ngModel)]=\"data.codAll\" maxlength=\"20\"\n                                                class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"codIntegraPorto\">{{'labels.codIntegraPorto' |\n                                                translate}}</label>\n                                            <input id=\"codIntegraPorto\" name=\"codIntegraPorto\"\n                                                [(ngModel)]=\"data.codIntegraPorto\" maxlength=\"15\"\n                                                class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"codIntCargaPontual\">{{'labels.codIntCargaPontual' |\n                                                translate}}</label>\n                                            <input id=\"codIntCargaPontual\" name=\"codIntCargaPontual\"\n                                                [(ngModel)]=\"data.codIntCargaPontual\" maxlength=\"9\"\n                                                class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                            <!-- ABA GRUPO CIPP -->\n                            <div class=\"tab-pane\" id=\"gr\">\n                                <app-card-container tituloCard=\"produto\">\n                                    <div class=\"row\">\n                                        <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                                            <input name=\"produto\" value=\"{{data.materialId}}\"\n                                                class=\"form-control form-control-sm\" type=\"text\" disabled>\n                                        </div>\n                                        <div class=\"col-lg-9 col-md-8 col-sm-12\">\n                                            <input name=\"fantasia\" value=\"{{data.fantasia}}\" maxlength=\"25\" disabled\n                                                class=\"form-control form-control-sm\" type=\"text\">\n                                        </div>\n                                    </div>\n                                </app-card-container>\n                                <div class=\"container-tree\">\n                                    <div class=\"mask_disabled\"\n                                        [ngClass]=\"{'actived': funcoesService.isDetail(actionForm)}\"></div>\n                                    <ngx-treeview [items]=\"items\" (selectedChange)=\"onSelectedChange($event)\">\n                                    </ngx-treeview>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-6 col-12\">\n                                <div class=\"form-group\">\n                                    <button class=\"btn btn-success mr-2\" type=\"submit\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        {{ 'buttons.salvar' | translate }}\n                                    </button>\n                                    <button class=\"btn btn-success mr-2\" (click)=\"saveAndCreate(f)\" type=\"button\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">{{ 'buttons.salvarNovo' |\n                                        translate }}</button>\n                                </div>\n                            </div>\n                        </div>\n                    </form>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-index/produtos-armazenados-terceiros-index.component.html":
/*!**********************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-index/produtos-armazenados-terceiros-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.materialId\"\r\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <table id=\"produtosArmazenadosTerceiros\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\r\n</div>\r\n<app-produtos-armazenados-terceiros-print (print)=\"executePrint($event)\"></app-produtos-armazenados-terceiros-print>\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<app-produtos-armazenados-terceiros-filter (filtrar)=\"executaFiltro($event)\"></app-produtos-armazenados-terceiros-filter>\r\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-print/produtos-armazenados-terceiros-print.component.html":
/*!**********************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-print/produtos-armazenados-terceiros-print.component.html ***!
  \**********************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal fade\" id=\"produtos-armazenados-terceiros-print\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"modal-dialog\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.produtosArmazenadosterceiros' | translate }}</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6\">\n                            <div class=\"row\">\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-check mt-1\">\n                                        <input class=\"form-check-input\" type=\"checkbox\"\n                                               id=\"material\"\n                                               name=\"material\"\n                                               [ngModel]=\"data.materialId ==='1'\"\n                                               (ngModelChange)=\"data.materialId=$event?'1':''\">\n                                        <label class=\"form-check-label\"\n                                               for=\"material\">{{'labels.material' | translate}}\n                                        </label>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-check mt-1\">\n                                        <input class=\"form-check-input\" type=\"checkbox\"\n                                               id=\"descrMater\"\n                                               name=\"descrMater\"\n                                               [ngModel]=\"data.descrMater ==='2'\"\n                                               (ngModelChange)=\"data.descrMater=$event?'2':''\">\n                                        <label class=\"form-check-label\"\n                                               for=\"descrMater\">{{'labels.descrMater' | translate}}\n                                        </label>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-check mt-1\">\n                                        <input class=\"form-check-input\" type=\"checkbox\"\n                                               id=\"codOnu\"\n                                               name=\"codOnu\"\n                                               [ngModel]=\"data.codOnu ==='3'\"\n                                               (ngModelChange)=\"data.codOnu=$event?'3':''\">\n                                        <label class=\"form-check-label\"\n                                               for=\"codOnu\">{{'labels.codOnu' | translate}}\n                                        </label>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-check mt-1\">\n                                        <input class=\"form-check-input\" type=\"checkbox\"\n                                               id=\"fantasia\"\n                                               name=\"fantasia\"\n                                               [ngModel]=\"data.fantasia ==='4'\"\n                                               (ngModelChange)=\"data.fantasia=$event?'4':''\">\n                                        <label class=\"form-check-label\"\n                                               for=\"fantasia\">{{'labels.fantasia' | translate}}\n                                        </label>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-check mt-1\">\n                                        <input class=\"form-check-input\" type=\"checkbox\"\n                                               id=\"clasifacaoFiscalId\"\n                                               name=\"clasifacaoFiscalId\"\n                                               [ngModel]=\"data.clasifacaoFiscalId ==='5'\"\n                                               (ngModelChange)=\"data.clasifacaoFiscalId=$event?'5':''\">\n                                        <label class=\"form-check-label\"\n                                               for=\"clasifacaoFiscalId\">{{'labels.clasifacaoFiscal' | translate}}\n                                        </label>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-check mt-1\">\n                                        <input class=\"form-check-input\" type=\"checkbox\"\n                                               id=\"catRisco\"\n                                               name=\"catRisco\"\n                                               [ngModel]=\"data.catRisco ==='6'\"\n                                               (ngModelChange)=\"data.catRisco=$event?'6':''\">\n                                        <label class=\"form-check-label\"\n                                               for=\"catRisco\">{{'labels.catRisco' | translate}}\n                                        </label>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-check mt-1\">\n                                        <input class=\"form-check-input\" type=\"checkbox\"\n                                               id=\"classeCNP\"\n                                               name=\"classeCNP\"\n                                               [ngModel]=\"data.classeCNP ==='7'\"\n                                               (ngModelChange)=\"data.classeCNP=$event?'7':''\">\n                                        <label class=\"form-check-label\"\n                                               for=\"classeCNP\">{{'labels.classeCNP' | translate}}\n                                        </label>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-check mt-1\">\n                                        <input class=\"form-check-input\" type=\"checkbox\"\n                                               id=\"metCalcProduto\"\n                                               name=\"metCalcProduto\"\n                                               [ngModel]=\"data.metCalcProduto ==='8'\"\n                                               (ngModelChange)=\"data.metCalcProduto=$event?'8':''\">\n                                        <label class=\"form-check-label\"\n                                               for=\"metCalcProduto\">{{'labels.metCalcProduto' | translate}}\n                                        </label>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-check mt-1\">\n                                        <input class=\"form-check-input\" type=\"checkbox\"\n                                               id=\"fatorCorrecao\"\n                                               name=\"fatorCorrecao\"\n                                               [ngModel]=\"data.fatorCorrecao ==='9'\"\n                                               (ngModelChange)=\"data.fatorCorrecao=$event?'9':''\">\n                                        <label class=\"form-check-label\"\n                                               for=\"fatorCorrecao\">{{'labels.fatorCorrecao' | translate}}\n                                        </label>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-check mt-1\">\n                                        <input class=\"form-check-input\" type=\"checkbox\"\n                                               id=\"tempPadrao\"\n                                               name=\"tempPadrao\"\n                                               [ngModel]=\"data.tempPadrao ==='10'\"\n                                               (ngModelChange)=\"data.tempPadrao=$event?'10':''\">\n                                        <label class=\"form-check-label\"\n                                               for=\"tempPadrao\">{{'labels.tempPadrao' | translate}}\n                                        </label>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-check mt-1\">\n                                        <input class=\"form-check-input\" type=\"checkbox\"\n                                               id=\"densidadePadrao\"\n                                               name=\"densidadePadrao\"\n                                               [ngModel]=\"data.densidadePadrao ==='11'\"\n                                               (ngModelChange)=\"data.densidadePadrao=$event?'11':''\">\n                                        <label class=\"form-check-label\"\n                                               for=\"densidadePadrao\">{{'labels.densidadePadrao' | translate}}\n                                        </label>\n                                    </div>\n                                </div>\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-check mt-1\">\n                                        <input class=\"form-check-input\" type=\"checkbox\"\n                                               id=\"inertizacao\"\n                                               name=\"inertizacao\"\n                                               [ngModel]=\"data.inertizacao ==='12'\"\n                                               (ngModelChange)=\"data.inertizacao=$event?'12':''\">\n                                        <label class=\"form-check-label\"\n                                               for=\"inertizacao\">{{'labels.inertizacao' | translate}}\n                                        </label>\n                                    </div>\n                                </div>\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-check mt-1\">\n                                        <input class=\"form-check-input\" type=\"checkbox\"\n                                               id=\"equipInertizacao\"\n                                               name=\"equipInertizacao\"\n                                               [ngModel]=\"data.equipInertizacao ==='13'\"\n                                               (ngModelChange)=\"data.equipInertizacao=$event?'13':''\">\n                                        <label class=\"form-check-label\"\n                                               for=\"equipInertizacao\">{{'labels.equipamento' | translate}}\n                                        </label>\n                                    </div>\n                                </div>\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-check mt-1\">\n                                        <input class=\"form-check-input\" type=\"checkbox\"\n                                               id=\"cdAzul\"\n                                               name=\"cdAzul\"\n                                               [ngModel]=\"data.cdAzul ==='14'\"\n                                               (ngModelChange)=\"data.cdAzul=$event?'14':''\">\n                                        <label class=\"form-check-label\"\n                                               for=\"cdAzul\">{{'labels.azul' | translate}}\n                                        </label>\n                                    </div>\n                                </div>\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-check mt-1\">\n                                        <input class=\"form-check-input\" type=\"checkbox\"\n                                               id=\"cdAmarelo\"\n                                               name=\"cdAmarelo\"\n                                               [ngModel]=\"data.cdAmarelo ==='15'\"\n                                               (ngModelChange)=\"data.cdAmarelo=$event?'15':''\">\n                                        <label class=\"form-check-label\"\n                                               for=\"cdAmarelo\">{{'labels.amarelo' | translate}}\n                                        </label>\n                                    </div>\n                                </div>\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-check mt-1\">\n                                        <input class=\"form-check-input\" type=\"checkbox\"\n                                               id=\"cdVermelho\"\n                                               name=\"cdVermelho\"\n                                               [ngModel]=\"data.cdVermelho ==='16'\"\n                                               (ngModelChange)=\"data.cdVermelho=$event?'16':''\">\n                                        <label class=\"form-check-label\"\n                                               for=\"cdVermelho\">{{'labels.vermelho' | translate}}\n                                        </label>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n\n                    </div>\n                </div>\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.imprimir' | translate }}\n                    </button>\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>\n\n");

/***/ }),

/***/ "./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/tipo-de-material/tipo-de-material.model.ts":
/*!***************************************************************************!*\
  !*** ./src/app/pages/cadastro/tipo-de-material/tipo-de-material.model.ts ***!
  \***************************************************************************/
/*! exports provided: TipoDeMaterial, TipoDeMaterialFilter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoDeMaterial", function() { return TipoDeMaterial; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoDeMaterialFilter", function() { return TipoDeMaterialFilter; });
/* harmony import */ var _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../shared/services/base/base.model */ "./src/app/shared/services/base/base.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

var TipoDeMaterial = /** @class */ (function (_super) {
    __extends(TipoDeMaterial, _super);
    function TipoDeMaterial() {
        var _this = _super.call(this) || this;
        _this.flagAnalise = "N";
        _this.flagAtivo = "S";
        _this.flagCaract = "N";
        _this.flagInventario = "N";
        _this.flagLote = "N";
        _this.flagMapa = "N";
        _this.flagMob = "N";
        _this.flagPalm = "N";
        _this.flagPcp = "N";
        _this.flagPed = "N";
        _this.flagPesa = "N";
        _this.flagPregao = "N";
        _this.contaSintetica = "N";
        _this.flagWeb = "N";
        _this.tipoGranel = "";
        _this.tipoMaterialSpedId = "";
        _this.tipoCusto = "";
        return _this;
    }
    return TipoDeMaterial;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

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



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoDeMaterialService", function() { return TipoDeMaterialService; });
/* 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 app_pages_cadastro_tipo_de_material_tipo_de_material_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pages/cadastro/tipo-de-material/tipo-de-material.model */ "./src/app/pages/cadastro/tipo-de-material/tipo-de-material.model.ts");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../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 TipoDeMaterialService = /** @class */ (function (_super) {
    __extends(TipoDeMaterialService, _super);
    function TipoDeMaterialService(http) {
        var _this = _super.call(this, http, "cadastros/tipoDeMaterial") || this;
        _this.filter = new app_pages_cadastro_tipo_de_material_tipo_de_material_model__WEBPACK_IMPORTED_MODULE_3__["TipoDeMaterialFilter"]();
        return _this;
    }
    TipoDeMaterialService.prototype.getList = function (filter) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/cadastros/tipoDeMaterial/listar", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    TipoDeMaterialService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"] }
    ]; };
    TipoDeMaterialService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"]])
    ], TipoDeMaterialService);
    return TipoDeMaterialService;
}(app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_0__["BaseService"]));



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-ficha-tecnica-form/produtos-armazenados-terceiros-ficha-tecnica-form.component.ts":
/*!********************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-ficha-tecnica-form/produtos-armazenados-terceiros-ficha-tecnica-form.component.ts ***!
  \********************************************************************************************************************************************************************************************************/
/*! exports provided: ProdutosArmazenadosTerceirosFichaTecnicaFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProdutosArmazenadosTerceirosFichaTecnicaFormComponent", function() { return ProdutosArmazenadosTerceirosFichaTecnicaFormComponent; });
/* 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_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _cadastro_caract_tipica_caract_tipica_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../cadastro/caract-tipica/caract-tipica.service */ "./src/app/pages/cadastro/caract-tipica/caract-tipica.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _produtos_armazenados_terceiros_ficha_tecnica_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../produtos-armazenados-terceiros-ficha-tecnica.service */ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-ficha-tecnica.service.ts");
/* harmony import */ var _produtos_armazenados_terceiros_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../produtos-armazenados-terceiros.model */ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros.model.ts");
/* harmony import */ var _produtos_armazenados_terceiros_ficha_tecnica_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../produtos-armazenados-terceiros-ficha-tecnica.constants */ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-ficha-tecnica.constants.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../../cadastro/material/material.service */ "./src/app/pages/cadastro/material/material.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _cadastro_caract_tipica_refer_caract_tipica_refer_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../../cadastro/caract-tipica-refer/caract-tipica-refer.service */ "./src/app/pages/cadastro/caract-tipica-refer/caract-tipica-refer.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};













var ProdutosArmazenadosTerceirosFichaTecnicaFormComponent = /** @class */ (function (_super) {
    __extends(ProdutosArmazenadosTerceirosFichaTecnicaFormComponent, _super);
    function ProdutosArmazenadosTerceirosFichaTecnicaFormComponent(router, service, serviceMaterial, messageService, activatedRoute, funcoesService, permissoesUtils, serviceCaractTipica, serviceCaractTipicaRefer) {
        var _this = _super.call(this, new _produtos_armazenados_terceiros_ficha_tecnica_constants__WEBPACK_IMPORTED_MODULE_8__["ProdutosArmazenadosTerceirosFichaTecnicaConstants"](), funcoesService) || this;
        _this.router = router;
        _this.service = service;
        _this.serviceMaterial = serviceMaterial;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.serviceCaractTipica = serviceCaractTipica;
        _this.serviceCaractTipicaRefer = serviceCaractTipicaRefer;
        _this.data = new _produtos_armazenados_terceiros_model__WEBPACK_IMPORTED_MODULE_7__["ProdutosArmazenadosTerceirosFichaTecnica"]();
        _this.mensagens = [];
        _this.constantes = new _produtos_armazenados_terceiros_ficha_tecnica_constants__WEBPACK_IMPORTED_MODULE_8__["ProdutosArmazenadosTerceirosFichaTecnicaConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.pageRoute = "/especificos/cotriguacu/cadastros/produtosArmazenadosTerceiros";
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    ProdutosArmazenadosTerceirosFichaTecnicaFormComponent.prototype.ngOnInit = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.getCaractTipica()];
                    case 1:
                        _a.sent();
                        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () { return __awaiter(_this, void 0, void 0, function () {
                            var materialId, id, material;
                            var _this = this;
                            return __generator(this, function (_a) {
                                switch (_a.label) {
                                    case 0:
                                        materialId = this.activatedRoute.snapshot.paramMap.get("materialId");
                                        id = this.activatedRoute.snapshot.paramMap.get("id");
                                        if (!id) return [3 /*break*/, 1];
                                        this.service.getByIdAndCaract(materialId, id).subscribe(function (resp) { return __awaiter(_this, void 0, void 0, function () {
                                            var material;
                                            return __generator(this, function (_a) {
                                                switch (_a.label) {
                                                    case 0:
                                                        if (!resp) return [3 /*break*/, 2];
                                                        this.data = resp;
                                                        return [4 /*yield*/, this.getMaterial(this.data.materialCaractId)];
                                                    case 1:
                                                        material = _a.sent();
                                                        this.getByCaractTipica(this.data.caractTipicaId);
                                                        this.data.material = material;
                                                        _a.label = 2;
                                                    case 2: return [2 /*return*/];
                                                }
                                            });
                                        }); });
                                        return [3 /*break*/, 3];
                                    case 1:
                                        if (!materialId) {
                                            return [2 /*return*/];
                                        }
                                        return [4 /*yield*/, this.getMaterial(materialId)];
                                    case 2:
                                        material = _a.sent();
                                        this.data.material = material;
                                        this.getCamposAdicionais();
                                        _a.label = 3;
                                    case 3: return [2 /*return*/];
                                }
                            });
                        }); }, function () {
                            _this.permissoesUtils.back();
                        });
                        return [2 /*return*/];
                }
            });
        });
    };
    ProdutosArmazenadosTerceirosFichaTecnicaFormComponent.prototype.getMaterial = function (materialId) {
        var _this = this;
        var promise = new Promise(function (resolve, reject) {
            _this.serviceMaterial.getById(materialId).subscribe(function (material) {
                resolve(material);
            });
        });
        return promise;
    };
    ProdutosArmazenadosTerceirosFichaTecnicaFormComponent.prototype.getCamposAdicionais = function () {
        var _this = this;
        this.funcoesService.camposAdicionais
            .get(this.constantes.sisFormularioId)
            .subscribe(function (data) {
            _this.data.sisCampoAdds = data;
        });
    };
    ProdutosArmazenadosTerceirosFichaTecnicaFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.data.materialCaractId = this.activatedRoute.snapshot.paramMap.get("materialId");
        this.data.logRotina = "Ficha Técnica";
        this.service
            .save(this.data, this.funcoesService.isEdit(this.actionForm))
            .subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result.validationResult);
            if (result && !result.validationResult.isValid) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.fichaTecnica");
                if (create) {
                    _this.data = new _produtos_armazenados_terceiros_model__WEBPACK_IMPORTED_MODULE_7__["ProdutosArmazenadosTerceirosFichaTecnica"]();
                }
                else {
                    _this.back();
                }
            }
        });
    };
    ProdutosArmazenadosTerceirosFichaTecnicaFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    ProdutosArmazenadosTerceirosFichaTecnicaFormComponent.prototype.back = function () {
        var materialId = this.activatedRoute.snapshot.paramMap.get("materialId");
        if (!materialId) {
            return;
        }
        this.router.navigate(["" + this.target + this.pageRoute + "/fichaTecnica/" + materialId]);
    };
    ProdutosArmazenadosTerceirosFichaTecnicaFormComponent.prototype.edit = function () {
        if (!!(this.data.materialCaractId)) {
            this.router.navigate(["" + this.target + this.pageRoute + "/fichaTecnica/" + this.data.materialCaractId + "/edit/" + this.data.caractTipicaId]);
        }
    };
    ProdutosArmazenadosTerceirosFichaTecnicaFormComponent.prototype.getCaractTipica = function () {
        var _this = this;
        this.caractTipicaList = [];
        var promise = new Promise(function (resolve, reject) {
            _this.serviceCaractTipica.get().subscribe(function (resp) {
                _this.caractTipicaList = resp;
                resolve(resp);
            });
        });
        return promise;
    };
    ProdutosArmazenadosTerceirosFichaTecnicaFormComponent.prototype.getByCaractTipica = function (id) {
        var _this = this;
        for (var i = 0; i < this.caractTipicaList.length; i++) {
            if (this.caractTipicaList[i].caractTipicaId === +id) {
                this.tipoValLimite = this.caractTipicaList[i].tipoValLimite;
                if (this.tipoValLimite === 0) {
                    this.data.caractTipicaReferId = null;
                }
                else if (this.tipoValLimite === 1) {
                    this.data.caractTipicaReferId = null;
                    this.data.valorReferenciaFim = null;
                }
                else if (this.tipoValLimite === 2) {
                    this.data.caractTipicaReferId = null;
                    this.data.valorReferenciaInicio = null;
                }
                else if (this.tipoValLimite === 3) {
                    this.serviceCaractTipicaRefer.getByCaractTipicaId(id).subscribe(function (_resp) {
                        _this.caractTipicaReferList = _resp;
                        _this.data.valorReferenciaInicio = null;
                        _this.data.valorReferenciaFim = null;
                    });
                }
                else if (this.tipoValLimite === 4) {
                    this.data.caractTipicaReferId = null;
                    this.data.valorReferenciaInicio = null;
                    this.data.valorReferenciaFim = null;
                }
                break;
            }
        }
    };
    ProdutosArmazenadosTerceirosFichaTecnicaFormComponent.prototype.trataMat = function (material) {
        if (!material.materialId) {
            return;
        }
        this.data.material = material;
    };
    ProdutosArmazenadosTerceirosFichaTecnicaFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _produtos_armazenados_terceiros_ficha_tecnica_service__WEBPACK_IMPORTED_MODULE_6__["ProdutosArmazenadosTerceirosFichaTecnicaService"] },
        { type: _cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_10__["MaterialService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_11__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__["PermissoesUtilsService"] },
        { type: _cadastro_caract_tipica_caract_tipica_service__WEBPACK_IMPORTED_MODULE_4__["CaractTipicaService"] },
        { type: _cadastro_caract_tipica_refer_caract_tipica_refer_service__WEBPACK_IMPORTED_MODULE_12__["CaractTipicaReferService"] }
    ]; };
    ProdutosArmazenadosTerceirosFichaTecnicaFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-produtos-armazenados-terceiros-ficha-tecnica-form',
            template: __importDefault(__webpack_require__(/*! raw-loader!./produtos-armazenados-terceiros-ficha-tecnica-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-ficha-tecnica-form/produtos-armazenados-terceiros-ficha-tecnica-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _produtos_armazenados_terceiros_ficha_tecnica_service__WEBPACK_IMPORTED_MODULE_6__["ProdutosArmazenadosTerceirosFichaTecnicaService"],
            _cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_10__["MaterialService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_11__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__["PermissoesUtilsService"],
            _cadastro_caract_tipica_caract_tipica_service__WEBPACK_IMPORTED_MODULE_4__["CaractTipicaService"],
            _cadastro_caract_tipica_refer_caract_tipica_refer_service__WEBPACK_IMPORTED_MODULE_12__["CaractTipicaReferService"]])
    ], ProdutosArmazenadosTerceirosFichaTecnicaFormComponent);
    return ProdutosArmazenadosTerceirosFichaTecnicaFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-ficha-tecnica-index/produtos-armazenados-terceiros-ficha-tecnica-index.component.ts":
/*!**********************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-ficha-tecnica-index/produtos-armazenados-terceiros-ficha-tecnica-index.component.ts ***!
  \**********************************************************************************************************************************************************************************************************/
/*! exports provided: ProdutosArmazenadosTerceirosFichaTecnicaIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProdutosArmazenadosTerceirosFichaTecnicaIndexComponent", function() { return ProdutosArmazenadosTerceirosFichaTecnicaIndexComponent; });
/* 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_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_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_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _produtos_armazenados_terceiros_ficha_tecnica_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../produtos-armazenados-terceiros-ficha-tecnica.service */ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-ficha-tecnica.service.ts");
/* harmony import */ var _produtos_armazenados_terceiros_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../produtos-armazenados-terceiros.model */ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros.model.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _produtos_armazenados_terceiros_ficha_tecnica_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../produtos-armazenados-terceiros-ficha-tecnica.constants */ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-ficha-tecnica.constants.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 ProdutosArmazenadosTerceirosFichaTecnicaIndexComponent = /** @class */ (function (_super) {
    __extends(ProdutosArmazenadosTerceirosFichaTecnicaIndexComponent, _super);
    function ProdutosArmazenadosTerceirosFichaTecnicaIndexComponent(router, messageService, service, datatablesService, funcoes, activatedRoute, permissoesUtils) {
        var _this = _super.call(this, new _produtos_armazenados_terceiros_ficha_tecnica_constants__WEBPACK_IMPORTED_MODULE_9__["ProdutosArmazenadosTerceirosFichaTecnicaConstants"](), funcoes) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.service = service;
        _this.datatablesService = datatablesService;
        _this.funcoes = funcoes;
        _this.activatedRoute = activatedRoute;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _produtos_armazenados_terceiros_model__WEBPACK_IMPORTED_MODULE_7__["ProdutosArmazenadosTerceirosFichaTecnica"]();
        _this.constantes = new _produtos_armazenados_terceiros_ficha_tecnica_constants__WEBPACK_IMPORTED_MODULE_9__["ProdutosArmazenadosTerceirosFichaTecnicaConstants"]();
        _this.mensagens = [];
        _this.target = _this.funcoesService.getTargetLocation();
        _this.pageRoute = "/especificos/cotriguacu/cadastros/produtosArmazenadosTerceiros";
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    ProdutosArmazenadosTerceirosFichaTecnicaIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _this.refresh();
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    ProdutosArmazenadosTerceirosFichaTecnicaIndexComponent.prototype.back = function () {
        this.router.navigate(["" + this.target + this.pageRoute + "/produtosArmazenadosTerceiros"]);
    };
    ProdutosArmazenadosTerceirosFichaTecnicaIndexComponent.prototype.create = function () {
        var materialId = this.activatedRoute.snapshot.paramMap.get("materialId");
        if (!materialId) {
            return;
        }
        this.router.navigate(["" + this.target + this.pageRoute + "/fichaTecnica/" + materialId + "/create"]);
    };
    ProdutosArmazenadosTerceirosFichaTecnicaIndexComponent.prototype.refresh = function () {
        var _this = this;
        var materialId = this.activatedRoute.snapshot.paramMap.get("materialId");
        if (!materialId) {
            return;
        }
        this.service.getByAllByMaterialId(materialId).subscribe(function (resp) {
            var columns = [
                _this.datatablesService.getDataString("descrCaract", "caracteristica"),
                _this.datatablesService.getDataBool("mandatorio", "mandatorio"),
                _this.datatablesService.getDataString("descrRefer", "referencia"),
                _this.datatablesService.getDataDouble("valorReferenciaInicio", "minimo", 3),
                _this.datatablesService.getDataDouble("valorReferenciaFim", "maximo", 3)
            ];
            _this.datatablesService.datatable("dtFichaTecnica", columns, resp, function (aData) {
                _this.data = aData;
            }, 0, "asc");
        }, function () {
            _this.messageService.warning("titles.fichaTecnica", "messages.erroTimeout");
        });
    };
    ProdutosArmazenadosTerceirosFichaTecnicaIndexComponent.prototype.edit = function () {
        if (!!(this.data.materialCaractId)) {
            this.router.navigate(["" + this.target + this.pageRoute + "/fichaTecnica/" + this.data.materialCaractId + "/edit/" + this.data.caractTipicaId]);
        }
    };
    ProdutosArmazenadosTerceirosFichaTecnicaIndexComponent.prototype.detail = function () {
        if (!!(this.data.materialCaractId)) {
            this.router.navigate(["" + this.target + this.pageRoute + "/fichaTecnica/" + this.data.materialCaractId + "/detail/" + this.data.caractTipicaId]);
        }
    };
    ProdutosArmazenadosTerceirosFichaTecnicaIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    ProdutosArmazenadosTerceirosFichaTecnicaIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    ProdutosArmazenadosTerceirosFichaTecnicaIndexComponent.prototype.remove = function () {
        var _this = this;
        if (!!(this.data.materialCaractId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
                _this.messageService.removeConfirm(function () {
                    _this.service.remove(_this.data).subscribe(function (result) {
                        _this.mensagens = _this.messageService.validationResult(result.validationResult);
                        if (!result.validationResult.isValid) {
                            _this.messageService.warning("titles.fichaTecnica", _this.mensagens[0]);
                        }
                        else {
                            _this.datatablesService.remove("dtFichaTecnica");
                        }
                    });
                });
            });
        }
    };
    ProdutosArmazenadosTerceirosFichaTecnicaIndexComponent.prototype.print = function () {
        var materialId = this.activatedRoute.snapshot.paramMap.get("materialId");
        if (!materialId) {
            return;
        }
        this.constantes.paramRelatorio = {
            materialId: materialId
        };
        _super.prototype.print.call(this, null, true);
    };
    ProdutosArmazenadosTerceirosFichaTecnicaIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"] },
        { type: _produtos_armazenados_terceiros_ficha_tecnica_service__WEBPACK_IMPORTED_MODULE_6__["ProdutosArmazenadosTerceirosFichaTecnicaService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__["PermissoesUtilsService"] }
    ]; };
    ProdutosArmazenadosTerceirosFichaTecnicaIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-produtos-armazenados-terceiros-ficha-tecnica-index',
            template: __importDefault(__webpack_require__(/*! raw-loader!./produtos-armazenados-terceiros-ficha-tecnica-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-ficha-tecnica-index/produtos-armazenados-terceiros-ficha-tecnica-index.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_8__["MessageService"],
            _produtos_armazenados_terceiros_ficha_tecnica_service__WEBPACK_IMPORTED_MODULE_6__["ProdutosArmazenadosTerceirosFichaTecnicaService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__["PermissoesUtilsService"]])
    ], ProdutosArmazenadosTerceirosFichaTecnicaIndexComponent);
    return ProdutosArmazenadosTerceirosFichaTecnicaIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-ficha-tecnica.constants.ts":
/*!*************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-ficha-tecnica.constants.ts ***!
  \*************************************************************************************************************************************************/
/*! exports provided: ProdutosArmazenadosTerceirosFichaTecnicaConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProdutosArmazenadosTerceirosFichaTecnicaConstants", function() { return ProdutosArmazenadosTerceirosFichaTecnicaConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ProdutosArmazenadosTerceirosFichaTecnicaConstants = /** @class */ (function () {
    function ProdutosArmazenadosTerceirosFichaTecnicaConstants() {
        this.sisFormularioId = 65640;
        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 = 'REL';
        this.nomeForm = 'titles.fichaTecnica';
        this.reportId = 'COT0015';
        this.reportTitulo = { 'titulo': 'Ficha Técnica do Material', 'subTitulo': '' };
        this.tabela = 'MaterialCaract';
        this.configs = [];
        this.listaIndex = [
            { title: 'Voltar', action: 'back', icon: 'icon-arrow-left', exibeButton: false, eximeMenu: false, menuName: 'Arquivo', disabled: false },
            { 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' },
        ];
        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 ProdutosArmazenadosTerceirosFichaTecnicaConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-ficha-tecnica.service.ts":
/*!***********************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-ficha-tecnica.service.ts ***!
  \***********************************************************************************************************************************************/
/*! exports provided: ProdutosArmazenadosTerceirosFichaTecnicaService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProdutosArmazenadosTerceirosFichaTecnicaService", function() { return ProdutosArmazenadosTerceirosFichaTecnicaService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/base/specifics.base.service */ "./src/app/shared/services/base/specifics.base.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 ProdutosArmazenadosTerceirosFichaTecnicaService = /** @class */ (function (_super) {
    __extends(ProdutosArmazenadosTerceirosFichaTecnicaService, _super);
    function ProdutosArmazenadosTerceirosFichaTecnicaService(http) {
        var _this = _super.call(this, http, "cotriguacu/materialCaract") || this;
        _this.http = http;
        return _this;
    }
    ProdutosArmazenadosTerceirosFichaTecnicaService.prototype.getByAllByMaterialId = function (materialId) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/cotriguacu/materialCaract/getByAllFichaTecnicaByMaterialId/" + materialId)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ProdutosArmazenadosTerceirosFichaTecnicaService.prototype.getByIdAndCaract = function (materialId, caractId) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/cotriguacu/materialCaract/" + materialId + "/" + caractId)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ProdutosArmazenadosTerceirosFichaTecnicaService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    ProdutosArmazenadosTerceirosFichaTecnicaService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], ProdutosArmazenadosTerceirosFichaTecnicaService);
    return ProdutosArmazenadosTerceirosFichaTecnicaService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_5__["SpecificsBaseService"]));



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-filter/produtos-armazenados-terceiros-filter.component.ts":
/*!********************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-filter/produtos-armazenados-terceiros-filter.component.ts ***!
  \********************************************************************************************************************************************************************************/
/*! exports provided: ProdutosArmazenadosTerceirosFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProdutosArmazenadosTerceirosFilterComponent", function() { return ProdutosArmazenadosTerceirosFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _produtos_armazenados_terceiros_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../produtos-armazenados-terceiros.service */ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../login/login.service */ "./src/app/pages/login/login.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");
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 ProdutosArmazenadosTerceirosFilterComponent = /** @class */ (function () {
    function ProdutosArmazenadosTerceirosFilterComponent(loginService, message, service) {
        this.loginService = loginService;
        this.message = message;
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.dataAtual = new Date();
        this.blockFields = false;
        this.filialId = loginService.getLogin().filialId;
    }
    ProdutosArmazenadosTerceirosFilterComponent.prototype.ngOnInit = function () {
    };
    ProdutosArmazenadosTerceirosFilterComponent.prototype.onSubmit = function (form) {
        if (!form.invalid) {
            jQuery("#produtos-armazenados-terceiros-filter").modal("hide");
            this.filtrar.emit();
        }
    };
    ProdutosArmazenadosTerceirosFilterComponent.ctorParameters = function () { return [
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _produtos_armazenados_terceiros_service__WEBPACK_IMPORTED_MODULE_1__["ProdutosArmazenadosTerceirosService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], ProdutosArmazenadosTerceirosFilterComponent.prototype, "filtrar", void 0);
    ProdutosArmazenadosTerceirosFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-produtos-armazenados-terceiros-filter',
            template: __importDefault(__webpack_require__(/*! raw-loader!./produtos-armazenados-terceiros-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-filter/produtos-armazenados-terceiros-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _produtos_armazenados_terceiros_service__WEBPACK_IMPORTED_MODULE_1__["ProdutosArmazenadosTerceirosService"]])
    ], ProdutosArmazenadosTerceirosFilterComponent);
    return ProdutosArmazenadosTerceirosFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-form/produtos-armazenados-terceiros-form.component.scss":
/*!******************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-form/produtos-armazenados-terceiros-form.component.scss ***!
  \******************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("div.container-tree {\n  position: relative;\n}\n\ndiv.container-tree div.mask_disabled {\n  position: absolute;\n  width: 99%;\n  height: 100%;\n  background-color: rgba(0, 0, 0, 0.3);\n  z-index: 1;\n  display: none;\n}\n\ndiv.container-tree div.mask_disabled.actived {\n  display: block;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3MvY290cmlndWFjdS9jYWRhc3Ryb3MvcHJvZHV0b3MtYXJtYXplbmFkb3MtdGVyY2Vpcm9zL3Byb2R1dG9zLWFybWF6ZW5hZG9zLXRlcmNlaXJvcy1mb3JtL0M6XFxDb3Jwb3JhdGVcXENvcnBvcmF0ZVdlYkRlc2VudlxcX3VuaXNvbHV0aW9uL3NyY1xcYXBwXFxwYWdlc1xcZXNwZWNpZmljb3NcXGNvdHJpZ3VhY3VcXGNhZGFzdHJvc1xccHJvZHV0b3MtYXJtYXplbmFkb3MtdGVyY2Vpcm9zXFxwcm9kdXRvcy1hcm1hemVuYWRvcy10ZXJjZWlyb3MtZm9ybVxccHJvZHV0b3MtYXJtYXplbmFkb3MtdGVyY2Vpcm9zLWZvcm0uY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL3BhZ2VzL2VzcGVjaWZpY29zL2NvdHJpZ3VhY3UvY2FkYXN0cm9zL3Byb2R1dG9zLWFybWF6ZW5hZG9zLXRlcmNlaXJvcy9wcm9kdXRvcy1hcm1hemVuYWRvcy10ZXJjZWlyb3MtZm9ybS9wcm9kdXRvcy1hcm1hemVuYWRvcy10ZXJjZWlyb3MtZm9ybS5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLGtCQUFBO0FDQ0Y7O0FERUE7RUFDRSxrQkFBQTtFQUNBLFVBQUE7RUFDQSxZQUFBO0VBQ0Esb0NBQUE7RUFDQSxVQUFBO0VBQ0EsYUFBQTtBQ0NGOztBREVBO0VBQ0UsY0FBQTtBQ0NGIiwiZmlsZSI6InNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3MvY290cmlndWFjdS9jYWRhc3Ryb3MvcHJvZHV0b3MtYXJtYXplbmFkb3MtdGVyY2Vpcm9zL3Byb2R1dG9zLWFybWF6ZW5hZG9zLXRlcmNlaXJvcy1mb3JtL3Byb2R1dG9zLWFybWF6ZW5hZG9zLXRlcmNlaXJvcy1mb3JtLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiZGl2LmNvbnRhaW5lci10cmVlIHtcclxuICBwb3NpdGlvbjogcmVsYXRpdmU7XHJcbn1cclxuXHJcbmRpdi5jb250YWluZXItdHJlZSBkaXYubWFza19kaXNhYmxlZCB7XHJcbiAgcG9zaXRpb246IGFic29sdXRlO1xyXG4gIHdpZHRoOiA5OSU7XHJcbiAgaGVpZ2h0OiAxMDAlO1xyXG4gIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMCwgMCwgMCwgMC4zKTtcclxuICB6LWluZGV4OiAxO1xyXG4gIGRpc3BsYXk6IG5vbmU7XHJcbn1cclxuXHJcbmRpdi5jb250YWluZXItdHJlZSBkaXYubWFza19kaXNhYmxlZC5hY3RpdmVke1xyXG4gIGRpc3BsYXk6IGJsb2NrO1xyXG59XHJcbiIsImRpdi5jb250YWluZXItdHJlZSB7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbn1cblxuZGl2LmNvbnRhaW5lci10cmVlIGRpdi5tYXNrX2Rpc2FibGVkIHtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICB3aWR0aDogOTklO1xuICBoZWlnaHQ6IDEwMCU7XG4gIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMCwgMCwgMCwgMC4zKTtcbiAgei1pbmRleDogMTtcbiAgZGlzcGxheTogbm9uZTtcbn1cblxuZGl2LmNvbnRhaW5lci10cmVlIGRpdi5tYXNrX2Rpc2FibGVkLmFjdGl2ZWQge1xuICBkaXNwbGF5OiBibG9jaztcbn0iXX0= */");

/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-form/produtos-armazenados-terceiros-form.component.ts":
/*!****************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-form/produtos-armazenados-terceiros-form.component.ts ***!
  \****************************************************************************************************************************************************************************/
/*! exports provided: ProductTreeviewConfig, ProdutosArmazenadosTerceirosFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProductTreeviewConfig", function() { return ProductTreeviewConfig; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProdutosArmazenadosTerceirosFormComponent", function() { return ProdutosArmazenadosTerceirosFormComponent; });
/* harmony import */ var ngx_treeview__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ngx-treeview */ "./node_modules/ngx-treeview/src/index.js");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _produtos_armazenados_terceiros_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../produtos-armazenados-terceiros.model */ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros.model.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _produtos_armazenados_terceiros_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../produtos-armazenados-terceiros.constants */ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros.constants.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _cadastro_lote_lote_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../cadastro/lote/lote.service */ "./src/app/pages/cadastro/lote/lote.service.ts");
/* harmony import */ var _produtos_armazenados_terceiros_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../produtos-armazenados-terceiros.service */ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros.service.ts");
/* harmony import */ var _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _cadastro_tipo_de_material_tipo_de_material_model__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../../cadastro/tipo-de-material/tipo-de-material.model */ "./src/app/pages/cadastro/tipo-de-material/tipo-de-material.model.ts");
/* harmony import */ var _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _cadastro_classificacao_fiscal_classificacao_fiscal_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../../../../cadastro/classificacao-fiscal/classificacao-fiscal.service */ "./src/app/pages/cadastro/classificacao-fiscal/classificacao-fiscal.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_pages_cadastro_tipo_de_material_tipo_de_material_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! app/pages/cadastro/tipo-de-material/tipo-de-material.service */ "./src/app/pages/cadastro/tipo-de-material/tipo-de-material.service.ts");
/* harmony import */ var app_pages_cadastro_grupo_cipp_grupo_cipp_service__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! app/pages/cadastro/grupo-cipp/grupo-cipp.service */ "./src/app/pages/cadastro/grupo-cipp/grupo-cipp.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




















var ProductTreeviewConfig = /** @class */ (function (_super) {
    __extends(ProductTreeviewConfig, _super);
    function ProductTreeviewConfig() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.hasAllCheckBox = true;
        _this.hasFilter = true;
        _this.hasCollapseExpand = true;
        _this.maxHeight = 200;
        return _this;
    }
    ProductTreeviewConfig = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Injectable"])()
    ], ProductTreeviewConfig);
    return ProductTreeviewConfig;
}(ngx_treeview__WEBPACK_IMPORTED_MODULE_0__["TreeviewConfig"]));

var ProdutosArmazenadosTerceirosFormComponent = /** @class */ (function (_super) {
    __extends(ProdutosArmazenadosTerceirosFormComponent, _super);
    function ProdutosArmazenadosTerceirosFormComponent(router, messageService, activatedRoute, configuracao, service, funcoesService, loginService, loteService, tipoMaterialService, permissoesUtils, grupoCippService, serviceTipoDeMaterial, classificacaoFiscalService) {
        var _this = _super.call(this, new _produtos_armazenados_terceiros_constants__WEBPACK_IMPORTED_MODULE_4__["ProdutosArmazenadosTerceirosConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.configuracao = configuracao;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.loginService = loginService;
        _this.loteService = loteService;
        _this.tipoMaterialService = tipoMaterialService;
        _this.permissoesUtils = permissoesUtils;
        _this.grupoCippService = grupoCippService;
        _this.serviceTipoDeMaterial = serviceTipoDeMaterial;
        _this.classificacaoFiscalService = classificacaoFiscalService;
        _this.data = new _produtos_armazenados_terceiros_model__WEBPACK_IMPORTED_MODULE_2__["ProdutosArmazenadosTerceiros"]();
        _this.filtro = new _produtos_armazenados_terceiros_model__WEBPACK_IMPORTED_MODULE_2__["ProdutosArmazenadosTerceirosFilter"]();
        _this.mensagens = [];
        _this.constantes = new _produtos_armazenados_terceiros_constants__WEBPACK_IMPORTED_MODULE_4__["ProdutosArmazenadosTerceirosConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.pageRoute = "/especificos/cotriguacu/cadastros/produtosArmazenadosTerceiros";
        _this.blockFields = false;
        _this.tipoMaterial = new _cadastro_tipo_de_material_tipo_de_material_model__WEBPACK_IMPORTED_MODULE_12__["TipoDeMaterial"]();
        _this.rows = [];
        _this.hasPrecision = { prefix: '', thousands: '.', decimal: ',', precision: 5, length: 6 };
        _this.hasPrecisionFatorCorrecao = { prefix: '', thousands: '.', decimal: ',', precision: 5, length: 6 };
        _this.loadConfig = function () {
            _this.setTamCodigo = _this.configuracao.lerConfig("MAT", "TamCodigo");
            _this.setNumDecCalc20 = _this.configuracao.lerConfig("STO", "NumDecCalc20");
            _this.setNumDecCalcOutros = _this.configuracao.lerConfig("STO", "NumDecCalcOutros");
            _this.setQtDigFatorCorrecao20 = _this.configuracao.lerConfig("STO", "QtDigFatorCorrecao20");
            _this.setQtDigFatorCorrecao = _this.configuracao.lerConfig("STO", "QtDigFatorCorrecao");
            _this.setGrupoProdutoDefault = _this.configuracao.lerConfig("CTR", "GrupoProdutoDefault");
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    ProdutosArmazenadosTerceirosFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
        this.tipoMaterial = new _cadastro_tipo_de_material_tipo_de_material_model__WEBPACK_IMPORTED_MODULE_12__["TipoDeMaterial"]();
        this.materialTypes = [];
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () { return __awaiter(_this, void 0, void 0, function () {
            var result, _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        this.execInicial();
                        if (!this.funcoesService.isCreate(this.actionForm)) return [3 /*break*/, 3];
                        this.data.tipoProduto = "S";
                        return [4 /*yield*/, this.service.getGeraMaterialId(this.data).toPromise()];
                    case 1:
                        result = _b.sent();
                        _a = this.data;
                        return [4 /*yield*/, result.materialId];
                    case 2:
                        _a.materialId = _b.sent();
                        _b.label = 3;
                    case 3: return [2 /*return*/];
                }
            });
        }); }, function () {
            _this.permissoesUtils.back();
        });
    };
    ProdutosArmazenadosTerceirosFormComponent.prototype.execInicial = function () {
        var _this = this;
        var id = this.activatedRoute.snapshot.paramMap.get("id");
        this.setMaterialId = this.activatedRoute.snapshot.paramMap.get("prod");
        if (id) {
            this.service.getById(id).subscribe(function (resp) {
                _this.data = resp;
                _this.maskDecimalDensidade();
                _this.maskDecimalFatorCorrecao();
                _this.tipoMaterialService.getById(_this.data.tipoDeMaterialId).subscribe(function (data) {
                    _this.tipoMaterial = data;
                    _this.onLoadTreeViewItems();
                });
            });
        }
        this.serviceTipoDeMaterial.get().subscribe(function (resp) {
            if (resp) {
                _this.materialTypes = resp.filter(function (val) {
                    if (val.contaSintetica !== "S" && val.flagAtivo === "S" && val.sitReg !== 'E') {
                        return val;
                    }
                });
            }
        });
        this.grupoCippService.get().subscribe(function (gs) {
            _this.grupoCipps = gs;
            _this.onLoadTreeViewItems();
            if (_this.funcoesService.isCreate(_this.actionForm)) {
                _this.data.regGrupoProduto = _this.setGrupoProdutoDefault;
            }
        });
    };
    ProdutosArmazenadosTerceirosFormComponent.prototype.onLoadTreeViewItems = function () {
        var arrResult = [];
        var grupos = [];
        if (this.data.codGrupoCIPP) {
            grupos = this.data.codGrupoCIPP.replace(/'/g, "").split(",");
        }
        this.grupoCipps.forEach(function (element) {
            var hasExists = grupos.findIndex(function (c) { return c === element.grupoCIPPId; }) >= 0;
            var menuAdd = new ngx_treeview__WEBPACK_IMPORTED_MODULE_0__["TreeviewItem"]({
                checked: hasExists,
                text: "" + element.descrCIPP,
                value: element.grupoCIPPId
            });
            arrResult.push(menuAdd);
        });
        this.items = arrResult;
    };
    ProdutosArmazenadosTerceirosFormComponent.prototype.back = function () {
        this.router.navigate(["" + this.target + this.pageRoute]);
    };
    ProdutosArmazenadosTerceirosFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        if (!this.isValid(form))
            return;
        this.preSave();
        this.service
            .save(this.data, this.funcoesService.isEdit(this.actionForm))
            .subscribe(function (result) {
            if (result.validationResult != null && !result.validationResult.isValid) {
                _this.mensagens = _this.messageService.validationResult(result.validationResult);
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_9__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                if (create) {
                    _this.messageService.saveSuccess("titles.produtosArmazenadosTerceiros");
                    _this.data = new _produtos_armazenados_terceiros_model__WEBPACK_IMPORTED_MODULE_2__["ProdutosArmazenadosTerceiros"]();
                    _this.router.navigate(["" + _this.target + _this.pageRoute + "/create/" + _this.setMaterialId]);
                }
                else {
                    _this.messageService.saveSuccess("titles.produtosArmazenadosTerceiros");
                    _this.back();
                }
            }
        });
    };
    ProdutosArmazenadosTerceirosFormComponent.prototype.isValid = function (form) {
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_9__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return false;
        }
        if (this.isGranel(2)) {
            var mensagens = [];
            if (!(_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].toNumber(this.data.fatorCorrecao) > 0)) {
                mensagens.push(this.messageService.translate("messages.campoObrigatorio", { name: this.messageService.translate('labels.fatorCorrecao') }));
            }
            if (!(_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].toNumber(this.data.tempPadrao) > 0)) {
                mensagens.push(this.messageService.translate("messages.campoObrigatorio", { name: this.messageService.translate('labels.tempPadrao') }));
            }
            if (!(_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].toNumber(this.data.densidadePadrao) > 0)) {
                mensagens.push(this.messageService.translate("messages.campoObrigatorio", { name: this.messageService.translate('labels.densidadePadrao') }));
            }
            if (_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["ArrayUtilsStaticService"].any(mensagens)) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_9__["EventEmitterService"].get("backError").emit(mensagens);
                return false;
            }
        }
        return true;
    };
    ProdutosArmazenadosTerceirosFormComponent.prototype.preSave = function () {
        if (this.rows)
            this.data.codGrupoCIPP = "'" + this.rows.join("','") + "'";
        this.data.flagServ = "N";
        this.data.flagResiduo = "N";
        this.data.tipoProduto = "S";
        this.data.logRotina = "Produtos Armazenados Terceiros";
    };
    ProdutosArmazenadosTerceirosFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    ProdutosArmazenadosTerceirosFormComponent.prototype.edit = function () {
        this.router.navigate(["" + this.target + this.pageRoute + "/edit/" + this.data.materialId + "/" + this.setMaterialId]);
    };
    ProdutosArmazenadosTerceirosFormComponent.prototype.verificaTipoMaterial = function (event) {
        if (this.materialTypes) {
            this.tipoMaterial = this.materialTypes.find(function (c) { return +c.tipoDeMaterialId === +event; });
        }
    };
    ProdutosArmazenadosTerceirosFormComponent.prototype.onSelectedChange = function (downlineItems) {
        var _this = this;
        this.rows = [];
        downlineItems.forEach(function (downlineItem) {
            var item = downlineItem.item;
            var row = item.value;
            _this.rows.push(row);
        });
    };
    ProdutosArmazenadosTerceirosFormComponent.prototype.isGranel = function (tipo) {
        if (this.funcoesService.isUndefinedOrNull(this.tipoMaterial)) {
            return false;
        }
        return this.tipoMaterial.tipoGranel === tipo.toString();
    };
    ProdutosArmazenadosTerceirosFormComponent.prototype.enabledProduto = function () {
        var resultado = (this.funcoesService.isUndefinedOrNull(this.setMaterialId) ? false : (this.setMaterialId === "S"));
        if (resultado) {
            resultado = ((!this.funcoesService.isDetail(this.actionForm)) && (this.data.flagAtivo === "S"));
        }
        return !resultado;
    };
    ProdutosArmazenadosTerceirosFormComponent.prototype.vldTamCodigo = function () {
        if (this.setMaterialId === "S") {
            if (this.data.materialId !== "") {
                this.data.materialId = this.addZeroes(this.data.materialId, this.setTamCodigo);
            }
        }
    };
    ProdutosArmazenadosTerceirosFormComponent.prototype.addZeroes = function (num, len) {
        var numberWithZeroes = num;
        var counter = numberWithZeroes.length;
        while (counter < len) {
            numberWithZeroes = "0" + numberWithZeroes;
            counter++;
        }
        return numberWithZeroes;
    };
    ProdutosArmazenadosTerceirosFormComponent.prototype.clasFiscal = function () {
        return __awaiter(this, void 0, void 0, function () {
            var result, _a, _b, _c;
            return __generator(this, function (_d) {
                switch (_d.label) {
                    case 0:
                        if (!this.funcoesService.isCreate(this.actionForm)) return [3 /*break*/, 6];
                        if (!(this.data.classificacaoFiscalId !== "")) return [3 /*break*/, 5];
                        return [4 /*yield*/, this.classificacaoFiscalService.getById(this.data.classificacaoFiscalId).toPromise()];
                    case 1:
                        result = _d.sent();
                        _a = this.data;
                        return [4 /*yield*/, result.aliqIcms];
                    case 2:
                        _a.aliqIcms = _d.sent();
                        _b = this.data;
                        return [4 /*yield*/, result.tipoIcms];
                    case 3:
                        _b.tipoIcms = _d.sent();
                        _c = this.data;
                        return [4 /*yield*/, result.tipoIpi];
                    case 4:
                        _c.tipoIpi = _d.sent();
                        return [3 /*break*/, 6];
                    case 5:
                        this.data.tipoIcms = "N";
                        this.data.tipoIpi = "N";
                        _d.label = 6;
                    case 6: return [2 /*return*/];
                }
            });
        });
    };
    ProdutosArmazenadosTerceirosFormComponent.prototype.maskAlterar = function () {
        this.maskDecimalDensidade();
        this.maskDecimalFatorCorrecao();
    };
    ProdutosArmazenadosTerceirosFormComponent.prototype.maskDecimalDensidade = function () {
        if (this.data.metCalcProduto === '2' || this.data.metCalcProduto === 'L') {
            this.hasPrecision.precision = +this.setNumDecCalc20;
        }
        else {
            this.hasPrecision.precision = +this.setNumDecCalcOutros;
        }
        this.hasPrecision.length = +this.hasPrecision.precision + 1;
    };
    ProdutosArmazenadosTerceirosFormComponent.prototype.maskDecimalFatorCorrecao = function () {
        if (this.data.metCalcProduto === '2' || this.data.metCalcProduto === 'L') {
            this.hasPrecisionFatorCorrecao.precision = +this.setQtDigFatorCorrecao20;
        }
        else {
            this.hasPrecisionFatorCorrecao.precision = +this.setQtDigFatorCorrecao;
        }
        this.hasPrecisionFatorCorrecao.length = +this.hasPrecision.precision + 1;
    };
    ProdutosArmazenadosTerceirosFormComponent.prototype.copiarUnidade = function () {
        if (this.funcoesService.isCreate(this.actionForm)) {
            this.data.unidadeWeb = this.data.unidade;
        }
    };
    ProdutosArmazenadosTerceirosFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_5__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_14__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_5__["ActivatedRoute"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_11__["ConfiguracaoFacade"] },
        { type: _produtos_armazenados_terceiros_service__WEBPACK_IMPORTED_MODULE_7__["ProdutosArmazenadosTerceirosService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_17__["FuncoesService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_15__["LoginService"] },
        { type: _cadastro_lote_lote_service__WEBPACK_IMPORTED_MODULE_6__["LoteService"] },
        { type: app_pages_cadastro_tipo_de_material_tipo_de_material_service__WEBPACK_IMPORTED_MODULE_18__["TipoDeMaterialService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_1__["PermissoesUtilsService"] },
        { type: app_pages_cadastro_grupo_cipp_grupo_cipp_service__WEBPACK_IMPORTED_MODULE_19__["GrupoCippService"] },
        { type: app_pages_cadastro_tipo_de_material_tipo_de_material_service__WEBPACK_IMPORTED_MODULE_18__["TipoDeMaterialService"] },
        { type: _cadastro_classificacao_fiscal_classificacao_fiscal_service__WEBPACK_IMPORTED_MODULE_16__["ClassificacaoFiscalService"] }
    ]; };
    ProdutosArmazenadosTerceirosFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"])({
            selector: 'app-produtos-armazenados-terceiros-form',
            template: __importDefault(__webpack_require__(/*! raw-loader!./produtos-armazenados-terceiros-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-form/produtos-armazenados-terceiros-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewEncapsulation"].None,
            providers: [
                { provide: ngx_treeview__WEBPACK_IMPORTED_MODULE_0__["TreeviewEventParser"], useClass: ngx_treeview__WEBPACK_IMPORTED_MODULE_0__["OrderDownlineTreeviewEventParser"] },
                { provide: ngx_treeview__WEBPACK_IMPORTED_MODULE_0__["TreeviewConfig"], useClass: ProductTreeviewConfig }
            ],
            styles: [__importDefault(__webpack_require__(/*! ./produtos-armazenados-terceiros-form.component.scss */ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-form/produtos-armazenados-terceiros-form.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_5__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_14__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_5__["ActivatedRoute"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_11__["ConfiguracaoFacade"],
            _produtos_armazenados_terceiros_service__WEBPACK_IMPORTED_MODULE_7__["ProdutosArmazenadosTerceirosService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_17__["FuncoesService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_15__["LoginService"],
            _cadastro_lote_lote_service__WEBPACK_IMPORTED_MODULE_6__["LoteService"],
            app_pages_cadastro_tipo_de_material_tipo_de_material_service__WEBPACK_IMPORTED_MODULE_18__["TipoDeMaterialService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_1__["PermissoesUtilsService"],
            app_pages_cadastro_grupo_cipp_grupo_cipp_service__WEBPACK_IMPORTED_MODULE_19__["GrupoCippService"],
            app_pages_cadastro_tipo_de_material_tipo_de_material_service__WEBPACK_IMPORTED_MODULE_18__["TipoDeMaterialService"],
            _cadastro_classificacao_fiscal_classificacao_fiscal_service__WEBPACK_IMPORTED_MODULE_16__["ClassificacaoFiscalService"]])
    ], ProdutosArmazenadosTerceirosFormComponent);
    return ProdutosArmazenadosTerceirosFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_10__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-index/produtos-armazenados-terceiros-index.component.ts":
/*!******************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-index/produtos-armazenados-terceiros-index.component.ts ***!
  \******************************************************************************************************************************************************************************/
/*! exports provided: ProdutosArmazenadosTerceirosIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProdutosArmazenadosTerceirosIndexComponent", function() { return ProdutosArmazenadosTerceirosIndexComponent; });
/* 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_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _produtos_armazenados_terceiros_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../produtos-armazenados-terceiros.constants */ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros.constants.ts");
/* harmony import */ var _produtos_armazenados_terceiros_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../produtos-armazenados-terceiros.model */ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros.model.ts");
/* harmony import */ var _produtos_armazenados_terceiros_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../produtos-armazenados-terceiros.service */ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};












var ProdutosArmazenadosTerceirosIndexComponent = /** @class */ (function (_super) {
    __extends(ProdutosArmazenadosTerceirosIndexComponent, _super);
    function ProdutosArmazenadosTerceirosIndexComponent(service, router, datatables, configuracao, message, funcoes, loginService, messageService, permissoesUtils) {
        var _this = _super.call(this, new _produtos_armazenados_terceiros_constants__WEBPACK_IMPORTED_MODULE_9__["ProdutosArmazenadosTerceirosConstants"](), funcoes) || this;
        _this.service = service;
        _this.router = router;
        _this.datatables = datatables;
        _this.configuracao = configuracao;
        _this.message = message;
        _this.funcoes = funcoes;
        _this.loginService = loginService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _produtos_armazenados_terceiros_model__WEBPACK_IMPORTED_MODULE_10__["ProdutosArmazenadosTerceiros"]();
        _this.constantes = new _produtos_armazenados_terceiros_constants__WEBPACK_IMPORTED_MODULE_9__["ProdutosArmazenadosTerceirosConstants"]();
        _this.target = _this.funcoes.getTargetLocation();
        _this.pageRoute = "/especificos/cotriguacu/cadastros/produtosArmazenadosTerceiros";
        _this.mensagens = [];
        _this.loadConfig = function () { return __awaiter(_this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        if (!this.configuracao.isLoadConfig()) return [3 /*break*/, 2];
                        _a = this;
                        return [4 /*yield*/, this.configuracao.lerConfig("CTR", "CodCadastroMat")];
                    case 1:
                        _a.setMaterialId = _b.sent();
                        _b.label = 2;
                    case 2: return [2 /*return*/];
                }
            });
        }); };
        _this.redirectFichaTecnica = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 8, function () {
                _this.router.navigate(["" + _this.target + _this.pageRoute + "/fichaTecnica/" + _this.data.materialId]);
            });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    ProdutosArmazenadosTerceirosIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.filtrar()];
                    case 1:
                        _a.sent();
                        return [2 /*return*/];
                }
            });
        }); }, function () {
            _this.permissoesUtils.back();
        }, true);
        if (this.funcoesService.isUndefinedOrNull(this.service.filtro)) {
            this.service.filtro = new _produtos_armazenados_terceiros_model__WEBPACK_IMPORTED_MODULE_10__["ProdutosArmazenadosTerceirosFilter"]();
        }
        _super.prototype.addFuncoes.call(this, [
            { action: 'fichaTecnica', func: function () { return _this.redirectFichaTecnica; } }
        ]);
    };
    ProdutosArmazenadosTerceirosIndexComponent.prototype.filtrar = function () {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.configuracao.getConfig(this.constantes.configs, this.loadConfig)];
                    case 1:
                        _a.sent();
                        jQuery("#produtos-armazenados-terceiros-filter").modal("show");
                        return [2 /*return*/];
                }
            });
        });
    };
    ProdutosArmazenadosTerceirosIndexComponent.prototype.executaFiltro = function (event) {
        this.refresh();
    };
    ProdutosArmazenadosTerceirosIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getByFilter(this.service.filtro).subscribe(function (resp) {
            var columns = [
                _this.datatables.getDataString("materialId", "produto", "10%"),
                _this.datatables.getDataString("fantasia", "fantasia"),
                _this.datatables.getDataString("descrMater", "descricao"),
                _this.datatables.getDataBool("flagAtivo", "ativo"),
            ];
            _this.datatables.datatable("produtosArmazenadosTerceiros", columns, resp, function (aData) {
                _this.data = aData;
            });
        });
    };
    ProdutosArmazenadosTerceirosIndexComponent.prototype.create = function () {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                this.router.navigate(["" + this.target + this.pageRoute + "/create/" + this.setMaterialId]);
                return [2 /*return*/];
            });
        });
    };
    ProdutosArmazenadosTerceirosIndexComponent.prototype.edit = function () {
        if (!!(this.data.materialId)) {
            this.router.navigate(["" + this.target + this.pageRoute + "/edit/" + this.data.materialId + "/" + this.setMaterialId]);
        }
    };
    ProdutosArmazenadosTerceirosIndexComponent.prototype.detail = function () {
        if (!!(this.data.materialId)) {
            this.router.navigate(["" + this.target + this.pageRoute + "/detail/" + this.data.materialId + "/" + this.setMaterialId]);
        }
    };
    ProdutosArmazenadosTerceirosIndexComponent.prototype.remove = function () {
        var _this = this;
        if (!!(this.data.materialId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
                _this.messageService.removeConfirm(function () {
                    _this.service.remove(_this.data).subscribe(function (result) {
                        _this.mensagens = _this.messageService.validationResult(result.validationResult);
                        if (!result.validationResult.isValid) {
                            _this.messageService.warning("titles.produtosArmazenadosTerceiros", _this.mensagens[0]);
                        }
                        else {
                            _this.datatables.remove("produtosArmazenadosTerceiros");
                        }
                    });
                });
            });
        }
    };
    ProdutosArmazenadosTerceirosIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    ProdutosArmazenadosTerceirosIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    ProdutosArmazenadosTerceirosIndexComponent.prototype.print = function () {
        jQuery("#produtos-armazenados-terceiros-print").modal("show");
    };
    ProdutosArmazenadosTerceirosIndexComponent.prototype.executePrint = function (event) {
        var campos = '';
        var count = 0;
        if (event.length === 16) {
            campos = "S";
        }
        else {
            event.forEach(function (key) {
                if (count === 0) {
                    campos = campos + key[0].toUpperCase() + key.slice(1);
                }
                else {
                    campos = campos + ',' + key[0].toUpperCase() + key.slice(1);
                }
                count = count + 1;
            });
        }
        this.service.filtro.campos = campos;
        this.constantes.paramRelatorio = {
            materialIdDe: this.service.filtro.materialIdDe,
            materialIdAte: this.service.filtro.materialIdAte,
            descrMaterDe: this.service.filtro.descrMaterDe,
            descrmaterAte: this.service.filtro.descrmaterAte,
            fantasiaDe: this.service.filtro.fantasiaDe,
            fantasiaAte: this.service.filtro.fantasiaAte,
            campos: this.service.filtro.campos,
        };
        _super.prototype.print.call(this, null, true);
    };
    ProdutosArmazenadosTerceirosIndexComponent.ctorParameters = function () { return [
        { type: _produtos_armazenados_terceiros_service__WEBPACK_IMPORTED_MODULE_11__["ProdutosArmazenadosTerceirosService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_4__["ConfiguracaoFacade"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] }
    ]; };
    ProdutosArmazenadosTerceirosIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-produtos-armazenados-terceiros-index',
            template: __importDefault(__webpack_require__(/*! raw-loader!./produtos-armazenados-terceiros-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-index/produtos-armazenados-terceiros-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_produtos_armazenados_terceiros_service__WEBPACK_IMPORTED_MODULE_11__["ProdutosArmazenadosTerceirosService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_4__["ConfiguracaoFacade"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"]])
    ], ProdutosArmazenadosTerceirosIndexComponent);
    return ProdutosArmazenadosTerceirosIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-print/produtos-armazenados-terceiros-print.component.ts":
/*!******************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-print/produtos-armazenados-terceiros-print.component.ts ***!
  \******************************************************************************************************************************************************************************/
/*! exports provided: ProdutosArmazenadosTerceirosPrintComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProdutosArmazenadosTerceirosPrintComponent", function() { return ProdutosArmazenadosTerceirosPrintComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _produtos_armazenados_terceiros_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../produtos-armazenados-terceiros.model */ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros.model.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 ProdutosArmazenadosTerceirosPrintComponent = /** @class */ (function () {
    function ProdutosArmazenadosTerceirosPrintComponent() {
        this.print = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    ProdutosArmazenadosTerceirosPrintComponent.prototype.ngOnInit = function () {
        this.data = new _produtos_armazenados_terceiros_model__WEBPACK_IMPORTED_MODULE_1__["ProdutosArmazenadosTerceirosShow"]();
    };
    ProdutosArmazenadosTerceirosPrintComponent.prototype.onSubmit = function (form) {
        var _this = this;
        if (!form.invalid) {
            var total = Object.keys(this.data);
            var keys_1 = [];
            total.forEach(function (index) {
                if (_this.data[index] !== '') {
                    keys_1.push(_this.data[index]);
                }
            });
            if (keys_1.length < 1) {
                return;
            }
            jQuery("#produtos-armazenados-terceiros-print").modal("hide");
            this.print.emit(keys_1);
        }
    };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], ProdutosArmazenadosTerceirosPrintComponent.prototype, "print", void 0);
    ProdutosArmazenadosTerceirosPrintComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-produtos-armazenados-terceiros-print',
            template: __importDefault(__webpack_require__(/*! raw-loader!./produtos-armazenados-terceiros-print.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-print/produtos-armazenados-terceiros-print.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [])
    ], ProdutosArmazenadosTerceirosPrintComponent);
    return ProdutosArmazenadosTerceirosPrintComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros.constants.ts":
/*!***********************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros.constants.ts ***!
  \***********************************************************************************************************************************/
/*! exports provided: ProdutosArmazenadosTerceirosConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProdutosArmazenadosTerceirosConstants", function() { return ProdutosArmazenadosTerceirosConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ProdutosArmazenadosTerceirosConstants = /** @class */ (function () {
    function ProdutosArmazenadosTerceirosConstants() {
        this.sisFormularioId = 65640;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.inclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.exclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.propriedades" },
            { sisFormularioId: this.sisFormularioId, libRotina: 7, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 8, acao: "labels.fichaTecnica" }
        ];
        this.sisSistemaId = "REL";
        this.nomeForm = "titles.produtosArmazenadosTerceiros";
        this.reportId = "COT0014";
        this.reportTitulo = { "titulo": "Relatório de Produtos Armazenados (Terceiros)", "subTitulo": "" };
        this.tabela = "Materiais";
        this.configs = [];
        this.listaIndex = [
            { title: 'Novo', action: 'create', icon: "icon-plus", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Visualizar', action: 'detail', icon: "icon-eye", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Excluir', action: 'remove', icon: "icon-close", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Propriedade', action: 'properties', icon: "icon-menu", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'FichaTecnica', action: 'fichaTecnica', icon: "fa fa-thermometer-half", exibeButton: false, eximeMenu: false, menuName: 'Arquivo' },
        ];
        this.listaForm = [
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.listaParam = [
            { sistema: "STO", parametros: ["NumDecCalc20", "NumDecCalcOutros", "QtDigFatorCorrecao20", "QtDigFatorCorrecao"] },
            { sistema: "CTR", parametros: ["CodCadastroMat", "GrupoProdutoDefault"] },
            { sistema: "MAT", parametros: ["TamCodigo"] },
        ];
    }
    return ProdutosArmazenadosTerceirosConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros.model.ts":
/*!*******************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros.model.ts ***!
  \*******************************************************************************************************************************/
/*! exports provided: ProdutosArmazenadosTerceiros, ProdutosArmazenadosTerceirosFilter, ProdutosArmazenadosTerceirosShow, ProdutosArmazenadosTerceirosFichaTecnica */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProdutosArmazenadosTerceiros", function() { return ProdutosArmazenadosTerceiros; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProdutosArmazenadosTerceirosFilter", function() { return ProdutosArmazenadosTerceirosFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProdutosArmazenadosTerceirosShow", function() { return ProdutosArmazenadosTerceirosShow; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProdutosArmazenadosTerceirosFichaTecnica", function() { return ProdutosArmazenadosTerceirosFichaTecnica; });
/* harmony import */ var _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../shared/services/base/base.model */ "./src/app/shared/services/base/base.model.ts");
/* harmony import */ var _cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../cadastro/material/material.model */ "./src/app/pages/cadastro/material/material.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};


var ProdutosArmazenadosTerceiros = /** @class */ (function (_super) {
    __extends(ProdutosArmazenadosTerceiros, _super);
    function ProdutosArmazenadosTerceiros() {
        var _this = _super.call(this) || this;
        _this.flagAtivo = 'N';
        _this.policiaCivil = 'N';
        _this.controle20 = 'N';
        _this.controlePool = 'N';
        _this.altDescrMater = 'N';
        /* execito */
        _this.impGuiaTraf = 'N';
        /* clasificacao nfpa */
        _this.cdAzul = 'N';
        _this.cdVermelho = 'N';
        _this.cdAmarelo = 'N';
        _this.aquecido = 'N';
        _this.agitador = 'N';
        _this.inertizacao = 'N';
        _this.flagObrigaCheckList = 'N';
        _this.consideraPesobal = 'N';
        _this.flagConferencia = 'N';
        _this.flagDensidadeTanque = 'N';
        _this.obrEtiqueta = 'N';
        _this.flagDesmembraVeiculo = 'N';
        _this.flagAtivo = "S";
        _this.tipoIpi = "N";
        _this.tipoIcms = "N";
        _this.metCalcProduto = "";
        _this.regGrupoProduto = "";
        _this.flagObrigaCheckList = "S";
        return _this;
    }
    return ProdutosArmazenadosTerceiros;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

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

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

var ProdutosArmazenadosTerceirosFichaTecnica = /** @class */ (function (_super) {
    __extends(ProdutosArmazenadosTerceirosFichaTecnica, _super);
    function ProdutosArmazenadosTerceirosFichaTecnica() {
        var _this = _super.call(this) || this;
        _this.material = new _cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_1__["Material"]();
        _this.caractTipicaId = " ";
        return _this;
    }
    return ProdutosArmazenadosTerceirosFichaTecnica;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros.module.ts":
/*!********************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros.module.ts ***!
  \********************************************************************************************************************************/
/*! exports provided: ProdutosArmazenadosTerceirosModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProdutosArmazenadosTerceirosModule", function() { return ProdutosArmazenadosTerceirosModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _produtos_armazenados_terceiros_filter_produtos_armazenados_terceiros_filter_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./produtos-armazenados-terceiros-filter/produtos-armazenados-terceiros-filter.component */ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-filter/produtos-armazenados-terceiros-filter.component.ts");
/* harmony import */ var _produtos_armazenados_terceiros_index_produtos_armazenados_terceiros_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./produtos-armazenados-terceiros-index/produtos-armazenados-terceiros-index.component */ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-index/produtos-armazenados-terceiros-index.component.ts");
/* harmony import */ var _produtos_armazenados_terceiros_print_produtos_armazenados_terceiros_print_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./produtos-armazenados-terceiros-print/produtos-armazenados-terceiros-print.component */ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-print/produtos-armazenados-terceiros-print.component.ts");
/* harmony import */ var _produtos_armazenados_terceiros_ficha_tecnica_index_produtos_armazenados_terceiros_ficha_tecnica_index_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./produtos-armazenados-terceiros-ficha-tecnica-index/produtos-armazenados-terceiros-ficha-tecnica-index.component */ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-ficha-tecnica-index/produtos-armazenados-terceiros-ficha-tecnica-index.component.ts");
/* harmony import */ var _produtos_armazenados_terceiros_form_produtos_armazenados_terceiros_form_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./produtos-armazenados-terceiros-form/produtos-armazenados-terceiros-form.component */ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-form/produtos-armazenados-terceiros-form.component.ts");
/* harmony import */ var _produtos_armazenados_terceiros_routing_module__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./produtos-armazenados-terceiros.routing.module */ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros.routing.module.ts");
/* harmony import */ var _produtos_armazenados_terceiros_ficha_tecnica_form_produtos_armazenados_terceiros_ficha_tecnica_form_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./produtos-armazenados-terceiros-ficha-tecnica-form/produtos-armazenados-terceiros-ficha-tecnica-form.component */ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-ficha-tecnica-form/produtos-armazenados-terceiros-ficha-tecnica-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 ProdutosArmazenadosTerceirosModule = /** @class */ (function () {
    function ProdutosArmazenadosTerceirosModule() {
    }
    ProdutosArmazenadosTerceirosModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [
                _produtos_armazenados_terceiros_index_produtos_armazenados_terceiros_index_component__WEBPACK_IMPORTED_MODULE_4__["ProdutosArmazenadosTerceirosIndexComponent"],
                _produtos_armazenados_terceiros_filter_produtos_armazenados_terceiros_filter_component__WEBPACK_IMPORTED_MODULE_3__["ProdutosArmazenadosTerceirosFilterComponent"],
                _produtos_armazenados_terceiros_print_produtos_armazenados_terceiros_print_component__WEBPACK_IMPORTED_MODULE_5__["ProdutosArmazenadosTerceirosPrintComponent"],
                _produtos_armazenados_terceiros_ficha_tecnica_index_produtos_armazenados_terceiros_ficha_tecnica_index_component__WEBPACK_IMPORTED_MODULE_6__["ProdutosArmazenadosTerceirosFichaTecnicaIndexComponent"],
                _produtos_armazenados_terceiros_ficha_tecnica_form_produtos_armazenados_terceiros_ficha_tecnica_form_component__WEBPACK_IMPORTED_MODULE_9__["ProdutosArmazenadosTerceirosFichaTecnicaFormComponent"],
                _produtos_armazenados_terceiros_form_produtos_armazenados_terceiros_form_component__WEBPACK_IMPORTED_MODULE_7__["ProdutosArmazenadosTerceirosFormComponent"]
            ],
            imports: [
                _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_2__["SharedModule"],
                _produtos_armazenados_terceiros_routing_module__WEBPACK_IMPORTED_MODULE_8__["ProdutosArmazenadosTerceirosRoutingModule"]
            ]
        })
    ], ProdutosArmazenadosTerceirosModule);
    return ProdutosArmazenadosTerceirosModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros.routing.module.ts":
/*!****************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros.routing.module.ts ***!
  \****************************************************************************************************************************************/
/*! exports provided: ProdutosArmazenadosTerceirosRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProdutosArmazenadosTerceirosRoutingModule", function() { return ProdutosArmazenadosTerceirosRoutingModule; });
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _produtos_armazenados_terceiros_index_produtos_armazenados_terceiros_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./produtos-armazenados-terceiros-index/produtos-armazenados-terceiros-index.component */ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-index/produtos-armazenados-terceiros-index.component.ts");
/* harmony import */ var _produtos_armazenados_terceiros_form_produtos_armazenados_terceiros_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./produtos-armazenados-terceiros-form/produtos-armazenados-terceiros-form.component */ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-form/produtos-armazenados-terceiros-form.component.ts");
/* harmony import */ var _produtos_armazenados_terceiros_ficha_tecnica_index_produtos_armazenados_terceiros_ficha_tecnica_index_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./produtos-armazenados-terceiros-ficha-tecnica-index/produtos-armazenados-terceiros-ficha-tecnica-index.component */ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-ficha-tecnica-index/produtos-armazenados-terceiros-ficha-tecnica-index.component.ts");
/* harmony import */ var _produtos_armazenados_terceiros_ficha_tecnica_form_produtos_armazenados_terceiros_ficha_tecnica_form_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./produtos-armazenados-terceiros-ficha-tecnica-form/produtos-armazenados-terceiros-ficha-tecnica-form.component */ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros-ficha-tecnica-form/produtos-armazenados-terceiros-ficha-tecnica-form.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};







var MRoutes = [
    {
        path: "",
        component: _produtos_armazenados_terceiros_index_produtos_armazenados_terceiros_index_component__WEBPACK_IMPORTED_MODULE_3__["ProdutosArmazenadosTerceirosIndexComponent"],
        data: { breadcrumb: "produtosArmazenadosTerceiros", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create/:prod",
        component: _produtos_armazenados_terceiros_form_produtos_armazenados_terceiros_form_component__WEBPACK_IMPORTED_MODULE_4__["ProdutosArmazenadosTerceirosFormComponent"],
        data: { breadcrumb: "produtosArmazenadosTerceiros", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create } }
    },
    {
        path: "edit/:id/:prod",
        component: _produtos_armazenados_terceiros_form_produtos_armazenados_terceiros_form_component__WEBPACK_IMPORTED_MODULE_4__["ProdutosArmazenadosTerceirosFormComponent"],
        data: {
            breadcrumb: "produtosArmazenadosTerceiros",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id/:prod",
        component: _produtos_armazenados_terceiros_form_produtos_armazenados_terceiros_form_component__WEBPACK_IMPORTED_MODULE_4__["ProdutosArmazenadosTerceirosFormComponent"],
        data: {
            breadcrumb: "produtosArmazenadosTerceiros",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    },
    {
        path: "fichaTecnica/:materialId",
        component: _produtos_armazenados_terceiros_ficha_tecnica_index_produtos_armazenados_terceiros_ficha_tecnica_index_component__WEBPACK_IMPORTED_MODULE_5__["ProdutosArmazenadosTerceirosFichaTecnicaIndexComponent"],
        data: { breadcrumb: "fichaTecnica", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "fichaTecnica/:materialId/create",
        component: _produtos_armazenados_terceiros_ficha_tecnica_form_produtos_armazenados_terceiros_ficha_tecnica_form_component__WEBPACK_IMPORTED_MODULE_6__["ProdutosArmazenadosTerceirosFichaTecnicaFormComponent"],
        data: { breadcrumb: "fichaTecnica", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create } }
    },
    {
        path: "fichaTecnica/:materialId/edit/:id",
        component: _produtos_armazenados_terceiros_ficha_tecnica_form_produtos_armazenados_terceiros_ficha_tecnica_form_component__WEBPACK_IMPORTED_MODULE_6__["ProdutosArmazenadosTerceirosFichaTecnicaFormComponent"],
        data: {
            breadcrumb: "fichaTecnica",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "fichaTecnica/:materialId/detail/:id",
        component: _produtos_armazenados_terceiros_ficha_tecnica_form_produtos_armazenados_terceiros_ficha_tecnica_form_component__WEBPACK_IMPORTED_MODULE_6__["ProdutosArmazenadosTerceirosFichaTecnicaFormComponent"],
        data: {
            breadcrumb: "fichaTecnica",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var ProdutosArmazenadosTerceirosRoutingModule = /** @class */ (function () {
    function ProdutosArmazenadosTerceirosRoutingModule() {
    }
    ProdutosArmazenadosTerceirosRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_0__["RouterModule"].forChild(MRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_0__["RouterModule"]]
        })
    ], ProdutosArmazenadosTerceirosRoutingModule);
    return ProdutosArmazenadosTerceirosRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros.service.ts":
/*!*********************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros.service.ts ***!
  \*********************************************************************************************************************************/
/*! exports provided: ProdutosArmazenadosTerceirosService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProdutosArmazenadosTerceirosService", function() { return ProdutosArmazenadosTerceirosService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../shared/services/base/specifics.base.service */ "./src/app/shared/services/base/specifics.base.service.ts");
/* 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_error_handler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var _produtos_armazenados_terceiros_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./produtos-armazenados-terceiros.model */ "./src/app/pages/especificos/cotriguacu/cadastros/produtos-armazenados-terceiros/produtos-armazenados-terceiros.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 ProdutosArmazenadosTerceirosService = /** @class */ (function (_super) {
    __extends(ProdutosArmazenadosTerceirosService, _super);
    function ProdutosArmazenadosTerceirosService(http) {
        var _this = _super.call(this, http, "cotriguacu/produtosArmazenadosTerceiros") || this;
        _this.filtro = new _produtos_armazenados_terceiros_model__WEBPACK_IMPORTED_MODULE_6__["ProdutosArmazenadosTerceirosFilter"]();
        return _this;
    }
    ProdutosArmazenadosTerceirosService.prototype.getByFilter = function (filter) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/cotriguacu/produtosArmazenadosTerceiros/getByFiltroProdutosArmazenadosTerceiros", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    ProdutosArmazenadosTerceirosService.prototype.getGeraMaterialId = function (filter) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/cotriguacu/produtosArmazenadosTerceiros/getGeraMaterialId", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    ProdutosArmazenadosTerceirosService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"] }
    ]; };
    ProdutosArmazenadosTerceirosService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"]])
    ], ProdutosArmazenadosTerceirosService);
    return ProdutosArmazenadosTerceirosService;
}(_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_1__["SpecificsBaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-cotriguacu-cadastros-produtos-armazenados-terceiros-produtos-armazenados-terceiros-module.js.map