(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-controle-produtos-almoxarifado-produtos-almoxarifado-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/produtos-almoxarifado/aba-estoque/aba-estoque.component.html":
/*!***********************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/produtos-almoxarifado/aba-estoque/aba-estoque.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=\"container-buttons\">\n    <div class=\"btn-group\">\n        <a title=\"\" class=\"btn uni-btn btn-sm\" (click)=\"back()\" *ngIf=\"!showTable\">\n            <i class=\"icon-arrow-left _white\"></i>\n        </a>\n        <a title=\"{{ 'buttons.novo' | translate }}\" class=\"btn uni-btn btn-sm\" *ngIf=\"showTable\"\n           [ngClass]=\"{'opacity': isDetail == true ? true: false}\" (click)=\"new()\">\n            <i class=\"icon-plus _white\"></i>\n        </a>\n        <a title=\"{{ 'buttons.visualizar' | translate }}\" class=\"btn uni-btn btn-sm opacity\" *ngIf=\"showTable\"\n           [ngClass]=\"{'opacity': item?.materialId == null ? true: false}\" (click)=\"show()\">\n            <i class=\"icon-eye _white\"></i>\n        </a>\n        <a title=\"{{ 'buttons.editar' | translate }}\" class=\"btn uni-btn btn-sm opacity\" *ngIf=\"showTable || detail\"\n           [ngClass]=\"{'opacity': (item?.materialId == null ? true: false) || (isDetail == true ? true: false)}\"\n           (click)=\"edit()\">\n            <i class=\"icon-pencil _white\"></i>\n        </a>\n        <a title=\"{{ 'buttons.excluir' | translate }}\" *ngIf=\"showTable\" class=\"btn uni-btn btn-sm opacity\"\n           [ngClass]=\"{'opacity': ((item?.materialId == null && item?.filial == null) ? true: false) || (isDetail == true ? true: false)}\"\n           (click)=\"delete(item)\">\n            <i class=\"icon-close _white\"></i>\n        </a>\n    </div>\n</div>\n<table class=\"table table-striped table-hover\" *ngIf=\"showTable\">\n    <tr>\n        <th>\n            {{\"labels.filial\" | translate  }}\n        </th>\n        <th>\n            {{\"labels.estoqueMinimo\" | translate  }}\n        </th>\n        <th>\n            {{\"labels.estoqueMaximo\" | translate  }}\n        </th>\n    </tr>\n    <tbody>\n    <tr *ngFor=\"let val of data.normasEstoque | removeExcluidos;let i = index\" (click)=\"selected(val, i)\"\n        [ngClass]=\"{'info':i === _index && item.filial === val.filial }\">\n        <td>\n            {{ val.fantasiaNotMapped }}\n        </td>\n        <td>\n            {{ val.estoqueMinimo | formatCurrency }}\n        </td>\n        <td>\n            {{ val.estoqueMaximo  | formatCurrency }}\n        </td>\n    </tr>\n    <tr *ngIf=\"!data.normasEstoque || data.normasEstoque.length === 0\">\n        <th colspan=\"3\">\n            {{'messages.nenhumRegistroEncontrado' | translate }}\n        </th>\n    </tr>\n    </tbody>\n</table>\n<form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\" *ngIf=\"!showTable\" autocomplete=\"off\">\n    <div class=\"tab-content top\">\n        <div class=\"row\">\n            <div class=\"col-lg-4 col-md-6 col-sm-12\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"filial\" class=\"required\">{{\n                        \"labels.filial\" | translate\n                        }}</label>\n                    <app-combo-padrao id=\"filial\" name=\"filial\" [(ngModel)]=\"item.filial\" tabela=\"Filial\" chave=\"Filial\"\n                                      descricao=\"Fantasia\" ativos=\"true\" required=\"true\"\n                                      [disabled]=\"detail === true? true: null\">\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\">\n                    <label for=\"prazoAbastecimento\">{{ \"labels.prazoAbastecimento\" | translate }}</label>\n                    <input id=\"prazoAbastecimento\" name=\"prazoAbastecimento\" type=\"text\"\n                           [disabled]=\"detail === true? true: null\" mask=\"9999\" [(ngModel)]=\"item.prazoAbastecimento\"\n                           maxlength=\"4\" class=\"form-control form-control-sm\"/>\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=\"estoqueMinimo\">{{ \"labels.estoqueMinimo\" | translate }}</label>\n                    <input id=\"estoqueMinimo\" name=\"estoqueMinimo\" type=\"text\" [disabled]=\"detail === true? true: null\"\n                           currencyMask\n                           [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 3 }\"\n                           [(ngModel)]=\"item.estoqueMinimo\" maxlength=\"15\" class=\"form-control form-control-sm\"/>\n                </div>\n            </div>\n            <div class=\"col-lg-3\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"estoqueMaximo\">{{ \"labels.estoqueMaximo\" | translate }}</label>\n                    <input id=\"estoqueMaximo\" name=\"estoqueMaximo\" type=\"text\" [disabled]=\"detail === true? true: null\"\n                           currencyMask\n                           [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 3 }\"\n                           [(ngModel)]=\"item.estoqueMaximo\" maxlength=\"15\" class=\"form-control form-control-sm\"/>\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-6\">\n                <div class=\"form-group form-group-sm\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\"\n                            [disabled]=\"isDetail || detail\">{{ 'buttons.salvar' | translate }}\n                    </button>\n                </div>\n            </div>\n        </div>\n    </div>\n</form>\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/produtos-almoxarifado/aba-impostos-estado/aba-impostos-estado.component.html":
/*!***************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/produtos-almoxarifado/aba-impostos-estado/aba-impostos-estado.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=\"container-buttons\">\n    <div class=\"btn-group\">\n        <a title=\"\" class=\"btn uni-btn btn-sm\" (click)=\"back()\" *ngIf=\"!showTable\">\n            <i class=\"icon-arrow-left _white\"></i>\n        </a>\n        <a title=\"{{ 'buttons.novo' | translate }}\" class=\"btn uni-btn btn-sm\" *ngIf=\"showTable\"\n           [ngClass]=\"{'opacity': isDetail == true ? true: false}\" (click)=\"new()\">\n            <i class=\"icon-plus _white\"></i>\n        </a>\n        <a title=\"{{ 'buttons.visualizar' | translate }}\" class=\"btn uni-btn btn-sm opacity\" *ngIf=\"showTable\"\n           [ngClass]=\"{'opacity': item?.materialId == null ? true: false}\" (click)=\"show()\">\n            <i class=\"icon-eye _white\"></i>\n        </a>\n        <a title=\"{{ 'buttons.editar' | translate }}\" class=\"btn uni-btn btn-sm opacity\" *ngIf=\"showTable || detail\"\n           [ngClass]=\"{'opacity': (item?.materialId == null ? true: false) || (isDetail == true ? true: false)}\"\n           (click)=\"edit()\">\n            <i class=\"icon-pencil _white\"></i>\n        </a>\n        <a title=\"{{ 'buttons.excluir' | translate }}\" *ngIf=\"showTable\" class=\"btn uni-btn btn-sm opacity\"\n           [ngClass]=\"{'opacity': ((item?.materialId == null && item?.estado == null) ? true: false) || (isDetail == true ? true: false)}\"\n           (click)=\"delete(item)\">\n            <i class=\"icon-close _white\"></i>\n        </a>\n    </div>\n</div>\n<table class=\"table table-striped table-hover\" *ngIf=\"showTable\">\n    <tr>\n        <th>\n            {{\"labels.estado\" | translate  }}\n        </th>\n        <th>\n            {{\"labels.icms\" | translate  }}\n        </th>\n        <th>\n            {{\"labels.fcp\" | translate  }}\n        </th>\n    </tr>\n    <tbody>\n    <tr *ngFor=\"let val of data.materialEstadoImp | removeExcluidos;let i = index\" (click)=\"selected(val, i)\"\n        [ngClass]=\"{'info':i === _index && item.materialId === val.materialId }\">\n        <td>\n            {{ val.estadoNotMapped }}\n        </td>\n        <td>\n            {{ val.aliqIcms | formatCurrency: 2 }}\n        </td>\n        <td>\n            {{ val.aliqFCP | formatCurrency: 2 }}\n        </td>\n    </tr>\n    <tr *ngIf=\"!data.materialEstadoImp || data.materialEstadoImp.length === 0\">\n        <th colspan=\"3\">\n            {{'messages.nenhumRegistroEncontrado' | translate }}\n        </th>\n    </tr>\n    </tbody>\n</table>\n\n<form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\" *ngIf=\"!showTable\" autocomplete=\"off\">\n    <div class=\"tab-content top\">\n        <div class=\"row\">\n            <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"estado\" class=\"required\">{{\n                        \"labels.estado\" | translate\n                        }}</label>\n                    <app-combo-padrao id=\"estado\" name=\"estado\" [(ngModel)]=\"item.estado\"\n                                      tabela=\"Estados\" chave=\"Estado\" descricao=\"DescrEstado\" ativos=\"true\"\n                                      required=\"true\"\n                                      [disabled]=\"detail === true? true: null\">\n                    </app-combo-padrao>\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-3 col-md-6\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"aliqIcms\">{{ \"labels.icms\" | translate }}</label>\n                    <input id=\"aliqIcms\" name=\"icms\" type=\"text\" [disabled]=\"detail === true? true: null\" currencyMask\n                           [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\" [(ngModel)]=\"item.aliqIcms\"\n                           maxlength=\"5\"\n                           class=\"form-control form-control-sm\"/>\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=\"aliqFCP\">{{'labels.fcp' | translate}}</label>\n                    <input id=\"aliqFCP\" name=\"fcp\" type=\"text\" [disabled]=\"detail === true? true: null\" currencyMask\n                           [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\" [(ngModel)]=\"item.aliqFCP\"\n                           maxlength=\"6\"\n                           class=\"form-control form-control-sm\"/>\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-6\">\n                <div class=\"form-group form-group-sm\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\"\n                            [disabled]=\"isDetail || detail\">{{ 'buttons.salvar' | translate }}\n                    </button>\n                </div>\n            </div>\n        </div>\n    </div>\n</form>\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/produtos-almoxarifado/aba-unidade-alternativa/aba-unidade-alternativa.component.html":
/*!***********************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/produtos-almoxarifado/aba-unidade-alternativa/aba-unidade-alternativa.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=\"container-buttons\">\n    <div class=\"btn-group\">\n        <a title=\"\" class=\"btn uni-btn btn-sm\" (click)=\"back()\" *ngIf=\"!showTable\">\n            <i class=\"icon-arrow-left _white\"></i>\n        </a>\n        <a title=\"{{ 'buttons.novo' | translate }}\" class=\"btn uni-btn btn-sm\" *ngIf=\"showTable\"\n            [ngClass]=\"{'opacity': isDetail == true ? true: false}\" (click)=\"new()\">\n            <i class=\"icon-plus _white\"></i>\n        </a>\n        <a title=\"{{ 'buttons.visualizar' | translate }}\" class=\"btn uni-btn btn-sm opacity\" *ngIf=\"showTable\"\n            [ngClass]=\"{'opacity': item?.materialId == null ? true: false}\" (click)=\"show()\">\n            <i class=\"icon-eye _white\"></i>\n        </a>\n        <a title=\"{{ 'buttons.editar' | translate }}\" class=\"btn uni-btn btn-sm opacity\" *ngIf=\"showTable || detail\"\n            [ngClass]=\"{'opacity': (item?.materialId == null ? true: false) || (isDetail == true ? true: false)}\"\n            (click)=\"edit()\">\n            <i class=\"icon-pencil _white\"></i>\n        </a>\n        <a title=\"{{ 'buttons.excluir' | translate }}\" *ngIf=\"showTable\" class=\"btn uni-btn btn-sm opacity\"\n            [ngClass]=\"{'opacity': ((item?.materialId == null && item?.unidade == null) ? true: false) || (isDetail == true ? true: false)}\"\n            (click)=\"delete(item)\">\n            <i class=\"icon-close _white\"></i>\n        </a>\n    </div>\n</div>\n<table class=\"table table-striped table-hover\" *ngIf=\"showTable\">\n    <tr>\n        <th>\n            {{\"labels.unidade\" | translate  }}\n        </th>\n        <th>\n            {{\"labels.fator\" | translate  }}\n        </th>\n        <th>\n            {{\"labels.codBarras\" | translate  }}\n        </th>\n    </tr>\n    <tbody>\n        <tr *ngFor=\"let val of data.materialUnidade | removeExcluidos;let i = index\" (click)=\"selected(val, i)\"\n            [ngClass]=\"{'info':i === _index && item.unidade === val.unidade }\">\n            <td>\n                {{ val.unidadeNotMapped }}\n            </td>\n            <td>\n                {{ val.fator }}\n            </td>\n            <td>\n                {{ val.codBarras }}\n            </td>\n        </tr>\n        <tr *ngIf=\"!data.materialUnidade || data.materialUnidade.length === 0\">\n            <th colspan=\"3\">\n                {{'messages.nenhumRegistroEncontrado' | translate }}\n            </th>\n        </tr>\n    </tbody>\n</table>\n\n<form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\" *ngIf=\"!showTable\" autocomplete=\"off\">\n    <div class=\"tab-content top\">\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=\"aba_unidade_unidade\" class=\"required\">{{\n                    \"labels.unidade\" | translate\n                    }}</label>\n                    <app-combo-padrao id=\"aba_unidade_unidade\" name=\"aba_unidade_unidade\" [(ngModel)]=\"item.unidade\"\n                        tabela=\"Unidade\" chave=\"Unidade\" descricao=\"DescrUnidade\" ativos=\"true\" required=\"true\"\n                        [disabled]=\"detail === true? true: null\">\n                    </app-combo-padrao>\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-3 col-md-6\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"fator\">{{ \"labels.fator\" | translate }}</label>\n                    <input id=\"fator\" name=\"fator\" type=\"text\"\n                           [disabled]=\"detail === true? true: null\" currencyMask\n                           [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 4 }\"\n                           [(ngModel)]=\"item.fator\" maxlength=\"11\"\n                        class=\"form-control form-control-sm\" />\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=\"codBarras\">{{'labels.codBarras' | translate}}</label>\n                    <input type=\"text\" id=\"codBarras\" name=\"codBarras\" [disabled]=\"detail === true? true: null\" maxlength=\"14\"\n                        [(ngModel)]=\"item.codBarras\" class=\"form-control form-control-sm\">\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-6\">\n                <div class=\"form-group form-group-sm\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\"\n                        [disabled]=\"isDetail || detail\">{{ 'buttons.salvar' | translate }}\n                    </button>\n                </div>\n            </div>\n        </div>\n    </div>\n</form>\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/produtos-almoxarifado/modal-select-origem/modal-select-origem.component.html":
/*!***************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/produtos-almoxarifado/modal-select-origem/modal-select-origem.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=\"modal-select-origem\" 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\">{{ obj.title | 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-12 col-md-12 col-sm-12\">\n                            <label for=\"operacaoValE\">\n                                {{ 'labels.operacaoEntrada' | translate }}\n                            </label>\n                            <div class=\"container-tree\">\n                                <div class=\"mask_disabled\"\n                                     [ngClass]=\"{'actived': isDetail}\"></div>\n                                <ngx-treeview id=\"operacaoValE\" [items]=\"items\"\n                                              (selectedChange)=\"onSelectedChangeOperacao($event)\">\n                                </ngx-treeview>\n                            </div>\n                        </div>\n                    </div>\n\n                </div>\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.ok' | 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");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado-duplicar/produtos-almoxarifado-duplicar.component.html":
/*!*************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado-duplicar/produtos-almoxarifado-duplicar.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\" id=\"produtos-almoxarifado-duplicar-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-40\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.duplMaterial' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"card\">\r\n                        <div class=\"card-body\">\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-6 col-md-6 col-sm-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label for=\"material\"\r\n                                               [attr.class]=\"(produtosAlmoxarifado.setMaterialId !== 'S')? 'required': ''\">{{'labels.material' | translate}}</label>\r\n                                        <input id=\"material\" name=\"material\" [(ngModel)]=\"produtosAlmoxarifado.materialIdNovo\"\r\n                                               maxlength=\"20\" required=\"true\"\r\n                                               [required]=\"(produtosAlmoxarifado.setMaterialId !== 'S')? true: false\"\r\n                                               class=\"form-control form-control-sm\" type=\"text\"\r\n                                               (blur)=\"existeMaterialId()\"\r\n                                               [disabled]=\"(produtosAlmoxarifado.setMaterialId !== 'S')? false: true\">\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <div class=\"form-group\">\r\n                                <label for=\"descrMater\"\r\n                                       class=\"required\">{{'labels.descricao' | translate}}</label>\r\n                                <textarea id=\"descrMater\" name=\"descrMater\"\r\n                                          [(ngModel)]=\"produtosAlmoxarifado.descrMater\"\r\n                                          required maxlength=\"50\"\r\n                                          class=\"form-control form-control-sm\"\r\n                                          [disabled]=\"false\"\r\n                                          rows=\"3\"\r\n                                          autofocus></textarea>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"clearfix\">&nbsp;</div>\r\n                <div class=\"clearfix\">&nbsp;</div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.ok' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">cancelar</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/controle/produtos-almoxarifado/produtos-almoxarifado-filter/produtos-almoxarifado-filter.component.html":
/*!*********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado-filter/produtos-almoxarifado-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-almoxarifado-filter\" 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.produtosAlmoxarifado' | 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-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"materialDe\">{{\n                                    \"labels.materialDe\" | translate\n                                    }}</label>\n                                <input id=\"materialDe\" name=\"materialDe\" [(ngModel)]=\"service.filter.materialIdDe\"\n                                    maxlength=\"20\" class=\"form-control form-control-sm\" type=\"text\" />\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"materialAte\">{{\n                                    \"labels.ate\" | translate\n                                    }}</label>\n                                <input id=\"materialAte\" name=\"materialAte\" [(ngModel)]=\"service.filter.materialIdAte\"\n                                    maxlength=\"20\" class=\"form-control form-control-sm\" type=\"text\" />\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=\"descrMaterDe\">{{\n                                    \"labels.descrMaterDe\" | translate\n                                    }}</label>\n                                <input id=\"descrMaterDe\" name=\"descrMaterDe\" [(ngModel)]=\"service.filter.descrMaterDe\"\n                                    maxlength=\"20\" class=\"form-control form-control-sm\" type=\"text\" />\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"descrmaterAte\">{{\n                                    \"labels.ate\" | translate\n                                    }}</label>\n                                <input id=\"descrmaterAte\" name=\"descrmaterAte\"\n                                    [(ngModel)]=\"service.filter.descrmaterAte\" maxlength=\"20\"\n                                    class=\"form-control form-control-sm\" type=\"text\" />\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"tipoMaterial\">{{ \"labels.tipoMaterial\" | translate}}</label>\n                                <select id=\"tipoMaterial\" [(ngModel)]=\"service.filter.tipoMaterial\"\n                                    class=\"form-control form-control-sm\" name=\"tipoMaterial\"\n                                    data-title=\"{{ 'labels.tipoMaterial' | translate }}\">\n                                    <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\n                                    <option *ngFor=\"let item of tipoMaterial\" value=\"{{ item.tipoDeMaterialId }}\">\n                                        {{ item.descrTipoMater }}\n                                    </option>\n                                </select>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | 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>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado-form/produtos-almoxarifado-form.component.html":
/*!*****************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado-form/produtos-almoxarifado-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                <app-form-legenda></app-form-legenda>\n                <div class=\"tab-pane active show\" id=\"ge\">\n                    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\" autocomplete=\"off\">\n                        <app-validacoes></app-validacoes>\n                        <app-card-container tituloCard=\"\">\n                            <div class=\"row\">\n                                <div class=\"col-lg-6 col-md-12\">\n                                    <div class=\"row\">\n                                        <div class=\"col-lg-12 col-md-12\">\n                                            <div class=\"form-group form-group-sm\">\n                                                <app-input-description label=\"material\"\n                                                    [valueID]=\"data.materialId\"\n                                                    [valueDescription]=\"data.descrMater\">\n                                                </app-input-description>\n                                            </div>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                        </app-card-container>\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=\"#dados\">{{\"labels.dados\" | translate}}</a>\n                                </li>\n                                <li class=\"nav-item\">\n                                    <a class=\"nav-link\" data-toggle=\"tab\"\n                                       href=\"#faturamento\">{{\"labels.faturamento\" | translate}}</a>\n                                </li>\n                                <li class=\"nav-item\">\n                                    <a class=\"nav-link\" data-toggle=\"tab\"\n                                       href=\"#unidadeAlternativa\">{{\"labels.unidadeAlternativa\" | translate}}</a>\n                                </li>\n                                <li class=\"nav-item\">\n                                    <a class=\"nav-link\" data-toggle=\"tab\"\n                                       href=\"#impostosEstado\">{{\"labels.impostos\" | translate}}</a>\n                                </li>\n                                <li class=\"nav-item\">\n                                    <a class=\"nav-link\" data-toggle=\"tab\"\n                                       href=\"#compra\">{{\"labels.compra\" | translate}}</a>\n                                </li>\n                                <li class=\"nav-item\">\n                                    <a class=\"nav-link\" data-toggle=\"tab\"\n                                       href=\"#estoque\">{{\"labels.estoque\" | translate}}</a>\n                                </li>\n                                <li class=\"nav-item\">\n                                    <a class=\"nav-link\" data-toggle=\"tab\"\n                                       href=\"#estado\">{{\"labels.impostosEstado\" | translate}}</a>\n                                </li>\n                            </ul>\n                        </div>\n                        <div class=\"tab-content top\">\n                            <div class=\"tab-pane active show\" id=\"dados\">\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-8 col-sm-12\">\n                                        <div class=\"row\">\n                                            <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                                <div class=\"form-group form-group-sm\">\n                                                    <label for=\"material\"\n                                                           [attr.class]=\"funcoesService.isCreate(actionForm) && (config.numAuto !== 'S')? 'required': ''\">{{'labels.material' | translate}}</label>\n                                                    <input id=\"material\" name=\"material\" [(ngModel)]=\"data.materialId\"\n                                                           maxlength=\"20\" required=\"true\"\n                                                           [required]=\"funcoesService.isCreate(actionForm) && (config.numAuto !== 'S')? true: false\"\n                                                           class=\"form-control form-control-sm\" type=\"text\"\n                                                           (blur)=\"existeMaterialId()\"\n                                                           [disabled]=\"funcoesService.isCreate(actionForm) && (config.numAuto !== 'S')? false: true\">\n                                                </div>\n                                            </div>\n                                            <div class=\"col-lg-6 col-md-6\">\n                                                <label></label>\n                                                <div class=\"custom-control custom-checkbox\">\n                                                    <input id=\"flagAtivo\" name=\"flagAtivo\"\n                                                           [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\"\n                                                           for=\"flagAtivo\">{{'labels.ativo' | translate}}</label>\n                                                </div>\n                                            </div>\n                                        </div>\n                                        <div class=\"row\">\n                                            <div class=\"col-lg-4 mb-2\">\n                                                <div class=\"form-group form-group-sm\">\n                                                    <label>{{'labels.produtoServico' | translate }}</label>\n                                                    <div class=\"form-check\">\n                                                        <input type=\"radio\" name=\"flagServ\" class=\"form-check-input\"\n                                                               value=\"N\"\n                                                               [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                               [(ngModel)]=\"data.flagServ\">{{'labels.produto' | translate }}\n                                                    </div>\n                                                    <div class=\"form-check\">\n                                                        <input type=\"radio\" name=\"flagServ\" class=\"form-check-input\"\n                                                               value=\"S\"\n                                                               [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                               [(ngModel)]=\"data.flagServ\">{{'labels.servico' | translate }}\n                                                    </div>\n                                                </div>\n                                            </div>\n                                        </div>\n                                        <div class=\"row\">\n                                            <div class=\"col-lg-12\">\n                                                <div class=\"form-group\">\n                                                    <label for=\"descrMater\"\n                                                           class=\"required\">{{'labels.descricao' | translate}}</label>\n                                                    <textarea id=\"descrMater\" name=\"descrMater\"\n                                                              [(ngModel)]=\"data.descrMater\" required maxlength=\"50\"\n                                                              class=\"form-control form-control-sm\"\n                                                              [disabled]=\"funcoesService.isDetail(actionForm)\" rows=\"3\"\n                                                              autofocus></textarea>\n                                                </div>\n                                            </div>\n                                        </div>\n                                        <div class=\"row\">\n                                            <div class=\"col-lg-6\">\n                                                <div class=\"form-group form-group-sm\">\n                                                    <label for=\"referencia\">{{'labels.referencia' | translate}}</label>\n                                                    <input type=\"text\" [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                           maxlength=\"20\" name=\"referencia\" id=\"referencia\"\n                                                           [(ngModel)]=\"data.referencia\"\n                                                           class=\"form-control form-control-sm\">\n                                                </div>\n                                            </div>\n                                        </div>\n                                        <div class=\"row\">\n                                            <div class=\"col-lg-6\">\n                                                <div class=\"form-group form-group-sm\">\n                                                    <label for=\"codBarras\">{{'labels.codigoBarras' | translate}}</label>\n                                                    <input type=\"text\" name=\"codBarras\" id=\"codBarras\"\n                                                           [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                           [(ngModel)]=\"data.codBarras\" maxlength=\"14\"\n                                                           class=\"form-control form-control-sm\">\n                                                </div>\n                                            </div>\n                                        </div>\n                                        <div class=\"row\">\n                                            <div class=\"col-lg-6\">\n                                                <div class=\"form-group form-group-sm\">\n                                                    <label for=\"pesoLiq\">{{ \"labels.pesoLiquido\" | translate }}</label>\n                                                    <input id=\"pesoLiq\" name=\"pesoLiq\" type=\"text\"\n                                                           [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\n                                                           [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 5 }\"\n                                                           [(ngModel)]=\"data.pesoLiq\" maxlength=\"12\"\n                                                           class=\"form-control form-control-sm\"/>\n                                                </div>\n                                            </div>\n                                            <div class=\"col-lg-6\">\n                                                <div class=\"form-group form-group-sm\">\n                                                    <label for=\"cubagem\">{{ \"labels.cubagem\" | translate }}</label>\n                                                    <input id=\"cubagem\" name=\"cubagem\" type=\"text\"\n                                                           [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\n                                                           [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 9 }\"\n                                                           [(ngModel)]=\"data.cubagem\" maxlength=\"17\"\n                                                           class=\"form-control form-control-sm\"/>\n                                                </div>\n                                            </div>\n                                        </div>\n                                        <div class=\"row\">\n                                            <div class=\"col-lg-12 col-md-6\">\n                                                <div class=\"form-group form-group-sm\">\n                                                    <label\n                                                            for=\"codTipoMater\"\n                                                            class=\"required\">{{ \"labels.tipoMaterial\" | translate}}</label>\n                                                    <select id=\"codTipoMater\" [(ngModel)]=\"data.tipoDeMaterialId\"\n                                                            class=\"form-control form-control-sm\" required=\"true\"\n                                                            name=\"codTipoMater\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                            data-title=\"{{ 'labels.tipoMaterial' | translate }}\">\n                                                        <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\n                                                        <option *ngFor=\"let item of tipoMaterial\"\n                                                                value=\"{{ item.tipoDeMaterialId }}\">\n                                                            {{ item.descrTipoMater }}\n                                                        </option>\n                                                    </select>\n                                                </div>\n                                            </div>\n                                        </div>\n                                        <div class=\"row\">\n                                            <div class=\"col-lg-12 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\"\n                                                                      [(ngModel)]=\"data.unidade\" tabela=\"Unidade\"\n                                                                      chave=\"Unidade\"\n                                                                      descricao=\"DescrUnidade\" ativos=\"true\"\n                                                                      required=\"true\"\n                                                                      (change)=\"copiarUnidade()\"\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\">\n                                                <div class=\"form-group form-group-sm\">\n                                                    <label\n                                                            for=\"emsMaterial\">{{'labels.emsMaterial' | translate}}</label>\n                                                    <input id=\"emsMaterial\" name=\"emsMaterial\"\n                                                           [(ngModel)]=\"data.emsMaterial\" 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-12\">\n                                                <div class=\"form-group\">\n                                                    <label\n                                                            for=\"especificacao\">{{'labels.especificacao' | translate}}</label>\n                                                    <textarea id=\"especificacao\" name=\"especificacao\"\n                                                              [(ngModel)]=\"data.especificacao\" maxlength=\"250\"\n                                                              class=\"form-control form-control-sm\"\n                                                              [disabled]=\"funcoesService.isDetail(actionForm)\" rows=\"3\"\n                                                              autofocus></textarea>\n                                                </div>\n                                            </div>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-4 col-md-4 col-sm-12\">\n                                        <div id=\"main-preview\" class=\"col-md-12\">\n                                            <img [src]=\"imgURL\" *ngIf=\"imgURL\" class=\"img-preview\">\n                                        </div>\n                                        <a href=\"javascript:;\" id=\"btn-select-image\" class=\"btn btn-default\"\n                                           *ngIf=\"!funcoesService.isDetail(actionForm)\"\n                                           (click)=\"selectImage()\" style=\"margin-top: 10px;width: 100%;\">\n                                            {{ 'labels.digitalizar' | translate }}\n                                        </a>\n                                        <input id=\"file\" name=\"img\" (change)=\"preview($event)\" accept='image/*'\n                                               class=\"form-control form-control-sm\" type=\"file\">\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"tab-pane\" id=\"faturamento\">\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"comissao\">{{ \"labels.comissao\" | translate }}</label>\n                                            <input id=\"comissao\" name=\"comissao\" type=\"text\"\n                                                   [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\n                                                   [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                                   [(ngModel)]=\"data.comissao\" maxlength=\"5\"\n                                                   class=\"form-control form-control-sm\"/>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-6 col-md-6\">\n                                        <label></label>\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.permiteAlterarDescricao' | translate}}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"royalties\">{{\n                                                \"labels.royalties\" | translate\n                                                }}</label>\n                                            <app-combo-padrao id=\"royalties\" name=\"royalties\"\n                                                              [(ngModel)]=\"data.royalties\"\n                                                              tabela=\"Royalties\" chave=\"Royalties\"\n                                                              descricao=\"DescrRoyalties \"\n                                                              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=\"embalagem\">{{\n                                                \"labels.embalagem\" | translate\n                                                }}</label>\n                                            <app-combo-padrao id=\"embalagem\" name=\"embalagem\"\n                                                              [(ngModel)]=\"data.embalagem\" tabela=\"Embalagem\"\n                                                              chave=\"Embalagem\"\n                                                              descricao=\"DescrEmbalagem\" ativos=\"true\"\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=\"subEmbalagem\">{{\n                                                \"labels.subEmbalagem\" | translate\n                                                }}</label>\n                                            <app-combo-padrao id=\"subEmbalagem\" name=\"subEmbalagem\"\n                                                              [(ngModel)]=\"data.subEmbalagem\" tabela=\"Embalagem\"\n                                                              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-6 col-md-6\">\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\"\n                                                              required=\"true\" descricao=\"DescrProcedencia\" ativos=\"true\"\n                                                              [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                              (change)=\"copiarProcedencia()\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"clasifacaoFiscal\" class=\"required\">{{\n                                                \"labels.clasifacaoFiscal\" | translate\n                                                }}</label>\n                                            <app-combo-padrao id=\"clasifacaoFiscal\" name=\"codNbm\"\n                                                              [(ngModel)]=\"data.classificacaoFiscalId\"\n                                                              tabela=\"ClassificacaoFiscal\" chave=\"CodNbm\"\n                                                              required=\"true\" descricao=\"CodNbm\" 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-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"codAgrupa\">{{\n                                                \"labels.agrupamentoNota\" | translate\n                                                }}</label>\n                                            <app-combo-padrao id=\"codAgrupa\" name=\"codAgrupa\"\n                                                              [(ngModel)]=\"data.codAgrupa\" tabela=\"AgrupamentoMaterial\"\n                                                              chave=\"CodAgrupa\" descricao=\"DescrAgrupa\" 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\">\n                                        <app-card-container tituloCard=\"caixaEmbarque\">\n                                            <div class=\"row\">\n                                                <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                                                    <label for=\"dUM14\">{{'labels.dUM14' | translate}}</label>\n                                                    <input type=\"text\" name=\"dUM14\" id=\"dUM14\"\n                                                           [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                           maxlength=\"14\"\n                                                           [(ngModel)]=\"data.dum14\"\n                                                           class=\"form-control form-control-sm\">\n                                                </div>\n                                            </div>\n                                            <div class=\"row\">\n                                                <div class=\"col-lg-6 col-md-10 col-sm-11\">\n                                                    <label for=\"dUM14Quantid\">{{ \"labels.quantid\" | translate }}</label>\n                                                    <input id=\"dUM14Quantid\" name=\"dUM14Quantid\" type=\"text\"\n                                                           [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\n                                                           [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 3 }\"\n                                                           [(ngModel)]=\"data.dum14Quantid\" maxlength=\"15\"\n                                                           class=\"form-control form-control-sm\"/>\n                                                </div>\n                                            </div>\n                                        </app-card-container>\n                                    </div>\n                                    <div class=\"col-lg-6\">\n                                        <app-card-container tituloCard=\"anpSimp\">\n                                            <div class=\"row\">\n                                                <div class=\"col-lg-6 col-md-12 col-sm-12\">\n                                                    <label for=\"codigoAnp17\">{{'labels.codigo' | translate}}</label>\n                                                    <input type=\"text\" name=\"codigoAnp17\" id=\"codigoAnp17\"\n                                                           [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                           maxlength=\"9\"\n                                                           [(ngModel)]=\"data.codigoAnp17\"\n                                                           class=\"form-control form-control-sm\">\n                                                </div>\n                                                <div class=\"col-lg-6 col-md-12 col-sm-12\">\n                                                    <label for=\"codCodif\">{{'labels.codif' | translate}}</label>\n                                                    <input type=\"text\" name=\"codCodif\" id=\"codCodif\"\n                                                           [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                           maxlength=\"21\"\n                                                           [(ngModel)]=\"data.codCodif\"\n                                                           class=\"form-control form-control-sm\">\n                                                </div>\n                                            </div>\n                                            <div class=\"row\">\n                                                <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                                                    <label\n                                                            for=\"descrMaterANP\">{{'labels.descricao' | translate}}</label>\n                                                    <textarea id=\"descrMaterANP\" name=\"descrMaterANP\"\n                                                              [(ngModel)]=\"data.descrMaterAnp\" maxlength=\"150\"\n                                                              class=\"form-control form-control-sm\"\n                                                              [disabled]=\"funcoesService.isDetail(actionForm)\" rows=\"1\"\n                                                              autofocus></textarea>\n                                                </div>\n                                            </div>\n                                        </app-card-container>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"tab-pane\" id=\"unidadeAlternativa\">\n                                <app-aba-unidade-alternativa *ngIf=\"showComponents\" [data]=\"data\"\n                                                             [isDetail]=\"funcoesService.isDetail(actionForm)\"\n                                                             (response)=\"updateShowButtom($event)\"></app-aba-unidade-alternativa>\n                            </div>\n                            <div class=\"tab-pane\" id=\"impostosEstado\">\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=\"aliqIpi\">{{'labels.aliqIpi' | translate}}</label>\n                                            <input id=\"aliqIpi\" name=\"aliqIpi\" [(ngModel)]=\"data.aliqIpi\" maxlength=\"5\"\n                                                   currencyMask\n                                                   [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\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=\"aliqIss\">{{'labels.aliqIss' | translate}}</label>\n                                            <input id=\"aliqIss\" name=\"aliqIss\" [(ngModel)]=\"data.aliqIss\" maxlength=\"5\"\n                                                   currencyMask\n                                                   [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\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=\"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=\"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: 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=\"exTipi\">{{'labels.exTipi' | translate}}</label>\n                                            <input id=\"exTipi\" name=\"exTipi\" [(ngModel)]=\"data.exTipi\" maxlength=\"3\"\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=\"tipoIpi\">{{\n                                                \"labels.tipoIpi\" | translate\n                                                }}</label>\n                                            <select id=\"tipoIpi\" name=\"tipoIpi\" [(ngModel)]=\"data.tipoIpi\"\n                                                    class=\"form-control form-control-sm\"\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                                            </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=\"aliqTrib\">{{'labels.aliquotaTributos' | translate}}</label>\n                                            <input id=\"aliqTrib\" name=\"aliqTrib\" [(ngModel)]=\"data.aliqTrib\"\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>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 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\"\n                                                              tabela=\"GeneroMaterialSped\"\n                                                              chave=\"GeneroMaterialSped\" required=\"true\"\n                                                              descricao=\"DescrGeneroSped\"\n                                                              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=\"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-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"codTribServ\">{{'labels.codTribServ' | translate}}</label>\n                                            <input id=\"codTribServ\" name=\"codTribServ\" [(ngModel)]=\"data.codTribServ\"\n                                                   maxlength=\"10\" 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=\"codCest\">{{'labels.codCest' | translate}}</label>\n                                            <input id=\"codCest\" name=\"codCest\" [(ngModel)]=\"data.codCest\" maxlength=\"7\"\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 operacao\"\n                                             (click)=\"openModalSelectOperation('E')\">\n                                            <div class=\"mask_operacao\"></div>\n                                            <label for=\"operacaoValE\">{{'labels.operacaoEntrada' | translate}}</label>\n                                            <input id=\"operacaoValE\" name=\"operacaoValE\" [(ngModel)]=\"data.operacaoValE\"\n                                                   maxlength=\"250\"\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 operacao\"\n                                             (click)=\"openModalSelectOperation('S')\">\n                                            <div class=\"mask_operacao\"></div>\n                                            <label for=\"operacaoValS\">{{'labels.operacaoSaida' | translate}}</label>\n                                            <input id=\"operacaoValS\" name=\"operacaoValS\" [(ngModel)]=\"data.operacaoValS\"\n                                                   maxlength=\"250\"\n                                                   class=\"form-control form-control-sm\" type=\"text\"\n                                                   [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"tab-pane\" id=\"compra\">\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6\">\n                                        <div class=\"form-group\">\n                                            <label for=\"descrCompra\">{{'labels.descricao' | translate}}</label>\n                                            <textarea id=\"descrCompra\" name=\"descrCompra\" [(ngModel)]=\"data.descrCompra\"\n                                                      maxlength=\"50\" class=\"form-control form-control-sm\"\n                                                      [disabled]=\"funcoesService.isDetail(actionForm)\" rows=\"2\"\n                                                      autofocus></textarea>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"procedeCompra\" class=\"required\">{{\n                                                \"labels.procedencia\" | translate\n                                                }}</label>\n                                            <app-combo-padrao id=\"procedeCompra\" name=\"procedeCompra\"\n                                                              [(ngModel)]=\"data.procedeCompra\" tabela=\"Procedencia\"\n                                                              chave=\"Procedencia\"\n                                                              descricao=\"DescrProcedencia\" ativos=\"true\" required=\"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\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <app-pesquisa-destinatario id=\"destinatarioId\" name=\"destinatarioId\"\n                                                                       label=\"fornecedor\"\n                                                                       modalTitle=\"pesquisaDeFornecedor\"\n                                                                       [(ngModel)]=\"data.destinatarioId\"\n                                                                       tipoDestinatario=\"C\" showCgcCpf=\"false\"\n                                                                       showInscricao=\"false\" [inSelected]=\"cliente\"\n                                                                       [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                                       (outModel)=\"outputCliente($event)\">\n                                            </app-pesquisa-destinatario>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"precoCompra\">{{ \"labels.precoCompra\" | translate }}</label>\n                                            <input id=\"precoCompra\"\n                                                   name=\"precoCompra\" type=\"text\"\n                                                   [disabled]=\"funcoesService.isDetail(actionForm) || !hasAlterarPrecoCompra\"\n                                                   currencyMask\n                                                   [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 9 }\"\n                                                   [(ngModel)]=\"data.precoCompra\"\n                                                   maxlength=\"18\"\n                                                   class=\"form-control form-control-sm\"/>\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=\"moedaCompra\">{{\n                                                \"labels.moeda\" | translate\n                                                }}</label>\n                                            <app-combo-padrao id=\"moedaCompra\" name=\"moedaCompra\"\n                                                              [(ngModel)]=\"data.moedaCompra\" tabela=\"Moedas\"\n                                                              chave=\"CodMoeda\"\n                                                              descricao=\"DescrMoeda\" 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-6\">\n                                        <div class=\"custom-control custom-checkbox\">\n                                            <input id=\"flagPregao\" name=\"flagPregao\" [ngModel]=\"data.flagPregao === 'S'\"\n                                                   (ngModelChange)=\"data.flagPregao=$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=\"flagPregao\">{{'labels.pregaoEletronico' | translate}}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"clearfix\">&nbsp;</div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label\n                                                    for=\"vlCustoST\">{{ \"labels.valorCostoCalculoSt\" | translate }}</label>\n                                            <input id=\"vlCustoST\" name=\"vlCustoST\" type=\"text\"\n                                                   [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\n                                                   [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 9 }\"\n                                                   [(ngModel)]=\"data.vlCustoSt\" maxlength=\"18\"\n                                                   class=\"form-control form-control-sm\"/>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"embalagemCompra\">{{\n                                                \"labels.embalagem\" | translate\n                                                }}</label>\n                                            <app-combo-padrao id=\"embalagemCompra\" name=\"embalagemCompra\"\n                                                              [(ngModel)]=\"data.embalagemCompra\" tabela=\"Embalagem\"\n                                                              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-6 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"unidadeCompra\" class=\"required\">{{\n                                                \"labels.unidade\" | translate\n                                                }}</label>\n                                            <app-combo-padrao id=\"unidadeCompra\" name=\"unidadeCompra\"\n                                                              [(ngModel)]=\"data.unidadeCompra\" tabela=\"Unidade\"\n                                                              chave=\"Unidade\"\n                                                              descricao=\"DescrUnidade\" ativos=\"true\" required=\"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\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"fatorEstoque\">{{ \"labels.fatorEstoque\" | translate }}</label>\n                                            <input id=\"fatorEstoque\" name=\"fatorEstoque\" type=\"text\"\n                                                   [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\n                                                   [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 7 }\"\n                                                   [(ngModel)]=\"data.fatorEstoque\" maxlength=\"17\"\n                                                   class=\"form-control form-control-sm\"/>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label\n                                                    for=\"vlCustoCompra\">{{ \"labels.valorCustoCompra\" | translate }}</label>\n                                            <input id=\"vlCustoCompra\" name=\"vlCustoCompra\" type=\"text\"\n                                                   [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\n                                                   [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 5 }\"\n                                                   [(ngModel)]=\"data.vlCustoCompra\" maxlength=\"16\"\n                                                   class=\"form-control form-control-sm\"/>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"ptMargemVenda\">{{ \"labels.margemLucro\" | translate }}</label>\n                                            <input id=\"ptMargemVenda\" name=\"ptMargemVenda\" type=\"text\"\n                                                   [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\n                                                   [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 4 }\"\n                                                   [(ngModel)]=\"data.ptMargemVenda\" maxlength=\"7\"\n                                                   class=\"form-control form-control-sm\"/>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"precoVenda\">{{ \"labels.valorVenda\" | translate }}</label>\n                                            <input id=\"PrecoVenda\" name=\"PrecoVenda\" type=\"text\"\n                                                   [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\n                                                   [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 9 }\"\n                                                   [(ngModel)]=\"data.precoVenda\" maxlength=\"18\"\n                                                   class=\"form-control form-control-sm\"/>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"tab-pane\" id=\"estoque\">\n                                <app-aba-estoque *ngIf=\"showComponents\" [data]=\"data\"\n                                                 [isDetail]=\"funcoesService.isDetail(actionForm)\"\n                                                 (response)=\"updateShowButtom($event)\"></app-aba-estoque>\n                            </div>\n                            <div class=\"tab-pane\" id=\"estado\">\n                                <app-aba-impostos-estado *ngIf=\"showComponents\" [data]=\"data\"\n                                                         [isDetail]=\"funcoesService.isDetail(actionForm)\"\n                                                         (response)=\"updateShowButtom($event)\"></app-aba-impostos-estado>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-12\">\n                                <span *ngIf=\"data.sisCampoAdds\">\n                                    <div *ngFor=\"let d of data.sisCampoAdds\" [class.col-lg-6]=\"!d.colunas\">\n                                        <app-campos-adicionais name=\"{{d.campo}}\" [sisCampoAdd]=\"d\"\n                                                               [(ngModel)]=\"d.valorCampo\"\n                                                               [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                               [required]=\"d.obrigatorio === 'S'\">\n                                        </app-campos-adicionais>\n                                    </div>\n                                </span>\n                            </div>\n                        </div>\n                        <div class=\"row\" *ngIf=\"showButton\">\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' | 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<app-modal-select-origem [obj]=\"obj\" [isDetail]=\"funcoesService.isDetail(actionForm)\"\n                         (send)=\"selectedOperacao($event)\"></app-modal-select-origem>\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado-index/produtos-almoxarifado-index.component.html":
/*!*******************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado-index/produtos-almoxarifado-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\" [formAction]=\"actionForm\" [itemData]=\"data.materialId\"\n    [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <table id=\"dtProdutosAlmoxarifado\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\n</div>\n\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-produtos-almoxarifado-filter (filtrar)=\"executaFiltro()\"></app-produtos-almoxarifado-filter>\n<app-produtos-almoxarifado-duplicar [produtosAlmoxarifado]=\"dataDuplicar\" (dataResult)=\"executaDuplicarProduto()\"></app-produtos-almoxarifado-duplicar>\n");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnidadeService", function() { return UnidadeService; });
/* 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 _shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* 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");
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 UnidadeService = /** @class */ (function (_super) {
    __extends(UnidadeService, _super);
    function UnidadeService(http) {
        return _super.call(this, http, "cadastros/unidade") || this;
    }
    UnidadeService.prototype.getOpcoesValidas = function (unidades) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/cadastros/unidade/getOpcoesValidas", { "unidades": unidades })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    UnidadeService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    UnidadeService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], UnidadeService);
    return UnidadeService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__["BaseService"]));



/***/ }),

