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

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("\r\n<div class=\"plataforma-baia--bico mb-2\">   \r\n    <div class=\"plataforma-bico\">\r\n        <ng-container>\r\n            <div class=\"plataforma-baia--bico-cliente\">\r\n                {{dataList.descricao}}\r\n            </div>\r\n            <div class=\"row bico--line1\">\r\n                <div class=\"container-green\" *ngIf=\"dataList.contemItensC1 === 'S'\">\r\n                    <div class=\"table-row clickable\" *ngFor=\"let itemC1 of dataList.bicos\"\r\n                        [ngClass]=\"{ info: itemC1?.key === selectedItem?.key }\" (click)=\"setSelectedItem(itemC1)\">\r\n                        <div class=\"table-cell text-left\" *ngIf=\"itemC1.numBaia === 1 && itemC1.tipoMov === 'C'\" >{{itemC1.seqBico}}</div>\r\n                        <div class=\"table-cell\" *ngIf=\"itemC1.numBaia === 1 && itemC1.tipoMov === 'C'\">{{itemC1.fantasia}}</div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"container-white\" *ngIf=\"dataList.contemItensC1 === 'N'\"></div>\r\n                <div class=\"container-blue-midle\">\r\n                    <div class=\"clearfix\">&nbsp;</div>\r\n                </div>\r\n                <div class=\"container-green\" *ngIf=\"dataList.contemItensC2 === 'S'\">\r\n                    <div class=\"table-row clickable\" *ngFor=\"let itemC2 of dataList.bicos\"\r\n                        [ngClass]=\"{ info: itemC2?.key === selectedItem?.key}\" (click)=\"setSelectedItem(itemC2)\">\r\n                        <div class=\"table-cell text-left\" *ngIf=\"itemC2.numBaia === 2 && itemC2.tipoMov === 'C'\">{{itemC2.seqBico}}</div>\r\n                        <div class=\"table-cell\" *ngIf=\"itemC2.numBaia === 2 && itemC2.tipoMov === 'C'\">{{itemC2.fantasia}}</div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"container-white\" *ngIf=\"dataList.contemItensC2 === 'N'\"></div>\r\n            </div>\r\n            <div class=\"row bico--line1\">\r\n                <div class=\"container-yellow\" *ngIf=\"dataList.contemItensD1 === 'S'\">\r\n                    <div class=\"table-row clickable\" *ngFor=\"let itemD1 of dataList.bicos\"\r\n                        [ngClass]=\"{ info: itemD1?.key === selectedItem?.key }\" (click)=\"setSelectedItem(itemD1)\">\r\n                        <div class=\"table-cell text-left\" *ngIf=\"itemD1.numBaia === 1 && itemD1.tipoMov === 'D'\" >{{itemD1.seqBico}}</div>\r\n                        <div class=\"table-cell\" *ngIf=\"itemD1.numBaia === 1 && itemD1.tipoMov === 'D'\">{{itemD1.fantasia}}</div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"container-white\" *ngIf=\"dataList.contemItensD1 === 'N'\"></div>\r\n                <div class=\"container-blue-midle\">\r\n                    <div class=\"clearfix\">&nbsp;</div>\r\n                </div>\r\n                <div class=\"container-yellow\" *ngIf=\"dataList.contemItensD2 === 'S'\">\r\n                    <div class=\"table-row clickable\" *ngFor=\"let itemD2 of dataList.bicos\"\r\n                        [ngClass]=\"{ info: itemD2?.key === selectedItem?.key }\" (click)=\"setSelectedItem(itemD2)\">\r\n                        <div class=\"table-cell text-left\" *ngIf=\"itemD2.numBaia === 2 && itemD2.tipoMov === 'D'\">{{itemD2.seqBico}}</div>\r\n                        <div class=\"table-cell\" *ngIf=\"itemD2.numBaia === 2 && itemD2.tipoMov === 'D'\">{{itemD2.fantasia}}</div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"container-white\" *ngIf=\"dataList.contemItensD2 === 'N'\"></div>\r\n            </div>\r\n        </ng-container>\r\n    </div>\r\n</div>\r\n");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"alinhamento-plataforma-dados-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-50\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.dadosDoBico' | translate }}</h6>\r\n            </div>\r\n            <div class=\"modal-body\">\r\n                <div class=\"row\">\r\n                    <div class=\"col-12\">\r\n                        <form class=\"form\" #form=\"ngForm\">\r\n                            <app-validacoes></app-validacoes>\r\n                            <div class=\"row\" *ngIf=\"!!data\">\r\n                                <div class=\"col-9\">\r\n                                    <div class=\"row\">\r\n                                        <div class=\"col-12\">\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"plataforma\">{{'labels.plataforma' |\r\n                                                            translate}}</label>\r\n                                                        <input id=\"plataforma\" name=\"plataforma\"\r\n                                                            value=\"{{data?.codPlataforma}}\" disabled=\"true\"\r\n                                                            class=\"form-control form-control-sm\" type=\"text\">\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"baia\">{{'labels.baia' |\r\n                                                            translate}}</label>\r\n                                                        <input id=\"baia\" name=\"baia\" value=\"{{data?.numBaia}}\"\r\n                                                            disabled=\"true\" class=\"form-control form-control-sm\"\r\n                                                            type=\"text\">\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-6 col-md-6 col-sm-12\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"tipoMov\">{{ \"labels.tipoMov\" |\r\n                                                            translate}}</label>\r\n                                                        <input id=\"tipoMov\" name=\"tipoMov\"\r\n                                                            value=\"{{'labels.carga' | translate}}\" disabled=\"true\"\r\n                                                            class=\"form-control form-control-sm\" type=\"text\"\r\n                                                            *ngIf=\"data?.tipoMov === 'C'\">\r\n                                                        <input id=\"tipoMov\" name=\"tipoMov\"\r\n                                                            value=\"{{'labels.descarga' | translate}}\" disabled=\"true\"\r\n                                                            class=\"form-control form-control-sm\" type=\"text\"\r\n                                                            *ngIf=\"data?.tipoMov === 'D'\">\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"bico\">{{'labels.bico' |\r\n                                                            translate}}</label>\r\n                                                        <input id=\"bico\" name=\"bico\" value=\"{{data?.seqBico}}\"\r\n                                                            disabled=\"true\" class=\"form-control form-control-sm\"\r\n                                                            type=\"text\">\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-12\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <app-pesquisa-material id=\"produto\" name=\"produto\"\r\n                                                            label=\"produto\" modalTitle=\"produto\"\r\n                                                            [disabled]=\"!isEdit\"\r\n                                                            [(ngModel)]=\"data.material\" [inSelected]=\"data.produto\"\r\n                                                            tipoProduto=\"A\"\r\n                                                            (outSelected)=\"trataProduto($event)\">\r\n                                                        </app-pesquisa-material>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"row\" *ngIf=\"utilzTpProduto\">\r\n                                                <div class=\"col-lg-6 col-md-6 col-sm-12\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"tipoProdutoArmazenadoId\">{{\"labels.tipoProduto\" |\r\n                                                            translate}}</label>\r\n                                                        <select id=\"tipoProdutoArmazenadoId\"\r\n                                                            name=\"tipoProdutoArmazenadoId\"\r\n                                                            [(ngModel)]=\"data.tipoProdutoArmazenadoId\"\r\n                                                            class=\"form-control form-control-sm\">\r\n                                                            <option value=\"\">{{ 'labels.selecione' | translate }}\r\n                                                            </option>\r\n                                                            <option [value]=\"item.tipoProdutoArmazenadoId\"\r\n                                                                *ngFor=\"let item of tipoProdutoArmazenados\"> {{\r\n                                                                item.descrTipoProduto }}</option>\r\n                                                        </select>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-3\">\r\n                                    <div class=\"row\">\r\n                                        <div class=\"col-12\">\r\n                                            <ng-container *ngIf=\"isEdit else noedit\">\r\n                                                <div class=\"row\">\r\n                                                    <div class=\"col-12\">\r\n                                                        <button class=\"btn btn-success btn-block\" type=\"button\"\r\n                                                            [disabled]=\"showAddCli || showAddPla\"\r\n                                                            (click)=\"onSubmit(form)\">{{ 'buttons.ok' | translate }}\r\n                                                        </button>\r\n                                                    </div>\r\n                                                </div>\r\n                                                <div class=\"row mt-1\">\r\n                                                    <div class=\"col-12\">\r\n                                                        <button class=\"btn btn-default btn-block\" type=\"button\"\r\n                                                            (click)=\"cancelar()\">{{'buttons.cancelar'|translate}}</button>\r\n                                                    </div>\r\n                                                </div>\r\n                                                <div class=\"row mt-1\">\r\n                                                    <div class=\"col-12\">\r\n                                                        <button class=\"btn btn-success btn-block\" type=\"button\"\r\n                                                            (click)=\"limpar(true)\">{{ 'buttons.limpar' | translate\r\n                                                            }}</button>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </ng-container>\r\n                                            <ng-template #noedit>\r\n                                                <div class=\"row\">\r\n                                                    <div class=\"col-12\">\r\n                                                        <button type=\"button\" class=\"btn btn-success btn-block\"\r\n                                                            data-dismiss=\"modal\">{{'buttons.ok'|translate}}</button>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </ng-template>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                        </form>\r\n                    </div>\r\n                </div>\r\n                <div class=\"row\" *ngIf=\"!!data\">\r\n                    <div class=\"col-lg-12\">\r\n                        <div class=\"section-comand-bar\">\r\n                            <div class=\"clearfix\">\r\n                                <ul class=\"nav nav-tabs \">\r\n                                    <li class=\"nav-item\">\r\n                                        <a class=\"nav-link active show\" data-toggle=\"tab\" href=\"#cl\">\r\n                                            {{\"labels.clientes\" | translate}}</a>\r\n                                    </li>\r\n                                    <li class=\"nav-item\">\r\n                                        <a class=\"nav-link\" data-toggle=\"tab\" href=\"#pl\">\r\n                                            {{\"labels.planejamento\" | translate}}</a>\r\n                                    </li>\r\n                                </ul>\r\n                            </div>\r\n                            <div class=\"tab-content top\">\r\n                                <!-- ABA CLIENTES-->\r\n                                <div class=\"tab-pane active show\" id=\"cl\">\r\n                                    <ng-container *ngIf=\"!showAddCli else addformCli\">\r\n                                        <div class=\"row\" *ngIf=\"isEdit\">\r\n                                            <div class=\"col-lg-12\">\r\n                                                <div class=\"btn-group\">\r\n                                                    <button title=\"{{ 'buttons.novo' | translate }}\"\r\n                                                        class=\"btn uni-btn btn-sm\" (click)=\"createCli()\"\r\n                                                        [disabled]=\"showAddCli || showAddPla\">\r\n                                                        <i class=\"icon-plus\"></i>\r\n                                                    </button>\r\n                                                    <button title=\"{{ 'buttons.excluir' | translate }}\"\r\n                                                        [disabled]=\"showAddCli || showAddPla || !dataAuxCli.destinatarioIdCliente\" class=\"btn uni-btn btn-sm\"\r\n                                                        (click)=\"removeCli()\">\r\n                                                        <i class=\"icon-close\"></i>\r\n                                                    </button>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class=\"card\">\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-12\">\r\n                                                    <div class=\"table-overflow\">\r\n                                                        <table\r\n                                                            class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\">\r\n                                                            <thead>\r\n                                                                <tr>\r\n                                                                    <th class=\"text-center\">{{ 'labels.codigo' |\r\n                                                                        translate\r\n                                                                        }}\r\n                                                                    </th>\r\n                                                                    <th class=\"text-center\">{{ 'labels.cliente' |\r\n                                                                        translate\r\n                                                                        }}\r\n                                                                    </th>\r\n                                                                </tr>\r\n                                                            </thead>\r\n                                                            <tbody>\r\n                                                                <tr *ngFor=\"let c of data.clientes | removeExcluidos\"\r\n                                                                    class=\"clickable\"\r\n                                                                    [ngClass]=\"{ 'info' : c == dataAuxCli }\"\r\n                                                                    (click)=\"(rowSelectCli(c))\">\r\n                                                                    <td class=\"text-center\">{{c?.destinatarioIdCliente}}\r\n                                                                    </td>\r\n                                                                    <td class=\"text-center\">{{c?.fantasia}}\r\n                                                                    </td>\r\n                                                                </tr>\r\n                                                                <tr *ngIf=\"!hasDadosCliente\">\r\n                                                                    <td colspan=\"2\">\r\n                                                                        {{'messages.nenhumRegistroEncontrado' |\r\n                                                                        translate }}\r\n                                                                    </td>\r\n                                                                </tr>\r\n                                                            </tbody>\r\n                                                        </table>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                    </ng-container>\r\n                                    <ng-template #addformCli>\r\n                                        <div class=\"row\">\r\n                                            <div class=\"col-lg-12\">\r\n                                                <div class=\"form-group form-group-sm\">\r\n                                                    <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\"\r\n                                                        tipoDestinatario=\"C\" modalTitle=\"pesquisaDeCliente\"\r\n                                                        label=\"cliente\" [(ngModel)]=\"dataAuxCli.destinatarioIdCliente\"\r\n                                                        showInscricao=\"false\" showCgcCpf=\"false\" required=\"true\"\r\n                                                        [inSelected]=\"dataAuxCli.cliente\"\r\n                                                        (outSelected)=\"dataAuxCli.cliente = $event\"\r\n                                                        (outModel)=\"trataCliente($event)\"\r\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                                    </app-pesquisa-destinatario>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class=\"row\">\r\n                                            <div class=\"col-lg-12\">\r\n                                                <button class=\"btn btn-success mr-2\" type=\"button\"\r\n                                                    (click)=\"salvarCli()\">{{\r\n                                                    'buttons.salvar' | translate }}</button>\r\n                                                <button class=\"btn btn-success mr-2\" type=\"button\"\r\n                                                    (click)=\"cancelarCli()\">{{\r\n                                                    'buttons.cancelar' | translate }}</button>\r\n                                            </div>\r\n                                        </div>\r\n                                    </ng-template>\r\n                                </div>\r\n                                <!-- ABA PLANEJAMENTO -->\r\n                                <div class=\"tab-pane\" id=\"pl\">\r\n                                    <ng-container *ngIf=\"!showAddPla else addformPla\">\r\n                                        <div class=\"row\" *ngIf=\"isEdit\">\r\n                                            <div class=\"col-lg-12\">\r\n                                                <div class=\"btn-group\">\r\n                                                    <button title=\"{{ 'buttons.novo' | translate }}\"\r\n                                                        [disabled]=\"showAddPla || showAddCli\" class=\"btn uni-btn btn-sm\"\r\n                                                        (click)=\"createPla()\">\r\n                                                        <i class=\"icon-plus\"></i>\r\n                                                    </button>\r\n                                                    <button title=\"{{ 'buttons.excluir' | translate }}\"\r\n                                                        [disabled]=\"showAddPla || showAddCli || !dataAuxPla.regPlanej\" class=\"btn uni-btn btn-sm\"\r\n                                                        (click)=\"removePla()\">\r\n                                                        <i class=\"icon-close\"></i>\r\n                                                    </button>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class=\"card\">\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-12\">\r\n                                                    <div class=\"table-overflow\">\r\n                                                        <table\r\n                                                            class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\">\r\n                                                            <thead>\r\n                                                                <tr>\r\n                                                                    <th class=\"text-center\">{{ 'labels.planejamento' |\r\n                                                                        translate\r\n                                                                        }}\r\n                                                                    </th>\r\n                                                                </tr>\r\n                                                            </thead>\r\n                                                            <tbody>\r\n                                                                <tr *ngFor=\"let c of data?.planejamentos | removeExcluidos\"\r\n                                                                    class=\"clickable\"\r\n                                                                    [ngClass]=\"{ 'info' : c?.regPlanej == dataAuxPla?.regPlanej }\"\r\n                                                                    (click)=\"(rowSelectPla(c))\">\r\n                                                                    <td>{{c?.regPlanej}}</td>\r\n                                                                </tr>\r\n                                                                <tr *ngIf=\"!hasDadosPlanejamentos\">\r\n                                                                    <td colspan=\"1\">\r\n                                                                        {{'messages.nenhumRegistroEncontrado' |\r\n                                                                        translate }}\r\n                                                                    </td>\r\n                                                                </tr>\r\n                                                            </tbody>\r\n                                                        </table>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                    </ng-container>\r\n                                    <ng-template #addformPla>\r\n                                        <div class=\"row\">\r\n                                            <div class=\"col-lg-6\">\r\n                                                <div class=\"form-group form-group-sm\">\r\n                                                    <app-pesquisa-planejamento-do-alinhamento [mostraInativo]=\"'N'\"\r\n                                                        [criaTabelaRetorno]=\"'S'\" [destinatarioIdCliente]=\"0\"\r\n                                                        [materialId]=\"data?.material\" [transportadoraId]=\"0\"\r\n                                                        [modal]=\"'R'\" [regControle]=\"0\" [tipoMov]=\"data?.tipoMov\"\r\n                                                        [(ngModel)]=\"dataAuxPla.regPlanej\">\r\n                                                    </app-pesquisa-planejamento-do-alinhamento>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class=\"row\">\r\n                                            <div class=\"col-lg-12\">\r\n                                                <button class=\"btn btn-success mr-2\" type=\"button\"\r\n                                                    (click)=\"salvarPla()\">{{\r\n                                                    'buttons.salvar' | translate }}</button>\r\n                                                <button class=\"btn btn-success mr-2\" type=\"button\"\r\n                                                    (click)=\"cancelarPla()\">{{\r\n                                                    'buttons.cancelar' | translate }}</button>\r\n                                            </div>\r\n                                        </div>\r\n                                    </ng-template>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\" [formAction]=\"actionForm\" [itemData]=\"selectedItem.key\"\r\n    [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"row mb-2\">\r\n    <div class=\"col-12\">\r\n        <div class=\"card\">\r\n            <div class=\"card-body\">\r\n                <div class=\"row\">\r\n                    <div class=\"col-lg-5 col-md-10 col-sm-12\">\r\n                        <div class=\"form-group form-group-sm\">\r\n                            <label for=\"plataformaId\">{{ 'labels.area' | translate }}</label>\r\n                            <div class=\"input-group\">\r\n                                <app-combo-padrao id=\"plataformaId\" name=\"plataformaId\"\r\n                                    [(ngModel)]=\"filtro.plataformaId\" tabela=\"CadLocalizacaoPlataforma\" chave=\"Registro\"\r\n                                    descricao=\"Descricao\" ativos=\"true\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                </app-combo-padrao>\r\n                                <div class=\"input-group-append ml-3\">\r\n                                    <div>\r\n                                        <button type=\"button\" class=\"btn btn-sm btn-success mr-2\"\r\n                                            (click)=\"buscaPlataforma()\">{{ 'buttons.selecionar' | translate }}</button>\r\n\r\n                                        <button type=\"button\" class=\"btn btn-sm btn-info\" (click)=\"onSubmit()\"\r\n                                            [disabled]=\"!hasDados\">{{\r\n                                            'buttons.gravar' | translate }}</button>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<ng-container>\r\n    <div class=\"row\">\r\n        <div class=\"col-lg-12 col-md-12\">\r\n            <div class=\"card sem-borda\">\r\n                <div class=\"card-body\">\r\n                    <div class=\"row\">\r\n                        <ng-container *ngFor=\"let dadosbaia of dados\">\r\n                            <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                <app-alinhamento-plataforma-baias [dataList]=\"dadosbaia\" [selectedItem]=\"selectedItem\"\r\n                                    (outSelected)=\"outSelected($event)\">\r\n                                </app-alinhamento-plataforma-baias>\r\n                            </div>\r\n                        </ng-container>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</ng-container>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <table id=\"dtAlinhamentoPlataforma\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\r\n</div>\r\n\r\n<app-propriedades></app-propriedades>\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n<app-alinhamento-plataforma-dados (execute)=\"trataBico($event)\"></app-alinhamento-plataforma-dados>");

