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

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<table class=\"table table-striped table-hover\" *ngIf=\"showTable\">\n    <thead>\n        <tr>\n            <th>{{\"labels.area\" | translate }}</th>\n            <th>{{\"labels.plataforma\" | translate}}</th>\n            <th>{{\"labels.baia\" | translate}}</th>\n            <th>{{\"labels.bico\" | translate}}</th>\n        </tr>\n    </thead>\n    <tbody>\n        <tr *ngFor=\"let val of alinhamentoIndexBA; let i = index\" (click)=\"selectedBA(val, i)\"\n            [ngClass]=\"{'info': i === _index}\">\n            <td>{{ val.area }}</td>\n            <td>{{ val.plataforma }}</td>\n            <td>{{ val.baia }}</td>\n            <td>{{ val.bico }}</td>\n        </tr>\n        <tr *ngIf=\"!alinhamentoIndexBA.length\">\n            <td colspan=\"4\">{{'messages.nenhumRegistroEncontrado' | translate }}</td>\n        </tr>\n    </tbody>\n</table>\n<div class=\"row\">\n    <div class=\"col-6 col-12 text-right\">\n        <div class=\"form-group\">\n            <button class=\"btn btn-success mr-2\" type=\"button\" (click)=\"excluir()\"\n            [ngClass]=\"{'opacity': ((alinhamentoBA?.regPlanej == null) ? true: false) || (isDetail == true ? true: false)}\">\n                {{ 'buttons.excluir' | translate }}\n            </button>\n        </div>\n    </div>\n</div>\n\n<table class=\"table table-striped table-hover\" *ngIf=\"showTable\">\n    <thead>\n        <tr>\n            <th>{{\"labels.area\" | translate }}</th>\n            <th>{{\"labels.plataforma\" | translate}}</th>\n            <th>{{\"labels.baia\" | translate}}</th>\n            <th>{{\"labels.bico\" | translate}}</th>\n        </tr>\n    </thead>\n    <tbody>\n        <tr *ngFor=\"let val of alinhamentoIndexBD; let i = index\" (click)=\"selectedBD(val, i)\"\n            [ngClass]=\"{'info': i === _index}\">\n            <td>{{ val.area }}</td>\n            <td>{{ val.plataforma }}</td>\n            <td>{{ val.baia }}</td>\n            <td>{{ val.bico }}</td>\n        </tr>\n        <tr *ngIf=\"!alinhamentoIndexBD.length\">\n            <td colspan=\"4\">{{'messages.nenhumRegistroEncontrado' | translate }}</td>\n        </tr>\n    </tbody>\n</table>\n<div class=\"row\">\n    <div class=\"col-6 col-12 text-right\">\n        <div class=\"form-group\">\n            <button class=\"btn btn-success mr-2\" type=\"button\" (click)=\"adicionar()\"\n            [ngClass]=\"{'opacity': ((alinhamentoBD?.regPlanej == null) ? true: false) || (isDetail == true ? true: false)}\">\n                {{ 'buttons.adicionar' | translate }}\n            </button>\n        </div>\n    </div>\n</div>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"container-buttons\">\n    <div class=\"btn-group\">\n        <a title=\"\" class=\"btn uni-btn btn-sm\" (click)=\"back()\" *ngIf=\"!showTable\">\n            <i class=\"icon-arrow-left _white\"></i>\n        </a>\n        <a title=\"{{ 'buttons.novo' | translate }}\" class=\"btn uni-btn btn-sm\" *ngIf=\"showTable\"\n            [ngClass]=\"{'opacity': isDetail == true ? true: false || funcoesService.isDetail(actionForm)}\" (click)=\"new()\">\n            <i class=\"icon-plus _white\"></i>\n        </a>\n        <button title=\"{{ 'buttons.visualizar' | translate }}\" class=\"btn uni-btn btn-sm\" *ngIf=\"showTable\"\n            [disabled]=\"(deposito?.regPlanej == 0 || !deposito?.regPlanej) ? true : false\" type=\"button\"\n            (click)=\"show()\">\n            <i class=\"icon-eye\"></i>\n        </button>\n        <a title=\"{{ 'buttons.excluir' | translate }}\" *ngIf=\"showTable\" class=\"btn uni-btn btn-sm opacity\"\n            [ngClass]=\"{'opacity': ((deposito?.regPlanej == null) ? true: false) || (isDetail == true ? true: false) || funcoesService.isDetail(actionForm)}\"\n            (click)=\"delete()\">\n            <i class=\"icon-close _white\"></i>\n        </a> \n        <a title=\"{{ 'buttons.ativar' | translate }}\" class=\"btn uni-btn btn-sm opacity\" *ngIf=\"showTable || detail\"\n            [ngClass]=\"{'opacity': (deposito?.regPlanej == null ? true: false) || (isDetail == true ? true: false) || funcoesService.isDetail(actionForm)}\"\n            (click)=\"ativaDeposito()\">\n            <i class=\"icon-check _white\"></i>\n        </a>\n    </div>\n</div>\n<table class=\"table table-striped table-hover\" *ngIf=\"showTable\">\n    <thead>\n        <tr>\n            <th>{{\"labels.deposito\" | translate }}</th>\n            <th>{{\"labels.ativo\" | translate}}</th>\n        </tr>\n    </thead>\n    <tbody>\n        <tr *ngFor=\"let val of depositoIndex; let i = index\" (click)=\"selected(val, i)\"\n            [ngClass]=\"{'info': i === _index}\">\n            <td>{{ val.deposito }}</td>\n            <td>\n                <input type=\"checkbox\" [checked]=\"val.flagAtivo === 'S'\" (click)=\"onCheckboxClick($event, val)\" [disabled]=\"funcoesService.isDetail(actionForm) || detail\">\n            </td>\n        </tr>\n        <tr *ngIf=\"!depositoIndex.length\">\n            <td colspan=\"9\">{{'messages.nenhumRegistroEncontrado' | translate }}</td>\n        </tr>\n    </tbody>\n</table>\n\n<form class=\"form\" #formItens=\"ngForm\" (ngSubmit)=\"onSubmit(formItens)\" *ngIf=\"!showTable\" autocomplete=\"off\">\n    <app-validacoes formErrorId=\"msgDeposito\"></app-validacoes>\n    <div class=\"tab-content top\">\n        <div class=\"row\">\n            <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                <div class=\"form-group form-group-sm\">\n                    <app-pesquisa-saldo-lote-deposito id=\"deposito\" name=\"deposito\" required=\"true\"\n                                    [label]=\"'deposito'\" [modalTitle]=\"'deposito'\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm) || detail\"\n                                    [field]=\"'tanqueId'\"\n                                    [options]=\"saldoDepositoOptions\"\n                                    [(ngModel)]=\"deposito.deposito\">\n                    </app-pesquisa-saldo-lote-deposito>\n                </div>\n            </div> \n        </div>\n        <div class=\"row mt-1\">\n            <div class=\"col-lg-6\">\n                <div class=\"form-group form-group-sm\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\" [disabled]=\"isDetail || detail\">{{\n                        'buttons.salvar' | translate }}\n                    </button>\n                </div>\n            </div>\n        </div>\n    </div>\n</form>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"container-buttons\">\n    <div class=\"btn-group\">\n        <a title=\"\" class=\"btn uni-btn btn-sm\" (click)=\"back()\" *ngIf=\"!showTable\">\n            <i class=\"icon-arrow-left _white\"></i>\n        </a>\n        <a title=\"{{ 'buttons.novo' | translate }}\" class=\"btn uni-btn btn-sm\" *ngIf=\"showTable\"\n            [ngClass]=\"{'opacity': isDetail == true ? true: false || funcoesService.isDetail(actionForm)}\"\n            (click)=\"new()\">\n            <i class=\"icon-plus _white\"></i>\n        </a>\n        <button title=\"{{ 'buttons.visualizar' | translate }}\" class=\"btn uni-btn btn-sm\" *ngIf=\"showTable\"\n            [disabled]=\"(filiais?.regPlanej == 0 || !filiais?.regPlanej) ? true : false\" type=\"button\" (click)=\"show()\">\n            <i class=\"icon-eye\"></i>\n        </button>\n        <a title=\"{{ 'buttons.editar' | translate }}\" class=\"btn uni-btn btn-sm opacity\" *ngIf=\"showTable || detail\"\n            [ngClass]=\"{'opacity': (filiais?.regPlanej == null ? true: false) || (isDetail == true ? true: false)  || funcoesService.isDetail(actionForm)}\"\n            (click)=\"edit()\">\n            <i class=\"icon-pencil _white\"></i>\n        </a>\n        <a title=\"{{ 'buttons.excluir' | translate }}\" *ngIf=\"showTable\" class=\"btn uni-btn btn-sm opacity\"\n            [ngClass]=\"{'opacity': ((filiais?.regPlanej == null) ? true: false) || (isDetail == true ? true: false) || funcoesService.isDetail(actionForm)}\"\n            (click)=\"delete()\">\n            <i class=\"icon-close _white\"></i>\n        </a>\n    </div>\n</div>\n<table class=\"table table-striped table-hover\" *ngIf=\"showTable\">\n    <thead>\n        <tr>\n            <th>{{\"labels.codigo\" | translate }}</th>\n            <th>{{\"labels.cliente\" | translate}}</th>\n            <th *ngIf=\"data.tipoMov !== 'C'\">{{\"labels.clienteVenda\" | translate}}</th>\n            <th *ngIf=\"data.tipoMov !== 'D'\">{{\"labels.emitente\" | translate}}</th>\n            <th>{{\"labels.litrosPlanej\" | translate}}</th>\n            <th>{{\"labels.kilosPlanej\" | translate}}</th>\n            <th>{{\"labels.saldoLitros\" | translate}}</th>\n            <th>{{\"labels.saldoKilos\" | translate}}</th>\n            <th>{{\"labels.atualAut\" | translate}}</th>\n        </tr>\n    </thead>\n    <tbody>\n        <tr *ngFor=\"let val of filiaisIndex; let i = index\" (click)=\"selected(val, i)\"\n            [ngClass]=\"{'info': i === _index}\">\n            <td>{{ val.destinatarioIdTransportadora }}</td>\n            <td>{{ val.nomeCliente }}</td>\n            <td *ngIf=\"data.tipoMov !== 'C'\">Cliente Venda</td>\n            <td *ngIf=\"data.tipoMov !== 'D'\">Emitente</td>\n            <td>{{ val.litros | number: '1.0-2' }}</td>\n            <td>{{ val.kilos | number: '1.0-2' }}</td>\n            <td>{{ val.saldoLitros | number: '1.0-2' }}</td>\n            <td>{{ val.saldoKilos | number: '1.0-2' }}</td>\n            <td>\n                <input type=\"checkbox\" [checked]=\"val.flagSaldoAuto === 'S'\" [disabled]=\"true\">\n            </td>\n        </tr>\n        <tr *ngIf=\"!filiaisIndex.length\">\n            <td colspan=\"9\">{{'messages.nenhumRegistroEncontrado' | translate }}</td>\n        </tr>\n    </tbody>\n</table>\n\n<form class=\"form\" #formItens=\"ngForm\" (ngSubmit)=\"onSubmit(formItens)\" *ngIf=\"!showTable\" autocomplete=\"off\">\n    <app-validacoes formErrorId=\"msgFiliais\"></app-validacoes>\n    <div class=\"tab-content top\">\n        <div class=\"row\">\n            <div class=\"col-lg-6\">\n                <div class=\"form-group form-group-sm\">\n                    <app-pesquisa-destinatario required=\"true\" id=\"cliente\" name=\"cliente\" label=\"cliente\"\n                        [(ngModel)]=\"filiais.destinatarioIdTransportadora\"\n                        [disabled]=\"funcoesService.isDetail(actionForm) || editar || detail\"\n                        [inSelected]=\"filiais.transportadora\" showCgcCpf=\"false\" showInscricao=\"false\"\n                        (outModel)=\"outputTransportadora($event)\" tipoDestinatario=\"T\"\n                        modalTitle=\"{{'cliente' | translate}}\">\n                    </app-pesquisa-destinatario>\n                </div>\n            </div>\n            <div class=\"col-lg-6 mt-4\">\n                <div class=\"form-group form-group-sm\">\n                    <b>{{'labels.noPlanejamento' | translate}} {{filiais.lblPlanejamento}}</b>\n                </div>\n            </div>\n        </div>\n        <div class=\"row\" *ngIf=\"data.tipoMov === 'C'\">\n            <div class=\"col-lg-6 col-md-12 col-sm-12\">\n                <div class=\"form-group form-group-sm\">\n                    <app-pesquisa-destinatario id=\"codCliente\" name=\"codCliente\" label=\"clienteVenda\"\n                        [(ngModel)]=\"filiais.destinatarioIdClienteVenda\" tipoDestinatario=\"C\"\n                        [disabled]=\"funcoesService.isDetail(actionForm) || editar || detail\"\n                        [inSelected]=\"filiais.clienteVenda\" showCgcCpf=\"false\" showInscricao=\"false\">\n                    </app-pesquisa-destinatario>\n                </div>\n            </div>\n        </div>\n        <div class=\"row\" *ngIf=\"data.tipoMov === 'D'\">\n            <div class=\"col-lg-6 col-md-6 col-sm-6\">\n                <div class=\"form-group form-group-sm\">\n                    <app-pesquisa-destinatario id=\"emitente\" name=\"emitente\" label=\"clienteEmitente\"\n                        [(ngModel)]=\"filiais.codEmitente\" tipoDestinatario=\"C\"\n                        [disabled]=\"funcoesService.isDetail(actionForm) || editar || detail\"\n                        [inSelected]=\"filiais.emitente\" showCgcCpf=\"false\" showInscricao=\"false\">\n                    </app-pesquisa-destinatario>\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=\"litros\" class=\"required\">{{'labels.litros' | translate}}</label>\n                    <input id=\"litros\" [(ngModel)]=\"filiais.litros\" name=\"litros\" class=\"form-control form-control-sm\"\n                        type=\"text\" [disabled]=\"detail === true? true: null || !data.habilitaLitrosFiliais\" currencyMask\n                        maxlength=\"15\" [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\n                        (blur)=\"validaLitros()\" required=\"true\">\n                </div>\n            </div>\n            <div class=\"col-lg-3\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"agendado_litros_item\">{{'labels.agendado' | translate}}</label>\n                    <input id=\"agendado_litros_item\" name=\"agendado_litros_item\" class=\"form-control form-control-sm\"\n                        type=\"text\" [(ngModel)]=\"filiais.agendadosLitros\" [disabled]=\"true\" currencyMask maxlength=\"15\"\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\" (blur)=\"validaKilos()\">\n                </div>\n            </div>\n            <div class=\"col-lg-3\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"confirmado_litros_cli\">{{'labels.confirmado' | translate}}</label>\n                    <input id=\"confirmado_litros_cli\" name=\"confirmado_litros_cli\" class=\"form-control form-control-sm\"\n                        type=\"text\" [(ngModel)]=\"filiais.confirmadoLitros\" [disabled]=\"true\" currencyMask maxlength=\"15\"\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\n                </div>\n            </div>\n            <div class=\"col-lg-3\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"saldo_litros_cli\">{{'labels.saldo' | translate}}</label>\n                    <input id=\"saldo_litros_cli\" name=\"saldo_litros_cli\" class=\"form-control form-control-sm\"\n                        type=\"text\" [(ngModel)]=\"filiais.saldoLitros\" [disabled]=\"true\" currencyMask maxlength=\"15\"\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\n                </div>\n            </div>\n        </div>\n\n        <div class=\"row\">\n            <div class=\"col-lg-3\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"kilos\" class=\"required\">{{'labels.kilos' | translate}}</label>\n                    <input id=\"kilos\" name=\"kilos\" [(ngModel)]=\"filiais.kilos\" class=\"form-control form-control-sm\"\n                        type=\"text\" [disabled]=\"detail === true? true: null\" currencyMask maxlength=\"15\" required=\"true\"\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\" (blur)=\"validaKilos()\">\n                </div>\n            </div>\n            <div class=\"col-lg-3\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"agendado_kilos_cli\">{{'labels.agendado' | translate}}</label>\n                    <input id=\"agendado_kilos_cli\" name=\"agendado_kilos_cli\" class=\"form-control form-control-sm\"\n                        type=\"text\" [(ngModel)]=\"filiais.agendadosKilos\" [disabled]=\"true\" currencyMask maxlength=\"15\"\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\n                </div>\n            </div>\n            <div class=\"col-lg-3\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"confrmado_kilos_cli\">{{'labels.confirmado' | translate}}</label>\n                    <input id=\"confrmado_kilos_cli\" name=\"confrmado_kilos_cli\" class=\"form-control form-control-sm\"\n                        type=\"text\" [disabled]=\"true\" [(ngModel)]=\"filiais.confirmadoKilos\" currencyMask maxlength=\"15\"\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\n                </div>\n            </div>\n            <div class=\"col-lg-3\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"saldo_kilos_cli\">{{'labels.saldo' | translate}}</label>\n                    <input id=\"saldo_kilos_cli\" name=\"saldo_kilos_cli\" class=\"form-control form-control-sm\" type=\"text\"\n                        [(ngModel)]=\"filiais.saldoKilos\" [disabled]=\"true\" currencyMask maxlength=\"15\"\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-3 col-md-1 col-sm-6\">\n                <div class=\"custom-control custom-checkbox\">\n                    <input id=\"flagSaldoAuto\" name=\"flagSaldoAuto\" class=\"custom-control-input checkbox-success\"\n                        type=\"checkbox\" [ngModel]=\"filiais.flagSaldoAuto === 'S'\"\n                        (ngModelChange)=\"filiais.flagSaldoAuto = $event ? 'S' : 'N'\"\n                        [disabled]=\"funcoesService.isDetail(actionForm) || detail\" (blur)=\"validaFlag()\">\n                    <label class=\"custom-control-label\" for=\"flagSaldoAuto\">\n                        {{'labels.atualizacaoAutSaldo' | translate}}\n                    </label>\n                </div>\n            </div>\n            <div class=\"input-group-append ml-3\">\n                <div>\n                    <button type=\"button\" class=\"btn btn-sm btn-success\"\n                        [disabled]=\"isDetail || detail || data.tipoMov !== 'C'\" (click)=\"carregarSaldoLiberado()\">\n                        <i class=\"fa fa-sign-in mr-2\"></i>\n                        {{'buttons.carregarSaldo' | translate }}\n                    </button>\n                </div>\n            </div>\n        </div>\n        <div class=\"row mt-2\">\n            <div class=\"col-lg-6\">\n                <div class=\"form-group form-group-sm\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\" [disabled]=\"isDetail || detail\">{{\n                        'buttons.salvar' | translate }}\n                    </button>\n                </div>\n            </div>\n        </div>\n    </div>\n</form>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"container-buttons\">\n    <div class=\"btn-group\">\n        <a title=\"{{ 'buttons.alterar' | translate }}\" class=\"btn uni-btn btn-sm\" *ngIf=\"showTable\"\n            [ngClass]=\"{'opacity': isDetail == true ? true: false || !inconsistenciasIndex.length}\" (click)=\"alterar()\">\n            <i class=\"icon-pencil _white\"></i>\n        </a> \n    </div>\n</div>\n<table class=\"table table-striped table-hover\" *ngIf=\"showTable\">\n    <thead>\n        <tr>\n            <th>{{ \"labels.nrOS\" | translate }}</th>\n            <th>{{ \"labels.previsaoChegada\" | translate }}</th>\n            <th>{{ \"labels.cliente\" | translate }}</th>\n            <th>{{ \"labels.produto\" | translate }}</th>\n            <th>{{ \"labels.placa\" | translate }}</th>\n            <th>{{ \"labels.motorista\" | translate }}</th>\n            <th>{{ \"labels.transportadora\" | translate }}</th>\n            <th>{{ \"labels.tanque\" | translate }}</th>\n            <th>{{ \"labels.plataforma\" | translate }}</th>\n            <th>{{ \"labels.baia\" | translate }}</th>\n            <th>{{ \"labels.bico\" | translate }}</th>\n            <th>{{ \"labels.inconsistencia\" | translate }}</th>\n        </tr>\n    </thead>\n    <tbody>\n        <tr *ngFor=\"let val of inconsistenciasIndex; let i = index\"\n            [ngClass]=\"{'info': i === _index}\">\n            <td>{{ val.regPlaneja }}</td>\n            <td>{{ val.dtPrevisaoChegada | date }}</td>\n            <td>{{ val.cliente }}</td>\n            <td>{{ val.produto }}</td>\n            <td>{{ val.placa }}</td>\n            <td>{{ val.motorista }}</td>\n            <td>{{ val.transportadora }}</td>\n            <td>{{ val.tanquePlanejado }}</td>\n            <td>{{ val.descrPlataforma }}</td>\n            <td>{{ val.numeroBaia }}</td>\n            <td>{{ val.ordemBico }}</td>\n            <td>{{ val.descrInconsistencia }}</td>\n        </tr>\n        <tr *ngIf=\"!inconsistenciasIndex.length\">\n            <td colspan=\"14\">{{'messages.nenhumRegistroEncontrado' | translate }}</td>\n        </tr>\n    </tbody>\n</table>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"container-buttons\">\n    <div class=\"btn-group\">\n        <a title=\"\" class=\"btn uni-btn btn-sm\" (click)=\"back()\" *ngIf=\"!showTable\">\n            <i class=\"icon-arrow-left _white\"></i>\n        </a>\n        <a title=\"{{ 'buttons.novo' | translate }}\" class=\"btn uni-btn btn-sm\" *ngIf=\"showTable\"\n            [ngClass]=\"{'opacity': isDetail == true ? true: false} || funcoesService.isDetail(actionForm)\" (click)=\"new()\">\n            <i class=\"icon-plus _white\"></i>\n        </a>\n        <button title=\"{{ 'buttons.visualizar' | translate }}\" class=\"btn uni-btn btn-sm\" *ngIf=\"showTable\"\n            [disabled]=\"(veiculos?.regPlanej == 0 || !veiculos?.regPlanej) ? true : false\" type=\"button\"\n            (click)=\"show()\">\n            <i class=\"icon-eye\"></i>\n        </button>\n        <a title=\"{{ 'buttons.editar' | translate }}\" class=\"btn uni-btn btn-sm opacity\" *ngIf=\"showTable || detail\"\n            [ngClass]=\"{'opacity': (veiculos?.regPlanej == null ? true: false) || (isDetail == true ? true: false) || funcoesService.isDetail(actionForm)}\"\n            (click)=\"edit()\">\n            <i class=\"icon-pencil _white\"></i>\n        </a>\n        <a title=\"{{ 'buttons.excluir' | translate }}\" *ngIf=\"showTable\" class=\"btn uni-btn btn-sm opacity\"\n            [ngClass]=\"{'opacity': ((veiculos?.regPlanej == null) ? true: false) || (isDetail == true ? true: false) || funcoesService.isDetail(actionForm)}\"\n            (click)=\"delete()\">\n            <i class=\"icon-close _white\"></i>\n        </a> \n        <a title=\"{{ 'buttons.importar' | translate }}\" class=\"btn uni-btn btn-sm\" *ngIf=\"showTable\"\n            [ngClass]=\"{'opacity': isDetail == true ? true: false} || funcoesService.isDetail(actionForm)\" (click)=\"abrirModalImportacaoTransp()\">\n            <i class=\"fa fa-sign-in _white\"></i>\n        </a>\n    \n    </div>\n</div>\n<table class=\"table table-striped table-hover\" *ngIf=\"showTable\">\n    <thead>\n        <tr>\n            <th>{{\"labels.codigo\" | translate }}</th>\n            <th>{{\"labels.transportadora\" | translate}}</th>\n            <th>{{\"labels.qtdVeiculos\" | translate}}</th>\n        </tr>\n    </thead>\n    <tbody>\n        <tr *ngFor=\"let val of veiculosIndex; let i = index\" (click)=\"selected(val, i)\"\n            [ngClass]=\"{'info': i === _index}\">\n            <td>{{ val.destinatarioIdTransportadora }}</td>\n            <td>{{ val.nomeTransp }}</td>\n            <td>{{ val.qtdeVeiculos }}</td>\n        </tr>\n        <tr *ngIf=\"!veiculosIndex.length\">\n            <td colspan=\"9\">{{'messages.nenhumRegistroEncontrado' | translate }}</td>\n        </tr>\n    </tbody>\n</table>\n\n<form class=\"form\" #formItens=\"ngForm\" (ngSubmit)=\"onSubmit(formItens)\" *ngIf=\"!showTable\" autocomplete=\"off\">\n    <app-validacoes formErrorId=\"msgVeiculos\"></app-validacoes>\n    <div class=\"tab-content top\">\n        <div class=\"row\">\n            <div class=\"col-lg-6\">\n                <div class=\"form-group form-group-sm\">\n                    <app-pesquisa-destinatario required=\"true\" id=\"destinatarioIdTransportadora\"\n                        name=\"destinatarioIdTransportadora\" label=\"transportadora\"\n                        [(ngModel)]=\"veiculos.destinatarioIdTransportadora\" [disabled]=\"funcoesService.isDetail(actionForm) || editar || detail\"\n                        [inSelected]=\"veiculos.transportadora\" showCgcCpf=\"false\" showInscricao=\"false\"\n                        (outModel)=\"outputTransportadora($event)\" tipoDestinatario=\"T\" modalTitle=\"{{\n                        'pesquisaDeTransportadora' | translate}}\">\n                    </app-pesquisa-destinatario>\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=\"qtdeVeiculos\">{{'labels.qtdeVeiculos' | translate}}</label>\n                    <input id=\"qtdeVeiculos\" name=\"qtdeVeiculos\" [(ngModel)]=\"veiculos.qtdeVeiculos\"\n                        class=\"form-control form-control-sm\" type=\"text\" [disabled]=\"detail === true? true: null\"\n                        currencyMask maxlength=\"15\"\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\n                </div>\n            </div>\n            <div class=\"col-lg-3\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"agendVeic\">{{'labels.agendado' | translate}}</label>\n                    <input id=\"agendVeic\" name=\"agendVeic\" class=\"form-control form-control-sm\" type=\"text\"\n                        [(ngModel)]=\"veiculos.agendVeic\" [disabled]=\"true\" currencyMask maxlength=\"15\"\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\n                </div>\n            </div>\n            <div class=\"col-lg-3\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"confVeic\">{{'labels.confirmado' | translate}}</label>\n                    <input id=\"confVeic\" name=\"confVeic\" class=\"form-control form-control-sm\" type=\"text\"\n                        [disabled]=\"true\" currencyMask maxlength=\"15\" [(ngModel)]=\"veiculos.confVeic\"\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\n                </div>\n            </div>\n            <div class=\"col-lg-3\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"saldVeic\">{{'labels.saldo' | translate}}</label>\n                    <input id=\"saldVeic\" name=\"saldVeic\" class=\"form-control form-control-sm\" type=\"text\"\n                        [disabled]=\"true\" currencyMask maxlength=\"15\" [(ngModel)]=\"veiculos.saldVeic\"\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-6\">\n                <div class=\"form-group form-group-sm\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\" [disabled]=\"isDetail || detail\">{{\n                        'buttons.salvar' | translate }}\n                    </button>\n                </div>\n            </div>\n        </div>\n    </div>\n</form>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-filter/planejamento-master-filter.component.html":
/*!***********************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-filter/planejamento-master-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=\"planejamento-master-filter\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"uni-modal-dialog-md-45\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ service.title | translate }}</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"periodoDe\" class=\"required\">{{\"labels.periodoDe\" | translate\n                                    }}</label>\n                                <app-data id=\"periodoDe\" name=\"periodoDe\" [(ngModel)]=\"service.filtro.dataI\" autofocus\n                                    class=\"dataHora\" required=\"true\">\n                                </app-data>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\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\" class=\"dataHora\"\n                                    required=\"true\">\n                                </app-data>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-12\">\n                            <fieldset class=\"mb-2 mt-2\">\n                                <legend class=\"required\">{{ \"labels.tipoOperacao\" | translate }}</legend>\n                                <div class=\"form-group form-group-sm\">\n                                    <label class=\"custom-control custom-radio custom-control-inline ml-1\">\n                                        <input type=\"radio\" name=\"tipo_operacao\"\n                                            class=\"custom-control-input radio-success\" id=\"carga_tipo_operacao\"\n                                            value=\"C\" [(ngModel)]=\"service.filtro.tipoOperacao\">\n                                        <label class=\"custom-control-label\" for=\"carga_tipo_operacao\">{{'labels.carga' |\n                                            translate }}</label>\n                                    </label>\n                                    <label class=\"custom-control custom-radio custom-control-inline ml-1\">\n                                        <input type=\"radio\" name=\"tipo_operacao\"\n                                            class=\"custom-control-input radio-success\" id=\"descarga_tipo_operacao\"\n                                            value=\"D\" [(ngModel)]=\"service.filtro.tipoOperacao\">\n                                        <label class=\"custom-control-label\"\n                                            for=\"descarga_tipo_operacao\">{{'labels.descarga' |\n                                            translate }}</label>\n                                    </label>\n                                    <label class=\"custom-control custom-radio custom-control-inline ml-1\">\n                                        <input type=\"radio\" name=\"tipo_operacao\"\n                                            class=\"custom-control-input radio-success\" id=\"ambos_tipo_operacao\"\n                                            value=\"A\" [(ngModel)]=\"service.filtro.tipoOperacao\">\n                                        <label class=\"custom-control-label\" for=\"ambos_tipo_operacao\">{{'labels.ambos' |\n                                            translate }}</label>\n                                    </label>\n                                </div>\n                            </fieldset>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-destinatario id=\"destinatario\" name=\"destinatario\" 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-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-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-destinatario id=\"transportadora\" name=\"transportadora\"\n                                    tipoDestinatario=\"T\" modalTitle=\"pesquisaDeTransportadora\" label=\"transportadora\"\n                                    [(ngModel)]=\"service.filtro.destinatarioIdTransportadora\" showInscricao=\"false\"\n                                    showCgcCpf=\"false\">\n                                </app-pesquisa-destinatario>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"grupo\">{{'labels.grupo' | translate}}</label>\n                                <app-combo-padrao id=\"grupo\" name=\"grupo\" tabela=\"GrupoCliente\" chave=\"CodGrupo\"\n                                    descricao=\"DescrGrupo\"\n                                    [(ngModel)]=\"service.filtro.grupoClienteId\"></app-combo-padrao>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row mt-2 mb-2\">\n                        <div class=\"col-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"flag\" name=\"flag\" [ngModel]=\"service.filtro.flag === 'S'\"\n                                    (ngModelChange)=\"service.filtro.flag=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"flag\">{{'labels.somenteAtivos' |\n                                    translate}}</label>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"modal-footer\">\n                        <button class=\"btn btn-success mr-1\" type=\"submit\">\n                            {{ 'buttons.pesquisar' | translate }}\n                        </button>\n                        <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">\n                            {{ 'buttons.cancelar' | 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/vopak/movimentos/planejamento-master/planejamento-master-form/planejamento-master-form.component.html":
/*!*******************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-form/planejamento-master-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.regPlanej\"\n    [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <app-form-legenda></app-form-legenda>\n    <div class=\"card-body widget-body\">\n        <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\" autocomplete=\"off\">\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=\"#dados\">{{\"labels.dados\" |\n                            translate}}</a>\n                    </li>\n                    <li class=\"nav-item\">\n                        <a class=\"nav-link\" data-toggle=\"tab\"\n                            [ngClass]=\"{'disabled': disabledTab}\" href=\"#filiais\">{{\"labels.filiais\" | translate}}</a>\n                    </li>\n                    <li class=\"nav-item\">\n                        <a class=\"nav-link\" data-toggle=\"tab\"\n                            [ngClass]=\"{'disabled': disabledTab}\" href=\"#deposito\">{{\"labels.deposito\" |\n                            translate}}</a>\n                    </li>\n                    <li class=\"nav-item\">\n                        <a class=\"nav-link\" data-toggle=\"tab\"\n                            [ngClass]=\"{'disabled': disabledTab}\" href=\"#veiculos\">{{\"labels.veiculos\" |\n                            translate}}</a>\n                    </li>\n                    <li class=\"nav-item\">\n                        <a class=\"nav-link\" data-toggle=\"tab\"\n                            [ngClass]=\"{'disabled': disabledTab}\" href=\"#inconsistencias\">{{\"labels.inconsistencias\" |\n                            translate}}</a>\n                    </li>\n                    <li class=\"nav-item\">\n                        <a class=\"nav-link\" data-toggle=\"tab\"\n                            [ngClass]=\"{'disabled': disabledTab}\" href=\"#alinhamento\">{{\"labels.alinhamento\" |\n                            translate}}</a>\n                    </li>\n                </ul>\n            </div>\n            <div class=\"tab-content top\">\n                <app-validacoes formErrorId=\"msgDados\"></app-validacoes>\n                <div class=\"tab-pane active show\" id=\"dados\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-3 col-md-6 col-sm-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"numero\" class=\"required\"> {{ 'labels.numero' | translate }}\n                                </label>\n                                <input type=\"text\" class=\"form-control-sm form-control\" id=\"numero\" name=\"numero\"\n                                    required=\"true\" maxlength=\"28\" [disabled]=\"true\" [(ngModel)]=\"data.regTmp\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-3 col-md-6 col-sm-12 custom-checkbox-line-item\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"flag\" name=\"flag\" [ngModel]=\"data.flagAtivo === 'S'\"\n                                    (ngModelChange)=\"data.flagAtivo=$event?'S':'N'\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"flag\">{{'labels.ativo' |\n                                    translate}}</label>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <fieldset>\n                                    <legend class=\"required\">{{ \"labels.tipoOperacao\" | translate }}\n                                    </legend>\n                                    <div class=\"form-check\">\n                                        <input id=\"carga_tipo_operacao\" class=\"form-check-input\" type=\"radio\"\n                                            name=\"tipo_operacao\" value=\"C\" [(ngModel)]=\"data.tipoMov\"\n                                            [disabled]=\"funcoesService.isDetail(actionForm) || funcoesService.isEdit(actionForm) ||\n                                             _disabled === true || this.habilitaTipoMov && funcoesService.isEdit(actionForm)\">\n                                        <label class=\"form-check-label\" for=\"carga_tipo_operacao\">\n                                            {{'labels.carga' | translate }}\n                                        </label>\n                                    </div>\n                                    <div class=\"form-check\">\n                                        <input id=\"descarga\" class=\"form-check-input\" type=\"radio\" name=\"tipo_operacao1\"\n                                            value=\"D\" [(ngModel)]=\"data.tipoMov\"\n                                            [disabled]=\"funcoesService.isDetail(actionForm) || funcoesService.isEdit(actionForm) ||\n                                             _disabled === true || this.habilitaTipoMov && funcoesService.isEdit(actionForm)\">\n                                        <label class=\"form-check-label\" for=\"descarga\">\n                                            {{'labels.descarga' | translate }}\n                                        </label>\n                                    </div>\n                                </fieldset>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6 col-sm-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-destinatario id=\"destinatarioId\" name=\"destinatarioId\" label=\"cliente\"\n                                    required=\"true\" [(ngModel)]=\"data.destinatarioIdCliente\" tipoDestinatario=\"C\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm) || funcoesService.isEdit(actionForm)\"\n                                    [inSelected]=\"data.cliente\" (outModel)=\"loadCliente($event)\" showCgcCpf=\"false\"\n                                    showInscricao=\"false\">\n                                </app-pesquisa-destinatario>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6 col-sm-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-material id=\"produto\" name=\"produto\" label=\"produto\" required=\"true\"\n                                    modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"data.materialId\"\n                                    (outModel)=\"trataMaterial($event)\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm) || funcoesService.isEdit(actionForm)\"\n                                    [inSelected]=\"data.material\">\n                                </app-pesquisa-material>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"fantasia\"> {{ 'labels.fantasia' | translate }}\n                                </label>\n                                <input type=\"text\" class=\"form-control-sm form-control\" id=\"fantasia\" name=\"fantasia\"\n                                    maxlength=\"15\" [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                    [(ngModel)]=\"data.fantasia\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"text\"> {{ 'labels.planejamentoCliente' | translate }}\n                                </label>\n                                <input type=\"text\" class=\"form-control-sm form-control\" id=\"numPlanej\" name=\"numPlanej\"\n                                    maxlength=\"15\" [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                    [(ngModel)]=\"data.numPlanej\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6\">\n                            <div class=\"row\">\n                                <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"pedidoVenda\" [class.required]=\"requiredPedidoVenda\">\n                                            {{ 'labels.pedidoVenda' | translate }}\n                                        </label>\n                                        <input type=\"text\" class=\"form-control-sm form-control\" id=\"pedidoVenda\"\n                                            name=\"pedidoVenda\" maxlength=\"15\" [required]=\"requiredPedidoVenda\"\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                            [(ngModel)]=\"data.pedidoVenda\">\n                                    </div>\n                                </div>\n                                <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"pedClienteIte\"> {{ 'labels.item' | translate }}\n                                        </label>\n                                        <input type=\"text\" class=\"form-control-sm form-control\" id=\"pedClienteIte\"\n                                            name=\"pedClienteIte\" maxlength=\"5\"\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                            [(ngModel)]=\"data.pedClienteIte\">\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"pedidoRemessa\" [class.required]=\"requiredPedidoRemessa\">\n                                            {{ 'labels.pedidoRemessa' | translate }}\n                                        </label>\n                                        <input type=\"text\" class=\"form-control-sm form-control\" id=\"pedidoRemessa\"\n                                            name=\"pedidoRemessa\" maxlength=\"15\" [required]=\"requiredPedidoRemessa\"\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                            [(ngModel)]=\"data.pedidoRemessa\">\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"periodoDe\" class=\"required\">{{\"labels.inicio\" |\n                                            translate\n                                            }}</label>\n                                        <app-data id=\"periodoDe\" name=\"periodoDe\" [(ngModel)]=\"data.dtInicio\"\n                                            class=\"dataHora\" [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                            [formatDateTime]=\"mascara.getFormatDataHorMin\" [required]=\"true\" autofocus>\n                                        </app-data>\n                                    </div>\n                                </div>\n                                <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"ate\" class=\"required\">{{\"labels.termino\" | translate\n                                            }}</label>\n                                        <app-data id=\"ate\" name=\"ate\" [(ngModel)]=\"data.dtFim\" class=\"dataHora\"\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                            [formatDateTime]=\"mascara.getFormatDataHorMin\" [required]=\"true\"\n                                            (executa)=\"validaDatas()\" autofocus>\n                                        </app-data>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-group\">\n                                        <label for=\"observacao\">{{'labels.observacao' | translate}}</label>\n                                        <textarea id=\"observacao\" name=\"observacao\" [(ngModel)]=\"data.observacao\"\n                                            class=\"form-control form-control-sm\" type=\"text\"\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\" rows=\"5\"></textarea>\n                                    </div>\n                                </div>\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=\"densidade\">{{'labels.densidade' | translate}}</label>\n                                <input id=\"densidade\" [(ngModel)]=\"data.densidadePadrao\"\n                                    class=\"form-control form-control-sm\" type=\"text\" name=\"densidade\" [disabled]=\"true\"\n                                    currencyMask maxlength=\"8\"\n                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 5 }\">\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=\"saldoMinLt\">{{'labels.saldoMinLt' | translate}}</label>\n                                <input id=\"saldoMinLt\" [(ngModel)]=\"data.saldoMinLt\"\n                                    class=\"form-control form-control-sm\" type=\"text\" name=\"saldoMinLt\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm) || data.tipoMov !== 'C'\"\n                                    currencyMask maxlength=\"15\"\n                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\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=\"saldoMinKg\">{{'labels.saldoMinKg' | translate}}</label>\n                                <input id=\"saldoMinKg\" [(ngModel)]=\"data.saldoMinKg\"\n                                    class=\"form-control form-control-sm\" type=\"text\" name=\"saldoMinKg\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm) || data.tipoMov !== 'C'\"\n                                    currencyMask maxlength=\"15\"\n                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\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=\"litros\" class=\"required\">{{'labels.litros' | translate}}</label>\n                                <input id=\"litros\" [(ngModel)]=\"data.litrosPlanej\" class=\"form-control form-control-sm\"\n                                    type=\"text\" name=\"litros\" [disabled]=\"true\" currencyMask maxlength=\"15\"\n                                    required=\"true\"\n                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-3\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"agendado_litros\">{{'labels.agendado' | translate}}</label>\n                                <input id=\"agendado_litros\" name=\"agendado_litros\" class=\"form-control form-control-sm\"\n                                    type=\"text\" [(ngModel)]=\"data.litrosAgend\" [disabled]=\"true\" currencyMask\n                                    maxlength=\"8\"\n                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-3\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"confrmado_litros\">{{'labels.confirmado' | translate}}</label>\n                                <input id=\"confrmado_litros\" name=\"confrmado_litros\"\n                                    class=\"form-control form-control-sm\" type=\"text\" [(ngModel)]=\"data.litrosConf\"\n                                    [disabled]=\"true\" currencyMask maxlength=\"8\"\n                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-3\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"saldo_litros\">{{'labels.saldo' | translate}}</label>\n                                <input id=\"saldo_litros\" name=\"saldo_litros\" class=\"form-control form-control-sm\"\n                                    type=\"text\" [disabled]=\"true\" [(ngModel)]=\"data.litrosSaldo\" currencyMask\n                                    maxlength=\"8\"\n                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\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=\"kilos\" class=\"required\">{{'labels.kilos' | translate}}</label>\n                                <input id=\"kilos\" name=\"kilos\" [(ngModel)]=\"data.kilosPlanej\"\n                                    class=\"form-control form-control-sm\" type=\"text\" [disabled]=\"true\" currencyMask\n                                    maxlength=\"15\" required=\"true\"\n                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-3\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"agendado_kilos\">{{'labels.agendado' | translate}}</label>\n                                <input id=\"agendado_kilos\" name=\"agendado_kilos\" class=\"form-control form-control-sm\"\n                                    type=\"text\" [(ngModel)]=\"data.kilosAgend\" [disabled]=\"true\" currencyMask\n                                    maxlength=\"8\"\n                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-3\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"confrmado_kilos\">{{'labels.confirmado' | translate}}</label>\n                                <input id=\"confrmado_kilos\" name=\"confrmado_kilos\" class=\"form-control form-control-sm\"\n                                    type=\"text\" [disabled]=\"true\" [(ngModel)]=\"data.kilosConf\" currencyMask\n                                    maxlength=\"8\"\n                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-3\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"saldo_kilos\">{{'labels.saldo' | translate}}</label>\n                                <input id=\"saldo_kilos\" name=\"saldo_kilos\" class=\"form-control form-control-sm\"\n                                    type=\"text\" [(ngModel)]=\"data.kilosSaldo\" [disabled]=\"true\" currencyMask\n                                    maxlength=\"8\"\n                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-6 col-12\">\n                            <div class=\"form-group\">\n                                <button class=\"btn btn-success mr-2\" type=\"submit\" *ngIf=\"!data.bntSalvarGeral\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm) || data.bntSalvarGeral\">\n                                    {{ 'buttons.salvar' | translate }}\n                                </button>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"tab-pane\" id=\"filiais\">\n                    <app-aba-filiais (click)=\"carregarSaldoIndexFiliais()\" [data]=\"data\"></app-aba-filiais>\n                </div>\n                <div class=\"tab-pane\" id=\"deposito\">\n                    <app-aba-deposito [data]=\"data\"></app-aba-deposito>\n                </div>\n                <div class=\"tab-pane\" id=\"veiculos\">\n                    <app-aba-veiculos [data]=\"data\"></app-aba-veiculos>\n                </div>\n                <div class=\"tab-pane\" id=\"inconsistencias\">\n                    <app-aba-inconsistencias [data]=\"data\"></app-aba-inconsistencias>\n                </div>\n                <div class=\"tab-pane\" id=\"alinhamento\">\n                    <app-aba-alinhamento [data]=\"data\"></app-aba-alinhamento>\n                </div>\n            </div>\n        </form>\n    </div>\n</div>\n\n<app-planejamento-master-importar-modal [data]=\"data\"></app-planejamento-master-importar-modal>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-importar-modal/planejamento-master-importar-modal.component.html":
/*!***************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-importar-modal/planejamento-master-importar-modal.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=\"modalImport\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n\t<div class=\"modal-dialog modal-sm\">\r\n\t\t<div class=\"modal-content\">\r\n\t\t\t<form class=\"form\" #frmImport=\"ngForm\" (ngSubmit)=\"onSubmit(frmImport)\">\r\n\t\t\t\t<div class=\"modal-header\">\r\n\t\t\t\t\t<h4 class=\"modal-title\">{{ 'titles.importarTransportadora' | translate }}</h4>\r\n\t\t\t\t\t<button type=\"button\" class=\"close\" aria-label=\"Close\" data-dismiss=\"modal\">\r\n\t\t\t\t\t\t<span aria-hidden=\"true\">&times;</span>\r\n\t\t\t\t\t</button>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class=\"modal-body\">\r\n\t\t\t\t\t<div class=\"row\">\r\n\t\t\t\t\t\t<div class=\"col-md-12\">\r\n\t\t\t\t\t\t\t<span>{{ 'labels.desejaImportarTransportadoraUltimoPlanejamento' | translate }}</span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class=\"clearfix\">&nbsp;</div>\r\n\t\t\t\t\t<div class=\"row\">\r\n\t\t\t\t\t\t<div class=\"col-md-12\">\r\n\t\t\t\t\t\t\t<div class=\"card\">\r\n\t\t\t\t\t\t\t\t<div class=\"card-body\">\r\n\t\t\t\t\t\t\t\t\t<div class=\"form-group form-group-sm\">\r\n\t\t\t\t\t\t\t\t\t\t<div class=\"custom-control custom-radio\">\r\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"custom-control-input radio-success\" id=\"radioDefault\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tname=\"radioDefault\" [(ngModel)]=\"importa.acao\" type=\"radio\" value=\"0\">\r\n\t\t\t\t\t\t\t\t\t\t\t<label class=\"custom-control-label\" for=\"radioDefault\">{{\r\n\t\t\t\t\t\t\t\t\t\t\t\t'labels.filiaisProduto' | translate\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t<div class=\"custom-control custom-radio\">\r\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"custom-control-input radio-success\" id=\"radioPrimary\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tname=\"radioPrimary\" [(ngModel)]=\"importa.acao\" type=\"radio\" value=\"1\">\r\n\t\t\t\t\t\t\t\t\t\t\t<label class=\"custom-control-label\" for=\"radioPrimary\">{{\r\n\t\t\t\t\t\t\t\t\t\t\t\t'labels.filiais' |\r\n\t\t\t\t\t\t\t\t\t\t\t\ttranslate }}\r\n\t\t\t\t\t\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class=\"modal-footer\">\r\n\t\t\t\t\t<button type=\"submit\" class=\"btn btn-small btn-success\" [disabled]=\"!importa.acao\">{{\r\n\t\t\t\t\t\t'buttons.sim' | translate }}</button>\r\n\t\t\t\t\t<button type=\"button\" class=\"btn btn-small btn-default\" data-dismiss=\"modal\">{{ 'buttons.nao' |\r\n\t\t\t\t\t\ttranslate }}</button>\r\n\t\t\t\t</div>\r\n\t\t\t</form>\r\n\t\t</div>\r\n\t</div>\r\n</div>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\"\n                      [formAction]=\"actionForm\"\n                      [itemData]=\"data.regPlanej\"\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <table  id=\"dtPlanejamentoMaster\" 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-planejamento-master-filter (filtrar)=\"executaFiltro()\"></app-planejamento-master-filter>\n");

/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-alinhamento/planejamento-master-aba-alinhamento.component.scss":
/*!***************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-alinhamento/planejamento-master-aba-alinhamento.component.scss ***!
  \***************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-alinhamento/planejamento-master-aba-alinhamento.component.ts":
/*!*************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-alinhamento/planejamento-master-aba-alinhamento.component.ts ***!
  \*************************************************************************************************************************************************************/
