(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-vopak-movimentos-validacao-danfe-validacao-danfe-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe-filter/validacao-danfe-filter.component.html":
/*!***********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe-filter/validacao-danfe-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=\"validacao-danfe-filter-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.validacaoDanfe' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"periodoDe\" class=\"required\">{{\"labels.periodoDe\" | translate }}</label>\r\n                                <app-data id=\"periodoDe\" name=\"periodoDe\" [(ngModel)]=\"service.filter.dataI\" autofocus\r\n                                    class=\"dataHora\" [formatDateTime]=\"mascara.getFormatData\" required=\"true\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"ate\" class=\"required\">{{\"labels.ate\" | translate}}</label>\r\n                                <app-data id=\"ate\" name=\"ate\" [(ngModel)]=\"service.filter.dataF\" class=\"dataHora\"\r\n                                    [formatDateTime]=\"mascara.getFormatData\" required=\"true\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-8 col-md-10 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <div class=\"custom-control custom-radio custom-control-inline\">\r\n                                    <input class=\"custom-control-input radio-success\" id=\"tipoDataE\" name=\"tipoData\"\r\n                                        [(ngModel)]=\"service.filter.tipoData\" type=\"radio\" value=\"0\">\r\n                                    <label class=\"custom-control-label\" for=\"tipoDataE\">{{\r\n                                        'labels.dtEmis' |\r\n                                        translate }}\r\n                                    </label>\r\n                                </div>\r\n                                <div class=\"custom-control custom-radio custom-control-inline\">\r\n                                    <input class=\"custom-control-input radio-success\" id=\"tipoDataC\" name=\"tipoData\"\r\n                                        [(ngModel)]=\"service.filter.tipoData\" type=\"radio\" value=\"1\">\r\n                                    <label class=\"custom-control-label\" for=\"tipoDataC\">{{\r\n                                        'labels.dataPrevisaoDeChegada' |\r\n                                        translate }}\r\n                                    </label>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" tipoDestinatario=\"C\"\r\n                                    modalTitle=\"pesquisaDeCliente\" label=\"cliente\"\r\n                                    [(ngModel)]=\"service.filter.destinatarioIdCliente\" showInscricao=\"false\"\r\n                                    showCgcCpf=\"false\" [inSelected]=\"service.filter.cliente\">\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-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-material id=\"materialId\" name=\"materialId\" label=\"produto\"\r\n                                    [inSelected]=\"service.filter.material\" modalTitle=\"pesquisaDeProduto\"\r\n                                    [(ngModel)]=\"service.filter.materialId\">\r\n                                </app-pesquisa-material>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <label for=\"selectedItems\">\r\n                                {{ 'labels.situacao' | translate }}\r\n                            </label>\r\n                            <angular2-multiselect id=\"selectedItems\" name=\"selectedItems\" [data]=\"dropdownList\"\r\n                                [(ngModel)]=\"selectedItems\" [settings]=\"dropdownSettings\"\r\n                                (onSelect)=\"onItemSelect($event)\" (onDeSelect)=\"onItemDeSelect($event)\"\r\n                                (onSelectAll)=\"onSelectAll($event)\" (onDeSelectAll)=\"onDeSelectAll($event)\">\r\n                            </angular2-multiselect>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'buttons.sair' | translate\r\n                        }}</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaForm\" [formAction]=\"actionForm\" [itemData]=\"data.regPlaneja\"\n    [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <div class=\"section-comand-bar\">\n            <div class=\"card-body widget-body\">\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=\"numeroOS\">{{'labels.numeroOS' | translate}}</label>\n                            <input id=\"numeroOS\" name=\"numeroOS\" [(ngModel)]=\"data.regPlaneja\"\n                                class=\"form-control form-control-sm\" type=\"text\" disabled>\n                        </div>\n                    </div>\n                    <div class=\"col-lg-2 col-md-6 col-sm-12\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"nrPlhanej\">{{'labels.nrPlhanej' | translate}}</label>\n                            <input id=\"nrPlhanej\" name=\"nrPlhanej\" [(ngModel)]=\"data.regPlanejCarga\"\n                                class=\"form-control form-control-sm\" type=\"text\" disabled>\n                        </div>\n                    </div>\n                    <div class=\"col-lg-2 col-md-6 col-sm-12\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"deposito\">{{'labels.deposito' | translate}}</label>\n                            <input id=\"deposito\" name=\"deposito\" [(ngModel)]=\"data.tanqueId\"\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 col-sm-12\">\n                        <app-input-description label=\"emitente\" [valueID]=\"data.destinatarioIdEmitente\"\n                            [valueDescription]=\"data.emitente\">\n                        </app-input-description>\n                    </div>\n                    <div class=\"col-md-4 col-sm-12\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"placaVeiculo\">\n                                {{'labels.placaVeiculo' | translate}}\n                            </label>\n                            <input id=\"placaVeiculo\" name=\"placaVeiculo\"\n                                class=\"form-control form-control-sm text-uppercase\" type=\"text\" disabled\n                                [(ngModel)]=\"data.placas\" />\n                        </div>\n                    </div>\n                </div>\n                <div class=\"row\">\n                    <div class=\"col-lg-6 col-sm-12\">\n                        <app-input-description label=\"produto\" [valueID]=\"data.materialId\"\n                            [valueDescription]=\"data.produto\">\n                        </app-input-description>\n                    </div>\n                    <div class=\"col-lg-4 col-sm-12\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"isoTanques\">\n                                {{'labels.isoTanques' | translate}}\n                            </label>\n                            <input id=\"isoTanques\" name=\"isoTanques\" class=\"form-control form-control-sm text-uppercase\"\n                                type=\"text\" disabled [(ngModel)]=\"data.isoTanque\" />\n                        </div>\n                    </div>\n                </div>\n                <div class=\"row\">\n                    <div class=\"col-lg-6 col-sm-12\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"codProdutoNF\">\n                                {{'labels.codProdutoNF' | translate}}\n                            </label>\n                            <input id=\"codProdutoNF\" name=\"codProdutoNF\"\n                                class=\"form-control form-control-sm text-uppercase\" type=\"text\" disabled\n                                [(ngModel)]=\"data.codProdutoEmit\" />\n                        </div>\n                    </div>\n                </div>\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=\"nrNotaFiscal\">{{'labels.nrNotaFiscal' | translate}}</label>\n                            <input id=\"nrNotaFiscal\" name=\"nrNotaFiscal\" [(ngModel)]=\"data.notaFiscal\"\n                                class=\"form-control form-control-sm\" type=\"text\" disabled>\n                        </div>\n                    </div>\n                    <div class=\"col-lg-2 col-md-6 col-sm-12\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"dtEmissao\">{{'labels.dtEmissao' | translate}}</label>\n                            <input id=\"dtEmissao\" name=\"dtEmissao\" value=\"{{data.dtEmissao | date:'dd/MM/yyyy'}}\"\n                                class=\"form-control form-control-sm\" type=\"text\" disabled\n                                data-title=\"{{'labels.dtEmissao' | translate}}\">\n                        </div>\n                    </div>\n                    <div class=\"col-lg-2 col-md-6 col-sm-12\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"serie\">{{'labels.serie' | translate}}</label>\n                            <input id=\"serie\" name=\"serie\" [(ngModel)]=\"data.serieId\"\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-12\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"unidade\">{{'labels.unidade' | translate}}</label>\n                            <input id=\"unidade\" name=\"unidade\" [(ngModel)]=\"data.unidadeId\"\n                                class=\"form-control form-control-sm\" type=\"text\" disabled>\n                        </div>\n                    </div>\n                    <div class=\"col-lg-2 col-md-6 col-sm-12\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"quantidade\">{{'labels.quantidade' | translate}}</label>\n                            <input id=\"quantidade\" name=\"quantidade\" [(ngModel)]=\"data.quantidade\" currencyMask\n                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\n                                class=\"form-control form-control-sm\" type=\"text\" disabled>\n                        </div>\n                    </div>\n                    <div class=\"col-lg-2 col-md-6 col-sm-12\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"pesoNF\">{{'labels.pesoNF' | translate}}</label>\n                            <input id=\"pesoNF\" name=\"pesoNF\" [(ngModel)]=\"data.pesoDoc\" currencyMask\n                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 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-2 col-md-6 col-sm-12\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"valorUnitario\">{{'labels.valorUnitario' | translate}}</label>\n                            <input id=\"valorUnitario\" name=\"valorUnitario\" [(ngModel)]=\"data.vlUnitario\" currencyMask\n                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 9 }\"\n                                class=\"form-control form-control-sm\" type=\"text\" disabled>\n                        </div>\n                    </div>\n                    <div class=\"col-lg-2 col-md-6 col-sm-12\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"valorNota\">{{'labels.valorNota' | translate}}</label>\n                            <input id=\"valorNota\" name=\"valorNota\" [(ngModel)]=\"data.vlItem\" currencyMask\n                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                class=\"form-control form-control-sm\" type=\"text\" disabled>\n                        </div>\n                    </div>\n                    <div class=\"col-lg-2 col-md-6 col-sm-12\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"cfop\">{{'labels.cfop' | translate}}</label>\n                            <input id=\"cfop\" name=\"cfop\" [(ngModel)]=\"data.cfop\" class=\"form-control form-control-sm\"\n                                type=\"text\" disabled>\n                        </div>\n                    </div>\n                </div>\n            </div>\n            <div class=\"clearfix\">&nbsp;</div>\n            <div class=\"row\">\n                <div class=\"col-lg-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <div class=\"table-overflow\">\n                            <table class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\">\n                                <thead>\n                                    <tr>\n                                        <th style=\"white-space: nowrap;\" class=\"text-center\">{{ 'labels.chaveNFE' |\n                                            translate }}</th>\n                                        <th style=\"white-space: nowrap;\" class=\"text-center\">{{ 'labels.nrNotaFiscal' |\n                                            translate }}</th>\n                                        <th style=\"white-space: nowrap;\" class=\"text-center\">{{ 'labels.dataEmissao' |\n                                            translate }}</th>\n                                        <th style=\"white-space: nowrap;\" class=\"text-center\">{{ 'labels.serie' |\n                                            translate }}</th>\n                                        <th style=\"white-space: nowrap;\" class=\"text-center\">{{ 'labels.unidade' |\n                                            translate }}</th>\n                                        <th style=\"white-space: nowrap;\" class=\"text-center\">{{ 'labels.quantidade' |\n                                            translate }}</th>\n                                        <th style=\"white-space: nowrap;\" class=\"text-center\">{{ 'labels.pesoNF' |\n                                            translate }}</th>\n                                        <th style=\"white-space: nowrap;\" class=\"text-center\">{{ 'labels.vlUnitario' |\n                                            translate }}</th>\n                                        <th style=\"white-space: nowrap;\" class=\"text-center\">{{ 'labels.vlNF' |\n                                            translate }}</th>\n                                        <th style=\"white-space: nowrap;\" class=\"text-center\">{{ 'labels.situacao' |\n                                            translate }}</th>\n                                    </tr>\n                                </thead>\n                                <tbody>\n                                    <tr *ngFor=\"let t of itens; index as i \" class=\"clickable\"\n                                        [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\"\n                                        (click)=\"selected(t, i)\">\n                                        <td style=\"white-space: nowrap;\" class=\"text-center\">{{ t.chaveNFe}}</td>\n                                        <td style=\"white-space: nowrap;\" class=\"text-center\">{{ t.notaFiscal }}</td>\n                                        <td style=\"white-space: nowrap;\" class=\"text-center\">{{ t.dtEmissao |\n                                            date:'dd/MM/yyyy HH:mm'}}</td>\n                                        <td style=\"white-space: nowrap;\" class=\"text-center\">{{ t.serieId }}</td>\n                                        <td style=\"white-space: nowrap;\" class=\"text-center\">{{ t.unidadeId }}</td>\n                                        <td style=\"white-space: nowrap;\" class=\"text-center\">{{ t.quantidade |\n                                            formatCurrency: 0}} </td>\n                                        <td style=\"white-space: nowrap;\" class=\"text-center\">{{ t.pesoDoc |\n                                            formatCurrency: 0}} </td>\n                                        <td style=\"white-space: nowrap;\" class=\"text-center\">{{ t.vlUnitario |\n                                            formatCurrency: 9}} </td>\n                                        <td style=\"white-space: nowrap;\" class=\"text-center\">{{ t.vlItem |\n                                            formatCurrency: 2}} </td>\n                                        <td style=\"white-space: nowrap;\" class=\"text-center\">{{ t.situacao }}</td>\n                                    </tr>\n                                </tbody>\n                            </table>\n                            <div class=\"clearfix\">&nbsp;</div>\n                            <div>\n                                <button class=\"btn btn-success mr-2\" (click)=\"visualizarDanfe()\" type=\"button\"\n                                    [disabled]=\"!hasDados\">\n                                    {{ 'buttons.visualizarDanfe' | translate }}\n                                </button>\n                                <button class=\"btn btn-success mr-2\" (click)=\"validarDanfe()\" type=\"button\"\n                                    [disabled]=\"!disabledValidarDanfe\">\n                                    {{ 'buttons.validarDanfe' | translate }}\n                                </button>\n                            </div>\n                        </div>\n                    </div>\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/vopak/movimentos/validacao-danfe/validacao-danfe-index/validacao-danfe-index.component.html":
/*!*********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe-index/validacao-danfe-index.component.html ***!
  \*********************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe-filter/validacao-danfe-filter.component.ts":
/*!*******************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe-filter/validacao-danfe-filter.component.ts ***!
  \*******************************************************************************************************************************/
/*! exports provided: ValidacaoDanfeFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValidacaoDanfeFilterComponent", function() { return ValidacaoDanfeFilterComponent; });
/* 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_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _validacao_danfe_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../validacao-danfe.service */ "./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __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 ValidacaoDanfeFilterComponent = /** @class */ (function () {
    function ValidacaoDanfeFilterComponent(service, cdRef) {
        this.service = service;
        this.cdRef = cdRef;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.executa = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__["Mascaras"]();
        this.dropdownList = [];
        this.selectedItems = [];
        this.dropdownSettings = {
            singleSelection: false,
            text: "Selecione",
            selectAllText: 'Seleciona Todos',
            unSelectAllText: 'Desmarcar Todos',
            searchPlaceholderText: "Pesquisar",
            classes: "form-control-sm",
            enableSearchFilter: true,
            badgeShowLimit: 1,
            noDataLabel: "Nenhum dado disponível",
            filterUnSelectAllText: 'Desmarcar Todos',
            filterSelectAllText: 'Seleciona Todos',
            maxHeight: 150,
            disabled: false
        };
    }
    ValidacaoDanfeFilterComponent.prototype.ngOnInit = function () {
        this.onLoadTreeViewItems();
    };
    ValidacaoDanfeFilterComponent.prototype.onSubmit = function (form) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.filtrar.emit();
        jQuery("#validacao-danfe-filter-dialog").modal('hide');
    };
    ValidacaoDanfeFilterComponent.prototype.onLoadTreeViewItems = function () {
        this.dropdownList = [];
        this.dropdownList = [
            { "id": "P", "itemName": "Pendente" },
            { "id": "V", "itemName": "Validada" }
        ];
        this.selectedItems = [{ "id": "P", "itemName": "Pendente" },
            { "id": "V", "itemName": "Validada" }];
    };
    /////////////////////////////////////////////////////
    ValidacaoDanfeFilterComponent.prototype.onItemSelect = function (selectedItems) {
        this.trataCombo();
    };
    ValidacaoDanfeFilterComponent.prototype.onItemDeSelect = function (selectedItems) {
        this.trataCombo();
    };
    ValidacaoDanfeFilterComponent.prototype.onSelectAll = function (selectedItems) {
        this.selectedItems = selectedItems;
        this.trataCombo();
    };
    ValidacaoDanfeFilterComponent.prototype.onDeSelectAll = function (selectedItems) {
        this.trataCombo(true);
    };
    ValidacaoDanfeFilterComponent.prototype.trataCombo = function (reset) {
        var _this = this;
        if (reset === void 0) { reset = false; }
        this.service.filter.situacao = '';
        if (!reset) {
            this.selectedItems.forEach(function (e) {
                if (_this.service.filter.situacao === '') {
                    _this.service.filter.situacao = e.id + "";
                }
                else {
                    _this.service.filter.situacao = _this.service.filter.situacao + ',' + e.id;
                }
            });
        }
    };
    ValidacaoDanfeFilterComponent.prototype.ngAfterViewChecked = function () {
        this.cdRef.detectChanges();
    };
    ValidacaoDanfeFilterComponent.ctorParameters = function () { return [
        { type: _validacao_danfe_service__WEBPACK_IMPORTED_MODULE_2__["ValidacaoDanfeService"] },
        { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], ValidacaoDanfeFilterComponent.prototype, "filtrar", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], ValidacaoDanfeFilterComponent.prototype, "executa", void 0);
    ValidacaoDanfeFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-validacao-danfe-filter',
            template: __importDefault(__webpack_require__(/*! raw-loader!./validacao-danfe-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe-filter/validacao-danfe-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_validacao_danfe_service__WEBPACK_IMPORTED_MODULE_2__["ValidacaoDanfeService"],
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]])
    ], ValidacaoDanfeFilterComponent);
    return ValidacaoDanfeFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe-form/validacao-danfe-form.component.ts":
/*!***************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe-form/validacao-danfe-form.component.ts ***!
  \***************************************************************************************************************************/
/*! exports provided: ValidacaoDanfeFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValidacaoDanfeFormComponent", function() { return ValidacaoDanfeFormComponent; });
/* harmony import */ var app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/pages/cadastro/material/material.service */ "./src/app/pages/cadastro/material/material.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_3__ = __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_4__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var _validacao_danfe_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../validacao-danfe.model */ "./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe.model.ts");
/* harmony import */ var _validacao_danfe_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../validacao-danfe.constants */ "./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe.constants.ts");
/* harmony import */ var _validacao_danfe_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../validacao-danfe.service */ "./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe.service.ts");
/* harmony import */ var app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.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 ValidacaoDanfeFormComponent = /** @class */ (function (_super) {
    __extends(ValidacaoDanfeFormComponent, _super);
    function ValidacaoDanfeFormComponent(router, messageService, activatedRoute, service, funcoesService, permissoesUtils, destinatarioService, materialService) {
        var _this = _super.call(this, new _validacao_danfe_constants__WEBPACK_IMPORTED_MODULE_10__["ValidacaoDanfeConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.destinatarioService = destinatarioService;
        _this.materialService = materialService;
        _this.data = new _validacao_danfe_model__WEBPACK_IMPORTED_MODULE_9__["ValidacaoDanfeNotaDto"]();
        _this.mensagens = [];
        _this.constantes = new _validacao_danfe_constants__WEBPACK_IMPORTED_MODULE_10__["ValidacaoDanfeConstants"]();
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_7__["Mascaras"]();
        _this.hasDados = false;
        _this.retornoArquivoGerado = new _validacao_danfe_model__WEBPACK_IMPORTED_MODULE_9__["ValidacaoDanfeArquivoGerado"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.pageRoute = "/especificos/vopak/movimentos/validacaoDanfe";
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    ValidacaoDanfeFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            if (id) {
                _this.service.getNotaFiscal({ regPlaneja: +id }).subscribe(function (resp) {
                    if (app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["ArrayUtilsStaticService"].any(resp)) {
                        _this.itens = resp;
                        if (_this.itens.length > 0) {
                            _this.selected(_this.itens[0], 0);
                            _this.hasDados = true;
                        }
                    }
                    else {
                        _this.messageService.warning("titles.validacaoDanfe", "messages.naoExistemDados");
                        _this.back();
                    }
                });
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    ValidacaoDanfeFormComponent.prototype.selected = function (item, index) {
        this.currentIndex = index;
        this._index = index;
        this.data = item;
    };
    ValidacaoDanfeFormComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate(["" + this.target + this.pageRoute]);
    };
    ValidacaoDanfeFormComponent.prototype.visualizarDanfe = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!_this.data) {
                _this.messageService.warning("titles.validacaoDanfe", "message.nenhumRegistroEncontrado");
                return;
            }
            _this.service.visualizarDanfe({ regPlaneja: _this.data.regPlaneja, item: _this.data.item, pdfNomeArquivo: _this.data.pdfNomeArquivo }).subscribe(function (result) {
                if (_this.funcoesService.isNotUndefinedOrNull(result.validationResult)) {
                    _this.mensagens = _this.messageService.validationResult(result.validationResult);
                    if (result && !result.validationResult.isValid) {
                        _this.messageService.warning("titles.validacaoDanfe", _this.mensagens[0]);
                        return;
                    }
                }
                else {
                    _this.retornoArquivoGerado = result;
                    _this.download();
                }
            });
        });
    };
    ValidacaoDanfeFormComponent.prototype.download = function () {
        if (this.funcoesService.isUndefinedOrNull(this.retornoArquivoGerado)) {
            return;
        }
        var b64 = this.retornoArquivoGerado.arquivoGerado;
        var byteCharacters = atob(b64);
        var byteArrays = [];
        for (var offset = 0; offset < byteCharacters.length; offset += 512) {
            var slice = byteCharacters.slice(offset, offset + 512);
            var byteNumbers = new Array(slice.length);
            for (var i = 0; i < slice.length; i++) {
                byteNumbers[i] = slice.charCodeAt(i);
            }
            var byteArray = new Uint8Array(byteNumbers);
            byteArrays.push(byteArray);
        }
        var tipo = this.retornoArquivoGerado.tipoArquivo.replace(',', '');
        var blobData = new Blob(byteArrays, { type: tipo });
        var win = window;
        if (win.navigator && win.navigator.msSaveOrOpenBlob) { // IE
            win.navigator.msSaveOrOpenBlob(blobData, this.retornoArquivoGerado.nomeArquivo);
        }
        else { // chrome
            var blob = new Blob([blobData], { type: tipo });
            var url = window.URL.createObjectURL(blob);
            var link = document.createElement('a');
            link.href = url;
            link.download = this.retornoArquivoGerado.nomeArquivo;
            link.click();
        }
    };
    ValidacaoDanfeFormComponent.prototype.validarDanfe = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () { return __awaiter(_this, void 0, void 0, function () {
            var validationResult, mensagens, message;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.service.podeValidarDanfe({
                            destinatarioIdEmitente: this.data.destinatarioIdEmitente,
                            materialId: this.data.materialId,
                            codProdutoEmit: this.data.codProdutoEmit
                        }).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.messageService.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.validacaoDanfe", m); });
                            return [2 /*return*/];
                        }
                        message = this.messageService.translate("messages.confirmaValidacaoDaDanfe");
                        this.messageService.confirm("titles.validacaoDanfe", message, null, function () {
                            _this.executeGravaValidacaoNota();
                        });
                        return [2 /*return*/];
                }
            });
        }); });
    };
    ValidacaoDanfeFormComponent.prototype.executeGravaValidacaoNota = function () {
        return __awaiter(this, void 0, void 0, function () {
            var validationResult, mensagens;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.service.gravaValidacaoNota({
                            regPlaneja: this.data.regPlaneja,
                            item: this.data.item
                        }).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.messageService.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.validacaoDanfe", m); });
                            return [2 /*return*/];
                        }
                        else {
                            this.messageService.success("titles.validacaoDanfe", "messages.registroAtualizado");
                            this.back();
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    Object.defineProperty(ValidacaoDanfeFormComponent.prototype, "disabledValidarDanfe", {
        get: function () {
            if (!this.data)
                return false;
            return this.data.situacao === "Pendente";
        },
        enumerable: true,
        configurable: true
    });
    ValidacaoDanfeFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"] },
        { type: _validacao_danfe_service__WEBPACK_IMPORTED_MODULE_11__["ValidacaoDanfeService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_3__["PermissoesUtilsService"] },
        { type: app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_8__["DestinatarioService"] },
        { type: app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_0__["MaterialService"] }
    ]; };
    ValidacaoDanfeFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-validacao-danfe-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./validacao-danfe-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe-form/validacao-danfe-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"],
            _validacao_danfe_service__WEBPACK_IMPORTED_MODULE_11__["ValidacaoDanfeService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_3__["PermissoesUtilsService"],
            app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_8__["DestinatarioService"],
            app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_0__["MaterialService"]])
    ], ValidacaoDanfeFormComponent);
    return ValidacaoDanfeFormComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe-index/validacao-danfe-index.component.ts":