/***/ "./src/app/pages/controle/produtos-almoxarifado/aba-estoque/aba-estoque.component.scss":
/*!*********************************************************************************************!*\
  !*** ./src/app/pages/controle/produtos-almoxarifado/aba-estoque/aba-estoque.component.scss ***!
  \*********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".opacity {\n  opacity: 0.7;\n}\n\ni._white {\n  color: white;\n}\n\ntable tr.active {\n  background-color: #f5f5f5;\n}\n\ndiv.container-buttons {\n  margin-bottom: 5px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvY29udHJvbGUvcHJvZHV0b3MtYWxtb3hhcmlmYWRvL2FiYS1lc3RvcXVlL0M6XFxDb3Jwb3JhdGVcXENvcnBvcmF0ZVdlYkRlc2VudlxcX3VuaXNvbHV0aW9uL3NyY1xcYXBwXFxwYWdlc1xcY29udHJvbGVcXHByb2R1dG9zLWFsbW94YXJpZmFkb1xcYWJhLWVzdG9xdWVcXGFiYS1lc3RvcXVlLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9wYWdlcy9jb250cm9sZS9wcm9kdXRvcy1hbG1veGFyaWZhZG8vYWJhLWVzdG9xdWUvYWJhLWVzdG9xdWUuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxZQUFBO0FDQ0o7O0FERUE7RUFDSSxZQUFBO0FDQ0o7O0FERUE7RUFDSSx5QkFBQTtBQ0NKOztBREVBO0VBQ0ksa0JBQUE7QUNDSiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL2NvbnRyb2xlL3Byb2R1dG9zLWFsbW94YXJpZmFkby9hYmEtZXN0b3F1ZS9hYmEtZXN0b3F1ZS5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5vcGFjaXR5IHtcclxuICAgIG9wYWNpdHk6IDAuNztcclxufVxyXG5cclxuaS5fd2hpdGUge1xyXG4gICAgY29sb3I6IHdoaXRlO1xyXG59XHJcblxyXG50YWJsZSB0ci5hY3RpdmUge1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2Y1ZjVmNTtcclxufVxyXG5cclxuZGl2LmNvbnRhaW5lci1idXR0b25zIHtcclxuICAgIG1hcmdpbi1ib3R0b206IDVweDtcclxufVxyXG4iLCIub3BhY2l0eSB7XG4gIG9wYWNpdHk6IDAuNztcbn1cblxuaS5fd2hpdGUge1xuICBjb2xvcjogd2hpdGU7XG59XG5cbnRhYmxlIHRyLmFjdGl2ZSB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmNWY1ZjU7XG59XG5cbmRpdi5jb250YWluZXItYnV0dG9ucyB7XG4gIG1hcmdpbi1ib3R0b206IDVweDtcbn0iXX0= */");