/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/alinhamento-plataforma/alinhamento-plataforma-baias/alinhamento-plataforma-baias.component.ts":
/*!**************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/alinhamento-plataforma/alinhamento-plataforma-baias/alinhamento-plataforma-baias.component.ts ***!
  \**************************************************************************************************************************************************/
/*! exports provided: AlinhamentoPlataformaBaiasComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AlinhamentoPlataformaBaiasComponent", function() { return AlinhamentoPlataformaBaiasComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _alinhamento_plataforma_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../alinhamento-plataforma.model */ "./src/app/pages/especificos/vopak/movimentos/alinhamento-plataforma/alinhamento-plataforma.model.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};



var AlinhamentoPlataformaBaiasComponent = /** @class */ (function () {
    function AlinhamentoPlataformaBaiasComponent(funcoesService) {
        this.funcoesService = funcoesService;
        this.dataList = new _alinhamento_plataforma_model__WEBPACK_IMPORTED_MODULE_2__["AlinhamentoPlataformaDados"]();
        this.selectedItem = new _alinhamento_plataforma_model__WEBPACK_IMPORTED_MODULE_2__["CliVopAlinhamentoBicoDto"]();
        this.outSelected = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.dataAux = new _alinhamento_plataforma_model__WEBPACK_IMPORTED_MODULE_2__["AlinhamentoPlataformaDados"]();
    }
    AlinhamentoPlataformaBaiasComponent.prototype.ngOnInit = function () {
    };
    AlinhamentoPlataformaBaiasComponent.prototype.setSelectedItem = function (selected) {
        this.dataAux = selected;
        this.outSelected.emit({ plataformaId: this.dataList.plataformaId, selected: selected });
    };
    AlinhamentoPlataformaBaiasComponent.ctorParameters = function () { return [
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _alinhamento_plataforma_model__WEBPACK_IMPORTED_MODULE_2__["AlinhamentoPlataformaDados"])
    ], AlinhamentoPlataformaBaiasComponent.prototype, "dataList", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], AlinhamentoPlataformaBaiasComponent.prototype, "selectedItem", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], AlinhamentoPlataformaBaiasComponent.prototype, "outSelected", void 0);
    AlinhamentoPlataformaBaiasComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-alinhamento-plataforma-baias",
            template: __importDefault(__webpack_require__(/*! raw-loader!./alinhamento-plataforma-baias.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/alinhamento-plataforma/alinhamento-plataforma-baias/alinhamento-plataforma-baias.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./../alinhamento-plataforma-index/alinhamento-plataforma-index.component.scss */ "./src/app/pages/especificos/vopak/movimentos/alinhamento-plataforma/alinhamento-plataforma-index/alinhamento-plataforma-index.component.scss")).default]
        }),
        __metadata("design:paramtypes", [app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__["FuncoesService"]])
    ], AlinhamentoPlataformaBaiasComponent);
    return AlinhamentoPlataformaBaiasComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/alinhamento-plataforma/alinhamento-plataforma-dados/alinhamento-plataforma-dados.component.ts":