/*! exports provided: PlanejamentoMasterAbaAlinhamentoComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterAbaAlinhamentoComponent", function() { return PlanejamentoMasterAbaAlinhamentoComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _planejamento_master_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../planejamento-master.model */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master.model.ts");
/* harmony import */ var _planejamento_master_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../planejamento-master.service */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __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 PlanejamentoMasterAbaAlinhamentoComponent = /** @class */ (function () {
    function PlanejamentoMasterAbaAlinhamentoComponent(router, messageService, loginService, funcoesService, service, serviceDestinatario) {
        var _this = this;
        this.router = router;
        this.messageService = messageService;
        this.loginService = loginService;
        this.funcoesService = funcoesService;
        this.service = service;
        this.serviceDestinatario = serviceDestinatario;
        this.alinhamentoIndexBA = [];
        this.alinhamentoIndexBD = [];
        this.response = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.selectedItem = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.detail = false;
        this.mensagens = [];
        this.carregarAlinhamentoIndex = function (regTemp) { return __awaiter(_this, void 0, void 0, function () {
            var _a, _b;
            return __generator(this, function (_c) {
                switch (_c.label) {
                    case 0:
                        _a = this;
                        return [4 /*yield*/, this.service.getDadosAlinhamentoBA(regTemp).toPromise()];
                    case 1:
                        _a.alinhamentoIndexBA = _c.sent();
                        _b = this;
                        return [4 /*yield*/, this.service.getDadosAlinhamentoBD(regTemp).toPromise()];
                    case 2:
                        _b.alinhamentoIndexBD = _c.sent();
                        return [2 /*return*/];
                }
            });
        }); };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
    }
    PlanejamentoMasterAbaAlinhamentoComponent.prototype.ngOnInit = function () {
        this.showTable = true;
    };
    PlanejamentoMasterAbaAlinhamentoComponent.prototype.back = function () {
        this.response.emit(true);
        this.showTable = true;
    };
    PlanejamentoMasterAbaAlinhamentoComponent.prototype.selectedBA = function (val, index) {
        if (this.funcoesService.isDetail(this.actionForm)) {
            return;
        }
        this._index = index;
        this.alinhamentoBA = val;
        this.selectedItem.emit(this.alinhamentoBA);
    };
    PlanejamentoMasterAbaAlinhamentoComponent.prototype.limparSelectedBA = function () {
        this.alinhamentoBA = null;
        this._index = null;
    };
    PlanejamentoMasterAbaAlinhamentoComponent.prototype.selectedBD = function (val, index) {
        this._index = index;
        this.alinhamentoBD = val;
        this.selectedItem.emit(this.alinhamentoBD);
    };
    PlanejamentoMasterAbaAlinhamentoComponent.prototype.limparSelectedBD = function () {
        this.alinhamentoBD = null;
        this._index = null;
    };
    PlanejamentoMasterAbaAlinhamentoComponent.prototype.excluir = function () {
        var _this = this;
        if (!this.alinhamentoBA || !this.alinhamentoBA.regPlanej || this.isDetail) {
            this.messageService.info("titles.planejamentoMaster", "messages.nenhumRegistroSelecionado");
            return;
        }
        this.service.excluirBico(this.alinhamentoBA).subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result);
            if (!result.isValid) {
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__["EventEmitterService"].get("backError").emit(_this.mensagens);
                _this.funcoesService.backToTop();
            }
            else {
                _this.messageService.saveSuccess("titles.excluidoComSucesso");
                _this.carregarAlinhamentoIndex(_this.data.regTmp);
                _this.limparSelectedBA();
                _this.limparSelectedBD();
            }
        });
    };
    PlanejamentoMasterAbaAlinhamentoComponent.prototype.adicionar = function () {
        var _this = this;
        if (!this.alinhamentoBD || !this.alinhamentoBD.regPlanej || this.isDetail) {
            this.messageService.info("titles.planejamentoMaster", "messages.nenhumRegistroSelecionado");
            return;
        }
        this.service.adicionarBico(this.alinhamentoBD).subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result);
            if (!result.isValid) {
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__["EventEmitterService"].get("backError").emit(_this.mensagens);
                _this.funcoesService.backToTop();
            }
            else {
                _this.messageService.saveSuccess("titles.adicionadoComSucesso");
                _this.carregarAlinhamentoIndex(_this.data.regTmp);
                _this.limparSelectedBA();
                _this.limparSelectedBD();
            }
        });
    };
    PlanejamentoMasterAbaAlinhamentoComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_8__["Router"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _planejamento_master_service__WEBPACK_IMPORTED_MODULE_2__["PlanejamentoMasterService"] },
        { type: app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_6__["DestinatarioService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _planejamento_master_model__WEBPACK_IMPORTED_MODULE_1__["PlanejamentoMaster"])
    ], PlanejamentoMasterAbaAlinhamentoComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], PlanejamentoMasterAbaAlinhamentoComponent.prototype, "isDetail", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Array)
    ], PlanejamentoMasterAbaAlinhamentoComponent.prototype, "alinhamentoIndexBA", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Array)
    ], PlanejamentoMasterAbaAlinhamentoComponent.prototype, "alinhamentoIndexBD", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _planejamento_master_model__WEBPACK_IMPORTED_MODULE_1__["PlanejamentoMasterAlinhamentoIndexBA"])
    ], PlanejamentoMasterAbaAlinhamentoComponent.prototype, "alinhamentoBA", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _planejamento_master_model__WEBPACK_IMPORTED_MODULE_1__["PlanejamentoMasterAlinhamentoIndexBD"])
    ], PlanejamentoMasterAbaAlinhamentoComponent.prototype, "alinhamentoBD", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], PlanejamentoMasterAbaAlinhamentoComponent.prototype, "response", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], PlanejamentoMasterAbaAlinhamentoComponent.prototype, "selectedItem", void 0);
    PlanejamentoMasterAbaAlinhamentoComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-aba-alinhamento',
            template: __importDefault(__webpack_require__(/*! raw-loader!./planejamento-master-aba-alinhamento.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-alinhamento/planejamento-master-aba-alinhamento.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./planejamento-master-aba-alinhamento.component.scss */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-alinhamento/planejamento-master-aba-alinhamento.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_8__["Router"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _planejamento_master_service__WEBPACK_IMPORTED_MODULE_2__["PlanejamentoMasterService"],
            app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_6__["DestinatarioService"]])
    ], PlanejamentoMasterAbaAlinhamentoComponent);
    return PlanejamentoMasterAbaAlinhamentoComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-deposito/planejamento-master-aba-deposito.component.scss":