/*!*****************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe-index/validacao-danfe-index.component.ts ***!
  \*****************************************************************************************************************************/
/*! exports provided: ValidacaoDanfeIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValidacaoDanfeIndexComponent", function() { return ValidacaoDanfeIndexComponent; });
/* 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_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __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_5__ = __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_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_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _validacao_danfe_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../validacao-danfe.model */ "./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe.model.ts");
/* harmony import */ var _validacao_danfe_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../validacao-danfe.constants */ "./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe.constants.ts");
/* harmony import */ var _validacao_danfe_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../validacao-danfe.service */ "./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe.service.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};













var ValidacaoDanfeIndexComponent = /** @class */ (function (_super) {
    __extends(ValidacaoDanfeIndexComponent, _super);
    function ValidacaoDanfeIndexComponent(router, service, message, funcoes, datatables, loginService, permissoesUtils) {
        var _this = _super.call(this, new _validacao_danfe_constants__WEBPACK_IMPORTED_MODULE_10__["ValidacaoDanfeConstants"](), funcoes) || this;
        _this.router = router;
        _this.service = service;
        _this.message = message;
        _this.funcoes = funcoes;
        _this.datatables = datatables;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _validacao_danfe_model__WEBPACK_IMPORTED_MODULE_9__["ValidacaoDanfe"]();
        _this.constantes = new _validacao_danfe_constants__WEBPACK_IMPORTED_MODULE_10__["ValidacaoDanfeConstants"]();
        _this.target = _this.funcoes.getTargetLocation();
        _this.pageRoute = "/especificos/vopak/movimentos/validacaoDanfe";
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    ValidacaoDanfeIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (!_this.loginService.isTokenExpired()) {
                if (_this.funcoes.abrirFiltro) {
                    _this.service.filter = new _validacao_danfe_model__WEBPACK_IMPORTED_MODULE_9__["ValidacaoDanfeFilter"]();
                    _this.funcoes.openModal("validacao-danfe-filter-dialog");
                }
                else {
                    _this.refresh();
                }
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    ValidacaoDanfeIndexComponent.prototype.filtrar = function () {
        jQuery("#validacao-danfe-filter-dialog").modal('show');
    };
    ValidacaoDanfeIndexComponent.prototype.executaFiltro = function () {
        this.refresh();
    };
    ValidacaoDanfeIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getDados(this.service.filter).subscribe(function (data) {
            var columns = [
                _this.datatables.getDataString("regPlaneja", "numeroOS"),
                _this.datatables.getDataString("status", "status"),
                _this.datatables.getDataDateTime("dtEmissao", "emissao", "DD/MM/YYYY HH:mm:ss", "15%"),
                _this.datatables.getDataDateTime("dtPrevisaoChegada", "prevChegada", "DD/MM/YYYY HH:mm:ss", "15%"),
                _this.datatables.getDataString("cadastroPlacaIdCavalo", "cavalo"),
                _this.datatables.getDataString("cadastroPlacaIdCarreta1", "carreta1"),
                _this.datatables.getDataString("cadastroPlacaIdCarreta2", "carreta2"),
                _this.datatables.getDataString("cliente", "cliente"),
                _this.datatables.getDataString("motorista", "motorista"),
                _this.datatables.getDataString("transportadora", "transportadora"),
                _this.datatables.getDataString("produto", "produto"),
                _this.datatables.getDataString("situacao", "situacao"),
            ];
            _this.datatables.toDataTable({ tableId: "dtValidacaoDanfe", columns: columns, data: data, columnOrder: 0, orientationOrder: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_12__["EOrientationOrder"].ASC }, function (aData) {
                _this.data = aData;
            });
        });
    };
    ValidacaoDanfeIndexComponent.prototype.detail = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].isPositive(_this.data.regPlaneja)) {
                _this.router.navigate(["" + _this.target + _this.pageRoute + "/detail/" + _this.data.regPlaneja]);
            }
        });
    };
    ValidacaoDanfeIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _this.constantes.paramRelatorio = {
                filialId: _this.loginService.getLogin().filialId,
                dataI: _this.service.filter.dataI,
                dataF: _this.service.filter.dataF,
                destinatarioIdCliente: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].toNumber(_this.service.filter.destinatarioIdCliente),
                materialId: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["StringUtilsStaticService"].toString(_this.service.filter.materialId),
                tipoData: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["StringUtilsStaticService"].toString(_this.service.filter.tipoData),
                situacao: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["StringUtilsStaticService"].toString(_this.service.filter.situacao),
            };
            _super.prototype.print.call(_this, null, true);
        });
    };
    ValidacaoDanfeIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    ValidacaoDanfeIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _validacao_danfe_service__WEBPACK_IMPORTED_MODULE_11__["ValidacaoDanfeService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_12__["DatatablesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] }
    ]; };
    ValidacaoDanfeIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-validacao-danfe-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./validacao-danfe-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe-index/validacao-danfe-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _validacao_danfe_service__WEBPACK_IMPORTED_MODULE_11__["ValidacaoDanfeService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_12__["DatatablesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"]])
    ], ValidacaoDanfeIndexComponent);
    return ValidacaoDanfeIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe.constants.ts":