/***/ }),

/***/ "./src/app/pages/controle/produtos-almoxarifado/aba-estoque/aba-estoque.component.ts":
/*!*******************************************************************************************!*\
  !*** ./src/app/pages/controle/produtos-almoxarifado/aba-estoque/aba-estoque.component.ts ***!
  \*******************************************************************************************/
/*! exports provided: AbaEstoqueComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AbaEstoqueComponent", function() { return AbaEstoqueComponent; });
/* harmony import */ var _produtos_almoxarifado_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../produtos-almoxarifado.model */ "./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado.model.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _cadastro_filial_filial_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../cadastro/filial/filial.service */ "./src/app/pages/cadastro/filial/filial.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 __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 AbaEstoqueComponent = /** @class */ (function () {
    function AbaEstoqueComponent(message, serviceFilial) {
        this.message = message;
        this.serviceFilial = serviceFilial;
        this.response = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.showTable = true;
        this.detail = false;
    }
    AbaEstoqueComponent.prototype.ngOnInit = function () {
    };
    AbaEstoqueComponent.prototype.back = function () {
        this.response.emit(true);
        this.showTable = true;
    };
    AbaEstoqueComponent.prototype.new = function () {
        if (this.isDetail) {
            return false;
        }
        this.detail = false;
        this.showTable = false;
        this.item = new _produtos_almoxarifado_model__WEBPACK_IMPORTED_MODULE_0__["NormasEstoque"]();
        this.response.emit(false);
    };
    AbaEstoqueComponent.prototype.selected = function (val, index) {
        this._index = index;
        this.item = val;
    };
    AbaEstoqueComponent.prototype.edit = function () {
        if (!this.item.materialId || this.isDetail) {
            return;
        }
        this.detail = false;
        this.showTable = false;
        this.response.emit(false);
    };
    AbaEstoqueComponent.prototype.show = function () {
        if (!this.item.materialId) {
            return;
        }
        this.detail = true;
        this.showTable = false;
        this.response.emit(false);
    };
    AbaEstoqueComponent.prototype.delete = function (item) {
        var _this = this;
        if (this.isDetail) {
            return false;
        }
        var count = 0;
        this.data.normasEstoque.forEach(function (val) {
            if (item.materialId && item.materialId === val.materialId && item.filial && item.filial === val.filial) {
                val.sitReg = 'E';
            }
            else if (!item.materialId && item.filial === val.filial) {
                _this.data.normasEstoque.splice(count, 1);
            }
            count++;
        });
        this.item = new _produtos_almoxarifado_model__WEBPACK_IMPORTED_MODULE_0__["NormasEstoque"]();
    };
    AbaEstoqueComponent.prototype.onSubmit = function (form) {
        return __awaiter(this, void 0, void 0, function () {
            var isset, filial, i, i;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (!!form.invalid) return [3 /*break*/, 2];
                        isset = false;
                        return [4 /*yield*/, this.getFilial(this.item.filial)];
                    case 1:
                        filial = _a.sent();
                        this.item.fantasiaNotMapped = filial.fantasia;
                        if (!this.item.materialId) {
                            for (i = 0; i < this.data.normasEstoque.length; i++) {
                                if (this.data.normasEstoque[i].filial === +this.item.filial) {
                                    isset = true;
                                    break;
                                }
                            }
                            if (isset) {
                                this.message.warning("titles.produtosAlmoxarifado", "messages.filialJaInformada");
                                return [2 /*return*/];
                            }
                            this.data.normasEstoque.push(this.item);
                        }
                        else if (this.item.materialId) {
                            for (i = 0; i < this.data.normasEstoque.length; i++) {
                                /**/
                            }
                        }
                        this.showTable = true;
                        this.item = new _produtos_almoxarifado_model__WEBPACK_IMPORTED_MODULE_0__["NormasEstoque"]();
                        this.response.emit(true);
                        _a.label = 2;
                    case 2: return [2 /*return*/];
                }
            });
        });
    };
    AbaEstoqueComponent.prototype.getFilial = function (id) {
        var _this = this;
        var promise = new Promise(function (resolve, reject) {
            _this.serviceFilial.getById(id).subscribe(function (resp) {
                resolve(resp);
            });
        });
        return promise;
    };
    AbaEstoqueComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _cadastro_filial_filial_service__WEBPACK_IMPORTED_MODULE_3__["FilialService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
        __metadata("design:type", _produtos_almoxarifado_model__WEBPACK_IMPORTED_MODULE_0__["ProdutosAlmoxarifado"])
    ], AbaEstoqueComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
        __metadata("design:type", Boolean)
    ], AbaEstoqueComponent.prototype, "isDetail", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
        __metadata("design:type", _produtos_almoxarifado_model__WEBPACK_IMPORTED_MODULE_0__["NormasEstoque"])
    ], AbaEstoqueComponent.prototype, "item", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(),
        __metadata("design:type", Object)
    ], AbaEstoqueComponent.prototype, "response", void 0);
    AbaEstoqueComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: 'app-aba-estoque',
            template: __importDefault(__webpack_require__(/*! raw-loader!./aba-estoque.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/produtos-almoxarifado/aba-estoque/aba-estoque.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./aba-estoque.component.scss */ "./src/app/pages/controle/produtos-almoxarifado/aba-estoque/aba-estoque.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            _cadastro_filial_filial_service__WEBPACK_IMPORTED_MODULE_3__["FilialService"]])
    ], AbaEstoqueComponent);
    return AbaEstoqueComponent;
}());