/*!*********************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-deposito/planejamento-master-aba-deposito.component.scss ***!
  \*********************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-deposito/planejamento-master-aba-deposito.component.ts":
/*!*******************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-deposito/planejamento-master-aba-deposito.component.ts ***!
  \*******************************************************************************************************************************************************/
/*! exports provided: PlanejamentoMasterAbaDepositoComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterAbaDepositoComponent", function() { return PlanejamentoMasterAbaDepositoComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _planejamento_master_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../planejamento-master.model */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master.model.ts");
/* harmony import */ var _planejamento_master_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../planejamento-master.service */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __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 PlanejamentoMasterAbaDepositoComponent = /** @class */ (function () {
    function PlanejamentoMasterAbaDepositoComponent(router, messageService, loginService, message, funcoesService, service, serviceDestinatario) {
        var _this = this;
        this.router = router;
        this.messageService = messageService;
        this.loginService = loginService;
        this.message = message;
        this.funcoesService = funcoesService;
        this.service = service;
        this.serviceDestinatario = serviceDestinatario;
        this.depositoIndex = [];
        this.response = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.selectedItem = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.detail = false;
        this.mensagens = [];
        this.carregarDepositoIndex = function (regPlanej) { return __awaiter(_this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        _a = this;
                        return [4 /*yield*/, this.service.getDadosDepositoIndex(regPlanej).toPromise()];
                    case 1:
                        _a.depositoIndex = _b.sent();
                        return [2 /*return*/];
                }
            });
        }); };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
    }
    PlanejamentoMasterAbaDepositoComponent.prototype.ngOnInit = function () {
        this.showTable = true;
    };
    Object.defineProperty(PlanejamentoMasterAbaDepositoComponent.prototype, "saldoDepositoOptions", {
        get: function () {
            return {
                destinatarioIdCliente: this.data.tipoMov === 'C' ? 0 : this.data.destinatarioIdCliente,
                materialId: this.data.materialId,
                tanqueId: this.deposito.deposito,
                sitLote: 'A',
                modo: this.data.tipoMov === 'D' ? 7 : 8,
                tipoSaldo: this.data.tipoMov === 'D' ? 7 : 8,
                dataMovimento: new Date(),
                tipoAgrupa: 'D',
                geraArquivo: 'N'
            };
        },
        enumerable: true,
        configurable: true
    });
    PlanejamentoMasterAbaDepositoComponent.prototype.back = function () {
        this.response.emit(true);
        this.showTable = true;
        this.selectedItem.emit(this.deposito);
        this.data.bntSalvarGeral = false;
    };
    PlanejamentoMasterAbaDepositoComponent.prototype.new = function () {
        if (this.funcoesService.isDetail(this.actionForm)) {
            return;
        }
        if (this.isDetail) {
            return false;
        }
        this.data.bntSalvarGeral = true;
        this.deposito = new _planejamento_master_model__WEBPACK_IMPORTED_MODULE_1__["PlanejamentoMasterDeposito"]();
        this.detail = false;
        this.showTable = false;
        this.response.emit(false);
    };
    PlanejamentoMasterAbaDepositoComponent.prototype.edit = function () {
        if (this.funcoesService.isDetail(this.actionForm)) {
            return;
        }
        if (!this.deposito || !this.deposito.regPlanej || this.isDetail) {
            this.messageService.info("titles.planejamentoMaster", "messages.nenhumRegistroSelecionado");
            return;
        }
        this.detail = false;
        this.showTable = false;
        this.response.emit(false);
    };
    PlanejamentoMasterAbaDepositoComponent.prototype.show = function () {
        if (!this.deposito.regPlanej) {
            return;
        }
        this.detail = true;
        this.showTable = false;
        this.response.emit(false);
    };
    PlanejamentoMasterAbaDepositoComponent.prototype.selected = function (val, index) {
        this._index = index;
        this.deposito = val;
        this.selectedItem.emit(this.deposito);
    };
    PlanejamentoMasterAbaDepositoComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__["EventEmitterService"].get("msgDeposito").emit(form);
        if (form.invalid) {
            this.funcoesService.backToTop();
            return;
        }
        this.deposito.regPlanej = this.data.regPlanej;
        this.service.addDeposito(this.deposito).subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result);
            if (!result.isValid) {
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__["EventEmitterService"].get("backError").emit(_this.mensagens);
                _this.funcoesService.backToTop();
            }
            else {
                _this.messageService.saveSuccess("titles.planejamentoMaster");
                if (create) {
                    _this.deposito = new _planejamento_master_model__WEBPACK_IMPORTED_MODULE_1__["PlanejamentoMasterDeposito"]();
                    _this.carregarDepositoIndex(_this.data.regPlanej);
                }
                else {
                    _this.carregarDepositoIndex(_this.data.regPlanej);
                    _this.back();
                }
            }
        });
    };
    PlanejamentoMasterAbaDepositoComponent.prototype.onCheckboxClick = function (event, deposito) {
        var _this = this;
        event.preventDefault();
        if (this.funcoesService.isDetail(this.actionForm) || this.detail) {
            return;
        }
        this.messageService.confirm(this.service.title, "messages.confirmaAtivacaoDepositoSelecionado", null, function () {
            deposito.flagAtivo = (deposito.flagAtivo === 'S') ? 'N' : 'S';
            _this.ativaDeposito(deposito);
        });
    };
    PlanejamentoMasterAbaDepositoComponent.prototype.ativaDeposito = function (deposito) {
        var _this = this;
        if (!this.deposito || !this.deposito.regPlanej || this.isDetail) {
            this.messageService.info("titles.planejamentoMaster", "messages.nenhumRegistroSelecionado");
            return;
        }
        this.deposito.regTmp = this.data.regPlanej;
        this.service.ativaDeposito(deposito).subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result);
            if (!result.isValid) {
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__["EventEmitterService"].get("backError").emit(_this.mensagens);
                _this.funcoesService.backToTop();
            }
            else {
                _this.messageService.saveSuccess("titles.planejamentoMaster");
                _this.deposito = new _planejamento_master_model__WEBPACK_IMPORTED_MODULE_1__["PlanejamentoMasterDeposito"]();
                _this.carregarDepositoIndex(_this.data.regPlanej);
            }
        });
    };
    PlanejamentoMasterAbaDepositoComponent.prototype.delete = function () {
        var _this = this;
        if (this.funcoesService.isDetail(this.actionForm)) {
            return;
        }
        if (!this.deposito || !this.deposito.regPlanej || this.isDetail) {
            this.messageService.info("titles.planejamentoMaster", "messages.nenhumRegistroSelecionado");
            return;
        }
        this.deposito.regPlanej = this.data.regPlanej;
        this.messageService.removeConfirm(function () {
            _this.service.deleteDeposito(_this.deposito).subscribe(function (result) {
                _this.mensagens = _this.messageService.validationResult(result);
                if (!result.isValid) {
                    app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__["EventEmitterService"].get("backError").emit(_this.mensagens);
                    _this.funcoesService.backToTop();
                    _this.carregarDepositoIndex(_this.data.regPlanej);
                }
                else {
                    _this.carregarDepositoIndex(_this.data.regPlanej);
                    _this.messageService.removeSuccess();
                    _this.deposito = new _planejamento_master_model__WEBPACK_IMPORTED_MODULE_1__["PlanejamentoMasterDeposito"]();
                }
            });
        });
    };
    PlanejamentoMasterAbaDepositoComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_8__["Router"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _planejamento_master_service__WEBPACK_IMPORTED_MODULE_2__["PlanejamentoMasterService"] },
        { type: app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_6__["DestinatarioService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _planejamento_master_model__WEBPACK_IMPORTED_MODULE_1__["PlanejamentoMaster"])
    ], PlanejamentoMasterAbaDepositoComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], PlanejamentoMasterAbaDepositoComponent.prototype, "isDetail", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Array)
    ], PlanejamentoMasterAbaDepositoComponent.prototype, "depositoIndex", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _planejamento_master_model__WEBPACK_IMPORTED_MODULE_1__["PlanejamentoMasterDeposito"])
    ], PlanejamentoMasterAbaDepositoComponent.prototype, "deposito", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], PlanejamentoMasterAbaDepositoComponent.prototype, "response", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], PlanejamentoMasterAbaDepositoComponent.prototype, "selectedItem", void 0);
    PlanejamentoMasterAbaDepositoComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-aba-deposito',
            template: __importDefault(__webpack_require__(/*! raw-loader!./planejamento-master-aba-deposito.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-deposito/planejamento-master-aba-deposito.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./planejamento-master-aba-deposito.component.scss */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-deposito/planejamento-master-aba-deposito.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_8__["Router"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _planejamento_master_service__WEBPACK_IMPORTED_MODULE_2__["PlanejamentoMasterService"],
            app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_6__["DestinatarioService"]])
    ], PlanejamentoMasterAbaDepositoComponent);
    return PlanejamentoMasterAbaDepositoComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-filiais/planejamento-master-aba-filiais.component.scss":