/*!*************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe.constants.ts ***!
  \*************************************************************************************************/
/*! exports provided: ValidacaoDanfeConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValidacaoDanfeConstants", function() { return ValidacaoDanfeConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ValidacaoDanfeConstants = /** @class */ (function () {
    function ValidacaoDanfeConstants() {
        this.sisFormularioId = 65448;
        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.visualizarDanfe" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.validarDanfe" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.validacaoDanfe";
        this.reportId = "VOP0049";
        this.reportTitulo = { 'titulo': 'Validação de Danfe', 'subTitulo': '' };
        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: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
        this.listaForm = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
    }
    return ValidacaoDanfeConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe.model.ts":
/*!*********************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe.model.ts ***!
  \*********************************************************************************************/
/*! exports provided: ValidacaoDanfe, ValidacaoDanfeFilter, ValidacaoDanfeNotaDto, ValidacaoDanfeArquivoGerado */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValidacaoDanfe", function() { return ValidacaoDanfe; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValidacaoDanfeFilter", function() { return ValidacaoDanfeFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValidacaoDanfeNotaDto", function() { return ValidacaoDanfeNotaDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValidacaoDanfeArquivoGerado", function() { return ValidacaoDanfeArquivoGerado; });
/* harmony import */ var app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/shared/services/base/base.model */ "./src/app/shared/services/base/base.model.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_1__ = __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 __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 ValidacaoDanfe = /** @class */ (function (_super) {
    __extends(ValidacaoDanfe, _super);
    function ValidacaoDanfe() {
        return _super.call(this) || this;
    }
    return ValidacaoDanfe;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var ValidacaoDanfeFilter = /** @class */ (function () {
    function ValidacaoDanfeFilter() {
        this.dataI = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["DateTimeUtilsStaticService"].addDays(new Date(), -1);
        this.dataF = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["DateTimeUtilsStaticService"].getFinalDay();
        this.destinatarioIdCliente = 0;
        this.materialId = "";
        this.tipoData = "0";
        this.situacao = "P,V";
    }
    return ValidacaoDanfeFilter;
}());

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

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



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe.module.ts":
/*!**********************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe.module.ts ***!
  \**********************************************************************************************/
/*! exports provided: ValidacaoDanfeModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValidacaoDanfeModule", function() { return ValidacaoDanfeModule; });
/* 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 _validacao_danfe_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./validacao-danfe.routing.module */ "./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe.routing.module.ts");
/* harmony import */ var _validacao_danfe_index_validacao_danfe_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./validacao-danfe-index/validacao-danfe-index.component */ "./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe-index/validacao-danfe-index.component.ts");
/* harmony import */ var _validacao_danfe_form_validacao_danfe_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./validacao-danfe-form/validacao-danfe-form.component */ "./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe-form/validacao-danfe-form.component.ts");
/* harmony import */ var _validacao_danfe_filter_validacao_danfe_filter_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./validacao-danfe-filter/validacao-danfe-filter.component */ "./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe-filter/validacao-danfe-filter.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 ValidacaoDanfeModule = /** @class */ (function () {
    function ValidacaoDanfeModule() {
    }
    ValidacaoDanfeModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [
                app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"],
                _validacao_danfe_routing_module__WEBPACK_IMPORTED_MODULE_2__["ValidacaoDanfeRoutingModule"]
            ],
            declarations: [
                _validacao_danfe_index_validacao_danfe_index_component__WEBPACK_IMPORTED_MODULE_3__["ValidacaoDanfeIndexComponent"],
                _validacao_danfe_form_validacao_danfe_form_component__WEBPACK_IMPORTED_MODULE_4__["ValidacaoDanfeFormComponent"],
                _validacao_danfe_filter_validacao_danfe_filter_component__WEBPACK_IMPORTED_MODULE_5__["ValidacaoDanfeFilterComponent"]
            ]
        })
    ], ValidacaoDanfeModule);
    return ValidacaoDanfeModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe.routing.module.ts":