/*!**************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/alinhamento-plataforma/alinhamento-plataforma-dados/alinhamento-plataforma-dados.component.ts ***!
  \**************************************************************************************************************************************************/
/*! exports provided: AlinhamentoPlataformaDadosComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AlinhamentoPlataformaDadosComponent", function() { return AlinhamentoPlataformaDadosComponent; });
/* harmony import */ var app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/shared/services/funcoes/object-utils/object-utils.static.service */ "./src/app/shared/services/funcoes/object-utils/object-utils.static.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/cadastro/material/material.model */ "./src/app/pages/cadastro/material/material.model.ts");
/* harmony import */ var app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/pages/cadastro/material/material.service */ "./src/app/pages/cadastro/material/material.service.ts");
/* harmony import */ var app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __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 _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _alinhamento_plataforma_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../alinhamento-plataforma.model */ "./src/app/pages/especificos/vopak/movimentos/alinhamento-plataforma/alinhamento-plataforma.model.ts");
/* harmony import */ var _alinhamento_plataforma_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../alinhamento-plataforma.service */ "./src/app/pages/especificos/vopak/movimentos/alinhamento-plataforma/alinhamento-plataforma.service.ts");
/* harmony import */ var _cadastro_tipo_produto_armazenado_tipo_produto_armazenado_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./../../../../../cadastro/tipo-produto-armazenado/tipo-produto-armazenado.service */ "./src/app/pages/cadastro/tipo-produto-armazenado/tipo-produto-armazenado.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 AlinhamentoPlataformaDadosComponent = /** @class */ (function () {
    function AlinhamentoPlataformaDadosComponent(messageService, materialService, funcoesService, alinhamentoService, destinatarioService, tipoProdutoArmazenadoService) {
        this.messageService = messageService;
        this.materialService = materialService;
        this.funcoesService = funcoesService;
        this.alinhamentoService = alinhamentoService;
        this.destinatarioService = destinatarioService;
        this.tipoProdutoArmazenadoService = tipoProdutoArmazenadoService;
        this.execute = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.mensagens = [];
        this.dataAuxCli = new _alinhamento_plataforma_model__WEBPACK_IMPORTED_MODULE_10__["CliVopAlinhamentoClienteDto"]();
        this.showAddCli = false;
        this.dataAuxPla = new _alinhamento_plataforma_model__WEBPACK_IMPORTED_MODULE_10__["CliVopAlinhamentoPlanejamentoDto"]();
        this.showAddPla = false;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index;
        this.tipoProdutoArmazenados = [];
    }
    AlinhamentoPlataformaDadosComponent.prototype.open = function (isEdit, dados, utilzTpProduto) {
        if (!dados)
            return;
        this.cloneDados = app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["ObjectUtilsStaticService"].clone(dados);
        this.limpar();
        this.data = this.cloneDados;
        this.utilzTpProduto = utilzTpProduto;
        this.isEdit = isEdit;
        this.data.tipoProdutoArmazenadoId = !!this.data.tipoProdutoArmazenadoId ? this.data.tipoProdutoArmazenadoId : "";
        this.trataMaterial(this.cloneDados.material);
        if (this.hasDadosCliente) {
            for (var i = 1; i <= this.data.clientes.length; i++) {
                this.data.clientes[i - 1]["seqCliente"] = i;
            }
        }
        if (this.hasDadosPlanejamentos) {
            for (var i = 1; i <= this.data.planejamentos.length; i++) {
                this.data.planejamentos[i - 1]["seqPlanejamento"] = i;
            }
        }
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["ModalUtilsStaticService"].openModal("alinhamento-plataforma-dados-dialog");
    };
    AlinhamentoPlataformaDadosComponent.prototype.onSubmit = function (form) {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                this.execute.emit({ ok: true, data: this.data });
                app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["ModalUtilsStaticService"].closeModal("alinhamento-plataforma-dados-dialog");
                return [2 /*return*/];
            });
        });
    };
    AlinhamentoPlataformaDadosComponent.prototype.createCli = function () {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                this.showAddCli = true;
                this.dataAuxCli = new _alinhamento_plataforma_model__WEBPACK_IMPORTED_MODULE_10__["CliVopAlinhamentoClienteDto"]();
                if (!this.hasDadosCliente)
                    this.data.clientes = [];
                this.setSequenciaCli();
                return [2 /*return*/];
            });
        });
    };
    AlinhamentoPlataformaDadosComponent.prototype.createPla = function () {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                if (!this.data.material) {
                    this.messageService.warning("titles.alinhamentoPlataforma", "messages.produtoNaoInformado");
                    return [2 /*return*/];
                }
                this.showAddPla = true;
                this.dataAuxPla = new _alinhamento_plataforma_model__WEBPACK_IMPORTED_MODULE_10__["CliVopAlinhamentoPlanejamentoDto"]();
                if (!this.hasDadosPlanejamentos)
                    this.data.planejamentos = [];
                this.setSequenciaPla();
                return [2 /*return*/];
            });
        });
    };
    AlinhamentoPlataformaDadosComponent.prototype.setSequenciaCli = function () {
        if (this.funcoesService.isUndefinedOrNull(this.dataAuxCli.destinatarioIdCliente) || this.dataAuxCli.destinatarioIdCliente === 0) {
            var s = this.data.clientes ? this.data.clientes.length : 0;
            this.dataAuxCli.seqCliente = s + 1;
        }
        else {
            this.dataAuxCli.seqCliente = this.dataAuxCli.seqCliente;
        }
    };
    AlinhamentoPlataformaDadosComponent.prototype.setSequenciaPla = function () {
        if (this.funcoesService.isUndefinedOrNull(this.dataAuxPla.regPlanej) || this.dataAuxPla.regPlanej === 0) {
            var s = this.data.planejamentos ? this.data.planejamentos.length : 0;
            this.dataAuxPla.seqPlajenamento = s + 1;
        }
        else {
            this.dataAuxPla.seqPlajenamento = this.dataAuxPla.seqPlajenamento;
        }
    };
    AlinhamentoPlataformaDadosComponent.prototype.rowSelectCli = function (item) {
        this.dataAuxCli = item;
    };
    AlinhamentoPlataformaDadosComponent.prototype.rowSelectPla = function (item) {
        this.dataAuxPla = item;
    };
    AlinhamentoPlataformaDadosComponent.prototype.removeCli = function () {
        var _this = this;
        if (!this.funcoesService.isUndefinedOrNull(this.dataAuxCli)) {
            this.messageService.removeConfirm(function () {
                var i = _this.data.clientes.findIndex(function (x) { return x.destinatarioIdCliente === _this.dataAuxCli.destinatarioIdCliente; });
                _this.dataAuxCli["sitReg"] = "E";
                _this.data.clientes[i] = _this.dataAuxCli;
            });
        }
    };
    AlinhamentoPlataformaDadosComponent.prototype.removePla = function () {
        var _this = this;
        if (!this.funcoesService.isUndefinedOrNull(this.dataAuxPla)) {
            this.messageService.removeConfirm(function () {
                var i = _this.data.planejamentos.findIndex(function (x) { return x.regPlanej === _this.dataAuxPla.regPlanej; });
                _this.dataAuxPla["sitReg"] = "E";
                _this.data.planejamentos[i] = _this.dataAuxPla;
            });
        }
    };
    AlinhamentoPlataformaDadosComponent.prototype.trataCliente = function (cliente) {
        this.dataAuxCli.fantasia = cliente.fantasia;
    };
    AlinhamentoPlataformaDadosComponent.prototype.salvarCli = function () {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                if (!this.verificaCli())
                    return [2 /*return*/];
                this.showAddCli = false;
                this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create;
                this.data.clientes.push(app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["ObjectUtilsStaticService"].clone(this.dataAuxCli));
                return [2 /*return*/];
            });
        });
    };
    AlinhamentoPlataformaDadosComponent.prototype.verificaCli = function () {
        var _this = this;
        var cli = this.data.clientes.filter(function (t) { return t.destinatarioIdCliente === _this.dataAuxCli.destinatarioIdCliente && t.sitReg !== "E"; });
        if (cli.length > 0) {
            this.messageService.warning("titles.alinhamentoPlataforma", "messages.clienteJaInformado");
            return false;
        }
        return true;
    };
    AlinhamentoPlataformaDadosComponent.prototype.salvarPla = function () {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                if (this.dataAuxPla.regPlanej > 0) {
                    if (!this.verificaPla())
                        return [2 /*return*/];
                    this.showAddPla = false;
                    this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create;
                    this.data.planejamentos.push(app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["ObjectUtilsStaticService"].clone(this.dataAuxPla));
                }
                else {
                    this.messageService.warning("titles.alinhamentoPlataforma", "messages.planejamentoNaoInformado");
                    return [2 /*return*/];
                }
                return [2 /*return*/];
            });
        });
    };
    AlinhamentoPlataformaDadosComponent.prototype.verificaPla = function () {
        var _this = this;
        var pla = this.data.planejamentos.filter(function (t) { return t.regPlanej === _this.dataAuxPla.regPlanej && t.sitReg !== "E"; });
        if (pla.length > 0) {
            this.messageService.warning("titles.alinhamentoPlataforma", "messages.planejamentoJaCadastrado");
            return false;
        }
        return true;
    };
    AlinhamentoPlataformaDadosComponent.prototype.cancelarCli = function () {
        this.showAddCli = false;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create;
        this.dataAuxCli = new _alinhamento_plataforma_model__WEBPACK_IMPORTED_MODULE_10__["CliVopAlinhamentoClienteDto"]();
    };
    AlinhamentoPlataformaDadosComponent.prototype.cancelarPla = function () {
        this.showAddPla = false;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create;
        this.dataAuxPla = new _alinhamento_plataforma_model__WEBPACK_IMPORTED_MODULE_10__["CliVopAlinhamentoPlanejamentoDto"]();
    };
    AlinhamentoPlataformaDadosComponent.prototype.limpar = function (all) {
        if (all === void 0) { all = false; }
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                this.showAddCli = false;
                this.showAddPla = false;
                this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create;
                this.dataAuxCli = new _alinhamento_plataforma_model__WEBPACK_IMPORTED_MODULE_10__["CliVopAlinhamentoClienteDto"]();
                this.dataAuxPla = new _alinhamento_plataforma_model__WEBPACK_IMPORTED_MODULE_10__["CliVopAlinhamentoPlanejamentoDto"]();
                if (all) {
                    this.data.material = "";
                    this.data.produto = new app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_4__["Material"]();
                    this.data.deposito = "";
                    this.data.clientes = [];
                    this.data.planejamentos = [];
                }
                return [2 /*return*/];
            });
        });
    };
    AlinhamentoPlataformaDadosComponent.prototype.cancelar = function () {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                this.showAddCli = false;
                this.showAddPla = false;
                app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["ModalUtilsStaticService"].closeModal("alinhamento-plataforma-dados-dialog");
                return [2 /*return*/];
            });
        });
    };
    AlinhamentoPlataformaDadosComponent.prototype.trataProduto = function (produto) {
        var _this = this;
        if (this.funcoesService.isNotUndefinedOrNull(produto)) {
            this.materialService.getById(produto.materialId).subscribe(function (resp) {
                _this.data.produto = resp;
                _this.data.fantasia = resp.fantasia;
            });
            this.tipoProdutoArmazenadoService.getByMaterial(produto.materialId).subscribe(function (resp) { return _this.tipoProdutoArmazenados = resp; });
        }
        else {
            this.data.produto = new app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_4__["Material"]();
            this.data.fantasia = "";
        }
    };
    AlinhamentoPlataformaDadosComponent.prototype.trataMaterial = function (materialId) {
        var _this = this;
        if (this.funcoesService.isNotUndefinedOrNull(materialId)) {
            this.materialService.getById(materialId).subscribe(function (resp) {
                _this.data.produto = resp;
                _this.data.fantasia = resp.fantasia;
            });
            this.tipoProdutoArmazenadoService.getByMaterial(materialId).subscribe(function (resp) { return _this.tipoProdutoArmazenados = resp; });
        }
        else {
            this.data.produto = new app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_4__["Material"]();
            this.data.fantasia = "";
        }
    };
    Object.defineProperty(AlinhamentoPlataformaDadosComponent.prototype, "hasDadosCliente", {
        get: function () {
            if (!this.data)
                return false;
            if (!this.data.clientes)
                return false;
            return app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["ArrayUtilsStaticService"].any(this.data.clientes.filter(function (v) { return v["sitReg"] !== "E"; }));
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(AlinhamentoPlataformaDadosComponent.prototype, "hasDadosPlanejamentos", {
        get: function () {
            if (!this.data)
                return false;
            if (!this.data.planejamentos)
                return false;
            return app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["ArrayUtilsStaticService"].any(this.data.planejamentos.filter(function (v) { return v["sitReg"] !== "E"; }));
        },
        enumerable: true,
        configurable: true
    });
    AlinhamentoPlataformaDadosComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__["MessageService"] },
        { type: app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_5__["MaterialService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"] },
        { type: _alinhamento_plataforma_service__WEBPACK_IMPORTED_MODULE_11__["AlinhamentoPlataformaService"] },
        { type: app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_3__["DestinatarioService"] },
        { type: _cadastro_tipo_produto_armazenado_tipo_produto_armazenado_service__WEBPACK_IMPORTED_MODULE_12__["TipoProdutoArmazenadoService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(),
        __metadata("design:type", Object)
    ], AlinhamentoPlataformaDadosComponent.prototype, "execute", void 0);
    AlinhamentoPlataformaDadosComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-alinhamento-plataforma-dados",
            template: __importDefault(__webpack_require__(/*! raw-loader!./alinhamento-plataforma-dados.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/alinhamento-plataforma/alinhamento-plataforma-dados/alinhamento-plataforma-dados.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./../alinhamento-plataforma-index/alinhamento-plataforma-index.component.scss */ "./src/app/pages/especificos/vopak/movimentos/alinhamento-plataforma/alinhamento-plataforma-index/alinhamento-plataforma-index.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__["MessageService"],
            app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_5__["MaterialService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"],
            _alinhamento_plataforma_service__WEBPACK_IMPORTED_MODULE_11__["AlinhamentoPlataformaService"],
            app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_3__["DestinatarioService"],
            _cadastro_tipo_produto_armazenado_tipo_produto_armazenado_service__WEBPACK_IMPORTED_MODULE_12__["TipoProdutoArmazenadoService"]])
    ], AlinhamentoPlataformaDadosComponent);
    return AlinhamentoPlataformaDadosComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".sem-borda {\n  border: 0;\n}\n\n.plataforma-baia--bico {\n  border-right: 0;\n  border: 1px solid #ddd;\n}\n\napp-alinhamento-plataforma-baias .plataforma-baia--bico-cliente {\n  border-bottom: 1px solid #ddd;\n  background-color: #b9bec2;\n  text-align: center;\n  font-weight: bolder;\n}\n\napp-alinhamento-plataforma-baias .plataforma-baia--bico-cliente div {\n  font-size: 9px;\n  margin-top: -13px;\n  text-align: center;\n  padding-right: 5px;\n}\n\napp-alinhamento-plataforma-baias .bico--line1 {\n  padding: 0px;\n  margin: 0px;\n}\n\napp-alinhamento-plataforma-baias .bico--line {\n  padding: 15px;\n}\n\napp-alinhamento-plataforma-baias .bico--line:last-child {\n  border-bottom: 1px solid #ddd;\n  background-color: #79e1f3;\n}\n\napp-alinhamento-plataforma-baias .bico--line div {\n  text-align: center;\n  padding-left: 5px;\n}\n\n.container-green {\n  white-space: nowrap;\n  overflow-x: auto;\n  height: 130px;\n  width: 45%;\n  background-color: #92f172;\n  margin-bottom: 1px;\n}\n\n.container-green::-webkit-scrollbar {\n  width: 8px;\n  height: 8px;\n}\n\n.container-green .table-header {\n  display: table-row;\n  font-weight: bold;\n  text-align: left;\n}\n\n.container-green .table-cell-header {\n  display: table-cell;\n  border-width: thin;\n  width: 192px;\n  padding: 5px;\n}\n\n.container-green .table-row {\n  display: table-row;\n}\n\n.container-green .table-row:hover {\n  cursor: pointer;\n  background-color: #cdebc3;\n}\n\n.container-green .table-row.info {\n  background-color: #afcfa5;\n}\n\n.container-green .table-cell {\n  display: table-cell;\n  border-width: thin;\n  padding-left: 5px;\n  padding-right: 5px;\n  text-align: center;\n  width: 100%;\n  border-bottom: 1px solid #fff;\n}\n\n.container-yellow {\n  white-space: nowrap;\n  overflow-x: auto;\n  height: 130px;\n  width: 45%;\n  background-color: #eaf366;\n  margin-bottom: 1px;\n}\n\n.container-yellow::-webkit-scrollbar {\n  width: 8px;\n  height: 8px;\n}\n\n.container-yellow .table-header {\n  display: table-row;\n  font-weight: bold;\n  text-align: left;\n}\n\n.container-yellow .table-cell-header {\n  display: table-cell;\n  border-width: thin;\n  width: 192px;\n  padding: 5px;\n}\n\n.container-yellow .table-row {\n  display: table-row;\n}\n\n.container-yellow .table-row:hover {\n  cursor: pointer;\n  background-color: #cdebc3;\n}\n\n.container-yellow .table-row.info {\n  background-color: #afcfa5;\n}\n\n.container-yellow .table-cell {\n  display: table-cell;\n  border-width: thin;\n  padding-left: 5px;\n  padding-right: 5px;\n  text-align: center;\n  width: 100%;\n  border-bottom: 1px solid #fff;\n}\n\n.container-white {\n  white-space: nowrap;\n  overflow-x: auto;\n  height: 130px;\n  width: 45%;\n  background-color: #fff;\n}\n\n.container-white::-webkit-scrollbar {\n  width: 8px;\n  height: 8px;\n}\n\n.container-white .table-header {\n  display: table-row;\n  font-weight: bold;\n  text-align: left;\n}\n\n.container-white .table-cell-header {\n  display: table-cell;\n  border-width: thin;\n  width: 192px;\n  padding: 5px;\n}\n\n.container-white .table-row {\n  display: table-row;\n}\n\n.container-white .table-row:hover {\n  cursor: pointer;\n  background-color: #cdebc3;\n}\n\n.container-white .table-row.info {\n  background-color: #afcfa5;\n}\n\n.container-blue-midle {\n  white-space: nowrap;\n  overflow-x: auto;\n  height: 130px;\n  width: 33px;\n  background-color: #fff;\n  border: 1px solid #ddd;\n  margin: 2px;\n  background: repeating-linear-gradient(45deg, #fff, #fff 15px, #ddd 10px, #ddd 20px);\n}\n\n.container-blue-midle::-webkit-scrollbar {\n  width: 8px;\n  height: 8px;\n}\n\nbtn-alinhamento-plataforma {\n  background-color: #4BAE4F;\n  /* Blue background */\n  border: none;\n  /* Remove borders */\n  color: white;\n  /* White text */\n  padding: 3.75px 7.5px;\n  /* Some padding */\n  font-size: 10px;\n  /* Set a font size */\n  cursor: pointer;\n  /* Mouse pointer on hover */\n}\n/*# sourceMappingURL=data:application/json;base64,  */");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AlinhamentoPlataformaIndexComponent", function() { return AlinhamentoPlataformaIndexComponent; });
