(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-cargill-consultas-requisicao-descargas-requisicao-descargas-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-altera-dados/requisicao-descargas-altera-dados.component.html":
/*!***************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-altera-dados/requisicao-descargas-altera-dados.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=\"requisicao-descargas-altera-dados-dialog\" tabindex=\"-1\" role=\"dialog\"\r\n    data-backdrop=\"static\">\r\n    <div class=\"modal-dialog\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.requisicaoDescarga' | translate }} ( {{\r\n                    'buttons.alterarDadosNota'\r\n                    | translate\r\n                    }} )</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\">\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <app-validacoes></app-validacoes>\r\n                            <ng-container *ngIf=\"showTable else dataNota\">\r\n                                <div class=\"table-overflow\">\r\n                                    <table class=\"table table-striped table-hover form-control-sm\">\r\n                                        <thead>\r\n                                            <tr>\r\n                                                <th>{{ 'labels.chave' | translate }}</th>\r\n                                                <th>{{ 'labels.nota' | translate }}</th>\r\n                                                <th>{{ 'labels.emissao' | translate }}</th>\r\n                                                <th></th>\r\n                                            </tr>\r\n                                        </thead>\r\n                                        <tbody>\r\n                                            <tr *ngFor=\"let c of data?.requisicaoDescargaItems\">\r\n                                                <td>{{c.chaveNfe}}</td>\r\n                                                <td>{{c.docto}} / {{c.serie}}</td>\r\n                                                <td>{{c.dtDocto | date:'dd/MM/yyyy' }}</td>\r\n                                                <td>\r\n                                                    <a class=\"btn btn-sm\" (click)=\"editItem(c)\">\r\n                                                        <i class=\"fa fa-pencil\"></i>\r\n                                                    </a>\r\n                                                </td>\r\n                                            </tr>\r\n                                            <tr\r\n                                                *ngIf=\"!data?.requisicaoDescargaItems || data?.requisicaoDescargaItems?.length === 0\">\r\n                                                <th colspan=\"3\">\r\n                                                    {{'messages.nenhumRegistroEncontrado' | translate }}\r\n                                                </th>\r\n                                            </tr>\r\n                                        </tbody>\r\n                                    </table>\r\n                                </div>\r\n                            </ng-container>\r\n                            <ng-template #dataNota>\r\n                                <div class=\"modal-body\" *ngIf=\"!!nota\">\r\n                                    <div class=\"row\">\r\n                                        <div class=\"col-12\">\r\n                                            <div class=\"form-group form-group-sm\">\r\n                                                <label for=\"modeloNota\" class=\"required\">{{ \"labels.modeloNota\" |\r\n                                                    translate\r\n                                                    }}</label>\r\n                                                <select class=\"form-control form-control-sm\" id=\"modeloNota\"\r\n                                                    name=\"modeloNota\" [(ngModel)]=\"nota.modNota\"\r\n                                                    (change)=\"selectedModeloNota($event)\" required=\"true\">\r\n                                                    <option *ngFor=\"let item of modNotas\"\r\n                                                        value=\"{{ item.modeloNotaId }}\">{{\r\n                                                        item.descrModNota }}</option>\r\n                                                </select>\r\n                                            </div>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"row\">\r\n                                        <div class=\"col-12\">\r\n                                            <div class=\"form-group form-group-sm\">\r\n                                                <label for=\"chaveNFe\"\r\n                                                    [class.required]=\"isRequiredDadosNfe && service.configUni.obrChaveNFeEnt && (nota.modNota && nota.modNota === '55')\">{{'labels.chaveNFE'\r\n                                                    | translate}}</label>\r\n                                                <div class=\"input-group\">\r\n                                                    <input type=\"text\" id=\"chaveNFe\" name=\"chaveNfe\"\r\n                                                        class=\"form-control form-control-sm\" [(ngModel)]=\"nota.chaveNfe\"\r\n                                                        [disabled]=\"nota.modNota && nota.modNota !== '55'\"\r\n                                                        [required]=\"isRequiredDadosNfe && service.configUni.obrChaveNFeEnt && (nota.modNota && nota.modNota === '55')\"\r\n                                                        data-title=\"{{'labels.chaveNFE' | translate}}\"\r\n                                                        mask=\"0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000\"\r\n                                                        (blur)=\"validaChaveNfe()\">\r\n                                                    <span class=\"input-group-btn\">\r\n                                                        <button type=\"button\" class=\"btn btn-success btn-sm\"\r\n                                                            (click)=\"importarDanfe(nota.chaveNfe)\"\r\n                                                            title=\"Importa DANFE\"> <i class=\"fa fa-search\"></i>\r\n                                                        </button>\r\n                                                    </span>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"row\">\r\n                                        <div class=\"col-lg-4 col-sm-12\">\r\n                                            <div class=\"form-group form-group-sm\">\r\n                                                <label\r\n                                                    [class.required]=\"isRequiredDadosNfe && service.configUni.obrigaSerieNf\">{{'labels.serie'\r\n                                                    | translate}}</label>\r\n                                                <app-combo-serie-nota id=\"serie\" name=\"serie\" [(ngModel)]=\"nota.serie\"\r\n                                                    [disabled]=\"isDisabledDanfeImportada\"\r\n                                                    [required]=\"isRequiredDadosNfe && service.configUni.obrigaSerieNf\">\r\n                                                </app-combo-serie-nota>\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class=\"col-lg-4 col-sm-12\">\r\n                                            <div class=\"form-group form-group-sm\">\r\n                                                <label for=\"nota\" class=\"required\">{{'labels.notaFiscal' |\r\n                                                    translate}}</label>\r\n                                                <input type=\"text\" id=\"nota\" name=\"nota\"\r\n                                                    class=\"form-control form-control-sm\" [(ngModel)]=\"nota.docto\"\r\n                                                    [disabled]=\"isDisabledDanfeImportada\" required\r\n                                                    data-title=\"{{'labels.nota' | translate}}\" (blur)=\"validaNota()\">\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class=\"col-lg-4 col-sm-12\">\r\n                                            <div class=\"form-group form-group-sm\">\r\n                                                <label for=\"emissao\" class=\"required\">{{'labels.emissao' |\r\n                                                    translate}}</label>\r\n                                                <app-data id=\"emissao\" name=\"emissao\" [(ngModel)]=\"nota.dataDocumento\"\r\n                                                    required [disabled]=\"isDisabledDanfeImportada\" class=\"dataHora\"\r\n                                                    [formatDateTime]=\"mascara.getFormatData\"\r\n                                                    (executa)=\"validaDtEmissao({'dtEmissao': $event})\"></app-data>\r\n                                            </div>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"row\">\r\n                                        <div class=\"col-lg-4 col-sm-12\">\r\n                                            <div class=\"form-group form-group-sm\">\r\n                                                <label for=\"quantidDoc\" class=\"required\">{{'labels.quantidDoc' |\r\n                                                    translate}}</label>\r\n                                                <input type=\"text\" id=\"quantidDoc\" name=\"quantidDoc\"\r\n                                                    class=\"form-control form-control-sm\" [(ngModel)]=\"nota.quantidDoc\"\r\n                                                    [disabled]=\"isDisabledDanfeImportada\" required\r\n                                                    data-title=\"{{'labels.quantidDoc' | translate}}\" currencyMask\r\n                                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\r\n                                            </div>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </ng-template>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <ng-container *ngIf=\"showTable else btnDataNota\">\r\n                    <div class=\"modal-footer\">\r\n                        <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">\r\n                            {{ 'buttons.cancelar' | translate }}\r\n                        </button>\r\n                    </div>\r\n                </ng-container>\r\n                <ng-template #btnDataNota>\r\n                    <div class=\"modal-footer\">\r\n                        <button class=\"btn btn-success mr-1\" type=\"button\" (click)=\"onSubmit(form)\">{{\r\n                            'buttons.salvar' | translate }}\r\n                        </button>\r\n                        <button type=\"button\" class=\"btn btn-default\" (click)=\"canItem()\">\r\n                            {{ 'buttons.cancelar' | translate }}\r\n                        </button>\r\n                    </div>\r\n                </ng-template>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-filter/requisicao-descargas-filter.component.html":
/*!***************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-filter/requisicao-descargas-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=\"rds-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"uni-modal-dialog-md-50\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h5 class=\"modal-title\">{{ 'titles.pesquisaDeRequisicaoDescarga' | translate }}</h5>\n            </div>\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n                <div class=\"modal-body\">\n                    <app-validacoes></app-validacoes>\n                    <ng-container *ngIf=\"!!service.filtro\">\n                        <div class=\"row\">\n                            <div class=\"col-md-6 col-lg-6\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"emissaoDe\" class=\"required\">{{'labels.emissaoDe' |\n                                        translate}}</label>\n                                    <app-data id=\"emissaoDe\" name=\"emissaoDe\" [(ngModel)]=\"service.filtro.dataI\"\n                                        required autofocus></app-data>\n                                </div>\n                            </div>\n                            <div class=\"col-md-6 col-lg-6\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"ate\" class=\"required\">{{'labels.ate' | translate}}</label>\n                                    <app-data id=\"ate\" name=\"ate\" [(ngModel)]=\"service.filtro.dataF\" required>\n                                    </app-data>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" tipoDestinatario=\"C\"\n                                        modalTitle=\"pesquisaDeCliente\" label=\"cliente\"\n                                        [(ngModel)]=\"service.filtro.destinatarioIdCliente\" showInscricao=\"false\"\n                                        showCgcCpf=\"false\">\n                                    </app-pesquisa-destinatario>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <app-pesquisa-material id=\"materialId\" name=\"materialId\" label=\"produto\"\n                                        modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"service.filtro.materialId\">\n                                    </app-pesquisa-material>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"situacao\" class=\"required\">{{\"labels.situacao\" | translate\n                                        }}</label>\n                                    <app-combo-multi-situacao-requisicao-descarga id=\"situacao\" name=\"situacao\"\n                                        (executa)=\"trataSituacao($event)\" required\n                                        [selectedItems]=\"service.filtro.selectedItems\">\n                                    </app-combo-multi-situacao-requisicao-descarga>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-md-3 col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"requisicaoDescargaId\">{{ 'labels.registro' | translate}}</label>\n                                    <input id=\"requisicaoDescargaId\" name=\"requisicaoDescargaId\"\n                                        [(ngModel)]=\"service.filtro.requisicaoDescargaId\"\n                                        class=\"form-control form-control-sm\">\n                                </div>\n                            </div>\n                            <div class=\"col-md-3 col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"cadastroPlacaId\">{{ 'labels.placa' | translate}}</label>\n                                    <input id=\"cadastroPlacaId\" name=\"cadastroPlacaId\"\n                                        [(ngModel)]=\"service.filtro.cadastroPlacaId\"\n                                        class=\"form-control form-control-sm\">\n                                </div>\n                            </div>\n                            <div class=\"col-md-3 col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"ficha\">{{ 'labels.ficha' | translate}}</label>\n                                    <input id=\"ficha\" name=\"ficha\" [(ngModel)]=\"service.filtro.ticketOrigem\"\n                                        class=\"form-control form-control-sm\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-md-6 col-lg-6\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"localOperacaoId\">{{ 'labels.localOperacao' | translate}}</label>\n                                    <app-combo-local-operacao id=\"localOperacaoId\" name=\"localOperacaoId\"\n                                        [(ngModel)]=\"service.filtro.localOperacaoId\">\n                                    </app-combo-local-operacao>\n                                </div>\n                            </div>\n                        </div>\n                    </ng-container>\n                </div>\n                <div class=\"modal-footer\">\n                    <div class=\"col-lg-12 text-right\">\n                        <button class=\"btn btn-success  mr-2\">\n                            {{ 'buttons.pesquisar' | translate }}\n                        </button>\n                        <button class=\"btn btn-default\" data-dismiss=\"modal\">\n                            {{ 'buttons.sair' | translate }}\n                        </button>\n                    </div>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-form/requisicao-descargas-form.component.html":
/*!***********************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-form/requisicao-descargas-form.component.html ***!
  \***********************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaForm\" [sisFormularioId]=\"constantes.sisFormularioId\"\n  [itemData]=\"data.requisicaoDescargaId\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n  <div class=\"col-md-12 col-lg-12\">\n    <div class=\"section-comand-bar\">\n      <div class=\"clearfix\">\n        <ul class=\"nav nav-tabs\">\n          <li class=\"nav-item\">\n            <a class=\"nav-link active show\" data-toggle=\"tab\" href=\"#ta\">{{\n              \"labels.dados\" | translate\n              }}</a>\n          </li>\n          <li class=\"nav-item\">\n            <a class=\"nav-link\" data-toggle=\"tab\" href=\"#tb\">{{\n              \"labels.itens\" | translate\n              }}</a>\n          </li>\n        </ul>\n      </div>\n      <div class=\"tab-content top\">\n        <div class=\"tab-pane active show\" id=\"ta\">\n          <form id=\"frmRequisicaoDescarga\" class=\"form\" #frmRequisicaoDescarga=\"ngForm\">\n            <div class=\"row\">\n              <div class=\"col-lg-2 col-md-6 col-sm-12\">\n                <div class=\"form-group form-group-sm\">\n                  <label for=\"registro\">{{\n                    \"labels.registro\" | translate\n                    }}</label>\n                  <input id=\"registro\" name=\"registro\" value=\"{{ data.requisicaoDescargaId }}\"\n                    class=\"form-control form-control-sm\" type=\"text\" disabled />\n                </div>\n              </div>\n            </div>\n            <div class=\"row\">\n              <div class=\"col-lg-2 col-md-6 col-sm-10\">\n                <div class=\"form-group form-group-sm\">\n                  <label for=\"checklist\">{{ \"labels.checklist\" | translate }}</label>\n                  <div class=\"input-group\">\n                    <input id=\"checklist\" name=\"checklist\" value=\"{{ data.checkListId }}\"\n                      class=\"form-control form-control-sm\" type=\"text\" disabled />\n                  </div>\n                </div>\n              </div>\n              <div class=\"col-lg-1 col-md-2 col-sm-2\">\n                <div class=\"form-group form-group-sm\">\n                  <label for=\"checkListItemId\">{{ \"labels.item\" | translate }}</label>\n                  <input id=\"checkListItemId\" name=\"checkListItemId\" value=\"{{ data.checkListItemId }}\"\n                    class=\"form-control form-control-sm\" type=\"text\" disabled />\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=\"emissao\">{{\n                    \"labels.emissao\" | translate\n                    }}</label>\n                  <input id=\"emissao\" name=\"emissao\" value=\"{{data.dtRequisicao | date:'dd/MM/yyyy HH:mm'}}\"\n                    class=\"form-control form-control-sm\" disabled>\n                </div>\n              </div>\n              <div class=\"col-lg-4\"></div>\n              <div class=\"col-lg-2\"></div>\n              <div class=\"col-lg-2\">\n                <div class=\"form-group form-group-sm\">\n                  <label for=\"pesoBru\">{{ \"labels.pesoBru\" | translate }}</label>\n                  <input id=\"pesoBru\" name=\"pesoBru\" value=\"{{data.pesoBru | formatCurrency: 0}}\" [disabled]=\"true\"\n                    class=\"form-control form-control-sm\">\n                </div>\n              </div>\n            </div>\n            <div class=\"row\">\n              <div class=\"col-lg-2\">\n                <div class=\"form-group form-group-sm\">\n                  <label for=\"cadastroPlacaIdCavalo\">{{\n                    \"labels.placaCavalo\" | translate\n                    }}</label>\n                  <input id=\"cadastroPlacaIdCavalo\" name=\"cadastroPlacaIdCavalo\" value=\"{{\n                      data.cadastroPlacaIdCavalo | mask: mascaras.getPlaca\n                    }}\" class=\"form-control form-control-sm\" type=\"text\" disabled />\n                </div>\n              </div>\n              <div class=\"col-lg-2\">\n                <div class=\"form-group form-group-sm\">\n                  <label for=\"estadoIdCavalo\">{{\n                    \"labels.estado\" | translate\n                    }}</label>\n                  <input id=\"estadoIdCavalo\" name=\"estadoIdCavalo\"\n                    value=\"{{ data.estadoIdCavalo | mask: mascaras.getPlaca }}\" class=\"form-control form-control-sm\"\n                    type=\"text\" disabled />\n                </div>\n              </div>\n              <div class=\"col-lg-2\">\n                <div class=\"form-group form-group-sm\">\n                  <label for=\"cadastroPlacaIdCarreta1\">{{\n                    \"labels.placaCarreta1\" | translate\n                    }}</label>\n                  <input id=\"cadastroPlacaIdCarreta1\" name=\"cadastroPlacaIdCarreta1\" value=\"{{\n                      data.cadastroPlacaIdCarreta1 | mask: mascaras.getPlaca\n                    }}\" class=\"form-control form-control-sm\" type=\"text\" disabled />\n                </div>\n              </div>\n              <div class=\"col-lg-2\">\n                <div class=\"form-group form-group-sm\">\n                  <label for=\"cadastroPlacaIdCarreta2\">{{\n                    \"labels.placaCarreta2\" | translate\n                    }}</label>\n                  <input id=\"cadastroPlacaIdCarreta2\" name=\"cadastroPlacaIdCarreta2\" value=\"{{\n                      data.cadastroPlacaIdCarreta2 | mask: mascaras.getPlaca\n                    }}\" class=\"form-control form-control-sm\" type=\"text\" disabled />\n                </div>\n              </div>\n              <div class=\"col-lg-1\"></div>\n              <div class=\"col-lg-2\">\n                <div class=\"form-group form-group-sm\">\n                  <label for=\"pesoTara\">{{ \"labels.pesoTara\" | translate }}</label>\n                  <input id=\"pesoTara\" style=\"background-color: #e9ecef\" name=\"pesoTara\"\n                    value=\"{{ data.pesoTara | formatCurrency: 0 }}\" class=\"form-control form-control-sm\" type=\"text\"\n                    disabled />\n                </div>\n              </div>\n            </div>\n            <div class=\"row\">\n              <div class=\"col-lg-6 col-md-10 col-sm-12\">\n                <div class=\"form-group form-group-sm\">\n                  <app-input-description [label]=\"'produto'\" [valueID]=\"data?.material?.materialId\"\n                    [valueDescription]=\"data?.material?.fantasia\"></app-input-description>\n                </div>\n              </div>\n              <div class=\"col-lg-3\"></div>\n              <div class=\"col-lg-2\">\n                <div class=\"form-group form-group-sm\">\n                  <label for=\"pesoLiq\">{{ \"labels.pesoLiq\" | translate }}</label>\n                  <input id=\"pesoLiq\" name=\"pesoLiq\" value=\"{{ data.pesoLiq | formatCurrency: 0 }}\"\n                    class=\"form-control form-control-sm\" type=\"text\" disabled />\n                </div>\n              </div>\n            </div>\n            <div class=\"row\">\n              <div class=\"col-lg-6 mb-4\">\n                <div class=\"card border-0\" widget=\"\">\n                  <div class=\"row\">\n                    <div class=\"col-lg-12\">\n                      <app-input-description [label]=\"'motorista'\" [valueID]=\"data?.motorista?.motoristaId\"\n                        [valueDescription]=\"data?.motorista?.nome\"></app-input-description>\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=\"motoristaCnhRD\">{{\n                          \"labels.cnh\" | translate\n                          }}</label>\n                        <input id=\"motoristaCnhRD\" type=\"text\" name=\"motoristaCnhRD\"\n                          class=\"form-control form-control-sm\" value=\"{{ data?.motorista?.cnh }}\" disabled />\n                      </div>\n                    </div>\n                    <div class=\"col-lg-6\">\n                      <div class=\"form-group form-group-sm\">\n                        <label for=\"motoristaCnhValidade\">{{\n                          \"labels.validade\" | translate\n                          }}</label>\n                        <input id=\"motoristaCnhValidade\" type=\"text\" name=\"motoristaCnhValidade\"\n                          class=\"form-control form-control-sm\" value=\"{{\n                            data?.motorista?.cnhValidade | date: 'dd/MM/yyyy'\n                          }}\" disabled />\n                      </div>\n                    </div>\n                  </div>\n                  <div class=\"row\">\n                    <div class=\"col-lg-12\">\n                      <div class=\"form-group form-group-sm\">\n                        <app-input-description [label]=\"'transportadora'\"\n                          [valueID]=\"data?.transportadora?.destinatarioId\"\n                          [valueDescription]=\"data?.transportadora?.fantasia\">\n                        </app-input-description>\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=\"deposito\">{{\"labels.deposito\" | translate}}</label>\n                        <input id=\"deposito\" name=\"deposito\" value=\"{{data.tanqueId}}\"\n                          class=\"form-control form-control-sm\" disabled>\n                      </div>\n                    </div>\n                    <div class=\"col-lg-6\">\n                      <div class=\"form-group form-group-sm\">\n                        <label for=\"tipoOperacao\">{{\n                          \"labels.tipoOperacao\" | translate\n                          }}</label>\n                        <app-combo-tipo-operacao id=\"tipoOperacao\" name=\"tipoOperacao\" [(ngModel)]=\"data.tipoOperacaoId\"\n                          [disabled]=\"true\" required>\n                        </app-combo-tipo-operacao>\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=\"pesoOrigem\">{{ \"labels.pesoOrigem\" | translate }}</label>\n                        <input id=\"pesoOrigem\" name=\"pesoOrigem\" value=\"{{ data.kilos | formatCurrency: 0 }}\"\n                          class=\"form-control form-control-sm\" type=\"text\" disabled />\n                      </div>\n                    </div>\n                    <div class=\"col-lg-6\">\n                      <div class=\"form-group form-group-sm\">\n                        <label>{{ \"labels.terno\" | translate }}</label>\n                        <app-combo-terno id=\"ternoId\" name=\"ternoId\" [(ngModel)]=\"data.ternoId\" [disabled]=\"true\"\n                          required=\"false\"></app-combo-terno>\n                      </div>\n                    </div>\n                  </div>\n                  <div class=\"row\">\n                    <div class=\"col-lg-12\">\n                      <div class=\"form-group form-group-sm\">\n                        <label for=\"observ\">{{\n                          \"labels.observacao\" | translate\n                          }}</label>\n                        <input id=\"observ\" name=\"observ\" [(ngModel)]=\"data.observ\" class=\"form-control form-control-sm\"\n                          type=\"text\" disabled />\n                      </div>\n                    </div>\n                  </div>\n                </div>\n              </div>\n              <div class=\"col-lg-5 mb-4\">\n                <div class=\"card border-0 box-shadow\" widget=\"\">\n                  <div class=\"card\" style=\"background-color: #ddd\" *ngIf=\"controle20\">\n                    <div class=\"card-header\">\n                      {{ \"labels.movimentacao20graus\" | translate }}\n                    </div>\n                    <div class=\"card-body\">\n                      <div class=\"row\">\n                        <div class=\"col-lg-6\">\n                          <div class=\"form-group form-group-sm\">\n                            <label for=\"volume\">{{\n                              \"labels.volume\" | translate\n                              }}</label>\n                            <input type=\"text\" id=\"volume\" name=\"volume\" class=\"form-control form-control-sm\"\n                              [(ngModel)]=\"data.volume\" [disabled]=\"true\" maxlength=\"15\" currencyMask\n                              [options]=\"funcoesService.optionCurrency()\" required />\n                          </div>\n                        </div>\n                        <div class=\"col-lg-6\">\n                          <div class=\"form-group form-group-sm\">\n                            <label for=\"densidadeCorrigida\">{{\n                              \"labels.densidadeCorrigida\" | translate\n                              }}</label>\n                            <input type=\"text\" id=\"densidadeCorrigida\" name=\"densidadeCorrigida\"\n                              class=\"form-control form-control-sm\" value=\"{{ data.densidadeCorrigida }}\" currencyMask\n                              [options]=\"funcoesService.optionCurrency(5)\" disabled />\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=\"densidadeAmostra\">{{\n                              \"labels.densidadeAmostra\" | translate\n                              }}</label>\n                            <input type=\"text\" id=\"densidadeAmostra\" name=\"densidadeAmostra\"\n                              class=\"form-control form-control-sm\" [(ngModel)]=\"data.densidadeAmostra\" currencyMask\n                              maxlength=\"8\" [options]=\"funcoesService.optionCurrency(5)\" disabled />\n                          </div>\n                        </div>\n                        <div class=\"col-lg-6\">\n                          <div class=\"form-group form-group-sm\">\n                            <label for=\"fatorCorrecao\">{{\n                              \"labels.fatorCorrecao\" | translate\n                              }}</label>\n                            <input type=\"text\" id=\"fatorCorrecao\" name=\"fatorCorrecao\"\n                              class=\"form-control form-control-sm\" [(ngModel)]=\"data.fatorCorrecao\" currencyMask\n                              [options]=\"funcoesService.optionCurrency(5)\" disabled />\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=\"temperaturaAmostra\">{{\n                              \"labels.temperaturaAmostra\" | translate\n                              }}</label>\n                            <input type=\"text\" id=\"temperaturaAmostra\" name=\"temperaturaAmostra\"\n                              class=\"form-control form-control-sm\" [(ngModel)]=\"data.temperaturaAmostra\" disabled\n                              required currencyMask [options]=\"funcoesService.optionCurrency(1)\" />\n                          </div>\n                        </div>\n                        <div class=\"col-lg-6\">\n                          <div class=\"form-group form-group-sm\">\n                            <label for=\"volumeCorrigido\">{{\n                              \"labels.volumeCorrigido\" | translate\n                              }}</label>\n                            <input type=\"text\" id=\"volumeCorrigido\" name=\"volumeCorrigido\"\n                              class=\"form-control form-control-sm\" [(ngModel)]=\"data.volumeCorrigido\" currencyMask\n                              [options]=\"funcoesService.optionCurrency()\" disabled />\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=\"temperaturaCarroTanque\">{{\n                              \"labels.temperaturaCarroTanque\" | translate\n                              }}</label>\n                            <input type=\"text\" id=\"temperaturaCarroTanque\" name=\"temperaturaCarroTanque\"\n                              class=\"form-control form-control-sm\" [(ngModel)]=\"data.temperaturaCarroTanque\" disabled\n                              currencyMask [options]=\"funcoesService.optionCurrency(1)\" />\n                          </div>\n                        </div>\n                        <div class=\"col-lg-6\">\n                          <div class=\"form-group form-group-sm\">\n                            <label for=\"pesoCorrigido\">{{\n                              \"labels.pesoCorrigido\" | translate\n                              }}</label>\n                            <input type=\"text\" id=\"pesoCorrigido\" name=\"pesoCorrigido\"\n                              class=\"form-control form-control-sm\" [(ngModel)]=\"data.pesoCorrigido\" currencyMask\n                              [options]=\"funcoesService.optionCurrency()\" disabled />\n                          </div>\n                        </div>\n                      </div>\n                    </div>\n                  </div>\n                </div>\n              </div>\n            </div>\n          </form>\n        </div>\n        <div class=\"tab-pane\" id=\"tb\">\n          <app-requisicao-descargas-item [requisicaoDescarga]=\"data\" [dados]=\"data.requisicaoDescargaItems\"\n            [item]=\"item\" (selectedItem)=\"selectedItem($event)\" (dataResult)=\"refreshItens($event)\" [disabled]=\"true\">\n          </app-requisicao-descargas-item>\n        </div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-index/requisicao-descargas-index.component.html":
/*!*************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-index/requisicao-descargas-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\" [sisFormularioId]=\"constantes.sisFormularioId\"\n    [itemData]=\"requisicaoDescarga.requisicaoDescargaId\">\n</app-menu-command-bar>\n\n<div class=\"box-shadow\" style=\"padding: 10px; background-color: #fff;\" *ngIf=\"isDesmembrado\">\n    <div class=\"row mb-1\">\n        <div class=\"col-lg-12 col-md-12\">\n            <div class=\"card\">\n                <div class=\"card-body\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-4 col-md-12\">\n                            <label>{{ 'labelsFlagDesmembrado' | translate}}</label>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>\n\n<div class=\"section-comand-bar\">\n    <table id=\"dtRequisicaoDescargas\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\n</div>\n\n<app-requisicao-descargas-filter (outFilter)=\"executaFiltrar($event)\"></app-requisicao-descargas-filter>\n<app-requisicao-descargas-report [data]=\"filtroReport\"></app-requisicao-descargas-report>\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-requisicao-descargas-altera-dados (out)=\"refresh()\"></app-requisicao-descargas-altera-dados>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-item/requisicao-descargas-item.component.html":
/*!***********************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-item/requisicao-descargas-item.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=\"uni-botoes\">\r\n    <div class=\"\" *ngIf=\"!showAdd\">\r\n        <button title=\"{{ 'buttons.visualizar' | translate }}\" (click)=\"detail()\" class=\"btn uni-btn btn-sm\"\r\n            [disabled]=\"funcoesService.showButtons.detail(actionForm,  dataAux.sequencia)\">\r\n            <i class=\"icon-eye\"></i>\r\n        </button>\r\n    </div>\r\n</div>\r\n\r\n<div class=\"mt-2\" *ngIf=\"showAdd\">\r\n    <div class=\"\">\r\n        <div class=\"\">\r\n            <button title=\"{{ 'buttons.voltar' | translate }}\" (click)=\"back()\" type=\"button\"\r\n                class=\"btn uni-btn btn-sm\">\r\n                <i class=\"icon-arrow-left\"></i>\r\n            </button>\r\n        </div>\r\n    </div>\r\n    <form class=\"form\" #formRequisicaoDescargasItem=\"ngForm\">\r\n        <div class=\"row\">\r\n            <div class=\"col-lg-12\">\r\n                <div class=\"row\">\r\n                    <div class=\"col-lg-2 col-md-6 col-sm-12\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"ficha\">{{\"labels.ficha\" | translate}}</label>\r\n                            <input id=\"ficha\" name=\"ficha\" value=\"{{ data.ticketOrigem }}\"\r\n                                class=\"form-control form-control-sm\" type=\"text\" disabled />\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"row\">\r\n                    <div class=\"col-10\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <app-pesquisa-destinatario id=\"clienteItem\" name=\"clienteItem\" tipoDestinatario=\"C\"\r\n                                modalTitle=\"pesquisaDeCliente\" label=\"cliente\" [(ngModel)]=\"data.destinatarioIdCliente\"\r\n                                showInscricao=\"true\" showCgcCpf=\"true\" [required]=\"false\" [inSelected]=\"data.cliente\"\r\n                                [disabled]=\"true\">\r\n                            </app-pesquisa-destinatario>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"row\">\r\n                    <div class=\"col-10\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <app-pesquisa-destinatario id=\"emitenteItem\" name=\"emitenteItem\" tipoDestinatario=\"SFC\"\r\n                                modalTitle=\"pesquisaDeEmitente\" label=\"emitente\"\r\n                                [(ngModel)]=\"data.destinatarioIdEmitente\" showInscricao=\"true\" showCgcCpf=\"true\"\r\n                                [required]=\"false\" [inSelected]=\"data.emitente\" [disabled]=\"true\">\r\n                            </app-pesquisa-destinatario>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"row\">\r\n                    <div class=\"col-lg-2 col-md-8 col-sm-12\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label>{{ \"labels.lote\" | translate }}</label>\r\n                            <input type=\"text\" id=\"valorUnitario\" name=\"lote\" value=\"{{data?.loteId}}\"\r\n                                class=\"form-control form-control-sm\" disabled />\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"col-lg-2 col-md-12 col-sm-12\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label>{{ \"labels.valorUnitario\" | translate }}</label>\r\n                            <input type=\"text\" id=\"valorUnitario\" name=\"valorUnitario\"\r\n                                value=\"{{data?.lote?.precoArmazenado | formatCurrency:9}}\"\r\n                                class=\"form-control form-control-sm\" disabled />\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"col-lg-2 col-md-12 col-sm-12\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"densidade\">{{ \"labels.densidade\" | translate }}</label>\r\n                            <input type=\"text\" id=\"densidade\" name=\"densidade\"\r\n                                value=\"{{data?.lote?.densidade | formatCurrency:5}}\"\r\n                                class=\"form-control form-control-sm\" disabled />\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"row\">\r\n                    <div class=\"col-lg-2 col-md-12 col-sm-12\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"quantidade\" [class.required]=\"isDisabledQuantid\">{{ \"labels.quantidade\" |\r\n                                translate }}</label>\r\n                            <input type=\"text\" id=\"quantidade\" name=\"quantidade\" [(ngModel)]=\"data.quantid\"\r\n                                class=\"form-control form-control-sm\" [disabled]=\"!isDisabledQuantid || true\"\r\n                                currencyMask [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                [required]=\"isDisabledQuantid\" />\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"col-lg-2\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"plataformaId\">{{'labels.plataforma' | translate}}</label>\r\n                            <app-combo-plataforma id=\"plataformaId\" name=\"plataformaId\" [(ngModel)]=\"data.plataformaId\"\r\n                                [disabled]=\"true\" required=\"false\">\r\n                            </app-combo-plataforma>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"col-lg-2\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"baia\">{{'labels.baia' | translate}}</label>\r\n                            <input id=\"baia\" name=\"baia\" [(ngModel)]=\"data.baia\" maxlength=\"10\"\r\n                                class=\"form-control form-control-sm\" type=\"text\" [disabled]=\"true\">\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"col-lg-2\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"densidadeDestinO\">{{'labels.densidadeDestino' | translate}}</label>\r\n                            <input type=\"text\" id=\"densidadeDestinO\" name=\"densidadeDestinO\"\r\n                                class=\"form-control form-control-sm\" [(ngModel)]=\"data.densidadeOri\"\r\n                                data-title=\"{{'labels.densidadeDestino' | translate}}\" currencyMask\r\n                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                [disabled]=\"true\">\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"row\">\r\n                    <div class=\"col-lg-3\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"tipoDocumentoTransp\">{{'labels.tipoDocumentoTransp' |\r\n                                translate}}</label>\r\n                            <app-combo-tipo-documento-transp id=\"tipoDocumentoTransp\" name=\"tipoDocumentoTransp\"\r\n                                [(ngModel)]=\"data.tipoDocumentoTranspId\" [disabled]=\"true\" [required]=\"false\">\r\n                            </app-combo-tipo-documento-transp>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"col-lg-1\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"docTranspNumero\">{{'labels.numero' |\r\n                                translate}}</label>\r\n                            <input type=\"text\" id=\"docTranspNumero\" name=\"numero\" class=\"form-control form-control-sm\"\r\n                                [(ngModel)]=\"data.docTranspNumero\" [disabled]=\"true\">\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"col-lg-3\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"chaveDocTransp\">{{'labels.chaveDocTransp' |\r\n                                translate}}</label>\r\n                            <input type=\"text\" id=\"chaveDocTransp\" name=\"numero\" class=\"form-control form-control-sm\"\r\n                                [(ngModel)]=\"data.chaveDocTransp\" [disabled]=\"true\" disabled>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"col-lg-2\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"docTranspEmissao\">\r\n                                {{'labels.emissao' | translate}}</label>\r\n                            <input id=\"docTranspEmissao\" name=\"docTranspEmissao\"\r\n                                value=\"{{data.docTranspEmissao | date:'dd/MM/yyyy'}}\"\r\n                                class=\"form-control form-control-sm\" disabled>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"row\">\r\n                    <div class=\"col-lg-6\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"modeloNf\">{{'labels.modeloNf' | translate}}</label>\r\n                            <app-combo-modelo-nota id=\"modeloNf\" name=\"modeloNf\" [(ngModel)]=\"data.modeloNotaId\"\r\n                                [disabled]=\"true\" required=\"false\"></app-combo-modelo-nota>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"col-lg-2\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"tipoFrete\">{{'labels.tipoFrete' | translate}}</label>\r\n                            <app-combo-tipo-frete id=\"tipoFrete\" name=\"tipoFrete\" [(ngModel)]=\"data.tipoFrete\"\r\n                                [disabled]=\"true\" required>\r\n                            </app-combo-tipo-frete>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"row\">\r\n                    <div class=\"col-lg-6\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"chaveNfe\">{{'labels.chaveNFE' |\r\n                                translate}}</label>\r\n                            <div class=\"input-group\">\r\n                                <input type=\"text\" id=\"chaveNfe\" name=\"chaveNfe\" class=\"form-control form-control-sm\"\r\n                                    [(ngModel)]=\"data.chaveNfe\" [disabled]=\"true\" [required]=\"false\"\r\n                                    data-title=\"{{'labels.chaveNFE' | translate}}\" maxlength=\"44\">\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"col-lg-2\" *ngIf=\"constants.configBal.infPesoFob\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"naturezaId\">{{'labels.cfop' | translate}}</label>\r\n                            <app-pesquisa-natureza id=\"naturezaId\" name=\"naturezaId\" flagVeiculo=\"N\"\r\n                                [(ngModel)]=\"data.naturezaId\" [disabled]=\"true\">\r\n                            </app-pesquisa-natureza>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"row\">\r\n                    <div class=\"col-lg-2\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"docto\">{{'labels.docto' |\r\n                                translate}}</label>\r\n                            <input type=\"text\" id=\"docto\" name=\"docto\" class=\"form-control form-control-sm\"\r\n                                [(ngModel)]=\"data.docto\" maxlength=\"9\" mask=\"999999999\" [disabled]=\"true\"\r\n                                [required]=\"false\" data-title=\"{{'labels.docto' | translate}}\">\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"col-lg-2\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label>{{'labels.serie' | translate}}</label>\r\n                            <app-combo-serie-nota id=\"serie\" name=\"serie\" [(ngModel)]=\"data.serieNotaId\"\r\n                                [disabled]=\"true\">\r\n                            </app-combo-serie-nota>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"col-lg-2\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"emissao\">{{'labels.emissao' |\r\n                                translate}}</label>\r\n                            <input id=\"dtDocto\" name=\"dtDocto\" value=\"{{data.dtDocto | date:'dd/MM/yyyy'}}\"\r\n                                class=\"form-control form-control-sm\" disabled>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"col-lg-2\" *ngIf=\"constants.configBal.infPesoFob\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"metrolife\">{{'labels.metrolife' | translate}}</label>\r\n                            <input type=\"text\" id=\"metrolife\" name=\"metrolife\" class=\"form-control form-control-sm\"\r\n                                [(ngModel)]=\"data.metrolife\" [disabled]=\"true\">\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"row\">\r\n                    <div class=\"col-lg-2\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"quantidDoc\">{{'labels.quantidDoc' | translate}} {{\r\n                                lbUnidade }}</label>\r\n                            <input type=\"text\" id=\"quantidDoc\" name=\"quantidDoc\" class=\"form-control form-control-sm\"\r\n                                [(ngModel)]=\"data.quantidDoc\" [disabled]=\"true\" required\r\n                                data-title=\"{{'labels.quantidDoc' | translate}}\" currencyMask\r\n                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"col-lg-2\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"pesoDoc\">{{'labels.pesoDoc' | translate}}</label>\r\n                            <input type=\"text\" id=\"pesoDoc\" name=\"pesoDoc\" class=\"form-control form-control-sm\"\r\n                                [(ngModel)]=\"data.pesoDoc\" [disabled]=\"true\" required\r\n                                data-title=\"{{'labels.pesoDoc' | translate}}\" currencyMask\r\n                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"col-lg-2\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"pesoRateio\">{{'labels.pesoRateio' | translate}}</label>\r\n                            <input type=\"text\" id=\"pesoRateio\" name=\"pesoRateio\" class=\"form-control form-control-sm\"\r\n                                [(ngModel)]=\"data.pesoRateio\" [disabled]=\"true\" required\r\n                                data-title=\"{{'labels.pesoRateio' | translate}}\" currencyMask\r\n                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"col-lg-2\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"vlNota\">{{'labels.total' | translate}}</label>\r\n                            <input type=\"text\" id=\"vlNota\" name=\"vlNota\" class=\"form-control form-control-sm\"\r\n                                [(ngModel)]=\"data.vlNota\" [disabled]=\"true\" required\r\n                                data-title=\"{{'labels.total' | translate}}\" currencyMask\r\n                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\">\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"col-lg-2\" *ngIf=\"constants.configBal.infPesoFob\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"contrato\">{{'labels.contrato' | translate}}</label>\r\n                            <input type=\"text\" id=\"contrato\" name=\"contrato\" class=\"form-control form-control-sm\"\r\n                                [(ngModel)]=\"data.contrato\" [disabled]=\"true\">\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"row\">\r\n                    <div class=\"col-lg-10\">\r\n                        <div class=\"card border-0\" widget=\"\">\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-8\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label for=\"lacreAmostra\">{{'labels.lacreAmostra' | translate}}</label>\r\n                                        <input type=\"text\" id=\"lacreAmostra\" name=\"lacreAmostra\"\r\n                                            class=\"form-control form-control-sm\" [(ngModel)]=\"data.lacreAmostra\"\r\n                                            [disabled]=\"true\">\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-8\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label for=\"observ\">{{'labels.observacao' | translate}}</label>\r\n                                        <input type=\"text\" id=\"observ\" name=\"observ\"\r\n                                            class=\"form-control form-control-sm\" [(ngModel)]=\"data.observ\"\r\n                                            [disabled]=\"true\">\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </form>\r\n</div>\r\n<div class=\"row mt-2\" *ngIf=\"!showAdd\">\r\n    <div class=\"col-lg-12\">\r\n        <div class=\"table-overflow\">\r\n            <table class=\"table table-striped table-hover form-control-sm\">\r\n                <thead>\r\n                    <tr>\r\n                        <th class=\"text-center\">{{ 'labels.autorizacao' | translate }}</th>\r\n                        <th class=\"text-center\">{{ 'labels.ficha' | translate }}</th>\r\n                        <th class=\"text-center\">{{ 'labels.cliente' | translate }}</th>\r\n                        <th class=\"text-center\">{{ 'labels.emitente' | translate }}</th>\r\n                        <th class=\"text-center\">{{ 'labels.lote' | translate }}</th>\r\n                        <th class=\"text-center\">{{ 'labels.docto' | translate }}</th>\r\n                        <th class=\"text-center\">{{ 'labels.serie' | translate }}</th>\r\n                        <th class=\"text-center\">{{ 'labels.emissao' | translate }}</th>\r\n                        <th class=\"text-center\">{{ 'labels.peso' | translate }}</th>\r\n                        <th class=\"text-center\">{{ 'labels.quantidade' | translate }}</th>\r\n                    </tr>\r\n                </thead>\r\n                <tbody>\r\n                    <tr *ngFor=\"let c of dados | removeExcluidos\" class=\"clickable\"\r\n                        [ngClass]=\"{ 'info' : c === dataAux }\" (click)=\"(dataAux = c)\">\r\n                        <td class=\"text-center\">{{c.opDescargaId}}</td>\r\n                        <td class=\"text-center\">{{c.ticketOrigem}}</td>\r\n                        <td class=\"text-center\">{{c.cliente?.fantasia}}</td>\r\n                        <td class=\"text-center\">{{c.emitente?.fantasia}}</td>\r\n                        <td class=\"text-center\">{{c.loteId}}</td>\r\n                        <td class=\"text-center\">{{c.docto}}</td>\r\n                        <td class=\"text-center\">{{c.serieNotaId}}</td>\r\n                        <td class=\"text-center\">{{c.dtDocto | date:'dd/MM/yyyy' }}</td>\r\n                        <td class=\"text-center\">{{c.pesoDoc | formatCurrency: 0}}</td>\r\n                        <td class=\"text-center\">{{c.quantid | formatCurrency: 0}}</td>\r\n                    </tr>\r\n                    <tr *ngIf=\"!dados || dados.length === 0\">\r\n                        <th colspan=\"9\">\r\n                            {{'messages.nenhumRegistroEncontrado' | translate }}\r\n                        </th>\r\n                    </tr>\r\n                </tbody>\r\n            </table>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-report/requisicao-descargas-report.component.html":
/*!***************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-report/requisicao-descargas-report.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=\"requisicao-descargas-report-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.relatorio' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12 col-md-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"tipo\">{{\"labels.tipo\" | translate }}</label>\r\n                                <select id=\"tipo\" name=\"tipo\" [(ngModel)]=\"data.tipoRel\"\r\n                                    class=\"form-control form-control-sm\">\r\n                                    <option value=\"0\">{{ 'labels.impressaoRequisicao' | translate }}</option>\r\n                                    <option value=\"1\">{{ 'labels.impressaoTicket' | translate }}</option>\r\n                                </select>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"button\" (click)=\"onSubmit(form)\">{{ 'buttons.gerar' |\r\n                        translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-altera-dados/requisicao-descargas-altera-dados.component.ts":
/*!***********************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-altera-dados/requisicao-descargas-altera-dados.component.ts ***!
  \***********************************************************************************************************************************************************/
/*! exports provided: RequisicaoDescargaAlteraDadosComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RequisicaoDescargaAlteraDadosComponent", function() { return RequisicaoDescargaAlteraDadosComponent; });
/* 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 _pages_cadastro_modelo_nota_modelo_nota_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../../../../../../pages/cadastro/modelo-nota/modelo-nota.service */ "./src/app/pages/cadastro/modelo-nota/modelo-nota.service.ts");
/* harmony import */ var _pages_controle_nota_entrada_nota_entrada_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../../../../../../pages/controle/nota-entrada/nota-entrada.service */ "./src/app/pages/controle/nota-entrada/nota-entrada.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./../../../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/boolean-utils/boolean-utils.static.service */ "./src/app/shared/services/funcoes/boolean-utils/boolean-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _requisicao_descargas_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../requisicao-descargas.service */ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas.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 RequisicaoDescargaAlteraDadosComponent = /** @class */ (function () {
    function RequisicaoDescargaAlteraDadosComponent(service, messageService, funcoesService, modeloNotaService, notaFiscalService) {
        this.service = service;
        this.messageService = messageService;
        this.funcoesService = funcoesService;
        this.modeloNotaService = modeloNotaService;
        this.notaFiscalService = notaFiscalService;
        this.out = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.modNotas = [];
        this.mensagens = [];
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        this.showTable = true;
    }
    RequisicaoDescargaAlteraDadosComponent.prototype.open = function (requisicaoDescargaId) {
        var _this = this;
        this.showTable = true;
        this.modNotas = [];
        this.modeloNotaService.get().subscribe(function (resp) {
            if (resp) {
                _this.modNotas = resp.filter(function (val) {
                    if (val.flagAtivo === "S" && val.sitReg !== 'E') {
                        return val;
                    }
                });
            }
        });
        this.preLoad(requisicaoDescargaId, function () {
            _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["ModalUtilsStaticService"].openModal("requisicao-descargas-altera-dados-dialog");
        });
    };
    RequisicaoDescargaAlteraDadosComponent.prototype.preLoad = function (requisicaoDescargaId, callBack) {
        var _this = this;
        this.service._getById(requisicaoDescargaId).subscribe(function (r) { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                this.data = r;
                if (callBack) {
                    callBack();
                }
                return [2 /*return*/];
            });
        }); });
    };
    RequisicaoDescargaAlteraDadosComponent.prototype.onSubmit = function (form) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        if (!this.validaChaveNfe()) {
            return;
        }
        this.messageService.confirm("titles.requisicaoDescargas", "messages.confirmaAlteracaoDeDados", null, function () {
            _this.service.alteraDadosNota({
                requisicaoDescargaId: _this.nota.requisicaoDescargaId,
                item: _this.nota.requisicaoDescargaItemId,
                modNota: _this.nota.modNota,
                chaveNFE: _this.nota.chaveNfe,
                dtEmissao: _this.nota.dataDocumento,
                nota: _this.nota.docto,
                serieNF: _this.nota.serie,
                quantidDoc: _this.nota.quantidDoc
            }).subscribe(function (resp) {
                if (!resp.isValid) {
                    _this.mensagens = _this.messageService.validationResult(resp);
                    _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("backError").emit(_this.mensagens);
                    return;
                }
                _this.messageService.saveSuccess("titles.requisicaoDescargas");
                _this.preLoad(_this.nota.requisicaoDescargaId, function () {
                    _this.canItem();
                    _this.out.emit();
                });
            });
        });
    };
    RequisicaoDescargaAlteraDadosComponent.prototype.validaDtEmissao = function (params) {
        if (_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["DateTimeUtilsStaticService"].maiorAHoje(params.dtEmissao)) {
            this.messageService.warning("titles.requisicaoDescargas", "messages.dataNaoPodeSerMaiorQueAtual");
            return;
        }
    };
    RequisicaoDescargaAlteraDadosComponent.prototype.selectedModeloNota = function (e) {
        if (!e || (e && (e.target.value === "0" || e.target.value === ""))) {
            return;
        }
        this.data.chaveNFE = null;
    };
    RequisicaoDescargaAlteraDadosComponent.prototype.validaChaveNfe = function () {
        if (this.funcoesService.isNotUndefinedOrNull(this.nota) && this.funcoesService.isNotUndefinedOrNull(this.nota.chaveNfe)) {
            if (this.funcoesService.stringUtils.isEmpty(this.nota.docto)) {
                this.nota.docto = +this.funcoesService.getNumeroNota(this.nota.chaveNfe);
            }
            if (this.funcoesService.stringUtils.isEmpty(this.nota.serie)) {
                this.nota.serie = this.funcoesService.getSerieNota(this.nota.chaveNfe);
            }
            var result = this.funcoesService.validaChaveNFe(this.nota.chaveNfe, this.nota.emitente, this.nota.docto, this.nota.serie);
            if (!result) {
                this.messageService.warning("titles.validacao", "messages.chaveNfeInvalida");
                return false;
            }
            return true;
        }
        return false;
    };
    RequisicaoDescargaAlteraDadosComponent.prototype.importarDanfe = function (chave) {
        var _this = this;
        if (this.funcoesService.isUndefinedOrNull(chave) || (!this.funcoesService.isUndefinedOrNull(chave) && chave.trim() === '')) {
            this.messageService.info('labels.chaveNFE', 'messages.chaveNfeDeveSerInformada');
            return;
        }
        if (!this.validaChaveNfe())
            return;
        this.funcoesService.nfeHelper.importaDanfe({
            "chave": chave,
            "destinatarioIdCliente": this.data.destinatarioIdCliente
        })
            .subscribe(function (result) {
            if (!result.validationResult.isValid) {
                _this.mensagens = _this.messageService.validationResult(result.validationResult);
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("backError").emit(_this.mensagens);
                return;
            }
            _this.nota.nfeAuto = "S";
            _this.nota.serie = result.serie;
            _this.nota.docto = result.numero;
            _this.nota.dataDocumento = result.dtEmissao;
        });
    };
    RequisicaoDescargaAlteraDadosComponent.prototype.validaNota = function () {
        var _this = this;
        if (this.funcoesService.isNotUndefinedOrNull(this.nota)) {
            if (this.nota.docto !== this.docto) {
                this.messageService.confirm("titles.requisicaoDescargas", "messages.numeroNotaDifAutDescargaDesejaContinuar", null, function () {
                    if (_this.funcoesService.isNotUndefinedOrNull(_this.nota.nota)) {
                        _this.notaFiscalService.verificaNotaLiberada({
                            nota: _this.nota.docto,
                            destinatarioIdCliente: _this.data.destinatarioIdCliente,
                            destinatarioIdEmitente: 0,
                            serieNf: _this.nota.serie,
                            modNota: _this.nota.modNotaverificaNotaLiberada
                        }).subscribe(function (resp) {
                            if (_this.funcoesService.isPositive(resp)) {
                                _this.messageService.confirm("titles.requisicaoDescargas", "messages.notaFiscalJaLancadaDesejaContinuar", null, function () { }, false, function () { _this.nota.nota = _this.nota; });
                            }
                        });
                    }
                }, false, function () { return _this.data.nota = _this.nota; });
            }
        }
    };
    RequisicaoDescargaAlteraDadosComponent.prototype.editItem = function (nota) {
        this.showTable = false;
        this.nota = nota;
        this.nota.modNota = nota.modeloNotaId;
        this.nota.serie = nota.serieNotaId;
        this.nota.dataDocumento = nota.dtDocto;
        this.docto = nota.docto;
    };
    RequisicaoDescargaAlteraDadosComponent.prototype.canItem = function () {
        this.nota = undefined;
        this.showTable = true;
    };
    Object.defineProperty(RequisicaoDescargaAlteraDadosComponent.prototype, "isRequiredDadosNfe", {
        get: function () {
            if (!this.data)
                return false;
            return this.data.modNota === "55";
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(RequisicaoDescargaAlteraDadosComponent.prototype, "isDisabledDanfeImportada", {
        get: function () {
            if (!this.data)
                return true;
            if (_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["BooleanUtilsStaticService"].toBoolean(this.data.nfeAuto))
                return true;
            if (this.isRequiredDadosNfe && _shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["BooleanUtilsStaticService"].toBoolean(this.importaDanfeTmp))
                return true;
            return false;
        },
        enumerable: true,
        configurable: true
    });
    RequisicaoDescargaAlteraDadosComponent.ctorParameters = function () { return [
        { type: _requisicao_descargas_service__WEBPACK_IMPORTED_MODULE_10__["RequisicaoDescargasService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"] },
        { type: _pages_cadastro_modelo_nota_modelo_nota_service__WEBPACK_IMPORTED_MODULE_2__["ModeloNotaService"] },
        { type: _pages_controle_nota_entrada_nota_entrada_service__WEBPACK_IMPORTED_MODULE_3__["NotaEntradaService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], RequisicaoDescargaAlteraDadosComponent.prototype, "out", void 0);
    RequisicaoDescargaAlteraDadosComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-requisicao-descargas-altera-dados",
            template: __importDefault(__webpack_require__(/*! raw-loader!./requisicao-descargas-altera-dados.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-altera-dados/requisicao-descargas-altera-dados.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_requisicao_descargas_service__WEBPACK_IMPORTED_MODULE_10__["RequisicaoDescargasService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"],
            _pages_cadastro_modelo_nota_modelo_nota_service__WEBPACK_IMPORTED_MODULE_2__["ModeloNotaService"],
            _pages_controle_nota_entrada_nota_entrada_service__WEBPACK_IMPORTED_MODULE_3__["NotaEntradaService"]])
    ], RequisicaoDescargaAlteraDadosComponent);
    return RequisicaoDescargaAlteraDadosComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-filter/requisicao-descargas-filter.component.ts":
/*!***********************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-filter/requisicao-descargas-filter.component.ts ***!
  \***********************************************************************************************************************************************/
/*! exports provided: RequisicaoDescargasFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RequisicaoDescargasFilterComponent", function() { return RequisicaoDescargasFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _requisicao_descargas_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../requisicao-descargas.service */ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
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 RequisicaoDescargasFilterComponent = /** @class */ (function () {
    function RequisicaoDescargasFilterComponent(service) {
        this.service = service;
        this.outFilter = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    RequisicaoDescargasFilterComponent.prototype.onSubmit = function (form) {
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(null);
        if (form.invalid) {
            return;
        }
        jQuery("#rds-filter-dialog").modal("hide");
        this.outFilter.emit(true);
    };
    RequisicaoDescargasFilterComponent.prototype.trataSituacao = function (situacoes) {
        this.service.filtro.sitReg = situacoes;
    };
    RequisicaoDescargasFilterComponent.ctorParameters = function () { return [
        { type: _requisicao_descargas_service__WEBPACK_IMPORTED_MODULE_1__["RequisicaoDescargasService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], RequisicaoDescargasFilterComponent.prototype, "outFilter", void 0);
    RequisicaoDescargasFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-requisicao-descargas-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./requisicao-descargas-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-filter/requisicao-descargas-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_requisicao_descargas_service__WEBPACK_IMPORTED_MODULE_1__["RequisicaoDescargasService"]])
    ], RequisicaoDescargasFilterComponent);
    return RequisicaoDescargasFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-filter/requisicao-descargas-filter.model.ts":
/*!*******************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-filter/requisicao-descargas-filter.model.ts ***!
  \*******************************************************************************************************************************************/
/*! exports provided: RequisicaoDescargasFilter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RequisicaoDescargasFilter", function() { return RequisicaoDescargasFilter; });
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

var RequisicaoDescargasFilter = /** @class */ (function () {
    function RequisicaoDescargasFilter() {
        this.selectedItems = [
            { id: "A", itemName: "Aberto" },
            { id: "P", itemName: "Aguardando 2a. Pesagem" },
            { id: "S", itemName: "Aguardando Análise" },
            { id: "F", itemName: "Aguardando Conferência" },
            { id: "C", itemName: "Operação Concluída" },
        ];
        this.dataI = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].addDays(new Date(), -30);
        this.dataF = new Date();
        this.destinatarioIdCliente = "";
        this.requisicaoDescargaId = "";
        this.localOperacaoId = "";
        this.materialId = "";
        this.cadastroPlacaId = "";
        this.outras = "N";
        this.sitReg = "";
    }
    return RequisicaoDescargasFilter;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-form/requisicao-descargas-form.component.ts":
/*!*******************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-form/requisicao-descargas-form.component.ts ***!
  \*******************************************************************************************************************************************/
/*! exports provided: RequisicaoDescargasFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RequisicaoDescargasFormComponent", function() { return RequisicaoDescargasFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/boolean-utils/boolean-utils.static.service */ "./src/app/shared/services/funcoes/boolean-utils/boolean-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/object-utils/object-utils.static.service */ "./src/app/shared/services/funcoes/object-utils/object-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __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_7__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _requisicao_descargas_item_requisicao_descargas_item_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./../requisicao-descargas-item/requisicao-descargas-item.model */ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-item/requisicao-descargas-item.model.ts");
/* harmony import */ var _requisicao_descargas_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./../requisicao-descargas.constants */ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas.constants.ts");
/* harmony import */ var _requisicao_descargas_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./../requisicao-descargas.model */ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas.model.ts");
/* harmony import */ var _requisicao_descargas_permissoes__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./../requisicao-descargas.permissoes */ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas.permissoes.ts");
/* harmony import */ var _requisicao_descargas_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./../requisicao-descargas.service */ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas.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 RequisicaoDescargasFormComponent = /** @class */ (function (_super) {
    __extends(RequisicaoDescargasFormComponent, _super);
    function RequisicaoDescargasFormComponent(router, message, activatedRoute, service, permissoesUtils, configuracao, funcoesService) {
        var _this = _super.call(this, new _requisicao_descargas_constants__WEBPACK_IMPORTED_MODULE_10__["RequisicaoDescargasConstants"](), funcoesService) || this;
        _this.router = router;
        _this.message = message;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.permissoesUtils = permissoesUtils;
        _this.configuracao = configuracao;
        _this.funcoesService = funcoesService;
        _this.data = new _requisicao_descargas_model__WEBPACK_IMPORTED_MODULE_11__["RequisicaoDescargas"]();
        _this.constantes = new _requisicao_descargas_constants__WEBPACK_IMPORTED_MODULE_10__["RequisicaoDescargasConstants"]();
        _this.mascaras = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.pageRoute = "/especificos/cargill/consultas/requisicaoDescargas";
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.tipoRequisicao = params.tipoRequisicao;
            }
        });
        return _this;
    }
    RequisicaoDescargasFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.item = new _requisicao_descargas_item_requisicao_descargas_item_model__WEBPACK_IMPORTED_MODULE_9__["RequisicaoDescargasItem"]();
        this.configuracao.getConfig(this.constantes.listaParam, function () { return _this.loadConfig(); });
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () { return __awaiter(_this, void 0, void 0, function () {
            var id, resp;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        id = this.activatedRoute.snapshot.paramMap.get("id");
                        return [4 /*yield*/, this.service._getById(id).toPromise()];
                    case 1:
                        resp = _a.sent();
                        this.trataData(resp);
                        return [2 /*return*/];
                }
            });
        }); }, function () { return _this.permissoesUtils.back(); });
    };
    RequisicaoDescargasFormComponent.prototype.loadConfig = function () {
        this.constantes.configBal.pesagemAutomatica = app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["BooleanUtilsStaticService"].toBoolean(this.configuracao.lerConfig("BAL", "PesagemAutomatica"));
        this.constantes.configCtv.observPortal = app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["BooleanUtilsStaticService"].toBoolean(this.configuracao.lerConfig("CTV", "ObservPortal"));
    };
    RequisicaoDescargasFormComponent.prototype.trataData = function (data) {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                if (!data)
                    return [2 /*return*/];
                this.data = app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["ObjectUtilsStaticService"].clone(data);
                this.data.requisicaoDescargaItems.map(function (s, idx) { return (s.sequencia = idx + 1); });
                return [2 /*return*/];
            });
        });
    };
    RequisicaoDescargasFormComponent.prototype.selectedItem = function (event) {
        this.item = event;
    };
    RequisicaoDescargasFormComponent.prototype.getById = function (id) {
        var _this = this;
        this.service.getById(id).subscribe(function (resp) {
            _this.data = resp;
            if (_this.funcoesService.isUndefinedOrNull(_this.data)) {
                _this.message.warning("titles.requisicaoDescarga", "messages.idInformadoNaoExiste");
                _this.back();
            }
        });
    };
    RequisicaoDescargasFormComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate(["" + this.target + this.pageRoute]);
    };
    RequisicaoDescargasFormComponent.prototype.refreshItens = function (itens) {
        var _this = this;
        this.data.requisicaoDescargaItems = itens;
        this.data.kilos = 0;
        this.data.requisicaoDescargaItems.forEach(function (e) {
            _this.data.kilos = +_this.data.kilos + +e.pesoDoc;
        });
    };
    Object.defineProperty(RequisicaoDescargasFormComponent.prototype, "controle20", {
        get: function () {
            if (!this.data.material)
                return false;
            return app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["BooleanUtilsStaticService"].toBoolean(this.data.material.controle20);
        },
        enumerable: true,
        configurable: true
    });
    RequisicaoDescargasFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _requisicao_descargas_service__WEBPACK_IMPORTED_MODULE_13__["RequisicaoDescargasService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_4__["ConfiguracaoFacade"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"] }
    ]; };
    RequisicaoDescargasFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-requisicao-descargas-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./requisicao-descargas-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-form/requisicao-descargas-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _requisicao_descargas_service__WEBPACK_IMPORTED_MODULE_13__["RequisicaoDescargasService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_4__["ConfiguracaoFacade"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"]])
    ], RequisicaoDescargasFormComponent);
    return RequisicaoDescargasFormComponent;
}(_requisicao_descargas_permissoes__WEBPACK_IMPORTED_MODULE_12__["RequisicaoDescargasPermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-index/requisicao-descargas-index.component.ts":
/*!*********************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-index/requisicao-descargas-index.component.ts ***!
  \*********************************************************************************************************************************************/
/*! exports provided: RequisicaoDescargasIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RequisicaoDescargasIndexComponent", function() { return RequisicaoDescargasIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_pages_veiculo_entrada_veiculo_entrada_veiculo_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pages/veiculo/entrada-veiculo/entrada-veiculo.service */ "./src/app/pages/veiculo/entrada-veiculo/entrada-veiculo.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__ = __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_5__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/boolean-utils/boolean-utils.static.service */ "./src/app/shared/services/funcoes/boolean-utils/boolean-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_11__ = __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_12__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _requisicao_descargas_filter_requisicao_descargas_filter_model__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../requisicao-descargas-filter/requisicao-descargas-filter.model */ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-filter/requisicao-descargas-filter.model.ts");
/* harmony import */ var _requisicao_descargas_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../requisicao-descargas.constants */ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas.constants.ts");
/* harmony import */ var _requisicao_descargas_model__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../requisicao-descargas.model */ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas.model.ts");
/* harmony import */ var _requisicao_descargas_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../requisicao-descargas.service */ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas.service.ts");
/* harmony import */ var _requisicao_descargas_index_model__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./requisicao-descargas-index.model */ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-index/requisicao-descargas-index.model.ts");
/* harmony import */ var _requisicao_descargas_altera_dados_requisicao_descargas_altera_dados_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../requisicao-descargas-altera-dados/requisicao-descargas-altera-dados.component */ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-altera-dados/requisicao-descargas-altera-dados.component.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 RequisicaoDescargasIndexComponent = /** @class */ (function (_super) {
    __extends(RequisicaoDescargasIndexComponent, _super);
    function RequisicaoDescargasIndexComponent(router, service, configuracao, datatables, message, permissoesUtils, funcoes, loginService, entradaVeiculoService) {
        var _this = _super.call(this, new _requisicao_descargas_constants__WEBPACK_IMPORTED_MODULE_14__["RequisicaoDescargasConstants"](), funcoes) || this;
        _this.router = router;
        _this.service = service;
        _this.configuracao = configuracao;
        _this.datatables = datatables;
        _this.message = message;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoes = funcoes;
        _this.loginService = loginService;
        _this.entradaVeiculoService = entradaVeiculoService;
        _this.requisicaoDescarga = new _requisicao_descargas_index_model__WEBPACK_IMPORTED_MODULE_17__["RequisicaoDescargasIndex"]();
        _this.filtroReport = new _requisicao_descargas_model__WEBPACK_IMPORTED_MODULE_15__["RequisicaoDescargasFilterReport"]();
        _this.constantes = new _requisicao_descargas_constants__WEBPACK_IMPORTED_MODULE_14__["RequisicaoDescargasConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.pageRoute = "/especificos/cargill/consultas/requisicaoDescargas";
        _this.callPosCarregamento = function () {
            if (!_this.configuracao.isLoadConfig())
                return;
            _this.service.configUni.obrChaveNFeEnt = _this.configuracao.boolean("UNI", "ObrChaveNFeEnt");
            _this.service.configUni.obrigaSerieNf = _this.configuracao.boolean("STO", "ObrigaSerieNf");
        };
        _this.alteraDadosNota = function () {
            app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("formError").emit(null);
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 4, function () {
                _this.modalAlteraDadosNota.open(_this.requisicaoDescarga.requisicaoDescargaId);
            });
        };
        return _this;
    }
    RequisicaoDescargasIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.init();
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (!!this.loginService.isTokenExpired()) return [3 /*break*/, 2];
                        if (this.funcoes.abrirFiltro) {
                            this.service.filtro = new _requisicao_descargas_filter_requisicao_descargas_filter_model__WEBPACK_IMPORTED_MODULE_13__["RequisicaoDescargasFilter"]();
                            this.funcoes.openModal("rds-filter-dialog");
                        }
                        return [4 /*yield*/, this.refresh()];
                    case 1:
                        _a.sent();
                        _a.label = 2;
                    case 2: return [2 /*return*/];
                }
            });
        }); }, function () { return _this.permissoesUtils.back(); });
        _super.prototype.addFuncoes.call(this, [
            { action: 'alteraDadosNota', func: function () { return _this.alteraDadosNota; } },
        ]);
    };
    RequisicaoDescargasIndexComponent.prototype.init = function () {
        this.configuracao.getConfig(this.constantes.listaParam, this.callPosCarregamento);
    };
    RequisicaoDescargasIndexComponent.prototype.executaFiltrar = function (event) {
        if (event)
            this.refresh();
    };
    RequisicaoDescargasIndexComponent.prototype.filtrar = function () {
        jQuery("#rds-filter-dialog").modal("show");
    };
    RequisicaoDescargasIndexComponent.prototype.refresh = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _a, columns;
            var _this = this;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        _a = this;
                        return [4 /*yield*/, this.service._get(this.service.filtro).toPromise()];
                    case 1:
                        _a.dados = _b.sent();
                        columns = [
                            this.datatables.getDataString("requisicaoDescargaId", "registro"),
                            this.datatables.getDataString("cadastroPlacaIdCavalo", "placaCavalo"),
                            this.datatables.getDataDateTime("dtRequisicao", "emissao", "DD/MM/YYYY HH:mm:ss", "15%"),
                            this.datatables.getDataString("fantasiaMaterial", "produto"),
                            this.datatables.getDataString("fantasiaTransportadora", "transportadora"),
                            this.datatables.getDataDateTime("dtTriagem", "dtTriagem", "DD/MM/YYYY HH:mm:ss", "15%"),
                            this.datatables.getDataString("situacao", "situacao"),
                        ];
                        this.datatables.toDataTable({ tableId: "dtRequisicaoDescargas", columns: columns, data: this.dados }, function (aData) { return (_this.requisicaoDescarga = aData); });
                        return [2 /*return*/];
                }
            });
        });
    };
    RequisicaoDescargasIndexComponent.prototype.outConsulta = function (event) {
        if (event) {
            this.refresh();
        }
    };
    Object.defineProperty(RequisicaoDescargasIndexComponent.prototype, "isDesmembrado", {
        get: function () {
            if (!this.requisicaoDescarga)
                return false;
            return app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["BooleanUtilsStaticService"].toBoolean(this.requisicaoDescarga.flagDesmembrado);
        },
        enumerable: true,
        configurable: true
    });
    RequisicaoDescargasIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            if (!_this.requisicaoDescarga.requisicaoDescargaId) {
                _this.message.warning("titles.requisicaoDescarga", "messages.selecioneUmRegistro");
                return;
            }
            _this.filtroReport.requisicaoDescargaId = _this.requisicaoDescarga.requisicaoDescargaId;
            jQuery("#requisicao-descargas-report-dialog").modal("show");
        });
    };
    RequisicaoDescargasIndexComponent.prototype.itemSelecionado = function () {
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["NumberUtilsStaticService"].isNotPositive(this.requisicaoDescarga.requisicaoDescargaId)) {
            this.message.warning("titles.requisicaoDescarga", "messages.selecioneUmRegistro");
            return false;
        }
        return true;
    };
    RequisicaoDescargasIndexComponent.prototype.detail = function () {
        if (!this.itemSelecionado())
            return;
        this.router.navigate(["" + this.target + this.pageRoute, "detail", this.requisicaoDescarga.requisicaoDescargaId,]);
    };
    RequisicaoDescargasIndexComponent.prototype.getPhotoOCR = function () {
        if (!this.itemSelecionado())
            return;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("emiFotoOcr").emit({ registro: this.requisicaoDescarga.requisicaoDescargaId, tipo: "R", });
    };
    RequisicaoDescargasIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    RequisicaoDescargasIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _requisicao_descargas_service__WEBPACK_IMPORTED_MODULE_16__["RequisicaoDescargasService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_8__["ConfiguracaoFacade"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_5__["DatatablesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_12__["MessageService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_11__["PermissoesUtilsService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_9__["FuncoesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] },
        { type: app_pages_veiculo_entrada_veiculo_entrada_veiculo_service__WEBPACK_IMPORTED_MODULE_3__["EntradaVeiculoService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_requisicao_descargas_altera_dados_requisicao_descargas_altera_dados_component__WEBPACK_IMPORTED_MODULE_18__["RequisicaoDescargaAlteraDadosComponent"], { static: true }),
        __metadata("design:type", _requisicao_descargas_altera_dados_requisicao_descargas_altera_dados_component__WEBPACK_IMPORTED_MODULE_18__["RequisicaoDescargaAlteraDadosComponent"])
    ], RequisicaoDescargasIndexComponent.prototype, "modalAlteraDadosNota", void 0);
    RequisicaoDescargasIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-requisicao-descargas-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./requisicao-descargas-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-index/requisicao-descargas-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _requisicao_descargas_service__WEBPACK_IMPORTED_MODULE_16__["RequisicaoDescargasService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_8__["ConfiguracaoFacade"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_5__["DatatablesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_12__["MessageService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_11__["PermissoesUtilsService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_9__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"],
            app_pages_veiculo_entrada_veiculo_entrada_veiculo_service__WEBPACK_IMPORTED_MODULE_3__["EntradaVeiculoService"]])
    ], RequisicaoDescargasIndexComponent);
    return RequisicaoDescargasIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-index/requisicao-descargas-index.model.ts":
/*!*****************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-index/requisicao-descargas-index.model.ts ***!
  \*****************************************************************************************************************************************/
/*! exports provided: RequisicaoDescargasIndex */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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



/***/ }),