/*!******************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe.routing.module.ts ***!
  \******************************************************************************************************/
/*! exports provided: ValidacaoDanfeRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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





var MRoutes = [
    {
        path: "",
        component: _validacao_danfe_index_validacao_danfe_index_component__WEBPACK_IMPORTED_MODULE_3__["ValidacaoDanfeIndexComponent"],
        data: { breadcrumb: "validacaoDanfe", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "detail/:id",
        component: _validacao_danfe_form_validacao_danfe_form_component__WEBPACK_IMPORTED_MODULE_4__["ValidacaoDanfeFormComponent"],
        data: {
            breadcrumb: "validacaoDanfe",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var ValidacaoDanfeRoutingModule = /** @class */ (function () {
    function ValidacaoDanfeRoutingModule() {
    }
    ValidacaoDanfeRoutingModule = __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"]],
        })
    ], ValidacaoDanfeRoutingModule);
    return ValidacaoDanfeRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe.service.ts":
/*!***********************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe.service.ts ***!
  \***********************************************************************************************/
/*! exports provided: ValidacaoDanfeService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValidacaoDanfeService", function() { return ValidacaoDanfeService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/base/specifics.base.service */ "./src/app/shared/services/base/specifics.base.service.ts");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _validacao_danfe_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./validacao-danfe.model */ "./src/app/pages/especificos/vopak/movimentos/validacao-danfe/validacao-danfe.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};