/*!*******************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-filiais/planejamento-master-aba-filiais.component.scss ***!
  \*******************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-filiais/planejamento-master-aba-filiais.component.ts":
/*!*****************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-filiais/planejamento-master-aba-filiais.component.ts ***!
  \*****************************************************************************************************************************************************/
/*! exports provided: PlanejamentoMasterAbaFiliaisComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterAbaFiliaisComponent", function() { return PlanejamentoMasterAbaFiliaisComponent; });
/* harmony import */ var _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _planejamento_master_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../planejamento-master.model */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master.model.ts");
/* harmony import */ var _planejamento_master_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../planejamento-master.service */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master.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_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.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_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __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 PlanejamentoMasterAbaFiliaisComponent = /** @class */ (function () {
    function PlanejamentoMasterAbaFiliaisComponent(router, messageService, loginService, message, funcoesService, service, serviceDestinatario) {
        var _this = this;
        this.router = router;
        this.messageService = messageService;
        this.loginService = loginService;
        this.message = message;
        this.funcoesService = funcoesService;
        this.service = service;
        this.serviceDestinatario = serviceDestinatario;
        this.filiaisIndex = [];
        this.saldoFiliais = new _planejamento_master_model__WEBPACK_IMPORTED_MODULE_2__["SaldoFiliais"]();
        this.saldoCliente = [];
        this.response = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.selectedItem = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.detail = false;
        this.editar = false;
        this.mensagens = [];
        this.carregarNoPlanejamento = function () { return __awaiter(_this, void 0, void 0, function () {
            var data, resultado;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        data = {
                            regPlanej: this.data.regTmp,
                            codDest: this.filiais.destinatarioIdTransportadora,
                            codCliente: this.filiais.destinatarioIdClienteVenda,
                            codEmitente: this.filiais.codEmitente
                        };
                        return [4 /*yield*/, this.service.getNoPlanejamento(data).toPromise()];
                    case 1:
                        resultado = _a.sent();
                        this.filiais.lblPlanejamento = resultado;
                        return [2 /*return*/];
                }
            });
        }); };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
    }
    PlanejamentoMasterAbaFiliaisComponent.prototype.ngOnInit = function () {
        this.showTable = true;
        this.carregarSaldoCliente(this.data.regPlanej);
    };
    PlanejamentoMasterAbaFiliaisComponent.prototype.loadCliente = function (data) {
        if (!data)
            return;
        this.filiais.transportadora = data;
    };
    PlanejamentoMasterAbaFiliaisComponent.prototype.loadClienteVenda = function (data) {
        if (!data)
            return;
        this.filiais.clienteVenda = data;
    };
    PlanejamentoMasterAbaFiliaisComponent.prototype.loadEmitente = function (data) {
        if (!data)
            return;
        this.filiais.emitente = data;
    };
    PlanejamentoMasterAbaFiliaisComponent.prototype.back = function () {
        this.response.emit(true);
        this.showTable = true;
        this.selectedItem.emit(this.filiais);
        this.data.bntSalvarGeral = false;
    };
    PlanejamentoMasterAbaFiliaisComponent.prototype.new = function () {
        if (this.isDetail) {
            return false;
        }
        if (this.funcoesService.isDetail(this.actionForm)) {
            return;
        }
        this.data.bntSalvarGeral = true;
        this.filiais = new _planejamento_master_model__WEBPACK_IMPORTED_MODULE_2__["PlanejamentoMasterFiliais"]();
        this.editar = false;
        this.detail = false;
        this.showTable = false;
        this.response.emit(false);
        this.carregarNoPlanejamento();
    };
    PlanejamentoMasterAbaFiliaisComponent.prototype.edit = function () {
        var _this = this;
        if (!this.filiais || !this.filiais.regPlanej || this.isDetail) {
            this.messageService.info("titles.planejamentoMaster", "messages.nenhumRegistroSelecionado");
            return;
        }
        if (this.funcoesService.isDetail(this.actionForm)) {
            return;
        }
        this.editar = true;
        this.detail = false;
        this.showTable = false;
        this.response.emit(false);
        this.carregarNoPlanejamento();
        this.serviceDestinatario.getById(this.filiais.destinatarioIdTransportadora).subscribe(function (cliente) {
            _this.loadCliente(cliente);
        });
        this.serviceDestinatario.getById(this.filiais.destinatarioIdClienteVenda).subscribe(function (cliente) {
            _this.loadClienteVenda(cliente);
        });
        this.serviceDestinatario.getById(this.filiais.codEmitente).subscribe(function (cliente) {
            _this.loadEmitente(cliente);
        });
    };
    PlanejamentoMasterAbaFiliaisComponent.prototype.show = function () {
        var _this = this;
        if (!this.filiais.regPlanej) {
            return;
        }
        this.detail = true;
        this.showTable = false;
        this.response.emit(false);
        this.serviceDestinatario.getById(this.filiais.destinatarioIdTransportadora).subscribe(function (cliente) {
            _this.loadCliente(cliente);
        });
        this.serviceDestinatario.getById(this.filiais.destinatarioIdClienteVenda).subscribe(function (cliente) {
            _this.loadClienteVenda(cliente);
        });
        this.serviceDestinatario.getById(this.filiais.codEmitente).subscribe(function (cliente) {
            _this.loadEmitente(cliente);
        });
    };
    PlanejamentoMasterAbaFiliaisComponent.prototype.selected = function (val, index) {
        this._index = index;
        this.filiais = val;
        this.selectedItem.emit(this.filiais);
        this.carregarSaldoClienteItem(this.data.regPlanej, this.filiais.item);
        this.carregarSaldoCliente(this.data.regPlanej);
    };
    PlanejamentoMasterAbaFiliaisComponent.prototype.carregarSaldoClienteItem = function (regTmp, item) {
        var _this = this;
        return this.service.getDadosSaldoClienteItem(0, regTmp, item).toPromise().then(function (data) {
            _this.saldoClienteItem = data[0];
            _this.filiais.planejadoKilos = _this.saldoClienteItem.planejadoKilos;
            _this.filiais.planejadoLitros = _this.saldoClienteItem.planejadoLitros;
            _this.filiais.agendadosKilos = _this.saldoClienteItem.agendadosKilos;
            _this.filiais.agendadosLitros = _this.saldoClienteItem.agendadosLitros;
            _this.filiais.confirmadoKilos = _this.saldoClienteItem.confirmadoKilos;
            _this.filiais.confirmadoLitros = _this.saldoClienteItem.confirmadoLitros;
            _this.filiais.saldoKilos = _this.saldoClienteItem.saldoKilos;
            _this.filiais.saldoLitros = _this.saldoClienteItem.saldoLitros;
        });
    };
    PlanejamentoMasterAbaFiliaisComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_9__["EventEmitterService"].get("msgFiliais").emit(form);
        if (form.invalid) {
            this.funcoesService.backToTop();
            return;
        }
        if (_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["NumberUtilsStaticService"].isNotPositive(this.filiais.litros)) {
            this.messageService.warning("titles.planejamentoMaster", "messages.campoLitrosObrigatorio");
            return;
        }
        else if (_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["NumberUtilsStaticService"].isNotPositive(this.filiais.kilos)) {
            this.messageService.warning("titles.planejamentoMaster", "messages.campoKilosObrigatorio");
            return;
        }
        this.filiais.regPlanej = this.data.regPlanej;
        this.service.addFiliais(this.filiais).subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result);
            if (!result.isValid) {
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_9__["EventEmitterService"].get("backError").emit(_this.mensagens);
                _this.funcoesService.backToTop();
            }
            else {
                _this.messageService.saveSuccess("titles.planejamentoMaster");
                if (create) {
                    _this.filiais = new _planejamento_master_model__WEBPACK_IMPORTED_MODULE_2__["PlanejamentoMasterFiliais"]();
                    _this.carregarFiliaisIndex(_this.data.regPlanej);
                    _this.carregarSaldoCliente(_this.data.regPlanej);
                }
                else {
                    _this.carregarFiliaisIndex(_this.data.regPlanej);
                    _this.carregarSaldoCliente(_this.data.regPlanej);
                    _this.back();
                }
            }
        });
    };
    PlanejamentoMasterAbaFiliaisComponent.prototype.delete = function () {
        var _this = this;
        if (this.funcoesService.isDetail(this.actionForm)) {
            return;
        }
        if (!this.filiais || !this.filiais.regPlanej || this.isDetail) {
            this.messageService.info("titles.planejamentoMaster", "messages.nenhumRegistroSelecionado");
            return;
        }
        this.filiais.regPlanej = this.data.regPlanej;
        this.messageService.removeConfirm(function () {
            _this.service.deleteFiliais(_this.filiais).subscribe(function (result) {
                _this.mensagens = _this.messageService.validationResult(result);
                if (!result.isValid) {
                    app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_9__["EventEmitterService"].get("backError").emit(_this.mensagens);
                    _this.funcoesService.backToTop();
                }
                else {
                    _this.messageService.removeSuccess();
                    _this.carregarFiliaisIndex(_this.data.regPlanej);
                    _this.carregarSaldoCliente(_this.data.regPlanej);
                    _this.filiais = new _planejamento_master_model__WEBPACK_IMPORTED_MODULE_2__["PlanejamentoMasterFiliais"]();
                }
            });
        });
    };
    PlanejamentoMasterAbaFiliaisComponent.prototype.outputTransportadora = function (transportadora) {
        if (!transportadora || (transportadora && !transportadora.destinatarioId)) {
            return;
        }
        var exists = this.filiaisIndex.some(function (filial) { return filial.destinatarioIdTransportadora === transportadora.destinatarioId; });
        if (exists) {
            this.messageService.info("titles.planejamentoMaster", "messages.jaExisteOMesmoClienteParaEstePlanejamento");
            this.filiais.destinatarioIdTransportadora = 0;
            this.filiais.transportadora = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_8__["Destinatario"]();
            return;
        }
        this.filiais.destinatarioIdTransportadora = transportadora.destinatarioId;
        this.filiais.transportadora = transportadora;
    };
    PlanejamentoMasterAbaFiliaisComponent.prototype.carregarFiliaisIndex = function (regPlanej) {
        var _this = this;
        this.carregarSaldoCliente(this.data.regPlanej);
        return this.service.getDadosFiliaisIndex(regPlanej).toPromise().then(function (data) {
            _this.filiaisIndex = data;
        });
    };
    PlanejamentoMasterAbaFiliaisComponent.prototype.carregarSaldoCliente = function (regTmp) {
        var _this = this;
        return this.service.getDadosSaldoCliente(0, regTmp, 0).toPromise().then(function (data) {
            _this.saldoCliente = data;
            _this.popularFiliaisComSaldo();
        });
    };
    PlanejamentoMasterAbaFiliaisComponent.prototype.carregarSaldoLiberado = function () {
        var _this = this;
        var codDest = this.filiais.destinatarioIdTransportadora;
        var material = this.data.materialId;
        if (this.filiais.destinatarioIdTransportadora <= 0 || this.filiais.destinatarioIdTransportadora == undefined) {
            this.messageService.info("titles.planejamentoMaster", "messages.informeATransportadora");
            return;
        }
        return this.service.getSaldoLiberadoFiliais(codDest, material).toPromise().then(function (data) {
            _this.filiais.litros = data.litros;
            _this.filiais.kilos = data.kilos;
        });
    };
    PlanejamentoMasterAbaFiliaisComponent.prototype.popularFiliaisComSaldo = function () {
        var _this = this;
        var totalPlanejadoKilos = 0;
        var totalPlanejadoLitros = 0;
        var totalAgendadosKilos = 0;
        var totalAgendadosLitros = 0;
        var totalConfirmadoKilos = 0;
        var totalConfirmadoLitros = 0;
        var totalSaldoKilos = 0;
        var totalSaldoLitros = 0;
        if (this.filiaisIndex && this.saldoCliente) {
            this.filiaisIndex.forEach(function (filial) {
                var saldoCorrespondente = _this.saldoCliente.find(function (saldo) { return saldo.item === filial.item; });
                if (saldoCorrespondente) {
                    filial.planejadoKilos = saldoCorrespondente.planejadoKilos;
                    filial.planejadoLitros = saldoCorrespondente.planejadoLitros;
                    filial.agendadosKilos = saldoCorrespondente.agendadosKilos;
                    filial.agendadosLitros = saldoCorrespondente.agendadosLitros;
                    filial.confirmadoKilos = saldoCorrespondente.confirmadoKilos;
                    filial.confirmadoLitros = saldoCorrespondente.confirmadoLitros;
                    filial.saldoKilos = saldoCorrespondente.saldoKilos;
                    filial.saldoLitros = saldoCorrespondente.saldoLitros;
                    totalPlanejadoKilos += saldoCorrespondente.planejadoKilos || 0;
                    totalPlanejadoLitros += saldoCorrespondente.planejadoLitros || 0;
                    totalAgendadosKilos += saldoCorrespondente.agendadosKilos || 0;
                    totalAgendadosLitros += saldoCorrespondente.agendadosLitros || 0;
                    totalConfirmadoKilos += saldoCorrespondente.confirmadoKilos || 0;
                    totalConfirmadoLitros += saldoCorrespondente.confirmadoLitros || 0;
                    totalSaldoKilos += saldoCorrespondente.saldoKilos || 0;
                    totalSaldoLitros += saldoCorrespondente.saldoLitros || 0;
                }
            });
            this.data.kilosPlanej = totalPlanejadoKilos;
            this.data.litrosPlanej = totalPlanejadoLitros;
            this.data.kilosAgend = totalAgendadosKilos;
            this.data.litrosAgend = totalAgendadosLitros;
            this.data.kilosConf = totalConfirmadoKilos;
            this.data.litrosConf = totalConfirmadoLitros;
            this.data.kilosSaldo = totalSaldoKilos;
            this.data.litrosSaldo = totalSaldoLitros;
        }
    };
    PlanejamentoMasterAbaFiliaisComponent.prototype.validaLitros = function () {
        if (this.filiais.litros < this.data.saldoMinLt) {
            this.messageService.info("titles.planejamentoMaster", "messages.litrosNaoPodeSerInferiorAoSaldoMinimoEmLitros");
            this.filiais.litros = 0;
            return;
        }
        this.filiais.kilos = this.filiais.litros * (this.data.auxDensidade || 1);
    };
    PlanejamentoMasterAbaFiliaisComponent.prototype.validaKilos = function () {
        if (this.filiais.kilos < this.data.saldoMinKg) {
            this.messageService.info("titles.planejamentoMaster", "messages.kilosNaoPodeSerInferiorAoSaldoMinimoEmKilos");
            this.filiais.kilos = 0;
            return;
        }
        if (this.data.habilitaLitrosFiliais) {
            this.filiais.litros = this.filiais.kilos / (this.data.auxDensidade || 1);
        }
    };
    PlanejamentoMasterAbaFiliaisComponent.prototype.validaFlag = function () {
        if (this.filiais.flagSaldoAuto === 'N') {
            this.data.habilitaLitrosFiliais = true;
        }
    };
    PlanejamentoMasterAbaFiliaisComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_10__["Router"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: _planejamento_master_service__WEBPACK_IMPORTED_MODULE_3__["PlanejamentoMasterService"] },
        { type: app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_7__["DestinatarioService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
        __metadata("design:type", _planejamento_master_model__WEBPACK_IMPORTED_MODULE_2__["PlanejamentoMaster"])
    ], PlanejamentoMasterAbaFiliaisComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
        __metadata("design:type", Boolean)
    ], PlanejamentoMasterAbaFiliaisComponent.prototype, "isDetail", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
        __metadata("design:type", Array)
    ], PlanejamentoMasterAbaFiliaisComponent.prototype, "filiaisIndex", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
        __metadata("design:type", _planejamento_master_model__WEBPACK_IMPORTED_MODULE_2__["PlanejamentoMasterFiliais"])
    ], PlanejamentoMasterAbaFiliaisComponent.prototype, "filiais", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
        __metadata("design:type", _planejamento_master_model__WEBPACK_IMPORTED_MODULE_2__["SaldoFiliais"])
    ], PlanejamentoMasterAbaFiliaisComponent.prototype, "saldoFiliais", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
        __metadata("design:type", Array)
    ], PlanejamentoMasterAbaFiliaisComponent.prototype, "saldoCliente", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
        __metadata("design:type", _planejamento_master_model__WEBPACK_IMPORTED_MODULE_2__["SaldoCliente"])
    ], PlanejamentoMasterAbaFiliaisComponent.prototype, "saldoClienteItem", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(),
        __metadata("design:type", Object)
    ], PlanejamentoMasterAbaFiliaisComponent.prototype, "response", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(),
        __metadata("design:type", Object)
    ], PlanejamentoMasterAbaFiliaisComponent.prototype, "selectedItem", void 0);
    PlanejamentoMasterAbaFiliaisComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: 'app-aba-filiais',
            template: __importDefault(__webpack_require__(/*! raw-loader!./planejamento-master-aba-filiais.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-filiais/planejamento-master-aba-filiais.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./planejamento-master-aba-filiais.component.scss */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-filiais/planejamento-master-aba-filiais.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_10__["Router"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            _planejamento_master_service__WEBPACK_IMPORTED_MODULE_3__["PlanejamentoMasterService"],
            app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_7__["DestinatarioService"]])
    ], PlanejamentoMasterAbaFiliaisComponent);
    return PlanejamentoMasterAbaFiliaisComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-inconsistencias/planejamento-master-aba-inconsistencias.component.scss":