/***/ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-item/requisicao-descargas-item.component.ts":
/*!*******************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-item/requisicao-descargas-item.component.ts ***!
  \*******************************************************************************************************************************************/
/*! exports provided: RequisicaoDescargasItemComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RequisicaoDescargasItemComponent", function() { return RequisicaoDescargasItemComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_pages_cadastro_tanque_tanque_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/cadastro/tanque/tanque.model */ "./src/app/pages/cadastro/tanque/tanque.model.ts");
/* harmony import */ var app_pages_cadastro_tipo_documento_transp_tipo_documento_transp_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/cadastro/tipo-documento-transp/tipo-documento-transp.model */ "./src/app/pages/cadastro/tipo-documento-transp/tipo-documento-transp.model.ts");
/* harmony import */ var app_pages_cadastro_tipo_documento_transp_tipo_documento_transp_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pages/cadastro/tipo-documento-transp/tipo-documento-transp.service */ "./src/app/pages/cadastro/tipo-documento-transp/tipo-documento-transp.service.ts");
/* harmony import */ var app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/boolean-utils/boolean-utils.static.service */ "./src/app/shared/services/funcoes/boolean-utils/boolean-utils.static.service.ts");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
/* harmony import */ var _requisicao_descargas_item_validation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./requisicao-descargas-item.validation */ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-item/requisicao-descargas-item.validation.ts");
/* harmony import */ var _requisicao_descargas_item_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./requisicao-descargas-item.model */ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-item/requisicao-descargas-item.model.ts");
/* harmony import */ var _requisicao_descargas_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../requisicao-descargas.model */ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas.model.ts");
/* harmony import */ var _requisicao_descargas_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../requisicao-descargas.constants */ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas.constants.ts");
/* harmony import */ var _requisicao_descargas_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../requisicao-descargas.service */ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_pages_cadastro_lote_lote_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/pages/cadastro/lote/lote.service */ "./src/app/pages/cadastro/lote/lote.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_15__ = __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_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_pages_cadastro_tanque_tanque_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! app/pages/cadastro/tanque/tanque.service */ "./src/app/pages/cadastro/tanque/tanque.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_pages_cadastro_lote_lote_model__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! app/pages/cadastro/lote/lote.model */ "./src/app/pages/cadastro/lote/lote.model.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




