/***/ }),

/***/ "./src/app/pages/controle/produtos-almoxarifado/aba-impostos-estado/aba-impostos-estado.component.scss":
/*!*************************************************************************************************************!*\
  !*** ./src/app/pages/controle/produtos-almoxarifado/aba-impostos-estado/aba-impostos-estado.component.scss ***!
  \*************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".opacity {\n  opacity: 0.7;\n}\n\ni._white {\n  color: white;\n}\n\ntable tr.active {\n  background-color: #f5f5f5;\n}\n\ndiv.container-buttons {\n  margin-bottom: 5px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvY29udHJvbGUvcHJvZHV0b3MtYWxtb3hhcmlmYWRvL2FiYS1pbXBvc3Rvcy1lc3RhZG8vQzpcXENvcnBvcmF0ZVxcQ29ycG9yYXRlV2ViRGVzZW52XFxfdW5pc29sdXRpb24vc3JjXFxhcHBcXHBhZ2VzXFxjb250cm9sZVxccHJvZHV0b3MtYWxtb3hhcmlmYWRvXFxhYmEtaW1wb3N0b3MtZXN0YWRvXFxhYmEtaW1wb3N0b3MtZXN0YWRvLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9wYWdlcy9jb250cm9sZS9wcm9kdXRvcy1hbG1veGFyaWZhZG8vYWJhLWltcG9zdG9zLWVzdGFkby9hYmEtaW1wb3N0b3MtZXN0YWRvLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksWUFBQTtBQ0NKOztBREVBO0VBQ0ksWUFBQTtBQ0NKOztBREVBO0VBQ0kseUJBQUE7QUNDSjs7QURFQTtFQUNJLGtCQUFBO0FDQ0oiLCJmaWxlIjoic3JjL2FwcC9wYWdlcy9jb250cm9sZS9wcm9kdXRvcy1hbG1veGFyaWZhZG8vYWJhLWltcG9zdG9zLWVzdGFkby9hYmEtaW1wb3N0b3MtZXN0YWRvLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm9wYWNpdHkge1xyXG4gICAgb3BhY2l0eTogMC43O1xyXG59XHJcblxyXG5pLl93aGl0ZSB7XHJcbiAgICBjb2xvcjogd2hpdGU7XHJcbn1cclxuXHJcbnRhYmxlIHRyLmFjdGl2ZSB7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjVmNWY1O1xyXG59XHJcblxyXG5kaXYuY29udGFpbmVyLWJ1dHRvbnMge1xyXG4gICAgbWFyZ2luLWJvdHRvbTogNXB4O1xyXG59XHJcbiIsIi5vcGFjaXR5IHtcbiAgb3BhY2l0eTogMC43O1xufVxuXG5pLl93aGl0ZSB7XG4gIGNvbG9yOiB3aGl0ZTtcbn1cblxudGFibGUgdHIuYWN0aXZlIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2Y1ZjVmNTtcbn1cblxuZGl2LmNvbnRhaW5lci1idXR0b25zIHtcbiAgbWFyZ2luLWJvdHRvbTogNXB4O1xufSJdfQ== */");

/***/ }),

/***/ "./src/app/pages/controle/produtos-almoxarifado/aba-impostos-estado/aba-impostos-estado.component.ts":
/*!***********************************************************************************************************!*\
  !*** ./src/app/pages/controle/produtos-almoxarifado/aba-impostos-estado/aba-impostos-estado.component.ts ***!
  \***********************************************************************************************************/
/*! exports provided: AbaImpostosEstadoComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AbaImpostosEstadoComponent", function() { return AbaImpostosEstadoComponent; });
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _produtos_almoxarifado_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../produtos-almoxarifado.model */ "./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado.model.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _cadastro_estados_estados_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../cadastro/estados/estados.service */ "./src/app/pages/cadastro/estados/estados.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 __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 AbaImpostosEstadoComponent = /** @class */ (function () {
    function AbaImpostosEstadoComponent(message, serviceEstado) {
        this.message = message;
        this.serviceEstado = serviceEstado;
        this.response = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["EventEmitter"]();
        this.showTable = true;
        this.detail = false;
    }
    AbaImpostosEstadoComponent.prototype.ngOnInit = function () {
    };
    AbaImpostosEstadoComponent.prototype.back = function () {
        this.response.emit(true);
        this.showTable = true;
    };
    AbaImpostosEstadoComponent.prototype.new = function () {
        if (this.isDetail) {
            return false;
        }
        this.detail = false;
        this.showTable = false;
        this.item = new _produtos_almoxarifado_model__WEBPACK_IMPORTED_MODULE_1__["MaterialEstadoImp"]();
        this.response.emit(false);
    };
    AbaImpostosEstadoComponent.prototype.selected = function (val, index) {
        this._index = index;
        this.item = val;
    };
    AbaImpostosEstadoComponent.prototype.edit = function () {
        if (!this.item.materialId || this.isDetail) {
            return;
        }
        this.detail = false;
        this.showTable = false;
        this.response.emit(false);
    };
    AbaImpostosEstadoComponent.prototype.show = function () {
        if (!this.item.materialId) {
            return;
        }
        this.detail = true;
        this.showTable = false;
        this.response.emit(false);
    };
    AbaImpostosEstadoComponent.prototype.delete = function (item) {
        var _this = this;
        if (this.isDetail) {
            return false;
        }
        var count = 0;
        this.data.materialEstadoImp.forEach(function (val) {
            if (item.materialId && item.materialId === val.materialId && item.estado && item.estado === val.estado) {
                val.sitReg = 'E';
            }
            else if (!item.materialId && item.estado === val.estado) {
                _this.data.materialEstadoImp.splice(count, 1);
            }
            count++;
        });
        this.item = new _produtos_almoxarifado_model__WEBPACK_IMPORTED_MODULE_1__["MaterialEstadoImp"]();
    };
    AbaImpostosEstadoComponent.prototype.onSubmit = function (form) {
        return __awaiter(this, void 0, void 0, function () {
            var isset, estado, i, i;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (!!form.invalid) return [3 /*break*/, 3];
                        isset = false;
                        this.item.aliqFCPNotMapped = this.item.aliqFCP;
                        this.item.aliqIcmsNotMapped = this.item.aliqIcms;
                        if (!this.item.estado) return [3 /*break*/, 2];
                        estado = void 0;
                        return [4 /*yield*/, this.getEstado(this.item.estado)];
                    case 1:
                        estado = _a.sent();
                        this.item.estadoNotMapped = estado.descrEstado;
                        _a.label = 2;
                    case 2:
                        if (!this.item.materialId) {
                            for (i = 0; i < this.data.materialEstadoImp.length; i++) {
                                if (this.data.materialEstadoImp[i].estado === this.item.estado) {
                                    isset = true;
                                    break;
                                }
                            }
                            if (isset) {
                                this.message.warning("titles.produtosAlmoxarifado", "messages.estadoJaInformado");
                                return [2 /*return*/];
                            }
                            this.data.materialEstadoImp.push(this.item);
                        }
                        else if (this.item.materialId) {
                            for (i = 0; i < this.data.materialEstadoImp.length; i++) {
                                /**/
                            }
                        }
                        this.showTable = true;
                        this.item = new _produtos_almoxarifado_model__WEBPACK_IMPORTED_MODULE_1__["MaterialEstadoImp"]();
                        this.response.emit(true);
                        _a.label = 3;
                    case 3: return [2 /*return*/];
                }
            });
        });
    };
    AbaImpostosEstadoComponent.prototype.getEstado = function (id) {
        var _this = this;
        var promise = new Promise(function (resolve, reject) {
            _this.serviceEstado.getById(id).subscribe(function (resp) {
                resolve(resp);
            });
        });
        return promise;
    };
    AbaImpostosEstadoComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_0__["MessageService"] },
        { type: _cadastro_estados_estados_service__WEBPACK_IMPORTED_MODULE_3__["EstadosService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])(),
        __metadata("design:type", _produtos_almoxarifado_model__WEBPACK_IMPORTED_MODULE_1__["ProdutosAlmoxarifado"])
    ], AbaImpostosEstadoComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])(),
        __metadata("design:type", Boolean)
    ], AbaImpostosEstadoComponent.prototype, "isDetail", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])(),
        __metadata("design:type", _produtos_almoxarifado_model__WEBPACK_IMPORTED_MODULE_1__["MaterialEstadoImp"])
    ], AbaImpostosEstadoComponent.prototype, "item", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"])(),
        __metadata("design:type", Object)
    ], AbaImpostosEstadoComponent.prototype, "response", void 0);
    AbaImpostosEstadoComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"])({
            selector: 'app-aba-impostos-estado',
            template: __importDefault(__webpack_require__(/*! raw-loader!./aba-impostos-estado.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/produtos-almoxarifado/aba-impostos-estado/aba-impostos-estado.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./aba-impostos-estado.component.scss */ "./src/app/pages/controle/produtos-almoxarifado/aba-impostos-estado/aba-impostos-estado.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_0__["MessageService"],
            _cadastro_estados_estados_service__WEBPACK_IMPORTED_MODULE_3__["EstadosService"]])
    ], AbaImpostosEstadoComponent);
    return AbaImpostosEstadoComponent;
}());