/*!***********************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-inconsistencias/planejamento-master-aba-inconsistencias.component.scss ***!
  \***********************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-inconsistencias/planejamento-master-aba-inconsistencias.component.ts":
/*!*********************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-inconsistencias/planejamento-master-aba-inconsistencias.component.ts ***!
  \*********************************************************************************************************************************************************************/
/*! exports provided: PlanejamentoMasterAbaInconsistenciasComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterAbaInconsistenciasComponent", function() { return PlanejamentoMasterAbaInconsistenciasComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _planejamento_master_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../planejamento-master.model */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master.model.ts");
/* harmony import */ var _planejamento_master_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../planejamento-master.service */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.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 PlanejamentoMasterAbaInconsistenciasComponent = /** @class */ (function () {
    function PlanejamentoMasterAbaInconsistenciasComponent(messageService, loginService, message, funcoesService, permissoesUtils, service, serviceDestinatario) {
        var _this = this;
        this.messageService = messageService;
        this.loginService = loginService;
        this.message = message;
        this.funcoesService = funcoesService;
        this.permissoesUtils = permissoesUtils;
        this.service = service;
        this.serviceDestinatario = serviceDestinatario;
        this.inconsistenciasIndex = [];
        this.response = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.selectedItem = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.detail = false;
        this.target = this.funcoesService.getTargetLocation();
        this.alterar = function () {
            if (_this.funcoesService.isDetail(_this.actionForm)) {
                return;
            }
            if (!_this.inconsistenciasIndex.length) {
                _this.messageService.warning(_this.service.title, "messages.tabelaVazia");
                return;
            }
            _this.funcoesService.openWindow("especificos/vopak/movimentos/agendamentosInconsistentes");
        };
        this.carregarInconsistenciasIndex = function (regPlanej) { return __awaiter(_this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        _a = this;
                        return [4 /*yield*/, this.service.getDadosInconsistenciasIndex(regPlanej).toPromise()];
                    case 1:
                        _a.inconsistenciasIndex = _b.sent();
                        return [2 /*return*/];
                }
            });
        }); };
    }
    PlanejamentoMasterAbaInconsistenciasComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.showTable = true;
        window.addEventListener('storage', function (event) {
            if (event.key === 'atualizarInconsistencia' && event.newValue === 'true') {
                _this.carregarInconsistenciasIndex(_this.data.regPlanej);
                localStorage.removeItem('atualizarInconsistencia');
            }
        });
    };
    PlanejamentoMasterAbaInconsistenciasComponent.ctorParameters = function () { return [
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] },
        { type: _planejamento_master_service__WEBPACK_IMPORTED_MODULE_2__["PlanejamentoMasterService"] },
        { type: app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_6__["DestinatarioService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _planejamento_master_model__WEBPACK_IMPORTED_MODULE_1__["PlanejamentoMaster"])
    ], PlanejamentoMasterAbaInconsistenciasComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], PlanejamentoMasterAbaInconsistenciasComponent.prototype, "isDetail", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Array)
    ], PlanejamentoMasterAbaInconsistenciasComponent.prototype, "inconsistenciasIndex", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _planejamento_master_model__WEBPACK_IMPORTED_MODULE_1__["PlanejamentoMasterInconsistencias"])
    ], PlanejamentoMasterAbaInconsistenciasComponent.prototype, "inconsistencias", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], PlanejamentoMasterAbaInconsistenciasComponent.prototype, "response", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], PlanejamentoMasterAbaInconsistenciasComponent.prototype, "selectedItem", void 0);
    PlanejamentoMasterAbaInconsistenciasComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-aba-inconsistencias',
            template: __importDefault(__webpack_require__(/*! raw-loader!./planejamento-master-aba-inconsistencias.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-inconsistencias/planejamento-master-aba-inconsistencias.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./planejamento-master-aba-inconsistencias.component.scss */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-inconsistencias/planejamento-master-aba-inconsistencias.component.scss")).default]
        }),
        __metadata("design:paramtypes", [app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"],
            _planejamento_master_service__WEBPACK_IMPORTED_MODULE_2__["PlanejamentoMasterService"],
            app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_6__["DestinatarioService"]])
    ], PlanejamentoMasterAbaInconsistenciasComponent);
    return PlanejamentoMasterAbaInconsistenciasComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-veiculos/planejamento-master-aba-veiculos.component.scss":
/*!*********************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-veiculos/planejamento-master-aba-veiculos.component.scss ***!
  \*********************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-veiculos/planejamento-master-aba-veiculos.component.ts":
/*!*******************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-veiculos/planejamento-master-aba-veiculos.component.ts ***!
  \*******************************************************************************************************************************************************/
/*! exports provided: PlanejamentoMasterAbaVeiculosComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterAbaVeiculosComponent", function() { return PlanejamentoMasterAbaVeiculosComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _planejamento_master_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../planejamento-master.model */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master.model.ts");
/* harmony import */ var _planejamento_master_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../planejamento-master.service */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_8__ = __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_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __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 PlanejamentoMasterAbaVeiculosComponent = /** @class */ (function () {
    function PlanejamentoMasterAbaVeiculosComponent(router, messageService, loginService, message, funcoesService, service, serviceDestinatario) {
        var _this = this;
        this.router = router;
        this.messageService = messageService;
        this.loginService = loginService;
        this.message = message;
        this.funcoesService = funcoesService;
        this.service = service;
        this.serviceDestinatario = serviceDestinatario;
        this.veiculosIndex = [];
        this.saldoTransp = [];
        this.response = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.selectedItem = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.detail = false;
        this.editar = false;
        this.mensagens = [];
        this.carregarVeiculosIndex = function (regPlanej) { return __awaiter(_this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        _a = this;
                        return [4 /*yield*/, this.service.getDadosVeiculosIndex(regPlanej).toPromise()];
                    case 1:
                        _a.veiculosIndex = _b.sent();
                        return [2 /*return*/];
                }
            });
        }); };
        this.carregarSaldoTransp = function (regPlanej, item) { return __awaiter(_this, void 0, void 0, function () {
            var _a, totalAgendado, totalConfirmado, totalRealizado, totalSaldo;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        _a = this;
                        return [4 /*yield*/, this.service.getDadosSaldoTransp(0, regPlanej, item).toPromise()];
                    case 1:
                        _a.saldoTransp = _b.sent();
                        totalAgendado = 0;
                        totalConfirmado = 0;
                        totalRealizado = 0;
                        totalSaldo = 0;
                        this.saldoTransp.forEach(function (transp) {
                            totalAgendado += transp.agendado || 0;
                            totalConfirmado += transp.confirmado || 0;
                            totalRealizado += transp.realizado || 0;
                            totalSaldo += transp.saldo || 0;
                        });
                        this.veiculos.agendVeic = totalAgendado;
                        this.veiculos.confVeic = totalConfirmado + totalRealizado;
                        this.veiculos.saldVeic = totalSaldo;
                        return [2 /*return*/];
                }
            });
        }); };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
    }
    PlanejamentoMasterAbaVeiculosComponent.prototype.ngOnInit = function () {
        this.showTable = true;
    };
    PlanejamentoMasterAbaVeiculosComponent.prototype.abrirModalImportacaoTransp = function () {
        if (this.funcoesService.isDetail(this.actionForm)) {
            return;
        }
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["ModalUtilsStaticService"].openModal("modalImport");
    };
    PlanejamentoMasterAbaVeiculosComponent.prototype.back = function () {
        this.response.emit(true);
        this.showTable = true;
        this.selectedItem.emit(this.veiculos);
        this.data.bntSalvarGeral = false;
    };
    PlanejamentoMasterAbaVeiculosComponent.prototype.new = function () {
        if (this.funcoesService.isDetail(this.actionForm)) {
            return;
        }
        if (this.isDetail) {
            return false;
        }
        this.data.bntSalvarGeral = true;
        this.veiculos = new _planejamento_master_model__WEBPACK_IMPORTED_MODULE_1__["PlanejamentoMasterVeiculos"]();
        this.editar = false;
        this.detail = false;
        this.showTable = false;
        this.response.emit(false);
    };
    PlanejamentoMasterAbaVeiculosComponent.prototype.edit = function () {
        if (this.funcoesService.isDetail(this.actionForm)) {
            return;
        }
        if (!this.veiculos || !this.veiculos.regPlanej || this.isDetail) {
            this.messageService.info("titles.planejamentoMaster", "titles.nenhumRegistroSelecionado");
            return;
        }
        this.editar = true;
        this.detail = false;
        this.showTable = false;
        this.response.emit(false);
        this.carregarVeiculosIndex(this.data.regPlanej);
    };
    PlanejamentoMasterAbaVeiculosComponent.prototype.show = function () {
        if (!this.veiculos.regPlanej) {
            return;
        }
        this.detail = true;
        this.showTable = false;
        this.response.emit(false);
    };
    PlanejamentoMasterAbaVeiculosComponent.prototype.selected = function (val, index) {
        this._index = index;
        this.veiculos = val;
        this.selectedItem.emit(this.veiculos);
        this.carregarSaldoTransp(this.data.regPlanej, this.veiculos.item);
    };
    PlanejamentoMasterAbaVeiculosComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_8__["EventEmitterService"].get("msgVeiculos").emit(form);
        if (form.invalid) {
            this.funcoesService.backToTop();
            return;
        }
        this.veiculos.regPlanej = this.data.regPlanej;
        this.service.addVeiculos(this.veiculos).subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result);
            if (!result.isValid) {
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_8__["EventEmitterService"].get("backError").emit(_this.mensagens);
                _this.funcoesService.backToTop();
            }
            else {
                _this.messageService.saveSuccess("titles.planejamentoMaster");
                if (create) {
                    _this.veiculos = new _planejamento_master_model__WEBPACK_IMPORTED_MODULE_1__["PlanejamentoMasterVeiculos"]();
                    _this.carregarVeiculosIndex(_this.data.regPlanej);
                }
                else {
                    _this.back();
                    _this.carregarVeiculosIndex(_this.data.regPlanej);
                }
            }
        });
    };
    PlanejamentoMasterAbaVeiculosComponent.prototype.delete = function () {
        var _this = this;
        if (this.funcoesService.isDetail(this.actionForm)) {
            return;
        }
        if (!this.veiculos || !this.veiculos.regPlanej || this.isDetail) {
            this.messageService.info("titles.planejamentoMaster", "messages.nenhumRegistroSelecionado");
            return;
        }
        this.veiculos.regPlanej = this.data.regPlanej;
        this.messageService.removeConfirm(function () {
            _this.service.deleteVeiculos(_this.veiculos).subscribe(function (result) {
                _this.mensagens = _this.messageService.validationResult(result);
                if (!result.isValid) {
                    app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_8__["EventEmitterService"].get("backError").emit(_this.mensagens);
                    _this.funcoesService.backToTop();
                }
                else {
                    _this.messageService.removeSuccess();
                    _this.veiculos = new _planejamento_master_model__WEBPACK_IMPORTED_MODULE_1__["PlanejamentoMasterVeiculos"]();
                    _this.carregarVeiculosIndex(_this.data.regPlanej);
                }
            });
        });
    };
    PlanejamentoMasterAbaVeiculosComponent.prototype.outputTransportadora = function (transportadora) {
        if (!transportadora || (transportadora && !transportadora.destinatarioId)) {
            return;
        }
        var exists = this.veiculosIndex.some(function (veiculos) { return veiculos.destinatarioIdTransportadora === transportadora.destinatarioId; });
        if (exists) {
            this.messageService.info("titles.planejamentoMaster", "messages.jaExisteOMesmoTransportadorParaEstePlanejamento");
            this.veiculos.destinatarioIdTransportadora = 0;
            this.veiculos.transportadora = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_7__["Destinatario"]();
            return;
        }
        this.veiculos.destinatarioIdTransportadora = transportadora.destinatarioId;
        this.veiculos.transportadora = transportadora;
    };
    PlanejamentoMasterAbaVeiculosComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_10__["Router"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _planejamento_master_service__WEBPACK_IMPORTED_MODULE_2__["PlanejamentoMasterService"] },
        { type: app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_6__["DestinatarioService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _planejamento_master_model__WEBPACK_IMPORTED_MODULE_1__["PlanejamentoMaster"])
    ], PlanejamentoMasterAbaVeiculosComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], PlanejamentoMasterAbaVeiculosComponent.prototype, "isDetail", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Array)
    ], PlanejamentoMasterAbaVeiculosComponent.prototype, "veiculosIndex", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _planejamento_master_model__WEBPACK_IMPORTED_MODULE_1__["PlanejamentoMasterVeiculos"])
    ], PlanejamentoMasterAbaVeiculosComponent.prototype, "veiculos", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Array)
    ], PlanejamentoMasterAbaVeiculosComponent.prototype, "saldoTransp", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], PlanejamentoMasterAbaVeiculosComponent.prototype, "response", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], PlanejamentoMasterAbaVeiculosComponent.prototype, "selectedItem", void 0);
    PlanejamentoMasterAbaVeiculosComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-aba-veiculos',
            template: __importDefault(__webpack_require__(/*! raw-loader!./planejamento-master-aba-veiculos.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-veiculos/planejamento-master-aba-veiculos.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./planejamento-master-aba-veiculos.component.scss */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-veiculos/planejamento-master-aba-veiculos.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_10__["Router"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _planejamento_master_service__WEBPACK_IMPORTED_MODULE_2__["PlanejamentoMasterService"],
            app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_6__["DestinatarioService"]])
    ], PlanejamentoMasterAbaVeiculosComponent);
    return PlanejamentoMasterAbaVeiculosComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterFilterComponent", function() { return PlanejamentoMasterFilterComponent; });