var RequisicaoDescargasItemComponent = /** @class */ (function () {
    function RequisicaoDescargasItemComponent(funcoesService, messageService, loteService, loginService, requisicaoDescargasService, permissoesUtils, configuracao, tanqueService, tipoDocumentoTranspService) {
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.loteService = loteService;
        this.loginService = loginService;
        this.requisicaoDescargasService = requisicaoDescargasService;
        this.permissoesUtils = permissoesUtils;
        this.configuracao = configuracao;
        this.tanqueService = tanqueService;
        this.tipoDocumentoTranspService = tipoDocumentoTranspService;
        this.dataResult = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.selectedItem = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.data = new _requisicao_descargas_item_model__WEBPACK_IMPORTED_MODULE_7__["RequisicaoDescargasItem"]();
        this.dataAux = new _requisicao_descargas_item_model__WEBPACK_IMPORTED_MODULE_7__["RequisicaoDescargasItem"]();
        this.constants = new _requisicao_descargas_constants__WEBPACK_IMPORTED_MODULE_9__["RequisicaoDescargasConstants"]();
        this.showAdd = false;
        this.actionForm = 0;
        this.hasDados = false;
        this.localOperacaoId = 0;
        this.mensagens = [];
        this.lbUnidade = "";
        this.isDisabledQuantid = false;
    }
    RequisicaoDescargasItemComponent.prototype.ngOnInit = function () {
        var _this = this;
        this._index = 0;
        this.configuracao.getConfig(this.constants.listaParam, function () {
            return _this.loadConfig();
        });
        this.validation = new _requisicao_descargas_item_validation__WEBPACK_IMPORTED_MODULE_6__["RequisicaoDescargasItemValidation"](this.messageService, this.configuracao, this.funcoesService);
    };
    RequisicaoDescargasItemComponent.prototype.loadConfig = function () {
        this.constants.configUni.obrChaveNFeEnt =
            app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["BooleanUtilsStaticService"].toBoolean(this.configuracao.lerConfig("UNI", "ObrChaveNFeEnt"));
        this.constants.configCtv.importaDANFE = app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["BooleanUtilsStaticService"].toBoolean(this.configuracao.lerConfig("CTV", "ImportaDANFE"));
        this.constants.configBal.calculaTotalNF =
            app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["BooleanUtilsStaticService"].toBoolean(this.configuracao.lerConfig("BAL", "CalculaTotalNF"));
        this.constants.configBal.infPesoFob = app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["BooleanUtilsStaticService"].toBoolean(this.configuracao.lerConfig("BAL", "InfPesoFob"));
        this.constants.configBal.naoPermiteAlterarChkLst =
            app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["BooleanUtilsStaticService"].toBoolean(this.configuracao.lerConfig("BAL", "NaoPermiteAlterarChkLst"));
        this.constants.configCtv.itemNoCheckList =
            app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["BooleanUtilsStaticService"].toBoolean(this.configuracao.lerConfig("CTV", "itemNoCheckList"));
        this.constants.configCtv.naoPermiteAlterarChkLst =
            app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["BooleanUtilsStaticService"].toBoolean(this.configuracao.lerConfig("CTV", "naoPermiteAlterarChkLst"));
    };
    RequisicaoDescargasItemComponent.prototype.edit = function () {
        this.showAdd = true;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_18__["ActionForm"].edit;
        this.data = this.dataAux;
        this.trataData();
    };
    RequisicaoDescargasItemComponent.prototype.detail = function () {
        this.showAdd = true;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_18__["ActionForm"].detail;
        this.data = this.dataAux;
        this.trataData();
    };
    RequisicaoDescargasItemComponent.prototype.trataData = function () {
        var _this = this;
        this.data.lote = new app_pages_cadastro_lote_lote_model__WEBPACK_IMPORTED_MODULE_19__["Lote"]();
        this.requisicaoDescarga.tanque = new app_pages_cadastro_tanque_tanque_model__WEBPACK_IMPORTED_MODULE_1__["Tanque"]();
        this.data.tipoDocumentoTransp = new app_pages_cadastro_tipo_documento_transp_tipo_documento_transp_model__WEBPACK_IMPORTED_MODULE_2__["TipoDocumentoTransp"]();
        Object(rxjs__WEBPACK_IMPORTED_MODULE_5__["forkJoin"])([
            this.loteService.getByLoteId(this.data.loteId),
            this.tanqueService.getById(btoa(this.requisicaoDescarga.tanqueId)),
            this.tipoDocumentoTranspService.getById(this.data.tipoDocumentoTranspId),
        ]).subscribe(function (resp) {
            if (resp[0])
                !!resp[0] ? (_this.data.lote = resp[0]) : new app_pages_cadastro_lote_lote_model__WEBPACK_IMPORTED_MODULE_19__["Lote"]();
            if (resp[1])
                !!resp[1] ? (_this.requisicaoDescarga.tanque = resp[1]) : new app_pages_cadastro_tanque_tanque_model__WEBPACK_IMPORTED_MODULE_1__["Tanque"]();
            if (resp[2])
                !!resp[2]
                    ? (_this.data.tipoDocumentoTransp = resp[2])
                    : new app_pages_cadastro_tipo_documento_transp_tipo_documento_transp_model__WEBPACK_IMPORTED_MODULE_2__["TipoDocumentoTransp"]();
            _this.isDisabledQuantid = app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["BooleanUtilsStaticService"].toBoolean(_this.requisicaoDescarga.tanque.movQuantid);
        });
    };
    RequisicaoDescargasItemComponent.prototype.back = function () {
        this.showAdd = false;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_18__["ActionForm"].index;
    };
    RequisicaoDescargasItemComponent.ctorParameters = function () { return [
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_11__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_12__["MessageService"] },
        { type: app_pages_cadastro_lote_lote_service__WEBPACK_IMPORTED_MODULE_13__["LoteService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_14__["LoginService"] },
        { type: _requisicao_descargas_service__WEBPACK_IMPORTED_MODULE_10__["RequisicaoDescargasService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_15__["PermissoesUtilsService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_16__["ConfiguracaoFacade"] },
        { type: app_pages_cadastro_tanque_tanque_service__WEBPACK_IMPORTED_MODULE_17__["TanqueService"] },
        { type: app_pages_cadastro_tipo_documento_transp_tipo_documento_transp_service__WEBPACK_IMPORTED_MODULE_3__["TipoDocumentoTranspService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _requisicao_descargas_model__WEBPACK_IMPORTED_MODULE_8__["RequisicaoDescargas"])
    ], RequisicaoDescargasItemComponent.prototype, "requisicaoDescarga", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Array)
    ], RequisicaoDescargasItemComponent.prototype, "dados", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], RequisicaoDescargasItemComponent.prototype, "disabled", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], RequisicaoDescargasItemComponent.prototype, "disabledOutrasDescarga", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], RequisicaoDescargasItemComponent.prototype, "dataResult", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _requisicao_descargas_item_model__WEBPACK_IMPORTED_MODULE_7__["RequisicaoDescargasItem"])
    ], RequisicaoDescargasItemComponent.prototype, "item", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], RequisicaoDescargasItemComponent.prototype, "selectedItem", void 0);
    RequisicaoDescargasItemComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-requisicao-descargas-item",
            template: __importDefault(__webpack_require__(/*! raw-loader!./requisicao-descargas-item.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-item/requisicao-descargas-item.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
        }),
        __metadata("design:paramtypes", [app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_11__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_12__["MessageService"],
            app_pages_cadastro_lote_lote_service__WEBPACK_IMPORTED_MODULE_13__["LoteService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_14__["LoginService"],
            _requisicao_descargas_service__WEBPACK_IMPORTED_MODULE_10__["RequisicaoDescargasService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_15__["PermissoesUtilsService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_16__["ConfiguracaoFacade"],
            app_pages_cadastro_tanque_tanque_service__WEBPACK_IMPORTED_MODULE_17__["TanqueService"],
            app_pages_cadastro_tipo_documento_transp_tipo_documento_transp_service__WEBPACK_IMPORTED_MODULE_3__["TipoDocumentoTranspService"]])
    ], RequisicaoDescargasItemComponent);
    return RequisicaoDescargasItemComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-item/requisicao-descargas-item.model.ts":
/*!***************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-item/requisicao-descargas-item.model.ts ***!
  \***************************************************************************************************************************************/
/*! exports provided: RequisicaoDescargasItem */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RequisicaoDescargasItem", function() { return RequisicaoDescargasItem; });
/* harmony import */ var _cadastro_lote_lote_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../cadastro/lote/lote.model */ "./src/app/pages/cadastro/lote/lote.model.ts");
/* harmony import */ var _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_1__ = __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 RequisicaoDescargasItem = /** @class */ (function (_super) {
    __extends(RequisicaoDescargasItem, _super);
    function RequisicaoDescargasItem(requisicaoDescargaId) {
        if (requisicaoDescargaId === void 0) { requisicaoDescargaId = 0; }
        var _this = _super.call(this) || this;
        _this.lote = new _cadastro_lote_lote_model__WEBPACK_IMPORTED_MODULE_0__["Lote"]();
        _this.requisicaoDescargaId = requisicaoDescargaId;
        return _this;
    }
    return RequisicaoDescargasItem;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_1__["BaseModel"]));



/***/ }),