/***/ }),

/***/ "./src/app/pages/controle/produtos-almoxarifado/aba-unidade-alternativa/aba-unidade-alternativa.component.scss":
/*!*********************************************************************************************************************!*\
  !*** ./src/app/pages/controle/produtos-almoxarifado/aba-unidade-alternativa/aba-unidade-alternativa.component.scss ***!
  \*********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".opacity {\n  opacity: 0.7;\n}\n\ni._white {\n  color: white;\n}\n\ntable tr.active {\n  background-color: #f5f5f5;\n}\n\ndiv.container-buttons {\n  margin-bottom: 5px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvY29udHJvbGUvcHJvZHV0b3MtYWxtb3hhcmlmYWRvL2FiYS11bmlkYWRlLWFsdGVybmF0aXZhL0M6XFxDb3Jwb3JhdGVcXENvcnBvcmF0ZVdlYkRlc2VudlxcX3VuaXNvbHV0aW9uL3NyY1xcYXBwXFxwYWdlc1xcY29udHJvbGVcXHByb2R1dG9zLWFsbW94YXJpZmFkb1xcYWJhLXVuaWRhZGUtYWx0ZXJuYXRpdmFcXGFiYS11bmlkYWRlLWFsdGVybmF0aXZhLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9wYWdlcy9jb250cm9sZS9wcm9kdXRvcy1hbG1veGFyaWZhZG8vYWJhLXVuaWRhZGUtYWx0ZXJuYXRpdmEvYWJhLXVuaWRhZGUtYWx0ZXJuYXRpdmEuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxZQUFBO0FDQ0o7O0FERUE7RUFDSSxZQUFBO0FDQ0o7O0FERUE7RUFDSSx5QkFBQTtBQ0NKOztBREVBO0VBQ0ksa0JBQUE7QUNDSiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL2NvbnRyb2xlL3Byb2R1dG9zLWFsbW94YXJpZmFkby9hYmEtdW5pZGFkZS1hbHRlcm5hdGl2YS9hYmEtdW5pZGFkZS1hbHRlcm5hdGl2YS5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5vcGFjaXR5IHtcclxuICAgIG9wYWNpdHk6IDAuNztcclxufVxyXG5cclxuaS5fd2hpdGUge1xyXG4gICAgY29sb3I6IHdoaXRlO1xyXG59XHJcblxyXG50YWJsZSB0ci5hY3RpdmUge1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2Y1ZjVmNTtcclxufVxyXG5cclxuZGl2LmNvbnRhaW5lci1idXR0b25zIHtcclxuICAgIG1hcmdpbi1ib3R0b206IDVweDtcclxufVxyXG4iLCIub3BhY2l0eSB7XG4gIG9wYWNpdHk6IDAuNztcbn1cblxuaS5fd2hpdGUge1xuICBjb2xvcjogd2hpdGU7XG59XG5cbnRhYmxlIHRyLmFjdGl2ZSB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmNWY1ZjU7XG59XG5cbmRpdi5jb250YWluZXItYnV0dG9ucyB7XG4gIG1hcmdpbi1ib3R0b206IDVweDtcbn0iXX0= */");

/***/ }),

/***/ "./src/app/pages/controle/produtos-almoxarifado/aba-unidade-alternativa/aba-unidade-alternativa.component.ts":
/*!*******************************************************************************************************************!*\
  !*** ./src/app/pages/controle/produtos-almoxarifado/aba-unidade-alternativa/aba-unidade-alternativa.component.ts ***!
  \*******************************************************************************************************************/
/*! exports provided: AbaUnidadeAlternativaComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AbaUnidadeAlternativaComponent", function() { return AbaUnidadeAlternativaComponent; });
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _produtos_almoxarifado_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../produtos-almoxarifado.model */ "./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado.model.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _cadastro_unidade_unidade_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../cadastro/unidade/unidade.service */ "./src/app/pages/cadastro/unidade/unidade.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 __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 AbaUnidadeAlternativaComponent = /** @class */ (function () {
    function AbaUnidadeAlternativaComponent(message, serviceUnidade) {
        this.message = message;
        this.serviceUnidade = serviceUnidade;
        this.response = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["EventEmitter"]();
        this.showTable = true;
        this.detail = false;
    }
    AbaUnidadeAlternativaComponent.prototype.ngOnInit = function () {
    };
    AbaUnidadeAlternativaComponent.prototype.back = function () {
        this.response.emit(true);
        this.showTable = true;
    };
    AbaUnidadeAlternativaComponent.prototype.new = function () {
        if (this.isDetail) {
            return false;
        }
        this.detail = false;
        this.showTable = false;
        this.item = new _produtos_almoxarifado_model__WEBPACK_IMPORTED_MODULE_1__["MaterialUnidade"]();
        this.response.emit(false);
    };
    AbaUnidadeAlternativaComponent.prototype.selected = function (val, index) {
        this._index = index;
        this.item = val;
    };
    AbaUnidadeAlternativaComponent.prototype.edit = function () {
        if (!this.item.materialId || this.isDetail) {
            return;
        }
        this.detail = false;
        this.showTable = false;
        this.response.emit(false);
    };
    AbaUnidadeAlternativaComponent.prototype.show = function () {
        if (!this.item.materialId) {
            return;
        }
        this.detail = true;
        this.showTable = false;
        this.response.emit(false);
    };
    AbaUnidadeAlternativaComponent.prototype.delete = function (item) {
        var _this = this;
        if (this.isDetail) {
            return false;
        }
        var count = 0;
        this.data.materialUnidade.forEach(function (val) {
            if (item.materialId && item.materialId === val.materialId && item.unidade && item.unidade === val.unidade) {
                val.sitReg = 'E';
            }
            else if (!item.materialId && item.unidade === val.unidade) {
                _this.data.materialUnidade.splice(count, 1);
            }
            count++;
        });
        this.item = new _produtos_almoxarifado_model__WEBPACK_IMPORTED_MODULE_1__["MaterialUnidade"]();
    };
    AbaUnidadeAlternativaComponent.prototype.onSubmit = function (form) {
        return __awaiter(this, void 0, void 0, function () {
            var isset, unidade, i, i;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (!!form.invalid) return [3 /*break*/, 3];
                        isset = false;
                        if (!this.item.unidade) return [3 /*break*/, 2];
                        unidade = void 0;
                        return [4 /*yield*/, this.getUnidade(this.item.unidade)];
                    case 1:
                        unidade = _a.sent();
                        this.item.unidadeNotMapped = unidade.descricao;
                        _a.label = 2;
                    case 2:
                        if (!this.item.materialId) {
                            for (i = 0; i < this.data.materialUnidade.length; i++) {
                                if (this.data.materialUnidade[i].unidade === this.item.unidade) {
                                    isset = true;
                                    break;
                                }
                            }
                            if (isset) {
                                this.message.warning("titles.produtosAlmoxarifado", "messages.unidadeJaInformada");
                                return [2 /*return*/];
                            }
                            this.data.materialUnidade.push(this.item);
                        }
                        else if (this.item.materialId) {
                            for (i = 0; i < this.data.materialUnidade.length; i++) {
                                /**/
                            }
                        }
                        this.showTable = true;
                        this.item = new _produtos_almoxarifado_model__WEBPACK_IMPORTED_MODULE_1__["MaterialUnidade"]();
                        this.response.emit(true);
                        _a.label = 3;
                    case 3: return [2 /*return*/];
                }
            });
        });
    };
    AbaUnidadeAlternativaComponent.prototype.getUnidade = function (id) {
        var _this = this;
        var promise = new Promise(function (resolve, reject) {
            _this.serviceUnidade.getById(id).subscribe(function (resp) {
                resolve(resp);
            });
        });
        return promise;
    };
    AbaUnidadeAlternativaComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_0__["MessageService"] },
        { type: _cadastro_unidade_unidade_service__WEBPACK_IMPORTED_MODULE_3__["UnidadeService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])(),
        __metadata("design:type", _produtos_almoxarifado_model__WEBPACK_IMPORTED_MODULE_1__["ProdutosAlmoxarifado"])
    ], AbaUnidadeAlternativaComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])(),
        __metadata("design:type", Boolean)
    ], AbaUnidadeAlternativaComponent.prototype, "isDetail", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])(),
        __metadata("design:type", _produtos_almoxarifado_model__WEBPACK_IMPORTED_MODULE_1__["MaterialUnidade"])
    ], AbaUnidadeAlternativaComponent.prototype, "item", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"])(),
        __metadata("design:type", Object)
    ], AbaUnidadeAlternativaComponent.prototype, "response", void 0);
    AbaUnidadeAlternativaComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"])({
            selector: 'app-aba-unidade-alternativa',
            template: __importDefault(__webpack_require__(/*! raw-loader!./aba-unidade-alternativa.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/produtos-almoxarifado/aba-unidade-alternativa/aba-unidade-alternativa.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./aba-unidade-alternativa.component.scss */ "./src/app/pages/controle/produtos-almoxarifado/aba-unidade-alternativa/aba-unidade-alternativa.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_0__["MessageService"],
            _cadastro_unidade_unidade_service__WEBPACK_IMPORTED_MODULE_3__["UnidadeService"]])
    ], AbaUnidadeAlternativaComponent);
    return AbaUnidadeAlternativaComponent;
}());



/***/ }),

/***/ "./src/app/pages/controle/produtos-almoxarifado/modal-select-origem/modal-select-origem.component.scss":
/*!*************************************************************************************************************!*\
  !*** ./src/app/pages/controle/produtos-almoxarifado/modal-select-origem/modal-select-origem.component.scss ***!
  \*************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL2NvbnRyb2xlL3Byb2R1dG9zLWFsbW94YXJpZmFkby9tb2RhbC1zZWxlY3Qtb3JpZ2VtL21vZGFsLXNlbGVjdC1vcmlnZW0uY29tcG9uZW50LnNjc3MifQ== */");

/***/ }),

/***/ "./src/app/pages/controle/produtos-almoxarifado/modal-select-origem/modal-select-origem.component.ts":
/*!***********************************************************************************************************!*\
  !*** ./src/app/pages/controle/produtos-almoxarifado/modal-select-origem/modal-select-origem.component.ts ***!
  \***********************************************************************************************************/
/*! exports provided: ModalSelectOrigemComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ModalSelectOrigemComponent", function() { return ModalSelectOrigemComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var ngx_treeview__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ngx-treeview */ "./node_modules/ngx-treeview/src/index.js");
/* harmony import */ var _cadastro_operacao_operacao_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../cadastro/operacao/operacao.service */ "./src/app/pages/cadastro/operacao/operacao.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 ModalSelectOrigemComponent = /** @class */ (function () {
    function ModalSelectOrigemComponent(serviceOperacao) {
        this.serviceOperacao = serviceOperacao;
        this.obj = { origem: "", title: "", selected: [] };
        this.send = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.rows = [];
    }
    ModalSelectOrigemComponent.prototype.ngOnInit = function () {
    };
    ModalSelectOrigemComponent.prototype.onSubmit = function (form) {
        if (!form.invalid) {
            this.send.emit(this.operacaoVal);
            jQuery("#modal-select-origem").modal("hide");
        }
    };
    ModalSelectOrigemComponent.prototype.onLoadTreeViewItemsOperacao = function () {
        var _this = this;
        var arrResult = [];
        this.serviceOperacao.get().subscribe(function (response) {
            response.forEach(function (item) {
                if (item.origem === _this.obj.origem && item.flagServ !== "S") {
                    var isset = false;
                    var menuAdd = void 0;
                    for (var i = 0; i < _this.obj.selected.length; i++) {
                        if (+_this.obj.selected[i] === item.operacaoId) {
                            isset = true;
                        }
                    }
                    menuAdd = new ngx_treeview__WEBPACK_IMPORTED_MODULE_1__["TreeviewItem"]({
                        checked: isset,
                        text: item.descrOperacao,
                        value: item.operacaoId,
                        disabled: false
                    });
                    arrResult.push(menuAdd);
                }
            });
            _this.items = arrResult;
        });
    };
    ModalSelectOrigemComponent.prototype.onSelectedChangeOperacao = function (downlineItems) {
        var _this = this;
        this.operacaoVal = '';
        downlineItems.forEach(function (item) {
            if (_this.operacaoVal === '') {
                _this.operacaoVal = item;
            }
            else {
                _this.operacaoVal = _this.operacaoVal + ',' + item;
            }
        });
    };
    ModalSelectOrigemComponent.ctorParameters = function () { return [
        { type: _cadastro_operacao_operacao_service__WEBPACK_IMPORTED_MODULE_2__["OperacaoService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], ModalSelectOrigemComponent.prototype, "obj", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], ModalSelectOrigemComponent.prototype, "isDetail", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], ModalSelectOrigemComponent.prototype, "send", void 0);
    ModalSelectOrigemComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-modal-select-origem',
            template: __importDefault(__webpack_require__(/*! raw-loader!./modal-select-origem.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/produtos-almoxarifado/modal-select-origem/modal-select-origem.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./modal-select-origem.component.scss */ "./src/app/pages/controle/produtos-almoxarifado/modal-select-origem/modal-select-origem.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_cadastro_operacao_operacao_service__WEBPACK_IMPORTED_MODULE_2__["OperacaoService"]])
    ], ModalSelectOrigemComponent);
    return ModalSelectOrigemComponent;
}());



/***/ }),

/***/ "./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado-duplicar/produtos-almoxarifado-duplicar.component.ts":
/*!*********************************************************************************************************************************!*\
  !*** ./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado-duplicar/produtos-almoxarifado-duplicar.component.ts ***!
  \*********************************************************************************************************************************/