/* 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_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_2__ = __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");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _planejamento_master_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../planejamento-master.constants */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master.constants.ts");
/* harmony import */ var _planejamento_master_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../planejamento-master.model */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master.model.ts");
/* harmony import */ var _planejamento_master_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../planejamento-master.service */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master.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 PlanejamentoMasterFilterComponent = /** @class */ (function () {
    function PlanejamentoMasterFilterComponent(service, message) {
        this.service = service;
        this.message = message;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        this.constantes = new _planejamento_master_constants__WEBPACK_IMPORTED_MODULE_4__["PlanejamentoMasterConstants"]();
    }
    PlanejamentoMasterFilterComponent.prototype.ngOnInit = function () {
        if (!this.service.filtro) {
            this.service.filtro = new _planejamento_master_model__WEBPACK_IMPORTED_MODULE_5__["PlanejamentoMasterFilter"]();
        }
    };
    PlanejamentoMasterFilterComponent.prototype.onSubmit = function (form) {
        if (!this.validaData()) {
            return;
        }
        if (!form.invalid) {
            this.filtrar.emit();
            jQuery("#planejamento-master-filter").modal("hide");
        }
    };
    PlanejamentoMasterFilterComponent.prototype.validaData = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["DateTimeUtilsStaticService"].menorA(this.service.filtro.dataF, this.service.filtro.dataI, ['H', 'M'])) {
            this.message.warning(this.service.title, "messages.periodoDeMaiorQueAte");
            return false;
        }
        return true;
    };
    PlanejamentoMasterFilterComponent.ctorParameters = function () { return [
        { type: _planejamento_master_service__WEBPACK_IMPORTED_MODULE_6__["PlanejamentoMasterService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], PlanejamentoMasterFilterComponent.prototype, "filtrar", void 0);
    PlanejamentoMasterFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-planejamento-master-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./planejamento-master-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-filter/planejamento-master-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_planejamento_master_service__WEBPACK_IMPORTED_MODULE_6__["PlanejamentoMasterService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"]])
    ], PlanejamentoMasterFilterComponent);
    return PlanejamentoMasterFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-form/planejamento-master-form.component.scss":
/*!*****************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-form/planejamento-master-form.component.scss ***!
  \*****************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("div.card-body {\n  position: relative;\n}\n\ndiv._mask {\n  position: absolute;\n  height: 70%;\n  width: 70%;\n  z-index: 3;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvdm9wYWsvbW92aW1lbnRvcy9wbGFuZWphbWVudG8tbWFzdGVyL3BsYW5lamFtZW50by1tYXN0ZXItZm9ybS9DOlxcQ29ycG9yYXRlXFxDb3Jwb3JhdGVXZWJEZXNlbnZcXF91bmlzb2x1dGlvbi9zcmNcXGFwcFxccGFnZXNcXGVzcGVjaWZpY29zXFx2b3Bha1xcbW92aW1lbnRvc1xccGxhbmVqYW1lbnRvLW1hc3RlclxccGxhbmVqYW1lbnRvLW1hc3Rlci1mb3JtXFxwbGFuZWphbWVudG8tbWFzdGVyLWZvcm0uY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL3BhZ2VzL2VzcGVjaWZpY29zL3ZvcGFrL21vdmltZW50b3MvcGxhbmVqYW1lbnRvLW1hc3Rlci9wbGFuZWphbWVudG8tbWFzdGVyLWZvcm0vcGxhbmVqYW1lbnRvLW1hc3Rlci1mb3JtLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0Usa0JBQUE7QUNDRjs7QURFQTtFQUNFLGtCQUFBO0VBQ0EsV0FBQTtFQUNBLFVBQUE7RUFDQSxVQUFBO0FDQ0YiLCJmaWxlIjoic3JjL2FwcC9wYWdlcy9lc3BlY2lmaWNvcy92b3Bhay9tb3ZpbWVudG9zL3BsYW5lamFtZW50by1tYXN0ZXIvcGxhbmVqYW1lbnRvLW1hc3Rlci1mb3JtL3BsYW5lamFtZW50by1tYXN0ZXItZm9ybS5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbImRpdi5jYXJkLWJvZHkge1xyXG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcclxufVxyXG5cclxuZGl2Ll9tYXNrIHtcclxuICBwb3NpdGlvbjogYWJzb2x1dGU7XHJcbiAgaGVpZ2h0OiA3MCU7XHJcbiAgd2lkdGg6IDcwJTtcclxuICB6LWluZGV4OiAzO1xyXG59XHJcbiIsImRpdi5jYXJkLWJvZHkge1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG59XG5cbmRpdi5fbWFzayB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgaGVpZ2h0OiA3MCU7XG4gIHdpZHRoOiA3MCU7XG4gIHotaW5kZXg6IDM7XG59Il19 */");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterFormComponent", function() { return PlanejamentoMasterFormComponent; });
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __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_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_1__ = __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 _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.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 app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _planejamento_master_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../planejamento-master.model */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master.model.ts");
/* harmony import */ var _planejamento_master_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../planejamento-master.constants */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master.constants.ts");
/* harmony import */ var _planejamento_master_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../planejamento-master.service */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__ = __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_pages_cadastro_grupo_cliente_grupo_cliente_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/pages/cadastro/grupo-cliente/grupo-cliente.service */ "./src/app/pages/cadastro/grupo-cliente/grupo-cliente.service.ts");
/* harmony import */ var app_pages_cadastro_operacao_operacao_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! app/pages/cadastro/operacao/operacao.service */ "./src/app/pages/cadastro/operacao/operacao.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_17__ = __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");
/* harmony import */ var app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! app/pages/cadastro/material/material.service */ "./src/app/pages/cadastro/material/material.service.ts");
/* harmony import */ var _planejamento_master_aba_veiculos_planejamento_master_aba_veiculos_component__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../planejamento-master-aba-veiculos/planejamento-master-aba-veiculos.component */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-veiculos/planejamento-master-aba-veiculos.component.ts");
/* harmony import */ var _planejamento_master_aba_inconsistencias_planejamento_master_aba_inconsistencias_component__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../planejamento-master-aba-inconsistencias/planejamento-master-aba-inconsistencias.component */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-inconsistencias/planejamento-master-aba-inconsistencias.component.ts");
/* harmony import */ var _planejamento_master_aba_filiais_planejamento_master_aba_filiais_component__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../planejamento-master-aba-filiais/planejamento-master-aba-filiais.component */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-filiais/planejamento-master-aba-filiais.component.ts");
/* harmony import */ var _planejamento_master_aba_deposito_planejamento_master_aba_deposito_component__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../planejamento-master-aba-deposito/planejamento-master-aba-deposito.component */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-deposito/planejamento-master-aba-deposito.component.ts");
/* harmony import */ var _planejamento_master_aba_alinhamento_planejamento_master_aba_alinhamento_component__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../planejamento-master-aba-alinhamento/planejamento-master-aba-alinhamento.component */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-alinhamento/planejamento-master-aba-alinhamento.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 PlanejamentoMasterFormComponent = /** @class */ (function (_super) {
    __extends(PlanejamentoMasterFormComponent, _super);
    function PlanejamentoMasterFormComponent(router, messageService, activatedRoute, serviceOperacao, funcoesService, permissoesUtils, destinatarioService, materialService, grupoClienteService, service) {
        var _this = _super.call(this, new _planejamento_master_constants__WEBPACK_IMPORTED_MODULE_11__["PlanejamentoMasterConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.serviceOperacao = serviceOperacao;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.destinatarioService = destinatarioService;
        _this.materialService = materialService;
        _this.grupoClienteService = grupoClienteService;
        _this.service = service;
        _this.data = new _planejamento_master_model__WEBPACK_IMPORTED_MODULE_10__["PlanejamentoMaster"]();
        _this.filiaisIndex = [];
        _this.mensagens = [];
        _this.constantes = new _planejamento_master_constants__WEBPACK_IMPORTED_MODULE_11__["PlanejamentoMasterConstants"]();
        _this.regraGrupoCliente = false;
        _this.regraCliente = false;
        _this._disabled = false;
        _this.showComponents = false;
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_16__["Mascaras"]();
        _this.saldoCliente = [];
        _this.habilitaTipoMov = false;
        _this.target = _this.funcoesService.getTargetLocation();
        _this.pageRoute = "/especificos/vopak/movimentos/planejamentoMaster";
        _this.validaTipoMov = function (regPlanej) { return __awaiter(_this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        _a = this;
                        return [4 /*yield*/, this.service.getValidaTipoMov(regPlanej).toPromise()];
                    case 1:
                        _a.verificaTipoMov = _b.sent();
                        if (this.verificaTipoMov && this.verificaTipoMov.length > 0) {
                            this.habilitaTipoMov = true;
                            this.messageService.info("titles.planejamentoMaster", "messages.erroVerificandoEntradaDeVeiculoExistente");
                        }
                        else {
                            this.habilitaTipoMov = false;
                        }
                        return [2 /*return*/];
                }
            });
        }); };
        _this.gravarGeral = function (regPlanej) { return __awaiter(_this, void 0, void 0, function () {
            var _a, _b, _c, _d;
            var _this = this;
            return __generator(this, function (_e) {
                switch (_e.label) {
                    case 0:
                        _a = this;
                        return [4 /*yield*/, this.service.verificarDeposito(regPlanej).toPromise()];
                    case 1:
                        _a.verificaDepositoAtivo = _e.sent();
                        _b = this;
                        return [4 /*yield*/, this.service.getDadosDepositoIndex(regPlanej).toPromise()];
                    case 2:
                        _b.verificaDeposito = _e.sent();
                        _c = this;
                        return [4 /*yield*/, this.service.getDadosVeiculosIndex(regPlanej).toPromise()];
                    case 3:
                        _c.verificaVeiculos = _e.sent();
                        _d = this;
                        return [4 /*yield*/, this.service.getDadosFiliaisIndex(regPlanej).toPromise()];
                    case 4:
                        _d.verificaFiliais = _e.sent();
                        if (!this.verificaFiliais || this.verificaFiliais.length === 0) {
                            this.messageService.warning(this.service.title, "messages.nenhumaFilialCadastrada");
                            return [2 /*return*/];
                        }
                        if (!this.verificaDeposito || this.verificaDeposito.length === 0) {
                            this.messageService.warning(this.service.title, "messages.nenhumDepositoEstaCadastrado");
                            return [2 /*return*/];
                        }
                        if (!this.verificaDepositoAtivo || !this.verificaDepositoAtivo.deposito) {
                            this.messageService.warning(this.service.title, "messages.nenhumDepositoEstaAtivo");
                            return [2 /*return*/];
                        }
                        if (!this.verificaVeiculos || this.verificaVeiculos.length === 0) {
                            this.messageService.warning(this.service.title, "messages.nenhumVeiculoCadastrado");
                            return [2 /*return*/];
                        }
                        this.service.addDadosGeral(this.data).subscribe(function (result) {
                            _this.mensagens = _this.messageService.validationResult(result);
                            if (!result.isValid) {
                                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_9__["EventEmitterService"].get("backError").emit(_this.mensagens);
                                _this.funcoesService.backToTop();
                            }
                            else {
                                _this.messageService.saveSuccess("titles.planejamentoMaster");
                                _this.back();
                            }
                        });
                        return [2 /*return*/];
                }
            });
        }); };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    PlanejamentoMasterFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            _this.data = new _planejamento_master_model__WEBPACK_IMPORTED_MODULE_10__["PlanejamentoMaster"]();
            if (id) {
                _this.service.getRegTmp(+id).subscribe(function (resp) {
                    if (resp) {
                        _this.data = resp;
                        _this.validaLitrosFiliais(_this.data.materialId);
                        _this.validaTipoMov(_this.data.regPlanej);
                        _this.carregarAbas(_this.data.regPlanej, _this.data.regTmp);
                        _this.carregarSaldoIndexFiliais();
                        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].isPositive(_this.data.destinatarioIdCliente)) {
                            _this.destinatarioService.getById(_this.data.destinatarioIdCliente).subscribe(function (cliente) {
                                _this.loadCliente(cliente);
                            });
                            _this.materialService.getById(_this.data.materialId).subscribe(function (material) {
                                _this.trataMaterial(material);
                            });
                        }
                        else {
                            _this.data.destinatarioIdCliente = null;
                            _this.data.cliente = null;
                        }
                    }
                    else {
                        _this.validaTipoMov(_this.data.regPlanej);
                        _this.messageService.warning("titles.planejamentoMaster", "messages.nenhumRegistroEncontrado");
                        _this.back();
                    }
                });
            }
            else {
                if (_this.funcoesService.isCreate(_this.actionForm)) {
                    _this.service.getRegTmp(0).subscribe(function (resp) {
                        if (resp) {
                            _this.data = resp;
                        }
                        else {
                            _this.messageService.warning("titles.planejamentoMaster", "messages.nenhumRegistroEncontrado");
                            _this.back();
                        }
                    });
                }
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    PlanejamentoMasterFormComponent.prototype.carregarAbas = function (regPlanej, regTemp) {
        this.abaVeiculosComponent.carregarVeiculosIndex(regPlanej);
        this.abaInconsistenciasComponent.carregarInconsistenciasIndex(regTemp);
        this.abaFiliaisComponent.carregarFiliaisIndex(regPlanej);
        this.abaDepositoComponent.carregarDepositoIndex(regPlanej);
        this.abaAlinhamentoComponent.carregarAlinhamentoIndex(regTemp);
        this.carregarSaldoIndexFiliais();
    };
    PlanejamentoMasterFormComponent.prototype.carregarSaldoIndexFiliais = function () {
        this.abaFiliaisComponent.carregarSaldoCliente(this.data.regPlanej);
    };
    PlanejamentoMasterFormComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_9__["EventEmitterService"].get("msgDados").emit(form);
        if (form.invalid) {
            return;
        }
        this.data.logRotina = "Planejamento Master";
        this.service.addDadosTmp(this.data).subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result);
            if (!result.isValid) {
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_9__["EventEmitterService"].get("backError").emit(_this.mensagens);
                _this.funcoesService.backToTop();
            }
            else {
                _this.gravarGeral(_this.data.regPlanej);
            }
        });
    };
    PlanejamentoMasterFormComponent.prototype.edit = function () {
        this.router.navigate(["" + this.target + this.pageRoute + "/edit/" + this.data.regTmp]);
    };
    PlanejamentoMasterFormComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate(["" + this.target + this.pageRoute]);
    };
    PlanejamentoMasterFormComponent.prototype.loadCliente = function (data) {
        if (!data)
            return;
        this.data.cliente = data;
    };
    PlanejamentoMasterFormComponent.prototype.trataMaterial = function (material) {
        this.data.material = material;
        this.validaLitrosFiliais(this.data.materialId);
    };
    PlanejamentoMasterFormComponent.prototype.validaDatas = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_17__["DateTimeUtilsStaticService"].menorA(this.data.dtFim, this.data.dtInicio, ['H', 'M'])) {
            this.messageService.warning(this.service.title, "messages.dtInicioDeveSerMenorQueDtFinal");
        }
    };
    PlanejamentoMasterFormComponent.prototype.validaLitrosFiliais = function (material) {
        var _this = this;
        return this.service.ajustaProduto(material).toPromise().then(function (result) {
            if (result.tipoGranel = 2) {
                _this.data.habilitaLitrosFiliais = true;
            }
            if (_this.funcoesService.isCreate(_this.actionForm)) {
                _this.data.densidadePadrao = result.densidadePadrao;
            }
            _this.data.auxDensidade = result.densidadePadrao;
        });
    };
    Object.defineProperty(PlanejamentoMasterFormComponent.prototype, "disabledTab", {
        get: function () {
            if (!this.data || !this.data.destinatarioIdCliente || !this.data.materialId)
                return true;
            return app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].isNotPositive(this.data.destinatarioIdCliente) && app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].isEmpty(this.data.materialId);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(PlanejamentoMasterFormComponent.prototype, "requiredPedidoVenda", {
        get: function () {
            if (!this.data || !this.data.cliente)
                return false;
            return app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["BooleanUtilsStaticService"].toBoolean(this.data.cliente.obrPedVenda);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(PlanejamentoMasterFormComponent.prototype, "requiredPedidoRemessa", {
        get: function () {
            if (!this.data || !this.data.cliente)
                return false;
            return app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["BooleanUtilsStaticService"].toBoolean(this.data.cliente.obrPedRemessa);
        },
        enumerable: true,
        configurable: true
    });
    PlanejamentoMasterFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["ActivatedRoute"] },
        { type: app_pages_cadastro_operacao_operacao_service__WEBPACK_IMPORTED_MODULE_15__["OperacaoService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] },
        { type: app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_8__["DestinatarioService"] },
        { type: app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_18__["MaterialService"] },
        { type: app_pages_cadastro_grupo_cliente_grupo_cliente_service__WEBPACK_IMPORTED_MODULE_14__["GrupoClienteService"] },
        { type: _planejamento_master_service__WEBPACK_IMPORTED_MODULE_12__["PlanejamentoMasterService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"])(_planejamento_master_aba_veiculos_planejamento_master_aba_veiculos_component__WEBPACK_IMPORTED_MODULE_19__["PlanejamentoMasterAbaVeiculosComponent"], { static: false }),
        __metadata("design:type", _planejamento_master_aba_veiculos_planejamento_master_aba_veiculos_component__WEBPACK_IMPORTED_MODULE_19__["PlanejamentoMasterAbaVeiculosComponent"])
    ], PlanejamentoMasterFormComponent.prototype, "abaVeiculosComponent", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"])(_planejamento_master_aba_inconsistencias_planejamento_master_aba_inconsistencias_component__WEBPACK_IMPORTED_MODULE_20__["PlanejamentoMasterAbaInconsistenciasComponent"], { static: false }),
        __metadata("design:type", _planejamento_master_aba_inconsistencias_planejamento_master_aba_inconsistencias_component__WEBPACK_IMPORTED_MODULE_20__["PlanejamentoMasterAbaInconsistenciasComponent"])
    ], PlanejamentoMasterFormComponent.prototype, "abaInconsistenciasComponent", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"])(_planejamento_master_aba_filiais_planejamento_master_aba_filiais_component__WEBPACK_IMPORTED_MODULE_21__["PlanejamentoMasterAbaFiliaisComponent"], { static: false }),
        __metadata("design:type", _planejamento_master_aba_filiais_planejamento_master_aba_filiais_component__WEBPACK_IMPORTED_MODULE_21__["PlanejamentoMasterAbaFiliaisComponent"])
    ], PlanejamentoMasterFormComponent.prototype, "abaFiliaisComponent", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"])(_planejamento_master_aba_deposito_planejamento_master_aba_deposito_component__WEBPACK_IMPORTED_MODULE_22__["PlanejamentoMasterAbaDepositoComponent"], { static: false }),
        __metadata("design:type", _planejamento_master_aba_deposito_planejamento_master_aba_deposito_component__WEBPACK_IMPORTED_MODULE_22__["PlanejamentoMasterAbaDepositoComponent"])
    ], PlanejamentoMasterFormComponent.prototype, "abaDepositoComponent", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"])(_planejamento_master_aba_alinhamento_planejamento_master_aba_alinhamento_component__WEBPACK_IMPORTED_MODULE_23__["PlanejamentoMasterAbaAlinhamentoComponent"], { static: false }),
        __metadata("design:type", _planejamento_master_aba_alinhamento_planejamento_master_aba_alinhamento_component__WEBPACK_IMPORTED_MODULE_23__["PlanejamentoMasterAbaAlinhamentoComponent"])
    ], PlanejamentoMasterFormComponent.prototype, "abaAlinhamentoComponent", void 0);
    PlanejamentoMasterFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"])({
            selector: "app-planejamento-master-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./planejamento-master-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-form/planejamento-master-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./planejamento-master-form.component.scss */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-form/planejamento-master-form.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_3__["ActivatedRoute"],
            app_pages_cadastro_operacao_operacao_service__WEBPACK_IMPORTED_MODULE_15__["OperacaoService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"],
            app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_8__["DestinatarioService"],
            app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_18__["MaterialService"],
            app_pages_cadastro_grupo_cliente_grupo_cliente_service__WEBPACK_IMPORTED_MODULE_14__["GrupoClienteService"],
            _planejamento_master_service__WEBPACK_IMPORTED_MODULE_12__["PlanejamentoMasterService"]])
    ], PlanejamentoMasterFormComponent);
    return PlanejamentoMasterFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_6__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-importar-modal/planejamento-master-importar-modal.component.ts":