/***/ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-item/requisicao-descargas-item.validation.ts":
/*!********************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-item/requisicao-descargas-item.validation.ts ***!
  \********************************************************************************************************************************************/
/*! exports provided: RequisicaoDescargasItemValidation */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RequisicaoDescargasItemValidation", function() { return RequisicaoDescargasItemValidation; });
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__);
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

var RequisicaoDescargasItemValidation = /** @class */ (function () {
    function RequisicaoDescargasItemValidation(message, configuracao, funcoes) {
        this.message = message;
        this.configuracao = configuracao;
        this.funcoes = funcoes;
        var objParam = [
            { 'sistema': 'CTR', 'parametros': ["DtSeguro"] },
        ];
        this.configuracao.getConfig(objParam);
    }
    RequisicaoDescargasItemValidation.prototype.getValidations = function (requisicaoDescarga, data) {
        var r = [];
        r.push(this.dtDoctoNaoPodeSerMaiorDtRequisicao({ "dtRequisicao": requisicaoDescarga.dtRequisicao, "dtDocto": data.dtDocto }));
        r.push(this.dtDoctoNPodeMaior180diasDtAtual({ "dtDocto": data.dtDocto }));
        r.push(this.vlNotaNaoPermitido({ "vlNota": data.vlNota, "quantidDoc": data.quantidDoc, "lote": data.lote }));
        return r.filter(function (v) { return v["isValid"] === false; });
    };
    RequisicaoDescargasItemValidation.prototype.validaChaveNfe = function (params, showError) {
        if (showError === void 0) { showError = false; }
        var r = { "isValid": true, "message": "" };
        if (params.modNotaId === "55") {
            if (this.funcoes.validaChaveNFe(params.chaveNfe, params.emitente, params.docto, params.serieNotaId)) {
                r.isValid = false;
                r.message = "messages.chaveNfeInvalida";
            }
        }
        if (!r.isValid && showError) {
            this.message.warning("titles.requisicaoDescarga", r.message);
        }
        return r;
    };
    RequisicaoDescargasItemValidation.prototype.dtDoctoNaoPodeSerMaiorDtRequisicao = function (params, showError) {
        if (showError === void 0) { showError = false; }
        var r = { "isValid": true, "message": "" };
        if (new Date(params.dtRequisicao).toDateString() > params.dtDocto) {
            r.isValid = false;
            r.message = "messages.dtDoctoNaoPodeSerMaiorDtRequisicao";
        }
        if (!r.isValid && showError) {
            this.message.warning("titles.requisicaoDescarga", r.message);
        }
        return r;
    };
    RequisicaoDescargasItemValidation.prototype.dtDoctoNPodeMaior180diasDtAtual = function (params, showError) {
        if (showError === void 0) { showError = false; }
        var r = { "isValid": true, "message": "" };
        if (params.dtEmissao > (moment__WEBPACK_IMPORTED_MODULE_0__().add(-180, "days").toDate())) {
            r.isValid = false;
            r.message = "messages.dtEmissaoNPodeMaior180diasDtAtual";
        }
        if (!r.isValid && showError) {
            this.message.warning("titles.requisicaoDescarga", r.message);
        }
        return r;
    };
    RequisicaoDescargasItemValidation.prototype.vlNotaNaoPermitido = function (params, showError) {
        if (showError === void 0) { showError = false; }
        var r = { "isValid": true, "message": "" };
        var vlNotaCalc = this.funcoes.numberUtils.round(params.quantidDoc * params.lote.precoArmazenado, 2);
        if ((params.vlNota - vlNotaCalc) > 1) {
            r.isValid = false;
            r.message = "messages.vlNotaNaoPermitido";
        }
        if (!r.isValid && showError) {
            this.message.warning("titles.requisicaoDescarga", r.message);
        }
        return r;
    };
    return RequisicaoDescargasItemValidation;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-report/requisicao-descargas-report.component.ts":
/*!***********************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-report/requisicao-descargas-report.component.ts ***!
  \***********************************************************************************************************************************************/
/*! exports provided: RequisicaoDescargasReportComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RequisicaoDescargasReportComponent", function() { return RequisicaoDescargasReportComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _requisicao_descargas_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../requisicao-descargas.model */ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas.model.ts");
/* harmony import */ var _requisicao_descargas_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../requisicao-descargas.constants */ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas.constants.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 RequisicaoDescargasReportComponent = /** @class */ (function () {
    function RequisicaoDescargasReportComponent(funcoesService) {
        this.funcoesService = funcoesService;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        this.constantes = new _requisicao_descargas_constants__WEBPACK_IMPORTED_MODULE_5__["RequisicaoDescargasConstants"]();
    }
    RequisicaoDescargasReportComponent.prototype.ngOnInit = function () {
        this.filtro = this.data;
    };
    RequisicaoDescargasReportComponent.prototype.onSubmit = function (form) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        switch (this.data.tipoRel) {
            case "0":
                this.constantes.reportId = "CAD0151";
                break;
            case "1":
                this.constantes.reportId = "CAD0149";
                break;
            default:
        }
        this.constantes.paramRelatorio = { regRequisicao: this.filtro.requisicaoDescargaId };
        this.funcoesService.reportInvoc.invocaRelatorio(this.constantes.reportId, this.constantes.reportTitulo, this.constantes.paramRelatorio);
        jQuery("#requisicao-descargas-report-dialog").modal("hide");
    };
    RequisicaoDescargasReportComponent.ctorParameters = function () { return [
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _requisicao_descargas_model__WEBPACK_IMPORTED_MODULE_4__["RequisicaoDescargasFilterReport"])
    ], RequisicaoDescargasReportComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], RequisicaoDescargasReportComponent.prototype, "filtrar", void 0);
    RequisicaoDescargasReportComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-requisicao-descargas-report",
            template: __importDefault(__webpack_require__(/*! raw-loader!./requisicao-descargas-report.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-report/requisicao-descargas-report.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"]])
    ], RequisicaoDescargasReportComponent);
    return RequisicaoDescargasReportComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas.constants.ts":
/*!************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas.constants.ts ***!
  \************************************************************************************************************/
/*! exports provided: RequisicaoDescargasConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RequisicaoDescargasConstants", function() { return RequisicaoDescargasConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var RequisicaoDescargasConstants = /** @class */ (function () {
    function RequisicaoDescargasConstants() {
        this.sisFormularioId = 65695;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.alteraDadosNota" }
        ];
        this.sisSistemaId = "BAL";
        this.nomeForm = "titles.requisicaoDescargas";
        this.reportId = "CAD0151";
        this.reportTitulo = { "titulo": "", "subTitulo": "" };
        this.configUni = {
            solMotCancEVePesagem: false,
            obrChaveNFeEnt: false,
            obrigaSerieNf: false
        };
        this.configBal = {
            codBalCheckList: "N",
            ctrSaldoContabil: "N",
            pesagemAutomatica: "N",
            balCodig: 0,
            validaMobile2Pes: false,
            calculaTotalNF: false,
            infPesoFob: false,
            sPerDesComis: false,
            permissaoDatasOCD: false,
            justAtraso: false,
            tolTara: 0,
            justDescarga: false,
            ptJustDescargaR: 0,
            ptJustDescargaF: 0,
            justDescargaSb: false,
            impTickAposLib: false,
            boletimOcorrencia: false,
            dtOperIgualPes: false,
            validaPesagem: false
        };
        this.configWeb = {
            nAltDepositoLibVeic: false,
            cWebModBOReqDescarga: "",
            cWebModTicketD: "",
            cWebModRequisicaoD: "",
        };
        this.configCtr = {
            nAltDepositoLibVeic: false
        };
        this.configCtv = {
            observPortal: false,
            naoPermiteAlterarChkLst: false,
            importaDANFE: false,
            itemNoCheckList: false,
            solicitaPlanejEv: false,
            checkListPesa: false,
        };
        this.listaParam = [
            {
                'sistema': 'BAL', 'parametros': [
                    "PesagemAutomatica",
                    "CalculaTotalNF",
                    "InfPesoFob",
                    "JustAtraso",
                    "ValidaMobile2Pes",
                    "PermAfePesoTara",
                    "TolTara",
                    "JustDescarga",
                    "PtJustDescargaR",
                    "PtJustDescargaF",
                    "JustDescargaSb",
                    "PtJustDescargaRSb",
                    "PtJustDescargaFSb",
                    "ImpTickAposLib",
                    "BoletimOcorrencia",
                    "PesoMaxRodBO",
                    "PermissaoDatasOCD",
                    "SPerDesComis",
                    "ObrigaDepLib",
                    "CodBalCheckList",
                    "DtOperIgualPes"
                ]
            },
            { 'sistema': 'CTV', 'parametros': ["ObservPortal", "ImportaDANFE", "CheckListPesa", "SolicitaPlanejEv", "NAltDepositoLibVeic"] },
            { 'sistema': 'UNI', 'parametros': ["ObrChaveNFeEnt", "solMotCancEVePesagem"] },
            { 'sistema': 'WEB', 'parametros': ["CWebModRequisicaoD", "CWebModTicketD"] }
        ];
        this.listaIndex = [
            { title: 'Visualizar', action: 'detail', icon: "icon-eye", 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: false, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'AlterarDadosNota', action: 'alteraDadosNota', icon: "icon-server", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
        this.listaForm = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.listaAlterarDados = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.listaAlterarDatas = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.lista2Pes = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
    }
    return RequisicaoDescargasConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas.model.ts":
/*!********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas.model.ts ***!
  \********************************************************************************************************/
/*! exports provided: RequisicaoDescargas, RequisicaoDescargasFilterReport */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RequisicaoDescargas", function() { return RequisicaoDescargas; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RequisicaoDescargasFilterReport", function() { return RequisicaoDescargasFilterReport; });
/* 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 RequisicaoDescargas = /** @class */ (function (_super) {
    __extends(RequisicaoDescargas, _super);
    function RequisicaoDescargas() {
        var _this = _super.call(this) || this;
        _this.dtRequisicao = new Date();
        _this.requisicaoDescargaItems = [];
        return _this;
    }
    return RequisicaoDescargas;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var RequisicaoDescargasFilterReport = /** @class */ (function () {
    function RequisicaoDescargasFilterReport() {
        this.requisicaoDescargaId = 0;
        this.tipoRel = "0";
    }
    return RequisicaoDescargasFilterReport;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas.module.ts":
/*!*********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas.module.ts ***!
  \*********************************************************************************************************/
/*! exports provided: RequisicaoDescargasModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RequisicaoDescargasModule", function() { return RequisicaoDescargasModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _requisicao_descargas_filter_requisicao_descargas_filter_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./requisicao-descargas-filter/requisicao-descargas-filter.component */ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-filter/requisicao-descargas-filter.component.ts");
/* harmony import */ var _requisicao_descargas_form_requisicao_descargas_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./requisicao-descargas-form/requisicao-descargas-form.component */ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-form/requisicao-descargas-form.component.ts");
/* harmony import */ var _requisicao_descargas_index_requisicao_descargas_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./requisicao-descargas-index/requisicao-descargas-index.component */ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-index/requisicao-descargas-index.component.ts");
/* harmony import */ var _requisicao_descargas_item_requisicao_descargas_item_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./requisicao-descargas-item/requisicao-descargas-item.component */ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-item/requisicao-descargas-item.component.ts");
/* harmony import */ var _requisicao_descargas_report_requisicao_descargas_report_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./requisicao-descargas-report/requisicao-descargas-report.component */ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-report/requisicao-descargas-report.component.ts");
/* harmony import */ var _requisicao_descargas_routing_module__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./requisicao-descargas.routing.module */ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas.routing.module.ts");
/* harmony import */ var _requisicao_descargas_altera_dados_requisicao_descargas_altera_dados_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./requisicao-descargas-altera-dados/requisicao-descargas-altera-dados.component */ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-altera-dados/requisicao-descargas-altera-dados.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 RequisicaoDescargasModule = /** @class */ (function () {
    function RequisicaoDescargasModule() {
    }
    RequisicaoDescargasModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [
                app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"],
                _requisicao_descargas_routing_module__WEBPACK_IMPORTED_MODULE_7__["RequisicaoDescargasRoutingModule"]
            ],
            declarations: [
                _requisicao_descargas_index_requisicao_descargas_index_component__WEBPACK_IMPORTED_MODULE_4__["RequisicaoDescargasIndexComponent"],
                _requisicao_descargas_form_requisicao_descargas_form_component__WEBPACK_IMPORTED_MODULE_3__["RequisicaoDescargasFormComponent"],
                _requisicao_descargas_filter_requisicao_descargas_filter_component__WEBPACK_IMPORTED_MODULE_2__["RequisicaoDescargasFilterComponent"],
                _requisicao_descargas_item_requisicao_descargas_item_component__WEBPACK_IMPORTED_MODULE_5__["RequisicaoDescargasItemComponent"],
                _requisicao_descargas_report_requisicao_descargas_report_component__WEBPACK_IMPORTED_MODULE_6__["RequisicaoDescargasReportComponent"],
                _requisicao_descargas_altera_dados_requisicao_descargas_altera_dados_component__WEBPACK_IMPORTED_MODULE_8__["RequisicaoDescargaAlteraDadosComponent"]
            ],
            exports: [
                _requisicao_descargas_index_requisicao_descargas_index_component__WEBPACK_IMPORTED_MODULE_4__["RequisicaoDescargasIndexComponent"],
                _requisicao_descargas_form_requisicao_descargas_form_component__WEBPACK_IMPORTED_MODULE_3__["RequisicaoDescargasFormComponent"],
                _requisicao_descargas_filter_requisicao_descargas_filter_component__WEBPACK_IMPORTED_MODULE_2__["RequisicaoDescargasFilterComponent"],
                _requisicao_descargas_item_requisicao_descargas_item_component__WEBPACK_IMPORTED_MODULE_5__["RequisicaoDescargasItemComponent"],
                _requisicao_descargas_report_requisicao_descargas_report_component__WEBPACK_IMPORTED_MODULE_6__["RequisicaoDescargasReportComponent"],
                _requisicao_descargas_altera_dados_requisicao_descargas_altera_dados_component__WEBPACK_IMPORTED_MODULE_8__["RequisicaoDescargaAlteraDadosComponent"]
            ],
            providers: []
        })
    ], RequisicaoDescargasModule);
    return RequisicaoDescargasModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas.permissoes.ts":
/*!*************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas.permissoes.ts ***!
  \*************************************************************************************************************/
/*! exports provided: RequisicaoDescargasPermissoes */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RequisicaoDescargasPermissoes", function() { return RequisicaoDescargasPermissoes; });
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

var RequisicaoDescargasPermissoes = /** @class */ (function () {
    function RequisicaoDescargasPermissoes(constantes, funcoesService) {
        var _this = this;
        this.constantes = constantes;
        this.funcoesService = funcoesService;
        this.confirmMudancaRota = false;
        this.sub = app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_0__["EventEmitterService"].get("acaoCallBack").subscribe(function (result) {
            switch (result) {
                case "print": {
                    _this.print();
                    break;
                }
                case "refresh": {
                    _this.refresh();
                    break;
                }
                case "properties": {
                    _this.properties();
                    break;
                }
                case "permissoes": {
                    _this.permissoes();
                    break;
                }
                case "filtrar": {
                    _this.filtrar();
                    break;
                }
                case "back": {
                    _this.back();
                    break;
                }
                case "detail": {
                    _this.detail();
                    break;
                }
                default: {
                    break;
                }
            }
        });
    }
    // Dispara modal de propriedades
    RequisicaoDescargasPermissoes.prototype.properties = function () {
        jQuery("#propriedades-dialog").modal("show");
    };
    // Dispara modal de permissoes
    RequisicaoDescargasPermissoes.prototype.permissoes = function (param) {
        if (param === void 0) { param = {}; }
        if (param === undefined) {
            alert("Selecione um registro");
            return;
        }
        jQuery("#permissoes-rotina-dialog").modal("show");
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_0__["EventEmitterService"].get("formPermissoes").emit(param);
    };
    // dispara a chamada de relatorios
    RequisicaoDescargasPermissoes.prototype.print = function () {
        this.funcoesService.reportInvoc.invocaRelatorio(this.constantes.reportId, {}, {});
    };
    RequisicaoDescargasPermissoes.prototype.remove = function () {
        throw new Error("Method not implemented.");
    };
    ;
    RequisicaoDescargasPermissoes.prototype.detail = function () {
        throw new Error("Method not implemented.");
    };
    ;
    RequisicaoDescargasPermissoes.prototype.cancelaPesagem = function () {
        throw new Error("Method not implemented.");
    };
    ;
    RequisicaoDescargasPermissoes.prototype.create = function () {
        throw new Error("Method not implemented.");
    };
    ;
    RequisicaoDescargasPermissoes.prototype.edit = function () {
        throw new Error("Method not implemented.");
    };
    ;
    RequisicaoDescargasPermissoes.prototype.alterarDatas = function () {
        throw new Error("Method not implemented.");
    };
    ;
    RequisicaoDescargasPermissoes.prototype.refresh = function () {
        throw new Error("Method not implemented.");
    };
    RequisicaoDescargasPermissoes.prototype.alterarDados = function () {
        throw new Error("Method not implemented.");
    };
    ;
    RequisicaoDescargasPermissoes.prototype.filtrar = function () {
        throw new Error("Method not implemented.");
    };
    ;
    RequisicaoDescargasPermissoes.prototype.back = function () {
        throw new Error("Method not implemented.");
    };
    ;
    RequisicaoDescargasPermissoes.prototype.ngOnDestroy = function () {
        this.sub.unsubscribe();
    };
    RequisicaoDescargasPermissoes.prototype.podeMudarRota = function () {
        if (!this.confirmMudancaRota)
            return true;
        return confirm('Tem certeza que deseja sair dessa página?');
    };
    return RequisicaoDescargasPermissoes;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas.routing.module.ts":
/*!*****************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas.routing.module.ts ***!
  \*****************************************************************************************************************/
/*! exports provided: RequisicaoDescargasRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RequisicaoDescargasRoutingModule", function() { return RequisicaoDescargasRoutingModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _requisicao_descargas_form_requisicao_descargas_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./requisicao-descargas-form/requisicao-descargas-form.component */ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-form/requisicao-descargas-form.component.ts");
/* harmony import */ var _requisicao_descargas_index_requisicao_descargas_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./requisicao-descargas-index/requisicao-descargas-index.component */ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-index/requisicao-descargas-index.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var MRoutes = [
    {
        path: "",
        component: _requisicao_descargas_index_requisicao_descargas_index_component__WEBPACK_IMPORTED_MODULE_4__["RequisicaoDescargasIndexComponent"],
        data: {
            breadcrumb: "requisicaoDescargas",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    },
    {
        path: "detail/:id",
        component: _requisicao_descargas_form_requisicao_descargas_form_component__WEBPACK_IMPORTED_MODULE_3__["RequisicaoDescargasFormComponent"],
        data: {
            breadcrumb: "requisicaoDescargas",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var RequisicaoDescargasRoutingModule = /** @class */ (function () {
    function RequisicaoDescargasRoutingModule() {
    }
    RequisicaoDescargasRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(MRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
        })
    ], RequisicaoDescargasRoutingModule);
    return RequisicaoDescargasRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas.service.ts":
/*!**********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas.service.ts ***!
  \**********************************************************************************************************/
/*! exports provided: RequisicaoDescargasService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RequisicaoDescargasService", function() { return RequisicaoDescargasService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* harmony import */ var _requisicao_descargas_filter_requisicao_descargas_filter_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./requisicao-descargas-filter/requisicao-descargas-filter.model */ "./src/app/pages/especificos/cargill/consultas/requisicao-descargas/requisicao-descargas-filter/requisicao-descargas-filter.model.ts");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
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 RequisicaoDescargasService = /** @class */ (function (_super) {
    __extends(RequisicaoDescargasService, _super);
    function RequisicaoDescargasService(http) {
        var _this = _super.call(this, http, "cargill/requisicaoDescarga") || this;
        _this.http = http;
        _this.filtro = new _requisicao_descargas_filter_requisicao_descargas_filter_model__WEBPACK_IMPORTED_MODULE_4__["RequisicaoDescargasFilter"]();
        _this.dados = [];
        _this.configUni = {
            obrChaveNFeEnt: false,
            obrigaSerieNf: false
        };
        return _this;
    }
    RequisicaoDescargasService.prototype._get = function (filtro) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].specifics_service_url + "/api/v1/cargill/requisicaoDescarga/listar", filtro)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    RequisicaoDescargasService.prototype._getById = function (id) {
        if (!id)
            return Object(rxjs__WEBPACK_IMPORTED_MODULE_7__["of"])(undefined);
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].specifics_service_url + "/api/v1/cargill/requisicaoDescarga/" + id)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    RequisicaoDescargasService.prototype.alteraDadosNota = function (data) {
        return this.http
            .put(_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].specifics_service_url + "/api/v1/cargill/requisicaoDescarga/alteraDadosNota", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    RequisicaoDescargasService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    RequisicaoDescargasService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root",
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], RequisicaoDescargasService);
    return RequisicaoDescargasService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_3__["BaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-cargill-consultas-requisicao-descargas-requisicao-descargas-module.js.map