/*! exports provided: ProdutosAlmoxarifadoDuplicarComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProdutosAlmoxarifadoDuplicarComponent", function() { return ProdutosAlmoxarifadoDuplicarComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../cadastro/material/material.service */ "./src/app/pages/cadastro/material/material.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 ProdutosAlmoxarifadoDuplicarComponent = /** @class */ (function () {
    function ProdutosAlmoxarifadoDuplicarComponent(messageService, serviceMaterial) {
        this.messageService = messageService;
        this.serviceMaterial = serviceMaterial;
        this.dataResult = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
    }
    ProdutosAlmoxarifadoDuplicarComponent.prototype.ngOnInit = function () {
    };
    ProdutosAlmoxarifadoDuplicarComponent.prototype.existeMaterialId = function () {
        var _this = this;
        if (this.produtosAlmoxarifado.materialIdNovo) {
            this.serviceMaterial.getById(this.produtosAlmoxarifado.materialIdNovo).subscribe(function (resp) {
                if (resp) {
                    _this.produtosAlmoxarifado.materialIdNovo = null;
                    _this.messageService.warning("titles.produtosAlmoxarifado", "materialJaCadastrado");
                    return;
                }
            });
        }
    };
    ProdutosAlmoxarifadoDuplicarComponent.prototype.onSubmit = function (form) {
        this.produtosAlmoxarifado.materialId = this.produtosAlmoxarifado.materialIdNovo;
        if (!form.invalid) {
            this.dataResult.emit(this.produtosAlmoxarifado);
        }
    };
    ProdutosAlmoxarifadoDuplicarComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_3__["MaterialService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], ProdutosAlmoxarifadoDuplicarComponent.prototype, "produtosAlmoxarifado", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], ProdutosAlmoxarifadoDuplicarComponent.prototype, "dataResult", void 0);
    ProdutosAlmoxarifadoDuplicarComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-produtos-almoxarifado-duplicar",
            template: __importDefault(__webpack_require__(/*! raw-loader!./produtos-almoxarifado-duplicar.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado-duplicar/produtos-almoxarifado-duplicar.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            _cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_3__["MaterialService"]])
    ], ProdutosAlmoxarifadoDuplicarComponent);
    return ProdutosAlmoxarifadoDuplicarComponent;
}());



/***/ }),

/***/ "./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado-filter/produtos-almoxarifado-filter.component.ts":
/*!*****************************************************************************************************************************!*\
  !*** ./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado-filter/produtos-almoxarifado-filter.component.ts ***!
  \*****************************************************************************************************************************/
/*! exports provided: ProdutosAlmoxarifadoFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProdutosAlmoxarifadoFilterComponent", function() { return ProdutosAlmoxarifadoFilterComponent; });
/* harmony import */ var _cadastro_tipo_de_material_tipo_de_material_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../../cadastro/tipo-de-material/tipo-de-material.service */ "./src/app/pages/cadastro/tipo-de-material/tipo-de-material.service.ts");
/* harmony import */ var _produtos_almoxarifado_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../produtos-almoxarifado.service */ "./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
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 ProdutosAlmoxarifadoFilterComponent = /** @class */ (function () {
    function ProdutosAlmoxarifadoFilterComponent(service, serviceTipoMaterial) {
        this.service = service;
        this.serviceTipoMaterial = serviceTipoMaterial;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["EventEmitter"]();
        this.tipoMaterial = [];
    }
    ProdutosAlmoxarifadoFilterComponent.prototype.ngOnInit = function () {
        this.getTipoMaterial();
    };
    ProdutosAlmoxarifadoFilterComponent.prototype.onSubmit = function (form) {
        if (!form.invalid) {
            this.filtrar.emit();
            jQuery("#produtos-almoxarifado-filter").modal("hide");
        }
    };
    ProdutosAlmoxarifadoFilterComponent.prototype.getTipoMaterial = function () {
        var _this = this;
        this.tipoMaterial = [];
        this.serviceTipoMaterial.get().subscribe(function (resp) {
            _this.tipoMaterial = resp.filter(function (type) {
                if (type.contaSintetica !== "S") {
                    return type;
                }
            });
        });
    };
    ProdutosAlmoxarifadoFilterComponent.ctorParameters = function () { return [
        { type: _produtos_almoxarifado_service__WEBPACK_IMPORTED_MODULE_1__["ProdutosAlmoxarifadoService"] },
        { type: _cadastro_tipo_de_material_tipo_de_material_service__WEBPACK_IMPORTED_MODULE_0__["TipoDeMaterialService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"])(),
        __metadata("design:type", Object)
    ], ProdutosAlmoxarifadoFilterComponent.prototype, "filtrar", void 0);
    ProdutosAlmoxarifadoFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"])({
            selector: 'app-produtos-almoxarifado-filter',
            template: __importDefault(__webpack_require__(/*! raw-loader!./produtos-almoxarifado-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado-filter/produtos-almoxarifado-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_produtos_almoxarifado_service__WEBPACK_IMPORTED_MODULE_1__["ProdutosAlmoxarifadoService"],
            _cadastro_tipo_de_material_tipo_de_material_service__WEBPACK_IMPORTED_MODULE_0__["TipoDeMaterialService"]])
    ], ProdutosAlmoxarifadoFilterComponent);
    return ProdutosAlmoxarifadoFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado-form/produtos-almoxarifado-form.component.scss":
/*!***************************************************************************************************************************!*\
  !*** ./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado-form/produtos-almoxarifado-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\ndiv#main-preview {\n  margin-top: 0%;\n  outline: 1px solid #edf1f7;\n  background-color: #f7f9fc;\n  min-height: 100px;\n  position: relative;\n  padding: 0px 0px 0px 0px;\n  height: 230px;\n  overflow: hidden;\n  display: flex;\n  justify-content: center;\n}\n\ndiv#main-preview:hover {\n  outline: 1px solid #ccc;\n}\n\ndiv#main-preview img.img-preview {\n  max-width: 100%;\n  height: 225px;\n}\n\na#btn-select-image {\n  line-height: 1.44;\n  border: 1px solid #ccc !important;\n  margin-bottom: 10px;\n  color: #8f9bb3;\n  color: #fff;\n  background-color: #4bae4f;\n  font-size: 0.875rem;\n  font-weight: 700;\n  font-family: \"Open Sans\", sans-serif;\n}\n\na#btn-select-image:hover {\n  background-color: #f7f9fc;\n  background-color: #54a257;\n}\n\ninput[type=file] {\n  display: none;\n  border: 1px solid red;\n}\n\ndiv.operacao {\n  position: relative;\n}\n\ndiv.operacao div.mask_operacao {\n  position: absolute;\n  height: 45px;\n  width: 100%;\n}\n/*# sourceMappingURL=data:application/json;base64,  */");

/***/ }),

/***/ "./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado-form/produtos-almoxarifado-form.component.ts":
/*!*************************************************************************************************************************!*\
  !*** ./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado-form/produtos-almoxarifado-form.component.ts ***!
  \*************************************************************************************************************************/
/*! exports provided: ProdutosAlmoxarifadoFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProdutosAlmoxarifadoFormComponent", function() { return ProdutosAlmoxarifadoFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _cadastro_estados_estados_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../cadastro/estados/estados.service */ "./src/app/pages/cadastro/estados/estados.service.ts");
/* harmony import */ var _cadastro_filial_filial_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../cadastro/filial/filial.service */ "./src/app/pages/cadastro/filial/filial.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 _cadastro_produtos_armazenados_produtos_armazenados_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../cadastro/produtos-armazenados/produtos-armazenados.service */ "./src/app/pages/cadastro/produtos-armazenados/produtos-armazenados.service.ts");
/* harmony import */ var _cadastro_unidade_unidade_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../cadastro/unidade/unidade.service */ "./src/app/pages/cadastro/unidade/unidade.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _modal_select_origem_modal_select_origem_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../modal-select-origem/modal-select-origem.component */ "./src/app/pages/controle/produtos-almoxarifado/modal-select-origem/modal-select-origem.component.ts");
/* harmony import */ var _produtos_almoxarifado_model__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../produtos-almoxarifado.model */ "./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado.model.ts");
/* harmony import */ var _cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./../../../cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./../../../cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var _cadastro_operacao_operacao_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./../../../cadastro/operacao/operacao.service */ "./src/app/pages/cadastro/operacao/operacao.service.ts");
/* harmony import */ var _cadastro_tipo_de_material_tipo_de_material_service__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./../../../cadastro/tipo-de-material/tipo-de-material.service */ "./src/app/pages/cadastro/tipo-de-material/tipo-de-material.service.ts");
/* harmony import */ var _produtos_almoxarifado_constants__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./../produtos-almoxarifado.constants */ "./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado.constants.ts");
/* harmony import */ var _produtos_almoxarifado_service__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./../produtos-almoxarifado.service */ "./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado.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 ProdutosAlmoxarifadoFormComponent = /** @class */ (function (_super) {
    __extends(ProdutosAlmoxarifadoFormComponent, _super);
    function ProdutosAlmoxarifadoFormComponent(router, loginService, messageService, activatedRoute, service, produtosArmazenadosservice, configuracao, funcoesService, permissoesUtils, serviceTipoMaterial, serviceOperacao, serviceDestinatario, serviceFilial, serviceEstado, serviceUnidade, serviceMaterial) {
        var _this = _super.call(this, new _produtos_almoxarifado_constants__WEBPACK_IMPORTED_MODULE_20__["ProdutosAlmoxarifadoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.loginService = loginService;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.produtosArmazenadosservice = produtosArmazenadosservice;
        _this.configuracao = configuracao;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.serviceTipoMaterial = serviceTipoMaterial;
        _this.serviceOperacao = serviceOperacao;
        _this.serviceDestinatario = serviceDestinatario;
        _this.serviceFilial = serviceFilial;
        _this.serviceEstado = serviceEstado;
        _this.serviceUnidade = serviceUnidade;
        _this.serviceMaterial = serviceMaterial;
        _this.data = new _produtos_almoxarifado_model__WEBPACK_IMPORTED_MODULE_15__["ProdutosAlmoxarifado"]();
        _this.mensagens = [];
        _this.constantes = new _produtos_almoxarifado_constants__WEBPACK_IMPORTED_MODULE_20__["ProdutosAlmoxarifadoConstants"]();
        _this.showButton = true;
        _this.showComponents = false;
        _this.tipoMaterial = [];
        _this.cliente = new _cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_16__["Destinatario"]();
        _this.obj = { origem: "", title: "", selected: [] };
        _this.config = new _produtos_almoxarifado_model__WEBPACK_IMPORTED_MODULE_15__["Configuracao"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.config.numAuto = _this.configuracao.lerConfig("MAT", "NumAuto");
            }
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    ProdutosAlmoxarifadoFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.hasAlterarPrecoCompra = false;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () { return __awaiter(_this, void 0, void 0, function () {
            var id, r, result, _a;
            var _this = this;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        this.cliente = new _cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_16__["Destinatario"]();
                        id = this.activatedRoute.snapshot.paramMap.get("id");
                        this.configuracao.getConfig(this.constantes.configs, this.loadConfig);
                        this.getTipoMaterial();
                        if (id) {
                            this.service.getById(id).subscribe(function (resp) { return __awaiter(_this, void 0, void 0, function () {
                                var i, filial, i, estado, i, unidade;
                                var _this = this;
                                return __generator(this, function (_a) {
                                    switch (_a.label) {
                                        case 0:
                                            this.data = resp;
                                            if (this.data.destinatarioId) {
                                                this.serviceDestinatario.getById(this.data.destinatarioId).subscribe(function (_resp) {
                                                    _this.cliente = _resp;
                                                });
                                            }
                                            if (!this.data.materiaisComplemento) {
                                                this.data.materiaisComplemento = new _produtos_almoxarifado_model__WEBPACK_IMPORTED_MODULE_15__["MateriaisComplemento"]();
                                            }
                                            if (this.data.materiaisComplemento.foto) {
                                                this.imgURL = "data:image/jpg;base64," + this.data.materiaisComplemento.foto;
                                            }
                                            if (!this.data.normasEstoque) {
                                                this.data.normasEstoque = [];
                                            }
                                            if (!this.data.materialEstadoImp) {
                                                this.data.materialEstadoImp = [];
                                            }
                                            if (!this.data.materialUnidade) {
                                                this.data.materialUnidade = [];
                                            }
                                            i = 0;
                                            _a.label = 1;
                                        case 1:
                                            if (!(i < this.data.normasEstoque.length)) return [3 /*break*/, 4];
                                            filial = void 0;
                                            if (!this.data.normasEstoque[i].filial) return [3 /*break*/, 3];
                                            return [4 /*yield*/, this.getFilial(this.data.normasEstoque[i].filial)];
                                        case 2:
                                            filial = _a.sent();
                                            if (filial && filial.fantasia) {
                                                this.data.normasEstoque[i].fantasiaNotMapped = filial.fantasia;
                                            }
                                            _a.label = 3;
                                        case 3:
                                            i++;
                                            return [3 /*break*/, 1];
                                        case 4:
                                            i = 0;
                                            _a.label = 5;
                                        case 5:
                                            if (!(i < this.data.materialEstadoImp.length)) return [3 /*break*/, 8];
                                            estado = void 0;
                                            if (!this.data.materialEstadoImp[i].estado) return [3 /*break*/, 7];
                                            return [4 /*yield*/, this.getEstado(this.data.materialEstadoImp[i].estado)];
                                        case 6:
                                            estado = _a.sent();
                                            if (estado) {
                                                this.data.materialEstadoImp[i].estadoNotMapped = estado.descrEstado;
                                            }
                                            _a.label = 7;
                                        case 7:
                                            i++;
                                            return [3 /*break*/, 5];
                                        case 8:
                                            i = 0;
                                            _a.label = 9;
                                        case 9:
                                            if (!(i < this.data.materialUnidade.length)) return [3 /*break*/, 12];
                                            unidade = void 0;
                                            if (!this.data.materialUnidade[i].unidade) return [3 /*break*/, 11];
                                            return [4 /*yield*/, this.getUnidade(this.data.materialUnidade[i].unidade)];
                                        case 10:
                                            unidade = _a.sent();
                                            if (unidade) {
                                                this.data.materialUnidade[i].unidadeNotMapped = unidade.descricao;
                                            }
                                            _a.label = 11;
                                        case 11:
                                            i++;
                                            return [3 /*break*/, 9];
                                        case 12:
                                            this.showComponents = true;
                                            return [2 /*return*/];
                                    }
                                });
                            }); });
                        }
                        else {
                            this.showComponents = true;
                            this.getCamposAdicionais();
                        }
                        if (!this.funcoesService.isCreate(this.actionForm)) return [3 /*break*/, 3];
                        r = { "isValid": true, "message": "" };
                        result = void 0;
                        this.data.tipoProduto = "A";
                        if (!(this.config.numAuto === "S")) return [3 /*break*/, 3];
                        return [4 /*yield*/, this.obtemMaterialId(this.data)];
                    case 1:
                        result = _b.sent();
                        _a = this.data;
                        return [4 /*yield*/, result.materialId];
                    case 2:
                        _a.materialId = _b.sent();
                        r.isValid = this.funcoesService.isNotUndefinedOrNull(result.validationResult) ? result.validationResult.isValid : true;
                        r.message = this.funcoesService.isNotUndefinedOrNull(result.validationResult) ? this.messageService.validationResult(result.validationResult)[0] : "";
                        if ((!r.isValid) && (this.funcoesService.isNotUndefinedOrNull(r.isValid))) {
                            this.messageService.warning("titles.produtosAlmoxarifado", r.message);
                        }
                        _b.label = 3;
                    case 3: return [2 /*return*/];
                }
            });
        }); }, function () {
            _this.permissoesUtils.back();
        });
        this.permissoesUtils.validRotina(this.constantes.sisFormularioId, 8, function () {
            _this.hasAlterarPrecoCompra = true;
        }, function () {
            _this.hasAlterarPrecoCompra = false;
        });
    };
    ProdutosAlmoxarifadoFormComponent.prototype.obtemMaterialId = function (data) {
        var request = this.produtosArmazenadosservice;
        var promise = new Promise(function (resolve, reject) {
            request.getGeraMaterialId(data).subscribe(function (resp) {
                resolve(resp);
            });
        });
        return promise;
    };
    ProdutosAlmoxarifadoFormComponent.prototype.back = function () {
        this.router.navigate([this.target + "/controle/produtosAlmoxarifado"]);
    };
    ProdutosAlmoxarifadoFormComponent.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_6__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.data.logRotina = "Produtos Almoxarifado";
        this.service
            .save(this.data, this.funcoesService.isEdit(this.actionForm))
            .subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result.validationResult);
            if (result.validationResult != null && !result.validationResult.isValid) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                if (create) {
                    _this.messageService.saveSuccess("titles.produtosAlmoxarifado");
                    _this.data = new _produtos_almoxarifado_model__WEBPACK_IMPORTED_MODULE_15__["ProdutosAlmoxarifado"]();
                    _this.router.navigate([_this.target + "/controle/produtosAlmoxarifado"]);
                }
                else {
                    _this.messageService.saveSuccess("titles.produtosAlmoxarifado");
                    _this.back();
                }
            }
        });
    };
    ProdutosAlmoxarifadoFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    ProdutosAlmoxarifadoFormComponent.prototype.edit = function () {
        this.router.navigate([this.target + "/controle/produtosAlmoxarifado/edit/" + this.data.materialId]);
    };
    ProdutosAlmoxarifadoFormComponent.prototype.getCamposAdicionais = function () {
        var _this = this;
        this.funcoesService.camposAdicionais
            .get(this.constantes.sisFormularioId)
            .subscribe(function (data) {
            _this.data.sisCampoAdds = data;
        });
    };
    ProdutosAlmoxarifadoFormComponent.prototype.updateShowButtom = function (event) {
        this.showButton = event;
    };
    ProdutosAlmoxarifadoFormComponent.prototype.getTipoMaterial = function () {
        var _this = this;
        this.tipoMaterial = [];
        this.serviceTipoMaterial.get().subscribe(function (resp) {
            _this.tipoMaterial = resp.filter(function (type) {
                if (type.contaSintetica !== "S") {
                    return type;
                }
            });
        });
    };
    ProdutosAlmoxarifadoFormComponent.prototype.selectImage = function () {
        jQuery('input[type="file"]').trigger('click');
    };
    ProdutosAlmoxarifadoFormComponent.prototype.preview = function (event) {
        var _this = this;
        if (event.target.files && event.target.files[0]) {
            var file = event.target.files[0];
            if (file.type.match(/image\/*/) == null) {
                this.messageService.warning("titles.produtosAlmoxarifado", "arquivoInvalido");
                return;
            }
            var reader_1 = new FileReader();
            reader_1.onload = function (e) {
                _this.imgURL = reader_1.result;
                _this.data.materiaisComplemento.foto = _this.imgURL.replace(/^data:image\/[a-z]+;base64,/, "");
            };
            reader_1.readAsDataURL(file);
        }
    };
    ProdutosAlmoxarifadoFormComponent.prototype.outputCliente = function (cliente) {
        if (cliente && !cliente.destinatarioId) {
            return;
        }
        this.cliente = cliente;
    };
    ProdutosAlmoxarifadoFormComponent.prototype.getFilial = function (id) {
        var _this = this;
        var promise = new Promise(function (resolve, reject) {
            _this.serviceFilial.getById(id).subscribe(function (resp) {
                resolve(resp);
            });
        });
        return promise;
    };
    ProdutosAlmoxarifadoFormComponent.prototype.getEstado = function (id) {
        var _this = this;
        var promise = new Promise(function (resolve, reject) {
            _this.serviceEstado.getById(id).subscribe(function (resp) {
                resolve(resp);
            });
        });
        return promise;
    };
    ProdutosAlmoxarifadoFormComponent.prototype.getUnidade = function (id) {
        var _this = this;
        var promise = new Promise(function (resolve, reject) {
            _this.serviceUnidade.getById(id).subscribe(function (resp) {
                resolve(resp);
            });
        });
        return promise;
    };
    ProdutosAlmoxarifadoFormComponent.prototype.openModalSelectOperation = function (origem) {
        this.obj.origem = origem;
        if (origem === "E") {
            this.obj.title = "labels.operacaoEntrada";
            this.obj.selected = [];
            if (this.data.operacaoValE) {
                this.obj.selected = this.data.operacaoValE.split(",");
            }
        }
        else {
            this.obj.title = "labels.operacaoSaida";
            this.obj.selected = [];
            if (this.data.operacaoValS) {
                this.obj.selected = this.data.operacaoValS.split(",");
            }
        }
        this.modal.onLoadTreeViewItemsOperacao();
        jQuery("#modal-select-origem").modal("show");
    };
    ProdutosAlmoxarifadoFormComponent.prototype.selectedOperacao = function (event) {
        if (this.obj.origem === "E") {
            this.data.operacaoValE = event;
        }
        else {
            this.data.operacaoValS = event;
        }
    };
    ProdutosAlmoxarifadoFormComponent.prototype.existeMaterialId = function () {
        var _this = this;
        this.configuracao.getConfig(this.constantes.configs, this.loadConfig);
        if (this.config.numAuto === "S" && this.actionForm === 1) {
            if (this.data.materialId) {
                this.serviceMaterial.getById(this.data.materialId).subscribe(function (resp) {
                    if (resp) {
                        _this.data.materialId = null;
                        _this.messageService.warning("titles.produtosAlmoxarifado", "materialJaCadastrado");
                        return;
                    }
                });
            }
        }
    };
    ProdutosAlmoxarifadoFormComponent.prototype.copiarUnidade = function () {
        if (this.funcoesService.isCreate(this.actionForm)) {
            this.data.unidadeCompra = this.data.unidade;
        }
    };
    ProdutosAlmoxarifadoFormComponent.prototype.copiarProcedencia = function () {
        if (this.funcoesService.isCreate(this.actionForm)) {
            this.data.procedeCompra = this.data.procedenciaId;
        }
    };
    ProdutosAlmoxarifadoFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_13__["LoginService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _produtos_almoxarifado_service__WEBPACK_IMPORTED_MODULE_21__["ProdutosAlmoxarifadoService"] },
        { type: _cadastro_produtos_armazenados_produtos_armazenados_service__WEBPACK_IMPORTED_MODULE_11__["ProdutosArmazenadosService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_7__["ConfiguracaoFacade"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_4__["PermissoesUtilsService"] },
        { type: _cadastro_tipo_de_material_tipo_de_material_service__WEBPACK_IMPORTED_MODULE_19__["TipoDeMaterialService"] },
        { type: _cadastro_operacao_operacao_service__WEBPACK_IMPORTED_MODULE_18__["OperacaoService"] },
        { type: _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_17__["DestinatarioService"] },
        { type: _cadastro_filial_filial_service__WEBPACK_IMPORTED_MODULE_9__["FilialService"] },
        { type: _cadastro_estados_estados_service__WEBPACK_IMPORTED_MODULE_8__["EstadosService"] },
        { type: _cadastro_unidade_unidade_service__WEBPACK_IMPORTED_MODULE_12__["UnidadeService"] },
        { type: _cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_10__["MaterialService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_modal_select_origem_modal_select_origem_component__WEBPACK_IMPORTED_MODULE_14__["ModalSelectOrigemComponent"], { static: true }),
        __metadata("design:type", _modal_select_origem_modal_select_origem_component__WEBPACK_IMPORTED_MODULE_14__["ModalSelectOrigemComponent"])
    ], ProdutosAlmoxarifadoFormComponent.prototype, "modal", void 0);
    ProdutosAlmoxarifadoFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-produtos-almoxarifado-form',
            template: __importDefault(__webpack_require__(/*! raw-loader!./produtos-almoxarifado-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado-form/produtos-almoxarifado-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./produtos-almoxarifado-form.component.scss */ "./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado-form/produtos-almoxarifado-form.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_13__["LoginService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _produtos_almoxarifado_service__WEBPACK_IMPORTED_MODULE_21__["ProdutosAlmoxarifadoService"],
            _cadastro_produtos_armazenados_produtos_armazenados_service__WEBPACK_IMPORTED_MODULE_11__["ProdutosArmazenadosService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_7__["ConfiguracaoFacade"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_4__["PermissoesUtilsService"],
            _cadastro_tipo_de_material_tipo_de_material_service__WEBPACK_IMPORTED_MODULE_19__["TipoDeMaterialService"],
            _cadastro_operacao_operacao_service__WEBPACK_IMPORTED_MODULE_18__["OperacaoService"],
            _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_17__["DestinatarioService"],
            _cadastro_filial_filial_service__WEBPACK_IMPORTED_MODULE_9__["FilialService"],
            _cadastro_estados_estados_service__WEBPACK_IMPORTED_MODULE_8__["EstadosService"],
            _cadastro_unidade_unidade_service__WEBPACK_IMPORTED_MODULE_12__["UnidadeService"],
            _cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_10__["MaterialService"]])
    ], ProdutosAlmoxarifadoFormComponent);
    return ProdutosAlmoxarifadoFormComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado-index/produtos-almoxarifado-index.component.ts":
/*!***************************************************************************************************************************!*\
  !*** ./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado-index/produtos-almoxarifado-index.component.ts ***!
  \***************************************************************************************************************************/
/*! exports provided: ProdutosAlmoxarifadoIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProdutosAlmoxarifadoIndexComponent", function() { return ProdutosAlmoxarifadoIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _produtos_almoxarifado_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./../produtos-almoxarifado.constants */ "./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado.constants.ts");
/* harmony import */ var _produtos_almoxarifado_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./../produtos-almoxarifado.model */ "./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado.model.ts");
/* harmony import */ var _produtos_almoxarifado_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./../produtos-almoxarifado.service */ "./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado.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 ProdutosAlmoxarifadoIndexComponent = /** @class */ (function (_super) {
    __extends(ProdutosAlmoxarifadoIndexComponent, _super);
    function ProdutosAlmoxarifadoIndexComponent(router, service, configuracao, datatablesService, messageService, funcoesService, permissoesUtils) {
        var _this = _super.call(this, new _produtos_almoxarifado_constants__WEBPACK_IMPORTED_MODULE_8__["ProdutosAlmoxarifadoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.service = service;
        _this.configuracao = configuracao;
        _this.datatablesService = datatablesService;
        _this.messageService = messageService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _produtos_almoxarifado_model__WEBPACK_IMPORTED_MODULE_9__["ProdutosAlmoxarifado"]();
        _this.dados = [];
        _this.constantes = new _produtos_almoxarifado_constants__WEBPACK_IMPORTED_MODULE_8__["ProdutosAlmoxarifadoConstants"]();
        _this.mensagens = [];
        _this.dataDuplicar = new _produtos_almoxarifado_model__WEBPACK_IMPORTED_MODULE_9__["ProdutosAlmoxarifado"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.loadConfig = function () { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                if (this.configuracao.isLoadConfig()) {
                    this.setMaterialId = this.configuracao.lerConfig("MAT", "NumAuto");
                }
                return [2 /*return*/];
            });
        }); };
        _this.duplMaterial = 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.configuracao.getConfig(this.constantes.configs, this.loadConfig)];
                    case 1:
                        _a.sent();
                        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 9, function () { return __awaiter(_this, void 0, void 0, function () {
                            var ret;
                            return __generator(this, function (_a) {
                                switch (_a.label) {
                                    case 0: return [4 /*yield*/, this.executarDuplicarProduto()];
                                    case 1:
                                        ret = _a.sent();
                                        return [2 /*return*/];
                                }
                            });
                        }); });
                        return [2 /*return*/];
                }
            });
        }); };
        _this.executarDuplicarProduto = function () { return __awaiter(_this, void 0, void 0, function () {
            var ret;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.buscaCopia(this.data.materialId)];
                    case 1:
                        ret = _a.sent();
                        this.mensagens = this.messageService.validationResult(ret.validationResult);
                        if (this.funcoesService.isNotUndefinedOrNull(ret.validationResult) && !ret.validationResult.isValid) {
                            this.messageService.warning("titles.produtosAlmoxarifado", this.mensagens[0]);
                            return [2 /*return*/];
                        }
                        else {
                            if (this.funcoesService.isNotUndefinedOrNull(ret)) {
                                this.dataDuplicar = ret;
                                this.dataDuplicar.setMaterialId = this.setMaterialId;
                                this.dataDuplicar.descrMater = "";
                                jQuery("#produtos-almoxarifado-duplicar-dialog").modal('show');
                            }
                            else {
                                this.messageService.warning("titles.produtosAlmoxarifado", "messages.nenhumRegistroFoiEncontrado");
                            }
                        }
                        return [2 /*return*/];
                }
            });
        }); };
        _this.executaDuplicarProduto = function () { return __awaiter(_this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                jQuery("#produtos-almoxarifado-duplicar-dialog").modal("hide");
                this.service
                    .save(this.dataDuplicar, this.funcoesService.isEdit(this.actionForm))
                    .subscribe(function (result) {
                    _this.mensagens = _this.messageService.validationResult(result.validationResult);
                    if (result.validationResult != null && !result.validationResult.isValid) {
                        _this.messageService.warning("titles.produtosAlmoxarifado", _this.mensagens[0]);
                        return;
                    }
                    else {
                        _this.messageService.saveSuccess("titles.produtosAlmoxarifado");
                        _this.data = new _produtos_almoxarifado_model__WEBPACK_IMPORTED_MODULE_9__["ProdutosAlmoxarifado"]();
                        _this.router.navigate([_this.target + "/controle/produtosAlmoxarifado/detail/" + result.materialId]);
                    }
                });
                return [2 /*return*/];
            });
        }); };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    ProdutosAlmoxarifadoIndexComponent.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);
        _super.prototype.addFuncoes.call(this, [
            { action: 'duplMaterial', func: function () { return _this.duplMaterial; } }
        ]);
    };
    ProdutosAlmoxarifadoIndexComponent.prototype.create = function () {
        this.router.navigate([this.target + "/controle/produtosAlmoxarifado/create/" + this.setMaterialId]);
    };
    ProdutosAlmoxarifadoIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getByFiltro(this.service.filter).subscribe(function (resp) {
            var columns = [
                _this.datatablesService.getDataString("materialId", "material"),
                _this.datatablesService.getDataString("descrMater", "descricao"),
                _this.datatablesService.getDataString("referencia", "referencia"),
                _this.datatablesService.getDataString("codBarras", "codBarras"),
                _this.datatablesService.getDataString("descrCompra", "descricaoCompra"),
            ];
            _this.datatablesService.datatable("dtProdutosAlmoxarifado", columns, resp, function (aData) {
                _this.data = aData;
            });
        });
    };
    ProdutosAlmoxarifadoIndexComponent.prototype.edit = function () {
        if (!!(this.data.materialId)) {
            this.router.navigate([this.target + "/controle/produtosAlmoxarifado/edit/" + this.data.materialId]);
        }
    };
    ProdutosAlmoxarifadoIndexComponent.prototype.detail = function () {
        if (!!(this.data.materialId)) {
            this.router.navigate([this.target + "/controle/produtosAlmoxarifado/detail/" + this.data.materialId]);
        }
    };
    ProdutosAlmoxarifadoIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    ProdutosAlmoxarifadoIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    ProdutosAlmoxarifadoIndexComponent.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-almoxarifado-filter").modal("show");
                        return [2 /*return*/];
                }
            });
        });
    };
    ProdutosAlmoxarifadoIndexComponent.prototype.executaFiltro = function () {
        this.refresh();
    };
    ProdutosAlmoxarifadoIndexComponent.prototype.remove = function () {
        var _this = this;
        if (!!(this.data.materialId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                _this.messageService.removeConfirm(function () {
                    _this.service.getById(_this.data.materialId).subscribe(function (resp) {
                        _this.data = resp;
                        if (!_this.data.materiaisComplemento) {
                            _this.data.materiaisComplemento = new _produtos_almoxarifado_model__WEBPACK_IMPORTED_MODULE_9__["MateriaisComplemento"]();
                            _this.data.materiaisComplemento.materialId = _this.data.materialId;
                            _this.data.materiaisComplemento.sitReg = "E";
                        }
                        _this.data.materiaisComplemento.sitReg = "E";
                        if (_this.data.materialUnidade) {
                            _this.data.materialUnidade.forEach(function (item) {
                                item.sitReg = "E";
                            });
                        }
                        if (_this.data.materialEstadoImp) {
                            _this.data.materialEstadoImp.forEach(function (item) {
                                item.sitReg = "E";
                            });
                        }
                        _this.service.remove(_this.data).subscribe(function (result) {
                            _this.mensagens = _this.messageService.validationResult(result.validationResult);
                            if (!result.validationResult.isValid) {
                                _this.messageService.warning("titles.produtosAlmoxarifado", _this.mensagens[0]);
                            }
                            else {
                                _this.datatablesService.remove("dtProdutosAlmoxarifado");
                            }
                        });
                    });
                });
            });
        }
    };
    ProdutosAlmoxarifadoIndexComponent.prototype.print = function () {
        this.constantes.paramRelatorio = {
            materialIdDe: this.funcoesService.isNotUndefinedOrNull(this.service.filter.materialIdDe) ? this.service.filter.materialIdDe : "",
            materialIdAte: this.funcoesService.isNotUndefinedOrNull(this.service.filter.materialIdAte) ? this.service.filter.materialIdAte : "",
            descrMaterDe: this.funcoesService.isNotUndefinedOrNull(this.service.filter.descrMaterDe) ? this.service.filter.descrMaterDe : "",
            descrmaterAte: this.funcoesService.isNotUndefinedOrNull(this.service.filter.descrmaterAte) ? this.service.filter.descrmaterAte : "",
            tipoMaterial: this.funcoesService.isNotUndefinedOrNull(this.service.filter.tipoMaterial) ? this.service.filter.tipoMaterial : 0,
        };
        _super.prototype.print.call(this);
    };
    ProdutosAlmoxarifadoIndexComponent.prototype.buscaCopia = function (data) {
        var request = this.service;
        var promise = new Promise(function (resolve, reject) {
            request.getById(data).subscribe(function (resp) {
                resolve(resp);
                reject(resp);
            });
        });
        return promise;
    };
    ProdutosAlmoxarifadoIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _produtos_almoxarifado_service__WEBPACK_IMPORTED_MODULE_10__["ProdutosAlmoxarifadoService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_7__["ConfiguracaoFacade"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"] }
    ]; };
    ProdutosAlmoxarifadoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-produtos-almoxarifado-index',
            template: __importDefault(__webpack_require__(/*! raw-loader!./produtos-almoxarifado-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado-index/produtos-almoxarifado-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _produtos_almoxarifado_service__WEBPACK_IMPORTED_MODULE_10__["ProdutosAlmoxarifadoService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_7__["ConfiguracaoFacade"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"]])
    ], ProdutosAlmoxarifadoIndexComponent);
    return ProdutosAlmoxarifadoIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado.constants.ts":
/*!*****************************************************************************************!*\
  !*** ./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado.constants.ts ***!
  \*****************************************************************************************/
/*! exports provided: ProdutosAlmoxarifadoConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProdutosAlmoxarifadoConstants", function() { return ProdutosAlmoxarifadoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ProdutosAlmoxarifadoConstants = /** @class */ (function () {
    function ProdutosAlmoxarifadoConstants() {
        this.sisFormularioId = 45023;
        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.alterarPrecoCompra" },
            { sisFormularioId: this.sisFormularioId, libRotina: 9, acao: "labels.duplMaterial" }
        ];
        this.configs = [];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.produtosAlmoxarifado";
        this.reportTitulo = { "titulo": "Produtos Almoxarifado", "subTitulo": "" };
        this.reportId = "CTR0004";
        this.tabela = "";
        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: 'DuplMaterial', action: 'duplMaterial', icon: "icon-files", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
        this.listaForm = [
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.configs = [
            { sistema: "CTR", parametros: ["DtSeguro", "ObrDtMovMenorDtAtual", "DocAmostraLB", "CodCadastroMat"] },
            { sistema: "MAT", parametros: ["NumAuto"] }
        ];
    }
    return ProdutosAlmoxarifadoConstants;
}());



/***/ }),