/*!***********************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-importar-modal/planejamento-master-importar-modal.component.ts ***!
  \***********************************************************************************************************************************************************/
/*! exports provided: PlanejamentoMasterImportarModalComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterImportarModalComponent", function() { return PlanejamentoMasterImportarModalComponent; });
/* harmony import */ var _planejamento_master_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../planejamento-master.model */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master.model.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* 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 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_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _planejamento_master_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../planejamento-master.service */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master.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 PlanejamentoMasterImportarModalComponent = /** @class */ (function () {
    function PlanejamentoMasterImportarModalComponent(router, funcoes, service, messageService) {
        this.router = router;
        this.funcoes = funcoes;
        this.service = service;
        this.messageService = messageService;
        this.outConfirma = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.importa = new _planejamento_master_model__WEBPACK_IMPORTED_MODULE_0__["ImportarTransportadora"]();
        this.mensagens = [];
    }
    PlanejamentoMasterImportarModalComponent.prototype.ngOnInit = function () {
        this.importa.acao = 0;
    };
    PlanejamentoMasterImportarModalComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.importa.regPlanej = 0;
        this.importa.regTmp = this.data.regPlanej;
        this.service.importarTransportadora(this.importa).subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result);
            if (!result.isValid) {
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("messages.transportadorasImportadasComSucesso", "titles.planejamentoMaster");
                app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["ModalUtilsStaticService"].closeModal("modalImport");
            }
        });
    };
    PlanejamentoMasterImportarModalComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _planejamento_master_service__WEBPACK_IMPORTED_MODULE_7__["PlanejamentoMasterService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(),
        __metadata("design:type", Object)
    ], PlanejamentoMasterImportarModalComponent.prototype, "outConfirma", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
        __metadata("design:type", _planejamento_master_model__WEBPACK_IMPORTED_MODULE_0__["PlanejamentoMaster"])
    ], PlanejamentoMasterImportarModalComponent.prototype, "data", void 0);
    PlanejamentoMasterImportarModalComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-planejamento-master-importar-modal",
            template: __importDefault(__webpack_require__(/*! raw-loader!./planejamento-master-importar-modal.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-importar-modal/planejamento-master-importar-modal.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_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _planejamento_master_service__WEBPACK_IMPORTED_MODULE_7__["PlanejamentoMasterService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"]])
    ], PlanejamentoMasterImportarModalComponent);
    return PlanejamentoMasterImportarModalComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterIndexComponent", function() { return PlanejamentoMasterIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../login/login.service */ "./src/app/pages/login/login.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 app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_8__ = __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_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __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 _planejamento_master_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../planejamento-master.model */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master.model.ts");
/* harmony import */ var _planejamento_master_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../planejamento-master.constants */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master.constants.ts");
/* harmony import */ var _planejamento_master_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../planejamento-master.service */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master.service.ts");
/* harmony import */ var app_pages_cadastro_grupo_cliente_grupo_cliente_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/pages/cadastro/grupo-cliente/grupo-cliente.service */ "./src/app/pages/cadastro/grupo-cliente/grupo-cliente.service.ts");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.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 PlanejamentoMasterIndexComponent = /** @class */ (function (_super) {
    __extends(PlanejamentoMasterIndexComponent, _super);
    function PlanejamentoMasterIndexComponent(router, service, datatablesService, funcoesService, messageService, permissoesUtils, loginService, grupoClienteService, destinatarioService) {
        var _this = _super.call(this, new _planejamento_master_constants__WEBPACK_IMPORTED_MODULE_11__["PlanejamentoMasterConstants"](), funcoesService) || this;
        _this.router = router;
        _this.service = service;
        _this.datatablesService = datatablesService;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.grupoClienteService = grupoClienteService;
        _this.destinatarioService = destinatarioService;
        _this.data = new _planejamento_master_model__WEBPACK_IMPORTED_MODULE_10__["PlanejamentoMaster"]();
        _this.constantes = new _planejamento_master_constants__WEBPACK_IMPORTED_MODULE_11__["PlanejamentoMasterConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.pageRoute = "/especificos/vopak/movimentos/planejamentoMaster";
        _this.mensagens = [];
        _this.alinhamentoDePlataformas = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 8, function () {
                _this.funcoesService.openWindow("especificos/vopak/movimentos/alinhamentoPlataforma");
            });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    PlanejamentoMasterIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!_this.loginService.isTokenExpired()) {
                if (_this.funcoesService.abrirFiltro) {
                    _this.service.filtro = new _planejamento_master_model__WEBPACK_IMPORTED_MODULE_10__["PlanejamentoMasterFilter"]();
                    _this.filtrar();
                }
                else {
                    _this.refresh();
                }
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: 'alinhamentoDePlataformas', func: function () { return _this.alinhamentoDePlataformas; } }
        ]);
    };
    PlanejamentoMasterIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.filtro.filialId = this.loginService.getLogin().filialId;
        this.service.getDados(this.service.filtro).subscribe(function (data) {
            var columns = [
                _this.datatablesService.getDataStringAlignRight("regPlanej", "numero"),
                _this.datatablesService.getDataString("descrTipoMov", "tipo"),
                _this.datatablesService.getDataString("nomeDest", "cliente"),
                _this.datatablesService.getDataString("nomeProduto", "produto"),
                _this.datatablesService.getDataString("numPlanej", "planejCliente"),
                _this.datatablesService.getDataString("pedidoVenda", "planejVenda"),
                _this.datatablesService.getDataString("pedidoRemessa", "pedidoRemessa"),
                _this.datatablesService.getDataDateTime("dtInicio", "dataInicio"),
                _this.datatablesService.getDataDateTime("dtFim", "dataTermino")
            ];
            _this.datatablesService.toDataTable({ tableId: "dtPlanejamentoMaster", columns: columns, data: data, orientationOrder: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["EOrientationOrder"].ASC, }, function (aData) {
                _this.data = aData;
                _this.trataDados(_this.data);
            });
        });
    };
    PlanejamentoMasterIndexComponent.prototype.trataDados = function (data) {
        var _this = this;
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].isPositive(data.destinatarioIdCliente)) {
            this.destinatarioService.getById(data.destinatarioIdCliente).subscribe(function (cliente) {
                _this.data.cliente = cliente;
            });
        }
        else {
            this.data.cliente = null;
        }
    };
    PlanejamentoMasterIndexComponent.prototype.filtrar = function () {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_8__["EventEmitterService"].get("formError").emit(null);
        jQuery("#planejamento-master-filter").modal("show");
    };
    PlanejamentoMasterIndexComponent.prototype.executaFiltro = function () {
        this.refresh();
    };
    PlanejamentoMasterIndexComponent.prototype.remove = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            if (!_this.data || !_this.data.regPlanej) {
                _this.messageService.info("titles.planejamentoMaster", "messages.nenhumRegistroSelecionado");
                return;
            }
            _this.messageService.removeConfirm(function () {
                _this.service.deleteDados(_this.data).subscribe(function (result) {
                    _this.mensagens = _this.messageService.validationResult(result);
                    if (!result.isValid) {
                        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_8__["EventEmitterService"].get("backError").emit(_this.mensagens);
                        _this.funcoesService.backToTop();
                    }
                    else {
                        _this.messageService.removeSuccess();
                        _this.refresh();
                        _this.data = new _planejamento_master_model__WEBPACK_IMPORTED_MODULE_10__["PlanejamentoMaster"]();
                    }
                });
            });
        });
    };
    PlanejamentoMasterIndexComponent.prototype.create = function () {
        this.router.navigate(["" + this.target + this.pageRoute + "/create"]);
    };
    PlanejamentoMasterIndexComponent.prototype.edit = function () {
        this.router.navigate(["" + this.target + this.pageRoute + "/edit/" + this.data.regPlanej]);
    };
    PlanejamentoMasterIndexComponent.prototype.detail = function () {
        if (!!(this.data.regPlanej)) {
            this.router.navigate(["" + this.target + this.pageRoute + "/detail/" + this.data.regPlanej]);
        }
    };
    PlanejamentoMasterIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _this.constantes.paramRelatorio = {
                tipoOperacao: _this.service.filtro.tipoOperacao,
                filialId: _this.loginService.getLogin().filialId,
                destinatarioIdCliente: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(_this.service.filtro.destinatarioIdCliente),
                materialId: _this.service.filtro.materialId,
                destinatarioIdTransportadora: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(_this.service.filtro.destinatarioIdTransportadora),
                grupoClienteId: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(_this.service.filtro.grupoClienteId),
                flag: _this.service.filtro.flag,
                dataI: _this.service.filtro.dataI,
                dataF: _this.service.filtro.dataF
            };
            _super.prototype.print.call(_this, null, true);
        });
    };
    PlanejamentoMasterIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    PlanejamentoMasterIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    PlanejamentoMasterIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _planejamento_master_service__WEBPACK_IMPORTED_MODULE_12__["PlanejamentoMasterService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"] },
        { type: app_pages_cadastro_grupo_cliente_grupo_cliente_service__WEBPACK_IMPORTED_MODULE_13__["GrupoClienteService"] },
        { type: app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_14__["DestinatarioService"] }
    ]; };
    PlanejamentoMasterIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-planejamento-master-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./planejamento-master-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-index/planejamento-master-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _planejamento_master_service__WEBPACK_IMPORTED_MODULE_12__["PlanejamentoMasterService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"],
            app_pages_cadastro_grupo_cliente_grupo_cliente_service__WEBPACK_IMPORTED_MODULE_13__["GrupoClienteService"],
            app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_14__["DestinatarioService"]])
    ], PlanejamentoMasterIndexComponent);
    return PlanejamentoMasterIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterConstants", function() { return PlanejamentoMasterConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var PlanejamentoMasterConstants = /** @class */ (function () {
    function PlanejamentoMasterConstants() {
        this.sisFormularioId = 65670;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.inclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.exclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.propriedades" },
            { sisFormularioId: this.sisFormularioId, libRotina: 7, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 8, acao: "labels.alinhamentoDePlataformas" },
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.planejamentoMaster";
        this.reportId = "VOP0075";
        this.reportTitulo = { "titulo": "Planejamento Master", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Novo', action: 'create', icon: "icon-plus", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Visualizar', action: 'detail', icon: "icon-eye", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Excluir', action: 'remove', icon: "icon-close", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Propriedade', action: 'properties', icon: "icon-menu", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'alinhamentoDePlataformas', action: "alinhamentoDePlataformas", icon: "fa fa-tasks", exibeButton: true, eximeMenu: true, menuName: 'Arquivo', depitem: false },
        ];
        this.listaForm = [
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
    }
    return PlanejamentoMasterConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master.model.ts":
/*!*****************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master.model.ts ***!
  \*****************************************************************************************************/