var ValidacaoDanfeService = /** @class */ (function (_super) {
    __extends(ValidacaoDanfeService, _super);
    function ValidacaoDanfeService(http) {
        var _this = _super.call(this, http, "vopak/validacaoDanfe") || this;
        _this.filter = new _validacao_danfe_model__WEBPACK_IMPORTED_MODULE_6__["ValidacaoDanfeFilter"]();
        return _this;
    }
    ValidacaoDanfeService.prototype.getDados = function (data) {
        data.destinatarioIdCliente = !data.destinatarioIdCliente ? 0 : data.destinatarioIdCliente;
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/validacaoDanfe/getByFilter", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ValidacaoDanfeService.prototype.getNotaFiscal = function (data) {
        data.destinatarioIdCliente = !data.destinatarioIdCliente ? 0 : data.destinatarioIdCliente;
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/validacaoDanfe/getNotaFiscal", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ValidacaoDanfeService.prototype.visualizarDanfe = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/validacaoDanfe/visualizarDanfe", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ValidacaoDanfeService.prototype.podeValidarDanfe = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/validacaoDanfe/podeValidarDanfe", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ValidacaoDanfeService.prototype.gravaValidacaoNota = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/validacaoDanfe/gravaValidacaoNota", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ValidacaoDanfeService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    ValidacaoDanfeService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], ValidacaoDanfeService);
    return ValidacaoDanfeService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_4__["SpecificsBaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-vopak-movimentos-validacao-danfe-validacao-danfe-module.js.map