/* harmony import */ var app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../../../../../cadastro/material/material.service */ "./src/app/pages/cadastro/material/material.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* 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_pages_portal_ptl_usuario_ptl_usuario_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/pages/portal/ptl-usuario/ptl-usuario.service */ "./src/app/pages/portal/ptl-usuario/ptl-usuario.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _alinhamento_plataforma_constants__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../alinhamento-plataforma.constants */ "./src/app/pages/especificos/vopak/movimentos/alinhamento-plataforma/alinhamento-plataforma.constants.ts");
/* harmony import */ var _alinhamento_plataforma_model__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../alinhamento-plataforma.model */ "./src/app/pages/especificos/vopak/movimentos/alinhamento-plataforma/alinhamento-plataforma.model.ts");
/* harmony import */ var _alinhamento_plataforma_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../alinhamento-plataforma.service */ "./src/app/pages/especificos/vopak/movimentos/alinhamento-plataforma/alinhamento-plataforma.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_16__ = __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 _alinhamento_plataforma_dados_alinhamento_plataforma_dados_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../alinhamento-plataforma-dados/alinhamento-plataforma-dados.component */ "./src/app/pages/especificos/vopak/movimentos/alinhamento-plataforma/alinhamento-plataforma-dados/alinhamento-plataforma-dados.component.ts");
/* harmony import */ var app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! app/shared/services/funcoes/boolean-utils/boolean-utils.static.service */ "./src/app/shared/services/funcoes/boolean-utils/boolean-utils.static.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};



