/***/ "./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado.model.ts":
/*!*************************************************************************************!*\
  !*** ./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado.model.ts ***!
  \*************************************************************************************/
/*! exports provided: ProdutosAlmoxarifadoFilter, ProdutosAlmoxarifadoDto, ProdutosAlmoxarifado, MateriaisComplemento, MaterialUnidade, NormasEstoque, MaterialEstadoImp, Configuracao */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProdutosAlmoxarifadoFilter", function() { return ProdutosAlmoxarifadoFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProdutosAlmoxarifadoDto", function() { return ProdutosAlmoxarifadoDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProdutosAlmoxarifado", function() { return ProdutosAlmoxarifado; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MateriaisComplemento", function() { return MateriaisComplemento; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MaterialUnidade", function() { return MaterialUnidade; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NormasEstoque", function() { return NormasEstoque; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MaterialEstadoImp", function() { return MaterialEstadoImp; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Configuracao", function() { return Configuracao; });
/* 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 ProdutosAlmoxarifadoFilter = /** @class */ (function () {
    function ProdutosAlmoxarifadoFilter() {
        this.tipoMaterial = "";
    }
    return ProdutosAlmoxarifadoFilter;
}());

var ProdutosAlmoxarifadoDto = /** @class */ (function (_super) {
    __extends(ProdutosAlmoxarifadoDto, _super);
    function ProdutosAlmoxarifadoDto() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return ProdutosAlmoxarifadoDto;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var ProdutosAlmoxarifado = /** @class */ (function (_super) {
    __extends(ProdutosAlmoxarifado, _super);
    function ProdutosAlmoxarifado() {
        var _this = _super.call(this) || this;
        _this.materiaisComplemento = new MateriaisComplemento();
        _this.materialUnidade = [];
        _this.normasEstoque = [];
        _this.materialEstadoImp = [];
        _this.tipoProduto = "A";
        _this.flagAtivo = "S";
        _this.tipoDeMaterialId = "";
        _this.altDescrMater = "N";
        _this.flagPregao = "N";
        _this.flagServ = "N";
        _this.tipoIcms = "N";
        _this.tipoIpi = "N";
        return _this;
    }
    return ProdutosAlmoxarifado;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var MateriaisComplemento = /** @class */ (function (_super) {
    __extends(MateriaisComplemento, _super);
    function MateriaisComplemento() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return MateriaisComplemento;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var MaterialUnidade = /** @class */ (function (_super) {
    __extends(MaterialUnidade, _super);
    function MaterialUnidade() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return MaterialUnidade;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var NormasEstoque = /** @class */ (function (_super) {
    __extends(NormasEstoque, _super);
    function NormasEstoque() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return NormasEstoque;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var MaterialEstadoImp = /** @class */ (function (_super) {
    __extends(MaterialEstadoImp, _super);
    function MaterialEstadoImp() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return MaterialEstadoImp;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

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



/***/ }),

/***/ "./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado.module.ts":
/*!**************************************************************************************!*\
  !*** ./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado.module.ts ***!
  \**************************************************************************************/
/*! exports provided: ProdutosAlmoxarifadoModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProdutosAlmoxarifadoModule", function() { return ProdutosAlmoxarifadoModule; });
/* harmony import */ var _produtos_almoxarifado_routing_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./produtos-almoxarifado.routing.module */ "./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado.routing.module.ts");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
/* harmony import */ var _produtos_almoxarifado_index_produtos_almoxarifado_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./produtos-almoxarifado-index/produtos-almoxarifado-index.component */ "./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado-index/produtos-almoxarifado-index.component.ts");
/* harmony import */ var _produtos_almoxarifado_form_produtos_almoxarifado_form_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./produtos-almoxarifado-form/produtos-almoxarifado-form.component */ "./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado-form/produtos-almoxarifado-form.component.ts");
/* harmony import */ var _produtos_almoxarifado_filter_produtos_almoxarifado_filter_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./produtos-almoxarifado-filter/produtos-almoxarifado-filter.component */ "./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado-filter/produtos-almoxarifado-filter.component.ts");
/* harmony import */ var _aba_unidade_alternativa_aba_unidade_alternativa_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./aba-unidade-alternativa/aba-unidade-alternativa.component */ "./src/app/pages/controle/produtos-almoxarifado/aba-unidade-alternativa/aba-unidade-alternativa.component.ts");
/* harmony import */ var _aba_estoque_aba_estoque_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./aba-estoque/aba-estoque.component */ "./src/app/pages/controle/produtos-almoxarifado/aba-estoque/aba-estoque.component.ts");
/* harmony import */ var _aba_impostos_estado_aba_impostos_estado_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./aba-impostos-estado/aba-impostos-estado.component */ "./src/app/pages/controle/produtos-almoxarifado/aba-impostos-estado/aba-impostos-estado.component.ts");
/* harmony import */ var _modal_select_origem_modal_select_origem_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./modal-select-origem/modal-select-origem.component */ "./src/app/pages/controle/produtos-almoxarifado/modal-select-origem/modal-select-origem.component.ts");
/* harmony import */ var _produtos_almoxarifado_duplicar_produtos_almoxarifado_duplicar_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./produtos-almoxarifado-duplicar/produtos-almoxarifado-duplicar.component */ "./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado-duplicar/produtos-almoxarifado-duplicar.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 ProdutosAlmoxarifadoModule = /** @class */ (function () {
    function ProdutosAlmoxarifadoModule() {
    }
    ProdutosAlmoxarifadoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["NgModule"])({
            declarations: [_produtos_almoxarifado_index_produtos_almoxarifado_index_component__WEBPACK_IMPORTED_MODULE_4__["ProdutosAlmoxarifadoIndexComponent"],
                _produtos_almoxarifado_form_produtos_almoxarifado_form_component__WEBPACK_IMPORTED_MODULE_5__["ProdutosAlmoxarifadoFormComponent"],
                _produtos_almoxarifado_filter_produtos_almoxarifado_filter_component__WEBPACK_IMPORTED_MODULE_6__["ProdutosAlmoxarifadoFilterComponent"],
                _aba_unidade_alternativa_aba_unidade_alternativa_component__WEBPACK_IMPORTED_MODULE_7__["AbaUnidadeAlternativaComponent"],
                _aba_estoque_aba_estoque_component__WEBPACK_IMPORTED_MODULE_8__["AbaEstoqueComponent"],
                _aba_impostos_estado_aba_impostos_estado_component__WEBPACK_IMPORTED_MODULE_9__["AbaImpostosEstadoComponent"],
                _modal_select_origem_modal_select_origem_component__WEBPACK_IMPORTED_MODULE_10__["ModalSelectOrigemComponent"],
                _produtos_almoxarifado_duplicar_produtos_almoxarifado_duplicar_component__WEBPACK_IMPORTED_MODULE_11__["ProdutosAlmoxarifadoDuplicarComponent"]],
            imports: [
                _angular_common__WEBPACK_IMPORTED_MODULE_3__["CommonModule"],
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"],
                _produtos_almoxarifado_routing_module__WEBPACK_IMPORTED_MODULE_0__["ProdutosAlmoxarifadoRoutingModule"]
            ]
        })
    ], ProdutosAlmoxarifadoModule);
    return ProdutosAlmoxarifadoModule;
}());