/*! exports provided: PlanejamentoMasterIndex, PlanejamentoMaster, PlanejamentoMasterFilter, PlanejamentoMasterFiliais, PlanejamentoMasterSaldoLiberadoFiliais, PlanejamentoMasterAjustaProduto, PlanejamentoMasterObgPedido, PlanejamentoMasterVerDeposito, PlanejamentoMasterFiliaisIndex, SaldoCliente, SaldoFiliais, PlanejamentoMasterDepositoIndex, PlanejamentoMasterDeposito, PlanejamentoMasterVeiculosIndex, PlanejamentoMasterVeiculos, ImportarTransportadora, PlanejamentoMasterInconsistenciasIndex, SaldoTransp, PlanejamentoMasterInconsistencias, PlanejamentoMasterAlinhamentoIndexBA, PlanejamentoMasterAlinhamentoBA, PlanejamentoMasterAlinhamentoIndexBD, PlanejamentoMasterAlinhamentoBD */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterIndex", function() { return PlanejamentoMasterIndex; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMaster", function() { return PlanejamentoMaster; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterFilter", function() { return PlanejamentoMasterFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterFiliais", function() { return PlanejamentoMasterFiliais; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterSaldoLiberadoFiliais", function() { return PlanejamentoMasterSaldoLiberadoFiliais; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterAjustaProduto", function() { return PlanejamentoMasterAjustaProduto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterObgPedido", function() { return PlanejamentoMasterObgPedido; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterVerDeposito", function() { return PlanejamentoMasterVerDeposito; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterFiliaisIndex", function() { return PlanejamentoMasterFiliaisIndex; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SaldoCliente", function() { return SaldoCliente; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SaldoFiliais", function() { return SaldoFiliais; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterDepositoIndex", function() { return PlanejamentoMasterDepositoIndex; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterDeposito", function() { return PlanejamentoMasterDeposito; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterVeiculosIndex", function() { return PlanejamentoMasterVeiculosIndex; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterVeiculos", function() { return PlanejamentoMasterVeiculos; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ImportarTransportadora", function() { return ImportarTransportadora; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterInconsistenciasIndex", function() { return PlanejamentoMasterInconsistenciasIndex; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SaldoTransp", function() { return SaldoTransp; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterInconsistencias", function() { return PlanejamentoMasterInconsistencias; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterAlinhamentoIndexBA", function() { return PlanejamentoMasterAlinhamentoIndexBA; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterAlinhamentoBA", function() { return PlanejamentoMasterAlinhamentoBA; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterAlinhamentoIndexBD", function() { return PlanejamentoMasterAlinhamentoIndexBD; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterAlinhamentoBD", function() { return PlanejamentoMasterAlinhamentoBD; });
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/cadastro/material/material.model */ "./src/app/pages/cadastro/material/material.model.ts");
/* harmony import */ var _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__ = __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 PlanejamentoMasterIndex = /** @class */ (function (_super) {
    __extends(PlanejamentoMasterIndex, _super);
    function PlanejamentoMasterIndex() {
        return _super.call(this) || this;
    }
    return PlanejamentoMasterIndex;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__["BaseModel"]));

var PlanejamentoMaster = /** @class */ (function (_super) {
    __extends(PlanejamentoMaster, _super);
    function PlanejamentoMaster() {
        var _this = _super.call(this) || this;
        _this.bntSalvarGeral = true;
        _this.flagAtivo = "S";
        _this.tipoMov = "C";
        _this.cliente = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__["Destinatario"]();
        _this.clienteVenda = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__["Destinatario"]();
        _this.emitente = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__["Destinatario"]();
        _this.material = new app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_1__["Material"]();
        var dataInicial = new Date();
        dataInicial.setHours(0);
        dataInicial.setMinutes(0);
        dataInicial.setSeconds(0);
        var dataFinal = new Date();
        dataFinal.setHours(23);
        dataFinal.setMinutes(59);
        dataFinal.setSeconds(59);
        _this.dtInicio = dataInicial;
        _this.dtFim = dataFinal;
        _this.kilosPlanej = 0;
        _this.litrosPlanej = 0;
        _this.kilosAgend = 0;
        _this.litrosAgend = 0;
        _this.kilosConf = 0;
        _this.litrosConf = 0;
        _this.kilosSaldo = 0;
        _this.litrosSaldo = 0;
        _this.habilitaLitrosFiliais = false;
        return _this;
    }
    return PlanejamentoMaster;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__["BaseModel"]));

var PlanejamentoMasterFilter = /** @class */ (function () {
    function PlanejamentoMasterFilter() {
        this.tipoOperacao = "C";
        this.flag = "N";
        this.dataI = new Date();
        var currentDate = new Date();
        currentDate.setDate(currentDate.getDate() + 1);
        this.dataF = currentDate;
    }
    return PlanejamentoMasterFilter;
}());

var PlanejamentoMasterFiliais = /** @class */ (function (_super) {
    __extends(PlanejamentoMasterFiliais, _super);
    function PlanejamentoMasterFiliais() {
        var _this = _super.call(this) || this;
        _this.regPlanej = 0;
        _this.destinatarioIdTransportadora = 0;
        _this.transportadora = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__["Destinatario"]();
        _this.lblPlanejamento = 0;
        _this.destinatarioIdClienteVenda = 0;
        _this.clienteVenda = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__["Destinatario"]();
        _this.flagSaldoAuto = 'N';
        _this.codEmitente = 0;
        _this.emitente = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__["Destinatario"]();
        _this.litros = 0;
        _this.litrosAgendCli = 0;
        _this.litrosConfCli = 0;
        _this.litrosSaldoCli = 0;
        _this.kilos = 0;
        _this.kilosAgendCli = 0;
        _this.kilosConfCli = 0;
        _this.kilosSaldoCli = 0;
        _this.kilosPlanej = 0;
        _this.litrosPlanej = 0;
        _this.kilosAgend = 0;
        _this.litrosAgend = 0;
        _this.kilosConf = 0;
        _this.litrosConf = 0;
        _this.kilosSaldo = 0;
        _this.litrosSaldo = 0;
        return _this;
    }
    return PlanejamentoMasterFiliais;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__["BaseModel"]));

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

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

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

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

var PlanejamentoMasterFiliaisIndex = /** @class */ (function (_super) {
    __extends(PlanejamentoMasterFiliaisIndex, _super);
    function PlanejamentoMasterFiliaisIndex() {
        var _this = _super.call(this) || this;
        _this.destinatarioIdTransportadora = 0;
        _this.destinatarioIdClienteVenda = 0;
        _this.nomeCliente = '';
        _this.nomeClienteVenda = '';
        _this.nomeEmitente = '';
        _this.litros = 0.0;
        _this.kilos = 0.0;
        _this.saldoLitros = 0.0;
        _this.saldoKilos = 0.0;
        _this.flagSaldoAuto = '';
        _this.item = 0;
        _this.planejadoKilos = 0;
        _this.planejadoLitros = 0;
        _this.agendadosKilos = 0;
        _this.agendadosLitros = 0;
        _this.confirmadoKilos = 0;
        _this.confirmadoLitros = 0;
        return _this;
    }
    return PlanejamentoMasterFiliaisIndex;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__["BaseModel"]));

var SaldoCliente = /** @class */ (function (_super) {
    __extends(SaldoCliente, _super);
    function SaldoCliente() {
        var _this = _super.call(this) || this;
        _this.planejadoKilos = 0;
        _this.planejadoLitros = 0;
        _this.agendadosKilos = 0;
        _this.agendadosLitros = 0;
        _this.confirmadoKilos = 0;
        _this.confirmadoLitros = 0;
        _this.saldoLitros = 0;
        _this.saldoKilos = 0;
        _this.item = 0;
        return _this;
    }
    return SaldoCliente;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__["BaseModel"]));

var SaldoFiliais = /** @class */ (function (_super) {
    __extends(SaldoFiliais, _super);
    function SaldoFiliais() {
        var _this = _super.call(this) || this;
        _this.litros = 0;
        _this.litrosAgendCli = 0;
        _this.litrosConfCli = 0;
        _this.litrosSaldoCli = 0;
        _this.kilos = 0;
        _this.kilosAgendCli = 0;
        _this.kilosConfCli = 0;
        _this.kilosSaldoCli = 0;
        return _this;
    }
    return SaldoFiliais;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__["BaseModel"]));

var PlanejamentoMasterDepositoIndex = /** @class */ (function (_super) {
    __extends(PlanejamentoMasterDepositoIndex, _super);
    function PlanejamentoMasterDepositoIndex() {
        var _this = _super.call(this) || this;
        _this.deposito = '';
        _this.flagAtivo = '';
        _this.regPlanej = 0;
        _this.regTmp = 0;
        _this.item = 0;
        return _this;
    }
    return PlanejamentoMasterDepositoIndex;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__["BaseModel"]));

var PlanejamentoMasterDeposito = /** @class */ (function (_super) {
    __extends(PlanejamentoMasterDeposito, _super);
    function PlanejamentoMasterDeposito() {
        var _this = _super.call(this) || this;
        _this.regPlanej = 0;
        _this.item = 0;
        _this.deposito = '';
        _this.flagAtivo = 'N';
        return _this;
    }
    return PlanejamentoMasterDeposito;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__["BaseModel"]));

var PlanejamentoMasterVeiculosIndex = /** @class */ (function (_super) {
    __extends(PlanejamentoMasterVeiculosIndex, _super);
    function PlanejamentoMasterVeiculosIndex() {
        var _this = _super.call(this) || this;
        _this.destinatarioIdTransportadora = 0;
        _this.nomeTransp = '';
        _this.qtdeVeiculos = 0;
        return _this;
    }
    return PlanejamentoMasterVeiculosIndex;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__["BaseModel"]));

var PlanejamentoMasterVeiculos = /** @class */ (function (_super) {
    __extends(PlanejamentoMasterVeiculos, _super);
    function PlanejamentoMasterVeiculos() {
        var _this = _super.call(this) || this;
        _this.item = 0;
        _this.destinatarioIdTransportadora = 0;
        _this.transportadora = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__["Destinatario"]();
        _this.qtdeVeiculos = 0;
        _this.agendVeic = 0;
        _this.confVeic = 0;
        _this.saldVeic = 0;
        return _this;
    }
    return PlanejamentoMasterVeiculos;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__["BaseModel"]));

var ImportarTransportadora = /** @class */ (function (_super) {
    __extends(ImportarTransportadora, _super);
    function ImportarTransportadora() {
        var _this = _super.call(this) || this;
        _this.acao = 0;
        return _this;
    }
    return ImportarTransportadora;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__["BaseModel"]));

var PlanejamentoMasterInconsistenciasIndex = /** @class */ (function (_super) {
    __extends(PlanejamentoMasterInconsistenciasIndex, _super);
    function PlanejamentoMasterInconsistenciasIndex() {
        var _this = _super.call(this) || this;
        _this.regPlaneja = 0;
        _this.dtPrevisaoChegada = new Date(0);
        _this.cliente = "";
        _this.produto = "";
        _this.placa = "";
        _this.motorista = "";
        _this.transportadora = "";
        _this.tanquePlanejado = "";
        _this.descrPlataforma = "";
        _this.numeroBaia = 0;
        _this.ordemBico = 0;
        _this.descrInconsistencia = "";
        return _this;
    }
    return PlanejamentoMasterInconsistenciasIndex;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__["BaseModel"]));

var SaldoTransp = /** @class */ (function (_super) {
    __extends(SaldoTransp, _super);
    function SaldoTransp() {
        return _super.call(this) || this;
    }
    return SaldoTransp;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__["BaseModel"]));

var PlanejamentoMasterInconsistencias = /** @class */ (function (_super) {
    __extends(PlanejamentoMasterInconsistencias, _super);
    function PlanejamentoMasterInconsistencias() {
        return _super.call(this) || this;
    }
    return PlanejamentoMasterInconsistencias;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__["BaseModel"]));

var PlanejamentoMasterAlinhamentoIndexBA = /** @class */ (function (_super) {
    __extends(PlanejamentoMasterAlinhamentoIndexBA, _super);
    function PlanejamentoMasterAlinhamentoIndexBA() {
        var _this = _super.call(this) || this;
        _this.area = "";
        _this.plataforma = "";
        _this.baia = 0;
        _this.bico = 0;
        return _this;
    }
    return PlanejamentoMasterAlinhamentoIndexBA;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__["BaseModel"]));

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

var PlanejamentoMasterAlinhamentoIndexBD = /** @class */ (function (_super) {
    __extends(PlanejamentoMasterAlinhamentoIndexBD, _super);
    function PlanejamentoMasterAlinhamentoIndexBD() {
        var _this = _super.call(this) || this;
        _this.area = "";
        _this.plataforma = "";
        _this.baia = 0;
        _this.bico = 0;
        return _this;
    }
    return PlanejamentoMasterAlinhamentoIndexBD;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__["BaseModel"]));

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



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterModule", function() { return PlanejamentoMasterModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _planejamento_master_aba_alinhamento_planejamento_master_aba_alinhamento_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./planejamento-master-aba-alinhamento/planejamento-master-aba-alinhamento.component */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-alinhamento/planejamento-master-aba-alinhamento.component.ts");
/* harmony import */ var _planejamento_master_aba_deposito_planejamento_master_aba_deposito_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./planejamento-master-aba-deposito/planejamento-master-aba-deposito.component */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-deposito/planejamento-master-aba-deposito.component.ts");
/* harmony import */ var _planejamento_master_aba_filiais_planejamento_master_aba_filiais_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./planejamento-master-aba-filiais/planejamento-master-aba-filiais.component */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-filiais/planejamento-master-aba-filiais.component.ts");
/* harmony import */ var _planejamento_master_aba_inconsistencias_planejamento_master_aba_inconsistencias_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./planejamento-master-aba-inconsistencias/planejamento-master-aba-inconsistencias.component */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-inconsistencias/planejamento-master-aba-inconsistencias.component.ts");
/* harmony import */ var _planejamento_master_aba_veiculos_planejamento_master_aba_veiculos_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./planejamento-master-aba-veiculos/planejamento-master-aba-veiculos.component */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-aba-veiculos/planejamento-master-aba-veiculos.component.ts");
/* harmony import */ var _planejamento_master_filter_planejamento_master_filter_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./planejamento-master-filter/planejamento-master-filter.component */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-filter/planejamento-master-filter.component.ts");
/* harmony import */ var _planejamento_master_form_planejamento_master_form_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./planejamento-master-form/planejamento-master-form.component */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-form/planejamento-master-form.component.ts");
/* harmony import */ var _planejamento_master_importar_modal_planejamento_master_importar_modal_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./planejamento-master-importar-modal/planejamento-master-importar-modal.component */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-importar-modal/planejamento-master-importar-modal.component.ts");
/* harmony import */ var _planejamento_master_index_planejamento_master_index_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./planejamento-master-index/planejamento-master-index.component */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-index/planejamento-master-index.component.ts");
/* harmony import */ var _planejamento_master_routing_module__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./planejamento-master.routing.module */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master.routing.module.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 PlanejamentoMasterModule = /** @class */ (function () {
    function PlanejamentoMasterModule() {
    }
    PlanejamentoMasterModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [
                _planejamento_master_index_planejamento_master_index_component__WEBPACK_IMPORTED_MODULE_10__["PlanejamentoMasterIndexComponent"],
                _planejamento_master_form_planejamento_master_form_component__WEBPACK_IMPORTED_MODULE_8__["PlanejamentoMasterFormComponent"],
                _planejamento_master_filter_planejamento_master_filter_component__WEBPACK_IMPORTED_MODULE_7__["PlanejamentoMasterFilterComponent"],
                _planejamento_master_aba_filiais_planejamento_master_aba_filiais_component__WEBPACK_IMPORTED_MODULE_4__["PlanejamentoMasterAbaFiliaisComponent"],
                _planejamento_master_aba_deposito_planejamento_master_aba_deposito_component__WEBPACK_IMPORTED_MODULE_3__["PlanejamentoMasterAbaDepositoComponent"],
                _planejamento_master_aba_veiculos_planejamento_master_aba_veiculos_component__WEBPACK_IMPORTED_MODULE_6__["PlanejamentoMasterAbaVeiculosComponent"],
                _planejamento_master_aba_inconsistencias_planejamento_master_aba_inconsistencias_component__WEBPACK_IMPORTED_MODULE_5__["PlanejamentoMasterAbaInconsistenciasComponent"],
                _planejamento_master_aba_alinhamento_planejamento_master_aba_alinhamento_component__WEBPACK_IMPORTED_MODULE_2__["PlanejamentoMasterAbaAlinhamentoComponent"],
                _planejamento_master_importar_modal_planejamento_master_importar_modal_component__WEBPACK_IMPORTED_MODULE_9__["PlanejamentoMasterImportarModalComponent"]
            ],
            imports: [
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"],
                _planejamento_master_routing_module__WEBPACK_IMPORTED_MODULE_11__["PlanejamentoMasterRoutingModule"]
            ]
        })
    ], PlanejamentoMasterModule);
    return PlanejamentoMasterModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterRoutingModule", function() { return PlanejamentoMasterRoutingModule; });
/* 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 _planejamento_master_form_planejamento_master_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./planejamento-master-form/planejamento-master-form.component */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-form/planejamento-master-form.component.ts");
/* harmony import */ var _planejamento_master_index_planejamento_master_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./planejamento-master-index/planejamento-master-index.component */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master-index/planejamento-master-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 PlanejamentoMasterRoutes = [
    {
        path: "",
        component: _planejamento_master_index_planejamento_master_index_component__WEBPACK_IMPORTED_MODULE_4__["PlanejamentoMasterIndexComponent"],
        data: {
            breadcrumb: "planejamentoMaster",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    },
    {
        path: "create",
        component: _planejamento_master_form_planejamento_master_form_component__WEBPACK_IMPORTED_MODULE_3__["PlanejamentoMasterFormComponent"],
        data: {
            breadcrumb: "planejamentoMaster",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "detail/:id",
        component: _planejamento_master_form_planejamento_master_form_component__WEBPACK_IMPORTED_MODULE_3__["PlanejamentoMasterFormComponent"],
        data: {
            breadcrumb: "planejamentoMaster",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    },
    {
        path: "edit/:id",
        component: _planejamento_master_form_planejamento_master_form_component__WEBPACK_IMPORTED_MODULE_3__["PlanejamentoMasterFormComponent"],
        data: {
            breadcrumb: "planejamentoMaster",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    }
];
var PlanejamentoMasterRoutingModule = /** @class */ (function () {
    function PlanejamentoMasterRoutingModule() {
    }
    PlanejamentoMasterRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(PlanejamentoMasterRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
        })
    ], PlanejamentoMasterRoutingModule);
    return PlanejamentoMasterRoutingModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejamentoMasterService", function() { return PlanejamentoMasterService; });
/* 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 app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/base/specifics.base.service */ "./src/app/shared/services/base/specifics.base.service.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _planejamento_master_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./planejamento-master.model */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master.model.ts");
/* harmony import */ var _planejamento_master_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./planejamento-master.constants */ "./src/app/pages/especificos/vopak/movimentos/planejamento-master/planejamento-master.constants.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};








var PlanejamentoMasterService = /** @class */ (function (_super) {
    __extends(PlanejamentoMasterService, _super);
    function PlanejamentoMasterService(http) {
        var _this = _super.call(this, http, "vopak/planejamentoMaster") || this;
        _this.http = http;
        _this.filtro = new _planejamento_master_model__WEBPACK_IMPORTED_MODULE_6__["PlanejamentoMasterFilter"]();
        _this.constantes = new _planejamento_master_constants__WEBPACK_IMPORTED_MODULE_7__["PlanejamentoMasterConstants"]();
        _this.title = "titles.planejamentoMaster";
        return _this;
    }
    PlanejamentoMasterService.prototype.getRegTmp = function (regTmp) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/planejamentoMaster/getRegTmp/" + regTmp)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PlanejamentoMasterService.prototype.getDados = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/planejamentoMaster/getData", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PlanejamentoMasterService.prototype.getValidaTipoMov = function (regPlanej) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/planejamentoMaster/getValidaTipoMov/" + regPlanej)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PlanejamentoMasterService.prototype.addDadosTmp = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/planejamentoMaster/addDadosTmp", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PlanejamentoMasterService.prototype.addDadosGeral = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/planejamentoMaster/addGeral", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PlanejamentoMasterService.prototype.deleteDados = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/planejamentoMaster/deleteDados", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PlanejamentoMasterService.prototype.getDadosFiliaisIndex = function (regPlanej) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/planejamentoMaster/getFiliaisIndex/" + regPlanej)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PlanejamentoMasterService.prototype.getDadosSaldoCliente = function (regPlanej, regTmp, item) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/planejamentoMaster/getSaldoFiliais/" + regPlanej + "/" + regTmp + "/" + item)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PlanejamentoMasterService.prototype.getDadosSaldoClienteItem = function (regPlanej, regTmp, item) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/planejamentoMaster/getSaldoFiliais/" + regPlanej + "/" + regTmp + "/" + item)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PlanejamentoMasterService.prototype.getSaldoLiberadoFiliais = function (codDest, material) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/planejamentoMaster/getSaldoLiberadoFiliais/" + codDest + "/" + material)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PlanejamentoMasterService.prototype.ajustaProduto = function (material) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/planejamentoMaster/ajustaProduto/" + material)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PlanejamentoMasterService.prototype.verificarObgPedido = function (codDest) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/planejamentoMaster/verificarObgPedido/" + codDest)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PlanejamentoMasterService.prototype.verificarDeposito = function (regPlanej) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/planejamentoMaster/verificarDeposito/" + regPlanej)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PlanejamentoMasterService.prototype.addFiliais = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/planejamentoMaster/addFiliais", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PlanejamentoMasterService.prototype.deleteFiliais = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/planejamentoMaster/deleteFiliais", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PlanejamentoMasterService.prototype.getNoPlanejamento = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/planejamentoMaster/getNoPlanejamento", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PlanejamentoMasterService.prototype.getDadosDepositoIndex = function (regPlanej) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/planejamentoMaster/getDepositoIndex/" + regPlanej)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PlanejamentoMasterService.prototype.addDeposito = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/planejamentoMaster/addDeposito", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PlanejamentoMasterService.prototype.ativaDeposito = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/planejamentoMaster/ativaDeposito", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PlanejamentoMasterService.prototype.deleteDeposito = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/planejamentoMaster/deleteDeposito", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PlanejamentoMasterService.prototype.getDadosVeiculosIndex = function (regPlanej) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/planejamentoMaster/getVeiculosIndex/" + regPlanej)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PlanejamentoMasterService.prototype.addVeiculos = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/planejamentoMaster/addVeiculos", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PlanejamentoMasterService.prototype.importarTransportadora = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/planejamentoMaster/importarTransportadora", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PlanejamentoMasterService.prototype.deleteVeiculos = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/planejamentoMaster/deleteVeiculos", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PlanejamentoMasterService.prototype.getDadosSaldoTransp = function (regPlanej, regTmp, item) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/planejamentoMaster/getSaldoTransp/" + regPlanej + "/" + regTmp + "/" + item)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PlanejamentoMasterService.prototype.getDadosInconsistenciasIndex = function (regPlanej) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/planejamentoMaster/getInconsistenciasIndex/" + regPlanej)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PlanejamentoMasterService.prototype.getDadosAlinhamentoBA = function (regPlanej) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/planejamentoMaster/getDadosAlinhamentoBA/" + regPlanej)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PlanejamentoMasterService.prototype.getDadosAlinhamentoBD = function (regPlanej) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/planejamentoMaster/getDadosAlinhamentoBD/" + regPlanej)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PlanejamentoMasterService.prototype.excluirBico = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/planejamentoMaster/excluirBico", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PlanejamentoMasterService.prototype.adicionarBico = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/planejamentoMaster/adicionarBico", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PlanejamentoMasterService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    PlanejamentoMasterService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], PlanejamentoMasterService);
    return PlanejamentoMasterService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_2__["SpecificsBaseService"]));



/***/ })

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