var AlinhamentoPlataformaIndexComponent = /** @class */ (function (_super) {
    __extends(AlinhamentoPlataformaIndexComponent, _super);
    function AlinhamentoPlataformaIndexComponent(router, datatablesService, alinhamentoPlataformaService, permissoesUtils, usuarioService, messageService, configuracao, funcoesService, loginService, materialService) {
        var _this = _super.call(this, new _alinhamento_plataforma_constants__WEBPACK_IMPORTED_MODULE_12__["AlinhamentoPlataformaConstants"](), funcoesService) || this;
        _this.router = router;
        _this.datatablesService = datatablesService;
        _this.alinhamentoPlataformaService = alinhamentoPlataformaService;
        _this.permissoesUtils = permissoesUtils;
        _this.usuarioService = usuarioService;
        _this.messageService = messageService;
        _this.configuracao = configuracao;
        _this.funcoesService = funcoesService;
        _this.loginService = loginService;
        _this.materialService = materialService;
        _this.dados = [];
        _this.filtro = new _alinhamento_plataforma_model__WEBPACK_IMPORTED_MODULE_13__["AlinhamentoPlataformaFilter"]();
        _this.constantes = new _alinhamento_plataforma_constants__WEBPACK_IMPORTED_MODULE_12__["AlinhamentoPlataformaConstants"]();
        _this.plataformaId = 0;
        _this.ptlUsuarioId = 0;
        _this.selectedItem = new _alinhamento_plataforma_model__WEBPACK_IMPORTED_MODULE_13__["CliVopAlinhamentoBicoDto"]();
        _this.dadosSalvos = true;
        _this.loadConfig = function () {
            _this.utilzTpProduto = app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_18__["BooleanUtilsStaticService"].toBoolean(_this.configuracao.lerConfig("PTL", "utilzTpProduto"));
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    AlinhamentoPlataformaIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        if (!this.filtro) {
            this.filtro = new _alinhamento_plataforma_model__WEBPACK_IMPORTED_MODULE_13__["AlinhamentoPlataformaFilter"]();
        }
        ;
        this.configuracao.getConfig(this.constantes.parametrosConfig, this.loadConfig);
        this.permissoesUtils
            .verificaRotina(this.constantes.sisFormularioId, 2, function () { }, function () { return _this.permissoesUtils.back(); }, true);
    };
    AlinhamentoPlataformaIndexComponent.prototype.refresh = function () {
        this.buscaPlataforma();
    };
    AlinhamentoPlataformaIndexComponent.prototype.trataBico = function (resp) {
        var _this = this;
        if (!resp)
            return;
        if (resp.ok) {
            var idxPla = this.dados.findIndex(function (c) { return c.plataformaId === _this.plataformaId; });
            if (idxPla > -1) {
                var bicos = this.dados[idxPla].bicos;
                var idxBico = bicos.findIndex(function (c) { return c.key === resp.data.key; });
                if (idxBico > -1) {
                    bicos[idxBico] = resp.data;
                }
            }
        }
        this.dadosSalvos = false;
    };
    AlinhamentoPlataformaIndexComponent.prototype.montaBaias = function () {
        var _this = this;
        var area = !this.filtro.plataformaId ? 0 : this.filtro.plataformaId;
        this.alinhamentoPlataformaService.getDados(area).subscribe(function (resp) {
            _this.dados = resp;
        });
    };
    AlinhamentoPlataformaIndexComponent.prototype.buscaPlataforma = function () {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        this.dadosSalvos = true;
                        this.selectedItem = new _alinhamento_plataforma_model__WEBPACK_IMPORTED_MODULE_13__["CliVopAlinhamentoBicoDto"]();
                        return [4 /*yield*/, this.montaBaias()];
                    case 1:
                        _a.sent();
                        return [2 /*return*/];
                }
            });
        });
    };
    AlinhamentoPlataformaIndexComponent.prototype.outSelected = function (data) {
        this.plataformaId = data.plataformaId;
        this.selectedItem = data.selected;
    };
    AlinhamentoPlataformaIndexComponent.prototype.edit = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["StringUtilsStaticService"].isEmpty(this.selectedItem.codPlataforma)) {
                    this.messageService.warning("titles.alinhamentoPlataforma", "messages.selecioneUmBico");
                    return [2 /*return*/];
                }
                this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () { 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.buscaBico()];
                            case 1:
                                _a.selectedItem = _b.sent();
                                if (this.funcoesService.isNotUndefinedOrNull(this.selectedItem)) {
                                    this.modalAjuste.open(true, this.selectedItem, this.utilzTpProduto);
                                }
                                return [2 /*return*/];
                        }
                    });
                }); });
                return [2 /*return*/];
            });
        });
    };
    AlinhamentoPlataformaIndexComponent.prototype.detail = function () {
        var _this = this;
        if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["StringUtilsStaticService"].isEmpty(this.selectedItem.codPlataforma)) {
            this.messageService.warning("titles.alinhamentoPlataforma", "messages.selecioneUmBico");
            return;
        }
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () { 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.buscaBico()];
                    case 1:
                        _a.selectedItem = _b.sent();
                        if (this.funcoesService.isNotUndefinedOrNull(this.selectedItem)) {
                            this.modalAjuste.open(false, this.selectedItem, this.utilzTpProduto);
                        }
                        return [2 /*return*/];
                }
            });
        }); });
    };
    AlinhamentoPlataformaIndexComponent.prototype.buscaBico = function () {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (!this.dadosSalvos) return [3 /*break*/, 2];
                        return [4 /*yield*/, this.alinhamentoPlataformaService.getByBico({
                                "codPlataforma": this.selectedItem.codPlataforma,
                                "numBaia": this.selectedItem.numBaia,
                                "tipoMov": this.selectedItem.tipoMov,
                                "ordemBico": this.selectedItem.ordemBico,
                                "seqBico": this.selectedItem.seqBico
                            })];
                    case 1: return [2 /*return*/, _a.sent()];
                    case 2: return [2 /*return*/, this.selectedItem];
                }
            });
        });
    };
    AlinhamentoPlataformaIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _this.constantes.paramRelatorio = {
                filialId: _this.loginService.getLogin().filialId,
                area: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["NumberUtilsStaticService"].toNumber(_this.filtro.plataformaId)
            };
            _super.prototype.print.call(_this, null, true);
        });
    };
    AlinhamentoPlataformaIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    AlinhamentoPlataformaIndexComponent.prototype.onSubmit = function () {
        var _this = this;
        this.messageService.confirm("titles.alinhamentoPlataforma", "messages.confirmaGravacaoAlinhamentoPlataforma", null, function () {
            var bicos = [];
            _this.dados.forEach(function (pla) {
                pla.bicos.forEach(function (bico) {
                    if (!!bico.material) {
                        bicos.push(bico);
                    }
                });
            });
            _this.alinhamentoPlataformaService.grava(bicos, _this.filtro.plataformaId).subscribe(function (resp) {
                if (!resp.isValid) {
                    resp.erros.forEach(function (c) { return _this.messageService.warning("titles.alinhamentoPlataforma", c.message); });
                    _this.dadosSalvos = false;
                    return;
                }
                else {
                    _this.messageService.saveSuccess("titles.alinhamentoPlataforma");
                    _this.dadosSalvos = true;
                    _this.refresh();
                }
            });
        });
    };
    Object.defineProperty(AlinhamentoPlataformaIndexComponent.prototype, "hasDados", {
        get: function () {
            return app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["ArrayUtilsStaticService"].any(this.dados);
        },
        enumerable: true,
        configurable: true
    });
    AlinhamentoPlataformaIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_8__["DatatablesService"] },
        { type: _alinhamento_plataforma_service__WEBPACK_IMPORTED_MODULE_14__["AlinhamentoPlataformaService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__["PermissoesUtilsService"] },
        { type: app_pages_portal_ptl_usuario_ptl_usuario_service__WEBPACK_IMPORTED_MODULE_6__["PtlUsuarioService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_11__["MessageService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_1__["ConfiguracaoFacade"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_9__["FuncoesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"] },
        { type: _cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_2__["MaterialService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"])(_alinhamento_plataforma_dados_alinhamento_plataforma_dados_component__WEBPACK_IMPORTED_MODULE_17__["AlinhamentoPlataformaDadosComponent"], { static: false }),
        __metadata("design:type", _alinhamento_plataforma_dados_alinhamento_plataforma_dados_component__WEBPACK_IMPORTED_MODULE_17__["AlinhamentoPlataformaDadosComponent"])
    ], AlinhamentoPlataformaIndexComponent.prototype, "modalAjuste", void 0);
    AlinhamentoPlataformaIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"])({
            selector: "app-alinhamento-plataforma-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./alinhamento-plataforma-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/alinhamento-plataforma/alinhamento-plataforma-index/alinhamento-plataforma-index.component.html")).default,
            styles: [__importDefault(__webpack_require__(/*! ./alinhamento-plataforma-index.component.scss */ "./src/app/pages/especificos/vopak/movimentos/alinhamento-plataforma/alinhamento-plataforma-index/alinhamento-plataforma-index.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_8__["DatatablesService"],
            _alinhamento_plataforma_service__WEBPACK_IMPORTED_MODULE_14__["AlinhamentoPlataformaService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__["PermissoesUtilsService"],
            app_pages_portal_ptl_usuario_ptl_usuario_service__WEBPACK_IMPORTED_MODULE_6__["PtlUsuarioService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_11__["MessageService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_1__["ConfiguracaoFacade"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_9__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"],
            _cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_2__["MaterialService"]])
    ], AlinhamentoPlataformaIndexComponent);
    return AlinhamentoPlataformaIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AlinhamentoPlataformaConstants", function() { return AlinhamentoPlataformaConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var AlinhamentoPlataformaConstants = /** @class */ (function () {
    function AlinhamentoPlataformaConstants() {
        this.sisFormularioId = 65441;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.alinhamentoPlataforma";
        this.reportId = "VOP0045";
        this.reportTitulo = { "titulo": "Alinhamento de Plataforma", "subTitulo": "" };
        this.listaIndex = [
            { 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: '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: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
        this.listaForm = [
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.parametrosConfig = [
            {
                sistema: 'PTL', parametros: [
                    'UtilzTpProduto'
                ]
            }
        ];
    }
    return AlinhamentoPlataformaConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/alinhamento-plataforma/alinhamento-plataforma.model.ts":
/*!***********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/alinhamento-plataforma/alinhamento-plataforma.model.ts ***!
  \***********************************************************************************************************/
/*! exports provided: AlinhamentoPlataformaDados, CliVopAlinhamentoBicoDto, CliVopAlinhamentoClienteDto, CliVopAlinhamentoPlanejamentoDto, AlinhamentoPlataformaFilter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AlinhamentoPlataformaDados", function() { return AlinhamentoPlataformaDados; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CliVopAlinhamentoBicoDto", function() { return CliVopAlinhamentoBicoDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CliVopAlinhamentoClienteDto", function() { return CliVopAlinhamentoClienteDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CliVopAlinhamentoPlanejamentoDto", function() { return CliVopAlinhamentoPlanejamentoDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AlinhamentoPlataformaFilter", function() { return AlinhamentoPlataformaFilter; });
/* 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 _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../shared/services/base/base.model */ "./src/app/shared/services/base/base.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};


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

var CliVopAlinhamentoBicoDto = /** @class */ (function () {
    function CliVopAlinhamentoBicoDto() {
        this.codPlataforma = "";
        this.tipoProdutoArmazenadoId = "";
        this.clientes = [];
        this.planejamentos = [];
    }
    return CliVopAlinhamentoBicoDto;
}());

var CliVopAlinhamentoClienteDto = /** @class */ (function (_super) {
    __extends(CliVopAlinhamentoClienteDto, _super);
    function CliVopAlinhamentoClienteDto() {
        var _this = _super.call(this) || this;
        _this.destinatarioIdCliente = 0;
        _this.seqCliente = 0;
        _this.fantasia = "";
        _this.cliente = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__["Destinatario"]();
        return _this;
    }
    return CliVopAlinhamentoClienteDto;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_1__["BaseModel"]));

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

var AlinhamentoPlataformaFilter = /** @class */ (function () {
    function AlinhamentoPlataformaFilter() {
        this.plataformaId = "";
    }
    return AlinhamentoPlataformaFilter;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AlinhamentoPlataformaModule", function() { return AlinhamentoPlataformaModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _alinhamento_plataforma_routing_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./alinhamento-plataforma.routing.module */ "./src/app/pages/especificos/vopak/movimentos/alinhamento-plataforma/alinhamento-plataforma.routing.module.ts");
/* harmony import */ var _alinhamento_plataforma_index_alinhamento_plataforma_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./alinhamento-plataforma-index/alinhamento-plataforma-index.component */ "./src/app/pages/especificos/vopak/movimentos/alinhamento-plataforma/alinhamento-plataforma-index/alinhamento-plataforma-index.component.ts");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _alinhamento_plataforma_baias_alinhamento_plataforma_baias_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./alinhamento-plataforma-baias/alinhamento-plataforma-baias.component */ "./src/app/pages/especificos/vopak/movimentos/alinhamento-plataforma/alinhamento-plataforma-baias/alinhamento-plataforma-baias.component.ts");
/* harmony import */ var _alinhamento_plataforma_dados_alinhamento_plataforma_dados_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./alinhamento-plataforma-dados/alinhamento-plataforma-dados.component */ "./src/app/pages/especificos/vopak/movimentos/alinhamento-plataforma/alinhamento-plataforma-dados/alinhamento-plataforma-dados.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};






var AlinhamentoPlataformaModule = /** @class */ (function () {
    function AlinhamentoPlataformaModule() {
    }
    AlinhamentoPlataformaModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [
                _alinhamento_plataforma_index_alinhamento_plataforma_index_component__WEBPACK_IMPORTED_MODULE_2__["AlinhamentoPlataformaIndexComponent"],
                _alinhamento_plataforma_baias_alinhamento_plataforma_baias_component__WEBPACK_IMPORTED_MODULE_4__["AlinhamentoPlataformaBaiasComponent"],
                _alinhamento_plataforma_dados_alinhamento_plataforma_dados_component__WEBPACK_IMPORTED_MODULE_5__["AlinhamentoPlataformaDadosComponent"]
            ],
            imports: [
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_3__["SharedModule"],
                _alinhamento_plataforma_routing_module__WEBPACK_IMPORTED_MODULE_1__["AlinhamentoPlataformaRoutingModule"]
            ]
        })
    ], AlinhamentoPlataformaModule);
    return AlinhamentoPlataformaModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AlinhamentoPlataformaRoutingModule", function() { return AlinhamentoPlataformaRoutingModule; });
/* 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 _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _alinhamento_plataforma_index_alinhamento_plataforma_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./alinhamento-plataforma-index/alinhamento-plataforma-index.component */ "./src/app/pages/especificos/vopak/movimentos/alinhamento-plataforma/alinhamento-plataforma-index/alinhamento-plataforma-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 AlinhamentoPlataformaRoutes = [
    {
        path: "",
        component: _alinhamento_plataforma_index_alinhamento_plataforma_index_component__WEBPACK_IMPORTED_MODULE_3__["AlinhamentoPlataformaIndexComponent"],
        data: {
            breadcrumb: "alinhamentoPlataforma",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    },
];
var AlinhamentoPlataformaRoutingModule = /** @class */ (function () {
    function AlinhamentoPlataformaRoutingModule() {
    }
    AlinhamentoPlataformaRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(AlinhamentoPlataformaRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]],
        })
    ], AlinhamentoPlataformaRoutingModule);
    return AlinhamentoPlataformaRoutingModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AlinhamentoPlataformaService", function() { return AlinhamentoPlataformaService; });