/***/ }),

/***/ "./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado.routing.module.ts":
/*!**********************************************************************************************!*\
  !*** ./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado.routing.module.ts ***!
  \**********************************************************************************************/
/*! exports provided: ProdutosAlmoxarifadoRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProdutosAlmoxarifadoRoutingModule", function() { return ProdutosAlmoxarifadoRoutingModule; });
/* harmony import */ var _produtos_almoxarifado_index_produtos_almoxarifado_index_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./produtos-almoxarifado-index/produtos-almoxarifado-index.component */ "./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado-index/produtos-almoxarifado-index.component.ts");
/* harmony import */ var _produtos_almoxarifado_form_produtos_almoxarifado_form_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./produtos-almoxarifado-form/produtos-almoxarifado-form.component */ "./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado-form/produtos-almoxarifado-form.component.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../config/enumerables */ "./src/app/config/enumerables.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var MRoutes = [
    {
        path: "",
        component: _produtos_almoxarifado_index_produtos_almoxarifado_index_component__WEBPACK_IMPORTED_MODULE_0__["ProdutosAlmoxarifadoIndexComponent"],
        data: { breadcrumb: "produtosAlmoxarifado", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].index } }
    },
    {
        path: "create/:prod",
        component: _produtos_almoxarifado_form_produtos_almoxarifado_form_component__WEBPACK_IMPORTED_MODULE_1__["ProdutosAlmoxarifadoFormComponent"],
        data: {
            breadcrumb: "produtosAlmoxarifado",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: _produtos_almoxarifado_form_produtos_almoxarifado_form_component__WEBPACK_IMPORTED_MODULE_1__["ProdutosAlmoxarifadoFormComponent"],
        data: {
            breadcrumb: "produtosAlmoxarifado",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _produtos_almoxarifado_form_produtos_almoxarifado_form_component__WEBPACK_IMPORTED_MODULE_1__["ProdutosAlmoxarifadoFormComponent"],
        data: {
            breadcrumb: "produtosAlmoxarifado",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].detail }
        }
    }
];
var ProdutosAlmoxarifadoRoutingModule = /** @class */ (function () {
    function ProdutosAlmoxarifadoRoutingModule() {
    }
    ProdutosAlmoxarifadoRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_3__["RouterModule"].forChild(MRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_3__["RouterModule"]],
        })
    ], ProdutosAlmoxarifadoRoutingModule);
    return ProdutosAlmoxarifadoRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado.service.ts":
/*!***************************************************************************************!*\
  !*** ./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado.service.ts ***!
  \***************************************************************************************/
/*! exports provided: ProdutosAlmoxarifadoService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProdutosAlmoxarifadoService", function() { return ProdutosAlmoxarifadoService; });
/* harmony import */ var _produtos_almoxarifado_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./produtos-almoxarifado.model */ "./src/app/pages/controle/produtos-almoxarifado/produtos-almoxarifado.model.ts");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* 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_prod__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! environments/environment.prod */ "./src/environments/environment.prod.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../shared/services/base/base.service */ "./src/app/shared/services/base/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 ProdutosAlmoxarifadoService = /** @class */ (function (_super) {
    __extends(ProdutosAlmoxarifadoService, _super);
    function ProdutosAlmoxarifadoService(http) {
        var _this = _super.call(this, http, "controle/produtoAlmoxarifado") || this;
        _this.filter = new _produtos_almoxarifado_model__WEBPACK_IMPORTED_MODULE_0__["ProdutosAlmoxarifadoFilter"]();
        return _this;
    }
    ProdutosAlmoxarifadoService.prototype.getByFiltro = function (data) {
        return this.http
            .post(environments_environment_prod__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/controle/produtoAlmoxarifado/getByFilter", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_1__["ErrorHandler"].handleError));
    };
    ProdutosAlmoxarifadoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_5__["HttpClient"] }
    ]; };
    ProdutosAlmoxarifadoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_4__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_5__["HttpClient"]])
    ], ProdutosAlmoxarifadoService);
    return ProdutosAlmoxarifadoService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_6__["BaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-controle-produtos-almoxarifado-produtos-almoxarifado-module.js.map