/* 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 _environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var _alinhamento_plataforma_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./alinhamento-plataforma.model */ "./src/app/pages/especificos/vopak/movimentos/alinhamento-plataforma/alinhamento-plataforma.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};







var AlinhamentoPlataformaService = /** @class */ (function (_super) {
    __extends(AlinhamentoPlataformaService, _super);
    function AlinhamentoPlataformaService(http) {
        var _this = _super.call(this, http, "vopak/cliVopAlinhamento") || this;
        _this.dataAnt = new _alinhamento_plataforma_model__WEBPACK_IMPORTED_MODULE_6__["CliVopAlinhamentoBicoDto"]();
        return _this;
    }
    AlinhamentoPlataformaService.prototype.getDados = function (area) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/vopak/cliVopAlinhamento/getDados/" + area)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    AlinhamentoPlataformaService.prototype.grava = function (bicos, regCadLocPlataforma) {
        var payload = {
            regCadLocPlataforma: regCadLocPlataforma,
            bicos: bicos
        };
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/vopak/cliVopAlinhamento/grava", payload)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    AlinhamentoPlataformaService.prototype.getByBico = function (filtro) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/vopak/cliVopAlinhamento/getByBico", filtro)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError)).toPromise();
    };
    AlinhamentoPlataformaService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    AlinhamentoPlataformaService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], AlinhamentoPlataformaService);
    return AlinhamentoPlataformaService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_2__["SpecificsBaseService"]));



/***/ })

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